eco-vue-js 0.10.13 → 0.10.14

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 (45) hide show
  1. package/dist/assets/icons/default/IconCheck.svg.js +6 -3
  2. package/dist/components/Button/WButtonCopy.vue.js +1 -1
  3. package/dist/components/Button/WButtonInput.vue.d.ts +14 -0
  4. package/dist/components/Button/WButtonInput.vue.d.ts.map +1 -0
  5. package/dist/components/Button/WButtonInput.vue.js +51 -0
  6. package/dist/components/Button/WButtonInput.vue2.js +5 -0
  7. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  8. package/dist/components/Button/WButtonMore.vue.js +2 -2
  9. package/dist/components/Button/WButtonSelection.vue.js +1 -1
  10. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  11. package/dist/components/Button/WButtonSelectionAction.vue.js +3 -3
  12. package/dist/components/Button/WButtonSelectionState.vue.js +2 -2
  13. package/dist/components/Button/WButtonUnselect.vue.js +2 -2
  14. package/dist/components/Checkbox/WCheckbox.vue.js +6 -6
  15. package/dist/components/Expansion/WExpansionItem.vue.js +3 -3
  16. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +3 -3
  17. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  18. package/dist/components/Input/WInput.vue.js +22 -17
  19. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  20. package/dist/components/Input/WInputAsync.vue.js +16 -33
  21. package/dist/components/Input/components/InputActions.vue.js +1 -1
  22. package/dist/components/Input/components/InputActionsButton.vue.js +1 -1
  23. package/dist/components/List/WList.vue.d.ts.map +1 -1
  24. package/dist/components/List/WList.vue.js +2 -3
  25. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  26. package/dist/components/List/WListCard.vue.js +5 -6
  27. package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
  28. package/dist/components/List/WListHeader.vue.js +9 -10
  29. package/dist/components/Modal/WModalWrapper.vue.js +4 -4
  30. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +1 -1
  31. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  32. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +2 -1
  33. package/dist/components/Select/components/SelectOption.vue.js +1 -1
  34. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  35. package/dist/components/Select/components/SelectOptionPrefix.vue.js +25 -25
  36. package/dist/components/Spinner/WSpinner.vue.js +1 -1
  37. package/dist/components/Tabs/WTabsColumns.vue.js +1 -1
  38. package/dist/components/Toggle/WToggle.vue.js +1 -1
  39. package/dist/imports/componentsPlugin.d.ts +2 -1
  40. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  41. package/dist/main.js +1 -0
  42. package/eslint/recommended.js +1 -0
  43. package/package.json +4 -1
  44. package/tailwind-base/plugins/default.ts +30 -58
  45. package/tailwind-base/theme/sizes.ts +5 -0
@@ -5,14 +5,17 @@ const _hoisted_1 = {
5
5
  width: "20",
6
6
  height: "20",
7
7
  fill: "none",
8
- viewBox: "0 0 22 16"
8
+ viewBox: "0 0 24 24"
9
9
  };
10
10
 
11
11
  function render(_ctx, _cache) {
12
12
  return (openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
13
13
  createElementVNode("path", {
14
- fill: "currentColor",
15
- d: "M8.81 16 0 5.254h3.445L8.81 11.76 18.506 0H22z"
14
+ stroke: "currentColor",
15
+ "stroke-linecap": "round",
16
+ "stroke-linejoin": "round",
17
+ "stroke-width": "3",
18
+ d: "m2.607 12 6.255 6.254 12.53-12.509"
16
19
  }, null, -1)
17
20
  ])))
18
21
  }
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  const { doCopy, iconCopy, copied } = useCopy(toRef(props, "value"));
13
13
  return (_ctx, _cache) => {
14
14
  return openBlock(), createElementBlock("div", {
15
- class: "text-description square-5 w-hover-circle relative inline-block cursor-pointer select-none",
15
+ class: "text-description square-[1.25em] w-hover-circle relative inline-block cursor-pointer select-none",
16
16
  onClick: _cache[0] || (_cache[0] = ($event) => unref(doCopy)())
17
17
  }, [
18
18
  (openBlock(), createBlock(resolveDynamicComponent(unref(iconCopy)), {
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ icon: SVGComponent;
3
+ tooltipText?: string;
4
+ loading?: boolean;
5
+ skeleton?: boolean;
6
+ disabled?: boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ click: (value: MouseEvent) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onClick?: ((value: MouseEvent) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
14
+ //# sourceMappingURL=WButtonInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WButtonInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonInput.vue"],"names":[],"mappings":"AAuCA;AA8DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,YAAY,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;;;AA2GF,wBAOG"}
@@ -0,0 +1,51 @@
1
+ import { defineComponent, createBlock, createElementBlock, openBlock, withModifiers, normalizeClass, createCommentVNode, resolveDynamicComponent } from 'vue';
2
+ import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
+ import WSpinner from '../Spinner/WSpinner.vue.js';
4
+ import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
5
+
6
+ const _hoisted_1 = ["disabled"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "WButtonInput",
9
+ props: {
10
+ icon: {},
11
+ tooltipText: {},
12
+ loading: { type: Boolean },
13
+ skeleton: { type: Boolean },
14
+ disabled: { type: Boolean }
15
+ },
16
+ emits: ["click"],
17
+ setup(__props) {
18
+ return (_ctx, _cache) => {
19
+ return _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
20
+ key: 0,
21
+ class: "-square--w-input-height w-skeleton-rounded-[--w-input-rounded,0.75rem]"
22
+ })) : (openBlock(), createElementBlock("button", {
23
+ key: 1,
24
+ class: normalizeClass(["-square--w-input-height bg-default dark:bg-default-dark relative flex select-none items-center justify-center rounded-[--w-input-rounded,0.75rem] border border-solid border-gray-200 dark:border-gray-800", {
25
+ "cursor-not-allowed opacity-50": _ctx.disabled,
26
+ "w-ripple w-ripple-hover cursor-pointer": !_ctx.disabled,
27
+ "cursor-progress": _ctx.loading
28
+ }]),
29
+ disabled: _ctx.disabled,
30
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => !_ctx.disabled && !_ctx.loading && _ctx.$emit("click", $event), ["stop", "prevent"])),
31
+ onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
32
+ }, ["stop", "prevent"]))
33
+ }, [
34
+ _ctx.loading ? (openBlock(), createBlock(WSpinner, {
35
+ key: 0,
36
+ class: "w-spinner-size-[1.125em]"
37
+ })) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
38
+ key: 1,
39
+ class: "square-[1.125em]"
40
+ })),
41
+ _ctx.tooltipText ? (openBlock(), createBlock(_sfc_main$1, {
42
+ key: 2,
43
+ text: _ctx.tooltipText,
44
+ "no-touch": ""
45
+ }, null, 8, ["text"])) : createCommentVNode("", true)
46
+ ], 42, _hoisted_1));
47
+ };
48
+ }
49
+ });
50
+
51
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WButtonInput.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AA8CA;AAoFA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAiBF,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;;yBArGhC,IAAI;YA2FQ,GAAG;;;;EAehC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,gTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AAiDA;AAuFA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAiBF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;;yBAvGhC,IAAI;YA6FQ,GAAG;;;;EAehC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,gTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -41,13 +41,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  }, {
42
42
  toggle: withCtx(() => [
43
43
  createElementVNode("div", {
44
- class: normalizeClass(["relative p-px", {
44
+ class: normalizeClass(["relative", {
45
45
  "w-hover-circle": !_ctx.disabled,
46
46
  "text-description": !isOpen.value,
47
47
  "text-primary-default dark:text-primary-dark": isOpen.value
48
48
  }])
49
49
  }, [
50
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(IconMore))))
50
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(IconMore)), { class: "square-[1.25em]" }))
51
51
  ], 2)
