@maltjoy/core-vue 3.26.0 → 3.27.1

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.
Files changed (96) hide show
  1. package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +1 -2
  2. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +4 -3
  3. package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +4 -6
  4. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
  5. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +14 -4
  6. package/dist/components/JoyBadge/JoyBadge.types.d.ts +1 -2
  7. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +14 -8
  8. package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +8 -4
  9. package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +2 -0
  10. package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +20 -7
  11. package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +12 -6
  12. package/dist/components/JoyButton/JoyButton.types.d.ts +4 -20
  13. package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
  14. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +10 -3
  15. package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +10 -4
  16. package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +12 -4
  17. package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +2 -3
  18. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +6 -0
  19. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +11 -6
  20. package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
  21. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +30 -8
  22. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +56 -20
  23. package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +10 -3
  24. package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +1 -2
  25. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +42 -12
  26. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +84 -30
  27. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
  28. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +29 -22
  29. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
  30. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +22 -21
  31. package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +8 -2
  32. package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +10 -2
  33. package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +6 -2
  34. package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +2 -4
  35. package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +8 -0
  36. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +2 -4
  37. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +21 -9
  38. package/dist/components/JoyIcon/JoyIcon.types.d.ts +3 -4
  39. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +9 -6
  40. package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +4 -3
  41. package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +1 -2
  42. package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +9 -6
  43. package/dist/components/JoyInput/JoyInput.types.d.ts +2 -3
  44. package/dist/components/JoyInput/VJoyInput.vue.d.ts +10 -7
  45. package/dist/components/JoyLabel/JoyLabel.types.d.ts +2 -3
  46. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +10 -7
  47. package/dist/components/JoyLink/JoyLink.types.d.ts +1 -2
  48. package/dist/components/JoyLink/VJoyLink.vue.d.ts +8 -7
  49. package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +6 -10
  50. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +16 -19
  51. package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +14 -6
  52. package/dist/components/JoyPanel/JoyPanel.types.d.ts +3 -5
  53. package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +30 -14
  54. package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
  55. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +5 -3
  56. package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
  57. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +20 -7
  58. package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -2
  59. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +14 -6
  60. package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -3
  61. package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +10 -2
  62. package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -2
  63. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +14 -6
  64. package/dist/components/JoySelect/JoySelect.types.d.ts +2 -3
  65. package/dist/components/JoySelect/VJoySelect.vue.d.ts +9 -4
  66. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +10 -65
  67. package/dist/components/JoySeparator/JoySeparator.types.d.ts +2 -3
  68. package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +2 -3
  69. package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -2
  70. package/dist/components/JoySnackbar/index.d.ts +1 -1
  71. package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -2
  72. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +2 -4
  73. package/dist/components/JoyStep/VJoyStep.vue.d.ts +14 -2
  74. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +10 -2
  75. package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +2 -0
  76. package/dist/components/JoyTag/JoyTag.types.d.ts +3 -5
  77. package/dist/components/JoyTag/VJoyTag.vue.d.ts +13 -3
  78. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +34 -19
  79. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -2
  80. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
  81. package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -2
  82. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +67 -15
  83. package/dist/components/JoyText/VJoyText.vue.d.ts +6 -2
  84. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +6 -5
  85. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +6 -2
  86. package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
  87. package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +20 -6
  88. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -10
  89. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +19 -18
  90. package/dist/components/main.d.ts +1 -1
  91. package/dist/helpers/index.d.ts +2 -2
  92. package/dist/joy-vue.js +2091 -2152
  93. package/dist/joy-vue.umd.cjs +4 -4
  94. package/dist/style.css +1 -1
  95. package/dist/types/index.d.ts +7 -10
  96. package/package.json +20 -24
@@ -3,20 +3,17 @@
3
3
  * We use the same naming convention for size, levels or colors, so let's gather everything here.
4
4
  * Each component will start from these types and enrich them locally to pick what's nedeed.
5
5
  */
6
- export declare const GENERIC_VARIANTS: readonly ["primary", "secondary"];
7
- export declare const SIZES: readonly ["xlarge", "large", "medium", "small", "xsmall", "xxsmall"];
8
- export declare const LEVELS: readonly ["neutral", "success", "info", "warning", "error"];
9
- export declare const THEMES: readonly ["AI"];
10
- export declare const POSITIONS: readonly ["left", "right"];
6
+ export type TGenericVariants = 'primary' | 'secondary';
7
+ export type TSizes = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall' | 'xxsmall';
8
+ export type TLevels = 'neutral' | 'success' | 'info' | 'warning' | 'error';
9
+ export type TPositions = 'left' | 'right';
11
10
  export type BrandColors = 'primary-brand' | 'secondary-brand';
12
- export type FunctionalColors = Exclude<(typeof LEVELS)[number], 'neutral'>;
11
+ export type FunctionalColors = Exclude<TLevels, 'neutral'>;
13
12
  export type ProductColors = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'neutral';
14
13
  export type ProductColorsExtended = ProductColors | FunctionalColors | 'white';
