@volverjs/ui-vue 0.0.9-beta.8 → 0.0.9

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 (87) hide show
  1. package/auto-imports.d.ts +2 -2
  2. package/dist/components/VvAccordion/VvAccordion.es.js +8 -7
  3. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +8 -7
  4. package/dist/components/VvAction/VvAction.es.js +8 -7
  5. package/dist/components/VvAlert/VvAlert.es.js +8 -7
  6. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +8 -7
  7. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +7 -7
  8. package/dist/components/VvAlertGroup/index.d.ts +2 -2
  9. package/dist/components/VvAvatar/VvAvatar.es.js +8 -7
  10. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +8 -7
  11. package/dist/components/VvBadge/VvBadge.es.js +8 -7
  12. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +8 -7
  13. package/dist/components/VvButton/VvButton.es.js +8 -7
  14. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +8 -7
  15. package/dist/components/VvCard/VvCard.es.js +8 -7
  16. package/dist/components/VvCheckbox/VvCheckbox.es.js +28 -20
  17. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  18. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +28 -20
  19. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  20. package/dist/components/VvCombobox/VvCombobox.es.js +165 -129
  21. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  22. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +306 -90
  23. package/dist/components/VvCombobox/index.d.ts +108 -31
  24. package/dist/components/VvDialog/VvDialog.es.js +37 -31
  25. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  26. package/dist/components/VvDropdown/VvDropdown.es.js +19 -16
  27. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  28. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +301 -93
  29. package/dist/components/VvDropdown/index.d.ts +99 -30
  30. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +8 -7
  31. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +8 -7
  32. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +8 -7
  33. package/dist/components/VvInputText/VvInputText.es.js +212 -115
  34. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  35. package/dist/components/VvInputText/VvInputText.vue.d.ts +19 -37
  36. package/dist/components/VvInputText/index.d.ts +15 -33
  37. package/dist/components/VvNav/VvNav.es.js +8 -7
  38. package/dist/components/VvProgress/VvProgress.es.js +8 -7
  39. package/dist/components/VvRadio/VvRadio.es.js +28 -20
  40. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  41. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +28 -20
  42. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  43. package/dist/components/VvSelect/VvSelect.es.js +28 -20
  44. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  45. package/dist/components/VvSelect/VvSelect.vue.d.ts +1 -1
  46. package/dist/components/VvTab/VvTab.es.js +8 -7
  47. package/dist/components/VvTextarea/VvTextarea.es.js +36 -25
  48. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  49. package/dist/components/VvTooltip/VvTooltip.es.js +8 -7
  50. package/dist/components/index.es.js +390 -257
  51. package/dist/components/index.umd.js +1 -1
  52. package/dist/constants.d.ts +4 -0
  53. package/dist/directives/index.es.js +8 -7
  54. package/dist/directives/v-tooltip.es.js +8 -7
  55. package/dist/icons.es.js +3 -3
  56. package/dist/icons.umd.js +1 -1
  57. package/dist/props/index.d.ts +100 -31
  58. package/dist/resolvers/unplugin.es.js +3 -0
  59. package/dist/resolvers/unplugin.umd.js +1 -1
  60. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +1 -1
  61. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +11 -11
  62. package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
  63. package/dist/stories/InputText/InputText.settings.d.ts +31 -9
  64. package/dist/stories/InputText/InputText.stories.d.ts +0 -1
  65. package/dist/stories/InputText/InputTextMask.stories.d.ts +12 -0
  66. package/package.json +63 -62
  67. package/src/assets/icons/detailed.json +1 -1
  68. package/src/assets/icons/normal.json +1 -1
  69. package/src/assets/icons/simple.json +1 -1
  70. package/src/components/VvAlertGroup/VvAlertGroup.vue +2 -0
  71. package/src/components/VvCombobox/VvCombobox.vue +40 -19
  72. package/src/components/VvCombobox/index.ts +13 -0
  73. package/src/components/VvDialog/VvDialog.vue +16 -13
  74. package/src/components/VvDropdown/VvDropdown.vue +18 -16
  75. package/src/components/VvInputText/VvInputText.vue +170 -55
  76. package/src/components/VvInputText/index.ts +32 -34
  77. package/src/components/VvTextarea/VvTextarea.vue +8 -5
  78. package/src/components/common/HintSlot.ts +20 -12
  79. package/src/constants.ts +5 -0
  80. package/src/props/index.ts +7 -11
  81. package/src/resolvers/unplugin.ts +3 -0
  82. package/src/stories/Combobox/Combobox.settings.ts +8 -0
  83. package/src/stories/Combobox/Combobox.test.ts +1 -1
  84. package/src/stories/InputText/InputText.settings.ts +36 -15
  85. package/src/stories/InputText/InputText.stories.ts +4 -12
  86. package/src/stories/InputText/InputText.test.ts +31 -15
  87. package/src/stories/InputText/InputTextMask.stories.ts +122 -0
