@scalar/components 0.14.7 → 0.14.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 (75) hide show
  1. package/README.md +7 -13
  2. package/dist/components/ScalarButton/ScalarButton.stories.d.ts.map +1 -1
  3. package/dist/components/ScalarCheckbox/ScalarCheckbox.vue.d.ts.map +1 -1
  4. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -1
  5. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +11 -14
  6. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
  7. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +13 -16
  8. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  9. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +34 -38
  10. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -1
  11. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +7 -10
  12. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -1
  13. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.js +6 -9
  14. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -1
  15. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js +10 -13
  16. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +4 -52
  17. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
  18. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +5 -69
  19. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
  20. package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
  21. package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -32
  22. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.test.d.ts +2 -0
  23. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.test.d.ts.map +1 -0
  24. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts +18 -0
  25. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts.map +1 -0
  26. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.js +28 -0
  27. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue2.js +4 -0
  28. package/dist/components/ScalarIcon/index.d.ts +1 -0
  29. package/dist/components/ScalarIcon/index.d.ts.map +1 -1
  30. package/dist/components/ScalarIcon/types.d.ts +19 -0
  31. package/dist/components/ScalarIcon/types.d.ts.map +1 -0
  32. package/dist/components/ScalarIcon/variants.d.ts +61 -0
  33. package/dist/components/ScalarIcon/variants.d.ts.map +1 -0
  34. package/dist/components/ScalarIcon/variants.js +21 -0
  35. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +2 -0
  36. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
  37. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +2 -0
  38. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
  39. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +15 -13
  40. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
  41. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -1
  42. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +5 -6
  43. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
  44. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  45. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +17 -17
  46. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +1 -1
  47. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
  48. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +13 -10
  49. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +1 -1
  50. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  51. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
  52. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +27 -26
  53. package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts.map +1 -1
  54. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +18 -17
  55. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
  56. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +23 -25
  57. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.d.ts.map +1 -1
  58. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +9 -9
  59. package/dist/components/ScalarMenu/types.d.ts +1 -1
  60. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +2 -1
  61. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  62. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +16 -15
  63. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +20 -3
  64. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts.map +1 -1
  65. package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts.map +1 -1
  66. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  67. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +24 -20
  68. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts +2 -2
  69. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
  70. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +19 -15
  71. package/dist/components/ScalarSidebar/types.d.ts +1 -1
  72. package/dist/components/ScalarSidebar/types.d.ts.map +1 -1
  73. package/dist/index.js +104 -102
  74. package/dist/style.css +1 -1
  75. package/package.json +7 -7
package/README.md CHANGED
@@ -50,35 +50,29 @@ Then, you can use the components in your Vue components. For example:
50
50
  <script
51
51
  setup
52
52
  lang="ts">
53
- import { ScalarIcon } from '@scalar/components'
53
+ import { ScalarButton } from '@scalar/components'
54
54
  </script>
55
55
  <template>
56
- <ScalarIcon
57
- icon="Logo"
58
- size="lg" />
56
+ <ScalarButton />
59
57
  </template>
60
58
  ```
61
59
 
62
60
  ## Customizing Components
63
61
 
64
- Most components can be customized using props. For example, the `ScalarIcon` component can be customized with the `size` prop to change the size of the icon.
62
+ Most components can be customized using props. For example, the `ScalarButton` component can be customized with the `variant` prop to change the variant of the button.
65
63
 
66
64
  ```html
67
- <ScalarIcon
68
- icon="Logo"
69
- size="lg" />
65
+ <ScalarButton variant="ghost" />
70
66
  ```
71
67
 
72
68
  However, sometimes you need to override the default styles. Most components (soon to be all) use the `useBindCx` function to apply the Tailwind classes to the component. The function intelligently merges the component's classes with the provided classes allowing you to override preset classes.
73
69
 
74
70
  ```html
