@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,30 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as t, openBlock as s, createElementBlock as a, mergeProps as c, unref as n, createVNode as l, createElementVNode as i, renderSlot as d } from "vue";
|
|
2
|
+
import { cva as p } from "../../cva.js";
|
|
3
|
+
import { useBindCx as m } from "../../hooks/useBindCx.js";
|
|
4
|
+
import f from "../ScalarIcon/ScalarIcon.vue.js";
|
|
5
|
+
const u = { class: "font-medium" }, k = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
4
7
|
__name: "ScalarMenuProduct",
|
|
5
8
|
props: {
|
|
6
9
|
selected: { type: Boolean },
|
|
7
10
|
icon: {}
|
|
8
11
|
},
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
setup(b) {
|
|
13
|
+
const { cx: o } = m(), r = p({
|
|
14
|
+
base: "relative flex min-w-0 flex-1 items-center gap-2 overflow-hidden rounded px-2 py-1.5 leading no-underline flex-row",
|
|
15
|
+
variants: {
|
|
16
|
+
selected: {
|
|
17
|
+
true: "pointer-events-none bg-b-2",
|
|
18
|
+
false: "cursor-pointer bg-b-1 hover:bg-b-2"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return (e, _) => (s(), a("a", c({ target: "_blank" }, n(o)(n(r)({ selected: e.selected }))), [
|
|
23
|
+
l(n(f), {
|
|
18
24
|
icon: e.icon,
|
|
19
25
|
size: "xs",
|
|
20
26
|
thickness: "2.5"
|
|
21
27
|
}, null, 8, ["icon"]),
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
i("span", u, [
|
|
29
|
+
d(e.$slots, "default")
|
|
24
30
|
])
|
|
25
|
-
],
|
|
31
|
+
], 16));
|
|
26
32
|
}
|
|
27
33
|
});
|
|
28
34
|
export {
|
|
29
|
-
|
|
35
|
+
k as default
|
|
30
36
|
};
|
|
@@ -7,6 +7,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
7
7
|
open: (event: Event, product: Product) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
9
|
onOpen?: ((event: Event, product: Product) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
12
12
|
//# sourceMappingURL=ScalarMenuProducts.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuProducts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProducts.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuProducts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProducts.vue"],"names":[],"mappings":"AAkDA,KAAK,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;CAChC,CAAC;;;;;;AAuIF,wBAOG"}
|
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, openBlock as m, createElementBlock as c, normalizeProps as u, guardReactiveProps as h, unref as C, createVNode as r, withCtx as t, createTextVNode as l } from "vue";
|
|
2
|
+
import { useBindCx as k } from "../../hooks/useBindCx.js";
|
|
2
3
|
import d from "./ScalarMenuProduct.vue.js";
|
|
3
|
-
const
|
|
4
|
+
const g = /* @__PURE__ */ p({
|
|
5
|
+
inheritAttrs: !1,
|
|
4
6
|
__name: "ScalarMenuProducts",
|
|
5
7
|
props: {
|
|
6
8
|
selected: {},
|
|
7
9
|
hrefs: {}
|
|
8
10
|
},
|
|
9
11
|
emits: ["open"],
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
+
setup(b) {
|
|
13
|
+
const { cx: f } = k();
|
|
14
|
+
return (o, e) => {
|
|
12
15
|
var n, i, a;
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
href: ((n =
|
|
16
|
+
return m(), c("div", u(h(C(f)("flex flex-col"))), [
|
|
17
|
+
r(d, {
|
|
18
|
+
href: ((n = o.hrefs) == null ? void 0 : n.dashboard) ?? "https://dashboard.scalar.com",
|
|
16
19
|
icon: "House",
|
|
17
|
-
selected:
|
|
18
|
-
onClick: e[0] || (e[0] = (
|
|
20
|
+
selected: o.selected === "dashboard",
|
|
21
|
+
onClick: e[0] || (e[0] = (s) => o.$emit("open", s, "dashboard"))
|
|
19
22
|
}, {
|
|
20
|
-
default:
|
|
23
|
+
default: t(() => e[3] || (e[3] = [
|
|
21
24
|
l(" Dashboard ")
|
|
22
25
|
])),
|
|
23
26
|
_: 1
|
|
24
27
|
}, 8, ["href", "selected"]),
|
|
25
|
-
|
|
26
|
-
href: ((i =
|
|
28
|
+
r(d, {
|
|
29
|
+
href: ((i = o.hrefs) == null ? void 0 : i.docs) ?? "https://docs.scalar.com",
|
|
27
30
|
icon: "Page",
|
|
28
|
-
selected:
|
|
29
|
-
onClick: e[1] || (e[1] = (
|
|
31
|
+
selected: o.selected === "docs",
|
|
32
|
+
onClick: e[1] || (e[1] = (s) => o.$emit("open", s, "docs"))
|
|
30
33
|
}, {
|
|
31
|
-
default:
|
|
34
|
+
default: t(() => e[4] || (e[4] = [
|
|
32
35
|
l(" Docs ")
|
|
33
36
|
])),
|
|
34
37
|
_: 1
|
|
35
38
|
}, 8, ["href", "selected"]),
|
|
36
|
-
|
|
37
|
-
href: ((a =
|
|
39
|
+
r(d, {
|
|
40
|
+
href: ((a = o.hrefs) == null ? void 0 : a.client) ?? "https://client.scalar.com",
|
|
38
41
|
icon: "ExternalLink",
|
|
39
|
-
selected:
|
|
40
|
-
onClick: e[2] || (e[2] = (
|
|
42
|
+
selected: o.selected === "client",
|
|
43
|
+
onClick: e[2] || (e[2] = (s) => o.$emit("open", s, "client"))
|
|
41
44
|
}, {
|
|
42
|
-
default:
|
|
45
|
+
default: t(() => e[5] || (e[5] = [
|
|
43
46
|
l(" Client ")
|
|
44
47
|
])),
|
|
45
48
|
_: 1
|
|
46
49
|
}, 8, ["href", "selected"])
|
|
47
|
-
]);
|
|
50
|
+
], 16);
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
});
|
|
51
54
|
export {
|
|
52
|
-
|
|
55
|
+
g as default
|
|
53
56
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=ScalarMenuResources.vue.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, openBlock as l, createBlock as n, withCtx as r, createTextVNode as e, createVNode as o } from "vue";
|
|
2
2
|
import a from "./ScalarMenuLink.vue.js";
|
|
3
3
|
import i from "./ScalarMenuSection.vue.js";
|
|
4
|
-
const d = /* @__PURE__ */
|
|
4
|
+
const d = /* @__PURE__ */ s({
|
|
5
5
|
__name: "ScalarMenuResources",
|
|
6
6
|
setup(m) {
|
|
7
|
-
return (
|
|
7
|
+
return (f, t) => (l(), n(i, null, {
|
|
8
8
|
title: r(() => t[0] || (t[0] = [
|
|
9
9
|
e("Resources")
|
|
10
10
|
])),
|
|
@@ -5,10 +5,10 @@ declare function __VLS_template(): {
|
|
|
5
5
|
default?(_: {}): any;
|
|
6
6
|
};
|
|
7
7
|
refs: {};
|
|
8
|
-
rootEl:
|
|
8
|
+
rootEl: any;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuSection.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { defineComponent as s, openBlock as l, createElementBlock as r, normalizeProps as c, guardReactiveProps as a, unref as i, createElementVNode as t, renderSlot as o } from "vue";
|
|
2
|
+
import { useBindCx as d } from "../../hooks/useBindCx.js";
|
|
3
|
+
const f = { class: "px-2.5 font-medium leading text-c-3" }, m = { class: "flex flex-col" }, h = /* @__PURE__ */ s({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "ScalarMenuSection",
|
|
6
|
+
setup(p) {
|
|
7
|
+
const { cx: n } = d();
|
|
8
|
+
return (e, u) => (l(), r("div", c(a(i(n)("flex flex-col gap-1.5"))), [
|
|
9
|
+
t("div", f, [
|
|
10
|
+
o(e.$slots, "title")
|
|
11
|
+
]),
|
|
12
|
+
t("div", m, [
|
|
13
|
+
o(e.$slots, "default")
|
|
14
|
+
])
|
|
15
|
+
], 16));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
15
18
|
export {
|
|
16
|
-
|
|
19
|
+
h as default
|
|
17
20
|
};
|
|
@@ -7,6 +7,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
7
7
|
"update:team": (value: ScalarListboxOption | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
9
|
"onUpdate:team"?: ((value: ScalarListboxOption | undefined) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
12
12
|
//# sourceMappingURL=ScalarMenuTeamPicker.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAmDA,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,OAAO,CAAA;AAKd,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAA;IACtC,KAAK,EAAE,mBAAmB,EAAE,CAAA;CAC7B,CAAC;;;;;;AAwGF,wBAOG"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import h from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as d, computed as u, openBlock as f, createElementBlock as x, normalizeProps as _, guardReactiveProps as v, unref as o, createVNode as a, withCtx as r, createTextVNode as V, toDisplayString as g } from "vue";
|
|
2
|
+
import { useBindCx as h } from "../../hooks/useBindCx.js";
|
|
3
|
+
import C from "../ScalarListbox/ScalarListbox.vue.js";
|
|
4
|
+
import b from "../ScalarButton/ScalarButton.vue.js";
|
|
5
|
+
import k from "../ScalarIcon/ScalarIcon.vue.js";
|
|
6
|
+
const y = /* @__PURE__ */ d({
|
|
7
|
+
inheritAttrs: !1,
|
|
6
8
|
__name: "ScalarMenuTeamPicker",
|
|
7
9
|
props: {
|
|
8
10
|
team: {},
|
|
9
11
|
teams: {}
|
|
10
12
|
},
|
|
11
13
|
emits: ["update:team"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
get: () =>
|
|
14
|
+
setup(s, { emit: l }) {
|
|
15
|
+
const i = s, p = l, m = u({
|
|
16
|
+
get: () => i.team,
|
|
15
17
|
set: (e) => p("update:team", e)
|
|
16
|
-
});
|
|
17
|
-
return (e,
|
|
18
|
-
o(
|
|
19
|
-
modelValue:
|
|
20
|
-
"onUpdate:modelValue":
|
|
18
|
+
}), { cx: c } = h();
|
|
19
|
+
return (e, n) => (f(), x("div", _(v(o(c)("flex flex-col pb-px"))), [
|
|
20
|
+
a(o(C), {
|
|
21
|
+
modelValue: m.value,
|
|
22
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => m.value = t),
|
|
21
23
|
options: e.teams,
|
|
22
24
|
placement: "bottom-end",
|
|
23
25
|
resize: ""
|
|
24
26
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
o(
|
|
27
|
+
default: r(() => [
|
|
28
|
+
a(o(b), {
|
|
27
29
|
class: "h-auto px-2.5 py-1 text-xs leading shadow-none",
|
|
28
30
|
variant: "outlined"
|
|
29
31
|
}, {
|
|
30
|
-
default:
|
|
32
|
+
default: r(() => {
|
|
31
33
|
var t;
|
|
32
34
|
return [
|
|
33
|
-
|
|
34
|
-
o(
|
|
35
|
+
V(g((t = e.team) == null ? void 0 : t.label) + " ", 1),
|
|
36
|
+
a(o(k), {
|
|
35
37
|
class: "ml-auto text-c-2",
|
|
36
38
|
icon: "ChevronDown",
|
|
37
|
-
size: "
|
|
38
|
-
thickness: "2.5"
|
|
39
|
+
size: "sm"
|
|
39
40
|
})
|
|
40
41
|
];
|
|
41
42
|
}),
|
|
@@ -44,9 +45,9 @@ const k = { class: "flex flex-col pb-px" }, S = /* @__PURE__ */ c({
|
|
|
44
45
|
]),
|
|
45
46
|
_: 1
|
|
46
47
|
}, 8, ["modelValue", "options"])
|
|
47
|
-
]));
|
|
48
|
+
], 16));
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
y as default
|
|
52
53
|
};
|
|
@@ -10,10 +10,10 @@ declare const meta: {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
bodyClass?: string;
|
|
12
12
|
maxWidth?: string;
|
|
13
|
-
size?: "
|
|
14
|
-
variant?: "form" | "search" | "
|
|
13
|
+
size?: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs" | undefined;
|
|
14
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
15
15
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
16
|
-
size: "
|
|
16
|
+
size: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs";
|
|
17
17
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
18
18
|
P: {};
|
|
19
19
|
B: {};
|
|
@@ -26,10 +26,10 @@ declare const meta: {
|
|
|
26
26
|
title?: string;
|
|
27
27
|
bodyClass?: string;
|
|
28
28
|
maxWidth?: string;
|
|
29
|
-
size?: "
|
|
30
|
-
variant?: "form" | "search" | "
|
|
29
|
+
size?: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs" | undefined;
|
|
30
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
31
31
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
32
|
-
size: "
|
|
32
|
+
size: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs";
|
|
33
33
|
}>;
|
|
34
34
|
__isFragment?: never;
|
|
35
35
|
__isTeleport?: never;
|
|
@@ -39,10 +39,10 @@ declare const meta: {
|
|
|
39
39
|
title?: string;
|
|
40
40
|
bodyClass?: string;
|
|
41
41
|
maxWidth?: string;
|
|
42
|
-
size?: "
|
|
43
|
-
variant?: "form" | "search" | "
|
|
42
|
+
size?: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs" | undefined;
|
|
43
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
44
44
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
45
|
-
size: "
|
|
45
|
+
size: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs";
|
|
46
46
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
47
47
|
$slots: {
|
|
48
48
|
default?(_: {}): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarModal.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarModal/ScalarModal.test.ts"],"names":[],"mappings":""}
|
|
@@ -9,17 +9,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
title?: string;
|
|
10
10
|
bodyClass?: string;
|
|
11
11
|
maxWidth?: string;
|
|
12
|
-
size?: "
|
|
13
|
-
variant?: "form" | "search" | "
|
|
12
|
+
size?: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs" | undefined;
|
|
13
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
14
14
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
15
15
|
state: ReturnType<typeof useModal>;
|
|
16
16
|
title?: string;
|
|
17
17
|
bodyClass?: string;
|
|
18
18
|
maxWidth?: string;
|
|
19
|
-
size?: "
|
|
20
|
-
variant?: "form" | "search" | "
|
|
19
|
+
size?: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs" | undefined;
|
|
20
|
+
variant?: "form" | "search" | "error" | "history" | undefined;
|
|
21
21
|
}> & Readonly<{}>, {
|
|
22
|
-
size: "
|
|
22
|
+
size: "sm" | "lg" | "xs" | "md" | "xl" | "full" | "xxs";
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
24
|
default?(_: {}): any;
|
|
25
25
|
default?(_: {}): any;
|
|
@@ -1,44 +1,19 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/vue3';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
component: {
|
|
4
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
-
resize?: boolean | undefined;
|
|
6
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
7
|
-
targetRef?: HTMLElement | undefined;
|
|
8
|
-
isOpen?: boolean | undefined;
|
|
9
|
-
teleport?: (boolean | string) | undefined;
|
|
10
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
5
|
P: {};
|
|
12
6
|
B: {};
|
|
13
7
|
D: {};
|
|
14
8
|
C: {};
|
|
15
9
|
M: {};
|
|
16
10
|
Defaults: {};
|
|
17
|
-
}, Readonly<{
|
|
18
|
-
resize?: boolean | undefined;
|
|
19
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
20
|
-
targetRef?: HTMLElement | undefined;
|
|
21
|
-
isOpen?: boolean | undefined;
|
|
22
|
-
teleport?: (boolean | string) | undefined;
|
|
23
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
24
12
|
__isFragment?: never;
|
|
25
13
|
__isTeleport?: never;
|
|
26
14
|
__isSuspense?: never;
|
|
27
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
28
|
-
|
|
29
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
30
|
-
targetRef?: HTMLElement | undefined;
|
|
31
|
-
isOpen?: boolean | undefined;
|
|
32
|
-
teleport?: (boolean | string) | undefined;
|
|
33
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
34
|
-
$slots: {
|
|
35
|
-
default?(_: {
|
|
36
|
-
open: any;
|
|
37
|
-
}): any;
|
|
38
|
-
popover?(_: {
|
|
39
|
-
close: () => any;
|
|
40
|
-
}): any;
|
|
41
|
-
};
|
|
15
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
16
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
42
17
|
});
|
|
43
18
|
tags: string[];
|
|
44
19
|
argTypes: {
|
|
@@ -49,87 +24,40 @@ declare const meta: {
|
|
|
49
24
|
control: "select";
|
|
50
25
|
options: import("@floating-ui/utils").Placement[];
|
|
51
26
|
};
|
|
27
|
+
class: {
|
|
28
|
+
control: "text";
|
|
29
|
+
};
|
|
52
30
|
};
|
|
53
31
|
render: (args: import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
54
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
55
|
-
resize?: boolean | undefined;
|
|
56
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
57
|
-
targetRef?: HTMLElement | undefined;
|
|
58
|
-
isOpen?: boolean | undefined;
|
|
59
|
-
teleport?: (boolean | string) | undefined;
|
|
60
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
32
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
61
33
|
P: {};
|
|
62
34
|
B: {};
|
|
63
35
|
D: {};
|
|
64
36
|
C: {};
|
|
65
37
|
M: {};
|
|
66
38
|
Defaults: {};
|
|
67
|
-
}, Readonly<{
|
|
68
|
-
resize?: boolean | undefined;
|
|
69
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
70
|
-
targetRef?: HTMLElement | undefined;
|
|
71
|
-
isOpen?: boolean | undefined;
|
|
72
|
-
teleport?: (boolean | string) | undefined;
|
|
73
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
39
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
74
40
|
__isFragment?: never;
|
|
75
41
|
__isTeleport?: never;
|
|
76
42
|
__isSuspense?: never;
|
|
77
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
78
|
-
|
|
79
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
80
|
-
targetRef?: HTMLElement | undefined;
|
|
81
|
-
isOpen?: boolean | undefined;
|
|
82
|
-
teleport?: (boolean | string) | undefined;
|
|
83
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
84
|
-
$slots: {
|
|
85
|
-
default?(_: {
|
|
86
|
-
open: any;
|
|
87
|
-
}): any;
|
|
88
|
-
popover?(_: {
|
|
89
|
-
close: () => any;
|
|
90
|
-
}): any;
|
|
91
|
-
};
|
|
43
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
92
45
|
})>) => {
|
|
93
46
|
components: {
|
|
94
47
|
ScalarPopover: {
|
|
95
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
96
|
-
resize?: boolean | undefined;
|
|
97
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
98
|
-
targetRef?: HTMLElement | undefined;
|
|
99
|
-
isOpen?: boolean | undefined;
|
|
100
|
-
teleport?: (boolean | string) | undefined;
|
|
101
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
48
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
102
49
|
P: {};
|
|
103
50
|
B: {};
|
|
104
51
|
D: {};
|
|
105
52
|
C: {};
|
|
106
53
|
M: {};
|
|
107
54
|
Defaults: {};
|
|
108
|
-
}, Readonly<{
|
|
109
|
-
resize?: boolean | undefined;
|
|
110
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
111
|
-
targetRef?: HTMLElement | undefined;
|
|
112
|
-
isOpen?: boolean | undefined;
|
|
113
|
-
teleport?: (boolean | string) | undefined;
|
|
114
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
55
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
115
56
|
__isFragment?: never;
|
|
116
57
|
__isTeleport?: never;
|
|
117
58
|
__isSuspense?: never;
|
|
118
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
119
|
-
|
|
120
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
121
|
-
targetRef?: HTMLElement | undefined;
|
|
122
|
-
isOpen?: boolean | undefined;
|
|
123
|
-
teleport?: (boolean | string) | undefined;
|
|
124
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
125
|
-
$slots: {
|
|
126
|
-
default?(_: {
|
|
127
|
-
open: any;
|
|
128
|
-
}): any;
|
|
129
|
-
popover?(_: {
|
|
130
|
-
close: () => any;
|
|
131
|
-
}): any;
|
|
132
|
-
};
|
|
59
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
60
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
133
61
|
});
|
|
134
62
|
ScalarButton: {
|
|
135
63
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -189,44 +117,19 @@ declare const meta: {
|
|
|
189
117
|
};
|
|
190
118
|
setup(this: void): {
|
|
191
119
|
args: import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
192
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
193
|
-
resize?: boolean | undefined;
|
|
194
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
195
|
-
targetRef?: HTMLElement | undefined;
|
|
196
|
-
isOpen?: boolean | undefined;
|
|
197
|
-
teleport?: (boolean | string) | undefined;
|
|
198
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
120
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
199
121
|
P: {};
|
|
200
122
|
B: {};
|
|
201
123
|
D: {};
|
|
202
124
|
C: {};
|
|
203
125
|
M: {};
|
|
204
126
|
Defaults: {};
|
|
205
|
-
}, Readonly<{
|
|
206
|
-
resize?: boolean | undefined;
|
|
207
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
208
|
-
targetRef?: HTMLElement | undefined;
|
|
209
|
-
isOpen?: boolean | undefined;
|
|
210
|
-
teleport?: (boolean | string) | undefined;
|
|
211
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
127
|
+
}, Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
212
128
|
__isFragment?: never;
|
|
213
129
|
__isTeleport?: never;
|
|
214
130
|
__isSuspense?: never;
|
|
215
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
216
|
-
|
|
217
|
-
placement?: import("@floating-ui/vue").Placement | undefined;
|
|
218
|
-
targetRef?: HTMLElement | undefined;
|
|
219
|
-
isOpen?: boolean | undefined;
|
|
220
|
-
teleport?: (boolean | string) | undefined;
|
|
221
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
222
|
-
$slots: {
|
|
223
|
-
default?(_: {
|
|
224
|
-
open: any;
|
|
225
|
-
}): any;
|
|
226
|
-
popover?(_: {
|
|
227
|
-
close: () => any;
|
|
228
|
-
}): any;
|
|
229
|
-
};
|
|
131
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../ScalarFloating").ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
132
|
+
$slots: Readonly<import("./types").Slots> & import("./types").Slots;
|
|
230
133
|
})>;
|
|
231
134
|
};
|
|
232
135
|
template: string;
|
|
@@ -235,4 +138,5 @@ declare const meta: {
|
|
|
235
138
|
export default meta;
|
|
236
139
|
type Story = StoryObj<typeof meta>;
|
|
237
140
|
export declare const Base: Story;
|
|
141
|
+
export declare const CustomClasses: Story;
|
|
238
142
|
//# sourceMappingURL=ScalarPopover.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarPopover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ScalarPopover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarPopover/ScalarPopover.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAA"}
|