@scalar/components 0.14.6 → 0.14.8

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 (77) 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/ScalarComboboxMultiselect.vue.d.ts +1 -1
  7. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
  8. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +13 -16
  9. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  10. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +34 -38
  11. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -1
  12. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +7 -10
  13. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -1
  14. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.js +6 -9
  15. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -1
  16. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js +10 -13
  17. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +4 -52
  18. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
  19. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +5 -69
  20. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
  21. package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
  22. package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -32
  23. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.test.d.ts +2 -0
  24. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.test.d.ts.map +1 -0
  25. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts +18 -0
  26. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts.map +1 -0
  27. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.js +28 -0
  28. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue2.js +4 -0
  29. package/dist/components/ScalarIcon/index.d.ts +1 -0
  30. package/dist/components/ScalarIcon/index.d.ts.map +1 -1
  31. package/dist/components/ScalarIcon/types.d.ts +19 -0
  32. package/dist/components/ScalarIcon/types.d.ts.map +1 -0
  33. package/dist/components/ScalarIcon/variants.d.ts +61 -0
  34. package/dist/components/ScalarIcon/variants.d.ts.map +1 -0
  35. package/dist/components/ScalarIcon/variants.js +21 -0
  36. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +2 -0
  37. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
  38. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +2 -0
  39. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
  40. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +15 -13
  41. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
  42. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -1
  43. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +5 -6
  44. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
  45. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  46. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +17 -17
  47. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +1 -1
  48. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
  49. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +13 -10
  50. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +1 -1
  51. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  52. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
  53. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +27 -26
  54. package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts.map +1 -1
  55. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +18 -17
  56. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
  57. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +23 -25
  58. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.d.ts.map +1 -1
  59. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +9 -9
  60. package/dist/components/ScalarMenu/types.d.ts +1 -1
  61. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +2 -1
  62. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  63. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +16 -15
  64. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +20 -3
  65. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts.map +1 -1
  66. package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts.map +1 -1
  67. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  68. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +24 -20
  69. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts +2 -2
  70. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
  71. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +19 -15
  72. package/dist/components/ScalarSidebar/types.d.ts +1 -1
  73. package/dist/components/ScalarSidebar/types.d.ts.map +1 -1
  74. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +12 -12
  75. package/dist/index.js +104 -102
  76. package/dist/style.css +1 -1
  77. package/package.json +8 -8
@@ -1,73 +1,9 @@
1
- import type { VariantProps } from 'cva';
2
- import { type Icon, type Logo } from './utils/index.js';
1
+ import type { ScalarIconProps } from './types';
3
2
  /**
4
- * Icon wrapper for all icons and logos
3
+ * Scalar Icon Wrapper
4
+ *
5
+ * @deprecated Use the icons from the `@scalar/icons` package instead.
5
6
  */
6
- type IconVariants = VariantProps<typeof iconProps>;
7
- type __VLS_Props = {
8
- icon?: Icon;
9
- logo?: Logo;
10
- size?: IconVariants['size'];
11
- thickness?: string;
12
- label?: string;
13
- };
14
- declare const iconProps: (props?: ({
15
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
16
- } & ({
17
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
18
- [x: string]: any;
19
- } | null | undefined)[] | {
20
- [x: string]: any;
21
- } | null | undefined)[] | {
22
- [x: string]: any;
23
- } | null | undefined)[] | {
24
- [x: string]: any;
25
- } | null | undefined)[] | {
26
- [x: string]: any;
27
- } | null | undefined)[] | {
28
- [x: string]: any;
29
- } | null | undefined)[] | {
30
- [x: string]: any;
31
- } | null | undefined)[] | {
32
- [x: string]: any;
33
- } | null | undefined)[] | {
34
- [x: string]: any;
35
- } | null | undefined)[] | {
36
- [x: string]: any;
37
- } | null | undefined)[] | {
38
- [x: string]: any;
39
- } | null | undefined)[] | {
40
- [x: string]: any;
41
- } | null | undefined;
42
- className?: never;
43
- } | {
44
- class?: never;
45
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
46
- [x: string]: any;
47
- } | null | undefined)[] | {
48
- [x: string]: any;
49
- } | null | undefined)[] | {
50
- [x: string]: any;
51
- } | null | undefined)[] | {
52
- [x: string]: any;
53
- } | null | undefined)[] | {
54
- [x: string]: any;
55
- } | null | undefined)[] | {
56
- [x: string]: any;
57
- } | null | undefined)[] | {
58
- [x: string]: any;
59
- } | null | undefined)[] | {
60
- [x: string]: any;
61
- } | null | undefined)[] | {
62
- [x: string]: any;
63
- } | null | undefined)[] | {
64
- [x: string]: any;
65
- } | null | undefined)[] | {
66
- [x: string]: any;
67
- } | null | undefined)[] | {
68
- [x: string]: any;
69
- } | null | undefined;
70
- })) | undefined) => string;
71
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: import("vue").DefineComponent<ScalarIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
72
8
  export default _default;