75
- <!-- An icon you need to be really big -->
76
- <ScalarIcon
77
- icon="Logo"
78
- class="size-24" />
71
+ <!-- A button you need to be really big -->
72
+ <ScalarButton class="h-24 w-48" />
79
73
  ```
80
74
 
81
- This will apply the `size-24` class to the icon and remove the `size-full` class that would normally be applied by default. For more information see the [useBindCx](https://github.com/scalar/scalar/blob/main/packages/use-hooks/src/useBindCx/useBindCx.ts) function.
75
+ This will apply the `h-24 w-48` classes to the button and remove the sizing classes that would normally be applied by default. For more information see the [useBindCx](https://github.com/scalar/scalar/blob/main/packages/use-hooks/src/useBindCx/useBindCx.ts) function.
82
76
 
83
77
  ## Floating Components
84
78
 
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/ScalarButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,SAAS,EAAE,KAAqC,CAAA;AAE7D,eAAO,MAAM,KAAK,EAAE,KAAsC,CAAA;AAE1D,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAoC,CAAA;AAE3D,eAAO,MAAM,OAAO,EAAE,KASrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAS9B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAA"}
1
+ {"version":3,"file":"ScalarButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/ScalarButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,SAAS,EAAE,KAAqC,CAAA;AAE7D,eAAO,MAAM,KAAK,EAAE,KAAsC,CAAA;AAE1D,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAoC,CAAA;AAE3D,eAAO,MAAM,OAAO,EAAE,KASrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAS9B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCheckbox/ScalarCheckbox.vue"],"names":[],"mappings":"AA8EA,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAmCJ,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;UApIV,IAAI,GAAG,IAAI,GAAG,IAAI;QACpB,MAAM;wFA4Ib,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCheckbox/ScalarCheckbox.vue"],"names":[],"mappings":"AA0EA,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAmCJ,iBAAS,cAAc;WA6ET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;UArIV,IAAI,GAAG,IAAI,GAAG,IAAI;QACpB,MAAM;wFA6Ib,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCodeBlock/ScalarCodeBlock.vue"],"names":[],"mappings":"AAkJA;;GAEG;AACH,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;;UAJO,MAAM;iBACC,OAAO;UAEd,OAAO;;AA2HlB,wBAQG"}
1
+ {"version":3,"file":"ScalarCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCodeBlock/ScalarCodeBlock.vue"],"names":[],"mappings":"AAkJA;;GAEG;AACH,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;;UAJO,MAAM;iBACC,OAAO;UAEd,OAAO;;AA4HlB,wBAQG"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as f, computed as s, createElementBlock as o, openBlock as n, createCommentVNode as a, createElementVNode as c, unref as l, createVNode as y } from "vue";
2
- import { syntaxHighlight as b, standardLanguages as C } from "@scalar/code-highlight";
1
+ import { defineComponent as y, computed as r, createElementBlock as o, openBlock as n, createCommentVNode as a, createElementVNode as c, unref as l, createVNode as f } from "vue";
2
+ import { syntaxHighlight as C, standardLanguages as b } from "@scalar/code-highlight";
3
+ import { ScalarIconCopy as g } from "@scalar/icons";
3
4
  import { prettyPrintJson as i } from "@scalar/oas-utils/helpers";
4
- import { useClipboard as g } from "@scalar/use-hooks/useClipboard";
5
- import h from "../ScalarIcon/ScalarIcon.vue.js";
5
+ import { useClipboard as h } from "@scalar/use-hooks/useClipboard";
6
6
  const k = {
7
7
  class: "scalar-code-block custom-scroll min-h-12 focus-visible:outline",
8
8
  tabindex: "0"
9
9
  }, N = {
10
10
  key: 0,
11
11
  class: "scalar-code-copy"
12
- }, _ = ["innerHTML"], T = /* @__PURE__ */ f({
12
+ }, _ = ["innerHTML"], T = /* @__PURE__ */ y({
13
13
  __name: "ScalarCodeBlock",
14
14
  props: {
15
15
  content: {},
@@ -19,14 +19,14 @@ const k = {
19
19
  copy: { type: Boolean, default: !0 }
20
20
  },
21
21
  setup(d) {
22
- const e = d, u = s(() => b(i(e.content), {
22
+ const e = d, u = r(() => C(i(e.content), {
23
23
  lang: e.lang.trim(),
24
- languages: C,
24
+ languages: b,
25
25
  lineNumbers: e.lineNumbers,
26
26
  maskCredentials: e.hideCredentials
27
- }).slice(5, -6)), { copyToClipboard: p } = g(), m = s(() => e.content !== null && e.content !== "null" && e.content !== "404 Not Found");
28
- return (r, t) => (n(), o("div", k, [
29
- r.copy ? (n(), o("div", N, [
27
+ }).slice(5, -6)), { copyToClipboard: p } = h(), m = r(() => e.content !== null && e.content !== "null" && e.content !== "404 Not Found");
28
+ return (s, t) => (n(), o("div", k, [
29
+ s.copy ? (n(), o("div", N, [
30
30
  m.value ? (n(), o("button", {
31
31
  key: 0,
32
32
  class: "copy-button",
@@ -34,10 +34,7 @@ const k = {
34
34
  onClick: t[0] || (t[0] = (v) => l(p)(l(i)(e.content)))
35
35
  }, [
36
36
  t[1] || (t[1] = c("span", { class: "sr-only" }, "Copy content", -1)),
37
- y(l(h), {
38
- icon: "Clipboard",
39
- size: "md"
40
- })
37
+ f(l(g), { class: "size-4" })
41
38
  ])) : a("", !0)
42
39
  ])) : a("", !0),
43
40
  c("pre", {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarComboboxOption.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOption.vue"],"names":[],"mappings":"AA8DA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAA;AAIzB,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAA;IAChC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA+BF,iBAAS,cAAc;WA2ET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarComboboxOption.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOption.vue"],"names":[],"mappings":"AA6DA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAA;AAIzB,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAA;IAChC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA+BF,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as s, createElementBlock as r, openBlock as l, normalizeClass as n, unref as t, createVNode as i, createElementVNode as c, createBlock as p, createCommentVNode as m, normalizeStyle as d, renderSlot as u, withModifiers as f } from "vue";
2
- import { cva as b, cx as y } from "@scalar/use-hooks/useBindCx";
3
- import v from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
4
- import k from "../ScalarIcon/ScalarIcon.vue.js";
5
- const g = ["aria-selected"], B = { class: "inline-block min-w-0 flex-1 truncate text-c-1" }, $ = /* @__PURE__ */ s({
1
+ import { defineComponent as r, createElementBlock as s, openBlock as l, normalizeClass as n, unref as t, createVNode as i, createElementVNode as c, createBlock as p, createCommentVNode as m, normalizeStyle as d, renderSlot as u, withModifiers as f } from "vue";
2
+ import { ScalarIconTrash as b } from "@scalar/icons";
3
+ import { cva as y, cx as v } from "@scalar/use-hooks/useBindCx";
4
+ import g from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
5
+ const k = ["aria-selected"], B = { class: "inline-block min-w-0 flex-1 truncate text-c-1" }, w = /* @__PURE__ */ r({
6
6
  __name: "ScalarComboboxOption",
7
7
  props: {
8
8
  active: { type: Boolean },
@@ -12,7 +12,7 @@ const g = ["aria-selected"], B = { class: "inline-block min-w-0 flex-1 truncate
12
12
  },
13
13
  emits: ["delete"],
14
14
  setup(h) {
15
- const a = b({
15
+ const a = y({
16
16
  base: [
17
17
  // Group
18
18
  "group/item",
@@ -28,31 +28,28 @@ const g = ["aria-selected"], B = { class: "inline-block min-w-0 flex-1 truncate
28
28
  active: { true: "bg-b-2" }
29
29
  }
30
30
  });
31
- return (e, o) => (l(), r("li", {
31
+ return (e, o) => (l(), s("li", {
32
32
  "aria-selected": e.selected,
33
- class: n(t(y)(t(a)({ active: e.active, selected: e.selected }))),
33
+ class: n(t(v)(t(a)({ active: e.active, selected: e.selected }))),
34
34
  role: "option",
35
35
  tabindex: "-1"
36
36
  }, [
37
- i(t(v), {
37
+ i(t(g), {
38
38
  selected: e.selected,
39
39
  style: d(e.style)
40
40
  }, null, 8, ["selected", "style"]),
41
41
  c("span", B, [
42
42
  u(e.$slots, "default")
43
43
  ]),
44
- e.isDeletable ? (l(), p(t(k), {
44
+ e.isDeletable ? (l(), p(t(b), {
45
45
  key: 0,
46
46
  "aria-label": "Delete",
47
- class: "text-c-2 opacity-0 group-hover/item:opacity-100",
48
- icon: "Delete",
49
- size: "md",
50
- thickness: "1.5",
47
+ class: "text-c-2 opacity-0 group-hover/item:opacity-100 size-4",
51
48
  onClick: o[0] || (o[0] = f((x) => e.$emit("delete"), ["stop"]))
52
49
  })) : m("", !0)
53
- ], 10, g));
50
+ ], 10, k));
54
51
  }
55
52
  });
56
53
  export {
57
- $ as default
54
+ w as default
58
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AAyMA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAEjB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAwHF,iBAAS,cAAc;WAsKT,OAAO,IAA6B;;;;EAKjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AAuMA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAEjB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAwHF,iBAAS,cAAc;WAuKT,OAAO,IAA6B;;;;EAKjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as O, useId as q, computed as b, ref as D, onMounted as F, watch as G, createElementBlock as y, openBlock as c, Fragment as $, createElementVNode as w, withDirectives as C, createVNode as U, unref as j, withKeys as x, withModifiers as h, vModelText as H, renderSlot as S, renderList as B, createBlock as M, withCtx as V, createCommentVNode as J, normalizeStyle as P, createTextVNode as E, toDisplayString as N, vShow as Q } from "vue";
2
- import R from "./ScalarComboboxOption.vue.js";
3
- import W from "./ScalarComboboxOptionGroup.vue.js";
1
+ import { defineComponent as K, useId as O, computed as b, ref as D, onMounted as q, watch as F, createElementBlock as y, openBlock as v, Fragment as $, createElementVNode as h, withDirectives as C, createVNode as U, unref as j, withKeys as w, withModifiers as g, vModelText as H, renderSlot as M, renderList as B, createBlock as S, withCtx as x, createCommentVNode as J, normalizeStyle as P, createTextVNode as E, toDisplayString as N, vShow as Q } from "vue";
2
+ import { ScalarIconMagnifyingGlass as R } from "@scalar/icons";
3
+ import W from "./ScalarComboboxOption.vue.js";
4
+ import X from "./ScalarComboboxOptionGroup.vue.js";
4
5
  import { isGroups as L } from "./types.js";
5
- import X from "../ScalarIcon/ScalarIcon.vue.js";
6
- const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder"], _ = ["aria-multiselectable"], ne = /* @__PURE__ */ O({
6
+ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder"], _ = ["aria-multiselectable"], ne = /* @__PURE__ */ K({
7
7
  inheritAttrs: !1,
8
8
  __name: "ScalarComboboxOptions",
9
9
  props: {
@@ -16,39 +16,39 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
16
16
  emits: ["update:modelValue", "delete"],
17
17
  setup(T, { emit: z }) {
18
18
  var I;
19
- const a = T, A = z, m = `scalar-combobox-items-${q()}`;
19
+ const a = T, A = z, m = `scalar-combobox-items-${O()}`;
20
20
  function p(e) {
21
21
  return `${m}-${e.id}`;
22
22
  }
23
23
  const f = b(
24
24
  () => L(a.options) ? a.options.flatMap((e) => e.options) : a.options
25
- ), K = b(
25
+ ), G = b(
26
26
  () => L(a.options) ? a.options : [{ label: "", options: a.options }]
27
27
  ), r = D(""), o = D(
28
28
  ((I = a.modelValue) == null ? void 0 : I[0]) ?? f.value[0]
29
29
  );
30
- F(async () => {
30
+ q(async () => {
31
31
  var e;
32
32
  r.value = "", o.value = ((e = a.modelValue) == null ? void 0 : e[0]) ?? f.value[0], s.value.length !== 0 && setTimeout(() => {
33
33
  var t;
34
34
  (t = document == null ? void 0 : document.getElementById(p(s.value[0]))) == null || t.scrollIntoView({ block: "nearest" });
35
35
  }, 10);
36
- }), G(
36
+ }), F(
37
37
  () => r.value,
38
- () => o.value = v.value[0]
38
+ () => o.value = c.value[0]
39
39
  );
40
- const v = b(
40
+ const c = b(
41
41
  () => r.value === "" ? f.value : f.value.filter((e) => e.label.toLowerCase().includes(r.value.toLowerCase()))
42
42
  ), s = b({
43
43
  get: () => a.modelValue ?? [],
44
44
  set: (e) => e && A("update:modelValue", e)
45
45
  });
46
- function g(e) {
46
+ function V(e) {
47
47
  a.multiselect ? s.value.some((t) => t.id === e.id) ? s.value = s.value.filter((t) => t.id !== e.id) : s.value = [...s.value, e] : s.value = [e];
48
48
  }
49
49
  function k(e) {
50
50
  var l;
51
- const t = v.value, d = t.findIndex((u) => {
51
+ const t = c.value, d = t.findIndex((u) => {
52
52
  var i;
53
53
  return u.id === ((i = o.value) == null ? void 0 : i.id);
54
54
  }) + e;
@@ -57,14 +57,10 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
57
57
  block: "nearest"
58
58
  }));
59
59
  }
60
- return (e, t) => (c(), y($, null, [
61
- w("div", Y, [
62
- U(j(X), {
63
- class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3",
64
- icon: "Search",
65
- size: "md"
66
- }),
67
- C(w("input", {
60
+ return (e, t) => (v(), y($, null, [
61
+ h("div", Y, [
62
+ U(j(R), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
63
+ C(h("input", {
68
64
  "onUpdate:modelValue": t[0] || (t[0] = (n) => r.value = n),
69
65
  "aria-activedescendant": o.value ? p(o.value) : void 0,
70
66
  "aria-autocomplete": "list",
@@ -76,54 +72,54 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
76
72
  tabindex: "0",
77
73
  type: "text",
78
74
  onKeydown: [
79
- t[1] || (t[1] = x(h((n) => k(1), ["prevent"]), ["down"])),
80
- t[2] || (t[2] = x(h((n) => o.value && g(o.value), ["prevent"]), ["enter"])),
81
- t[3] || (t[3] = x(h((n) => k(-1), ["prevent"]), ["up"]))
75
+ t[1] || (t[1] = w(g((n) => k(1), ["prevent"]), ["down"])),
76
+ t[2] || (t[2] = w(g((n) => o.value && V(o.value), ["prevent"]), ["enter"])),
77
+ t[3] || (t[3] = w(g((n) => k(-1), ["prevent"]), ["up"]))
82
78
  ]
83
79
  }, null, 40, Z), [
84
80
  [H, r.value]
85
81
  ])
86
82
  ]),
87
- C(w("ul", {
83
+ C(h("ul", {
88
84
  id: m,
89
85
  "aria-multiselectable": e.multiselect,
90
86
  class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",
91
87
  role: "listbox",
92
88
  tabindex: "-1"
93
89
  }, [
94
- S(e.$slots, "before"),
95
- (c(!0), y($, null, B(K.value, (n, d) => (c(), M(W, {
90
+ M(e.$slots, "before"),
91
+ (v(!0), y($, null, B(G.value, (n, d) => (v(), S(X, {
96
92
  id: `${m}-group-${d}`,
97
93
  key: d,
98
94
  hidden: (
99
95
  // Only show the group label if there are some results
100
- !n.options.some((l) => v.value.some((u) => u.id === l.id)) || // And it has a label
96
+ !n.options.some((l) => c.value.some((u) => u.id === l.id)) || // And it has a label
101
97
  !n.label
102
98
  )
103
99
  }, {
104
- label: V(() => [
100
+ label: x(() => [
105
101
  E(N(n.label), 1)
106
102
  ]),
107
- default: V(() => [
108
- (c(!0), y($, null, B(v.value, (l) => {
103
+ default: x(() => [
104
+ (v(!0), y($, null, B(c.value, (l) => {
109
105
  var u;
110
- return c(), y($, {
106
+ return v(), y($, {
111
107
  key: l.id
112
108
  }, [
113
- n.options.some((i) => i.id === l.id) ? (c(), M(R, {
109
+ n.options.some((i) => i.id === l.id) ? (v(), S(W, {
114
110
  key: 0,
115
111
  id: p(l),
116
112
  active: ((u = o.value) == null ? void 0 : u.id) === l.id,
117
113
  isDeletable: l.isDeletable ?? e.isDeletable,
118
114
  selected: s.value.some((i) => i.id === l.id),
119
115
  style: P(e.multiselect ? "checkbox" : "radio"),
120
- onClick: (i) => g(l),
116
+ onClick: (i) => V(l),
121
117
  onDelete: (i) => e.$emit("delete", l),
122
- onMousedown: t[4] || (t[4] = h(() => {
118
+ onMousedown: t[4] || (t[4] = g(() => {
123
119
  }, ["prevent"])),
124
120
  onMouseenter: (i) => o.value = l
125
121
  }, {
126
- default: V(() => [
122
+ default: x(() => [
127
123
  E(N(l.label), 1)
128
124
  ]),
129
125
  _: 2
@@ -133,9 +129,9 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
133
129
  ]),
134
130
  _: 2
135
131
  }, 1032, ["id", "hidden"]))), 128)),
136
- S(e.$slots, "after")
132
+ M(e.$slots, "after")
137
133
  ], 8, _), [
138
- [Q, v.value.length || e.$slots.before || e.$slots.after]
134
+ [Q, c.value.length || e.$slots.before || e.$slots.after]
139
135
  ])
140
136
  ], 64));
141
137
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarFileUploadDropTarget.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue"],"names":[],"mappings":"AA4CA;;;;;;;;GAQG;;qBA4D0B,GAAG;;AA3DhC,wBA0FC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarFileUploadDropTarget.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue"],"names":[],"mappings":"AAwCA;;;;;;;;GAQG;;qBA4D0B,GAAG;;AA3DhC,wBA0FC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,24 +1,21 @@
1
- import { defineComponent as s, createElementBlock as a, openBlock as l, normalizeProps as i, guardReactiveProps as c, unref as t, createElementVNode as o, createVNode as d, renderSlot as p, createTextVNode as u } from "vue";
1
+ import { defineComponent as n, createElementBlock as l, openBlock as a, normalizeProps as i, guardReactiveProps as c, unref as t, createElementVNode as o, createVNode as d, renderSlot as p, createTextVNode as u } from "vue";
2
+ import { ScalarIconUploadSimple as m } from "@scalar/icons";
2
3
  import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
3
- import m from "../ScalarIcon/ScalarIcon.vue.js";
4
- const _ = { class: "pointer-events-none flex size-full items-center justify-center gap-1 rounded-md p-1 text-c-2" }, x = { class: "font-medium" }, z = {}, B = /* @__PURE__ */ s({
4
+ const _ = { class: "pointer-events-none flex size-full items-center justify-center gap-1 rounded-md p-1 text-c-2" }, x = { class: "font-medium" }, z = {}, k = /* @__PURE__ */ n({
5
5
  ...z,
6
6
  inheritAttrs: !1,
7
7
  __name: "ScalarFileUploadDropTarget",
8
8
  setup(v) {
9
9
  const { cx: r } = f();
10
- return (n, e) => (l(), a("div", i(c(
10
+ return (s, e) => (a(), l("div", i(c(
11
11
  t(r)(
12
12
  " size-full flex items-center justify-center absolute inset-0 z-1 rounded p-1 backdrop-blur"
13
13
  )
14
14
  )), [
15
15
  o("div", _, [
16
- d(t(m), {
17
- class: "size-4",
18
- icon: "Upload"
19
- }),
16
+ d(t(m), { class: "size-4" }),
20
17
  o("span", x, [
21
- p(n.$slots, "default", {}, () => [
18
+ p(s.$slots, "default", {}, () => [
22
19
  e[0] || (e[0] = u("Drop to upload"))
23
20
  ])
24
21
  ])
@@ -27,5 +24,5 @@ const _ = { class: "pointer-events-none flex size-full items-center justify-cent
27
24
  }
28
25
  });
29
26
  export {
30
- B as default
27
+ k as default
31
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarFileUploadError.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadError.vue"],"names":[],"mappings":"AAqCA;;;;;;;;;GASG;;qBA2C0B,GAAG;;AA1ChC,wBAyEC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarFileUploadError.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadError.vue"],"names":[],"mappings":"AAiCA;;;;;;;;;GASG;;qBA4C0B,GAAG;;AA3ChC,wBA0EC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,18 +1,15 @@
1
- import { defineComponent as t, createElementBlock as n, openBlock as a, normalizeProps as c, guardReactiveProps as s, unref as e, createVNode as i, renderSlot as l } from "vue";
1
+ import { defineComponent as o, createElementBlock as a, openBlock as n, normalizeProps as c, guardReactiveProps as s, unref as e, createVNode as l, renderSlot as i } from "vue";
2
+ import { ScalarIconWarningCircle as p } from "@scalar/icons";
2
3
  import { useBindCx as m } from "@scalar/use-hooks/useBindCx";
3
- import p from "../ScalarIcon/ScalarIcon.vue.js";
4
- const d = {}, B = /* @__PURE__ */ t({
4
+ const d = {}, B = /* @__PURE__ */ o({
5
5
  ...d,
6
6
  inheritAttrs: !1,
7
7
  __name: "ScalarFileUploadError",
8
8
  setup(f) {
9
9
  const { cx: r } = m();
10
- return (o, _) => (a(), n("div", c(s(e(r)("flex items-center gap-1 text-c-danger"))), [
11
- i(e(p), {
12
- icon: "Error",
13
- size: "sm"
14
- }),
15
- l(o.$slots, "default")
10
+ return (t, _) => (n(), a("div", c(s(e(r)("flex items-center gap-1 text-c-danger"))), [
11
+ l(e(p), { class: "size-3.5" }),
12
+ i(t.$slots, "default")
16
13
  ], 16));
17
14
  }
18
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarFileUploadInputCompact.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAEV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAIhB;;;;;;;GAOG;;;;;;AACH,wBAuGC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarFileUploadInputCompact.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAEV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAIhB;;;;;;;GAOG;;;;;;AACH,wBAwGC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as c, createElementBlock as o, openBlock as n, mergeProps as m, unref as s, createElementVNode as l, renderSlot as i, createVNode as d, toDisplayString as r, createCommentVNode as u } from "vue";
2
- import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
3
- import x from "../ScalarIcon/ScalarIcon.vue.js";
1
+ import { defineComponent as c, createElementBlock as o, openBlock as s, mergeProps as m, unref as n, createElementVNode as l, renderSlot as i, createVNode as d, toDisplayString as r, createCommentVNode as u } from "vue";
2
+ import { ScalarIconUploadSimple as f } from "@scalar/icons";
3
+ import { useBindCx as x } from "@scalar/use-hooks/useBindCx";
4
4
  const _ = { class: "flex items-center gap-1 whitespace-nowrap text-c-2" }, b = {
5
5
  key: 0,
6
6
  class: "text-c-3 text-xs"
7
- }, k = {}, B = /* @__PURE__ */ c({
7
+ }, k = {}, h = /* @__PURE__ */ c({
8
8
  ...k,
9
9
  inheritAttrs: !1,
10
10
  __name: "ScalarFileUploadInputCompact",
@@ -14,10 +14,10 @@ const _ = { class: "flex items-center gap-1 whitespace-nowrap text-c-2" }, b = {
14
14
  },
15
15
  emits: ["click"],
16
16
  setup(y) {
17
- const { cx: p } = f();
18
- return (e, t) => (n(), o("button", m(
17
+ const { cx: p } = x();
18
+ return (e, t) => (s(), o("button", m(
19
19
  { type: "button" },
20
- s(p)(
20
+ n(p)(
21
21
  "flex items-center justify-center gap-1 rounded flex-col px-4 py-3 hover:bg-b-2"
22
22
  ),
23
23
  {
@@ -26,19 +26,16 @@ const _ = { class: "flex items-center gap-1 whitespace-nowrap text-c-2" }, b = {
26
26
  ), [
27
27
  l("div", _, [
28
28
  i(e.$slots, "default", {}, () => [
29
- d(s(x), {
30
- icon: "Upload",
31
- size: "sm"
32
- }),
29
+ d(n(f), { class: "size-3.5" }),
33
30
  l("span", null, " Upload " + r(e.multiple ? "files" : "file"), 1)
34
31
  ])
35
32
  ]),
36
33
  i(e.$slots, "sublabel", {}, () => [
37
- e.extensions ? (n(), o("div", b, r(e.extensions.join(", ")), 1)) : u("", !0)
34
+ e.extensions ? (s(), o("div", b, r(e.extensions.join(", ")), 1)) : u("", !0)
38
35
  ])
39
36
  ], 16));
40
37
  }
41
38
  });
42
39
  export {
43
- B as default
40
+ h as default
44
41
  };
@@ -1,18 +1,6 @@
1
1
  import type { StoryObj } from '@storybook/vue3';
2
2
  declare const meta: {
3
- component: import("vue").DefineComponent<{
4
- icon?: import("./index.js").Icon;
5
- logo?: import("./utils/index.js").Logo;
6
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
7
- thickness?: string;
8
- label?: string;
9
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
10
- icon?: import("./index.js").Icon;
11
- logo?: import("./utils/index.js").Logo;
12
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
13
- thickness?: string;
14
- label?: string;
15
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ component: import("vue").DefineComponent<import("./types.js").ScalarIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types.js").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
4
  tags: string[];
17
5
  argTypes: {
18
6
  icon: {
@@ -45,48 +33,12 @@ declare const meta: {
45
33
  };
46
34
  };
47
35
  };
48
- render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
49
- icon?: import("./index.js").Icon;
50
- logo?: import("./utils/index.js").Logo;
51
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
52
- thickness?: string;
53
- label?: string;
54
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
55
- icon?: import("./index.js").Icon;
56
- logo?: import("./utils/index.js").Logo;
57
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
58
- thickness?: string;
59
- label?: string;
60
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>) => {
36
+ render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<import("./types.js").ScalarIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types.js").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>) => {
61
37
  components: {
62
- ScalarIcon: import("vue").DefineComponent<{
63
- icon?: import("./index.js").Icon;
64
- logo?: import("./utils/index.js").Logo;
65
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
66
- thickness?: string;
67
- label?: string;
68
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
69
- icon?: import("./index.js").Icon;
70
- logo?: import("./utils/index.js").Logo;
71
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
72
- thickness?: string;
73
- label?: string;
74
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ ScalarIcon: import("vue").DefineComponent<import("./types.js").ScalarIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types.js").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
75
39
  };
76
40
  setup(this: void): {
77
- args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
78
- icon?: import("./index.js").Icon;
79
- logo?: import("./utils/index.js").Logo;
80
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
81
- thickness?: string;
82
- label?: string;
83
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
84
- icon?: import("./index.js").Icon;
85
- logo?: import("./utils/index.js").Logo;
86
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
87
- thickness?: string;
88
- label?: string;
89
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
41
+ args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<import("./types.js").ScalarIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types.js").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
90
42
  };
91
43
  template: string;
92
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ByB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAQtB,CAAA"}
1
+ {"version":3,"file":"ScalarIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ByB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAQtB,CAAA"}