1.0.67 • Published 8 days ago

bonkers-ui v1.0.67

Weekly downloads
-
License
MIT
Repository
-
Last release
8 days ago

Recommended IDE Setup

Setup project

  • Use bun to install all dependencies with the frozen lockfile

    	```js
    	bun i
    	```
  • To run the storybook

    	```js
    	bun storybook
    	```
  • open http://localhost:6006/

For use in a consuming project

  • Install the component library with your desired package manager. - Insure autoprefixer, postcss and tailwindcss are installed

  • In your tailwind.config.js, add the Bonkers-UI tailwind plugin to your plugins array. Note: the content array should include the path to the Bonkers-UI source files once installed.

import bonkersUiConfig from "bonkers-ui/plugin";

export default {
	content: [
		"./node_modules/bonkers-ui/**/*.{vue,js,ts,jsx,tsx}",
	],
	plugins: [ bonkersUiConfig ],	
}
  • Ensure that the tailwind directives are included in your main.css file
@tailwind base;
@tailwind components;
@tailwind utilities;
  • Please ensure that your tsconfig file is configured with moduleResolution set to Bundler or NodeNext (depending on your project setup) to allow for the Bonkers-UI types to be resolved. Example:
{
  "compilerOptions": {
    "target": "ES2020",
    "useDefineForClassFields": true,
    "module": "NodeNext",
    "lib": ["ES2020", "DOM", "DOM.Iterable"],
    "skipLibCheck": true,
    "baseUrl": ".",

    /* Bundler mode */
    "moduleResolution": "NodeNext",
    "allowImportingTsExtensions": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve",

    /* Linting */
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noFallthroughCasesInSwitch": true,


  },
  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
  "references": [{ "path": "./tsconfig.node.json" }]
}
  • Bonkers-UI has been successfully installed to your project, now import any components you need!
<template>
	<div>
		<ui-button 
			:size="EButtonSizes.LARGE" 
			:kind="EButtonTypes.PRIMARY"
			>
			I'm a Bonkers Button
		</ui-button>

		<ui-input
			:kinds="EInputKinds.PRIMARY"
			placeholder="Placeholder"
			full-width
			class="mb-md"
			heading="Heading"
			sub-label="Sub Label"
		/>	
	</div>
</template>

<script setup lang="ts">
	import { UiButton, EButtonTypes, EButtonSizes } from "bonkers-ui";
	import UiInput from "bonkers-ui/ui-input"; // Deprecated Import Method
	import { EInputKinds } from "bonkers-ui/types";
</script>

Flow to develop

  • We use only develop to create new branch
  • First pull all changes and before creating a new branch
  • Preferred naming of branches
    • feature/[feature-name]
    • hotfix/[fix-name]
  • Preferred commit message
    • update([file[s]-name]): [message] for example - update(main.css, header.vue): change header to .header
    • fix([file[s]-name]): [message]
    • add([file[s]-name]): [message]
  • When you are ready to push just merge(not rebase) develop into the current branch
  • Fix any merge conflicts that this creates
  • Next create pull request to develop (you can squash multiple commits when merging)
  • After the pull request is merged to develop you can see it in staging https://bonkers-ie.github.io/bonkers-ui
  • Only after test staging you can create a merge request from develop to master
  • After you merge to master, the patch version will upgrade x.x.^x and you can use this version in package
1.0.66

8 days ago

1.0.67

8 days ago

1.0.65

4 months ago

1.0.64

5 months ago

1.0.62

6 months ago

1.0.61

8 months ago

1.0.60

8 months ago

1.0.63

6 months ago

1.0.55

10 months ago

1.0.59

9 months ago

1.0.58

9 months ago

1.0.57

9 months ago

1.0.56

9 months ago

1.0.54

11 months ago

1.0.53

11 months ago

1.0.52

11 months ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.45

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.40

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.22

1 year ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

1.0.13

2 years ago

0.0.7

2 years ago

1.0.12

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago