@scalar/components 0.16.12 → 0.16.13

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 (99) hide show
  1. package/dist/components/ScalarButton/ScalarButton.vue.d.ts +1 -1
  2. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
  3. package/dist/components/ScalarButton/types.d.ts +1 -1
  4. package/dist/components/ScalarButton/types.d.ts.map +1 -1
  5. package/dist/components/ScalarCard/index.d.ts +1 -1
  6. package/dist/components/ScalarCard/index.d.ts.map +1 -1
  7. package/dist/components/ScalarCard/useCardHeading.d.ts +1 -5
  8. package/dist/components/ScalarCard/useCardHeading.d.ts.map +1 -1
  9. package/dist/components/ScalarCard/useCardHeading.js +0 -1
  10. package/dist/components/ScalarCheckboxInput/ScalarCheckboxGroup.vue.js +5 -5
  11. package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue.js +4 -4
  12. package/dist/components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue.js +5 -5
  13. package/dist/components/ScalarCheckboxInput/index.d.ts +2 -2
  14. package/dist/components/ScalarCheckboxInput/index.d.ts.map +1 -1
  15. package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.js +2 -2
  16. package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue2.js +5 -5
  17. package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +4 -4
  18. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  19. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +43 -41
  20. package/dist/components/ScalarCombobox/index.d.ts.map +1 -1
  21. package/dist/components/ScalarCombobox/types.d.ts +0 -2
  22. package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
  23. package/dist/components/ScalarCombobox/types.js +0 -1
  24. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
  25. package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +15 -15
  26. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +2 -2
  27. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +1 -1
  28. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +2 -2
  29. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +9 -9
  30. package/dist/components/ScalarDropdown/index.d.ts +1 -1
  31. package/dist/components/ScalarDropdown/index.d.ts.map +1 -1
  32. package/dist/components/ScalarFileUpload/index.d.ts +3 -3
  33. package/dist/components/ScalarFileUpload/index.d.ts.map +1 -1
  34. package/dist/components/ScalarFileUpload/types.d.ts +2 -1
  35. package/dist/components/ScalarFileUpload/types.d.ts.map +1 -1
  36. package/dist/components/ScalarFloating/index.d.ts.map +1 -1
  37. package/dist/components/ScalarForm/useFormGroups.d.ts +0 -5
  38. package/dist/components/ScalarForm/useFormGroups.d.ts.map +1 -1
  39. package/dist/components/ScalarForm/useFormGroups.js +3 -4
  40. package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts.map +1 -1
  41. package/dist/components/ScalarHotkey/formatHotkey.d.ts +0 -2
  42. package/dist/components/ScalarHotkey/formatHotkey.d.ts.map +1 -1
  43. package/dist/components/ScalarHotkey/formatHotkey.js +1 -2
  44. package/dist/components/ScalarHotkey/index.d.ts +1 -1
  45. package/dist/components/ScalarHotkey/index.d.ts.map +1 -1
  46. package/dist/components/ScalarIcon/types.d.ts +1 -1
  47. package/dist/components/ScalarIcon/types.d.ts.map +1 -1
  48. package/dist/components/ScalarIconButton/types.d.ts +2 -2
  49. package/dist/components/ScalarIconButton/types.d.ts.map +1 -1
  50. package/dist/components/ScalarListbox/ScalarListboxInput.vue.d.ts +2 -2
  51. package/dist/components/ScalarListbox/ScalarListboxInput.vue.js +8 -8
  52. package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +3 -3
  53. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
  54. package/dist/components/ScalarLoading/ScalarLoading.vue.js +2 -2
  55. package/dist/components/ScalarLoading/ScalarLoading.vue2.js +8 -8
  56. package/dist/components/ScalarLoading/types.d.ts +2 -1
  57. package/dist/components/ScalarLoading/types.d.ts.map +1 -1
  58. package/dist/components/ScalarLoading/useLoadingState.d.ts +12 -3
  59. package/dist/components/ScalarLoading/useLoadingState.d.ts.map +1 -1
  60. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +1 -1
  61. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  62. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  63. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.d.ts +1 -1
  64. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.d.ts.map +1 -1
  65. package/dist/components/ScalarPopover/index.d.ts.map +1 -1
  66. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +3 -3
  67. package/dist/components/ScalarSearchResults/index.d.ts +1 -1
  68. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  69. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +22 -15
  70. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
  71. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +45 -42
  72. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts +2 -0
  73. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts.map +1 -1
  74. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.js +58 -56
  75. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts +1 -4
  76. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts.map +1 -1
  77. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.js +5 -8
  78. package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.js +4 -4
  79. package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts +1 -7
  80. package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts.map +1 -1
  81. package/dist/components/ScalarSidebar/useSidebarNestedItems.js +0 -1
  82. package/dist/components/ScalarTeleport/index.d.ts +1 -1
  83. package/dist/components/ScalarTeleport/index.d.ts.map +1 -1
  84. package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +3 -3
  85. package/dist/components/ScalarToggle/ScalarToggleGroup.vue.js +2 -2
  86. package/dist/components/ScalarTooltip/index.d.ts +2 -2
  87. package/dist/components/ScalarTooltip/index.d.ts.map +1 -1
  88. package/dist/components/ScalarTooltip/types.d.ts +2 -1
  89. package/dist/components/ScalarTooltip/types.d.ts.map +1 -1
  90. package/dist/components/ScalarTooltip/useTooltip.d.ts +0 -6
  91. package/dist/components/ScalarTooltip/useTooltip.d.ts.map +1 -1
  92. package/dist/components/ScalarTooltip/useTooltip.js +0 -1
  93. package/dist/helpers/index.d.ts +1 -1
  94. package/dist/helpers/index.d.ts.map +1 -1
  95. package/dist/index.d.ts +2 -0
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +36 -36
  98. package/dist/style.css +1 -1
  99. package/package.json +13 -19
