eco-vue-js 0.10.31 → 0.10.33

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 (124) hide show
  1. package/dist/assets/icons/sax/IconAddSquare.svg.js +2 -2
  2. package/dist/assets/icons/sax/{IconOutlineEdit.svg.js → IconEditSquare.svg.js} +6 -6
  3. package/dist/assets/icons/sax/IconFilter.svg.js +2 -2
  4. package/dist/assets/icons/sax/{IconOutlineFolderAdd.svg.js → IconFolderAdd.svg.js} +5 -5
  5. package/dist/assets/icons/sax/{IconOutlineCloseCircle.svg.js → IconMoon.svg.js} +4 -4
  6. package/dist/assets/icons/sax/IconSettings.svg.js +3 -3
  7. package/dist/assets/icons/sax/{IconOutlineCheckCircle.svg.js → IconSun.svg.js} +6 -6
  8. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +2 -0
  9. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  10. package/dist/components/ActionsBar/WActionsBar.vue.js +37 -16
  11. package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -1
  12. package/dist/components/Button/WButton.vue.d.ts +0 -1
  13. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  14. package/dist/components/Button/WButton.vue.js +9 -7
  15. package/dist/components/Button/WButtonAction.vue.d.ts +1 -1
  16. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  17. package/dist/components/Button/WButtonAction.vue.js +38 -51
  18. package/dist/components/Button/WButtonCopy.vue.js +1 -1
  19. package/dist/components/Button/WButtonGroup.vue.js +0 -1
  20. package/dist/components/Button/WButtonMore.vue.js +1 -1
  21. package/dist/components/Button/WButtonSelection.vue.js +1 -1
  22. package/dist/components/Button/WButtonSelectionAction.vue.js +2 -2
  23. package/dist/components/Button/types.d.ts +0 -1
  24. package/dist/components/Button/types.d.ts.map +1 -1
  25. package/dist/components/Checkbox/WCheckbox.vue.js +3 -3
  26. package/dist/components/Chip/WChip.vue.js +1 -1
  27. package/dist/components/DatePicker/components/CalendarDay.vue.js +3 -3
  28. package/dist/components/DatePicker/components/CalendarToggle.vue.js +2 -2
  29. package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
  30. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  31. package/dist/components/Dropdown/WDropdown.vue.js +10 -4
  32. package/dist/components/Dropdown/utils/DropdownStyle.d.ts +34 -0
  33. package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -1
  34. package/dist/components/Dropdown/utils/DropdownStyle.js +23 -1
  35. package/dist/components/Expansion/WExpansionItem.vue.d.ts +6 -2
  36. package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
  37. package/dist/components/Expansion/WExpansionItem.vue.js +21 -7
  38. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
  39. package/dist/components/FieldWrapper/components/FilterButton.vue.js +1 -1
  40. package/dist/components/FilePicker/components/FilePickerSvg.vue.js +1 -1
  41. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
  42. package/dist/components/FilterWrapper/WFilterWrapper.vue.js +26 -30
  43. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +0 -1
  44. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +2 -0
  45. package/dist/components/InfoCard/WInfoCardNegative.vue.js +1 -1
  46. package/dist/components/InfoCard/models/utils.js +2 -2
  47. package/dist/components/Input/WInput.vue.js +5 -5
  48. package/dist/components/Input/WInputAsync.vue.js +2 -2
  49. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  50. package/dist/components/Link/WLink.vue.js +5 -4
  51. package/dist/components/Link/WLinkArrow.vue.js +1 -1
  52. package/dist/components/List/WList.vue.d.ts +1 -1
  53. package/dist/components/List/WList.vue.d.ts.map +1 -1
  54. package/dist/components/List/WListCard.vue.js +8 -8
  55. package/dist/components/List/components/HeaderSettingsModeButton.vue.js +1 -1
  56. package/dist/components/MenuItem/WMenuItem.vue.js +1 -1
  57. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  58. package/dist/components/Modal/WModal.vue.js +6 -5
  59. package/dist/components/Modal/WModalExport.vue.js +1 -1
  60. package/dist/components/Modal/WModalImport.vue.js +1 -1
  61. package/dist/components/Modal/use/useIsBackdrop.d.ts +2 -0
  62. package/dist/components/Modal/use/useIsBackdrop.d.ts.map +1 -0
  63. package/dist/components/Modal/use/useIsBackdrop.js +8 -0
  64. package/dist/components/Nav/WNavBar.vue.js +1 -1
  65. package/dist/components/Nav/WNavItem.vue.js +2 -2
  66. package/dist/components/Page/WPage.vue.d.ts.map +1 -1
  67. package/dist/components/Progress/WProgress.vue.js +1 -1
  68. package/dist/components/Select/components/SelectOption.vue.js +1 -1
  69. package/dist/components/Shine/WShine.vue.d.ts +5 -0
  70. package/dist/components/Shine/WShine.vue.d.ts.map +1 -0
  71. package/dist/components/Shine/WShine.vue.js +28 -0
  72. package/dist/components/Shine/WShine.vue2.js +5 -0
  73. package/dist/components/Shine/WShineEffect.vue.d.ts +3 -0
  74. package/dist/components/Shine/WShineEffect.vue.d.ts.map +1 -0
  75. package/dist/components/Shine/WShineEffect.vue.js +42 -0
  76. package/dist/components/Shine/WShineEffect.vue2.js +5 -0
  77. package/dist/components/Shine/use/useShine.d.ts +4 -0
  78. package/dist/components/Shine/use/useShine.d.ts.map +1 -0
  79. package/dist/components/Shine/use/useShine.js +8 -0
  80. package/dist/components/Tabs/WTabs.vue.d.ts +16 -8
  81. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  82. package/dist/components/Tabs/WTabs.vue.js +1 -1
  83. package/dist/components/Tabs/components/TabTitleButton.vue.js +1 -1
  84. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  85. package/dist/components/Toggle/WToggle.vue.js +38 -25
  86. package/dist/components/Toggle/WToggleTheme.vue.d.ts +9 -0
  87. package/dist/components/Toggle/WToggleTheme.vue.d.ts.map +1 -0
  88. package/dist/components/Toggle/WToggleTheme.vue.js +37 -0
  89. package/dist/components/Toggle/WToggleTheme.vue2.js +5 -0
  90. package/dist/components/Toggle/types.d.ts +6 -0
  91. package/dist/components/Toggle/types.d.ts.map +1 -1
  92. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  93. package/dist/components/Tooltip/WTooltip.vue.js +0 -1
  94. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  95. package/dist/components/Tooltip/WTooltipContainer.vue.js +6 -5
  96. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
  97. package/dist/components/Tooltip/components/TooltipContainer.vue.js +35 -20
  98. package/dist/imports/componentsPlugin.d.ts +4 -1
  99. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  100. package/dist/imports/iconsSax.d.ts +4 -6
  101. package/dist/imports/iconsSax.d.ts.map +1 -1
  102. package/dist/imports/iconsSax.js +4 -6
  103. package/dist/main.js +5 -2
  104. package/dist/utils/HorizontalAlign.d.ts +2 -0
  105. package/dist/utils/HorizontalAlign.d.ts.map +1 -1
  106. package/dist/utils/HorizontalAlign.js +2 -0
  107. package/dist/utils/SemanticType.d.ts +36 -0
  108. package/dist/utils/SemanticType.d.ts.map +1 -1
  109. package/dist/utils/SemanticType.js +55 -1
  110. package/dist/utils/Tooltip.d.ts +0 -1
  111. package/dist/utils/Tooltip.d.ts.map +1 -1
  112. package/dist/utils/utils.d.ts +4 -0
  113. package/dist/utils/utils.d.ts.map +1 -1
  114. package/dist/utils/utils.js +6 -1
  115. package/package.json +10 -1
  116. package/tailwind-base/index.ts +4 -10
  117. package/tailwind-base/plugins/default.ts +15 -0
  118. package/tailwind-base/theme/animations.ts +9 -0
  119. package/tailwind-base/theme/sizes.ts +1 -0
  120. package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +0 -24
  121. package/dist/assets/icons/sax/IconOutlineStar.svg.js +0 -24
  122. package/dist/components/Button/models/semanticTypeStylesMap.d.ts +0 -6
  123. package/dist/components/Button/models/semanticTypeStylesMap.d.ts.map +0 -1
  124. package/dist/components/Button/models/semanticTypeStylesMap.js +0 -32
