bonkers-ui 1.0.32 → 1.0.34

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.32",
3
+ "version": "1.0.34",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "storybook": "start-storybook -p 6006",
@@ -14,51 +14,51 @@
14
14
  "i": "yarn install --frozen-lockfile"
15
15
  },
16
16
  "dependencies": {
17
- "@fortawesome/fontawesome-svg-core": "^6.2.0",
18
- "@fortawesome/free-brands-svg-icons": "^6.2.0",
19
- "@fortawesome/free-regular-svg-icons": "^6.2.0",
20
- "@fortawesome/free-solid-svg-icons": "^6.2.0",
21
- "@fortawesome/vue-fontawesome": "^3.0.1",
22
- "@vueuse/components": "^9.4.0",
23
- "@vueuse/core": "^9.4.0",
24
- "vue": "^3.2.41"
17
+ "@fortawesome/fontawesome-svg-core": "^6.2.1",
18
+ "@fortawesome/free-brands-svg-icons": "^6.2.1",
19
+ "@fortawesome/free-regular-svg-icons": "^6.2.1",
20
+ "@fortawesome/free-solid-svg-icons": "^6.2.1",
21
+ "@fortawesome/vue-fontawesome": "^3.0.0-5",
22
+ "@vueuse/components": "^9.8.2",
23
+ "@vueuse/core": "^9.8.2",
24
+ "vue": "^3.2.45"
25
25
  },
26
26
  "devDependencies": {
27
- "@storybook/addon-actions": "^6.5.13",
28
- "@storybook/addon-essentials": "^6.5.13",
29
- "@storybook/addon-links": "^6.5.13",
27
+ "@storybook/addon-actions": "^6.5.15",
28
+ "@storybook/addon-essentials": "^6.5.15",
29
+ "@storybook/addon-links": "^6.5.15",
30
30
  "@storybook/addon-postcss": "^2.0.0",
31
- "@storybook/builder-vite": "^0.2.4",
32
- "@storybook/vue3": "^6.5.13",
33
- "@types/jest": "^29.2.0",
34
- "@typescript-eslint/eslint-plugin": "^5.41.0",
35
- "@typescript-eslint/parser": "^5.41.0",
36
- "@vitejs/plugin-vue": "^3.2.0",
31
+ "@storybook/builder-vite": "^0.2.6",
32
+ "@storybook/vue3": "^6.5.15",
33
+ "@types/jest": "^29.2.4",
34
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
35
+ "@typescript-eslint/parser": "^5.47.0",
36
+ "@vitejs/plugin-vue": "^4.0.0",
37
37
  "@vue/eslint-config-typescript": "^11.0.2",
38
- "@vue/test-utils": "^2.2.0",
39
- "@vue/vue3-jest": "^27.0.0",
40
- "babel-jest": "27",
41
- "eslint": "8.26.0",
42
- "eslint-plugin-vue": "^9.6.0",
38
+ "@vue/test-utils": "^2.2.6",
39
+ "@vue/vue3-jest": "^29.2.2",
40
+ "babel-jest": "29.3.1",
41
+ "eslint": "8.30.0",
42
+ "eslint-plugin-vue": "^9.8.0",
43
43
  "gh-pages": "^4.0.0",
44
- "husky": "4",
44
+ "husky": "4.3.8",
45
45
  "jest": "27.3.1",
46
- "lint-staged": "^13.0.2",
47
- "postcss": "^8.4.18",
46
+ "lint-staged": "^13.1.0",
47
+ "postcss": "^8.4.20",
48
48
  "postcss-html": "^1.4.1",
49
49
  "storybook-tailwind-dark-mode": "^1.0.15",
50
- "stylelint": "^14.14.0",
50
+ "stylelint": "^14.16.0",
51
51
  "stylelint-config-recommended": "^9.0.0",
52
52
  "stylelint-config-recommended-vue": "^1.4.0",
53
53
  "stylelint-config-standard": "^29.0.0",
54
- "tailwindcss": "^3.2.1",
54
+ "tailwindcss": "^3.2.4",
55
55
  "ts-jest": "^27.0.7",
56
56
  "ts-node": "^10.9.1",
57
- "typescript": "^4.8.4",
58
- "vite": "^3.2.0",
57
+ "typescript": "^4.9.4",
58
+ "vite": "^4.0.2",
59
59
  "vue-eslint-parser": "^9.1.0",
60
- "vue-loader": "^17.0.0",
61
- "vue-tsc": "^1.0.9"
60
+ "vue-loader": "^17.0.1",
61
+ "vue-tsc": "^1.0.16"
62
62
  },