@@ -1,8 +1,8 @@
1
1
  export { default as ScalarFileUpload } from './ScalarFileUpload.vue.js';
2
- export { default as ScalarFileUploadInput } from './ScalarFileUploadInput.vue.js';
3
- export { default as ScalarFileUploadInputCompact } from './ScalarFileUploadInputCompact.vue.js';
4
2
  export { default as ScalarFileUploadDropTarget } from './ScalarFileUploadDropTarget.vue.js';
5
- export { default as ScalarFileUploadLoading } from './ScalarFileUploadLoading.vue.js';
6
3
  export { default as ScalarFileUploadError } from './ScalarFileUploadError.vue.js';
7
4
  export { default as ScalarFileUploadFileList } from './ScalarFileUploadFileList.vue.js';
5
+ export { default as ScalarFileUploadInput } from './ScalarFileUploadInput.vue.js';
6
+ export { default as ScalarFileUploadInputCompact } from './ScalarFileUploadInputCompact.vue.js';
7
+ export { default as ScalarFileUploadLoading } from './ScalarFileUploadLoading.vue.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AACxF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AACxF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAA"}
@@ -1,4 +1,4 @@
1
- export type FileExtension = `.${string}`;
1
+ type FileExtension = `.${string}`;
2
2
  export type ExtensionList = FileExtension[];
3
3
  /**
4
4
  * Type guard to check if a value is an ExtensionList
@@ -29,4 +29,5 @@ export type FileUploadInputSlots = {
29
29
  /** The sublabel or error slot */
30
30
  sublabel?(): unknown;
31
31
  };
