@mt-gloss/ui 0.0.9 → 0.0.11
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/BaseAsyncButton-XBXVlXMl.js +223 -0
- package/Expandable-SuZVwO7Z.js +13366 -0
- package/UIContext-CEp38xw-.js +1673 -0
- package/catalog.d.ts +7 -0
- package/catalog.js +614 -0
- package/index.d.ts +274 -2
- package/index.js +2217 -18330
- package/internals.d.ts +64 -0
- package/internals.js +279 -0
- package/lib/base/BaseAccordion/BaseAccordion.d.ts +51 -0
- package/lib/base/BaseAlert/BaseAlert.d.ts +28 -0
- package/lib/base/BaseAsyncButton/BaseAsyncButton.d.ts +22 -0
- package/lib/base/BaseAvatar/BaseAvatar.d.ts +28 -0
- package/lib/base/BaseBadge/BaseBadge.d.ts +31 -0
- package/lib/base/BaseBox/BaseBox.d.ts +35 -0
- package/lib/base/BaseBreadcrumbs/BaseBreadcrumbs.d.ts +26 -0
- package/lib/base/BaseButton/BaseButton.d.ts +38 -0
- package/lib/base/BaseCard/BaseCard.d.ts +109 -0
- package/lib/base/BaseCheckbox/BaseCheckbox.d.ts +23 -0
- package/lib/base/BaseChip/BaseChip.d.ts +38 -0
- package/lib/base/BaseColorPicker/BaseColorPicker.d.ts +77 -0
- package/lib/base/BaseDatePicker/BaseDatePicker.d.ts +76 -0
- package/lib/base/BaseDateRangePicker/BaseDateRangePicker.d.ts +47 -0
- package/lib/base/BaseDialog/BaseDialog.d.ts +54 -0
- package/lib/base/BaseDivider/BaseDivider.d.ts +24 -0
- package/lib/base/BaseFileUpload/BaseFileUpload.d.ts +57 -0
- package/lib/base/BaseIcon/BaseIcon.d.ts +23 -0
- package/lib/base/BaseInput/BaseInput.d.ts +34 -0
- package/lib/base/BaseLabel/BaseLabel.d.ts +21 -0
- package/lib/base/BaseLink/BaseLink.d.ts +29 -0
- package/lib/base/BaseMaskedInput/BaseMaskedInput.d.ts +31 -0
- package/lib/base/BaseMenu/BaseMenu.d.ts +70 -0
- package/lib/base/BaseNumberInput/BaseNumberInput.d.ts +31 -0
- package/lib/base/BaseOverlay/BaseOverlay.d.ts +39 -0
- package/lib/base/BaseOverlay/useOverlayDismiss.d.ts +15 -0
- package/lib/base/BaseOverlay/useOverlayPositioning.d.ts +13 -0
- package/lib/base/BasePopover/BasePopover.d.ts +40 -0
- package/lib/base/BaseProgressBar/BaseProgressBar.d.ts +27 -0
- package/lib/base/BaseRadio/BaseRadio.d.ts +20 -0
- package/lib/base/BaseRangeSlider/BaseRangeSlider.d.ts +31 -0
- package/lib/base/BaseRating/BaseRating.d.ts +25 -0
- package/lib/base/BaseSegmentedControl/BaseSegmentedControl.d.ts +26 -0
- package/lib/base/BaseSelect/BaseSelect.d.ts +83 -0
- package/lib/base/BaseSlider/BaseSlider.d.ts +29 -0
- package/lib/base/BaseStack/BaseStack.d.ts +26 -0
- package/lib/base/BaseTable/BaseTable.d.ts +97 -0
- package/lib/base/BaseText/BaseText.d.ts +19 -0
- package/lib/base/BaseTextarea/BaseTextarea.d.ts +37 -0
- package/lib/base/BaseTimePicker/BaseTimePicker.d.ts +55 -0
- package/lib/base/BaseTitle/BaseTitle.d.ts +22 -0
- package/lib/base/BaseToast/BaseToast.d.ts +35 -0
- package/lib/base/BaseToggle/BaseToggle.d.ts +22 -0
- package/lib/base/BaseTooltip/BaseTooltip.d.ts +27 -0
- package/lib/base/BaseTypography/BaseTypography.d.ts +30 -0
- package/lib/base/BaseValue/BaseValue.d.ts +20 -0
- package/lib/base/index.d.ts +65 -0
- package/lib/base/types.d.ts +9 -0
- package/lib/base/utils.d.ts +18 -0
- package/lib/composites/controls/ThresholdRamp/ThresholdRamp.d.ts +24 -0
- package/lib/composites/controls/ThresholdRamp/index.d.ts +2 -0
- package/lib/composites/controls/index.d.ts +1 -0
- package/lib/composites/dashboard/QuickConfigPanel/QuickConfigPanel.d.ts +14 -0
- package/lib/composites/dashboard/QuickConfigPanel/index.d.ts +2 -0
- package/lib/composites/dashboard/QuickConfigPanel/types.d.ts +38 -0
- package/lib/composites/data/DataTable.d.ts +61 -0
- package/lib/composites/data/PinToMetric/PinToMetric.d.ts +11 -0
- package/lib/composites/data/PinToMetric/index.d.ts +2 -0
- package/lib/composites/data/PinToMetric/types.d.ts +17 -0
- package/lib/composites/data/index.d.ts +4 -0
- package/lib/composites/index.d.ts +5 -0
- package/lib/composites/inputs/Autocomplete.d.ts +36 -0
- package/lib/composites/inputs/EntityPicker.d.ts +36 -0
- package/lib/composites/inputs/FilterChip.d.ts +29 -0
- package/lib/composites/inputs/MultiSelect.d.ts +38 -0
- package/lib/composites/inputs/index.d.ts +8 -0
- package/lib/composites/navigation/Stepper.d.ts +40 -0
- package/lib/composites/navigation/index.d.ts +2 -0
- package/lib/composites/overlay/Dropdown/Dropdown.d.ts +22 -0
- package/lib/composites/overlay/Dropdown/index.d.ts +2 -0
- package/lib/composites/overlay/FormDialog.d.ts +38 -0
- package/lib/composites/overlay/InlineNudge/InlineNudge.d.ts +26 -0
- package/lib/composites/overlay/InlineNudge/index.d.ts +12 -0
- package/lib/composites/overlay/MergePrompt/MergePrompt.d.ts +16 -0
- package/lib/composites/overlay/MergePrompt/index.d.ts +2 -0
- package/lib/composites/overlay/MergePrompt/types.d.ts +15 -0
- package/lib/composites/overlay/SplitButton/SplitButton.d.ts +27 -0
- package/lib/composites/overlay/SplitButton/index.d.ts +2 -0
- package/lib/composites/overlay/index.d.ts +6 -0
- package/lib/compositions/feedback/DestructiveModal.d.ts +1 -1
- package/lib/compositions/filters/OrderFilterBar.d.ts +35 -0
- package/lib/compositions/filters/index.d.ts +2 -0
- package/lib/compositions/forms/AddressGroup.d.ts +13 -1
- package/lib/compositions/forms/ContactForm.d.ts +31 -0
- package/lib/compositions/forms/CreditCardForm.d.ts +3 -1
- package/lib/compositions/forms/LoginForm.d.ts +3 -1
- package/lib/compositions/forms/PaymentForm.d.ts +50 -0
- package/lib/compositions/forms/RegistrationForm.d.ts +39 -0
- package/lib/compositions/forms/index.d.ts +3 -0
- package/lib/compositions/index.d.ts +3 -0
- package/lib/compositions/navigation/ImportWizard.d.ts +28 -0
- package/lib/compositions/navigation/index.d.ts +2 -0
- package/lib/compositions/panels/EntitySearchPanel.d.ts +41 -0
- package/lib/compositions/panels/ProfileCard.d.ts +34 -0
- package/lib/compositions/panels/index.d.ts +4 -0
- package/lib/containers/ContainerCard/ContainerCard.d.ts +13 -0
- package/lib/containers/ContainerDialog/ContainerDialog.d.ts +27 -0
- package/lib/containers/ContainerForm/ContainerForm.d.ts +45 -0
- package/lib/containers/ContainerFormField/ContainerFormField.d.ts +31 -0
- package/lib/containers/ContainerFormSection/ContainerFormSection.d.ts +13 -0
- package/lib/containers/ContainerPanel/ContainerPanel.d.ts +14 -0
- package/lib/containers/ContainerTable/ContainerTable.d.ts +12 -0
- package/lib/containers/ContainerToolbar/ContainerToolbar.d.ts +11 -0
- package/lib/containers/UIContext.d.ts +26 -0
- package/lib/containers/index.d.ts +18 -0
- package/lib/dictionary/border.d.ts +11 -0
- package/lib/dictionary/breakpoint.d.ts +12 -0
- package/lib/dictionary/color.d.ts +67 -0
- package/lib/dictionary/elevation.d.ts +16 -0
- package/lib/dictionary/index.d.ts +14 -0
- package/lib/dictionary/motion.d.ts +13 -0
- package/lib/dictionary/opacity.d.ts +11 -0
- package/lib/dictionary/radius.d.ts +14 -0
- package/lib/dictionary/spacing.d.ts +18 -0
- package/lib/dictionary/typography.d.ts +25 -0
- package/lib/dictionary/z-index.d.ts +13 -0
- package/lib/facade/composites.d.ts +56 -0
- package/lib/facade/compositions.d.ts +27 -0
- package/lib/facade/containers.d.ts +8 -0
- package/lib/facade/data-display.d.ts +41 -0
- package/lib/facade/display.d.ts +50 -0
- package/lib/facade/feedback.d.ts +6 -0
- package/lib/facade/index.d.ts +17 -0
- package/lib/facade/inputs.d.ts +43 -0
- package/lib/facade/layout.d.ts +8 -0
- package/lib/facade/overlay.d.ts +26 -0
- package/lib/facade/typography.d.ts +12 -0
- package/lib/facade/wrappers.d.ts +26 -0
- package/lib/presets/PresetAccordion/PresetAccordion.d.ts +21 -0
- package/lib/presets/PresetAlert/PresetAlert.d.ts +17 -0
- package/lib/presets/PresetAsyncButton/PresetAsyncButton.d.ts +22 -0
- package/lib/presets/PresetAsyncLoader/PresetAsyncLoader.d.ts +6 -0
- package/lib/presets/PresetAvatar/PresetAvatar.d.ts +18 -0
- package/lib/presets/PresetBadge/PresetBadge.d.ts +15 -0
- package/lib/presets/PresetBreadcrumbs/PresetBreadcrumbs.d.ts +15 -0
- package/lib/presets/PresetButton/PresetButton.d.ts +27 -0
- package/lib/presets/PresetButtonGroup/PresetButtonGroup.d.ts +6 -0
- package/lib/presets/PresetCard/PresetCard.d.ts +45 -0
- package/lib/presets/PresetCheckbox/PresetCheckbox.d.ts +23 -0
- package/lib/presets/PresetCheckboxGroup/PresetCheckboxGroup.d.ts +6 -0
- package/lib/presets/PresetChip/PresetChip.d.ts +22 -0
- package/lib/presets/PresetColorPicker/PresetColorPicker.d.ts +22 -0
- package/lib/presets/PresetDatePicker/PresetDatePicker.d.ts +29 -0
- package/lib/presets/PresetDateRangePicker/PresetDateRangePicker.d.ts +37 -0
- package/lib/presets/PresetDialog/PresetDialog.d.ts +46 -0
- package/lib/presets/PresetDivider/PresetDivider.d.ts +13 -0
- package/lib/presets/PresetDropdown/PresetDropdown.d.ts +6 -0
- package/lib/presets/PresetFileUpload/PresetFileUpload.d.ts +35 -0
- package/lib/presets/PresetForm/PresetForm.d.ts +6 -0
- package/lib/presets/PresetFormField/PresetFormField.d.ts +6 -0
- package/lib/presets/PresetInput/PresetInput.d.ts +24 -0
- package/lib/presets/PresetInputGroup/PresetInputGroup.d.ts +6 -0
- package/lib/presets/PresetLabel/PresetLabel.d.ts +18 -0
- package/lib/presets/PresetLink/PresetLink.d.ts +21 -0
- package/lib/presets/PresetMaskedInput/PresetMaskedInput.d.ts +41 -0
- package/lib/presets/PresetMenu/PresetMenu.d.ts +33 -0
- package/lib/presets/PresetNumberInput/PresetNumberInput.d.ts +26 -0
- package/lib/presets/PresetPopover/PresetPopover.d.ts +17 -0
- package/lib/presets/PresetProgressBar/PresetProgressBar.d.ts +19 -0
- package/lib/presets/PresetRadio/PresetRadio.d.ts +21 -0
- package/lib/presets/PresetRadioGroup/PresetRadioGroup.d.ts +6 -0
- package/lib/presets/PresetRangeSlider/PresetRangeSlider.d.ts +30 -0
- package/lib/presets/PresetRating/PresetRating.d.ts +19 -0
- package/lib/presets/PresetSegmentedControl/PresetSegmentedControl.d.ts +28 -0
- package/lib/presets/PresetSelect/PresetSelect.d.ts +63 -0
- package/lib/presets/PresetSlider/PresetSlider.d.ts +29 -0
- package/lib/presets/PresetSplitButton/PresetSplitButton.d.ts +6 -0
- package/lib/presets/PresetSwatchRow/PresetSwatchRow.d.ts +28 -0
- package/lib/presets/PresetSwatchRow/index.d.ts +2 -0
- package/lib/presets/PresetText/PresetText.d.ts +17 -0
- package/lib/presets/PresetTextarea/PresetTextarea.d.ts +25 -0
- package/lib/presets/PresetTimePicker/PresetTimePicker.d.ts +27 -0
- package/lib/presets/PresetTitle/PresetTitle.d.ts +19 -0
- package/lib/presets/PresetToast/PresetToast.d.ts +19 -0
- package/lib/presets/PresetToggle/PresetToggle.d.ts +21 -0
- package/lib/presets/PresetTooltip/PresetTooltip.d.ts +20 -0
- package/lib/presets/PresetTransition/PresetTransition.d.ts +6 -0
- package/lib/presets/PresetValue/PresetValue.d.ts +15 -0
- package/lib/presets/createPreset.d.ts +64 -0
- package/lib/presets/index.d.ts +86 -0
- package/lib/presets/types.d.ts +13 -0
- package/lib/primitives/Accordion.d.ts +12 -102
- package/lib/primitives/AsyncLoader.d.ts +4 -39
- package/lib/primitives/Badge.d.ts +5 -40
- package/lib/primitives/Button.d.ts +4 -71
- package/lib/primitives/ButtonGroup.d.ts +4 -70
- package/lib/primitives/Card.d.ts +20 -138
- package/lib/primitives/Checkbox.d.ts +4 -68
- package/lib/primitives/CheckboxGroup.d.ts +4 -160
- package/lib/primitives/Chip.d.ts +5 -66
- package/lib/primitives/ColorPicker.d.ts +4 -80
- package/lib/primitives/DatePicker.d.ts +4 -100
- package/lib/primitives/DateRangePicker.d.ts +4 -107
- package/lib/primitives/Dropdown.d.ts +4 -63
- package/lib/primitives/FileUpload.d.ts +4 -107
- package/lib/primitives/Form.d.ts +4 -117
- package/lib/primitives/FormField.d.ts +4 -67
- package/lib/primitives/Input.d.ts +4 -87
- package/lib/primitives/InputGroup.d.ts +4 -57
- package/lib/primitives/Link.d.ts +4 -67
- package/lib/primitives/MaskedInput.d.ts +4 -93
- package/lib/primitives/Menu.d.ts +12 -131
- package/lib/primitives/NumberInput.d.ts +4 -79
- package/lib/primitives/Radio.d.ts +4 -58
- package/lib/primitives/RadioGroup.d.ts +4 -161
- package/lib/primitives/RangeSlider.d.ts +4 -103
- package/lib/primitives/Rating.d.ts +4 -113
- package/lib/primitives/SegmentedControl.d.ts +4 -94
- package/lib/primitives/Select.d.ts +5 -203
- package/lib/primitives/Slider.d.ts +4 -109
- package/lib/primitives/SplitButton.d.ts +4 -82
- package/lib/primitives/Textarea.d.ts +4 -57
- package/lib/primitives/TimePicker.d.ts +4 -91
- package/lib/primitives/Toggle.d.ts +4 -66
- package/lib/primitives/Tooltip.d.ts +6 -86
- package/lib/primitives/Transition.d.ts +4 -105
- package/lib/primitives/dashboard/MetricCard/CardBack.d.ts +17 -2
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +20 -0
- package/lib/primitives/dashboard/MetricCard/GhostPreview.d.ts +24 -0
- package/lib/primitives/dashboard/MetricCard/GutterActions.d.ts +12 -2
- package/lib/primitives/dashboard/MetricCard/MetricCard.d.ts +0 -28
- package/lib/primitives/dashboard/MetricCard/StatusModeCard.d.ts +5 -0
- package/lib/primitives/dashboard/MetricCard/StatusSlotChipMenu.d.ts +28 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/FlipAndStageProvider.d.ts +29 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/index.d.ts +15 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/types.d.ts +83 -0
- package/lib/primitives/dashboard/MetricCard/flipAndStage/useFlipAndStage.d.ts +10 -0
- package/lib/primitives/dashboard/MetricCard/index.d.ts +10 -0
- package/lib/primitives/dashboard/MetricCard/types.d.ts +48 -4
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +52 -0
- package/lib/primitives/dashboard/MetricCard/useSlotCapacity.d.ts +12 -0
- package/lib/primitives/dashboard/MetricCardGrid/MetricCardGrid.d.ts +21 -19
- package/lib/primitives/dashboard/MetricCardGrid/types.d.ts +8 -1
- package/lib/primitives/dashboard/MetricGroupContainer/MetricGroupContainer.d.ts +5 -0
- package/lib/primitives/dashboard/MetricGroupContainer/__tests__/fixtures.d.ts +13 -0
- package/lib/primitives/dashboard/MetricGroupContainer/index.d.ts +2 -0
- package/lib/primitives/dashboard/MetricGroupContainer/types.d.ts +34 -0
- package/lib/primitives/dashboard/PageChip/PageChip.d.ts +27 -0
- package/lib/primitives/dashboard/PageChip/PageDropdown.d.ts +29 -0
- package/lib/primitives/dashboard/PageChip/index.d.ts +3 -0
- package/lib/primitives/dashboard/PageChip/types.d.ts +36 -0
- package/lib/primitives/dashboard/TimeFrame/SimpleSelector.d.ts +9 -0
- package/lib/primitives/dashboard/TimeFrame/index.d.ts +2 -0
- package/lib/primitives/dashboard/TimeFrame/types.d.ts +8 -0
- package/lib/primitives/dashboard/UnifiedContextMenu/types.d.ts +2 -0
- package/lib/primitives/dashboard/index.d.ts +2 -0
- package/lib/wrappers/Actionable/Actionable.d.ts +17 -0
- package/lib/wrappers/AsyncLoader/AsyncLoader.d.ts +13 -0
- package/lib/wrappers/ButtonGroup/ButtonGroup.d.ts +23 -0
- package/lib/wrappers/CheckboxGroup/CheckboxGroup.d.ts +52 -0
- package/lib/wrappers/Dismissible/Dismissible.d.ts +24 -0
- package/lib/wrappers/Expandable/Expandable.d.ts +23 -0
- package/lib/wrappers/InputGroup/InputGroup.d.ts +20 -0
- package/lib/wrappers/RadioGroup/RadioGroup.d.ts +52 -0
- package/lib/wrappers/Selectable/Selectable.d.ts +19 -0
- package/lib/wrappers/Sortable/Sortable.d.ts +27 -0
- package/lib/wrappers/SortableZones/SortableZones.d.ts +32 -0
- package/lib/wrappers/SortableZones/index.d.ts +4 -0
- package/lib/wrappers/SortableZones/useSortableZones.d.ts +66 -0
- package/lib/wrappers/Transition/Transition.d.ts +49 -0
- package/lib/wrappers/index.d.ts +25 -0
- package/lib/wrappers/utils.d.ts +10 -0
- package/package.json +36 -5
- package/ui.css +1 -0
- package/index.css +0 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { f as b, b as y, aj as p, h as B } from "./UIContext-CEp38xw-.js";
|
|
3
|
+
import u, { useEffect as x } from "react";
|
|
4
|
+
const F = {
|
|
5
|
+
// Font families (CSS vars)
|
|
6
|
+
FontDisplay: "var(--gloss-font-display)",
|
|
7
|
+
FontBody: "var(--gloss-font-body)",
|
|
8
|
+
FontMono: "var(--gloss-font-mono)",
|
|
9
|
+
// Font sizes (CSS vars)
|
|
10
|
+
TextXs: "var(--gloss-text-xs)",
|
|
11
|
+
TextSm: "var(--gloss-text-sm)",
|
|
12
|
+
TextBase: "var(--gloss-text-base)",
|
|
13
|
+
TextLg: "var(--gloss-text-lg)",
|
|
14
|
+
TextXl: "var(--gloss-text-xl)",
|
|
15
|
+
Text2xl: "var(--gloss-text-2xl)",
|
|
16
|
+
Text3xl: "var(--gloss-text-3xl)",
|
|
17
|
+
Text4xl: "var(--gloss-text-4xl)",
|
|
18
|
+
// Line heights (raw values — no SCSS token)
|
|
19
|
+
LeadingTight: "1.25",
|
|
20
|
+
LeadingNormal: "1.5",
|
|
21
|
+
LeadingRelaxed: "1.75",
|
|
22
|
+
// Font weights (raw values — no SCSS token)
|
|
23
|
+
WeightNormal: "400",
|
|
24
|
+
WeightMedium: "500",
|
|
25
|
+
WeightSemibold: "600",
|
|
26
|
+
WeightBold: "700"
|
|
27
|
+
}, f = {
|
|
28
|
+
1: "h1",
|
|
29
|
+
2: "h2",
|
|
30
|
+
3: "h3",
|
|
31
|
+
4: "h4",
|
|
32
|
+
5: "h5",
|
|
33
|
+
6: "h6"
|
|
34
|
+
}, N = function(t) {
|
|
35
|
+
const { as: a, level: s = 2, className: l, ...r } = t, i = a || f[s];
|
|
36
|
+
return /* @__PURE__ */ o(
|
|
37
|
+
b,
|
|
38
|
+
{
|
|
39
|
+
as: i,
|
|
40
|
+
className: l ? `gloss-base-title ${l}` : "gloss-base-title",
|
|
41
|
+
...r
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
N.displayName = "BaseTitle";
|
|
46
|
+
const v = function(t) {
|
|
47
|
+
const { as: a, htmlFor: s, className: l, ...r } = t;
|
|
48
|
+
return /* @__PURE__ */ o(
|
|
49
|
+
b,
|
|
50
|
+
{
|
|
51
|
+
as: a || "label",
|
|
52
|
+
htmlFor: s,
|
|
53
|
+
className: l ? `gloss-base-label ${l}` : "gloss-base-label",
|
|
54
|
+
...r
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
v.displayName = "BaseLabel";
|
|
59
|
+
const _ = function(t) {
|
|
60
|
+
const { as: a, className: s, ...l } = t;
|
|
61
|
+
return /* @__PURE__ */ o(
|
|
62
|
+
b,
|
|
63
|
+
{
|
|
64
|
+
as: a || "span",
|
|
65
|
+
"data-role": "value",
|
|
66
|
+
className: s ? `gloss-base-value ${s}` : "gloss-base-value",
|
|
67
|
+
...l
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
_.displayName = "BaseValue";
|
|
72
|
+
function T({
|
|
73
|
+
definition: e,
|
|
74
|
+
open: t,
|
|
75
|
+
onDismiss: a,
|
|
76
|
+
className: s,
|
|
77
|
+
style: l,
|
|
78
|
+
children: r
|
|
79
|
+
}) {
|
|
80
|
+
const i = e?.position ?? "top-right", n = e?.duration ?? 0;
|
|
81
|
+
x(() => {
|
|
82
|
+
if (!t || n <= 0 || !a) return;
|
|
83
|
+
const h = setTimeout(() => {
|
|
84
|
+
a();
|
|
85
|
+
}, n);
|
|
86
|
+
return () => clearTimeout(h);
|
|
87
|
+
}, [t, n, a]);
|
|
88
|
+
const c = {
|
|
89
|
+
portal: !0,
|
|
90
|
+
dismissOnClickOutside: !1,
|
|
91
|
+
dismissOnEscape: !0,
|
|
92
|
+
bg: e?.bg,
|
|
93
|
+
shadow: e?.shadow,
|
|
94
|
+
radius: e?.radius,
|
|
95
|
+
padding: e?.padding,
|
|
96
|
+
zIndex: e?.zIndex
|
|
97
|
+
}, g = ["gloss-base-toast", `gloss-base-toast--${i}`];
|
|
98
|
+
return s && g.push(s), /* @__PURE__ */ o(
|
|
99
|
+
y,
|
|
100
|
+
{
|
|
101
|
+
definition: c,
|
|
102
|
+
open: t,
|
|
103
|
+
onDismiss: a,
|
|
104
|
+
children: /* @__PURE__ */ o(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
className: g.join(" "),
|
|
108
|
+
style: l,
|
|
109
|
+
role: "status",
|
|
110
|
+
"aria-live": "polite",
|
|
111
|
+
children: r
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
T.displayName = "BaseToast";
|
|
118
|
+
const L = {
|
|
119
|
+
bg: "--_bg",
|
|
120
|
+
borderColor: "--_border-color",
|
|
121
|
+
color: "--_color",
|
|
122
|
+
padding: "--_padding",
|
|
123
|
+
radius: "--_radius",
|
|
124
|
+
iconColor: "--_icon-color"
|
|
125
|
+
};
|
|
126
|
+
function A(e) {
|
|
127
|
+
const { definition: t, className: a, style: s, role: l, children: r, ...i } = e, { style: n, dataAttrs: c } = p(t, L);
|
|
128
|
+
return /* @__PURE__ */ o(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
role: l || "alert",
|
|
132
|
+
className: a ? `gloss-base-alert ${a}` : "gloss-base-alert",
|
|
133
|
+
style: { ...n, ...s },
|
|
134
|
+
...c,
|
|
135
|
+
...i,
|
|
136
|
+
children: r
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
A.displayName = "BaseAlert";
|
|
141
|
+
const S = {
|
|
142
|
+
gap: "--_gap",
|
|
143
|
+
color: "--_color",
|
|
144
|
+
fontSize: "--_font-size"
|
|
145
|
+
};
|
|
146
|
+
function C(e) {
|
|
147
|
+
const { definition: t, separator: a = "/", className: s, style: l, children: r } = e, { style: i } = p(
|
|
148
|
+
t,
|
|
149
|
+
S
|
|
150
|
+
), n = u.Children.toArray(r);
|
|
151
|
+
return /* @__PURE__ */ o(
|
|
152
|
+
"nav",
|
|
153
|
+
{
|
|
154
|
+
"aria-label": "Breadcrumb",
|
|
155
|
+
className: s ? `gloss-base-breadcrumbs-nav ${s}` : "gloss-base-breadcrumbs-nav",
|
|
156
|
+
style: { ...i, ...l },
|
|
157
|
+
children: /* @__PURE__ */ o("ol", { className: "gloss-base-breadcrumbs", children: n.map((c, d) => {
|
|
158
|
+
const g = d === n.length - 1;
|
|
159
|
+
return /* @__PURE__ */ m(u.Fragment, { children: [
|
|
160
|
+
/* @__PURE__ */ o(
|
|
161
|
+
"li",
|
|
162
|
+
{
|
|
163
|
+
className: "gloss-base-breadcrumbs__item",
|
|
164
|
+
...g ? { "aria-current": "page" } : {},
|
|
165
|
+
children: c
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
!g && /* @__PURE__ */ o("li", { className: "gloss-base-breadcrumbs__separator", "aria-hidden": "true", children: a })
|
|
169
|
+
] }, d);
|
|
170
|
+
}) })
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
C.displayName = "BaseBreadcrumbs";
|
|
175
|
+
function E(e) {
|
|
176
|
+
const {
|
|
177
|
+
as: t,
|
|
178
|
+
definition: a,
|
|
179
|
+
loading: s = !1,
|
|
180
|
+
disabled: l = !1,
|
|
181
|
+
className: r,
|
|
182
|
+
style: i,
|
|
183
|
+
children: n,
|
|
184
|
+
...c
|
|
185
|
+
} = e, d = [
|
|
186
|
+
"gloss-base-async-button",
|
|
187
|
+
r
|
|
188
|
+
].filter(Boolean).join(" ");
|
|
189
|
+
return /* @__PURE__ */ m(
|
|
190
|
+
B,
|
|
191
|
+
{
|
|
192
|
+
as: t,
|
|
193
|
+
definition: a,
|
|
194
|
+
disabled: l || s,
|
|
195
|
+
loading: s,
|
|
196
|
+
className: d,
|
|
197
|
+
style: i,
|
|
198
|
+
...c,
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ o(
|
|
201
|
+
"span",
|
|
202
|
+
{
|
|
203
|
+
className: "gloss-base-async-button__content",
|
|
204
|
+
...s ? { "data-hidden": "" } : {},
|
|
205
|
+
children: n
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
s && /* @__PURE__ */ o("span", { className: "gloss-base-async-button__spinner" })
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
E.displayName = "BaseAsyncButton";
|
|
214
|
+
export {
|
|
215
|
+
N as B,
|
|
216
|
+
F as T,
|
|
217
|
+
v as a,
|
|
218
|
+
_ as b,
|
|
219
|
+
T as c,
|
|
220
|
+
A as d,
|
|
221
|
+
C as e,
|
|
222
|
+
E as f
|
|
223
|
+
};
|