vueless 0.0.535 → 0.0.537

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/package.json +1 -1
  2. package/types.ts +7 -0
  3. package/ui.button/UButton.vue +1 -1
  4. package/ui.button/types.ts +1 -1
  5. package/ui.button-link/ULink.vue +1 -1
  6. package/ui.button-link/types.ts +1 -1
  7. package/ui.button-toggle/UToggle.vue +1 -1
  8. package/ui.button-toggle/types.ts +1 -1
  9. package/ui.button-toggle-item/UToggleItem.vue +1 -1
  10. package/ui.button-toggle-item/types.ts +1 -1
  11. package/ui.container-accordion/UAccordion.vue +1 -1
  12. package/ui.container-accordion/types.ts +1 -1
  13. package/ui.container-card/UCard.vue +1 -1
  14. package/ui.container-card/types.ts +1 -1
  15. package/ui.container-col/UCol.vue +1 -1
  16. package/ui.container-col/types.ts +1 -1
  17. package/ui.container-divider/UDivider.vue +1 -1
  18. package/ui.container-divider/types.ts +1 -1
  19. package/ui.container-group/UGroup.vue +1 -1
  20. package/ui.container-group/types.ts +1 -1
  21. package/ui.container-modal/UModal.vue +1 -1
  22. package/ui.container-modal/types.ts +1 -1
  23. package/ui.container-modal-confirm/UModalConfirm.vue +1 -1
  24. package/ui.container-modal-confirm/types.ts +1 -1
  25. package/ui.container-page/UPage.vue +1 -1
  26. package/ui.container-page/types.ts +1 -1
  27. package/ui.container-row/URow.vue +1 -1
  28. package/ui.container-row/types.ts +1 -1
  29. package/ui.data-table/UTable.vue +6 -6
  30. package/ui.data-table/config.ts +5 -4
  31. package/ui.data-table/useAttrs.ts +3 -2
  32. package/ui.form-checkbox/UCheckbox.vue +82 -187
  33. package/ui.form-checkbox/storybook/Docs.mdx +2 -2
  34. package/ui.form-checkbox/storybook/{stories.js → stories.ts} +14 -6
  35. package/ui.form-checkbox/types.ts +106 -0
  36. package/ui.form-checkbox/useAttrs.ts +35 -0
  37. package/ui.form-checkbox-group/UCheckboxGroup.vue +63 -137
  38. package/ui.form-checkbox-group/storybook/Docs.mdx +2 -2
  39. package/ui.form-checkbox-group/storybook/{stories.js → stories.ts} +19 -6
  40. package/ui.form-checkbox-group/types.ts +83 -0
  41. package/ui.form-checkbox-group/useAttrs.ts +18 -0
  42. package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +34 -97
  43. package/ui.form-checkbox-multi-state/storybook/Docs.mdx +2 -2
  44. package/ui.form-checkbox-multi-state/storybook/{stories.js → stories.ts} +16 -5
  45. package/ui.form-checkbox-multi-state/types.ts +71 -0
  46. package/ui.form-checkbox-multi-state/useAttrs.ts +41 -0
  47. package/ui.form-select/config.js +3 -3
  48. package/ui.image-avatar/UAvatar.vue +1 -1
  49. package/ui.image-avatar/types.ts +1 -1
  50. package/ui.image-icon/UIcon.vue +1 -1
  51. package/ui.image-icon/types.ts +1 -1
  52. package/ui.loader/ULoader.vue +1 -1
  53. package/ui.loader/types.ts +1 -1
  54. package/ui.loader-overlay/ULoaderOverlay.vue +1 -1
  55. package/ui.loader-overlay/types.ts +1 -1
  56. package/ui.loader-progress/ULoaderProgress.vue +1 -1
  57. package/ui.loader-progress/types.ts +1 -1
  58. package/ui.navigation-pagination/UPagination.vue +1 -1
  59. package/ui.navigation-pagination/types.ts +1 -1
  60. package/ui.navigation-progress/StepperProgress.vue +1 -1
  61. package/ui.navigation-progress/UProgress.vue +1 -1
  62. package/ui.navigation-progress/types.ts +2 -2
  63. package/ui.navigation-tab/UTab.vue +1 -1
  64. package/ui.navigation-tab/types.ts +1 -1
  65. package/ui.navigation-tabs/UTabs.vue +1 -1
  66. package/ui.navigation-tabs/types.ts +1 -1
  67. package/ui.other-dot/UDot.vue +1 -1
  68. package/ui.other-dot/types.ts +1 -1
  69. package/ui.text-alert/UAlert.vue +1 -1
  70. package/ui.text-alert/types.ts +1 -1
  71. package/ui.text-badge/UBadge.vue +1 -1
  72. package/ui.text-badge/types.ts +1 -1
  73. package/ui.text-block/UText.vue +1 -1
  74. package/ui.text-block/types.ts +1 -1
  75. package/ui.text-empty/UEmpty.vue +1 -1
  76. package/ui.text-empty/types.ts +1 -1
  77. package/ui.text-file/UFile.vue +1 -1
  78. package/ui.text-file/types.ts +1 -1
  79. package/ui.text-files/UFiles.vue +1 -1
  80. package/ui.text-files/types.ts +1 -1
  81. package/ui.text-header/UHeader.vue +1 -1
  82. package/ui.text-header/types.ts +1 -1
  83. package/ui.text-money/UMoney.vue +1 -1
  84. package/ui.text-money/types.ts +1 -1
  85. package/ui.text-notify/UNotify.vue +1 -1
  86. package/ui.text-notify/types.ts +1 -1
  87. package/web-types.json +147 -184
  88. package/ui.form-checkbox/useAttrs.js +0 -23
  89. package/ui.form-checkbox-group/useAttrs.js +0 -15
  90. package/ui.form-checkbox-multi-state/useAttrs.js +0 -28
  91. /package/ui.form-checkbox/{config.js → config.ts} +0 -0
  92. /package/ui.form-checkbox/{constants.js → constants.ts} +0 -0
  93. /package/ui.form-checkbox-group/{config.js → config.ts} +0 -0
  94. /package/ui.form-checkbox-group/{constants.js → constants.ts} +0 -0
  95. /package/ui.form-checkbox-multi-state/{config.js → config.ts} +0 -0
  96. /package/ui.form-checkbox-multi-state/{constants.js → constants.ts} +0 -0
