bonkers-ui 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonkers-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "storybook": "start-storybook -p 6006",
@@ -11,8 +11,7 @@
11
11
  "test": "jest",
12
12
  "deploy": "gh-pages -d storybook-static",
13
13
  "typecheck": "tsc --noEmit && vue-tsc --noEmit",
14
- "i": "yarn install --frozen-lockfile",
15
- "postinstall": "husky install"
14
+ "i": "yarn install --frozen-lockfile"
16
15
  },
17
16
  "dependencies": {
18
17
  "@fortawesome/fontawesome-svg-core": "^6.2.0",
@@ -20,6 +19,7 @@
20
19
  "@fortawesome/free-regular-svg-icons": "^6.2.0",
21
20
  "@fortawesome/free-solid-svg-icons": "^6.2.0",
22
21
  "@fortawesome/vue-fontawesome": "^3.0.1",
22
+ "husky": "4.3.8",
23
23
  "vue": "^3.2.41"
24
24
  },
25
25
  "devDependencies": {
@@ -40,7 +40,6 @@
40
40
  "eslint": "8.26.0",
41
41
  "eslint-plugin-vue": "^9.6.0",
42
42
  "gh-pages": "^4.0.0",
43
- "husky": "^8.0.1",
44
43
  "jest": "27.3.1",
45
44
  "lint-staged": "^13.0.2",
46
45
  "postcss": "^8.4.18",
@@ -84,5 +83,10 @@
84
83
  ],
85
84
  "*.{css,vue,tsx}": "stylelint --fix"
86
85
  },
86
+ "husky": {
87
+ "hooks": {
88
+ "pre-commit": "yarn typecheck && yarn lint-staged && yarn test"
89
+ }
90
+ },
87
91
  "license": "MIT"
88
92
  }
@@ -1,5 +1,4 @@
1
1
  export enum EListItemTypes {
2
2
  DEFAULT = "DEFAULT",
3
- COMPACT = "COMPACT",
4
3
  PROGRESS = "PROGRESS"
5
4
  }
@@ -27,7 +27,7 @@ const Template: Story<TComponentProps> = (args) => ({
27
27
  },
28
28
  template:/*html*/`
29
29
  <ul>
30
- <ui-list-item v-for= "item in 5" :key="item" :icon="['far', 'face-smile']" :title="args.title" :kind="args.kind">
30
+ <ui-list-item v-for= "item in 5" :key="item" :icon="['far', 'face-smile']" :title="args.title" :kind="args.kind" class="pb-md">
31
31
  {{ args.title }}
32
32
  </ui-list-item>
33
33
  </ul>
@@ -5,23 +5,16 @@
5
5
  v-if="kind===EListItemTypes.PROGRESS"
6
6
  class="ui-list-item__line bg-primary-300 h-full absolute w-xxs left-xs -translate-x-2/4 top-sm group-last:hidden"
7
7
  />
8
- <div
9
- class="z-0"
10
- :class="[kind === EListItemTypes.DEFAULT && 'pb-sm',
11
- kind === EListItemTypes.COMPACT && 'pb-xs',
12
- kind === EListItemTypes.PROGRESS &&'pb-md']"
13
- >
14
- <ui-icon
15
- v-if="icon"
16
- :kind="pickKind"
17
- class="bg-white text-primary"
18
- :icon-name="icon"
19
- :size="ESize.SM"
20
- />
21
- </div>
8
+ <ui-icon
9
+ v-if="icon"
10
+ :kind="pickKind"
11
+ class="bg-white text-primary"
12
+ :icon-name="icon"
13
+ :size="ESize.SM"
14
+ />
22
15
 
23
16
  <slot>
24
- <ui-typography
17
+ <ui-typography
25
18
  :weight="ETextWeight.SEMI_BOLD"
26
19
  >
27
20
  {{ title }}
@@ -36,7 +29,7 @@
36
29
  import UiTypography, { ETextWeight } from "../ui-typography";
37
30
  import { ESize } from "../../_types/sizing";
38
31
  import { EListItemTypes } from "./_types";
39
-
32
+
40
33
  const props = withDefaults(defineProps<{
41
34
  icon: TIconName;
42
35
  title: string;
@@ -47,7 +40,7 @@
47
40
 
48
41
  const pickKind = computed(()=>{
49
42
  switch(props.kind){
50
- case EListItemTypes.COMPACT: return EListItemTypes.COMPACT;
43
+ case EListItemTypes.DEFAULT: return EListItemTypes.DEFAULT;
51
44
  case EListItemTypes.PROGRESS: return EListItemTypes.PROGRESS;
52
45
  default: return EListItemTypes.DEFAULT;
53
46
  }
package/.husky/pre-commit DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- yarn lint-staged
5
- yarn typecheck
6
- yarn test