@@ -30,9 +30,9 @@ export declare const VvDropdownProps: {
30
30
  validator: (value: never) => boolean;
31
31
  };
32
32
  strategy: {
33
- type: PropType<"fixed" | "absolute">;
34
- default: string;
35
- validator: (value: "fixed" | "absolute") => boolean;
33
+ type: PropType<"absolute" | "fixed">;
34
+ default: undefined;
35
+ validator: (value: import("../../constants").Strategy) => boolean;
36
36
  };
37
37
  transitionName: {
38
38
  type: StringConstructor;
@@ -42,33 +42,94 @@ export declare const VvDropdownProps: {
42
42
  default: number;
43
43
  };
44
44
  shift: {
45
- type: PropType<boolean | Partial<import("@floating-ui/core").ShiftOptions & {
46
- rootBoundary: import("@floating-ui/core").RootBoundary;
47
- elementContext: import("@floating-ui/core").ElementContext;
48
- altBoundary: boolean;
49
- padding: import("@floating-ui/core").Padding;
50
- boundary: import("@floating-ui/dom").Boundary;
45
+ type: PropType<boolean | {
46
+ mainAxis?: boolean | undefined;
47
+ crossAxis?: boolean | undefined;
48
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
49
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
50
+ altBoundary?: boolean | undefined;
51
+ padding?: import("@floating-ui/core").Padding | undefined;
52
+ limiter?: {
53
+ fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/core").Coords;
54
+ options?: any;
55
+ } | undefined;
56
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
57
+ } | import("@floating-ui/dom").Derivable<{
58
+ mainAxis?: boolean | undefined;
59
+ crossAxis?: boolean | undefined;
60
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
61
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
62
+ altBoundary?: boolean | undefined;
63
+ padding?: import("@floating-ui/core").Padding | undefined;
64
+ limiter?: {
65
+ fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/core").Coords;
66
+ options?: any;
67
+ } | undefined;
68
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
51
69
  }> | undefined>;
52
70
  default: boolean;
53
71
  };
54
72
  flip: {
55
- type: PropType<boolean | Partial<import("@floating-ui/core").FlipOptions & {
56
- rootBoundary: import("@floating-ui/core").RootBoundary;
57
- elementContext: import("@floating-ui/core").ElementContext;
58
- altBoundary: boolean;
59
- padding: import("@floating-ui/core").Padding;
60
- boundary: import("@floating-ui/dom").Boundary;
73
+ type: PropType<boolean | {
74
+ mainAxis?: boolean | undefined;
75
+ crossAxis?: boolean | undefined;
76
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
77
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
78
+ altBoundary?: boolean | undefined;
79
+ padding?: import("@floating-ui/core").Padding | undefined;
80
+ fallbackPlacements?: import("@floating-ui/core").Placement[] | undefined;
81
+ fallbackStrategy?: "initialPlacement" | "bestFit" | undefined;
82
+ fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
83
+ flipAlignment?: boolean | undefined;
84
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
85
+ } | import("@floating-ui/dom").Derivable<{
86
+ mainAxis?: boolean | undefined;
87
+ crossAxis?: boolean | undefined;
88
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
89
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
90
+ altBoundary?: boolean | undefined;
91
+ padding?: import("@floating-ui/core").Padding | undefined;
92
+ fallbackPlacements?: import("@floating-ui/core").Placement[] | undefined;
93
+ fallbackStrategy?: "initialPlacement" | "bestFit" | undefined;
94
+ fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
95
+ flipAlignment?: boolean | undefined;
96
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
61
97
  }> | undefined>;
62
98
  default: boolean;
63
99
  };
64
100
  size: {
65
- type: PropType<boolean | Partial<{
66
- apply: (args: {
101
+ type: PropType<boolean | {
102
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
103
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
104
+ altBoundary?: boolean | undefined;
105
+ padding?: import("@floating-ui/core").Padding | undefined;
106
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
107
+ apply?: ((args: {
67
108
  x: number;
68
109
  y: number;
110
+ initialPlacement: import("@floating-ui/core").Placement;
69
111
  placement: import("@floating-ui/core").Placement;
70
112
  strategy: import("@floating-ui/core").Strategy;
113
+ middlewareData: import("@floating-ui/core").MiddlewareData;
114
+ rects: import("@floating-ui/core").ElementRects;
115
+ platform: import("@floating-ui/core").Platform;
116
+ elements: import("@floating-ui/dom").Elements;
117
+ } & {
118
+ availableWidth: number;
119
+ availableHeight: number;
120
+ }) => void | Promise<void>) | undefined;
121
+ } | import("@floating-ui/dom").Derivable<{
122
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
123
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
124
+ altBoundary?: boolean | undefined;
125
+ padding?: import("@floating-ui/core").Padding | undefined;
126
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
127
+ apply?: ((args: {
128
+ x: number;
129
+ y: number;
71
130
  initialPlacement: import("@floating-ui/core").Placement;
131
+ placement: import("@floating-ui/core").Placement;
132
+ strategy: import("@floating-ui/core").Strategy;
72
133
  middlewareData: import("@floating-ui/core").MiddlewareData;
73
134
  rects: import("@floating-ui/core").ElementRects;
74
135
  platform: import("@floating-ui/core").Platform;
@@ -76,25 +137,33 @@ export declare const VvDropdownProps: {
76
137
  } & {
77
138
  availableWidth: number;
78
139
  availableHeight: number;
79
- }) => void | Promise<void>;
80
- } & {
81
- rootBoundary: import("@floating-ui/core").RootBoundary;
82
- elementContext: import("@floating-ui/core").ElementContext;
83
- altBoundary: boolean;
84
- padding: import("@floating-ui/core").Padding;
85
- boundary: import("@floating-ui/dom").Boundary;
140
+ }) => void | Promise<void>) | undefined;
86
141
  }> | undefined>;
87
142
  default: () => {
88
143
  padding: number;
89
144
  };
90
145
  };
91
146
  autoPlacement: {
92
- type: PropType<boolean | Partial<import("@floating-ui/core").AutoPlacementOptions & {
93
- rootBoundary: import("@floating-ui/core").RootBoundary;
94
- elementContext: import("@floating-ui/core").ElementContext;
95
- altBoundary: boolean;
96
- padding: import("@floating-ui/core").Padding;
97
- boundary: import("@floating-ui/dom").Boundary;
147
+ type: PropType<boolean | {
148
+ crossAxis?: boolean | undefined;
149
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
150
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
151
+ altBoundary?: boolean | undefined;
152
+ padding?: import("@floating-ui/core").Padding | undefined;
153
+ alignment?: import("@floating-ui/core").Alignment | null | undefined;
154
+ autoAlignment?: boolean | undefined;
155
+ allowedPlacements?: import("@floating-ui/core").Placement[] | undefined;
156
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
157
+ } | import("@floating-ui/dom").Derivable<{
158
+ crossAxis?: boolean | undefined;
159
+ rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
160
+ elementContext?: import("@floating-ui/core").ElementContext | undefined;
161
+ altBoundary?: boolean | undefined;
162
+ padding?: import("@floating-ui/core").Padding | undefined;
163
+ alignment?: import("@floating-ui/core").Alignment | null | undefined;
164
+ autoAlignment?: boolean | undefined;
165
+ allowedPlacements?: import("@floating-ui/core").Placement[] | undefined;
166
+ boundary?: import("@floating-ui/dom").Boundary | undefined;
98
167
  }> | undefined>;
99
168
  default: boolean;
100
169
  };
@@ -1,6 +1,11 @@
1
1
  import { inject, defineComponent, ref, watch, computed, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, provide, createElementBlock, toRefs, createVNode } from "vue";
2
2
  import "mitt";
3
3
  import { useElementHover, useFocus, useFocusWithin } from "@vueuse/core";
4
+ var Strategy = /* @__PURE__ */ ((Strategy2) => {
5
+ Strategy2["absolute"] = "absolute";
6
+ Strategy2["fixed"] = "fixed";
7
+ return Strategy2;
8
+ })(Strategy || {});
4
9
  var Side = /* @__PURE__ */ ((Side2) => {
5
10
  Side2["left"] = "left";
6
11
  Side2["right"] = "right";
@@ -139,19 +144,15 @@ const ModifiersProps = {
139
144
  placement: {
140
145
  type: String,
141
146
  default: Side.bottom,
142
- validator: (value) => {
143
- return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
144
- }
147
+ validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
145
148
  },
146
149
  /**
147
150
  * Dropdown strategy
148
151
  */
149
152
  strategy: {
150
153
  type: String,
151
- default: "absolute",
152
- validator: (value) => {
153
- return ["fixed", "absolute"].includes(value);
154
- }
154
+ default: void 0,
155
+ validator: (value) => Object.values(Strategy).includes(value)
155
156
  },
156
157
  /**
157
158
  * Dropdown show / hide transition name
@@ -1,4 +1,9 @@
1
1
  import { defineComponent, openBlock, createElementBlock, toDisplayString } from "vue";
2
+ var Strategy = /* @__PURE__ */ ((Strategy2) => {
3
+ Strategy2["absolute"] = "absolute";
4
+ Strategy2["fixed"] = "fixed";
5
+ return Strategy2;
6
+ })(Strategy || {});
2
7
  var Side = /* @__PURE__ */ ((Side2) => {
3
8
  Side2["left"] = "left";
4
9
  Side2["right"] = "right";
@@ -108,19 +113,15 @@ const LabelProps = {
108
113
  placement: {
109
114
  type: String,
110
115
  default: Side.bottom,
111
- validator: (value) => {
112
- return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
113
- }
116
+ validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
114
117
  },
115
118
  /**
116
119
  * Dropdown strategy
117
120
  */
118
121
  strategy: {
119
122
  type: String,
120
- default: "absolute",
121
- validator: (value) => {
122
- return ["fixed", "absolute"].includes(value);
123
- }
123
+ default: void 0,
124
+ validator: (value) => Object.values(Strategy).includes(value)
124
125
  },
125
126
  /**
126
127
  * Dropdown show / hide transition name
@@ -1,6 +1,11 @@
1
1
  import { inject, provide, ref, defineComponent, watch, openBlock, createElementBlock, mergeProps, unref, renderSlot, computed, toRefs, createBlock, normalizeClass, withCtx, createElementVNode, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString } from "vue";
2
2
  import "mitt";
3
3
  import { useElementHover, useFocus, useFocusWithin } from "@vueuse/core";
4
+ var Strategy = /* @__PURE__ */ ((Strategy2) => {
5
+ Strategy2["absolute"] = "absolute";
6
+ Strategy2["fixed"] = "fixed";
7
+ return Strategy2;
8
+ })(Strategy || {});
4
9
  var Side = /* @__PURE__ */ ((Side2) => {
5
10
  Side2["left"] = "left";
6
11
  Side2["right"] = "right";
@@ -179,19 +184,15 @@ const UnselectableProps = {
179
184
  placement: {
180
185
  type: String,
181
186
  default: Side.bottom,
182
- validator: (value) => {
183
- return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
184
- }
187
+ validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
185
188
  },
186
189
  /**
187
190
  * Dropdown strategy
188
191
  */
189
192
  strategy: {
190
193
  type: String,
191
- default: "absolute",
192
- validator: (value) => {
193
- return ["fixed", "absolute"].includes(value);
194
- }
194
+ default: void 0,
195
+ validator: (value) => Object.values(Strategy).includes(value)
195
196
  },
196
197
  /**
197
198
  * Dropdown show / hide transition name