@@ -1,23 +0,0 @@
1
- import { computed } from "vue";
2
- import useUI from "../composables/useUI.ts";
3
-
4
- import defaultConfig from "./config.js";
5
-
6
- export default function useAttrs(props, { checkboxColor, checkboxSize }) {
7
- const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
8
-
9
- const mutatedProps = computed(() => ({
10
- color: checkboxColor.value,
11
- size: checkboxSize.value,
12
- label: Boolean(props.label),
13
- error: Boolean(props.error),
14
- }));
15
-
16
- const keysAttrs = getKeysAttrs(mutatedProps);
17
-
18
- return {
19
- config,
20
- ...keysAttrs,
21
- hasSlotContent,
22
- };
23
- }
@@ -1,15 +0,0 @@
1
- import useUI from "../composables/useUI.ts";
2
-
3
- import defaultConfig from "./config.js";
4
-
5
- export default function useAttrs(props) {
6
- const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
7
-
8
- const keysAttrs = getKeysAttrs();
9
-
10
- return {
11
- config,
12
- ...keysAttrs,
13
- hasSlotContent,
14
- };
15
- }
@@ -1,28 +0,0 @@
1
- import { computed } from "vue";
2
- import useUI from "../composables/useUI.ts";
3
-
4
- import defaultConfig from "./config.js";
5
-
6
- export default function useAttrs(props, { selected }) {
7
- const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
8
-
9
- const keysAttrs = getKeysAttrs();
10
-
11
- const { multiStateCheckboxAttrs: checkboxAttrs } = keysAttrs;
12
-
13
- keysAttrs.multiStateCheckboxAttrs = computed(() => {
14
- if (selected.value.icon) {
15
- checkboxAttrs.value.config = checkboxAttrs.value.config || {};
16
- checkboxAttrs.value.config.defaults = checkboxAttrs.value.config.defaults || {};
17
- checkboxAttrs.value.config.defaults.checkedIcon = selected.value.icon;
18
- }
19
-
20
- return checkboxAttrs.value;
21
- });
22
-
23
- return {
24
- config,
25
- ...keysAttrs,
26
- hasSlotContent,
27
- };
28
- }
File without changes
File without changes
File without changes