52
52
  ]),
53
53
  content: withCtx(() => [
@@ -7,7 +7,7 @@ import _sfc_main$3 from './WButtonSelectionAction.vue.js';
7
7
  import _sfc_main$4 from './WButtonSelectionState.vue.js';
8
8
  import _sfc_main$2 from '../ClickOutside/WClickOutside.vue.js';
9
9
 
10
- const _hoisted_1 = { class: "sm:left-inner sm:w-inner grid h-12 w-full grid-cols-[1fr,auto] pb-3 sm:sticky" };
10
+ const _hoisted_1 = { class: "sm:left-inner sm:w-inner grid w-full grid-cols-[1fr,auto] pb-3 sm:sticky" };
11
11
  const _hoisted_2 = { class: "flex" };
12
12
  const _hoisted_3 = { class: "text-primary-default dark:text-primary-dark font-semibold" };
13
13
  const _hoisted_4 = { class: "sm-not:text-xs" };
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAiCA;AAqDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,YAAY,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;;;;;;AAsFF,wBAQG"}
1
+ {"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAoCA;AAwDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,YAAY,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;;;;;;AAwFF,wBAQG"}
@@ -2,10 +2,10 @@ import { defineComponent, createElementBlock, openBlock, normalizeClass, createE
2
2
  import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
3
3
 
4
4
  const _hoisted_1 = ["disabled"];
5
- const _hoisted_2 = { class: "flex h-9 items-center gap-2 px-5 sm:px-[1.125rem]" };
5
+ const _hoisted_2 = { class: "-h--w-input-height flex items-center gap-2 px-[--w-list-padding,1rem]" };
6
6
  const _hoisted_3 = {
7
7
  key: 0,
8
- class: "sm-not:hidden whitespace-nowrap text-base font-normal"
8
+ class: "sm-not:hidden whitespace-nowrap font-normal"
9
9
  };
10
10
  const _hoisted_4 = { class: "whitespace-nowrap" };
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
31
31
  }, [
32
32
  createElementVNode("div", _hoisted_2, [
33
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon))),
33
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-[1.25em]" })),
34
34
  _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
35
35
  ]),
36
36
  _ctx.disableMessage ? (openBlock(), createBlock(_sfc_main$1, { key: 0 }, {
@@ -2,7 +2,7 @@ import { defineComponent, createElementBlock, openBlock, createElementVNode, ren
2
2
  import IconCancel from '../../assets/icons/default/IconCancel.svg.js';
3
3
 
4
4
  const _hoisted_1 = { class: "sm-not:gap-1 grid grid-cols-[1fr,auto] gap-3" };
5
- const _hoisted_2 = { class: "sm-not:text-xs text-description self-center truncate whitespace-nowrap text-base font-normal" };
5
+ const _hoisted_2 = { class: "sm-not:text-xs text-description self-center truncate whitespace-nowrap font-normal" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "WButtonSelectionState",
8
8
  emits: ["click"],
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  class: "text-description w-ripple w-ripple-hover relative flex cursor-pointer select-none items-center justify-self-end",
17
17
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
18
18
  }, [
19
- createVNode(unref(IconCancel), { class: "square-5 sm-not:-mx--inner-margin mx-[1.125rem]" })
19
+ createVNode(unref(IconCancel), { class: "square-[1.25em] mx-[--w-list-padding,1rem]" })
20
20
  ])
21
21
  ]);
22
22
  };
