@scalar/components 0.12.76 → 0.13.1
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.
- package/dist/components/ScalarButton/ScalarButton.stories.d.ts +3 -0
- package/dist/components/ScalarButton/ScalarButton.stories.d.ts.map +1 -1
- package/dist/components/ScalarButton/ScalarButton.test.d.ts +2 -0
- package/dist/components/ScalarButton/ScalarButton.test.d.ts.map +1 -0
- package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarButton/ScalarButton.vue.js +29 -32
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.test.d.ts +2 -0
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.test.d.ts.map +1 -0
- package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts +30 -5
- package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.test.d.ts +2 -0
- package/dist/components/ScalarCombobox/ScalarCombobox.test.d.ts.map +1 -0
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +24 -7
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +34 -18
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +16 -82
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +23 -22
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +7 -2
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +23 -28
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +25 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +58 -56
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts +5 -11
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +43 -43
- package/dist/components/ScalarCombobox/types.d.ts +4 -2
- package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/types.js +8 -3
- package/dist/components/ScalarContextMenu/ScalarContextMenu.test.d.ts +2 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.test.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +73 -105
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.test.d.ts +2 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.test.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +40 -22
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +32 -42
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts +35 -0
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +7 -0
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +37 -0
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts +17 -1
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +7 -6
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue2.js +4 -0
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +18 -15
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +19 -29
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts +32 -0
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +28 -0
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue2.js +4 -0
- package/dist/components/ScalarDropdown/index.d.ts +2 -0
- package/dist/components/ScalarDropdown/index.d.ts.map +1 -1
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts +6 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.stories.d.ts.map +1 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.test.d.ts +2 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.test.d.ts.map +1 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts +18 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts.map +1 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +23 -0
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue2.js +4 -0
- package/dist/components/ScalarErrorBoundary/index.d.ts +2 -0
- package/dist/components/ScalarErrorBoundary/index.d.ts.map +1 -0
- package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts +4 -0
- package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.test.d.ts +2 -0
- package/dist/components/ScalarFloating/ScalarFloating.test.d.ts.map +1 -0
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +5 -4
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +32 -29
- package/dist/components/ScalarFloating/index.d.ts +1 -1
- package/dist/components/ScalarFloating/index.d.ts.map +1 -1
- package/dist/components/ScalarFloating/types.d.ts +15 -7
- package/dist/components/ScalarFloating/types.d.ts.map +1 -1
- package/dist/components/ScalarFloating/useResizeWithTarget.d.ts +3 -0
- package/dist/components/ScalarFloating/useResizeWithTarget.d.ts.map +1 -1
- package/dist/components/ScalarFloating/useResizeWithTarget.test.d.ts +2 -0
- package/dist/components/ScalarFloating/useResizeWithTarget.test.d.ts.map +1 -0
- package/dist/components/ScalarHeaderButton/ScalarHeaderButton.test.d.ts +2 -0
- package/dist/components/ScalarHeaderButton/ScalarHeaderButton.test.d.ts.map +1 -0
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +9 -8
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.test.d.ts +2 -0
- package/dist/components/ScalarIcon/ScalarIcon.test.d.ts.map +1 -0
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
- package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -15
- package/dist/components/ScalarIcon/icons/Add.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +1 -1
- package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +1 -1
- package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +1 -1
- package/dist/components/ScalarIcon/icons/Hide.svg.js +10 -9
- package/dist/components/ScalarIcon/icons/Show.svg.js +7 -8
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +13 -10
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.test.d.ts +2 -0
- package/dist/components/ScalarIconButton/ScalarIconButton.test.d.ts.map +1 -0
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +3 -3
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +19 -21
- package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +52 -25
- package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.test.d.ts +2 -0
- package/dist/components/ScalarListbox/ScalarListbox.test.d.ts.map +1 -0
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +41 -22
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +46 -85
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts +8 -0
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -0
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +26 -0
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue2.js +4 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts +8 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts.map +1 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +53 -0
- package/dist/components/ScalarListbox/ScalarListboxItem.vue2.js +4 -0
- package/dist/components/ScalarListbox/index.d.ts +3 -1
- package/dist/components/ScalarListbox/index.d.ts.map +1 -1
- package/dist/components/ScalarListbox/types.d.ts +1 -0
- package/dist/components/ScalarListbox/types.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +32 -10
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.test.d.ts +2 -0
- package/dist/components/ScalarLoading/ScalarLoading.test.d.ts.map +1 -0
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +4 -4
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.vue.js +3 -3
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +29 -30
- package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts +133 -108
- package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.test.d.ts +2 -0
- package/dist/components/ScalarMenu/ScalarMenu.test.d.ts.map +1 -0
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +34 -18
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.vue.js +22 -20
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +26 -19
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +17 -10
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +22 -16
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +25 -22
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +3 -3
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +18 -15
- package/dist/components/ScalarMenu/ScalarMenuSection.vue2.js +4 -0
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +23 -22
- package/dist/components/ScalarModal/ScalarModal.stories.d.ts +9 -9
- package/dist/components/ScalarModal/ScalarModal.test.d.ts +2 -0
- package/dist/components/ScalarModal/ScalarModal.test.d.ts.map +1 -0
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts +5 -5
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +20 -116
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.test.d.ts +2 -0
- package/dist/components/ScalarPopover/ScalarPopover.test.d.ts.map +1 -0
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +4 -11
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +23 -24
- package/dist/components/ScalarPopover/index.d.ts +1 -0
- package/dist/components/ScalarPopover/index.d.ts.map +1 -1
- package/dist/components/ScalarPopover/types.d.ts +15 -0
- package/dist/components/ScalarPopover/types.d.ts.map +1 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts +6 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts.map +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.test.d.ts +2 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.test.d.ts.map +1 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +3 -3
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +10 -10
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +31 -35
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +12 -18
- package/dist/components/ScalarSearchResults/ScalarSearchResults.test.d.ts +2 -0
- package/dist/components/ScalarSearchResults/ScalarSearchResults.test.d.ts.map +1 -0
- package/dist/components/ScalarTextField/ScalarTextField.test.d.ts +2 -0
- package/dist/components/ScalarTextField/ScalarTextField.test.d.ts.map +1 -0
- package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts +26 -39
- package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts.map +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.test.d.ts +2 -0
- package/dist/components/ScalarToggle/ScalarToggle.test.d.ts.map +1 -0
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +3 -5
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.vue.js +24 -35
- package/dist/components/ScalarTooltip/ScalarTooltip.test.d.ts +2 -0
- package/dist/components/ScalarTooltip/ScalarTooltip.test.d.ts.map +1 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualText.test.d.ts +2 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualText.test.d.ts.map +1 -0
- package/dist/cva.js +7 -7
- package/dist/cva.test.d.ts +2 -0
- package/dist/cva.test.d.ts.map +1 -0
- package/dist/hooks/useBindCx.d.ts +51 -0
- package/dist/hooks/useBindCx.d.ts.map +1 -0
- package/dist/hooks/useBindCx.js +34 -0
- package/dist/hooks/useBindCx.stories.d.ts +430 -0
- package/dist/hooks/useBindCx.stories.d.ts.map +1 -0
- package/dist/hooks/useBindCx.test.d.ts +2 -0
- package/dist/hooks/useBindCx.test.d.ts.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +85 -68
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/dist/components/ScalarButton/ScalarButton.spec.d.ts +0 -2
- package/dist/components/ScalarButton/ScalarButton.spec.d.ts.map +0 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts +0 -2
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts.map +0 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.spec.d.ts +0 -2
- package/dist/components/ScalarCombobox/ScalarCombobox.spec.d.ts.map +0 -1
- package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts +0 -2
- package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts.map +0 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts +0 -2
- package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts.map +0 -1
- package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts +0 -2
- package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts.map +0 -1
- package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts +0 -2
- package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts.map +0 -1
- package/dist/components/ScalarHeaderButton/ScalarHeaderButton.spec.d.ts +0 -2
- package/dist/components/ScalarHeaderButton/ScalarHeaderButton.spec.d.ts.map +0 -1
- package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts +0 -2
- package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts.map +0 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts +0 -2
- package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts.map +0 -1
- package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts +0 -2
- package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts.map +0 -1
- package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts +0 -2
- package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts.map +0 -1
- package/dist/components/ScalarMenu/ScalarMenu.spec.d.ts +0 -2
- package/dist/components/ScalarMenu/ScalarMenu.spec.d.ts.map +0 -1
- package/dist/components/ScalarModal/ScalarModal.spec.d.ts +0 -2
- package/dist/components/ScalarModal/ScalarModal.spec.d.ts.map +0 -1
- package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts +0 -2
- package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts.map +0 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts +0 -2
- package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts.map +0 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts +0 -2
- package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts.map +0 -1
- package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts +0 -2
- package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts.map +0 -1
- package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts +0 -2
- package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts.map +0 -1
- package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts +0 -2
- package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts.map +0 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.spec.d.ts +0 -2
- package/dist/components/ScalarVirtualText/ScalarVirtualText.spec.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAKvC,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;;AAyFF,wBAMG"}
|
|
@@ -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
|
|
4
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f4f53d32"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as u, useCssVars as p, computed as s, openBlock as m, createBlock as f, resolveDynamicComponent as z, normalizeProps as d, guardReactiveProps as g, unref as i } from "vue";
|
|
2
|
+
import { cva as v } from "../../cva.js";
|
|
3
|
+
import { useBindCx as x } from "../../hooks/useBindCx.js";
|
|
4
|
+
import { getIcon as _, getLogo as b } from "./utils/index.js";
|
|
5
|
+
const y = /* @__PURE__ */ u({
|
|
6
|
+
inheritAttrs: !1,
|
|
5
7
|
__name: "ScalarIcon",
|
|
6
8
|
props: {
|
|
7
9
|
icon: {},
|
|
@@ -11,10 +13,10 @@ const C = /* @__PURE__ */ c({
|
|
|
11
13
|
label: {}
|
|
12
14
|
},
|
|
13
15
|
setup(r) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
p((o) => ({
|
|
17
|
+
ce5c5c8a: a.value
|
|
16
18
|
}));
|
|
17
|
-
const e = r,
|
|
19
|
+
const e = r, { cx: t } = x(), n = v({
|
|
18
20
|
variants: {
|
|
19
21
|
size: {
|
|
20
22
|
xs: "size-3",
|
|
@@ -30,20 +32,21 @@ const C = /* @__PURE__ */ c({
|
|
|
30
32
|
defaultVariants: {
|
|
31
33
|
size: "full"
|
|
32
34
|
}
|
|
33
|
-
}),
|
|
35
|
+
}), a = s(() => e.thickness ?? "2"), l = s(
|
|
34
36
|
() => e.label ? { ariaLabel: e.label } : {
|
|
35
37
|
ariaHidden: !0,
|
|
36
38
|
role: "presentation"
|
|
37
39
|
}
|
|
38
|
-
),
|
|
39
|
-
if (e.icon) return
|
|
40
|
-
if (e.logo) return
|
|
40
|
+
), c = s(() => {
|
|
41
|
+
if (e.icon) return _(e.icon);
|
|
42
|
+
if (e.logo) return b(e.logo);
|
|
41
43
|
});
|
|
42
|
-
return (o,
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
return (o, k) => (m(), f(z(c.value), d(g({
|
|
45
|
+
...i(t)("scalar-icon", i(n)({ size: o.size })),
|
|
46
|
+
...l.value
|
|
47
|
+
})), null, 16));
|
|
45
48
|
}
|
|
46
49
|
});
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
y as default
|
|
49
52
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as n, createElementVNode as r } from "vue";
|
|
2
2
|
const t = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
4
5
|
viewBox: "0 0 24 24"
|
|
5
6
|
};
|
|
6
7
|
function l(d, e) {
|
|
7
8
|
return o(), n("svg", t, e[0] || (e[0] = [
|
|
8
9
|
r("path", {
|
|
9
|
-
fill: "none",
|
|
10
10
|
stroke: "currentColor",
|
|
11
11
|
"stroke-linecap": "round",
|
|
12
12
|
"stroke-linejoin": "round",
|
|
13
|
-
d: "
|
|
13
|
+
d: "M5 11.988h14M12.006 5v14"
|
|
14
14
|
}, null, -1)
|
|
15
15
|
]));
|
|
16
16
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as o, createElementBlock as n, createElementVNode as r } from "vue";
|
|
2
|
+
const t = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "none",
|
|
5
|
-
stroke: "currentColor",
|
|
6
|
-
"stroke-linecap": "round",
|
|
7
|
-
"stroke-linejoin": "round",
|
|
8
5
|
viewBox: "0 0 24 24"
|
|
9
6
|
};
|
|
10
|
-
function l(
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
function l(s, e) {
|
|
8
|
+
return o(), n("svg", t, e[0] || (e[0] = [
|
|
9
|
+
r("path", {
|
|
10
|
+
stroke: "currentColor",
|
|
11
|
+
"stroke-linecap": "round",
|
|
12
|
+
"stroke-linejoin": "round",
|
|
13
|
+
d: "M9.88 14.12a3 3 0 1 1 4.24-4.24m-3.39 9.04q.632.079 1.27.08c7 0 10-7 10-7a13.2 13.2 0 0 0-1.67-2.68M6.61 17.39A13.5 13.5 0 0 1 2 12s3-7 10-7a9.74 9.74 0 0 1 5.39 1.61M2 22 22 2"
|
|
14
|
+
}, null, -1)
|
|
14
15
|
]));
|
|
15
16
|
}
|
|
16
17
|
const d = { render: l };
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as r, createElementBlock as n, createElementVNode as o } from "vue";
|
|
2
2
|
const t = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
4
5
|
viewBox: "0 0 24 24"
|
|
5
6
|
};
|
|
6
7
|
function l(s, e) {
|
|
7
|
-
return
|
|
8
|
+
return r(), n("svg", t, e[0] || (e[0] = [
|
|
8
9
|
o("path", {
|
|
9
|
-
fill: "none",
|
|
10
10
|
stroke: "currentColor",
|
|
11
11
|
"stroke-linecap": "round",
|
|
12
12
|
"stroke-linejoin": "round",
|
|
13
|
-
d: "
|
|
13
|
+
d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7"
|
|
14
14
|
}, null, -1),
|
|
15
15
|
o("path", {
|
|
16
|
-
fill: "none",
|
|
17
16
|
stroke: "currentColor",
|
|
18
17
|
"stroke-linecap": "round",
|
|
19
18
|
"stroke-linejoin": "round",
|
|
20
|
-
d: "
|
|
19
|
+
d: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"
|
|
21
20
|
}, null, -1)
|
|
22
21
|
]));
|
|
23
22
|
}
|
|
24
|
-
const
|
|
23
|
+
const i = { render: l };
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
i as default,
|
|
27
26
|
l as render
|
|
28
27
|
};
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/vue3';
|
|
2
|
+
/**
|
|
3
|
+
* A helper wrapper around the icon only ScalarButton
|
|
4
|
+
*/
|
|
2
5
|
declare const meta: {
|
|
3
6
|
component: import("vue").DefineComponent<{
|
|
4
7
|
label: string;
|
|
5
8
|
icon: import("../ScalarIcon").Icon;
|
|
6
9
|
disabled?: boolean;
|
|
7
10
|
variant?: string | undefined;
|
|
8
|
-
size?: "
|
|
11
|
+
size?: "sm" | "xs" | "md" | "full" | "xxs" | undefined;
|
|
9
12
|
thickness?: string;
|
|
10
13
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
11
14
|
label: string;
|
|
12
15
|
icon: import("../ScalarIcon").Icon;
|
|
13
16
|
disabled?: boolean;
|
|
14
17
|
variant?: string | undefined;
|
|
15
|
-
size?: "
|
|
18
|
+
size?: "sm" | "xs" | "md" | "full" | "xxs" | undefined;
|
|
16
19
|
thickness?: string;
|
|
17
20
|
}> & Readonly<{}>, {
|
|
18
|
-
size: "
|
|
21
|
+
size: "sm" | "xs" | "md" | "full" | "xxs";
|
|
19
22
|
variant: string;
|
|
20
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
24
|
tags: string[];
|
|
22
25
|
argTypes: {
|
|
23
26
|
icon: {
|
|
@@ -35,12 +38,11 @@ declare const meta: {
|
|
|
35
38
|
control: "select";
|
|
36
39
|
options: string[];
|
|
37
40
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
41
|
+
disabled: {
|
|
42
|
+
control: "boolean";
|
|
43
|
+
};
|
|
44
|
+
class: {
|
|
45
|
+
control: "text";
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
48
|
};
|
|
@@ -48,4 +50,5 @@ export default meta;
|
|
|
48
50
|
type Story = StoryObj<typeof meta>;
|
|
49
51
|
export declare const Base: Story;
|
|
50
52
|
export declare const Disabled: Story;
|
|
53
|
+
export declare const CustomClasses: Story;
|
|
51
54
|
//# sourceMappingURL=ScalarIconButton.stories.d.ts.map
|
|
@@ -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,QAAA,MAAM,IAAI
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarIconButton.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.test.ts"],"names":[],"mappings":""}
|
|
@@ -10,7 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
thickness?: string;
|
|
11
11
|
};
|
|
12
12
|
declare const variants: (props?: ({
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "sm" | "xs" | "md" | "full" | "xxs" | undefined;
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
variant?: string | undefined;
|
|
16
16
|
} & ({
|
|
@@ -69,8 +69,8 @@ declare const variants: (props?: ({
|
|
|
69
69
|
} | null | undefined;
|
|
70
70
|
})) | undefined) => string;
|
|
71
71
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
72
|
-
size: "
|
|
72
|
+
size: "sm" | "xs" | "md" | "full" | "xxs";
|
|
73
73
|
variant: string;
|
|
74
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
75
75
|
export default _default;
|
|
76
76
|
//# sourceMappingURL=ScalarIconButton.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarIconButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarIconButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAKvC,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,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as t, openBlock as i, createElementBlock as n, mergeProps as r, unref as s, createVNode as l, createElementVNode as d, toDisplayString as c } from "vue";
|
|
2
|
+
import { cva as p } from "../../cva.js";
|
|
3
|
+
import { useBindCx as u } from "../../hooks/useBindCx.js";
|
|
4
|
+
import { styles as m } from "../ScalarButton/variants.js";
|
|
5
|
+
import f from "../ScalarIcon/ScalarIcon.vue.js";
|
|
6
|
+
const b = ["ariaDisabled"], h = { class: "sr-only" }, w = /* @__PURE__ */ t({
|
|
7
|
+
inheritAttrs: !1,
|
|
6
8
|
__name: "ScalarIconButton",
|
|
7
9
|
props: {
|
|
8
10
|
label: {},
|
|
@@ -12,8 +14,8 @@ const z = ["ariaDisabled"], k = { class: "sr-only" }, D = /* @__PURE__ */ n({
|
|
|
12
14
|
size: { default: "md" },
|
|
13
15
|
thickness: {}
|
|
14
16
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const o =
|
|
17
|
+
setup(v) {
|
|
18
|
+
const { cx: o } = u(), a = p({
|
|
17
19
|
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
18
20
|
variants: {
|
|
19
21
|
size: {
|
|
@@ -26,25 +28,21 @@ const z = ["ariaDisabled"], k = { class: "sr-only" }, D = /* @__PURE__ */ n({
|
|
|
26
28
|
disabled: {
|
|
27
29
|
true: "cursor-not-allowed shadow-none"
|
|
28
30
|
},
|
|
29
|
-
variant:
|
|
31
|
+
variant: m
|
|
30
32
|
}
|
|
31
|
-
}), a = r(() => {
|
|
32
|
-
const { class: s, ...t } = i();
|
|
33
|
-
return { class: s || "", rest: t };
|
|
34
33
|
});
|
|
35
|
-
return (
|
|
36
|
-
ariaDisabled:
|
|
37
|
-
class: e(f)(e(o)({ size: s.size, variant: s.variant, disabled: s.disabled }), a.value.class),
|
|
34
|
+
return (e, z) => (i(), n("button", r({
|
|
35
|
+
ariaDisabled: e.disabled || void 0,
|
|
38
36
|
type: "button"
|
|
39
|
-
}), [
|
|
40
|
-
|
|
41
|
-
icon:
|
|
42
|
-
thickness:
|
|
37
|
+
}, s(o)(s(a)({ size: e.size, variant: e.variant, disabled: e.disabled }))), [
|
|
38
|
+
l(s(f), {
|
|
39
|
+
icon: e.icon,
|
|
40
|
+
thickness: e.thickness
|
|
43
41
|
}, null, 8, ["icon", "thickness"]),
|
|
44
|
-
|
|
45
|
-
], 16,
|
|
42
|
+
d("span", h, c(e.label), 1)
|
|
43
|
+
], 16, b));
|
|
46
44
|
}
|
|
47
45
|
});
|
|
48
46
|
export {
|
|
49
|
-
|
|
47
|
+
w as default
|
|
50
48
|
};
|
|
@@ -2,56 +2,78 @@ import type { StoryObj } from '@storybook/vue3';
|
|
|
2
2
|
import type { Option } from './types';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
component: {
|
|
5
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
-
multiple?: boolean;
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<({
|
|
7
6
|
options: Option[];
|
|
8
|
-
modelValue?: Option | Option[];
|
|
9
7
|
id?: string;
|
|
10
8
|
label?: string;
|
|
11
|
-
} &
|
|
9
|
+
} & {
|
|
10
|
+
multiple?: false;
|
|
11
|
+
modelValue?: Option;
|
|
12
|
+
} & import("../ScalarFloating").ScalarFloatingOptions) | ({
|
|
13
|
+
options: Option[];
|
|
14
|
+
id?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
} & {
|
|
17
|
+
multiple: true;
|
|
18
|
+
modelValue?: Option[];
|
|
19
|
+
} & import("../ScalarFloating").ScalarFloatingOptions)> & Readonly<{
|
|
12
20
|
"onUpdate:modelValue"?: ((v: Option) => any) | undefined;
|
|
13
21
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
22
|
"update:modelValue": (v: Option) => any;
|
|
15
|
-
}, import("vue").PublicProps, {
|
|
16
|
-
multiple: boolean;
|
|
17
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
18
24
|
P: {};
|
|
19
25
|
B: {};
|
|
20
26
|
D: {};
|
|
21
27
|
C: {};
|
|
22
28
|
M: {};
|
|
23
29
|
Defaults: {};
|
|
24
|
-
}, Readonly<{
|
|
25
|
-
|
|
30
|
+
}, {} & (Readonly<({
|
|
31
|
+
options: Option[];
|
|
32
|
+
id?: string;
|
|
33
|
+
label?: string;
|
|
34
|
+
} & {
|
|
35
|
+
multiple?: false;
|
|
36
|
+
modelValue?: Option;
|
|
37
|
+
} & import("../ScalarFloating").ScalarFloatingOptions) | ({
|
|
26
38
|
options: Option[];
|
|
27
|
-
modelValue?: Option | Option[];
|
|
28
39
|
id?: string;
|
|
29
40
|
label?: string;
|
|
30
|
-
} &
|
|
41
|
+
} & {
|
|
42
|
+
multiple: true;
|
|
43
|
+
modelValue?: Option[];
|
|
44
|
+
} & import("../ScalarFloating").ScalarFloatingOptions)> & Readonly<{
|
|
31
45
|
"onUpdate:modelValue"?: ((v: Option) => any) | undefined;
|
|
32
|
-
}
|
|
33
|
-
multiple: boolean;
|
|
34
|
-
}>;
|
|
46
|
+
}>), {}, {}, {}, {}, {}>;
|
|
35
47
|
__isFragment?: never;
|
|
36
48
|
__isTeleport?: never;
|
|
37
49
|
__isSuspense?: never;
|
|
38
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
39
|
-
multiple?: boolean;
|
|
50
|
+
} & import("vue").ComponentOptionsBase<Readonly<({
|
|
40
51
|
options: Option[];
|
|
41
|
-
modelValue?: Option | Option[];
|
|
42
52
|
id?: string;
|
|
43
53
|
label?: string;
|
|
44
|
-
} &
|
|
54
|
+
} & {
|
|
55
|
+
multiple?: false;
|
|
56
|
+
modelValue?: Option;
|
|
57
|
+
} & import("../ScalarFloating").ScalarFloatingOptions) | ({
|
|
58
|
+
options: Option[];
|
|
59
|
+
id?: string;
|
|
60
|
+
label?: string;
|
|
61
|
+
} & {
|
|
62
|
+
multiple: true;
|
|
63
|
+
modelValue?: Option[];
|
|
64
|
+
} & import("../ScalarFloating").ScalarFloatingOptions)> & Readonly<{
|
|
45
65
|
"onUpdate:modelValue"?: ((v: Option) => any) | undefined;
|
|
46
66
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
47
67
|
"update:modelValue": (v: Option) => any;
|
|
48
|
-
}, string, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
68
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
69
|
+
$slots: Readonly<{
|
|
70
|
+
default(props: {
|
|
71
|
+
open: boolean;
|
|
72
|
+
}): import("vue").Slot;
|
|
73
|
+
}> & {
|
|
74
|
+
default(props: {
|
|
75
|
+
open: boolean;
|
|
76
|
+
}): import("vue").Slot;
|
|
55
77
|
};
|
|
56
78
|
});
|
|
57
79
|
tags: string[];
|
|
@@ -63,9 +85,14 @@ declare const meta: {
|
|
|
63
85
|
control: "select";
|
|
64
86
|
options: import("@floating-ui/utils").Placement[];
|
|
65
87
|
};
|
|
88
|
+
class: {
|
|
89
|
+
control: "text";
|
|
90
|
+
};
|
|
66
91
|
};
|
|
67
92
|
};
|
|
68
93
|
export default meta;
|
|
69
94
|
type Story = StoryObj<typeof meta>;
|
|
70
95
|
export declare const Base: Story;
|
|
96
|
+
export declare const Multiselect: Story;
|
|
97
|
+
export declare const CustomClasses: Story;
|
|
71
98
|
//# sourceMappingURL=ScalarListbox.stories.d.ts.map
|
|
@@ -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
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarListbox.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
import { type ScalarFloatingOptions } from '../ScalarFloating';
|
|
2
3
|
import type { Option } from './types';
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
modelValue?: Option | Option[];
|
|
12
|
-
id?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
} & Omit<FloatingOptions, 'middleware' | 'offset' | 'targetRef'>;
|
|
4
|
+
type SingleSelectListboxProps = {
|
|
5
|
+
multiple?: false;
|
|
6
|
+
modelValue?: Option;
|
|
7
|
+
};
|
|
8
|
+
type MultipleSelectListboxProps = {
|
|
9
|
+
multiple: true;
|
|
10
|
+
modelValue?: Option[];
|
|
11
|
+
};
|
|
15
12
|
declare function __VLS_template(): {
|
|
16
13
|
attrs: Partial<{}>;
|
|
17
|
-
slots: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
slots: Readonly<{
|
|
15
|
+
/** The reference element for the listbox */
|
|
16
|
+
default(props: {
|
|
17
|
+
/** Whether or not the listbox is open */
|
|
18
|
+
open: boolean;
|
|
19
|
+
}): Slot;
|
|
20
|
+
}> & {
|
|
21
|
+
/** The reference element for the listbox */
|
|
22
|
+
default(props: {
|
|
23
|
+
/** Whether or not the listbox is open */
|
|
24
|
+
open: boolean;
|
|
25
|
+
}): Slot;
|
|
21
26
|
};
|
|
22
27
|
refs: {};
|
|
23
28
|
rootEl: any;
|
|
24
29
|
};
|
|
25
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
31
|
+
declare const __VLS_component: import("vue").DefineComponent<({
|
|
32
|
+
options: Option[];
|
|
33
|
+
id?: string;
|
|
34
|
+
label?: string;
|
|
35
|
+
} & SingleSelectListboxProps & ScalarFloatingOptions) | ({
|
|
36
|
+
options: Option[];
|
|
37
|
+
id?: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
} & MultipleSelectListboxProps & ScalarFloatingOptions), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
40
|
"update:modelValue": (v: Option) => any;
|
|
28
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<({
|
|
42
|
+
options: Option[];
|
|
43
|
+
id?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
} & SingleSelectListboxProps & ScalarFloatingOptions) | ({
|
|
46
|
+
options: Option[];
|
|
47
|
+
id?: string;
|
|
48
|
+
label?: string;
|
|
49
|
+
} & MultipleSelectListboxProps & ScalarFloatingOptions)> & Readonly<{
|
|
29
50
|
"onUpdate:modelValue"?: ((v: Option) => any) | undefined;
|
|
30
|
-
}>, {
|
|
31
|
-
multiple: boolean;
|
|
32
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
52
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
53
|
export default _default;
|
|
35
54
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarListbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarListbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG/B,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAE9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAIrC,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,IAAI,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAA;AAkCD,iBAAS,cAAc;WAgIT,OAAO,IAA6B;;QAhJhD,4CAA4C;uBAC7B;YACb,yCAAyC;YACzC,IAAI,EAAE,OAAO,CAAA;SACd,GAAG,IAAI;;QAJR,4CAA4C;uBAC7B;YACb,yCAAyC;YACzC,IAAI,EAAE,OAAO,CAAA;SACd,GAAG,IAAI;;;;EAiJT;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aArLR,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;aAFL,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;;;aAFL,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;aAFL,MAAM,EAAE;SACZ,MAAM;YACH,MAAM;;;kFA0LhB,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"}
|