73
9
  //# sourceMappingURL=ScalarIcon.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAGvC,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,IAAI,EAAoB,MAAM,SAAS,CAAA;AAIhE;;GAEG;AAEH,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAA;AAElD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAMF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAgBb,CAAA;;AA6FF,wBAMG"}
1
+ {"version":3,"file":"ScalarIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C;;;;GAIG;;AACH,wBA2GC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ScalarIcon.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5c682fd5"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b651bb23"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,7 +1,9 @@
1
- import { defineComponent as u, useCssVars as p, computed as s, createBlock as m, openBlock as f, resolveDynamicComponent as z, normalizeProps as d, guardReactiveProps as g, unref as i } from "vue";
2
- import { useBindCx as v, cva as x } from "@scalar/use-hooks/useBindCx";
3
- import { getIcon as _, getLogo as b } from "./utils/index.js";
4
- const P = /* @__PURE__ */ u({
1
+ import { defineComponent as l, useCssVars as u, computed as o, createBlock as p, openBlock as m, resolveDynamicComponent as f, normalizeProps as _, guardReactiveProps as d, unref as t } from "vue";
2
+ import { useBindCx as g } from "@scalar/use-hooks/useBindCx";
3
+ import { getIcon as v, getLogo as b } from "./utils/index.js";
4
+ import { variants as h } from "./variants.js";
5
+ const k = {}, A = /* @__PURE__ */ l({
6
+ ...k,
5
7
  inheritAttrs: !1,
6
8
  __name: "ScalarIcon",
7
9
  props: {
@@ -11,43 +13,27 @@ const P = /* @__PURE__ */ u({
11
13
  thickness: {},
12
14
  label: {}
13
15
  },
14
- setup(r) {
15
- p((o) => ({
16
- "29d737c3": l.value
16
+ setup(n) {
17
+ u((r) => ({
18
+ c07589c2: a.value
17
19
  }));
18
- const e = r, { cx: t } = v(), n = x({
19
- variants: {
20
- size: {
21
- xs: "size-3",
22
- sm: "size-3.5",
23
- md: "size-4",
24
- lg: "size-5",
25
- xl: "size-6",
26
- "2xl": "size-8",
27
- "3xl": "size-10",
28
- full: "size-full"
29
- }
30
- },
31
- defaultVariants: {
32
- size: "full"
33
- }
34
- }), l = s(() => e.thickness ?? "2"), a = s(
35
- () => e.label ? { ariaLabel: e.label } : {
36
- ariaHidden: !0,
20
+ const e = n, { cx: s } = g(), a = o(() => e.thickness ?? "2"), c = o(
21
+ () => e.label ? { "aria-label": e.label } : {
22
+ "aria-hidden": !0,
37
23
  role: "presentation"
38
24
  }
39
- ), c = s(() => {
25
+ ), i = o(() => {
40
26
  if (e.icon)
41
- return _(e.icon);
27
+ return v(e.icon);
42
28
  if (e.logo)
43
29
  return b(e.logo);
44
30
  });
45
- return (o, k) => (f(), m(z(c.value), d(g({
46
- ...i(t)("scalar-icon", i(n)({ size: o.size })),
47
- ...a.value
31
+ return (r, x) => (m(), p(f(i.value), _(d({
32
+ ...t(s)("scalar-icon", t(h)({ size: r.size })),
33
+ ...c.value
48
34
  })), null, 16));
49
35
  }
50
36
  });
51
37
  export {
52
- P as default
38
+ A as default
53
39
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarIconLegacyAdapter.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarIconLegacyAdapter.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIconLegacyAdapter.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import type { ScalarIconProps } from '@scalar/icons/types';
2
+ import type { Component } from 'vue';
3
+ import type { ScalarIconProps as LegacyScalarIconProps } from './types';
4
+ import type { Icon } from './utils/index.js';
5
+ /**
6
+ * Scalar Icon Legacy Adapter
7
+ *
8
+ * This component is used to help components that accept a ScalarIcon name
9
+ * as a prop to accept a component instead to be compatible with `@scalar/icons`
10
+ * while staying backwards compatible with the legacy ScalarIcon component
11
+ */
12
+ declare const _default: import("vue").DefineComponent<{
13
+ icon: Icon | Component;
14
+ } & ScalarIconProps & Omit<LegacyScalarIconProps, "icon">, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
15
+ icon: Icon | Component;
16
+ } & ScalarIconProps & Omit<LegacyScalarIconProps, "icon">> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
18
+ //# sourceMappingURL=ScalarIconLegacyAdapter.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarIconLegacyAdapter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIconLegacyAdapter.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,KAAK,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAKnC;;;;;;GAMG;;UAQO,IAAI,GAAG,SAAS;;UAAhB,IAAI,GAAG,SAAS;;AAP1B,wBA2FC"}
@@ -0,0 +1,28 @@
1
+ import { defineComponent as a, createBlock as o, openBlock as n, mergeProps as r, resolveDynamicComponent as s, unref as i } from "vue";
2
+ import { useBindCx as l } from "@scalar/use-hooks/useBindCx";
3
+ import p from "./ScalarIcon.vue.js";
4
+ import { variants as c } from "./variants.js";
5
+ const m = {}, y = /* @__PURE__ */ a({
6
+ ...m,
7
+ inheritAttrs: !1,
8
+ __name: "ScalarIconLegacyAdapter",
9
+ props: {
10
+ icon: {},
11
+ label: {},
12
+ weight: {},
13
+ logo: {},
14
+ size: {},
15
+ thickness: {}
16
+ },
17
+ setup(f) {
18
+ const { cx: t } = l();
19
+ return (e, u) => typeof e.icon == "string" ? (n(), o(p, r({ key: 0 }, { ...e.$props, ...e.$attrs }, { icon: e.icon }), null, 16, ["icon"])) : (n(), o(s(e.icon), r({
20
+ key: 1,
21
+ label: e.label,
22
+ weight: e.weight
23
+ }, i(t)(i(c)({ size: e.size }))), null, 16, ["label", "weight"]));
24
+ }
25
+ });
26
+ export {
27
+ y as default
28
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScalarIconLegacyAdapter.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,3 +1,4 @@
1
1
  export { default as ScalarIcon } from './ScalarIcon.vue.js';
2
+ export { default as ScalarIconLegacyAdapter } from './ScalarIconLegacyAdapter.vue.js';
2
3
  export type { Icon } from './utils/index.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAClF,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { VariantProps } from 'cva';
2
+ import type { variants } from './variants.js';
3
+ import type { Icon, Logo } from '../../components/ScalarIcon/utils/index.js';
4
+ /**
5
+ * Variants types for the ScalarIcon component
6
+ */
7
+ type IconVariants = VariantProps<typeof variants>;
8
+ /**
9
+ * Props for the ScalarIcon component
10
+ */
11
+ export type ScalarIconProps = {
12
+ icon?: Icon;
13
+ logo?: Logo;
14
+ size?: IconVariants['size'];
15
+ thickness?: string;
16
+ label?: string;
17
+ };
18
+ export {};
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAE/D;;GAEG;AACH,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEjD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Variants for the ScalarIcon component
3
+ */
4
+ export declare const variants: (props?: ({
5
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
6
+ } & ({
7
+ class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
8
+ [x: string]: any;
9
+ } | null | undefined)[] | {
10
+ [x: string]: any;
11
+ } | null | undefined)[] | {
12
+ [x: string]: any;
13
+ } | null | undefined)[] | {
14
+ [x: string]: any;
15
+ } | null | undefined)[] | {
16
+ [x: string]: any;
17
+ } | null | undefined)[] | {
18
+ [x: string]: any;
19
+ } | null | undefined)[] | {
20
+ [x: string]: any;
21
+ } | null | undefined)[] | {
22
+ [x: string]: any;
23
+ } | null | undefined)[] | {
24
+ [x: string]: any;
25
+ } | null | undefined)[] | {
26
+ [x: string]: any;
27
+ } | null | undefined)[] | {
28
+ [x: string]: any;
29
+ } | null | undefined)[] | {
30
+ [x: string]: any;
31
+ } | null | undefined;
32
+ className?: never;
33
+ } | {
34
+ class?: never;
35
+ className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
36
+ [x: string]: any;
37
+ } | null | undefined)[] | {
38
+ [x: string]: any;
39
+ } | null | undefined)[] | {
40
+ [x: string]: any;
41
+ } | null | undefined)[] | {
42
+ [x: string]: any;
43
+ } | null | undefined)[] | {
44
+ [x: string]: any;
45
+ } | null | undefined)[] | {
46
+ [x: string]: any;
47
+ } | null | undefined)[] | {
48
+ [x: string]: any;
49
+ } | null | undefined)[] | {
50
+ [x: string]: any;
51
+ } | null | undefined)[] | {
52
+ [x: string]: any;
53
+ } | null | undefined)[] | {
54
+ [x: string]: any;
55
+ } | null | undefined)[] | {
56
+ [x: string]: any;
57
+ } | null | undefined)[] | {
58
+ [x: string]: any;
59
+ } | null | undefined;
60
+ })) | undefined) => string;
61
+ //# sourceMappingURL=variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/variants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAgBnB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { cva as s } from "@scalar/use-hooks/useBindCx";
2
+ const e = s({
3
+ variants: {
4
+ size: {
5
+ xs: "size-3",
6
+ sm: "size-3.5",
7
+ md: "size-4",
8
+ lg: "size-5",
9
+ xl: "size-6",
10
+ "2xl": "size-8",
11
+ "3xl": "size-10",
12
+ full: "size-full"
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ size: "full"
17
+ }
18
+ });
19
+ export {
20
+ e as variants
21
+ };
@@ -10,6 +10,7 @@ declare const meta: {
10
10
  variant?: string | undefined;
11
11
  size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
12
12
  thickness?: string;
13
+ weight?: import("@scalar/icons/types").ScalarIconWeight;
13
14
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
14
15
  label: string;
15
16
  icon: import("../ScalarIcon").Icon;
@@ -17,6 +18,7 @@ declare const meta: {
17
18
  variant?: string | undefined;
18
19
  size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
19
20
  thickness?: string;
21
+ weight?: import("@scalar/icons/types").ScalarIconWeight;
20
22
  }> & Readonly<{}>, {
21
23
  size: "xs" | "sm" | "md" | "full" | "xxs";
22
24
  variant: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarIconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc+B,CAAA;AAEzC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
1
+ {"version":3,"file":"ScalarIconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc+B,CAAA;AAEzC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
@@ -1,3 +1,4 @@
1
+ import type { ScalarIconWeight } from '@scalar/icons/types';
1
2
  import type { VariantProps } from 'cva';
2
3
  import { type Icon } from '../ScalarIcon';
3
4
  type Variants = VariantProps<typeof variants>;
@@ -8,6 +9,7 @@ type __VLS_Props = {
8
9
  variant?: Variants['variant'];
9
10
  size?: Variants['size'];
10
11
  thickness?: string;
12
+ weight?: ScalarIconWeight;
11
13
  };
12
14
  declare const variants: (props?: ({
13
15
  size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarIconButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAGvC,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,QAAQ,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE7C,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAYJ,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAeZ,CACD;;;;;AAoED,wBAOG"}
1
+ {"version":3,"file":"ScalarIconButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAGvC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE,KAAK,QAAQ,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE7C,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B,CAAC;AAYJ,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAeZ,CACD;;;;;AAoED,wBAOG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as i, mergeProps as r, unref as s, createVNode as l, createElementVNode as d, toDisplayString as c } from "vue";
1
+ import { defineComponent as a, createElementBlock as o, openBlock as n, mergeProps as r, unref as s, createVNode as l, createElementVNode as d, toDisplayString as c } from "vue";
2
2
  import { useBindCx as p, cva as u } from "@scalar/use-hooks/useBindCx";
3
3
  import { styles as m } from "../ScalarButton/variants.js";
4
- import f from "../ScalarIcon/ScalarIcon.vue.js";
5
- const b = ["ariaDisabled"], h = { class: "sr-only" }, g = /* @__PURE__ */ n({
4
+ import f from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
5
+ const h = ["ariaDisabled"], b = { class: "sr-only" }, y = /* @__PURE__ */ a({
6
6
  inheritAttrs: !1,
7
7
  __name: "ScalarIconButton",
8
8
  props: {
@@ -11,10 +11,11 @@ const b = ["ariaDisabled"], h = { class: "sr-only" }, g = /* @__PURE__ */ n({
11
11
  disabled: { type: Boolean },
12
12
  variant: { default: "ghost" },
13
13
  size: { default: "md" },
14
- thickness: {}
14
+ thickness: {},
15
+ weight: {}
15
16
  },
16
- setup(v) {
17
- const { cx: a } = p(), o = u({
17
+ setup(g) {
18
+ const { cx: i } = p(), t = u({
18
19
  base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
19
20
  variants: {
20
21
  size: {
@@ -30,18 +31,19 @@ const b = ["ariaDisabled"], h = { class: "sr-only" }, g = /* @__PURE__ */ n({
30
31
  variant: m
31
32
  }
32
33
  });
33
- return (e, z) => (i(), t("button", r({
34
+ return (e, v) => (n(), o("button", r({
34
35
  ariaDisabled: e.disabled || void 0,
35
36
  type: "button"
36
- }, s(a)(s(o)({ size: e.size, variant: e.variant, disabled: e.disabled }))), [
37
+ }, s(i)(s(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))), [
37
38
  l(s(f), {
38
39
  icon: e.icon,
39
- thickness: e.thickness
40
- }, null, 8, ["icon", "thickness"]),
41
- d("span", h, c(e.label), 1)
42
- ], 16, b));
40
+ thickness: e.thickness,
41
+ weight: e.weight
42
+ }, null, 8, ["icon", "thickness", "weight"]),
43
+ d("span", b, c(e.label), 1)
44
+ ], 16, h));
43
45
  }
44
46
  });
45
47
  export {
46
- g as default
48
+ y as default
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarListbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAErC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAkClB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAkCzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAkC3B,CAAA"}
1
+ {"version":3,"file":"ScalarListbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAkClB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAkCzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAkC3B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarListboxCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListboxCheckbox.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAC;;AAyEF,wBAOG"}
1
+ {"version":3,"file":"ScalarListboxCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListboxCheckbox.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAC;;AAuEF,wBAOG"}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as o, createElementBlock as r, openBlock as t, normalizeClass as c, createBlock as s, createCommentVNode as n, unref as a } from "vue";
2
- import l from "../ScalarIcon/ScalarIcon.vue.js";
2
+ import { ScalarIconCheck as l } from "@scalar/icons";
3
3
  const u = /* @__PURE__ */ o({
4
4
  __name: "ScalarListboxCheckbox",
5
5
  props: {
6
6
  selected: { type: Boolean },
7
7
  style: {}
8
8
  },
9
- setup(p) {
10
- return (e, i) => (t(), r("div", {
9
+ setup(d) {
10
+ return (e, p) => (t(), r("div", {
11
11
  class: c(["flex size-4 items-center justify-center p-0.75", [
12
12
  e.selected ? "bg-c-accent text-b-1" : "text-transparent shadow-border",
13
13
  e.style === "checkbox" ? "rounded" : "rounded-full"
@@ -15,9 +15,8 @@ const u = /* @__PURE__ */ o({
15
15
  }, [
16
16
  e.selected ? (t(), s(a(l), {
17
17
  key: 0,
18
- class: "relative top-[0.5px] size-3",
19
- icon: "Checkmark",
20
- thickness: "3"
18
+ class: "size-3",
19
+ weight: "bold"
21
20
  })) : n("", !0)
22
21
  ], 2));
23
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAcrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,UAAU,EAAE,KAiDxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAqB1B,CAAA"}
1
+ {"version":3,"file":"ScalarMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAerD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcyB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,UAAU,EAAE,KAiDxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAqB1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuButton.vue"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAA;AAiBtC,iBAAS,cAAc;WAiET,OAAO,IAA6B;;;;EAKjD;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sTAOnB,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":"ScalarMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuButton.vue"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAA;AAkBtC,iBAAS,cAAc;WAmET,OAAO,IAA6B;;;;EAKjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sTAOnB,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,34 +1,34 @@
1
- import { defineComponent as a, createBlock as l, openBlock as c, unref as e, withCtx as p, createElementVNode as n, createVNode as t, renderSlot as r, createTextVNode as i, toDisplayString as u } from "vue";
2
- import m from "../ScalarHeader/ScalarHeaderButton.vue.js";
3
- import s from "../ScalarIcon/ScalarIcon.vue.js";
4
- const d = { class: "h-5 w-auto" }, _ = { class: "sr-only" }, B = /* @__PURE__ */ a({
1
+ import { defineComponent as s, createBlock as a, openBlock as l, unref as e, withCtx as c, createElementVNode as t, createVNode as n, renderSlot as r, createTextVNode as p, toDisplayString as i, normalizeClass as m } from "vue";
2
+ import { ScalarIconCaretDown as u } from "@scalar/icons";
3
+ import d from "../ScalarHeader/ScalarHeaderButton.vue.js";
4
+ import _ from "../ScalarIcon/ScalarIcon.vue.js";
5
+ const f = { class: "h-5 w-auto" }, h = { class: "sr-only" }, k = /* @__PURE__ */ s({
5
6
  __name: "ScalarMenuButton",
6
7
  props: {
7
8
  open: { type: Boolean }
8
9
  },
9
- setup(f) {
10
- return (o, h) => (c(), l(e(m), { class: "gap-0.5 px-2" }, {
11
- default: p(() => [
12
- n("div", d, [
10
+ setup(g) {
11
+ return (o, C) => (l(), a(e(d), { class: "gap-0.75 px-2" }, {
12
+ default: c(() => [
13
+ t("div", f, [
13
14
  r(o.$slots, "logo", {}, () => [
14
- t(e(s), { icon: "Logo" })
15
+ n(e(_), { icon: "Logo" })
15
16
  ])
16
17
  ]),
17
- n("span", _, [
18
+ t("span", h, [
18
19
  r(o.$slots, "label", {}, () => [
19
- i(u(o.open ? "Close Menu" : "Open Menu"), 1)
20
+ p(i(o.open ? "Close Menu" : "Open Menu"), 1)
20
21
  ])
21
22
  ]),
22
- t(e(s), {
23
- class: "shrink-0 text-c-3 group-hover/button:text-c-1",
24
- icon: o.open ? "ChevronUp" : "ChevronDown",
25
- size: "md"
26
- }, null, 8, ["icon"])
23
+ n(e(u), {
24
+ class: m(["shrink-0 text-c-3 group-hover/button:text-c-1 size-3.5", o.open ? "rotate-180" : ""]),
25
+ weight: "bold"
26
+ }, null, 8, ["class"])
27
27
  ]),
28
28
  _: 3
29
29
  }));
30
30
  }
31
31
  });
32
32
  export {
33
- B as default
33
+ k as default
34
34
  };
@@ -2,7 +2,7 @@ import type { Component } from 'vue';
2
2
  import { type Icon } from '../ScalarIcon';
3
3
  type __VLS_Props = {
4
4
  is?: string | Component;
5
- icon?: Icon;
5
+ icon?: Icon | Component;
6
6
  strong?: boolean;
7
7
  };
8
8
  declare function __VLS_template(): {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AASF,iBAAS,cAAc;WA0DT,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AASF,iBAAS,cAAc;WAgET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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,11 +1,11 @@
1
- import { defineComponent as r, createBlock as n, openBlock as o, unref as s, withCtx as a, createElementBlock as i, createElementVNode as l, normalizeClass as t, renderSlot as c } from "vue";
1
+ import { defineComponent as r, createBlock as n, openBlock as o, unref as s, withCtx as i, createElementBlock as a, createElementVNode as l, normalizeClass as t, renderSlot as c } from "vue";
2
2
  import { DropdownMenu as m } from "radix-vue/namespaced";
3
3
  import f from "../ScalarDropdown/ScalarDropdownButton.vue.js";
4
- import p from "../ScalarIcon/ScalarIcon.vue.js";
4
+ import p from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
5
5
  const d = {
6
6
  key: 1,
7
7
  class: "size-3"
8
- }, _ = /* @__PURE__ */ r({
8
+ }, y = /* @__PURE__ */ r({
9
9
  __name: "ScalarMenuLink",
10
10
  props: {
11
11
  is: { default: () => m.Item },
@@ -13,18 +13,21 @@ const d = {
13
13
  strong: { type: Boolean }
14
14
  },
15
15
  setup(u) {
16
- return (e, k) => (o(), n(s(f), {
16
+ return (e, g) => (o(), n(s(f), {
17
17
  is: e.is,
18
18
  as: "a"
19
19
  }, {
20
- default: a(() => [
20
+ default: i(() => [
21
21
  e.icon ? (o(), n(s(p), {
22
22
  key: 0,
23
- class: t(e.strong ? "text-c-1" : "text-c-2"),
23
+ class: t([
24
+ e.strong ? "text-c-1" : "text-c-2",
25
+ typeof e.icon == "string" ? "size-3" : "size-3.5 -mx-0.25"
26
+ ]),
24
27
  icon: e.icon,
25
- size: "xs",
26
- thickness: e.strong ? "2.5" : "2"
27
- }, null, 8, ["class", "icon", "thickness"])) : (o(), i("div", d)),
28
+ thickness: e.strong ? "2.5" : "2",
29
+ weight: e.strong ? "bold" : "regular"
30
+ }, null, 8, ["class", "icon", "thickness", "weight"])) : (o(), a("div", d)),
28
31
  l("div", {
29
32
  class: t(["flex items-center flex-1", e.strong ? "font-medium" : "font-normal"])
30
33
  }, [
@@ -36,5 +39,5 @@ const d = {
36
39
  }
37
40
  });
38
41
  export {
39
- _ as default
42
+ y as default
40
43
  };