32
+ export {};
32
33
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,IAAI,MAAM,EAAE,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,aAAa,EAAE,CAAA;AAE3C;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,KAAK,IAAI,aAAa,CAErF;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,aAAa,CAAA;CAC3B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,qDAAqD;IACrD,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;CACtC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,6BAA6B;IAC7B,OAAO,CAAC,IAAI,OAAO,CAAA;IACnB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,OAAO,CAAA;CACrB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFileUpload/types.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,IAAI,MAAM,EAAE,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,aAAa,EAAE,CAAA;AAE3C;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,KAAK,IAAI,aAAa,CAErF;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,aAAa,CAAA;CAC3B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,qDAAqD;IAErD,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;CACtC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,6BAA6B;IAC7B,OAAO,CAAC,IAAI,OAAO,CAAA;IACnB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,OAAO,CAAA;CACrB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAEhF,YAAY,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAChF,YAAY,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAA"}
@@ -1,8 +1,3 @@
1
- import { type InjectionKey } from 'vue';
2
- /**
3
- * Tells a ScalarFormInput component that it is in a form group.
4
- */
5
- export declare const FORM_GROUP_SYMBOL: InjectionKey<boolean>;
6
1
  /**
7
2
  * Check if we're in a form group.
8
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useFormGroups.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarForm/useFormGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,KAAK,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAe,YAAY,CAAC,OAAO,CAAC,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,eAE7B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,YAExB,CAAA"}
1
+ {"version":3,"file":"useFormGroups.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarForm/useFormGroups.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,eAE7B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,YAExB,CAAA"}
@@ -1,9 +1,8 @@
1
- import { inject as r, provide as t } from "vue";
2
- const o = Symbol(), u = () => r(o, !1), n = () => {
3
- t(o, !0);
1
+ import { provide as r, inject as t } from "vue";
2
+ const o = Symbol(), u = () => t(o, !1), n = () => {
3
+ r(o, !0);
4
4
  };
5
5
  export {
6
- o as FORM_GROUP_SYMBOL,
7
6
  n as useFormGroup,
8
7
  u as useFormGroupInput
9
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarHeaderButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHeader/ScalarHeaderButton.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC;;;;;;;;;;;GAWG;;SAGI,MAAM,GAAG,SAAS;aACd,OAAO;;SADX,MAAM,GAAG,SAAS;aACd,OAAO;;IAKhB,iCAAiC;gBACrB,OAAO;;AATrB,wBA8EC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarHeaderButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHeader/ScalarHeaderButton.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC;;;;;;;;;;;GAWG;;SAGI,MAAM,GAAG,SAAS;aACd,OAAO;;SADX,MAAM,GAAG,SAAS;aACd,OAAO;;IAKhB,iCAAiC;gBACrB,OAAO;;AATrB,wBA8EC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,4 @@
1
1
  import type { HotKeyModifier } from './types';
2
- /** Typescript helper to check if a modifier is the default modifier */
3
- export declare function isDefault(modifier: HotKeyModifier): modifier is 'default';
4
2
  /** Get the modifier key symbol for a modifier */
5
3
  export declare function getModifierKeySymbol(modifier: HotKeyModifier): string;
6
4
  /** Format the hotkey symbols for a hotkey */