63
63
  "jest": {
64
64
  "preset": "ts-jest",
@@ -10,6 +10,7 @@
10
10
 
11
11
  size === EBadgeSize.MEDIUM && 'px-xs py-xs',
12
12
  size === EBadgeSize.LARGE && 'px-sm py-xs',
13
+ elipsis && 'max-w-full',
13
14
  ]"
14
15
  >
15
16
  <ui-icon
@@ -23,6 +24,9 @@
23
24
  :size="getBadgeSize"
24
25
  :weight="ETextWeight.SEMI_BOLD"
25
26
  class="whitespace-nowrap"
27
+ :class="[
28
+ elipsis && 'overflow-hidden overflow-ellipsis',
29
+ ]"
26
30
  >
27
31
  <slot />
28
32
  </ui-typography>
@@ -40,6 +44,7 @@
40
44
  size?: EBadgeSize;
41
45
  kind?: EBadgeKind;
42
46
  icon?: TIconName;
47
+ elipsis?: boolean;
43
48
  }>();
44
49
 
45
50
  const slots = useSlots();
@@ -37,7 +37,7 @@ const Template: Story<TComponentProps> = (args) => ({
37
37
  <ui-card-cta v-bind="args">
38
38
  <template #icon>
39
39
  <ui-icon-wrapper>
40
- <ui-icon :icon-name="['far', 'fa-face-smile']" :size=ESize.MD />
40
+ <ui-icon :icon-name="['far', 'face-smile']" :size=ESize.MD />
41
41
  </ui-icon-wrapper>
42
42
  </template>
43
43
 
@@ -30,7 +30,7 @@ const Template: Story<TComponentProps> = (args) => ({
30
30
  },
31
31
  // And then the `args` are bound to your component with `v-bind="args"`
32
32
  template: `
33
- <ui-icon v-bind="args" :icon-name="['far', 'fa-face-smile']" />
33
+ <ui-icon v-bind="args" :icon-name="['far', 'face-smile']" />
34
34
  `,
35
35
  });
36
36
 
@@ -46,7 +46,7 @@ const Template: Story<TComponentProps> = (args) => ({
46
46
  </ui-icon-wrapper>
47
47
 
48
48
  <ui-icon-wrapper kind="primary" v-bind="args">
49
- <ui-icon :icon-name="['far', 'fa-face-smile']" :size=ESize.LG />
49
+ <ui-icon :icon-name="['far', 'face-smile']" :size=ESize.LG />
50
50
  <UiNotificationBadge slot="badge" :origin=EBadgeOrigin.DEFAULT>
51
51
  2
52
52
  </UiNotificationBadge>
@@ -15,7 +15,7 @@
15
15
  <slot name="icon">
16
16
  <ui-icon
17
17
  v-if="icon"
18
- class="bg-white"
18
+ class="bg-white z-[1] mt-[0.2em]"
19
19
  :icon-name="icon"
20
20
  :size="ESize.SM"
21
21
  />
@@ -30,7 +30,7 @@ const Template: Story<TComponentProps> = (args) => ({
30
30
  },
31
31
 
32
32
  template: /*html*/`
33
- <ui-order-card v-bind="args" :iconName="['far', 'fa-face-smile']">
33
+ <ui-order-card v-bind="args" :iconName="['far', 'face-smile']">
34
34
  <template #title>
35
35
  Thank you for your order!
36
36
  </template>
@@ -44,7 +44,7 @@ const Template: Story<TComponentProps> = (args) => ({
44
44
  </template>
45
45
  </ui-order-card>
46
46
 
47
-
47
+
48
48
  `,
49
49
  });
50
50
 
@@ -1,6 +1,10 @@
1
1
  <template>
2
2
  <label
3
- class="ui-radio-fancy relative"
3
+ class="
4
+ ui-radio-fancy
5
+ relative
6
+
7
+ "
4
8
  :class="disabled && 'pointer-events-none'"
5
9
  >
6
10
  <input
@@ -8,7 +12,7 @@
8
12
  type="radio"
9
13
  :name="name"
10
14
  :value="value"
11
- class="peer group appearance-none absolute invisible"
15
+ class="peer group appearance-none absolute"
12
16
  >
13
17
  <div
14
18
  class="
@@ -23,38 +27,32 @@
23
27
  hover:border-secondary-alt-700
24
28
  cursor-pointer
25
29
  rounded-xl
30
+
31
+ before:absolute
32
+ before:-z-10
33
+ before:box-border
34
+ before:rounded-[16px]
35
+ before:bg-primary-300
36
+
26
37
  peer-checked:border-transparent
27
38
  peer-checked:active:shadow-border-primary
39
+ peer-checked:active:before:-top-xs
40
+ peer-checked:active:before:-bottom-xs
41
+ peer-checked:active:before:-left-xs
42
+ peer-checked:active:before:-right-xs
43
+
28
44
  peer-checked:hover:shadow-border-selected
29
45
  peer-checked:shadow-selected-shadow
30
- peer-focus:before:absolute
31
- peer-focus:before:-top-xs
32
- peer-focus:before:-bottom-xs
33
- peer-focus:before:-left-xs
34
- peer-focus:before:-right-xs
35
- peer-focus:before:bg-primary-300
36
- peer-focus:before:rounded-[20px]
37
- peer-focus:before:box-border
38
- peer-focus:before:-z-10
39
- peer-active:before:absolute
46
+
40
47
  peer-active:before:-top-xxs
41
48
  peer-active:before:-bottom-xxs
42
49
  peer-active:before:-left-xxs
43
50
  peer-active:before:-right-xxs
44
- peer-active:before:bg-primary-300
45
- peer-active:before:rounded-[16px]
46
- peer-active:before:box-border
47
- peer-active:before:-z-10
48
- active:bg-secondary-alt-200
49
- active:before:absolute
50
- active:before:-top-xs
51
- active:before:-bottom-xs
52
- active:before:-left-xs
53
- active:before:-right-xs
54
- active:before:bg-primary-300
55
- active:before:rounded-[20px]
56
- active:before:box-border
57
- active:before:-z-10
51
+
52
+ peer-focus:before:-top-xs
53
+ peer-focus:before:-bottom-xs
54
+ peer-focus:before:-left-xs
55
+ peer-focus:before:-right-xs
58
56
  "
59
57
  :class="disabled && 'pointer-events-none'"
60
58
  >
@@ -25,7 +25,7 @@ const Template = (args) => ({
25
25
  return { args };
26
26
  },
27
27
  template:/*html*/`
28
- <ui-result-card-range :icon-name="['far', 'fa-face-smile']" :title="args.title">
28
+ <ui-result-card-range :icon-name="['far', 'face-smile']" :title="args.title">
29
29
  {{args.slot}}
30
30
  </ui-result-card-range>
31
31
  `,
@@ -38,18 +38,18 @@ const TemplateAll = (args) => ({
38
38
  },
39
39
  template:/*html*/`
40
40
  <div class="ui-result-card-range grid gap-sm w-full">
41
-
41
+
42
42
  <ui-result-card-range style="grid-column: 1 / 1"
43
- :icon-name="['far', 'fa-face-smile']" :title="args.title">
43
+ :icon-name="['far', 'face-smile']" :title="args.title">
44
44
  {{args.slot}}
45
45
  </ui-result-card-range>
46
46
 
47
47
  <ui-result-card-range style="grid-column: 2 / 2"
48
- :icon-name="['far', 'fa-face-smile']" :title="args.title">
48
+ :icon-name="['far', 'face-smile']" :title="args.title">
49
49
  {{args.slot}}
50
50
 
51
51
  </ui-result-card-range>
52
-
52
+
53
53
  <ui-result-card-range style="grid-column: 1 / 3; flex-direction: row; justify-content: space-between;">
54
54
 
55
55
  <b>25/02/2022</b>
@@ -62,7 +62,7 @@ const TemplateAll = (args) => ({
62
62
  });
63
63
 
64
64
  export const singleCard = Template.bind({
65
-
65
+
66
66
  });
67
67
 
68
68
  export const FullCard = TemplateAll.bind({});
@@ -1,4 +1,3 @@
1
- export { default } from "./ui-table.vue";
2
1
  export { ETextAlign, ETextWeight } from "../ui-typography";
3
2
  export { default as UiTableCell } from "./ui-table-cell";
4
3
  export { default as UiTableRow, ERowKind } from "./ui-table-row";