15
14
  export type Colors = BrandColors | ProductColorsExtended;
16
- export declare const TARGETS: readonly ["_blank", "_self", "_parent", "_body"];
17
- export type Targets = (typeof TARGETS)[number];
18
- export type FormSizes = Extract<(typeof SIZES)[number], 'medium' | 'small' | 'xsmall' | 'xxsmall'>;
19
- export declare const FORM_SIZES: FormSizes[];
15
+ export type Targets = '_blank' | '_self' | '_parent' | '_body';
16
+ export type FormSizes = Extract<TSizes, 'medium' | 'small' | 'xsmall' | 'xxsmall'>;
20
17
  export declare enum Profiles {
21
18
  DEFAULT = "default",
22
19
  STRATEGY = "strategy"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maltjoy/core-vue",
3
- "version": "3.26.0",
3
+ "version": "3.27.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@floating-ui/dom": "1.5.3",
23
23
  "@floating-ui/vue": "^1.0.2",
24
- "@maltjoy/icons": "3.26.0",
25
- "@maltjoy/themes": "3.26.0",
26
- "@maltjoy/css": "3.26.0",
24
+ "@maltjoy/icons": "3.27.1",
25
+ "@maltjoy/themes": "3.27.1",
26
+ "@maltjoy/css": "3.27.1",
27
27
  "@vueuse/components": "10.8.0",
28
28
  "@vueuse/core": "10.8.0",
29
29
  "@vueuse/integrations": "10.5.0",
@@ -34,30 +34,26 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/core": "7.20.12",
37
+ "@chromatic-com/storybook": "^1",
37
38
  "@rushstack/eslint-patch": "^1.2.0",
38
- "@storybook/addon-a11y": "7.6.8",
39
- "@storybook/addon-docs": "7.6.8",
40
- "@storybook/addon-essentials": "7.6.8",
41
- "@storybook/addon-interactions": "7.6.8",
42
- "@storybook/addon-links": "7.6.8",
43
- "@storybook/addon-viewport": "7.6.8",
44
- "@storybook/addons": "7.6.8",
45
- "@storybook/blocks": "7.6.8",
46
- "@storybook/channel-postmessage": "7.6.8",
47
- "@storybook/channel-websocket": "7.6.8",
48
- "@storybook/client-api": "7.6.8",
49
- "@storybook/jest": "^0.2.1",
50
- "@storybook/preview-web": "7.6.8",
51
- "@storybook/testing-library": "0.2.0",
52
- "@storybook/vue3": "7.6.8",
53
- "@storybook/vue3-vite": "7.6.8",
39
+ "@storybook/addon-a11y": "8.0.8",
40
+ "@storybook/addon-docs": "8.0.8",
41
+ "@storybook/addon-essentials": "8.0.8",
42
+ "@storybook/addon-interactions": "8.0.8",
43
+ "@storybook/addon-links": "8.0.8",
44
+ "@storybook/addon-mdx-gfm": "8.0.8",
45
+ "@storybook/addon-viewport": "8.0.8",
46
+ "@storybook/blocks": "8.0.8",
47
+ "@storybook/theming": "8.0.8",
48
+ "@storybook/vue3": "8.0.8",
49
+ "@storybook/vue3-vite": "8.0.8",
54
50
  "@typescript-eslint/parser": "5.59.11",
55
51
  "@vitejs/plugin-vue": "^4.0.0",
56
52
  "@vitest/coverage-istanbul": "^0.28.4",
57
53
  "@vue/runtime-core": "3.3.4",
58
54
  "@vue/runtime-dom": "3.3.4",
59
55
  "@vue/test-utils": "^2.2.10",
60
- "chromatic": "^7.6.0",
56
+ "chromatic": "11.3.0",
61
57
  "eslint": "8.42.0",
62
58
  "eslint-config-prettier": "8.8.0",
63
59
  "eslint-plugin-vue": "9.14.1",
@@ -67,9 +63,9 @@
67
63
  "react": "17.0.2",
68
64
  "react-dom": "17.0.2",
69
65
  "sass": "^1.60.0",
70
- "storybook": "7.6.8",
66
+ "storybook": "8.0.8",
71
67
  "typescript": "5.3.3",
72
- "vite": "^4.0.0",
68
+ "vite": "5.2.10",
73
69
  "vitest": "^0.28.4",
74
70
  "vue-tsc": "1.8.27"
75
71
  },
@@ -89,7 +85,7 @@
89
85
  "storybook": "pnpm prepare && storybook dev",
90
86
  "typecheck": "vue-tsc --noEmit",
91
87
  "build-storybook": "pnpm prepare && storybook build",
92
- "preview-storybook": "pnpm build-storybook && pnpm dlx http-server ./storybook-static/",
88
+ "preview-storybook": "pnpm storybook build && pnpm dlx http-server ./storybook-static/",
93
89
  "generate:components-types": "node src/tasks/generate-components-types.mjs",
94
90
  "generate:components-autoimports": "node src/tasks/generate-components-autoimports.mjs"
95
91
  }