@@ -11,14 +11,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  setup(__props) {
12
12
  return (_ctx, _cache) => {
13
13
  return openBlock(), createElementBlock("button", {
14
- class: normalizeClass(["square-5 relative flex items-center justify-center rounded-full outline-none", {
14
+ class: normalizeClass(["square-[1.25em] relative flex items-center justify-center rounded-full outline-none", {
15
15
  "cursor-not-allowed": _ctx.disabled,
16
16
  "cursor-progress": _ctx.loading,
17
17
  "w-ripple w-ripple-hover cursor-pointer ": !_ctx.loading && !_ctx.disabled
18
18
  }]),
19
19
  onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.loading && !_ctx.disabled && _ctx.$emit("click", $event))
20
20
  }, [
21
- createVNode(unref(IconCancel), { class: "square-3" })
21
+ createVNode(unref(IconCancel), { class: "square-[0.75em]" })
22
22
  ], 2);
23
23
  };
24
24
  }
@@ -6,7 +6,7 @@ import IconCheck from '../../assets/icons/default/IconCheck.svg.js';
6
6
  const _hoisted_1 = ["onKeypress"];
7
7
  const _hoisted_2 = {
8
8
  key: 0,
9
- class: "text-accent flex items-center gap-1 text-base font-normal"
9
+ class: "text-accent flex items-center gap-1"
10
10
  };
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "WCheckbox",
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  onClick: toggle
45
45
  }, [
46
46
  createElementVNode("div", {
47
- class: normalizeClass(["square-6 bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid", {
47
+ class: normalizeClass(["square-[1.5em] bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid [font-size:--w-checkbox-size]", {
48
48
  "text-default dark:text-default-dark": _ctx.modelValue && !_ctx.disabled,
49
49
  "text-primary-default dark:text-primary-dark": !_ctx.modelValue && !_ctx.disabled,
50
50
  "text-gray-300 dark:text-gray-700": !_ctx.modelValue && _ctx.disabled,
@@ -80,17 +80,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  }, 8, ["enter-from-class", "leave-to-class"]),
81
81
  _ctx.loading ? (openBlock(), createBlock(WSpinner, {
82
82
  key: 0,
83
- class: "w-spinner-size-4"
83
+ class: "w-spinner-size-[1em]"
84
84
  })) : _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
85
85
  key: 1,
86
- class: "square-4"
86
+ class: "square-[1em]"
87
87
  })) : !_ctx.radio ? withDirectives((openBlock(), createBlock(unref(IconCheck), {
88
88
  key: 2,
89
- class: "square-4"
89
+ class: "square-[1em]"
90
90
  }, null, 512)), [
91
91
  [vShow, _ctx.modelValue]
92
92
  ]) : createCommentVNode("", true),
93
- _ctx.tooltipText ? (openBlock(), createBlock(_sfc_main$1, {
93
+ _ctx.tooltipText && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$1, {
94
94
  key: 3,
95
95
  text: _ctx.tooltipText,
96
96
  trigger: unref(elementRef),
@@ -28,11 +28,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  default: withCtx(() => [
29
29
  _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
30
30
  key: 0,
31
- class: "square-6"
31
+ class: "square-[1.5em]"
32
32
  })) : createCommentVNode("", true),
33
33
  createElementVNode("div", _hoisted_1, [
34
34
  createElementVNode("span", {
35
- class: normalizeClass(["relative pr-4 font-semibold", { "text-xs": _ctx.minTitle, "text-base": !_ctx.minTitle }])
35
+ class: normalizeClass(["relative pr-4 font-semibold", { "text-xs": _ctx.minTitle }])
36
36
  }, [
37
37
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
38
38
  createVNode(Transition, {
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  ]),
51
51
  createElementVNode("div", _hoisted_3, [
52
52
  createVNode(unref(IconArrow), {
53
- class: normalizeClass(["text-accent transition-transform", { "rotate-180": _ctx.isOpen }])
53
+ class: normalizeClass(["text-accent square-[1.25em] transition-transform", { "rotate-180": _ctx.isOpen }])
54
54
  }, null, 8, ["class"])
55
55
  ])
56
56
  ]),
@@ -102,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
102
  }, null, 8, ["filter-field", "encoded-query-param"])) : createCommentVNode("", true)
103
103
  ], 64)) : (openBlock(), createBlock(WSkeleton, {
104
104
  key: 1,
105
- class: "w-skeleton-h-4 w-skeleton-w-16"
105
+ class: "w-skeleton-w-16"
106
106
  }))
107
107
  ], 2)) : createCommentVNode("", true),
108
108
  renderSlot(_ctx.$slots, "subtitle"),
@@ -119,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
119
  }, [
120
120
  renderSlot(_ctx.$slots, "field", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
121
121
  createElementVNode("div", {
122
- class: normalizeClass(["flex min-h-11 items-center text-base font-normal", {
122
+ class: normalizeClass(["flex min-h-[--w-input-height,2.75rem] items-center text-base font-normal", {
123
123
  "font-mono": _ctx.mono,
124
124
  "border-t border-solid border-gray-300 dark:border-gray-700": _ctx.title || _ctx.$slots.title
125
125
  }])
@@ -164,7 +164,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
164
164
  })
165
165
  ], 2)) : (openBlock(), createBlock(WSkeleton, {
166
166
  key: 1,
167
- class: "w-skeleton-w-full w-skeleton-rounded-xl w-skeleton-h-[calc(var(--field-height,2.125rem)+0.625rem)]"
167
+ class: "w-skeleton-w-full w-skeleton-rounded-[--w-input-rounded,0.75rem] w-skeleton-h-[--w-input-height,2.75rem]"
168
168
  })),
169
169
  _ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_5, [
170
170
  renderSlot(_ctx.$slots, "right")
@@ -1 +1 @@
1
- {"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA0KA;AAwXA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAWtB,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAkkB1D,mBAAmB,CAAC,oCAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;qBA3d7B,IAAI;oBAML,IAAI;MAqdgD,GAAG,IAAI;WACpE,GAAG;;uBA/CgB,GAAG;0BACA,GAAG;wBACL,GAAG;wBACF,GAAG;wBACH,GAAG;uBACJ,GAAG;wBACF,GAAG;uBACJ,GAAG;uBACH,GAAG;;;YA7gBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;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,GAAG;wBACF,GAAG;wBACH,GAAG;uBACJ,GAAG;wBACF,GAAG;uBACJ,GAAG;uBACH,GAAG;;;YAphBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,UAAU,GAAG,IAAI;YACxC,cAAc,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;;;;YAmjBwB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnlBvE,wBAmlB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -5,11 +5,6 @@ import { Notify } from '../../utils/Notify.js';
5
5
  import _sfc_main$2 from './components/InputActions.vue.js';
6
6
 
7
7
  const _hoisted_1 = { class: "flex flex-wrap gap-1" };
8
- const _hoisted_2 = {
9
- key: 0,
10
- class: "text-description flex h-full w-11 select-none items-center justify-center"
11
- };
12
- const _hoisted_3 = { class: "flex flex-wrap gap-1" };
13
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
9
  ...{ inheritAttrs: false },
15
10
  __name: "WInput",
@@ -217,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
212
  fn: withCtx(({ id, setFocused, focused }) => [
218
213
  createElementVNode("div", {
219
214
  class: normalizeClass(["bg-default dark:bg-default-dark relative grid min-h-[--w-input-height,2.75rem] grid-cols-[auto,1fr,auto] overflow-hidden rounded-[--w-input-rounded,0.75rem] border border-solid transition-colors duration-75", {
220
- "focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly && !_ctx.unclickable,
215
+ "focus-within:border-primary-default dark:focus-within:border-primary-dark focus-within:outline-primary-default/20 dark:focus-within:outline-primary-dark/20 focus-within:outline focus-within:outline-2": !_ctx.disabled && !_ctx.readonly && !_ctx.unclickable,
221
216
  "cursor-text": !_ctx.disabled,
222
217
  "border-negative dark:border-negative-dark": _ctx.errorMessage,
223
218
  "border-gray-300 dark:border-gray-700": !_ctx.disabled,
@@ -227,20 +222,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
227
222
  onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
228
223
  }, ["prevent"]))
229
224
  }, [
230
- _ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_2, [
231
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" }))
232
- ])) : createCommentVNode("", true),
225
+ _ctx.icon ? (openBlock(), createElementBlock("div", {
226
+ key: 0,
227
+ class: normalizeClass(["flex h-full w-[--w-input-height,2.75rem] select-none items-center justify-center", {
228
+ "text-description": !focused,
229
+ "text-primary-default dark:text-primary-dark": focused
230
+ }])
231
+ }, [
232
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-[1.125em]" }))
233
+ ], 2)) : createCommentVNode("", true),
233
234
  createElementVNode("div", {
234
235
  class: normalizeClass(["group/input col-start-2 grid grid-cols-1", {
235
- "py-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
236
+ "py-[--w-input-gap,0.25rem] first:pl-[--w-input-gap,0.25rem] last:pr-[--w-input-gap,0.25rem]": _ctx.$slots.prefix
236
237
  }])
237
238
  }, [
238
- createElementVNode("div", _hoisted_3, [
239
+ createElementVNode("div", {
240
+ class: normalizeClass(["flex flex-wrap gap-[--w-input-gap,0.25rem]", {
241
+ "[&:not(:has(.w-option-has-bg))]:-px--w-option-padding": !_ctx.icon
242
+ }])
243
+ }, [
239
244
  renderSlot(_ctx.$slots, "prefix"),
240
245
  createElementVNode("div", {
241
246
  class: normalizeClass(["flex flex-1 items-baseline", {
242
- "first:pl-0 group-first/input:pl-[--w-input-rounded,0.75rem] group-last/input:pr-[--w-input-rounded,0.75rem] [&:not(:first-child)]:pl-[--w-input-rounded,0.75rem]": !_ctx.hideInput,
243
- "absolute w-0 max-w-0 p-0": _ctx.hideInput
247
+ "absolute w-0 max-w-0": _ctx.hideInput,
248
+ "w-option-has-bg-input": _ctx.$slots.prefix
244
249
  }])
245
250
  }, [
246
251
  renderSlot(_ctx.$slots, "before"),
@@ -248,11 +253,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
248
253
  id,
249
254
  ref: "input",
250
255
  class: normalizeClass(["w-input max-w-full flex-1 appearance-none border-none bg-[inherit] font-normal outline-0 placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-80 dark:placeholder:text-gray-500", {
251
- "min-h-[--w-textarea-height,10rem] w-full py-3": _ctx.textarea,
256
+ "-py--w-option-padding min-h-[--w-textarea-height,10rem] w-full": _ctx.textarea,
252
257
  "resize-y": _ctx.resize && _ctx.textarea,
253
258
  "resize-none": !_ctx.resize && _ctx.textarea,
254
- "h-[calc(var(--w-input-height,2.75rem)-0.125rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
255
- "h-[calc(var(--w-input-height,2.75rem)-0.625rem)]": !_ctx.textarea && _ctx.$slots.suffix,
259
+ "h-[calc(var(--w-input-height,2.75rem)-2px)]": !_ctx.textarea && !_ctx.$slots.suffix,
260
+ "w-option": !_ctx.textarea && _ctx.$slots.prefix,
256
261
  "font-mono": _ctx.mono,
257
262
  "text-secure": _ctx.textSecure && !isSecureVisible.value,
258
263
  "text-black-default dark:text-gray-200": !_ctx.disabled,
@@ -295,7 +300,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
295
300
  }, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "step", "min", "max", "spellcheck", "onFocus", "onBlur"])),
296
301
  renderSlot(_ctx.$slots, "after")
297
302
  ], 2)
298
- ])
303
+ ], 2)
299
304
  ], 2),
300
305
  createVNode(_sfc_main$2, {
301
306
  "model-value": _ctx.modelValue,
@@ -1 +1 @@
1
- {"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAgHA;AA0SA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAgB3B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAwc1D,mBAAmB,CAAC;;iLAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAjDiB,GAAG;0BACA,GAAG;uBACN,GAAG;;cAjZzB,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI;;;;YAqcnB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAldvE,wBAkd4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAwFA;AAgRA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAc3B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA4Z1D,mBAAmB,CAAC;;iLAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAhDiB,GAAG;0BACA,GAAG;uBACN,GAAG;;cAtWzB,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI;;;;YAyZnB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtavE,wBAsa4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,8 +1,6 @@
1
- import { defineComponent, ref, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, createCommentVNode, Fragment, withModifiers, normalizeClass, unref, createElementVNode, createVNode, Transition, normalizeStyle, nextTick } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, normalizeClass, markRaw, unref, createElementVNode, createVNode, Transition, createElementBlock, normalizeStyle, nextTick } from 'vue';
2
+ import _sfc_main$2 from '../Button/WButtonInput.vue.js';
2
3
  import _sfc_main$1 from './WInput.vue.js';
3
- import WSkeleton from '../Skeleton/WSkeleton.vue.js';
4
- import WSpinner from '../Spinner/WSpinner.vue.js';
5
- import _sfc_main$2 from '../Tooltip/WTooltip.vue.js';
6
4
  import IconCheck from '../../assets/icons/default/IconCheck.svg.js';
7
5
  import IconEdit from '../../assets/icons/sax/IconEdit.svg.js';
8
6
  import IconSlash from '../../assets/icons/sax/IconSlash.svg.js';
@@ -196,9 +194,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
196
194
  "onKeypress:enter": handleEnterPress,
197
195
  onClick: open,
198
196
  onBlur: close,
199
- onFocus: _cache[1] || (_cache[1] = ($event) => focused.value = true),
197
+ onFocus: _cache[0] || (_cache[0] = ($event) => focused.value = true),
200
198
  onPaste: handlePaste,
201
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event)
199
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
202
200
  }), createSlots({ _: 2 }, [
203
201
  _ctx.$slots.title ? {
204
202
  name: "title",
@@ -218,33 +216,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
218
216
  name: "right",
219
217
  fn: withCtx(() => [
220
218
  renderSlot(_ctx.$slots, "right"),
221
- !_ctx.readonly && !_ctx.hideButton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
222
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
223
- key: 0,
224
- class: "w-skeleton-w-11 w-skeleton-h-11 w-skeleton-rounded-lg"
225
- })) : (openBlock(), createElementBlock("button", {
226
- key: 1,
227
- class: normalizeClass(["square-11 bg-default dark:bg-default-dark relative flex items-center justify-center rounded-lg border border-solid border-gray-200 dark:border-gray-800", {
228
- "cursor-not-allowed": _ctx.disabled,
229
- "cursor-progress": _ctx.loading,
230
- "w-ripple w-ripple-hover": !_ctx.disabled && !_ctx.loading,
231
- "bg-primary-default dark:bg-primary-dark text-default dark:text-default-dark": canSave.value,
232
- "text-description": !canSave.value
233
- }]),
234
- onClick: withModifiers(toggle, ["stop", "prevent"]),
235
- onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
236
- }, ["stop", "prevent"]))
237
- }, [
238
- _ctx.loading ? (openBlock(), createBlock(WSpinner, {
239
- key: 0,
240
- class: "w-spinner-size-5"
241
- })) : canSave.value ? (openBlock(), createBlock(unref(IconCheck), { key: 1 })) : focused.value ? (openBlock(), createBlock(unref(IconSlash), { key: 2 })) : (openBlock(), createBlock(unref(IconEdit), { key: 3 })),
242
- !_ctx.loading && focused.value ? (openBlock(), createBlock(_sfc_main$2, {
243
- key: 4,
244
- text: canSave.value ? "Save" : "Cancel"
245
- }, null, 8, ["text"])) : createCommentVNode("", true)
246
- ], 34))
247
- ], 64)) : createCommentVNode("", true)
219
+ !_ctx.readonly && !_ctx.hideButton ? (openBlock(), createBlock(_sfc_main$2, {
220
+ key: 0,
221
+ icon: canSave.value ? markRaw(unref(IconCheck)) : focused.value ? markRaw(unref(IconSlash)) : markRaw(unref(IconEdit)),
222
+ "tooltip-text": !_ctx.loading && focused.value ? canSave.value ? "Save" : "Cancel" : void 0,
223
+ loading: _ctx.loading,
224
+ skeleton: _ctx.skeleton,
225
+ disabled: _ctx.disabled,
226
+ class: normalizeClass({
227
+ "bg-primary-default dark:bg-primary-dark text-default dark:text-default-dark": canSave.value
228
+ }),
229
+ onClick: toggle
230
+ }, null, 8, ["icon", "tooltip-text", "loading", "skeleton", "disabled", "class"])) : createCommentVNode("", true)
248
231
  ]),
