@zyncat/ui 0.8.0
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/LICENSE +21 -0
- package/README.md +133 -0
- package/dist/alert.css +132 -0
- package/dist/alert.d.ts +46 -0
- package/dist/alert.js +80 -0
- package/dist/alert.js.map +1 -0
- package/dist/avatar-group.d.ts +24 -0
- package/dist/avatar-group.js +23 -0
- package/dist/avatar-group.js.map +1 -0
- package/dist/avatar.css +200 -0
- package/dist/avatar.d.ts +35 -0
- package/dist/avatar.js +67 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.css +182 -0
- package/dist/badge.d.ts +34 -0
- package/dist/badge.js +4 -0
- package/dist/badge.js.map +1 -0
- package/dist/button.css +269 -0
- package/dist/button.d.ts +44 -0
- package/dist/button.js +4 -0
- package/dist/button.js.map +1 -0
- package/dist/checkbox.css +177 -0
- package/dist/checkbox.d.ts +35 -0
- package/dist/checkbox.js +5 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chunk-2ERBBFZS.js +12 -0
- package/dist/chunk-2ERBBFZS.js.map +1 -0
- package/dist/chunk-2HORSLXJ.js +191 -0
- package/dist/chunk-2HORSLXJ.js.map +1 -0
- package/dist/chunk-36WVAQKL.js +40 -0
- package/dist/chunk-36WVAQKL.js.map +1 -0
- package/dist/chunk-3SBCBYB7.js +575 -0
- package/dist/chunk-3SBCBYB7.js.map +1 -0
- package/dist/chunk-4R2GQO43.js +125 -0
- package/dist/chunk-4R2GQO43.js.map +1 -0
- package/dist/chunk-64UU4LGU.js +258 -0
- package/dist/chunk-64UU4LGU.js.map +1 -0
- package/dist/chunk-7SZCJ7WI.js +35 -0
- package/dist/chunk-7SZCJ7WI.js.map +1 -0
- package/dist/chunk-BIDVNLJO.js +38 -0
- package/dist/chunk-BIDVNLJO.js.map +1 -0
- package/dist/chunk-CONSWNIV.js +17 -0
- package/dist/chunk-CONSWNIV.js.map +1 -0
- package/dist/chunk-EQ32F2QJ.js +75 -0
- package/dist/chunk-EQ32F2QJ.js.map +1 -0
- package/dist/chunk-GY7JOPUQ.js +111 -0
- package/dist/chunk-GY7JOPUQ.js.map +1 -0
- package/dist/chunk-I4XQ4PV2.js +30 -0
- package/dist/chunk-I4XQ4PV2.js.map +1 -0
- package/dist/chunk-JSKXZMLH.js +67 -0
- package/dist/chunk-JSKXZMLH.js.map +1 -0
- package/dist/chunk-L3Q3VDIW.js +295 -0
- package/dist/chunk-L3Q3VDIW.js.map +1 -0
- package/dist/chunk-LDC3RIYA.js +62 -0
- package/dist/chunk-LDC3RIYA.js.map +1 -0
- package/dist/chunk-MKIQFK7S.js +43 -0
- package/dist/chunk-MKIQFK7S.js.map +1 -0
- package/dist/chunk-MMRIQNEN.js +20 -0
- package/dist/chunk-MMRIQNEN.js.map +1 -0
- package/dist/chunk-MXOPCFWR.js +59 -0
- package/dist/chunk-MXOPCFWR.js.map +1 -0
- package/dist/chunk-NEF5XAHG.js +17 -0
- package/dist/chunk-NEF5XAHG.js.map +1 -0
- package/dist/chunk-NNXJCLTV.js +22 -0
- package/dist/chunk-NNXJCLTV.js.map +1 -0
- package/dist/chunk-O4N2OBTR.js +94 -0
- package/dist/chunk-O4N2OBTR.js.map +1 -0
- package/dist/chunk-PMECHR3A.js +38 -0
- package/dist/chunk-PMECHR3A.js.map +1 -0
- package/dist/chunk-QDK66S4G.js +44 -0
- package/dist/chunk-QDK66S4G.js.map +1 -0
- package/dist/chunk-QGNC7LH5.js +8 -0
- package/dist/chunk-QGNC7LH5.js.map +1 -0
- package/dist/chunk-QMSJZCK3.js +398 -0
- package/dist/chunk-QMSJZCK3.js.map +1 -0
- package/dist/chunk-S5ZTZANS.js +57 -0
- package/dist/chunk-S5ZTZANS.js.map +1 -0
- package/dist/chunk-S7B34VGN.js +14 -0
- package/dist/chunk-S7B34VGN.js.map +1 -0
- package/dist/chunk-TCUCYFT7.js +25 -0
- package/dist/chunk-TCUCYFT7.js.map +1 -0
- package/dist/chunk-TYHR4VNM.js +193 -0
- package/dist/chunk-TYHR4VNM.js.map +1 -0
- package/dist/chunk-U5QQZC3U.js +56 -0
- package/dist/chunk-U5QQZC3U.js.map +1 -0
- package/dist/chunk-UE63OOVG.js +13 -0
- package/dist/chunk-UE63OOVG.js.map +1 -0
- package/dist/chunk-VTJTGVZZ.js +22 -0
- package/dist/chunk-VTJTGVZZ.js.map +1 -0
- package/dist/chunk-W3SHPKSB.js +49 -0
- package/dist/chunk-W3SHPKSB.js.map +1 -0
- package/dist/chunk-XZAEIQDR.js +188 -0
- package/dist/chunk-XZAEIQDR.js.map +1 -0
- package/dist/chunk-YGGCQNNU.js +92 -0
- package/dist/chunk-YGGCQNNU.js.map +1 -0
- package/dist/collapse.css +88 -0
- package/dist/collapse.d.ts +46 -0
- package/dist/collapse.js +5 -0
- package/dist/collapse.js.map +1 -0
- package/dist/count-badge.d.ts +13 -0
- package/dist/count-badge.js +13 -0
- package/dist/count-badge.js.map +1 -0
- package/dist/date-field.d.ts +25 -0
- package/dist/date-field.js +87 -0
- package/dist/date-field.js.map +1 -0
- package/dist/date-picker.css +595 -0
- package/dist/date-range-field.d.ts +33 -0
- package/dist/date-range-field.js +404 -0
- package/dist/date-range-field.js.map +1 -0
- package/dist/datetime-field.d.ts +29 -0
- package/dist/datetime-field.js +155 -0
- package/dist/datetime-field.js.map +1 -0
- package/dist/dialog.css +180 -0
- package/dist/dialog.d.ts +42 -0
- package/dist/dialog.js +128 -0
- package/dist/dialog.js.map +1 -0
- package/dist/dom-props-C0jrllBw.d.ts +5 -0
- package/dist/field-chrome-CMPOQSLs.d.ts +28 -0
- package/dist/field-shell-Cuda-feL.d.ts +24 -0
- package/dist/glide.d.ts +15 -0
- package/dist/glide.js +5 -0
- package/dist/glide.js.map +1 -0
- package/dist/icon.css +33 -0
- package/dist/input.css +333 -0
- package/dist/mcp.js +359 -0
- package/dist/motion-devtools.css +265 -0
- package/dist/motion-devtools.d.ts +51 -0
- package/dist/motion-devtools.js +354 -0
- package/dist/motion-devtools.js.map +1 -0
- package/dist/motion-scale-Canq4stZ.d.ts +18 -0
- package/dist/motion-tokens.d.ts +28 -0
- package/dist/motion-tokens.js +3 -0
- package/dist/motion-tokens.js.map +1 -0
- package/dist/multi-select.d.ts +44 -0
- package/dist/multi-select.js +109 -0
- package/dist/multi-select.js.map +1 -0
- package/dist/number-field.d.ts +36 -0
- package/dist/number-field.js +112 -0
- package/dist/number-field.js.map +1 -0
- package/dist/odometer.css +62 -0
- package/dist/otp-field.d.ts +31 -0
- package/dist/otp-field.js +98 -0
- package/dist/otp-field.js.map +1 -0
- package/dist/overlay.css +23 -0
- package/dist/pagination.css +43 -0
- package/dist/pagination.d.ts +29 -0
- package/dist/pagination.js +107 -0
- package/dist/pagination.js.map +1 -0
- package/dist/popover.css +69 -0
- package/dist/popover.d.ts +35 -0
- package/dist/popover.js +15 -0
- package/dist/popover.js.map +1 -0
- package/dist/radio-group.css +300 -0
- package/dist/radio-group.d.ts +52 -0
- package/dist/radio-group.js +115 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/select.css +416 -0
- package/dist/select.d.ts +49 -0
- package/dist/select.js +99 -0
- package/dist/select.js.map +1 -0
- package/dist/sheet.css +26 -0
- package/dist/sheet.d.ts +31 -0
- package/dist/sheet.js +14 -0
- package/dist/sheet.js.map +1 -0
- package/dist/status-badge.d.ts +19 -0
- package/dist/status-badge.js +72 -0
- package/dist/status-badge.js.map +1 -0
- package/dist/table.css +348 -0
- package/dist/table.d.ts +75 -0
- package/dist/table.js +262 -0
- package/dist/table.js.map +1 -0
- package/dist/tabs.css +208 -0
- package/dist/tabs.d.ts +71 -0
- package/dist/tabs.js +181 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.css +248 -0
- package/dist/tag.d.ts +52 -0
- package/dist/tag.js +72 -0
- package/dist/tag.js.map +1 -0
- package/dist/text-field.d.ts +28 -0
- package/dist/text-field.js +69 -0
- package/dist/text-field.js.map +1 -0
- package/dist/textarea.css +219 -0
- package/dist/textarea.d.ts +38 -0
- package/dist/textarea.js +144 -0
- package/dist/textarea.js.map +1 -0
- package/dist/time-field.d.ts +28 -0
- package/dist/time-field.js +66 -0
- package/dist/time-field.js.map +1 -0
- package/dist/timing-7JA_zQHP.d.ts +27 -0
- package/dist/toast-store.d.ts +86 -0
- package/dist/toast-store.js +3 -0
- package/dist/toast-store.js.map +1 -0
- package/dist/toast.css +257 -0
- package/dist/toast.d.ts +12 -0
- package/dist/toast.js +310 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle-tag.d.ts +34 -0
- package/dist/toggle-tag.js +57 -0
- package/dist/toggle-tag.js.map +1 -0
- package/dist/toggle.css +152 -0
- package/dist/toggle.d.ts +31 -0
- package/dist/toggle.js +75 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tooltip.css +86 -0
- package/dist/tooltip.d.ts +30 -0
- package/dist/tooltip.js +268 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/types-SGMShK7R.d.ts +22 -0
- package/llms.txt +196 -0
- package/next.d.mts +7 -0
- package/next.mjs +59 -0
- package/package.json +257 -0
- package/src/components/composites/alert/Alert.tsx +141 -0
- package/src/components/composites/alert/alert.css +132 -0
- package/src/components/composites/date-picker/DateField.tsx +80 -0
- package/src/components/composites/date-picker/DateRangeField.tsx +110 -0
- package/src/components/composites/date-picker/DateTimeField.tsx +162 -0
- package/src/components/composites/date-picker/TimeField.tsx +78 -0
- package/src/components/composites/date-picker/calendar-panel.tsx +216 -0
- package/src/components/composites/date-picker/date-picker.css +595 -0
- package/src/components/composites/date-picker/date-utils.ts +56 -0
- package/src/components/composites/date-picker/field-shell.tsx +85 -0
- package/src/components/composites/date-picker/range-panel.tsx +363 -0
- package/src/components/composites/date-picker/time-core.tsx +290 -0
- package/src/components/composites/date-picker/use-day-focus.ts +35 -0
- package/src/components/composites/dialog/Dialog.tsx +198 -0
- package/src/components/composites/dialog/dialog.css +180 -0
- package/src/components/composites/pagination/Pagination.tsx +131 -0
- package/src/components/composites/pagination/pagination.css +43 -0
- package/src/components/composites/popover/Popover.tsx +141 -0
- package/src/components/composites/popover/popover.css +69 -0
- package/src/components/composites/select/MultiSelect.tsx +133 -0
- package/src/components/composites/select/Select.tsx +122 -0
- package/src/components/composites/select/core/index.ts +4 -0
- package/src/components/composites/select/core/menu.tsx +100 -0
- package/src/components/composites/select/core/panel.tsx +154 -0
- package/src/components/composites/select/core/trigger.tsx +74 -0
- package/src/components/composites/select/core/types.ts +39 -0
- package/src/components/composites/select/core/use-listbox.ts +182 -0
- package/src/components/composites/select/select.css +416 -0
- package/src/components/composites/sheet/Sheet.tsx +135 -0
- package/src/components/composites/sheet/sheet.css +26 -0
- package/src/components/composites/sheet/use-sheet-drag.ts +126 -0
- package/src/components/composites/table/Table.tsx +377 -0
- package/src/components/composites/table/table.css +348 -0
- package/src/components/composites/tabs/Tabs.tsx +278 -0
- package/src/components/composites/tabs/tabs.css +208 -0
- package/src/components/composites/toast/Toast.tsx +380 -0
- package/src/components/composites/toast/toast-store.ts +295 -0
- package/src/components/composites/toast/toast.css +257 -0
- package/src/components/composites/tooltip/Tooltip.tsx +110 -0
- package/src/components/composites/tooltip/tooltip-host.tsx +184 -0
- package/src/components/composites/tooltip/tooltip-store.ts +81 -0
- package/src/components/composites/tooltip/tooltip.css +86 -0
- package/src/components/dev/MotionDevtools.tsx +200 -0
- package/src/components/dev/motion-devtools.css +265 -0
- package/src/components/dev/slowmo-engine.ts +230 -0
- package/src/components/internal/glass/glass.css +100 -0
- package/src/components/internal/glass/glint.ts +9 -0
- package/src/components/internal/hooks/use-controllable.ts +21 -0
- package/src/components/internal/hooks/use-scroll-edges.ts +46 -0
- package/src/components/internal/icon/Icon.tsx +66 -0
- package/src/components/internal/icon/IconSlot.tsx +10 -0
- package/src/components/internal/icon/icon.css +33 -0
- package/src/components/internal/overlay/focus.ts +68 -0
- package/src/components/internal/overlay/layer.tsx +149 -0
- package/src/components/internal/overlay/modal.tsx +141 -0
- package/src/components/internal/overlay/overlay.css +23 -0
- package/src/components/internal/overlay/position.ts +103 -0
- package/src/components/internal/utils/cx.ts +3 -0
- package/src/components/internal/utils/token-px.ts +8 -0
- package/src/components/primitives/avatar/Avatar.tsx +120 -0
- package/src/components/primitives/avatar/AvatarGroup.tsx +56 -0
- package/src/components/primitives/avatar/avatar.css +200 -0
- package/src/components/primitives/badge/Badge.tsx +75 -0
- package/src/components/primitives/badge/CountBadge.tsx +20 -0
- package/src/components/primitives/badge/StatusBadge.tsx +111 -0
- package/src/components/primitives/badge/badge.css +182 -0
- package/src/components/primitives/badge/odometer.css +62 -0
- package/src/components/primitives/badge/odometer.tsx +36 -0
- package/src/components/primitives/button/Button.tsx +102 -0
- package/src/components/primitives/button/button.css +269 -0
- package/src/components/primitives/checkbox/Checkbox.tsx +76 -0
- package/src/components/primitives/checkbox/check-glyph.tsx +28 -0
- package/src/components/primitives/checkbox/checkbox.css +177 -0
- package/src/components/primitives/collapse/Collapse.tsx +86 -0
- package/src/components/primitives/collapse/collapse.css +88 -0
- package/src/components/primitives/collapse/collapse.typecheck.tsx +29 -0
- package/src/components/primitives/input/NumberField.tsx +139 -0
- package/src/components/primitives/input/OtpField.tsx +134 -0
- package/src/components/primitives/input/TextField.tsx +110 -0
- package/src/components/primitives/input/field-chrome.tsx +83 -0
- package/src/components/primitives/input/input.css +333 -0
- package/src/components/primitives/radio-group/RadioGroup.tsx +183 -0
- package/src/components/primitives/radio-group/radio-group.css +300 -0
- package/src/components/primitives/tag/Tag.tsx +143 -0
- package/src/components/primitives/tag/ToggleTag.tsx +97 -0
- package/src/components/primitives/tag/tag.css +248 -0
- package/src/components/primitives/textarea/Textarea.tsx +190 -0
- package/src/components/primitives/textarea/textarea.css +219 -0
- package/src/components/primitives/toggle/Toggle.tsx +105 -0
- package/src/components/primitives/toggle/toggle.css +152 -0
- package/src/css.d.ts +1 -0
- package/src/dom-props.ts +1 -0
- package/src/engine/animate.ts +141 -0
- package/src/engine/drag.ts +53 -0
- package/src/engine/ease.ts +155 -0
- package/src/engine/flip.ts +59 -0
- package/src/engine/index.ts +13 -0
- package/src/mcp/server.ts +420 -0
- package/src/motion/element.tsx +53 -0
- package/src/motion/flip.tsx +87 -0
- package/src/motion/glide.tsx +47 -0
- package/src/motion/motion-timing.ts +33 -0
- package/src/motion/presence-context.ts +18 -0
- package/src/motion/presence.tsx +91 -0
- package/src/motion/timing.ts +49 -0
- package/src/motion/use-motion.ts +64 -0
- package/src/styles.css +26 -0
- package/src/tokens/avatar.css +20 -0
- package/src/tokens/color.css +58 -0
- package/src/tokens/elevation.css +22 -0
- package/src/tokens/fonts.css +3 -0
- package/src/tokens/glass.css +20 -0
- package/src/tokens/icons.css +7 -0
- package/src/tokens/layers.css +6 -0
- package/src/tokens/motion-scale.ts +17 -0
- package/src/tokens/motion-tokens.ts +92 -0
- package/src/tokens/motion.css +49 -0
- package/src/tokens/radius.css +11 -0
- package/src/tokens/semantic.css +65 -0
- package/src/tokens/spacing.css +26 -0
- package/src/tokens/typography.css +52 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use client';import { useAnchorPosition } from './chunk-EQ32F2QJ.js';
|
|
2
|
+
import { useReturnFocus } from './chunk-LDC3RIYA.js';
|
|
3
|
+
import { ovCloneTrigger, OverlayPortal, useOverlayEntry, useOutsidePress } from './chunk-GY7JOPUQ.js';
|
|
4
|
+
import { resolveMotionTiming } from './chunk-NEF5XAHG.js';
|
|
5
|
+
import { Presence } from './chunk-MXOPCFWR.js';
|
|
6
|
+
import { useMotion } from './chunk-W3SHPKSB.js';
|
|
7
|
+
import { useControllable } from './chunk-MMRIQNEN.js';
|
|
8
|
+
import { cx } from './chunk-QGNC7LH5.js';
|
|
9
|
+
import './popover.css';
|
|
10
|
+
import { useRef, useId, Fragment } from 'react';
|
|
11
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
var POPOVER_TIMING = {
|
|
14
|
+
open: { duration: "base", ease: "entrance" },
|
|
15
|
+
close: { duration: "fast", ease: "exit" }
|
|
16
|
+
};
|
|
17
|
+
function PopoverPanel({
|
|
18
|
+
panelId,
|
|
19
|
+
side,
|
|
20
|
+
align,
|
|
21
|
+
arrow,
|
|
22
|
+
dismissible,
|
|
23
|
+
requestClose,
|
|
24
|
+
triggerRef,
|
|
25
|
+
htmlProps,
|
|
26
|
+
animate,
|
|
27
|
+
exit,
|
|
28
|
+
children
|
|
29
|
+
}) {
|
|
30
|
+
const panelRef = useRef(null);
|
|
31
|
+
const entry = useOverlayEntry({ nodeRef: panelRef, dismissible, requestClose });
|
|
32
|
+
useMotion(panelRef, { animate, exit });
|
|
33
|
+
useReturnFocus(panelRef);
|
|
34
|
+
useAnchorPosition({ side, align, arrow, triggerRef, panelRef });
|
|
35
|
+
useOutsidePress({ entry, refs: [triggerRef, panelRef], enabled: dismissible, onPress: requestClose });
|
|
36
|
+
return /* @__PURE__ */ jsxs(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
...htmlProps,
|
|
40
|
+
id: panelId,
|
|
41
|
+
ref: panelRef,
|
|
42
|
+
className: cx("overlay-popover", htmlProps?.className),
|
|
43
|
+
children: [
|
|
44
|
+
arrow && /* @__PURE__ */ jsx("span", { className: "overlay-popover__arrow", "aria-hidden": "true" }),
|
|
45
|
+
children
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function Popover({
|
|
51
|
+
open: controlledOpen,
|
|
52
|
+
defaultOpen = false,
|
|
53
|
+
onOpenChange,
|
|
54
|
+
trigger = null,
|
|
55
|
+
side = "bottom",
|
|
56
|
+
align = "start",
|
|
57
|
+
arrow = false,
|
|
58
|
+
dismissible = true,
|
|
59
|
+
id,
|
|
60
|
+
htmlProps,
|
|
61
|
+
animation,
|
|
62
|
+
children
|
|
63
|
+
}) {
|
|
64
|
+
const [open, setOpen] = useControllable(controlledOpen, defaultOpen, onOpenChange);
|
|
65
|
+
const triggerRef = useRef(null);
|
|
66
|
+
const autoId = useId();
|
|
67
|
+
const panelId = id || "popover-" + autoId;
|
|
68
|
+
const close = () => setOpen(false);
|
|
69
|
+
const timings = resolveMotionTiming(animation, POPOVER_TIMING);
|
|
70
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
71
|
+
ovCloneTrigger(trigger, { open, onPress: () => setOpen(!open), panelId, haspopup: "true", triggerRef }),
|
|
72
|
+
/* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(Presence, { children: open && /* @__PURE__ */ jsx(
|
|
73
|
+
PopoverPanel,
|
|
74
|
+
{
|
|
75
|
+
animate: { opacity: [0, 1], scale: [0.96, 1], timing: timings.open },
|
|
76
|
+
exit: { opacity: [0], scale: [0.96], timing: timings.close },
|
|
77
|
+
panelId,
|
|
78
|
+
side,
|
|
79
|
+
align,
|
|
80
|
+
arrow,
|
|
81
|
+
dismissible,
|
|
82
|
+
requestClose: close,
|
|
83
|
+
triggerRef,
|
|
84
|
+
htmlProps,
|
|
85
|
+
children
|
|
86
|
+
},
|
|
87
|
+
"panel"
|
|
88
|
+
) }) })
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { Popover };
|
|
93
|
+
//# sourceMappingURL=chunk-O4N2OBTR.js.map
|
|
94
|
+
//# sourceMappingURL=chunk-O4N2OBTR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/composites/popover/Popover.tsx"],"names":[],"mappings":"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","file":"chunk-O4N2OBTR.js","sourcesContent":["'use client';\n\nimport './popover.css';\nimport { Fragment, useId, useRef, type HTMLAttributes, type ReactElement, type ReactNode, type RefObject } from 'react';\nimport { Presence } from '../../../motion/presence';\nimport { useMotion, type MotionSpecs } from '../../../motion/use-motion';\nimport { resolveMotionTiming } from '../../../motion/motion-timing';\nimport type { DisableableAnimation } from '../../../motion/timing';\nimport { useControllable } from '../../internal/hooks/use-controllable';\nimport { ovCloneTrigger, useOverlayEntry, useOutsidePress, OverlayPortal } from '../../internal/overlay/layer';\nimport { useReturnFocus } from '../../internal/overlay/focus';\nimport { useAnchorPosition } from '../../internal/overlay/position';\nimport type { DataAttributes } from '../../../dom-props';\nimport { cx } from '../../internal/utils/cx';\n\nconst POPOVER_TIMING = {\n open: { duration: 'base', ease: 'entrance' },\n close: { duration: 'fast', ease: 'exit' },\n} as const;\n\nexport interface PopoverProps {\n /** Controlled open state. Omit to stay uncontrolled. */\n open?: boolean;\n /** Initial state when uncontrolled. Default false. */\n defaultOpen?: boolean;\n /** Fires whenever the open state changes. Pair with `open` for controlled use. */\n onOpenChange?: (open: boolean) => void;\n\n /** Cloned to toggle the panel; required as the anchor. */\n trigger?: ReactElement | null;\n\n /** Preferred side; flips to the opposite side when cramped. Default 'bottom'. */\n side?: 'top' | 'bottom' | 'left' | 'right';\n /** Cross-axis alignment against the trigger. Default 'start'. */\n align?: 'start' | 'center' | 'end';\n /** Caret tracking the trigger center. Default false. */\n arrow?: boolean;\n\n /** Esc + outside-press dismissal. Default true. */\n dismissible?: boolean;\n\n /** Base id for the panel; drives the trigger's `aria-controls`. Auto-generated when omitted. */\n id?: string;\n /** Standard attributes (className, style, data-*, ...) forwarded to the popover panel. */\n htmlProps?: HTMLAttributes<HTMLDivElement> & DataAttributes;\n /** Open/close timing - motion tokens only, or `null` to disable. @default open 'base'/'entrance', close 'fast'/'exit' */\n animation?: DisableableAnimation;\n /** The ENTIRE surface - paint AND semantics. Drive dismissal with `open`/`onOpenChange`. */\n children: ReactNode;\n}\n\nfunction PopoverPanel({\n panelId,\n side,\n align,\n arrow,\n dismissible,\n requestClose,\n triggerRef,\n htmlProps,\n animate,\n exit,\n children,\n}: {\n panelId: string;\n side: 'top' | 'bottom' | 'left' | 'right';\n align: 'start' | 'center' | 'end';\n arrow: boolean;\n dismissible: boolean;\n requestClose: () => void;\n triggerRef: RefObject<HTMLElement>;\n htmlProps?: HTMLAttributes<HTMLDivElement> & DataAttributes;\n children: ReactNode;\n} & MotionSpecs) {\n const panelRef = useRef<HTMLElement>(null);\n const entry = useOverlayEntry({ nodeRef: panelRef, dismissible, requestClose });\n useMotion(panelRef, { animate, exit });\n useReturnFocus(panelRef);\n useAnchorPosition({ side, align, arrow, triggerRef, panelRef });\n useOutsidePress({ entry, refs: [triggerRef, panelRef], enabled: dismissible, onPress: requestClose });\n return (\n <div\n {...htmlProps}\n id={panelId}\n ref={panelRef as RefObject<HTMLDivElement>}\n className={cx('overlay-popover', htmlProps?.className)}\n >\n {arrow && <span className=\"overlay-popover__arrow\" aria-hidden=\"true\"></span>}\n {children}\n </div>\n );\n}\n\nexport function Popover({\n open: controlledOpen,\n defaultOpen = false,\n onOpenChange,\n trigger = null,\n side = 'bottom',\n align = 'start',\n arrow = false,\n dismissible = true,\n id,\n htmlProps,\n animation,\n children,\n}: PopoverProps) {\n const [open, setOpen] = useControllable(controlledOpen, defaultOpen, onOpenChange);\n const triggerRef = useRef<HTMLElement>(null);\n const autoId = useId();\n const panelId = id || 'popover-' + autoId;\n const close = () => setOpen(false);\n const timings = resolveMotionTiming(animation, POPOVER_TIMING);\n\n return (\n <Fragment>\n {ovCloneTrigger(trigger, { open, onPress: () => setOpen(!open), panelId, haspopup: 'true', triggerRef })}\n <OverlayPortal>\n <Presence>\n {open && (\n <PopoverPanel\n key=\"panel\"\n animate={{ opacity: [0, 1], scale: [0.96, 1], timing: timings.open }}\n exit={{ opacity: [0], scale: [0.96], timing: timings.close }}\n panelId={panelId}\n side={side}\n align={align}\n arrow={arrow}\n dismissible={dismissible}\n requestClose={close}\n triggerRef={triggerRef}\n htmlProps={htmlProps}\n >\n {children}\n </PopoverPanel>\n )}\n </Presence>\n </OverlayPortal>\n </Fragment>\n );\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';import { cx } from './chunk-QGNC7LH5.js';
|
|
2
|
+
import './badge.css';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Badge({
|
|
6
|
+
tone = "neutral",
|
|
7
|
+
variant = "glass",
|
|
8
|
+
size = "md",
|
|
9
|
+
dot = false,
|
|
10
|
+
live = false,
|
|
11
|
+
pill = false,
|
|
12
|
+
icon = null,
|
|
13
|
+
className = "",
|
|
14
|
+
style,
|
|
15
|
+
children,
|
|
16
|
+
htmlProps
|
|
17
|
+
}) {
|
|
18
|
+
const isGlass = variant !== "outline";
|
|
19
|
+
const cls = cx(
|
|
20
|
+
isGlass && "glass glass--interactive",
|
|
21
|
+
"badge",
|
|
22
|
+
`badge--${tone}`,
|
|
23
|
+
variant === "outline" && "badge--outline",
|
|
24
|
+
size !== "md" && `badge--${size}`,
|
|
25
|
+
pill && "badge--pill",
|
|
26
|
+
className
|
|
27
|
+
);
|
|
28
|
+
const showDot = (dot || live) && !icon;
|
|
29
|
+
return /* @__PURE__ */ jsxs("span", { className: cls, style, ...htmlProps, children: [
|
|
30
|
+
showDot ? /* @__PURE__ */ jsx("span", { className: `badge__dot${live ? " badge__dot--live" : ""}`, "aria-hidden": "true" }) : null,
|
|
31
|
+
icon ? /* @__PURE__ */ jsx("span", { className: "badge__icon", "aria-hidden": "true", children: icon }) : null,
|
|
32
|
+
/* @__PURE__ */ jsx("span", { className: "badge__label", children })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Badge };
|
|
37
|
+
//# sourceMappingURL=chunk-PMECHR3A.js.map
|
|
38
|
+
//# sourceMappingURL=chunk-PMECHR3A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/primitives/badge/Badge.tsx"],"names":[],"mappings":";;;;AAqCO,SAAS,KAAA,CAAM;AAAA,EACpB,IAAA,GAAO,SAAA;AAAA,EACP,OAAA,GAAU,OAAA;AAAA,EACV,IAAA,GAAO,IAAA;AAAA,EACP,GAAA,GAAM,KAAA;AAAA,EACN,IAAA,GAAO,KAAA;AAAA,EACP,IAAA,GAAO,KAAA;AAAA,EACP,IAAA,GAAO,IAAA;AAAA,EACP,SAAA,GAAY,EAAA;AAAA,EACZ,KAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAA,EAAe;AACb,EAAA,MAAM,UAAU,OAAA,KAAY,SAAA;AAC5B,EAAA,MAAM,GAAA,GAAM,EAAA;AAAA,IACV,OAAA,IAAW,0BAAA;AAAA,IACX,OAAA;AAAA,IACA,UAAU,IAAI,CAAA,CAAA;AAAA,IACd,YAAY,SAAA,IAAa,gBAAA;AAAA,IACzB,IAAA,KAAS,IAAA,IAAQ,CAAA,OAAA,EAAU,IAAI,CAAA,CAAA;AAAA,IAC/B,IAAA,IAAQ,aAAA;AAAA,IACR;AAAA,GACF;AAEA,EAAA,MAAM,OAAA,GAAA,CAAW,GAAA,IAAO,IAAA,KAAS,CAAC,IAAA;AAElC,EAAA,4BACG,MAAA,EAAA,EAAK,SAAA,EAAW,GAAA,EAAK,KAAA,EAAe,GAAG,SAAA,EACrC,QAAA,EAAA;AAAA,IAAA,OAAA,mBAAU,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,CAAA,UAAA,EAAa,IAAA,GAAO,sBAAsB,EAAE,CAAA,CAAA,EAAI,aAAA,EAAY,MAAA,EAAO,CAAA,GAAK,IAAA;AAAA,IACnG,IAAA,uBACE,MAAA,EAAA,EAAK,SAAA,EAAU,eAAc,aAAA,EAAY,MAAA,EACvC,gBACH,CAAA,GACE,IAAA;AAAA,oBACJ,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,cAAA,EAAgB,QAAA,EAAS;AAAA,GAAA,EAC3C,CAAA;AAEJ","file":"chunk-PMECHR3A.js","sourcesContent":["'use client';\n\nimport './badge.css';\nimport type { CSSProperties, HTMLAttributes, ReactNode } from 'react';\nimport type { DataAttributes } from '../../../dom-props';\nimport { cx } from '../../internal/utils/cx';\n\nexport type BadgeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';\n\ninterface BadgeOwnProps {\n /** Status hue. @default 'neutral' */\n tone?: BadgeTone;\n /** Surface. @default 'glass' */\n variant?: 'glass' | 'outline';\n /** @default 'md' */\n size?: 'sm' | 'md';\n /** Leading status dot. */\n dot?: boolean;\n /** Dot pulses (implies dot) - for in-progress status. */\n live?: boolean;\n /** Fully-rounded shape. */\n pill?: boolean;\n /** Optional leading <Icon> (overrides dot if both set). */\n icon?: ReactNode;\n /** Extra class(es) merged onto the chip. */\n className?: string;\n /** Inline styles merged onto the chip. */\n style?: CSSProperties;\n /** Chip label. */\n children?: ReactNode;\n}\n\nexport interface BadgeProps extends BadgeOwnProps {\n /** Standard <span> attributes (aria-*, data-*, title, ...) forwarded to the chip. */\n htmlProps?: Omit<HTMLAttributes<HTMLSpanElement>, keyof BadgeOwnProps> & DataAttributes;\n}\n\nexport function Badge({\n tone = 'neutral',\n variant = 'glass',\n size = 'md',\n dot = false,\n live = false,\n pill = false,\n icon = null,\n className = '',\n style,\n children,\n htmlProps,\n}: BadgeProps) {\n const isGlass = variant !== 'outline';\n const cls = cx(\n isGlass && 'glass glass--interactive',\n 'badge',\n `badge--${tone}`,\n variant === 'outline' && 'badge--outline',\n size !== 'md' && `badge--${size}`,\n pill && 'badge--pill',\n className,\n );\n\n const showDot = (dot || live) && !icon;\n\n return (\n <span className={cls} style={style} {...htmlProps}>\n {showDot ? <span className={`badge__dot${live ? ' badge__dot--live' : ''}`} aria-hidden=\"true\" /> : null}\n {icon ? (\n <span className=\"badge__icon\" aria-hidden=\"true\">\n {icon}\n </span>\n ) : null}\n <span className=\"badge__label\">{children}</span>\n </span>\n );\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';import { CheckGlyph } from './chunk-NNXJCLTV.js';
|
|
2
|
+
import { cx } from './chunk-QGNC7LH5.js';
|
|
3
|
+
import './checkbox.css';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function Checkbox({
|
|
7
|
+
checked,
|
|
8
|
+
defaultChecked,
|
|
9
|
+
indeterminate = false,
|
|
10
|
+
error = false,
|
|
11
|
+
disabled = false,
|
|
12
|
+
size = "md",
|
|
13
|
+
label,
|
|
14
|
+
description,
|
|
15
|
+
className = "",
|
|
16
|
+
style,
|
|
17
|
+
onChange,
|
|
18
|
+
htmlProps
|
|
19
|
+
}) {
|
|
20
|
+
const cls = cx("cbx", size === "sm" && "cbx--sm", error && "cbx--error", disabled && "cbx--disabled", className);
|
|
21
|
+
const controlled = checked !== void 0;
|
|
22
|
+
const checkedProps = controlled ? { checked } : { defaultChecked };
|
|
23
|
+
return /* @__PURE__ */ jsxs("label", { className: cls, style, children: [
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
CheckGlyph,
|
|
26
|
+
{
|
|
27
|
+
indeterminate,
|
|
28
|
+
disabled,
|
|
29
|
+
"aria-invalid": error || void 0,
|
|
30
|
+
onChange,
|
|
31
|
+
...checkedProps,
|
|
32
|
+
...htmlProps
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
label || description ? /* @__PURE__ */ jsxs("span", { className: "cbx__text", children: [
|
|
36
|
+
label ? /* @__PURE__ */ jsx("span", { className: "cbx__label", children: label }) : null,
|
|
37
|
+
description ? /* @__PURE__ */ jsx("span", { className: "cbx__desc", children: description }) : null
|
|
38
|
+
] }) : null
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { Checkbox };
|
|
43
|
+
//# sourceMappingURL=chunk-QDK66S4G.js.map
|
|
44
|
+
//# sourceMappingURL=chunk-QDK66S4G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/primitives/checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;AAsCO,SAAS,QAAA,CAAS;AAAA,EACvB,OAAA;AAAA,EACA,cAAA;AAAA,EACA,aAAA,GAAgB,KAAA;AAAA,EAChB,KAAA,GAAQ,KAAA;AAAA,EACR,QAAA,GAAW,KAAA;AAAA,EACX,IAAA,GAAO,IAAA;AAAA,EACP,KAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,KAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAA,EAAkB;AAChB,EAAA,MAAM,GAAA,GAAM,EAAA,CAAG,KAAA,EAAO,IAAA,KAAS,IAAA,IAAQ,WAAW,KAAA,IAAS,YAAA,EAAc,QAAA,IAAY,eAAA,EAAiB,SAAS,CAAA;AAE/G,EAAA,MAAM,aAAa,OAAA,KAAY,MAAA;AAC/B,EAAA,MAAM,eAAe,UAAA,GAAa,EAAE,OAAA,EAAQ,GAAI,EAAE,cAAA,EAAe;AAEjE,EAAA,uBACE,IAAA,CAAC,OAAA,EAAA,EAAM,SAAA,EAAW,GAAA,EAAK,KAAA,EACrB,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,aAAA;AAAA,QACA,QAAA;AAAA,QACA,gBAAc,KAAA,IAAS,MAAA;AAAA,QACvB,QAAA;AAAA,QACC,GAAG,YAAA;AAAA,QACH,GAAG;AAAA;AAAA,KACN;AAAA,IACC,KAAA,IAAS,WAAA,mBACR,IAAA,CAAC,MAAA,EAAA,EAAK,WAAU,WAAA,EACb,QAAA,EAAA;AAAA,MAAA,KAAA,mBAAQ,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,YAAA,EAAc,iBAAM,CAAA,GAAU,IAAA;AAAA,MACtD,8BAAc,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,WAAA,EAAa,uBAAY,CAAA,GAAU;AAAA,KAAA,EACpE,CAAA,GACE;AAAA,GAAA,EACN,CAAA;AAEJ","file":"chunk-QDK66S4G.js","sourcesContent":["'use client';\n\nimport './checkbox.css';\nimport type { ChangeEventHandler, CSSProperties, InputHTMLAttributes, ReactNode } from 'react';\nimport { CheckGlyph } from './check-glyph';\nimport type { DataAttributes } from '../../../dom-props';\nimport { cx } from '../../internal/utils/cx';\n\ninterface CheckboxOwnProps {\n /** Controlled checked state. Omit for uncontrolled (use `defaultChecked`). */\n checked?: boolean;\n /** Uncontrolled initial state. */\n defaultChecked?: boolean;\n /** Indeterminate - the \"some, not all\" select-all state; visually wins over `checked`. @default false */\n indeterminate?: boolean;\n /** Single error state for consent gates (\"you must agree\"); also sets `aria-invalid`. @default false */\n error?: boolean;\n /** Disabled - inert and de-emphasized (distinct fill when checked). */\n disabled?: boolean;\n /** Box size: `md` 18px - `sm` 16px for dense table rows. @default 'md' */\n size?: 'sm' | 'md';\n /** Label text beside the box. */\n label?: ReactNode;\n /** Optional secondary line under the label (settings rows). */\n description?: ReactNode;\n /** Fires on toggle - read `e.target.checked`. */\n onChange?: ChangeEventHandler<HTMLInputElement>;\n /** Extra class(es) merged onto the root label. */\n className?: string;\n /** Inline styles merged onto the root label. */\n style?: CSSProperties;\n}\n\nexport interface CheckboxProps extends CheckboxOwnProps {\n /** Standard <input> attributes (name, value, required, aria-*, ...) forwarded to the checkbox input. */\n htmlProps?: Omit<InputHTMLAttributes<HTMLInputElement>, keyof CheckboxOwnProps | 'type'> & DataAttributes;\n}\n\nexport function Checkbox({\n checked,\n defaultChecked,\n indeterminate = false,\n error = false,\n disabled = false,\n size = 'md',\n label,\n description,\n className = '',\n style,\n onChange,\n htmlProps,\n}: CheckboxProps) {\n const cls = cx('cbx', size === 'sm' && 'cbx--sm', error && 'cbx--error', disabled && 'cbx--disabled', className);\n\n const controlled = checked !== undefined;\n const checkedProps = controlled ? { checked } : { defaultChecked };\n\n return (\n <label className={cls} style={style}>\n <CheckGlyph\n indeterminate={indeterminate}\n disabled={disabled}\n aria-invalid={error || undefined}\n onChange={onChange}\n {...checkedProps}\n {...htmlProps}\n />\n {label || description ? (\n <span className=\"cbx__text\">\n {label ? <span className=\"cbx__label\">{label}</span> : null}\n {description ? <span className=\"cbx__desc\">{description}</span> : null}\n </span>\n ) : null}\n </label>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/internal/utils/cx.ts"],"names":[],"mappings":";AAAO,SAAS,MAAM,KAAA,EAAyD;AAC7E,EAAA,OAAO,KAAA,CAAM,MAAA,CAAO,OAAO,CAAA,CAAE,KAAK,GAAG,CAAA;AACvC","file":"chunk-QGNC7LH5.js","sourcesContent":["export function cx(...parts: Array<string | false | null | undefined>): string {\n return parts.filter(Boolean).join(' ');\n}\n"]}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
'use client';import { useAnchorPosition } from './chunk-EQ32F2QJ.js';
|
|
2
|
+
import { OverlayPortal, useOverlayEntry, useOutsidePress } from './chunk-GY7JOPUQ.js';
|
|
3
|
+
import { useGlide, GlidePill } from './chunk-MKIQFK7S.js';
|
|
4
|
+
import { resolveMotionTiming } from './chunk-NEF5XAHG.js';
|
|
5
|
+
import { Presence } from './chunk-MXOPCFWR.js';
|
|
6
|
+
import { useMotion } from './chunk-W3SHPKSB.js';
|
|
7
|
+
import { IconSlot } from './chunk-2ERBBFZS.js';
|
|
8
|
+
import { Icon } from './chunk-3SBCBYB7.js';
|
|
9
|
+
import { UIMotion } from './chunk-S5ZTZANS.js';
|
|
10
|
+
import { Button } from './chunk-U5QQZC3U.js';
|
|
11
|
+
import { Collapse } from './chunk-7SZCJ7WI.js';
|
|
12
|
+
import { useState, useRef, useId, useMemo, useEffect, useLayoutEffect, Fragment } from 'react';
|
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
// src/components/composites/select/core/types.ts
|
|
16
|
+
function normalize(options) {
|
|
17
|
+
const grouped = options.length > 0 && options[0] && Array.isArray(options[0].options);
|
|
18
|
+
const groups = grouped ? options.map((g) => ({ label: g.label, options: g.options || [] })) : [{ label: null, options }];
|
|
19
|
+
return { groups, flat: groups.flatMap((g) => g.options) };
|
|
20
|
+
}
|
|
21
|
+
var matches = (o, q) => !q || (o.label + " " + (o.description || "")).toLowerCase().includes(q.toLowerCase());
|
|
22
|
+
|
|
23
|
+
// src/components/composites/select/core/use-listbox.ts
|
|
24
|
+
function useListbox({
|
|
25
|
+
options,
|
|
26
|
+
disabled,
|
|
27
|
+
loading,
|
|
28
|
+
searchable,
|
|
29
|
+
id,
|
|
30
|
+
idPrefix,
|
|
31
|
+
isSelected,
|
|
32
|
+
onCommit,
|
|
33
|
+
closeOnCommit
|
|
34
|
+
}) {
|
|
35
|
+
const [open, setOpen] = useState(false);
|
|
36
|
+
const [query, setQuery] = useState("");
|
|
37
|
+
const [activeIdx, setActiveIdx] = useState(-1);
|
|
38
|
+
const typeahead = useRef({ buf: "", t: 0 });
|
|
39
|
+
const triggerRef = useRef(null), listRef = useRef(null), searchRef = useRef(null);
|
|
40
|
+
const autoId = useId();
|
|
41
|
+
const baseId = id || idPrefix + autoId;
|
|
42
|
+
const menuId = baseId + "-menu";
|
|
43
|
+
const listId = baseId + "-list";
|
|
44
|
+
const glide = useGlide(listRef);
|
|
45
|
+
const { groups, flat } = useMemo(() => normalize(options), [options]);
|
|
46
|
+
const navItems = useMemo(() => flat.filter((o) => matches(o, query)), [flat, query]);
|
|
47
|
+
const show = () => {
|
|
48
|
+
if (!disabled && !loading) setOpen(true);
|
|
49
|
+
};
|
|
50
|
+
const requestClose = () => setOpen(false);
|
|
51
|
+
const returnFocus = () => triggerRef.current && triggerRef.current.focus();
|
|
52
|
+
function commit(opt) {
|
|
53
|
+
if (!opt || opt.disabled) return;
|
|
54
|
+
onCommit(opt);
|
|
55
|
+
if (closeOnCommit) {
|
|
56
|
+
requestClose();
|
|
57
|
+
returnFocus();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (!open) setQuery("");
|
|
62
|
+
}, [open]);
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (!open) return;
|
|
65
|
+
const sel = navItems.findIndex((o) => isSelected(o.value) && !o.disabled);
|
|
66
|
+
const first = navItems.findIndex((o) => !o.disabled);
|
|
67
|
+
setActiveIdx(sel >= 0 ? sel : first);
|
|
68
|
+
const ref = searchable ? searchRef : listRef;
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
if (ref.current) ref.current.focus();
|
|
71
|
+
}, 0);
|
|
72
|
+
}, [open]);
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
const list = listRef.current;
|
|
75
|
+
if (!open || activeIdx < 0 || !list) return;
|
|
76
|
+
const el = list.querySelector('[data-idx="' + activeIdx + '"]');
|
|
77
|
+
if (!el) return;
|
|
78
|
+
if (el.offsetTop < list.scrollTop) list.scrollTop = el.offsetTop;
|
|
79
|
+
else if (el.offsetTop + el.offsetHeight > list.scrollTop + list.clientHeight)
|
|
80
|
+
list.scrollTop = el.offsetTop + el.offsetHeight - list.clientHeight;
|
|
81
|
+
}, [activeIdx, open]);
|
|
82
|
+
useLayoutEffect(() => {
|
|
83
|
+
const list = listRef.current;
|
|
84
|
+
const el = open && activeIdx >= 0 && list && list.querySelector('[data-idx="' + activeIdx + '"]');
|
|
85
|
+
if (el) glide.enter(el);
|
|
86
|
+
else glide.leave();
|
|
87
|
+
}, [open, activeIdx, query]);
|
|
88
|
+
function moveActive(dir) {
|
|
89
|
+
if (!navItems.length) return;
|
|
90
|
+
let i = activeIdx;
|
|
91
|
+
for (let s = 0; s < navItems.length; s++) {
|
|
92
|
+
i = (i + dir + navItems.length) % navItems.length;
|
|
93
|
+
if (!navItems[i].disabled) return setActiveIdx(i);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function edgeActive(toEnd) {
|
|
97
|
+
const order = [...navItems.keys()];
|
|
98
|
+
if (toEnd) order.reverse();
|
|
99
|
+
for (const i of order) if (!navItems[i].disabled) return setActiveIdx(i);
|
|
100
|
+
}
|
|
101
|
+
function typeAhead(ch) {
|
|
102
|
+
const ta = typeahead.current;
|
|
103
|
+
clearTimeout(ta.t);
|
|
104
|
+
ta.buf += ch.toLowerCase();
|
|
105
|
+
ta.t = setTimeout(() => ta.buf = "", 600);
|
|
106
|
+
const i = navItems.findIndex((o) => !o.disabled && o.value.toLowerCase().startsWith(ta.buf));
|
|
107
|
+
if (i >= 0) setActiveIdx(i);
|
|
108
|
+
}
|
|
109
|
+
function onMenuKeyDown(e) {
|
|
110
|
+
switch (e.key) {
|
|
111
|
+
case "Escape":
|
|
112
|
+
e.preventDefault();
|
|
113
|
+
requestClose();
|
|
114
|
+
returnFocus();
|
|
115
|
+
break;
|
|
116
|
+
case "ArrowDown":
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
moveActive(1);
|
|
119
|
+
break;
|
|
120
|
+
case "ArrowUp":
|
|
121
|
+
e.preventDefault();
|
|
122
|
+
moveActive(-1);
|
|
123
|
+
break;
|
|
124
|
+
case "Home":
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
edgeActive(false);
|
|
127
|
+
break;
|
|
128
|
+
case "End":
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
edgeActive(true);
|
|
131
|
+
break;
|
|
132
|
+
case "Enter":
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
if (activeIdx >= 0) commit(navItems[activeIdx]);
|
|
135
|
+
break;
|
|
136
|
+
case "Tab":
|
|
137
|
+
requestClose();
|
|
138
|
+
break;
|
|
139
|
+
default:
|
|
140
|
+
if (!searchable && e.key.length === 1 && !e.metaKey && !e.ctrlKey) typeAhead(e.key);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const optId = (value) => baseId + "-opt-" + encodeURIComponent(value);
|
|
144
|
+
const active = activeIdx >= 0 ? navItems[activeIdx] : void 0;
|
|
145
|
+
const adId = open && active ? optId(active.value) : void 0;
|
|
146
|
+
return {
|
|
147
|
+
open,
|
|
148
|
+
query,
|
|
149
|
+
setQuery,
|
|
150
|
+
triggerRef,
|
|
151
|
+
listRef,
|
|
152
|
+
searchRef,
|
|
153
|
+
baseId,
|
|
154
|
+
menuId,
|
|
155
|
+
listId,
|
|
156
|
+
optId,
|
|
157
|
+
adId,
|
|
158
|
+
groups,
|
|
159
|
+
flat,
|
|
160
|
+
navItems,
|
|
161
|
+
glide,
|
|
162
|
+
isSelected,
|
|
163
|
+
show,
|
|
164
|
+
requestClose,
|
|
165
|
+
commit,
|
|
166
|
+
activeIdx,
|
|
167
|
+
setActiveIdx,
|
|
168
|
+
onMenuKeyDown
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function SelectTrigger({
|
|
172
|
+
lb,
|
|
173
|
+
invalid,
|
|
174
|
+
ariaLabel,
|
|
175
|
+
leading,
|
|
176
|
+
text,
|
|
177
|
+
isPlaceholder,
|
|
178
|
+
count,
|
|
179
|
+
htmlProps,
|
|
180
|
+
...rest
|
|
181
|
+
}) {
|
|
182
|
+
const { triggerRef, baseId, open, adId, show, requestClose } = lb;
|
|
183
|
+
return /* @__PURE__ */ jsxs(
|
|
184
|
+
Button,
|
|
185
|
+
{
|
|
186
|
+
type: "button",
|
|
187
|
+
ref: triggerRef,
|
|
188
|
+
variant: "ghost",
|
|
189
|
+
htmlProps: {
|
|
190
|
+
id: baseId + "-trigger",
|
|
191
|
+
role: "combobox",
|
|
192
|
+
"aria-haspopup": "listbox",
|
|
193
|
+
"aria-expanded": open,
|
|
194
|
+
"aria-controls": baseId + "-list",
|
|
195
|
+
"aria-activedescendant": adId,
|
|
196
|
+
"aria-label": ariaLabel,
|
|
197
|
+
"aria-invalid": invalid || void 0,
|
|
198
|
+
onKeyDown: (e) => {
|
|
199
|
+
if (!open && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
|
|
200
|
+
e.preventDefault();
|
|
201
|
+
show();
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
...htmlProps
|
|
205
|
+
},
|
|
206
|
+
onClick: () => open ? requestClose() : show(),
|
|
207
|
+
iconRight: /* @__PURE__ */ jsx("span", { className: "select__caret", children: /* @__PURE__ */ jsx(Icon, { name: "caret-down", size: "sm" }) }),
|
|
208
|
+
iconLeft: leading && /* @__PURE__ */ jsx("span", { className: "select__leading", children: /* @__PURE__ */ jsx(IconSlot, { size: "sm", children: leading }) }),
|
|
209
|
+
...rest,
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ jsx("span", { className: "select__value", "data-placeholder": isPlaceholder ? "true" : void 0, children: text }),
|
|
212
|
+
count != null && count > 0 && /* @__PURE__ */ jsxs("span", { className: "select__count", children: [
|
|
213
|
+
"+",
|
|
214
|
+
count
|
|
215
|
+
] })
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
var SELECT_MENU_TIMING = {
|
|
221
|
+
open: { duration: "base", ease: "entrance" },
|
|
222
|
+
close: { duration: "base", ease: "exit" }
|
|
223
|
+
};
|
|
224
|
+
function selectMenuLayers(animation, dir) {
|
|
225
|
+
const t = resolveMotionTiming(animation, SELECT_MENU_TIMING)[dir];
|
|
226
|
+
const fade = (d) => ({ duration: d.duration === 0 ? 0 : UIMotion.dur.fast, ease: d.ease });
|
|
227
|
+
return dir === "open" ? [
|
|
228
|
+
{ y: [-6, 0], scale: [0.96, 1], timing: t },
|
|
229
|
+
{ opacity: [0, 1], timing: fade(t) }
|
|
230
|
+
] : [
|
|
231
|
+
{ y: [-6], scale: [0.96], timing: t },
|
|
232
|
+
{ opacity: [0], timing: fade(t) }
|
|
233
|
+
];
|
|
234
|
+
}
|
|
235
|
+
function MenuSurface({
|
|
236
|
+
menuId,
|
|
237
|
+
requestClose,
|
|
238
|
+
triggerRef,
|
|
239
|
+
multiple,
|
|
240
|
+
animate,
|
|
241
|
+
exit,
|
|
242
|
+
children
|
|
243
|
+
}) {
|
|
244
|
+
const menuRef = useRef(null);
|
|
245
|
+
const entry = useOverlayEntry({ nodeRef: menuRef, dismissible: true, requestClose });
|
|
246
|
+
useMotion(menuRef, { animate, exit });
|
|
247
|
+
useLayoutEffect(() => {
|
|
248
|
+
const apply = () => {
|
|
249
|
+
const t = triggerRef.current;
|
|
250
|
+
if (t && menuRef.current) menuRef.current.style.minWidth = t.getBoundingClientRect().width + "px";
|
|
251
|
+
};
|
|
252
|
+
apply();
|
|
253
|
+
window.addEventListener("resize", apply);
|
|
254
|
+
return () => window.removeEventListener("resize", apply);
|
|
255
|
+
}, []);
|
|
256
|
+
useAnchorPosition({ side: "bottom", align: "start", arrow: false, triggerRef, panelRef: menuRef });
|
|
257
|
+
useOutsidePress({ entry, refs: [menuRef, triggerRef], enabled: true, onPress: requestClose });
|
|
258
|
+
return /* @__PURE__ */ jsx(
|
|
259
|
+
"div",
|
|
260
|
+
{
|
|
261
|
+
ref: menuRef,
|
|
262
|
+
className: "select__menu",
|
|
263
|
+
id: menuId,
|
|
264
|
+
role: "presentation",
|
|
265
|
+
"data-multiple": multiple ? "true" : void 0,
|
|
266
|
+
children
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
function SelectMenu({ open, menuId, requestClose, triggerRef, multiple, animation, children }) {
|
|
271
|
+
return /* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(Presence, { children: open && /* @__PURE__ */ jsx(
|
|
272
|
+
MenuSurface,
|
|
273
|
+
{
|
|
274
|
+
animate: selectMenuLayers(animation, "open"),
|
|
275
|
+
exit: selectMenuLayers(animation, "close"),
|
|
276
|
+
menuId,
|
|
277
|
+
requestClose,
|
|
278
|
+
triggerRef,
|
|
279
|
+
multiple,
|
|
280
|
+
children
|
|
281
|
+
},
|
|
282
|
+
"menu"
|
|
283
|
+
) }) });
|
|
284
|
+
}
|
|
285
|
+
var defaultCheck = (selected) => selected ? /* @__PURE__ */ jsx(Icon, { name: "check", size: "sm", weight: "bold" }, "on") : null;
|
|
286
|
+
function LoadingRows() {
|
|
287
|
+
return /* @__PURE__ */ jsx("div", { className: "select__loading", "aria-busy": "true", "aria-live": "polite", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxs("div", { className: "select__skeleton", children: [
|
|
288
|
+
/* @__PURE__ */ jsx("span", { className: "select__skeleton-dot", "data-pulse": true }),
|
|
289
|
+
/* @__PURE__ */ jsx("span", { className: "select__skeleton-bar", "data-pulse": true })
|
|
290
|
+
] }, i)) });
|
|
291
|
+
}
|
|
292
|
+
function EmptyRow({ query }) {
|
|
293
|
+
return /* @__PURE__ */ jsx("div", { className: "select__empty", children: query ? 'No matches for "' + query + '"' : "No options available" });
|
|
294
|
+
}
|
|
295
|
+
function ListboxPanel({
|
|
296
|
+
lb,
|
|
297
|
+
loading,
|
|
298
|
+
searchable,
|
|
299
|
+
searchPlaceholder,
|
|
300
|
+
ariaLabel,
|
|
301
|
+
multiple,
|
|
302
|
+
animation,
|
|
303
|
+
size = "md",
|
|
304
|
+
check = defaultCheck
|
|
305
|
+
}) {
|
|
306
|
+
const navIndex = useMemo(() => new Map(lb.navItems.map((o, i) => [o.value, i])), [lb.navItems]);
|
|
307
|
+
return /* @__PURE__ */ jsxs(
|
|
308
|
+
SelectMenu,
|
|
309
|
+
{
|
|
310
|
+
open: lb.open,
|
|
311
|
+
menuId: lb.menuId,
|
|
312
|
+
requestClose: lb.requestClose,
|
|
313
|
+
triggerRef: lb.triggerRef,
|
|
314
|
+
multiple,
|
|
315
|
+
animation,
|
|
316
|
+
children: [
|
|
317
|
+
searchable && !loading && /* @__PURE__ */ jsxs("div", { className: "select__search", children: [
|
|
318
|
+
/* @__PURE__ */ jsx(Icon, { name: "magnifying-glass", size: "sm" }),
|
|
319
|
+
/* @__PURE__ */ jsx(
|
|
320
|
+
"input",
|
|
321
|
+
{
|
|
322
|
+
ref: lb.searchRef,
|
|
323
|
+
className: "select__search-input",
|
|
324
|
+
type: "text",
|
|
325
|
+
value: lb.query,
|
|
326
|
+
placeholder: searchPlaceholder,
|
|
327
|
+
"aria-label": searchPlaceholder,
|
|
328
|
+
"aria-controls": lb.listId,
|
|
329
|
+
"aria-activedescendant": lb.adId,
|
|
330
|
+
onChange: (e) => lb.setQuery(e.target.value),
|
|
331
|
+
onKeyDown: lb.onMenuKeyDown
|
|
332
|
+
}
|
|
333
|
+
)
|
|
334
|
+
] }),
|
|
335
|
+
/* @__PURE__ */ jsxs(
|
|
336
|
+
"div",
|
|
337
|
+
{
|
|
338
|
+
className: "select__list",
|
|
339
|
+
ref: lb.listRef,
|
|
340
|
+
id: lb.listId,
|
|
341
|
+
role: "listbox",
|
|
342
|
+
"aria-multiselectable": multiple || void 0,
|
|
343
|
+
tabIndex: -1,
|
|
344
|
+
"aria-label": ariaLabel,
|
|
345
|
+
onKeyDown: searchable ? void 0 : lb.onMenuKeyDown,
|
|
346
|
+
children: [
|
|
347
|
+
/* @__PURE__ */ jsx(GlidePill, { className: "select__glide", glide: lb.glide }),
|
|
348
|
+
loading ? /* @__PURE__ */ jsx(LoadingRows, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
349
|
+
lb.groups.map((g, gi) => /* @__PURE__ */ jsxs("div", { className: "select__group", role: "group", "aria-label": g.label || void 0, children: [
|
|
350
|
+
g.label && g.options.some((o) => navIndex.has(o.value)) && /* @__PURE__ */ jsx("div", { className: "select__group-label", children: g.label }),
|
|
351
|
+
g.options.map((opt) => {
|
|
352
|
+
const i = navIndex.get(opt.value) ?? -1;
|
|
353
|
+
const visible = i !== -1;
|
|
354
|
+
const isSel = lb.isSelected(opt.value);
|
|
355
|
+
const row = /* @__PURE__ */ jsxs(
|
|
356
|
+
"div",
|
|
357
|
+
{
|
|
358
|
+
id: visible ? lb.optId(opt.value) : void 0,
|
|
359
|
+
"data-idx": visible ? i : void 0,
|
|
360
|
+
className: "select__option",
|
|
361
|
+
role: "option",
|
|
362
|
+
"aria-selected": isSel,
|
|
363
|
+
"aria-hidden": !visible || void 0,
|
|
364
|
+
"aria-disabled": opt.disabled || void 0,
|
|
365
|
+
"data-selected": isSel ? "true" : void 0,
|
|
366
|
+
"data-active": visible && i === lb.activeIdx ? "true" : void 0,
|
|
367
|
+
"data-disabled": opt.disabled ? "true" : void 0,
|
|
368
|
+
onMouseEnter: () => visible && !opt.disabled && lb.setActiveIdx(i),
|
|
369
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
370
|
+
onClick: () => visible && lb.commit(opt),
|
|
371
|
+
"data-size": size,
|
|
372
|
+
children: [
|
|
373
|
+
opt.icon && /* @__PURE__ */ jsx("span", { className: "select__option-icon", children: /* @__PURE__ */ jsx(IconSlot, { size: "sm", children: opt.icon }) }),
|
|
374
|
+
/* @__PURE__ */ jsxs("span", { className: "select__option-text", children: [
|
|
375
|
+
/* @__PURE__ */ jsx("span", { className: "select__option-label", children: opt.label }),
|
|
376
|
+
opt.description && /* @__PURE__ */ jsx("span", { className: "select__option-desc", children: opt.description })
|
|
377
|
+
] }),
|
|
378
|
+
check(isSel) ? /* @__PURE__ */ jsx("span", { className: "select__option-check", children: check(isSel) }) : null
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
opt.value
|
|
382
|
+
);
|
|
383
|
+
return searchable ? /* @__PURE__ */ jsx(Collapse, { open: visible, fade: true, children: row }, opt.value) : row;
|
|
384
|
+
})
|
|
385
|
+
] }, gi)),
|
|
386
|
+
lb.navItems.length === 0 && /* @__PURE__ */ jsx(EmptyRow, { query: lb.query })
|
|
387
|
+
] })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
)
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export { ListboxPanel, SelectTrigger, useListbox };
|
|
397
|
+
//# sourceMappingURL=chunk-QMSJZCK3.js.map
|
|
398
|
+
//# sourceMappingURL=chunk-QMSJZCK3.js.map
|