@@ -1 +1 @@
1
- {"version":3,"file":"formatHotkey.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHotkey/formatHotkey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,uEAAuE;AACvE,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,IAAI,SAAS,CAEzE;AAKD,iDAAiD;AACjD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAGrE;AAED,6CAA6C;AAC7C,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAGxF;AAKD,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C"}
1
+ {"version":3,"file":"formatHotkey.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHotkey/formatHotkey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAa7C,iDAAiD;AACjD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAGrE;AAED,6CAA6C;AAC7C,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAGxF;AAKD,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C"}
@@ -16,6 +16,5 @@ function s(t) {
16
16
  export {
17
17
  c as formatHotkeySymbols,
18
18
  s as getKeyLabel,
19
- m as getModifierKeySymbol,
20
- u as isDefault
19
+ m as getModifierKeySymbol
21
20
  };
@@ -1,4 +1,4 @@
1
- export { default as ScalarHotkey } from './ScalarHotkey.vue.js';
2
1
  export { formatHotkeySymbols } from './formatHotkey.js';
2
+ export { default as ScalarHotkey } from './ScalarHotkey.vue.js';
3
3
  export type { HotKeyModifier as ScalarHotkeyModifier } from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHotkey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEpD,YAAY,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHotkey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,YAAY,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { VariantProps } from 'cva';
2
+ import type { Icon, Logo } from './utils/index.js';
2
3
  import type { variants } from './variants.js';
3
- import type { Icon, Logo } from '../../components/ScalarIcon/utils/index.js';
4
4
  /**
5
5
  * Variants types for the ScalarIcon component
6
6
  */
@@ -1 +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"}
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;AAEvC,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C;;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"}
@@ -1,7 +1,7 @@
1
1
  import type { ScalarIconComponent, ScalarIconWeight } from '@scalar/icons/types';
2
- import type { ButtonVariant } from '../../components/ScalarButton/types';
3
- import type { ScalarTooltipPlacement } from '../../components/ScalarTooltip';
2
+ import type { ButtonVariant } from '../ScalarButton/types';
4
3
  import type { Icon as LegacyIcon } from '../ScalarIcon';
4
+ import type { ScalarTooltipPlacement } from '../ScalarTooltip/types';
5
5
  export type ScalarIconButtonProps = {
6
6
  /**
7
7
  * An accessible label for the icon button
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AAEvD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,IAAI,EAAE,UAAU,GAAG,mBAAmB,CAAA;IACtC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAC1C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAA;CAC3C,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAEpE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,IAAI,EAAE,UAAU,GAAG,mBAAmB,CAAA;IACtC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAC1C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAA;CAC3C,CAAA"}
@@ -9,9 +9,9 @@
9
9
  * </ScalarListbox>
10
10
  */
11
11
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
12
- open?: Boolean;
12
+ open?: boolean;
13
13
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
14
- open?: Boolean;
14
+ open?: boolean;
15
15
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
16
16
  default?: (props: {}) => any;
17
17
  }>;
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as o, createBlock as n, openBlock as r, unref as t, withCtx as a, createElementVNode as s, createVNode as l, renderSlot as c, normalizeClass as i } from "vue";
2
- import { ScalarIconCaretDown as _ } from "@scalar/icons";
3
- import f from "../ScalarForm/ScalarFormInput.vue.js";
4
- const m = { class: "flex-1 text-left min-w-0 truncate" }, p = {}, w = /* @__PURE__ */ o({
5
- ...p,
2
+ import { ScalarIconCaretDown as p } from "@scalar/icons";
3
+ import _ from "../ScalarForm/ScalarFormInput.vue.js";
4
+ const f = { class: "flex-1 text-left min-w-0 truncate" }, m = {}, w = /* @__PURE__ */ o({
5
+ ...m,
6
6
  __name: "ScalarListboxInput",
7
7
  props: {
8
- open: {}
8
+ open: { type: Boolean }
9
9
  },
10
10
  setup(u) {
11
- return (e, d) => (r(), n(t(f), null, {
11
+ return (e, d) => (r(), n(t(_), null, {
12
12
  default: a(() => [
13
- s("div", m, [
13
+ s("div", f, [
14
14
  c(e.$slots, "default")
15
15
  ]),
16
- l(t(_), {
16
+ l(t(p), {
17
17
  class: i(["transition-transform size-3.5", { "rotate-180": e.open }])
18
18
  }, null, 8, ["class"])
19
19
  ]),
@@ -35,9 +35,9 @@ const w = /* @__PURE__ */ r({
35
35
  class: a(t(f)(t(n)({ active: l, selected: o, disabled: e.option.disabled })))
36
36
  }, [
37
37
  m(v, {
38
- selected: o,
39
- multiselect: e.multiselect
40
- }, null, 8, ["selected", "multiselect"]),
38
+ multiselect: e.multiselect,
39
+ selected: o
40
+ }, null, 8, ["multiselect", "selected"]),
41
41
  i("span", {
42
42
  class: a(["inline-block min-w-0 flex-1 truncate", e.option.color ? e.option.color : "text-c-1"])
43
43
  }, u(e.option.label), 3)
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C;;;;;;;;;;;;GAYG;;aAKQ,YAAY;;;aAAZ,YAAY;;;AAJvB,wBAmJC"}
1
+ {"version":3,"file":"ScalarLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C;;;;;;;;;;;;GAYG;;aAKQ,YAAY;;;aAAZ,YAAY;;;AAJvB,wBAmJC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ScalarLoading.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-8e99b97a"]]);
4
+ const d = /* @__PURE__ */ a(o, [["__scopeId", "data-v-27df5cd8"]]);
5
5
  export {
6
- p as default
6
+ d as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, createElementBlock as e, createCommentVNode as p, openBlock as l, normalizeProps as c, mergeProps as m, unref as t, normalizeClass as r, createStaticVNode as v, createElementVNode as i } from "vue";
2
- import { useBindCx as h, cva as g } from "@scalar/use-hooks/useBindCx";
3
- const f = { class: "circular-loader" }, z = {}, w = /* @__PURE__ */ n({
1
+ import { defineComponent as n, createElementBlock as e, createCommentVNode as c, openBlock as l, normalizeProps as p, mergeProps as m, unref as t, normalizeClass as r, createStaticVNode as v, createElementVNode as i } from "vue";
2
+ import { useBindCx as h, cva as f } from "@scalar/use-hooks/useBindCx";
3
+ const g = { class: "circular-loader" }, z = {}, w = /* @__PURE__ */ n({
4
4
  ...z,
5
5
  inheritAttrs: !1,
6
6
  __name: "ScalarLoading",
@@ -9,7 +9,7 @@ const f = { class: "circular-loader" }, z = {}, w = /* @__PURE__ */ n({
9
9
  size: {}
10
10
  },
11
11
  setup(u) {
12
- const { cx: o } = h(), d = g({
12
+ const { cx: d } = h(), o = f({
13
13
  variants: {
14
14
  size: {
15
15
  xs: "size-3",
@@ -26,7 +26,7 @@ const f = { class: "circular-loader" }, z = {}, w = /* @__PURE__ */ n({
26
26
  size: "full"
27
27
  }
28
28
  });
29
- return (a, s) => a.loader ? (l(), e("div", c(m({ key: 0 }, t(o)("loader-wrapper", t(d)({ size: a.size })))), [
29
+ return (a, s) => a.loader ? (l(), e("div", p(m({ key: 0 }, t(d)("loader-wrapper", t(o)({ size: a.size })))), [
30
30
  (l(), e("svg", {
31
31
  class: r(["svg-loader", {
32
32
  "icon-is-valid": a.loader.isValid,
@@ -36,8 +36,8 @@ const f = { class: "circular-loader" }, z = {}, w = /* @__PURE__ */ n({
36
36
  xmlns: "http://www.w3.org/2000/svg",
37
37
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
38
38
  }, [
39
- s[0] || (s[0] = v('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-8e99b97a></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-8e99b97a></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-8e99b97a></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-8e99b97a></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-8e99b97a></path>', 5)),
40
- i("g", f, [
39
+ s[0] || (s[0] = v('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-27df5cd8></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-27df5cd8></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-27df5cd8></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-27df5cd8></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-27df5cd8></path>', 5)),
40
+ i("g", g, [
41
41
  i("circle", {
42
42
  class: r(["loader-path", {
43
43
  "loader-path-off": !a.loader.isLoading
@@ -50,7 +50,7 @@ const f = { class: "circular-loader" }, z = {}, w = /* @__PURE__ */ n({
50
50
  }, null, 2)
51
51
  ])
52
52
  ], 2))
53
- ], 16)) : p("", !0);
53
+ ], 16)) : c("", !0);
54
54
  }
55
55
  });
56
56
  export {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Options for the validate and invalidate methods
3
3
  */
4
- export type LoadingCompletionOptions = {
4
+ type LoadingCompletionOptions = {
5
5
  /**
6
6
  * The duration of to wait before clearing the loading state in milliseconds
7
7
  *
@@ -58,4 +58,5 @@ export type LoadingState = {
58
58
  */
59
59
  clear: (opts?: Pick<LoadingCompletionOptions, 'duration'>) => Promise<void>;
60
60
  };
61
+ export {};
61
62
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5D;;OAEG;IACH,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D;;OAEG;IACH,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5E,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,KAAK,wBAAwB,GAAG;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5D;;OAEG;IACH,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D;;OAEG;IACH,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5E,CAAA"}
@@ -9,8 +9,17 @@ export declare function useLoadingState(): {
9
9
  isLoading: boolean;
10
10
  isActive: boolean;
11
11
  start: () => void;
12
- validate: (opts?: import("./types").LoadingCompletionOptions) => Promise<void>;
13
- invalidate: (opts?: import("./types").LoadingCompletionOptions) => Promise<void>;
14
- clear: (opts?: Pick<import("./types").LoadingCompletionOptions, "duration">) => Promise<void>;
12
+ validate: (opts?: {
13
+ duration?: number;
14
+ persist?: boolean;
15
+ }) => Promise<void>;
16
+ invalidate: (opts?: {
17
+ duration?: number;
18
+ persist?: boolean;
19
+ }) => Promise<void>;
20
+ clear: (opts?: Pick<{
21
+ duration?: number;
22
+ persist?: boolean;
23
+ }, "duration">) => Promise<void>;
15
24
  };
16
25
  //# sourceMappingURL=useLoadingState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadingState.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/useLoadingState.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,eAAe;;;;;;mBAiCM,CAAC;qBAIL,CAAA;gBAIvB,CAAC;EASV"}
1
+ {"version":3,"file":"useLoadingState.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/useLoadingState.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,eAAe;;;;;;mBAiCD,CAAC;;;;qBAIN,CAAC;;;;gBAKpB,CADF;;;;EASH"}
@@ -1,4 +1,4 @@
1
- import type { ScalarMenuButtonProps, ScalarMenuButtonSlots } from '../../components/ScalarMenu/types';
1
+ import type { ScalarMenuButtonProps, ScalarMenuButtonSlots } from './types';
2
2
  type __VLS_Slots = ScalarMenuButtonSlots;
3
3
  declare const __VLS_component: import("vue").DefineComponent<ScalarMenuButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarMenuButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
4
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
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;AAStC,KAAK,WAAW,GAAG,qBAAqB,CAAC;AAsFzC,QAAA,MAAM,eAAe,sTAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,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":"AAiCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAK3E,KAAK,WAAW,GAAG,qBAAqB,CAAC;AAsFzC,QAAA,MAAM,eAAe,sTAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuProduct.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProduct.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAGlC,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAAA;CACjC,CAAC;AA+CF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarMenuProduct.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProduct.vue"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAGlC,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAAA;CACjC,CAAC;AA+CF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ScalarListboxOption } from '../../components/ScalarListbox';
1
+ import { type ScalarListboxOption } from '../ScalarListbox';
2
2
  type __VLS_Props = {
3
3
  /** The list of workspaces to choose from */
4
4
  workspaceOptions: ScalarListboxOption[];
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuWorkspacePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuWorkspacePicker.vue"],"names":[],"mappings":"AAsFA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAA;AAUnC,KAAK,WAAW,GAAG;IACjB,4CAA4C;IAC5C,gBAAgB,EAAE,mBAAmB,EAAE,CAAA;CACxC,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;;;;;;;;;AAuMF,wBAOG"}
1
+ {"version":3,"file":"ScalarMenuWorkspacePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuWorkspacePicker.vue"],"names":[],"mappings":"AAuFA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAA;AAGzB,KAAK,WAAW,GAAG;IACjB,4CAA4C;IAC5C,gBAAgB,EAAE,mBAAmB,EAAE,CAAA;CACxC,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;;;;;;;;;AAuMF,wBAOG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAE9D,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAA"}
@@ -29,7 +29,9 @@ const E = ["aria-label"], N = {}, D = /* @__PURE__ */ p({
29
29
  k(e(x), { class: "text-sidebar-c-search size-4" }),
30
30
  _(C("input", V({
31
31
  ref_key: "inputRef",
32
- ref: o,
32
+ ref: o
33
+ }, e(d), {
34
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => l.value = u),
33
35
  "aria-label": a.label ?? "Enter search query",
34
36
  autocapitalize: "off",
35
37
  autocomplete: "off",
@@ -38,8 +40,6 @@ const E = ["aria-label"], N = {}, D = /* @__PURE__ */ p({
38
40
  placeholder: "Search...",
39
41
  spellcheck: "false",
40
42
  type: "search"
41
- }, e(d), {
42
- "onUpdate:modelValue": t[0] || (t[0] = (u) => l.value = u)
43
43
  }), null, 16, E), [
44
44
  [M, l.value]
45
45
  ]),
@@ -1,3 +1,3 @@
1
- export { default as ScalarSearchResultList } from './ScalarSearchResultList.vue.js';
2
1
  export { default as ScalarSearchResultItem } from './ScalarSearchResultItem.vue.js';
2
+ export { default as ScalarSearchResultList } from './ScalarSearchResultList.vue.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAG/E;;;;;;;;;;;;;;;;;;;;;GAqBG;;AACH,wBAoIC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAG/E;;;;;;;;;;;;;;;;;;;;;GAqBG;;AACH,wBA2IC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as r, createBlock as o, openBlock as a, resolveDynamicComponent as l, mergeProps as c, unref as s, withCtx as u, renderSlot as t, createElementBlock as b, createCommentVNode as i, createElementVNode as f, createVNode as p } from "vue";
2
- import { cva as m, useBindCx as v } from "@scalar/use-hooks/useBindCx";
1
+ import { defineComponent as n, createBlock as i, openBlock as a, resolveDynamicComponent as l, mergeProps as c, unref as s, withCtx as b, renderSlot as t, createElementBlock as u, createCommentVNode as o, createElementVNode as f, createVNode as p } from "vue";
2
+ import { cva as v, useBindCx as m } from "@scalar/use-hooks/useBindCx";
3
3
  import h from "./ScalarSidebarIndent.vue.js";
4
4
  import y from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
5
5
  const B = {
6
6
  key: 0,
7
7
  class: "h-[1lh] *:size-4 mr-1"
8
- }, k = { class: "flex-1 min-w-0" }, $ = {}, E = /* @__PURE__ */ r({
9
- ...$,
8
+ }, g = { class: "flex-1 min-w-0" }, k = {}, E = /* @__PURE__ */ n({
9
+ ...k,
10
10
  inheritAttrs: !1,
11
11
  __name: "ScalarSidebarButton",
12
12
  props: {
@@ -17,8 +17,8 @@ const B = {
17
17
  disabled: { type: Boolean },
18
18
  indent: { default: 0 }
19
19
  },
20
- setup(g) {
21
- const d = m({
20
+ setup($) {
21
+ const d = v({
22
22
  base: [
23
23
  "group/button peer/button flex items-stretch rounded p-2 ",
24
24
  "font-sidebar leading-5 text-sidebar-c-2 no-underline wrap-break-word"
@@ -34,16 +34,23 @@ const B = {
34
34
  {
35
35
  selected: !1,
36
36
  disabled: !1,
37
+ active: !1,
37
38
  class: "hover:bg-sidebar-b-hover hover:text-sidebar-c-hover"
39
+ },
40
+ {
41
+ selected: !1,
42
+ disabled: !1,
43
+ active: !0,
44
+ class: "hover:bg-sidebar-b-hover"
38
45
  }
39
46
  ],
40
47
  defaultVariants: { selected: !1, disabled: !1, active: !1 }
41
- }), { cx: n } = v();
42
- return (e, C) => (a(), o(l(e.is), c({
48
+ }), { cx: r } = m();
49
+ return (e, C) => (a(), i(l(e.is), c({
43
50
  "aria-selected": e.selected,
44
51
  type: e.is === "button" ? "button" : void 0
45
- }, s(n)(s(d)({ selected: e.selected, disabled: e.disabled, active: e.active }))), {
46
- default: u(() => [
52
+ }, s(r)(s(d)({ selected: e.selected, disabled: e.disabled, active: e.active }))), {
53
+ default: b(() => [
47
54
  t(e.$slots, "indent", {}, () => [
48
55
  p(h, {
49
56
  class: "-my-2",
@@ -52,15 +59,15 @@ const B = {
52
59
  selected: e.selected
53
60
  }, null, 8, ["disabled", "indent", "selected"])
54
61
  ]),
55
- e.icon || e.$slots.icon ? (a(), b("div", B, [
62
+ e.icon || e.$slots.icon ? (a(), u("div", B, [
56
63
  t(e.$slots, "icon", {}, () => [
57
- e.icon ? (a(), o(s(y), {
64
+ e.icon ? (a(), i(s(y), {
58
65
  key: 0,
59
66
  icon: e.icon
60
- }, null, 8, ["icon"])) : i("", !0)
67
+ }, null, 8, ["icon"])) : o("", !0)
61
68
  ])
62
- ])) : i("", !0),
63
- f("div", k, [
69
+ ])) : o("", !0),
70
+ f("div", g, [
64
71
  t(e.$slots, "default")
65
72
  ]),
66
73
  t(e.$slots, "aside")
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroup.vue"],"names":[],"mappings":"AAyKA,OAAO,KAAK,EAA2B,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAI/E;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;WAwDM,OAAO;;;;;;;;;;WAAP,OAAO;;;;;;AAvDhB,wBAyQC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroup.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAA2B,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAI/E;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;WAwDM,OAAO;;;;;;;;;;WAAP,OAAO;;;;;;AAvDhB,wBA4QC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}