249
232
  key: "2"
250
233
  } : void 0,
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
66
66
  }, null, 8, ["icon", "tooltip-text", "disabled"])) : createCommentVNode("", true),
67
67
  _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
68
- createVNode(WSpinner, { class: "[--spinner-size:1.5rem]" })
68
+ createVNode(WSpinner, { class: "w-spinner-size-[1.125em]" })
69
69
  ])) : _ctx.$slots.default ? (openBlock(), createBlock(_sfc_main$1, {
70
70
  key: 5,
71
71
  disabled: _ctx.disabled,
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("click", $event), ["stop"]))
27
27
  }, [
28
28
  renderSlot(_ctx.$slots, "default", {}, () => [
29
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" })),
29
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-[1.125em]" })),
30
30
  _ctx.tooltipText && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$1, {
31
31
  key: 0,
32
32
  text: _ctx.tooltipText,
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAmPA;AAmYA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAWzC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAWrB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,eAC9H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA2tB1D,mBAAmB,CAAC;;;;;;gBAxtBl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AAM;oBACvD,OAAO;mBACR,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;sBAC1B,QAAQ;mBACX,OAAO;sBACJ,OAAO;mBACV,OAAO;qBACL,OAAO;yBACH,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,SAAS;kBACzC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO;qBAC1B,WAAW;mBACb,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;iBAC1C,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC;mBA2rBoD,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YAjEiB,GAAG;2BACC,GAAG;;;;;YACP,GAAG;;cAznBzB,cAAc,SAAS,QAAQ,KAAG,IAAI;;;;YA6rBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnuBvE,wBAmuB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -202,8 +202,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
202
202
  ]), 1032, ["title", "disable-message", "selected-count", "onClear:selection"]),
203
203
  !unref(isGrid) ? (openBlock(), createBlock(_sfc_main$7, {
204
204
  key: 0,
205
- class: "sm-not:hidden mb-4",
206
- "query-params": _ctx.queryParams,
205
+ class: "sm-not:hidden mb-[--w-list-gap,1rem]",
207
206
  "allow-select": allowSelect.value,
208
207
  "tooltip-text": _ctx.selectAllTextGetter(unref(selectAllValue) !== true, _ctx.count ?? listCount.value ?? 0),
209
208
  count: _ctx.count ?? listCount.value,
@@ -231,7 +230,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
231
230
  }, 8, ["fields"])
232
231
  ]),