@@ -121,6 +121,11 @@ var ListMode = /* @__PURE__ */ ((ListMode2) => {
121
121
  ListMode2["GRID"] = "grid";
122
122
  return ListMode2;
123
123
  })(ListMode || {});
124
+ var Theme = /* @__PURE__ */ ((Theme2) => {
125
+ Theme2["LIGHT"] = "light";
126
+ Theme2["DARK"] = "dark";
127
+ return Theme2;
128
+ })(Theme || {});
124
129
  const unwrapSlots = (slots) => {
125
130
  return slots.flatMap((slot) => {
126
131
  if (Array.isArray(slot?.children)) return unwrapSlots(slot.children);
@@ -129,4 +134,4 @@ const unwrapSlots = (slots) => {
129
134
  });
130
135
  };
131
136
 
132
- export { ListMode, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle, unwrapSlots };
137
+ export { ListMode, Theme, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, percentFormatter, set, throttle, unwrapSlots };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.10.31",
7
+ "version": "0.10.33",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "dev": "vite build --mode development --watch",
@@ -385,6 +385,12 @@
385
385
  "./dist/components/Select/types": {
386
386
  "import": "./dist/components/Select/types.d.ts"
387
387
  },
388
+ "./dist/components/Shine/WShine.vue": {
389
+ "import": "./dist/components/Shine/WShine.vue.js"
390
+ },
391
+ "./dist/components/Shine/WShineEffect.vue": {
392
+ "import": "./dist/components/Shine/WShineEffect.vue.js"
393
+ },
388
394
  "./dist/components/Skeleton/WSkeleton.vue": {
389
395
  "import": "./dist/components/Skeleton/WSkeleton.vue.js"
390
396
  },
@@ -406,6 +412,9 @@
406
412
  "./dist/components/Toggle/WToggle.vue": {
407
413
  "import": "./dist/components/Toggle/WToggle.vue.js"
408
414
  },
415
+ "./dist/components/Toggle/WToggleTheme.vue": {
416
+ "import": "./dist/components/Toggle/WToggleTheme.vue.js"
417
+ },
409
418
  "./dist/components/Toggle/types": {
410
419
  "import": "./dist/components/Toggle/types.d.ts"
411
420
  },
@@ -23,16 +23,10 @@ const tailwindBase = {
23
23
  default: '#ffffff',
24
24
  'default-dark': colors.zinc['900'], // '#101827',
25
25
 
26
- primary: {
27
- darkest: '#23222e',
28
- dark: '#5b4fc4', // '#4d42ad',
29
- default: '#9087e2',
30
- light: '#f4f3fc',
31
- },
32
-
33
- secondary: {
34
- default: '#ffffff',
35
- },
26
+ 'primary-darkest': '#23222e',
27
+ 'primary-dark': '#5b4fc4',
28
+ primary: '#9087e2',
29
+ 'primary-light': '#f4f3fc',
36
30
 
37
31
  black: {
38
32
  default: '#333333',
@@ -473,6 +473,21 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
473
473
  },
474
474
  )
475
475
 
476
+ matchUtilities(
477
+ {
478
+ 'w-svg-stroke-width': value => ({'& path': {'stroke-width': value}}),
479
+ },
480
+ {
481
+ values: {
482
+ '3xs': '0.5',
483
+ '2xs': '0.75',
484
+ xs: '1',
485
+ sm: '1.25',
486
+ md: '1.5',
487
+ },
488
+ },
489
+ )
490
+
476
491
  matchUtilities(
477
492
  {
478
493
  'w-list-gap': value => ({'--w-list-gap': value}),
@@ -8,6 +8,14 @@ export default {
8
8
  transform: 'translateX(100%)',
9
9
  },
10
10
  },
11
+ 'ticker-rare': {
12
+ '0%, 45%': {
13
+ transform: 'translateX(-100%)',
14
+ },
15
+ '55%, 100%': {
16
+ transform: 'translateX(100%)',
17
+ },
18
+ },
11
19
 
12
20
  'move-horizontal': {
13
21
  from: {
@@ -77,6 +85,7 @@ export default {
77
85
  },
78
86
  animation: {
79
87
  ticker: 'ticker var(--tiker-duration, 0.8s) linear infinite',
88
+ 'ticker-rare': 'ticker-rare var(--tiker-duration, 10s) linear infinite',
80
89
  'move-horizontal': 'move-horizontal var(--tiker-duration, 0.8s) linear infinite',
81
90
  shake: 'shake .6s linear infinite',
82
91
  'border-rotate': 'border-rotate linear infinite 10s',
@@ -18,6 +18,7 @@ const newValues = {
18
18
  }
19
19
 
20
20
  const extend = {
21
+ 0.75: '0.1875rem',
21
22
  1.25: '0.3125rem',
22
23
  4.5: '1.125rem',
23
24
  6: '1.5rem',
@@ -1,24 +0,0 @@
1
- import { createElementBlock, openBlock, createElementVNode } from 'vue';
2
-
3
- const _hoisted_1 = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- width: "20",
6
- height: "20",
7
- fill: "none",
8
- viewBox: "0 0 30 30"
9
- };
10
-
11
- function render(_ctx, _cache) {
12
- return (openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
13
- createElementVNode("path", {
14
- stroke: "currentColor",
15
- "stroke-linecap": "round",
16
- "stroke-linejoin": "round",
17
- "stroke-width": "1.5",
18
- d: "M27.5 15c0 6.9-5.6 12.5-12.5 12.5S3.888 20.55 3.888 20.55m0 0h5.65m-5.65 0v6.25M2.5 15C2.5 8.1 8.05 2.5 15 2.5c8.337 0 12.5 6.95 12.5 6.95m0 0V3.2m0 6.25h-5.55"
19
- }, null, -1)
20
- ])))
21
- }
22
- const IconOutlineRefresh = { render: render };
23
-
24
- export { IconOutlineRefresh as default, render };
@@ -1,24 +0,0 @@
1
- import { createElementBlock, openBlock, createElementVNode } from 'vue';
2
-
3
- const _hoisted_1 = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- width: "20",
6
- height: "20",
7
- fill: "none",
8
- viewBox: "0 0 30 30"
9
- };
10
-
11
- function render(_ctx, _cache) {
12
- return (openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
13
- createElementVNode("path", {
14
- stroke: "currentColor",
15
- "stroke-linecap": "round",
16
- "stroke-linejoin": "round",
17
- "stroke-width": "1.5",
18
- d: "m17.163 4.387 2.2 4.4c.3.613 1.1 1.2 1.775 1.313l3.987.662c2.55.425 3.15 2.275 1.313 4.1l-3.1 3.1c-.525.526-.813 1.538-.65 2.263l.887 3.837c.7 3.038-.912 4.213-3.6 2.625l-3.737-2.212c-.675-.4-1.788-.4-2.475 0l-3.738 2.212c-2.675 1.588-4.3.4-3.6-2.625l.888-3.837c.162-.725-.125-1.738-.65-2.263l-3.1-3.1c-1.825-1.825-1.238-3.674 1.312-4.1l3.988-.662c.662-.113 1.462-.7 1.762-1.313l2.2-4.4c1.2-2.387 3.15-2.387 4.338 0"
19
- }, null, -1)
20
- ])))
21
- }
22
- const IconOutlineStar = { render: render };
23
-
24
- export { IconOutlineStar as default, render };
@@ -1,6 +0,0 @@
1
- import { SemanticType } from '../../../utils/SemanticType';
2
- export declare const semanticTypeButtonStylesMap: Record<SemanticType, string>;
3
- export declare const semanticTypeChipsStylesMap: Record<SemanticType, string>;
4
- export declare const semanticTypeButtonBorderStylesMap: Record<SemanticType, string>;
5
- export declare const semanticTypeTextStylesMap: Record<SemanticType, string>;
6
- //# sourceMappingURL=semanticTypeStylesMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semanticTypeStylesMap.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/models/semanticTypeStylesMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOpE,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGnE,CAAA;AAED,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAO1E,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOlE,CAAA"}
@@ -1,32 +0,0 @@
1
- import { SemanticType } from '../../../utils/SemanticType.js';
2
-
3
- const semanticTypeButtonStylesMap = {
4
- [SemanticType.PRIMARY]: "bg-primary-default dark:bg-primary-dark text-secondary-default",
5
- [SemanticType.SECONDARY]: "bg-secondary-default dark:bg-default-dark text-accent",
6
- [SemanticType.NEGARIVE]: "bg-negative dark:bg-negative-dark text-secondary-default dark:text-default-dark",
7
- [SemanticType.POSITIVE]: "bg-positive dark:bg-positive-dark text-secondary-default dark:text-default-dark",
8
- [SemanticType.WARNING]: "bg-warning dark:bg-warning-dark text-black-default dark:text-default-dark ",
9
- [SemanticType.INFO]: "bg-info dark:bg-info-dark text-secondary-default dark:text-default-dark"
10
- };
11
- const semanticTypeChipsStylesMap = {
12
- ...semanticTypeButtonStylesMap,
13
- [SemanticType.SECONDARY]: "bg-gray-200 dark:bg-gray-800 text-description"
14
- };
15
- const semanticTypeButtonBorderStylesMap = {
16
- [SemanticType.PRIMARY]: "border border-solid border-primary-default dark:border-primary-dark",
17
- [SemanticType.SECONDARY]: "border border-solid border-gray-300 dark:border-gray-700",
18
- [SemanticType.NEGARIVE]: "border border-solid border-negative dark:border-negative-dark",
19
- [SemanticType.POSITIVE]: "border border-solid border-positive dark:border-positive-dark",
20
- [SemanticType.WARNING]: "border border-solid border-warning dark:border-warning-dark",
21
- [SemanticType.INFO]: "border border-solid border-info dark:border-info-dark"
22
- };
23
- const semanticTypeTextStylesMap = {
24
- [SemanticType.PRIMARY]: "text-primary-default dark:text-primary-dark",
25
- [SemanticType.SECONDARY]: "text-description",
26
- [SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
27
- [SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
28
- [SemanticType.WARNING]: "text-warning dark:text-warning-dark",
29
- [SemanticType.INFO]: "text-info dark:text-info-dark"
30
- };
31
-
32
- export { semanticTypeButtonBorderStylesMap, semanticTypeButtonStylesMap, semanticTypeChipsStylesMap, semanticTypeTextStylesMap };