233
232
  _: 2
234
- }, 1032, ["query-params", "allow-select", "tooltip-text", "count", "selection", "onUpdate:header"])) : createCommentVNode("", true)
233
+ }, 1032, ["allow-select", "tooltip-text", "count", "selection", "onUpdate:header"])) : createCommentVNode("", true)
235
234
  ]),
236
235
  default: withCtx(({ item, skeleton, setter, refetch, previous, index, position, value }) => [
237
236
  _ctx.groupBy && (index === 0 || !skeleton && (!previous || !_ctx.groupBy(item, previous))) ? renderSlot(_ctx.$slots, "group", {
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAuLA;AA+OA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAA;IAC/B,QAAQ,EAAE,OAAO,CAAA;IAEjB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAC;AAuBF,iBAAS,cAAc;WA6UT,OAAO,IAA6B;;;;;;YAdpB,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;;EAgBlC;AAwBD,KAAK,oBAAoB,GAAG,UA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UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;OAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -79,8 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
79
  !_ctx.card ? (openBlock(), createElementBlock("div", {
80
80
  key: 0,
81
81
  class: normalizeClass(["left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
82
- "width-16": _ctx.allowSelect,
83
- "width-4": !_ctx.allowSelect
82
+ "width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
84
83
  }])
85
84
  }, [
86
85
  _cache[3] || (_cache[3] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
@@ -99,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
98
  "model-value": _ctx.selected,
100
99
  disabled: _ctx.disabled,
101
100
  "align-top": _ctx.alignTop,
102
- class: normalizeClass(["h-full px-4", {
101
+ class: normalizeClass(["h-full px-[--w-list-padding,1rem]", {
103
102
  "opacity-50": _ctx.allowSelectHover,
104
103
  "pt-3": _ctx.alignTop
105
104
  }]),
@@ -160,8 +159,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
159
  !_ctx.card ? (openBlock(), createElementBlock("div", {
161
160
  key: 1,
162
161
  class: normalizeClass(["right-inner bg-default dark:bg-default-dark sticky z-[1]", {
163
- "width-14": _ctx.$slots.more,
164
- "width-4": !_ctx.$slots.more
162
+ "width-[calc(var(--w-list-padding,1rem)*2+1.25em)]": _ctx.$slots.more,
163
+ "width-[--w-list-header-rounded,1rem]": !_ctx.$slots.more
165
164
  }])
166
165
  }, [
167
166
  _cache[4] || (_cache[4] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
@@ -177,7 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
176
  }, [
178
177
  _ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
179
178
  key: 0,
180
- class: normalizeClass(["flex h-full px-4", {
179
+ class: normalizeClass(["flex h-full px-[--w-list-padding,1rem]", {
181
180
  "items-start pt-3": _ctx.alignTop,
182
181
  "items-center": !_ctx.alignTop
183
182
  }]),
@@ -1 +1 @@
1
- {"version":3,"file":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AA2CA;AA4EA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;CACpB,CAAC;AAmBF,iBAAS,cAAc;WAsFT,OAAO,IAA6B;;yBAXrB,GAAG;0BACF,GAAG;;;;EAehC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AA0CA;AA2EA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;CACpB,CAAC;AAmBF,iBAAS,cAAc;WAqFT,OAAO,IAA6B;;yBAXrB,GAAG;0BACF,GAAG;;;;EAehC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, onMounted, onUnmounted, createElementBlock, openBlock, createElementVNode, normalizeClass, createBlock, createCommentVNode, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
3
3
 
4
- const _hoisted_1 = { class: "flex h-12" };
4
+ const _hoisted_1 = { class: "flex h-[--w-list-header-height,3rem]" };
5
5
  const _hoisted_2 = { class: "left-inner bg-default dark:bg-default-dark sticky z-[1]" };
6
6
  const _hoisted_3 = { class: "bg-primary-light dark:bg-primary-darkest flex flex-1 border-y border-solid border-gray-300 dark:border-gray-700" };
7
7
  const _hoisted_4 = { class: "right-inner bg-default dark:bg-default-dark sticky z-[1]" };
@@ -29,18 +29,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  createElementVNode("div", _hoisted_2, [
30
30
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
31
31
  createElementVNode("div", {
32
- class: normalizeClass(["bg-primary-light dark:bg-primary-darkest h-full rounded-l-2xl border-y border-l border-solid border-gray-300 dark:border-gray-700", {
33
- "width-16": _ctx.allowSelect,
34
- "width-4": !_ctx.allowSelect
32
+ class: normalizeClass(["bg-primary-light dark:bg-primary-darkest h-full rounded-l-[--w-list-header-rounded,1rem] border-y border-l border-solid border-gray-300 dark:border-gray-700", {
33
+ "width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
35
34
  }])
36
35
  }, [
37
- _ctx.allowSelect && _ctx.selection !== void 0 && _ctx.count !== 0 && _ctx.count !== void 0 ? (openBlock(), createBlock(_sfc_main$1, {
36
+ _ctx.allowSelect && _ctx.selection !== void 0 ? (openBlock(), createBlock(_sfc_main$1, {
38
37
  key: 0,
39
- disabled: _ctx.disabled,
38
+ disabled: _ctx.disabled || _ctx.count === 0 || _ctx.count === void 0,
40
39
  "model-value": _ctx.selection,
41
40
  "tooltip-text": _ctx.tooltipText,
42
41
  intermediate: "",
43
- class: "size-full justify-end pr-6",
42
+ class: "size-full px-[--w-list-padding,1rem]",
44
43
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selection", $event))
45
44
  }, null, 8, ["disabled", "model-value", "tooltip-text"])) : createCommentVNode("", true)
46
45
  ], 2)
@@ -51,9 +50,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
50
  createElementVNode("div", _hoisted_4, [
52
51
  _cache[2] || (_cache[2] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
53
52
  createElementVNode("div", {
54
- class: normalizeClass(["bg-primary-light dark:bg-primary-darkest h-full rounded-r-2xl border-y border-r border-solid border-gray-300 dark:border-gray-700", {
55
- "width-14": !_ctx.hideMore,
56
- "width-4": _ctx.hideMore
53
+ class: normalizeClass(["bg-primary-light dark:bg-primary-darkest h-full rounded-r-[--w-list-header-rounded,0.75rem] border-y border-r border-solid border-gray-300 dark:border-gray-700", {
54
+ "width-[calc(var(--w-list-padding,1rem)*2+1.25em)]": !_ctx.hideMore,
55
+ "width-[--w-list-header-rounded,1rem]": _ctx.hideMore
57
56
  }])
58
57
  }, [
59
58
  renderSlot(_ctx.$slots, "settings")
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot } from 'vue';
2
2
 
3
3
  const _hoisted_1 = { class: "bg-default dark:bg-default-dark sticky top-0 z-[1]" };
4
- const _hoisted_2 = { class: "text-accent sm-not:text-xl flex items-center justify-center text-balance p-[var(--modal-wrapper-padding,2rem)] text-center text-2xl font-semibold" };
5
- const _hoisted_3 = { class: "sm:px-[var(--modal-wrapper-padding,2rem)]" };
4
+ const _hoisted_2 = { class: "text-accent sm-not:text-xl -p--w-modal-wrapper-padding flex items-center justify-center text-balance text-center text-2xl font-semibold" };
5
+ const _hoisted_3 = { class: "sm:-px--w-modal-wrapper-padding" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "WModalWrapper",
8
8
  props: {
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  setup(__props) {
12
12
  return (_ctx, _cache) => {
13
13
  return openBlock(), createElementBlock("div", {
14
- class: normalizeClass(["bg-default dark:bg-default-dark max-h-[calc(100%-var(--modal-wrapper-padding,2rem)*2)] w-[var(--modal-wrapper-width,35rem)] max-w-[calc(100%-var(--modal-wrapper-padding,2rem)*2)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-[--w-modal-wrapper-rounded,1.5rem] shadow-md", {
14
+ class: normalizeClass(["bg-default dark:bg-default-dark max-h-[calc(100%-var(--inner-margin,2rem)*2)] w-[var(--w-modal-wrapper-width,35rem)] max-w-[calc(100%-var(--inner-margin,2rem)*2)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-[--w-modal-wrapper-rounded,1.5rem] shadow-md", {
15
15
  "sm-not:max-w-full sm-not:h-full sm-not:rounded-none sm-not:max-h-full": _ctx.maximized
16
16
  }])
17
17
  }, [
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  renderSlot(_ctx.$slots, "default")
26
26
  ]),
27
27
  createElementVNode("div", {
28
- class: normalizeClass(["bg-default dark:bg-default-dark sticky bottom-0 z-[1] flex w-full justify-center gap-[var(--modal-wrapper-padding,2rem)] p-[var(--modal-wrapper-padding,2rem)]", {
28
+ class: normalizeClass(["bg-default dark:bg-default-dark -gap--inner-margin -p--w-modal-wrapper-padding sticky bottom-0 z-[1] flex w-full justify-center", {
29
29
  "sm-not:flex-col": !_ctx.maximized
30
30
  }])
31
31
  }, [
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  emit("close:modal");
58
58
  };
59
59
  return (_ctx, _cache) => {
60
- return openBlock(), createBlock(_sfc_main$1, { class: "[--modal-wrapper-width:40rem]" }, {
60
+ return openBlock(), createBlock(_sfc_main$1, { class: "w-modal-wrapper-w-[40rem]" }, {
61
61
  title: withCtx(() => [
62
62
  createTextVNode(toDisplayString(_ctx.title), 1)
63
63
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAkDA;AA2GA,OAAO,KAAK,EAAC,0BAA0B,EAAE,qBAAqB,EAA6B,MAAM,UAAU,CAAA;yBAM1F,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,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AAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAmM1D,mBAAmB,CAAC;;;;uQAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;kBApJC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;kBAAjE,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YA3CvE,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;;YAkMF,OAAO,CAAC,OAAO,WAAW,CAAC;;AA7MvE,wBA6M4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  createVNode(_sfc_main$1, {
77
77
  loading: _ctx.loading,
78
78
  disabled: _ctx.disabled,
79
- class: "-mr-2 ml-1",
79
+ class: "w-option-button ml-1 mr-2",
80
80
  onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
81
81
  }, ["stop", "prevent"])),
82
82
  onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
@@ -90,6 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
90
  key: 0,
91
91
  loading: _ctx.loading,
92
92
  disabled: _ctx.disabled,
93
+ class: "ml-1 mr-2",
93
94
  onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
94
95
  }, ["stop", "prevent"])),
95
96
  onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
@@ -4,7 +4,7 @@ import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  key: 0,
7
- class: "text-primary-default dark:text-primary-dark col-start-3 flex items-center justify-center [--spinner-size:1.5rem]"
7
+ class: "text-primary-default dark:text-primary-dark w-spinner-size-[1.5em] col-start-3 flex items-center justify-center"
8
8
  };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "SelectOption",
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AAuCA;AAoDA,OAAO,KAAK,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAA;yBAIrD,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAChF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6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AC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createBlock, createCommentVNode, resolveDynamicComponent, mergeProps, withCtx, withModifiers } from 'vue';
1
+ import { defineComponent, createBlock, createElementBlock, openBlock, resolveDynamicComponent, mergeProps, withCtx, createCommentVNode, withModifiers, normalizeClass, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../../Button/WButtonUnselect.vue.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -15,42 +15,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  emits: ["unselect"],
16
16
  setup(__props) {
17
17
  return (_ctx, _cache) => {
18
- return openBlock(), createElementBlock("div", {
18
+ return _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
19
+ option: _ctx.option,
20
+ index: _ctx.index,
21
+ selected: true,
22
+ model: true
23
+ }), {
24
+ default: withCtx(() => [
25
+ !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
26
+ key: 0,
27
+ loading: _ctx.loading,
28
+ disabled: _ctx.disabled,
29
+ class: "w-option-button ml-1 mr-2",
30
+ onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
31
+ }, ["stop", "prevent"])),
32
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("unselect"), ["stop", "prevent"]))
33
+ }, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)
34
+ ]),
35
+ _: 1
36
+ }, 16, ["option", "index"])) : (openBlock(), createElementBlock("div", {
37
+ key: 1,
19
38
  class: normalizeClass(["text-description group/model relative grid grid-cols-[1fr,auto] items-center", {
20
39
  "cursor-pointer": !_ctx.disabled,
21
40
  "cursor-not-allowed opacity-50": _ctx.disabled
22
41
  }])
23
42
  }, [
24
- renderSlot(_ctx.$slots, "option", {}, () => [
25
- _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
26
- option: _ctx.option,
27
- index: _ctx.index,
28
- selected: true,
29
- model: true
30
- }), {
31
- default: withCtx(() => [
32
- !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
33
- key: 0,
34
- loading: _ctx.loading,
35
- disabled: _ctx.disabled,
36
- class: "-mr-2 ml-1",
37
- onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
38
- }, ["stop", "prevent"])),
39
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("unselect"), ["stop", "prevent"]))
40
- }, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)
41
- ]),
42
- _: 1
43
- }, 16, ["option", "index"])) : createCommentVNode("", true)
44
- ]),
45
- !_ctx.optionComponent && !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
43
+ renderSlot(_ctx.$slots, "option"),
44
+ !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
46
45
  key: 0,
47
46
  loading: _ctx.loading,
48
47
  disabled: _ctx.disabled,
48
+ class: "mx-1 mr-2",
49
49
  onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
50
50
  }, ["stop", "prevent"])),
51
51
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => _ctx.$emit("unselect"), ["stop", "prevent"]))
52
52
  }, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)
53
- ], 2);
53
+ ], 2));
54
54
  };
55
55
  }
56
56
  });
@@ -4,7 +4,7 @@ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
  const _sfc_main = {};
5
5
 
6
6
  const _hoisted_1 = {
7
- class: "square-[var(--spinner-size,2rem)] animate-spin",
7
+ class: "square-[var(--w-spinner-size,2rem)] animate-spin",
8
8
  width: "20",
9
9
  height: "20",
10
10
  viewBox: "25 25 50 50"
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  _: 3
15
15
  })) : (openBlock(), createElementBlock("div", {
16
16
  key: 1,
17
- class: "grid grid-cols-[repeat(var(--w-columns-length),calc(50%-((var(--w-columns-length)-1)*var(--modal-wrapper-padding,2rem)/2)))] gap-[var(--modal-wrapper-padding,2rem)]",
17
+ class: "grid grid-cols-[repeat(var(--w-columns-length),calc(50%-((var(--w-columns-length)-1)*var(--w-modal-wrapper-padding,2rem)/2)))] gap-[var(--w-modal-wrapper-padding,2rem)]",
18
18
  style: normalizeStyle({ "--w-columns-length": _ctx.$slots.default?.().length })
19
19
  }, [
20
20
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  }, [
100
100
  _ctx.loading ? (openBlock(), createBlock(WSpinner, {
101
101
  key: 0,
102
- class: "text-description [--spinner-size:1.25rem]"
102
+ class: "text-description w-spinner-size-5"
103
103
  })) : createCommentVNode("", true)
104
104
  ], 2)
105
105
  ], 2)
@@ -6,6 +6,7 @@ import { default as WButtonAction } from '../components/Button/WButtonAction.vue
6
6
  import { default as WButtonCopy } from '../components/Button/WButtonCopy.vue';
7
7
  import { default as WButtonDropdown } from '../components/Button/WButtonDropdown.vue';
8
8
  import { default as WButtonGroup } from '../components/Button/WButtonGroup.vue';
9
+ import { default as WButtonInput } from '../components/Button/WButtonInput.vue';
9
10
  import { default as WButtonMore } from '../components/Button/WButtonMore.vue';
10
11
  import { default as WButtonMoreItem } from '../components/Button/WButtonMoreItem.vue';
11
12
  import { default as WButtonSelection } from '../components/Button/WButtonSelection.vue';
@@ -85,5 +86,5 @@ declare const _default: {
85
86
  install: (app: App | any) => void;
86
87
  };
87
88
  export default _default;
88
- export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WFormValidator, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageNumerator, WPageTitle, WProgress, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
89
+ export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageNumerator, WPageTitle, WProgress, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
89
90
  //# sourceMappingURL=componentsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,KAAK,MAAM,6BAA6B,CAAA;AAC/C,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,QAAQ,MAAM,mCAAmC,CAAA;AACxD,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,iBAAiB,MAAM,+CAA+C,CAAA;AAC7E,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,eAAe,MAAM,iDAAiD,CAAA;AAC7E,OAAO,UAAU,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W,EACX,eAAe,EACf,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,KAAK,EACL,aAAa,EACb,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,KAAK,EACL,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,2BAA2B,EAC3B,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,gBAAgB,EAChB,KAAK,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
1
+ {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,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M,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,gBAAgB,EAChB,KAAK,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
package/dist/main.js CHANGED
@@ -9,6 +9,7 @@ export { default as WButtonAction } from './components/Button/WButtonAction.vue.
9
9
  export { default as WButtonCopy } from './components/Button/WButtonCopy.vue.js';
10
10
  export { default as WButtonDropdown } from './components/Button/WButtonDropdown.vue.js';
11
11
  export { default as WButtonGroup } from './components/Button/WButtonGroup.vue.js';
12
+ export { default as WButtonInput } from './components/Button/WButtonInput.vue.js';
12
13
  export { default as WButtonMore } from './components/Button/WButtonMore.vue.js';
13
14
  export { default as WButtonMoreItem } from './components/Button/WButtonMoreItem.vue.js';
14
15
  export { default as WButtonSelection } from './components/Button/WButtonSelection.vue.js';
@@ -125,6 +125,7 @@ export default [
125
125
  'unused-imports/no-unused-imports': 'error',
126
126
  'tailwindcss/no-custom-classname': 'off',
127
127
  'tailwindcss/migration-from-tailwind-2': 'off',
128
+ 'tailwindcss/enforces-negative-arbitrary-values': 'off',
128
129
  'no-multiple-empty-lines': [1, {max: 1, maxEOF: 0, maxBOF: 0}],
129
130
  'keyword-spacing': 1,
130
131
  'key-spacing': 1,
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.13",
7
+ "version": "0.10.14",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "dev": "vite build --watch",
@@ -154,6 +154,9 @@
154
154
  "./dist/components/Button/WButtonGroup.vue": {
155
155
  "import": "./dist/components/Button/WButtonGroup.vue.js"
156
156
  },
157
+ "./dist/components/Button/WButtonInput.vue": {
158
+ "import": "./dist/components/Button/WButtonInput.vue.js"
159
+ },
157
160
  "./dist/components/Button/WButtonMore.vue": {
158
161
  "import": "./dist/components/Button/WButtonMore.vue.js"
159
162
  },
@@ -27,70 +27,12 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
27
27
  width: value,
28
28
  }
29
29
  },
30
- 'chunk-gap': value => {
31
- return {
32
- '--split-to-chunks-gap': value,
33
- }
34
- },
35
- 'w-spinner-size': value => {
36
- return {
37
- '--spinner-size': value,
38
- }
39
- },
40
- 'w-modal-wrapper-padding': value => {
41
- return {
42
- '--modal-wrapper-padding': value,
43
- }
44
- },
45
30
  },
46
31
  {
47
32
  values: theme('width'),
48
33
  },
49
34
  )
50
35
 
51
- matchUtilities(
52
- {
53
- 'split-to-chunks': (width) => {
54
- const value = Number.parseFloat(width)
55
- const unit = width.replace(value.toString(), '')
56
-
57
- return Array(4).fill(undefined).reduce(
58
- (current, _, index) => {
59
- const widthValue = `calc(((100% / ${ index + 2 }) * var(--split-to-chunks-span, 1)) - (var(--split-to-chunks-gap, 16px) * ${ (index + 1) } / ${ (index + 2) }))`
60
-
61
- return {
62
- ...current,
63
- [`@media (min-width: ${ value * (index + 2) + (index < 1 ? 2 : 25.25) }${ unit })`]: {
64
- width: widthValue,
65
- minWidth: widthValue,
66
- },
67
- }
68
- },
69
- {
70
- width: '100%',
71
- minWidth: '100%',
72
- },
73
- )
74
- },
75
- },
76
- {
77
- values: theme('chunks'),
78
- },
79
- )
80
-
81
- matchUtilities(
82
- {
83
- 'chunk-span': value => {
84
- return {
85
- '--split-to-chunks-span': value,
86
- }
87
- },
88
- },
89
- {
90
- values: theme('chunk-span'),
91
- },
92
- )
93
-
94
36
  addUtilities({
95
37
  '.max-w-inner': {
96
38
  'max-width': 'calc(100vw - var(--actions-bar-width) - var(--nav-bar-width) - var(--inner-margin) - var(--inner-margin) - var(--scroll-bar-width))',
@@ -226,6 +168,28 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
226
168
  },
227
169
  })
228
170
 
171
+ addBase({
172
+ '.w-option': {
173
+ 'min-height': 'var(--w-option-height)',
174
+ 'border-radius': 'var(--w-option-rounded)',
175
+
176
+ '--w-skeleton-height': 'var(--w-option-height)',
177
+ '--w-skeleton-rounded': 'var(--w-option-rounded)',
178
+ },
179
+ '.w-option-has-bg, *:has(.w-option-has-bg) + .w-option-has-bg-input, .w-option-has-bg + .w-option-has-bg-input': {
180
+ 'padding-left': 'var(--w-option-padding)',
181
+ 'padding-right': 'var(--w-option-padding)',
182
+ },
183
+ '.w-option-has-bg .w-option-button': {
184
+ 'margin-right': 'calc(var(--w-option-rounded) * -1)',
185
+ },
186
+ body: {
187
+ '--w-option-height': 'calc(var(--w-input-height,2.75rem) - (var(--w-input-gap,0.25rem) * 2) - 2px)',
188
+ '--w-option-rounded': 'calc(var(--w-input-rounded,0.75rem) - var(--w-input-gap,0.25rem))',
189
+ '--w-option-padding': 'var(--w-input-rounded,0.75rem)',
190
+ },
191
+ })
192
+
229
193
  matchUtilities(
230
194
  {
231
195
  'w-scroll-bar-color': value => {
@@ -464,6 +428,13 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
464
428
  {
465
429
  'w-skeleton-w': value => ({'--skeleton-width': value}),
466
430
  'w-list-card-w': value => ({'--w-list-card-width': value}),
431
+ 'w-checkbox-size': value => ({'--w-checkbox-size': value}),
432
+ 'w-input-gap': value => ({'--w-input-gap': value}),
433
+ 'w-spinner-size': value => ({'--w-spinner-size': value}),
434
+ 'w-modal-wrapper-p': value => ({'--w-modal-wrapper-padding': value}),
435
+ 'w-modal-wrapper-w': value => ({'--w-modal-wrapper-width': value}),
436
+ 'w-list-header-h': value => ({'--w-list-header-height': value}),
437
+ 'w-list-padding': value => ({'--w-list-padding': value}),
467
438
  'grid-cols-fill': value => ({'grid-template-columns': `repeat(auto-fill, minmax(${ value }, 1fr))`}),
468
439
  },
469
440
  {
@@ -492,6 +463,7 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
492
463
  'w-list-rounded': value => ({'--w-list-rounded': value}),
493
464
  'w-option-rounded': value => ({'--w-option-rounded': value}),
494
465
  'w-modal-wrapper-rounded': value => ({'--w-modal-wrapper-rounded': value}),
466
+ 'w-list-header-rounded': value => ({'--w-list-header-rounded': value}),
495
467
  },
496
468
  {
497
469
  values: theme('borderRadius'),
@@ -10,6 +10,10 @@ const newValues = {
10
10
  '--actions-bar-inner-width': 'var(--actions-bar-inner-width)',
11
11
  '--inner-margin': 'var(--inner-margin)',
12
12
  '--inner-width-diff': 'var(--inner-width-diff)',
13
+ '--w-modal-wrapper-padding': 'var(--w-modal-wrapper-padding)',
14
+ '--w-option-padding': 'var(--w-option-padding)',
15
+ '--w-input-height': 'var(--w-input-height)',
16
+ '--w-input-gap': 'var(--w-input-gap)',
13
17
  }
14
18
 
15
19
  const extend = {
@@ -37,4 +41,5 @@ export default {
37
41
  padding: extend,
38
42
  margin: extend,
39
43
  inset: extend,
44
+ gap: extend,
40
45
  }