@uisatin/ui 0.2.0 → 0.3.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/CHANGELOG.md +14 -0
- package/README.md +10 -1
- package/chunk-3DHJXU45.js +147 -0
- package/{chunk-6YXUBP27.js → chunk-5725MFGQ.js} +72 -67
- package/{chunk-BKZBWPUH.js → chunk-57QEOCDZ.js} +9 -11
- package/{chunk-RTJ76X5U.js → chunk-5KTBSMQU.js} +2 -4
- package/{chunk-B2K45IUR.js → chunk-5XTUFBZI.js} +5 -7
- package/{chunk-LW3TRU5W.js → chunk-674SRBZK.js} +28 -16
- package/{chunk-XZNHT6MO.js → chunk-6VKV36OK.js} +115 -61
- package/{chunk-GICKPMJU.js → chunk-73Z7NMQQ.js} +31 -31
- package/chunk-7Q76HLRQ.js +128 -0
- package/{chunk-JPNWHWAQ.js → chunk-AIMQNLPY.js} +38 -35
- package/{chunk-MYEZXZZC.js → chunk-BN7FDKCJ.js} +23 -25
- package/{chunk-3DINAQLL.js → chunk-BR2B4OIT.js} +33 -29
- package/{chunk-2HKBZFIK.js → chunk-CGOH5IYX.js} +31 -31
- package/chunk-CVNRZ2YV.js +112 -0
- package/{chunk-QUF2IPOZ.js → chunk-DPYIBFQD.js} +12 -14
- package/chunk-EF5GT4OG.js +87 -0
- package/chunk-FAJ3OVL4.js +37 -0
- package/{chunk-L6NCCSIP.js → chunk-FB5HTCO2.js} +36 -29
- package/chunk-GI2SMFZL.js +55 -0
- package/{chunk-B6V4VSGH.js → chunk-GMETYACH.js} +14 -15
- package/chunk-HK6WINL6.js +95 -0
- package/{chunk-HL42K2NH.js → chunk-IKO3GQFE.js} +17 -17
- package/{chunk-DO3TBNSC.js → chunk-ISYKZCPJ.js} +15 -17
- package/{chunk-YG7JOOLJ.js → chunk-J7RMFN54.js} +5 -7
- package/{chunk-SHDFUXYV.js → chunk-JBKBRAC4.js} +16 -18
- package/{chunk-LZMKSFCF.js → chunk-JCXI7VQL.js} +10 -12
- package/{chunk-NN6PKJWS.js → chunk-JYOZUQNU.js} +7 -9
- package/{chunk-LLHTVIM3.js → chunk-LB37KTJH.js} +7 -9
- package/{chunk-NSRTTYQ4.js → chunk-LB7Z6BSK.js} +42 -35
- package/{chunk-BNZVTLHV.js → chunk-LFGUJHFF.js} +25 -21
- package/{chunk-7TXHCRAG.js → chunk-M2HEVFQ3.js} +8 -10
- package/{chunk-SH6NG6VN.js → chunk-NH3EHMIL.js} +6 -8
- package/chunk-NL574STL.js +88 -0
- package/chunk-NQL6SIIB.js +168 -0
- package/chunk-O46O6LFQ.js +25 -0
- package/{chunk-YPNKBE5X.js → chunk-OURZQM27.js} +5 -7
- package/{chunk-XL75JRUA.js → chunk-OVKPPXK5.js} +42 -22
- package/chunk-PD6YPFYN.js +42 -0
- package/{chunk-XILQ7GXE.js → chunk-PHNR6ZQ7.js} +11 -13
- package/{chunk-BNTPPZCK.js → chunk-PUWSL5XW.js} +37 -39
- package/{chunk-A5XEM3GF.js → chunk-RHQHDYTE.js} +34 -36
- package/chunk-S7QHBVPX.js +45 -0
- package/{chunk-TX3H3QMA.js → chunk-SAYNV7B3.js} +71 -70
- package/{chunk-6QMSWITQ.js → chunk-SDOTDMYG.js} +24 -26
- package/{chunk-UGRSWP6U.js → chunk-SPGUZMCC.js} +10 -12
- package/chunk-SSOFFQ5T.js +74 -0
- package/{chunk-AN2RNJLR.js → chunk-SZJIVBOD.js} +16 -16
- package/chunk-T6L32XXH.js +107 -0
- package/{chunk-QS4N4MNP.js → chunk-TT2N5752.js} +18 -20
- package/{chunk-72OCFAPT.js → chunk-UCCNXGLG.js} +22 -21
- package/{chunk-KNUWZNFV.js → chunk-UGIVCXGN.js} +4 -6
- package/{chunk-H4NU7NPO.js → chunk-UUCVRIVP.js} +62 -61
- package/{chunk-P4O6TGDR.js → chunk-UZ4DXU6W.js} +28 -26
- package/{chunk-UBNHSZSE.js → chunk-VUOAPWTF.js} +10 -12
- package/{chunk-VAGIAREV.js → chunk-W472DBMT.js} +29 -26
- package/{chunk-X3PQANZO.js → chunk-W4RDTP6W.js} +47 -46
- package/{chunk-CL2II6BX.js → chunk-WLQD5BN2.js} +11 -13
- package/{chunk-FDKIX4DC.js → chunk-X2GNMNZQ.js} +7 -9
- package/{chunk-PF3YBUKT.js → chunk-X66KTATQ.js} +16 -15
- package/{chunk-J3NSDRVH.js → chunk-XETMIETJ.js} +0 -2
- package/chunk-XH56JGYC.js +71 -0
- package/{chunk-O7F3CIDV.js → chunk-XUOSJMEJ.js} +10 -12
- package/chunk-YJK4MGSI.js +86 -0
- package/{chunk-YX5VNRJX.js → chunk-YYFAZQ25.js} +0 -2
- package/chunk-Z7S2KQZS.js +177 -0
- package/chunk-ZBZ3ZQRB.js +195 -0
- package/{chunk-Y5AYU7PK.js → chunk-ZHFIWDGF.js} +0 -2
- package/components/accordion.js +2 -4
- package/components/agent-loading.d.ts +2 -0
- package/components/agent-loading.js +2 -4
- package/components/agent-picker.js +4 -5
- package/components/agent-suggestion.js +5 -6
- package/components/announcement-bar.js +6 -7
- package/components/attachment.js +4 -5
- package/components/avatar.js +4 -6
- package/components/badge.js +2 -4
- package/components/banner-mesh.js +1 -3
- package/components/banner.js +4 -6
- package/components/bar-chart.js +10 -11
- package/components/breadcrumb.js +5 -6
- package/components/button.js +2 -4
- package/components/card.js +3 -5
- package/components/channel-chart.js +10 -11
- package/components/chart.js +9 -10
- package/components/checkbox.js +2 -4
- package/components/chip.js +2 -4
- package/components/citations.d.ts +6 -4
- package/components/citations.js +4 -5
- package/components/code-block.js +3 -5
- package/components/combobox.d.ts +12 -3
- package/components/combobox.js +9 -10
- package/components/command-menu.d.ts +6 -2
- package/components/command-menu.js +5 -6
- package/components/context-menu.d.ts +12 -5
- package/components/context-menu.js +5 -6
- package/components/cookie-consent.js +3 -5
- package/components/date-picker.d.ts +26 -14
- package/components/date-picker.js +8 -9
- package/components/decision-card.js +6 -7
- package/components/dialog.d.ts +5 -2
- package/components/dialog.js +4 -5
- package/components/donut-chart.js +10 -11
- package/components/dot.js +2 -4
- package/components/dropdown.d.ts +6 -1
- package/components/dropdown.js +4 -5
- package/components/empty-state.js +2 -4
- package/components/file-upload.js +6 -7
- package/components/floating.js +1 -3
- package/components/form-field.js +2 -4
- package/components/hover-card.d.ts +5 -2
- package/components/hover-card.js +2 -4
- package/components/input-otp.d.ts +4 -2
- package/components/input-otp.js +7 -8
- package/components/input.js +3 -5
- package/components/kbd.js +2 -4
- package/components/labels.d.ts +79 -0
- package/components/labels.js +1 -0
- package/components/line-chart.js +11 -12
- package/components/message-actions.js +4 -5
- package/components/message.js +7 -8
- package/components/number-input.d.ts +4 -2
- package/components/number-input.js +7 -8
- package/components/pagination.js +4 -6
- package/components/popover.d.ts +11 -5
- package/components/popover.js +3 -4
- package/components/progress.js +2 -4
- package/components/prompt-bar.js +5 -6
- package/components/radio.js +2 -4
- package/components/search-bar.js +3 -5
- package/components/segmented-control.d.ts +4 -2
- package/components/segmented-control.js +3 -5
- package/components/select.d.ts +10 -2
- package/components/select.js +6 -7
- package/components/sheet.d.ts +4 -2
- package/components/sheet.js +5 -6
- package/components/sidebar.js +2 -4
- package/components/skeleton.js +2 -4
- package/components/slider.d.ts +6 -2
- package/components/slider.js +7 -8
- package/components/sliding-indicator.js +1 -3
- package/components/streaming-text.js +2 -4
- package/components/switch.js +2 -4
- package/components/table.d.ts +16 -5
- package/components/table.js +4 -5
- package/components/tabs.d.ts +4 -2
- package/components/tabs.js +3 -5
- package/components/textarea.js +3 -5
- package/components/thinking.js +3 -5
- package/components/toast.js +4 -5
- package/components/toggle.js +2 -4
- package/components/tooltip.d.ts +5 -2
- package/components/tooltip.js +3 -5
- package/index.d.ts +1 -0
- package/index.js +67 -231
- package/lib/utils.d.ts +8 -1
- package/lib/utils.js +1 -3
- package/package.json +11 -1
- package/styles.css +1 -1
- package/theme/create-theme.d.ts +6 -2
- package/theme/index.js +1 -0
- package/chunk-2HKBZFIK.js.map +0 -1
- package/chunk-3DINAQLL.js.map +0 -1
- package/chunk-3ERGAHKA.js +0 -179
- package/chunk-3ERGAHKA.js.map +0 -1
- package/chunk-6C7CGJX2.js +0 -86
- package/chunk-6C7CGJX2.js.map +0 -1
- package/chunk-6QMSWITQ.js.map +0 -1
- package/chunk-6YXUBP27.js.map +0 -1
- package/chunk-72OCFAPT.js.map +0 -1
- package/chunk-7TXHCRAG.js.map +0 -1
- package/chunk-A5XEM3GF.js.map +0 -1
- package/chunk-AN2RNJLR.js.map +0 -1
- package/chunk-B2K45IUR.js.map +0 -1
- package/chunk-B6V4VSGH.js.map +0 -1
- package/chunk-BKZBWPUH.js.map +0 -1
- package/chunk-BNTPPZCK.js.map +0 -1
- package/chunk-BNZVTLHV.js.map +0 -1
- package/chunk-CL2II6BX.js.map +0 -1
- package/chunk-D7RZNTFC.js +0 -95
- package/chunk-D7RZNTFC.js.map +0 -1
- package/chunk-DETGJAIC.js +0 -147
- package/chunk-DETGJAIC.js.map +0 -1
- package/chunk-DO3TBNSC.js.map +0 -1
- package/chunk-ESC5JCVQ.js +0 -90
- package/chunk-ESC5JCVQ.js.map +0 -1
- package/chunk-FDKIX4DC.js.map +0 -1
- package/chunk-GICKPMJU.js.map +0 -1
- package/chunk-GQA24FYG.js +0 -57
- package/chunk-GQA24FYG.js.map +0 -1
- package/chunk-H4NU7NPO.js.map +0 -1
- package/chunk-H63FYCMY.js +0 -11
- package/chunk-H63FYCMY.js.map +0 -1
- package/chunk-HL42K2NH.js.map +0 -1
- package/chunk-HNQUX43Z.js +0 -109
- package/chunk-HNQUX43Z.js.map +0 -1
- package/chunk-HRKPV66B.js +0 -32
- package/chunk-HRKPV66B.js.map +0 -1
- package/chunk-J3NSDRVH.js.map +0 -1
- package/chunk-JPNWHWAQ.js.map +0 -1
- package/chunk-KNUWZNFV.js.map +0 -1
- package/chunk-L6NCCSIP.js.map +0 -1
- package/chunk-LLHTVIM3.js.map +0 -1
- package/chunk-LW3TRU5W.js.map +0 -1
- package/chunk-LZMKSFCF.js.map +0 -1
- package/chunk-MR3JDI7E.js +0 -122
- package/chunk-MR3JDI7E.js.map +0 -1
- package/chunk-MYEZXZZC.js.map +0 -1
- package/chunk-NN6PKJWS.js.map +0 -1
- package/chunk-NSRTTYQ4.js.map +0 -1
- package/chunk-O7F3CIDV.js.map +0 -1
- package/chunk-P4O6TGDR.js.map +0 -1
- package/chunk-PF3YBUKT.js.map +0 -1
- package/chunk-PVOLDO4G.js +0 -47
- package/chunk-PVOLDO4G.js.map +0 -1
- package/chunk-QS4N4MNP.js.map +0 -1
- package/chunk-QUF2IPOZ.js.map +0 -1
- package/chunk-RTJ76X5U.js.map +0 -1
- package/chunk-SH6NG6VN.js.map +0 -1
- package/chunk-SHDFUXYV.js.map +0 -1
- package/chunk-TKO44NDI.js +0 -84
- package/chunk-TKO44NDI.js.map +0 -1
- package/chunk-TX3H3QMA.js.map +0 -1
- package/chunk-UBNHSZSE.js.map +0 -1
- package/chunk-UC3ZJWOD.js +0 -73
- package/chunk-UC3ZJWOD.js.map +0 -1
- package/chunk-UGRSWP6U.js.map +0 -1
- package/chunk-VAGIAREV.js.map +0 -1
- package/chunk-WTMZT3IT.js +0 -105
- package/chunk-WTMZT3IT.js.map +0 -1
- package/chunk-WX6BP5ZP.js +0 -39
- package/chunk-WX6BP5ZP.js.map +0 -1
- package/chunk-X3PQANZO.js.map +0 -1
- package/chunk-XILQ7GXE.js.map +0 -1
- package/chunk-XL75JRUA.js.map +0 -1
- package/chunk-XZNHT6MO.js.map +0 -1
- package/chunk-Y5AYU7PK.js.map +0 -1
- package/chunk-YG7JOOLJ.js.map +0 -1
- package/chunk-YPJYW624.js +0 -195
- package/chunk-YPJYW624.js.map +0 -1
- package/chunk-YPNKBE5X.js.map +0 -1
- package/chunk-YX5VNRJX.js.map +0 -1
- package/components/accordion.js.map +0 -1
- package/components/agent-loading.js.map +0 -1
- package/components/agent-picker.js.map +0 -1
- package/components/agent-suggestion.js.map +0 -1
- package/components/announcement-bar.js.map +0 -1
- package/components/attachment.js.map +0 -1
- package/components/avatar.js.map +0 -1
- package/components/badge.js.map +0 -1
- package/components/banner-mesh.js.map +0 -1
- package/components/banner.js.map +0 -1
- package/components/bar-chart.js.map +0 -1
- package/components/breadcrumb.js.map +0 -1
- package/components/button.js.map +0 -1
- package/components/card.js.map +0 -1
- package/components/channel-chart.js.map +0 -1
- package/components/chart.js.map +0 -1
- package/components/checkbox.js.map +0 -1
- package/components/chip.js.map +0 -1
- package/components/citations.js.map +0 -1
- package/components/code-block.js.map +0 -1
- package/components/combobox.js.map +0 -1
- package/components/command-menu.js.map +0 -1
- package/components/context-menu.js.map +0 -1
- package/components/cookie-consent.js.map +0 -1
- package/components/date-picker.js.map +0 -1
- package/components/decision-card.js.map +0 -1
- package/components/dialog.js.map +0 -1
- package/components/donut-chart.js.map +0 -1
- package/components/dot.js.map +0 -1
- package/components/dropdown.js.map +0 -1
- package/components/empty-state.js.map +0 -1
- package/components/file-upload.js.map +0 -1
- package/components/floating.js.map +0 -1
- package/components/form-field.js.map +0 -1
- package/components/hover-card.js.map +0 -1
- package/components/input-otp.js.map +0 -1
- package/components/input.js.map +0 -1
- package/components/kbd.js.map +0 -1
- package/components/line-chart.js.map +0 -1
- package/components/message-actions.js.map +0 -1
- package/components/message.js.map +0 -1
- package/components/number-input.js.map +0 -1
- package/components/pagination.js.map +0 -1
- package/components/popover.js.map +0 -1
- package/components/progress.js.map +0 -1
- package/components/prompt-bar.js.map +0 -1
- package/components/radio.js.map +0 -1
- package/components/search-bar.js.map +0 -1
- package/components/segmented-control.js.map +0 -1
- package/components/select.js.map +0 -1
- package/components/sheet.js.map +0 -1
- package/components/sidebar.js.map +0 -1
- package/components/skeleton.js.map +0 -1
- package/components/slider.js.map +0 -1
- package/components/sliding-indicator.js.map +0 -1
- package/components/streaming-text.js.map +0 -1
- package/components/switch.js.map +0 -1
- package/components/table.js.map +0 -1
- package/components/tabs.js.map +0 -1
- package/components/textarea.js.map +0 -1
- package/components/thinking.js.map +0 -1
- package/components/toast.js.map +0 -1
- package/components/toggle.js.map +0 -1
- package/components/tooltip.js.map +0 -1
- package/index.js.map +0 -1
- package/lib/utils.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useFormField } from './chunk-
|
|
2
|
-
import { MenuItemContent, menuItemClass, menuGroupClass, menuGroupLabelClass, menuSurfaceClass } from './chunk-
|
|
3
|
-
import {
|
|
1
|
+
import { useFormField } from './chunk-VUOAPWTF.js';
|
|
2
|
+
import { MenuItemContent, menuItemClass, menuGroupClass, menuGroupLabelClass, menuSurfaceClass } from './chunk-BR2B4OIT.js';
|
|
3
|
+
import { useSatinLabels } from './chunk-SSOFFQ5T.js';
|
|
4
|
+
import { cn } from './chunk-O46O6LFQ.js';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { Select as Select$1 } from 'radix-ui';
|
|
6
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -36,25 +37,25 @@ function FieldChrome({
|
|
|
36
37
|
className,
|
|
37
38
|
children
|
|
38
39
|
}) {
|
|
39
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("grid w-full gap-2", className), children: [
|
|
40
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("sa:grid sa:w-full sa:gap-2", className), children: [
|
|
40
41
|
label && // The row keeps the label's 18px whatever the action, so the field never moves.
|
|
41
|
-
/* @__PURE__ */ jsxs("div", { className: "flex h-[18px] items-center justify-between gap-2", children: [
|
|
42
|
-
/* @__PURE__ */ jsx("label", { htmlFor: chrome.controlId, className: "text-sm leading-[18px] font-medium text-text-default", children: label }),
|
|
43
|
-
action && /* @__PURE__ */ jsx("div", { className: "
|
|
42
|
+
/* @__PURE__ */ jsxs("div", { className: "sa:flex sa:h-[18px] sa:items-center sa:justify-between sa:gap-2", children: [
|
|
43
|
+
/* @__PURE__ */ jsx("label", { htmlFor: chrome.controlId, className: "sa:text-sm sa:leading-[18px] sa:font-medium sa:text-text-default", children: label }),
|
|
44
|
+
action && /* @__PURE__ */ jsx("div", { className: "sa:-my-[3px] sa:flex sa:shrink-0 sa:items-center", children: action })
|
|
44
45
|
] }),
|
|
45
46
|
children,
|
|
46
|
-
chrome.message && /* @__PURE__ */ jsx("p", { id: chrome.messageId, className: cn("text-sm", chrome.isError ? "text-action-destructive-bg" : "text-text-muted"), children: chrome.message })
|
|
47
|
+
chrome.message && /* @__PURE__ */ jsx("p", { id: chrome.messageId, className: cn("sa:text-sm", chrome.isError ? "sa:text-action-destructive-bg" : "sa:text-text-muted"), children: chrome.message })
|
|
47
48
|
] });
|
|
48
49
|
}
|
|
49
50
|
function SelectChevron({ className }) {
|
|
50
|
-
return /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, className: cn("satin-field-icon text-text-muted", className), children: /* @__PURE__ */ jsx("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
51
|
+
return /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, className: cn("satin-field-icon sa:text-text-muted", className), children: /* @__PURE__ */ jsx("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
51
52
|
}
|
|
52
53
|
function Select({
|
|
53
54
|
options,
|
|
54
55
|
value,
|
|
55
56
|
defaultValue,
|
|
56
57
|
onValueChange,
|
|
57
|
-
placeholder
|
|
58
|
+
placeholder,
|
|
58
59
|
label,
|
|
59
60
|
hint,
|
|
60
61
|
error,
|
|
@@ -73,9 +74,11 @@ function Select({
|
|
|
73
74
|
wrapperClassName,
|
|
74
75
|
className,
|
|
75
76
|
"data-force": force,
|
|
77
|
+
"aria-describedby": describedBy,
|
|
76
78
|
...props
|
|
77
79
|
}) {
|
|
78
80
|
const chrome = useFieldChrome({ id, disabled, error, hint });
|
|
81
|
+
const labels = useSatinLabels();
|
|
79
82
|
const [uncontrolled, setUncontrolled] = React.useState(defaultValue);
|
|
80
83
|
const current = value ?? uncontrolled;
|
|
81
84
|
const groups = isOptionGroups(options) ? options : [{ options }];
|
|
@@ -99,6 +102,7 @@ function Select({
|
|
|
99
102
|
/* @__PURE__ */ jsxs(
|
|
100
103
|
Select$1.Trigger,
|
|
101
104
|
{
|
|
105
|
+
...props,
|
|
102
106
|
id: chrome.controlId,
|
|
103
107
|
"data-slot": "select-trigger",
|
|
104
108
|
"data-size": size,
|
|
@@ -107,12 +111,11 @@ function Select({
|
|
|
107
111
|
"data-disabled": chrome.disabled || void 0,
|
|
108
112
|
"data-force": force,
|
|
109
113
|
"aria-invalid": chrome.invalid || void 0,
|
|
110
|
-
"aria-describedby": chrome.describedBy,
|
|
111
|
-
"aria-label": props["aria-label"],
|
|
114
|
+
"aria-describedby": [describedBy, chrome.describedBy].filter(Boolean).join(" ") || void 0,
|
|
112
115
|
className: cn("satin-field satin-select", className),
|
|
113
116
|
children: [
|
|
114
117
|
lead && /* @__PURE__ */ jsx("span", { className: "satin-field-icon", "aria-hidden": true, children: lead }),
|
|
115
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-text-default", children: /* @__PURE__ */ jsx(Select$1.Value, { placeholder: /* @__PURE__ */ jsx("span", { className: "text-text-muted", children: placeholder }) }) }),
|
|
118
|
+
/* @__PURE__ */ jsx("span", { className: "sa:min-w-0 sa:flex-1 sa:truncate sa:text-text-default", children: /* @__PURE__ */ jsx(Select$1.Value, { placeholder: /* @__PURE__ */ jsx("span", { className: "sa:text-text-muted", children: placeholder ?? labels.select }) }) }),
|
|
116
119
|
/* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(SelectChevron, {}) })
|
|
117
120
|
]
|
|
118
121
|
}
|
|
@@ -127,13 +130,13 @@ function Select({
|
|
|
127
130
|
sideOffset: 4,
|
|
128
131
|
collisionPadding: 8,
|
|
129
132
|
className: cn(
|
|
130
|
-
"pointer-events-auto z-50 max-w-[520px] min-w-(--radix-select-trigger-width) overflow-hidden",
|
|
131
|
-
"max-h-(--radix-select-content-available-height)",
|
|
133
|
+
"sa:pointer-events-auto sa:z-50 sa:max-w-[520px] sa:min-w-(--radix-select-trigger-width) sa:overflow-hidden",
|
|
134
|
+
"sa:max-h-(--radix-select-content-available-height)",
|
|
132
135
|
menuSurfaceClass,
|
|
133
|
-
"origin-(--radix-select-content-transform-origin) outline-none",
|
|
134
|
-
"data-[state=open]:animate-[satin-enter_var(--duration-base)_var(--ease-out)]"
|
|
136
|
+
"sa:origin-(--radix-select-content-transform-origin) sa:outline-none",
|
|
137
|
+
"sa:data-[state=open]:animate-[satin-enter_var(--sa-duration-base)_var(--sa-ease-out)]"
|
|
135
138
|
),
|
|
136
|
-
children: /* @__PURE__ */ jsx(Select$1.Viewport, { className: "flex flex-col gap-1 p-1", children: groups.map((g, gi) => {
|
|
139
|
+
children: /* @__PURE__ */ jsx(Select$1.Viewport, { className: "sa:flex sa:flex-col sa:gap-1 sa:p-1", children: groups.map((g, gi) => {
|
|
137
140
|
const rows = g.options.map((o) => /* @__PURE__ */ jsx(
|
|
138
141
|
Select$1.Item,
|
|
139
142
|
{
|
|
@@ -141,7 +144,7 @@ function Select({
|
|
|
141
144
|
disabled: o.disabled,
|
|
142
145
|
textValue: o.label,
|
|
143
146
|
"data-slot": "select-item",
|
|
144
|
-
className: cn(menuItemClass, "data-[state=checked]:bg-bg-selected"),
|
|
147
|
+
className: cn(menuItemClass, "sa:data-[state=checked]:bg-bg-selected"),
|
|
145
148
|
children: /* @__PURE__ */ jsx(
|
|
146
149
|
MenuItemContent,
|
|
147
150
|
{
|
|
@@ -171,5 +174,3 @@ function Select({
|
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
export { FieldChrome, Select, SelectChevron, isOptionGroups, useFieldChrome };
|
|
174
|
-
//# sourceMappingURL=chunk-72OCFAPT.js.map
|
|
175
|
-
//# sourceMappingURL=chunk-72OCFAPT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn } from './chunk-
|
|
1
|
+
import { cn } from './chunk-O46O6LFQ.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -228,13 +228,11 @@ function FlappySprite({ size = 16, run = true, className }) {
|
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
230
|
function AgentLoading({ label = "Thinking\u2026", time, indicator = "tetris", glimmer = "color", className, ...props }) {
|
|
231
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-loading", role: "status", "aria-live": "polite", className: cn("flex items-center gap-3 p-1", className), ...props, children: [
|
|
231
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-loading", role: "status", "aria-live": "polite", className: cn("sa:flex sa:items-center sa:gap-3 sa:p-1", className), ...props, children: [
|
|
232
232
|
indicator === "flappy" ? /* @__PURE__ */ jsx(FlappySprite, { size: 16 }) : /* @__PURE__ */ jsx(TetrisMark, { glimmer }),
|
|
233
|
-
indicator === "tetris" ? /* @__PURE__ */ jsx(TetrisLabel, { glimmer, className: "text-sm whitespace-nowrap", children: label }) : /* @__PURE__ */ jsx(ShimmerLabel, { className: "text-sm whitespace-nowrap", children: label }),
|
|
234
|
-
time != null && /* @__PURE__ */ jsx("span", { className: "text-sm whitespace-nowrap text-text-subtle tabular-nums", children: time })
|
|
233
|
+
indicator === "tetris" ? /* @__PURE__ */ jsx(TetrisLabel, { glimmer, className: "sa:text-sm sa:whitespace-nowrap", children: label }) : /* @__PURE__ */ jsx(ShimmerLabel, { className: "sa:text-sm sa:whitespace-nowrap", children: label }),
|
|
234
|
+
time != null && /* @__PURE__ */ jsx("span", { className: "sa:text-sm sa:whitespace-nowrap sa:text-text-subtle sa:tabular-nums", children: time })
|
|
235
235
|
] });
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
export { AgentLoading, FlappySprite, ShimmerLabel, TetrisLabel, TetrisMark, TetrisStill };
|
|
239
|
-
//# sourceMappingURL=chunk-KNUWZNFV.js.map
|
|
240
|
-
//# sourceMappingURL=chunk-KNUWZNFV.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Button } from './chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { Button } from './chunk-T6L32XXH.js';
|
|
2
|
+
import { useSatinLabels } from './chunk-SSOFFQ5T.js';
|
|
3
|
+
import { cn } from './chunk-O46O6LFQ.js';
|
|
3
4
|
import 'react';
|
|
4
5
|
import { HoverCard } from 'radix-ui';
|
|
5
6
|
import { Xmark, ArrowUpRight, NavArrowUp, NavArrowDown } from 'iconoir-react';
|
|
@@ -25,23 +26,23 @@ function Attachment({
|
|
|
25
26
|
{
|
|
26
27
|
"data-slot": "attachment",
|
|
27
28
|
className: cn(
|
|
28
|
-
"group/attachment relative inline-flex max-w-full shrink-0 items-center border border-border-default bg-bg-popover",
|
|
29
|
-
"[box-shadow:0_1px_1px_0_var(--effect-shadow-xs)]",
|
|
30
|
-
"transition-[background-color,border-color,box-shadow] duration-(--duration-fast) ease-(--ease-out)",
|
|
31
|
-
lg ? "gap-2.5 px-2" : "h-control-height gap-1.5 pl-2",
|
|
32
|
-
!lg && (onRemove ? "pr-0.5" : "pr-2.5"),
|
|
33
|
-
lg && (rounded ? "rounded-pill py-1" : "rounded-xl py-1.5"),
|
|
34
|
-
!lg && (rounded ? "rounded-pill" : "rounded-md"),
|
|
29
|
+
"sa:group/attachment sa:relative sa:inline-flex sa:max-w-full sa:shrink-0 sa:items-center sa:border sa:border-border-default sa:bg-bg-popover",
|
|
30
|
+
"sa:[box-shadow:0_1px_1px_0_var(--effect-shadow-xs)]",
|
|
31
|
+
"sa:transition-[background-color,border-color,box-shadow] sa:duration-(--sa-duration-fast) sa:ease-(--sa-ease-out)",
|
|
32
|
+
lg ? "sa:gap-2.5 sa:px-2" : "sa:h-control-height sa:gap-1.5 sa:pl-2",
|
|
33
|
+
!lg && (onRemove ? "sa:pr-0.5" : "sa:pr-2.5"),
|
|
34
|
+
lg && (rounded ? "sa:rounded-pill sa:py-1" : "sa:rounded-xl sa:py-1.5"),
|
|
35
|
+
!lg && (rounded ? "sa:rounded-pill" : "sa:rounded-md"),
|
|
35
36
|
// Hover (satin-pressed, declared later, wins while pressed)
|
|
36
|
-
"satin-hover:border-border-strong",
|
|
37
|
-
!lg && "satin-hover:bg-bg-canvas",
|
|
37
|
+
"sa:satin-hover:border-border-strong",
|
|
38
|
+
!lg && "sa:satin-hover:bg-bg-canvas",
|
|
38
39
|
// Pressed
|
|
39
|
-
"satin-pressed:border-border-strong satin-pressed:bg-bg-muted",
|
|
40
|
+
"sa:satin-pressed:border-border-strong sa:satin-pressed:bg-bg-muted",
|
|
40
41
|
// Focus
|
|
41
|
-
"has-[[data-attachment-main]:focus-visible]:border-border-default has-[[data-attachment-main]:focus-visible]:bg-bg-popover",
|
|
42
|
-
"has-[[data-attachment-main]:focus-visible]:[box-shadow:0_1px_2px_0_var(--effect-shadow-xs),0_0_0_2px_var(--action-focus-ring)]",
|
|
43
|
-
"data-[force=focus]:border-border-default data-[force=focus]:bg-bg-popover",
|
|
44
|
-
"data-[force=focus]:[box-shadow:0_1px_2px_0_var(--effect-shadow-xs),0_0_0_2px_var(--action-focus-ring)]",
|
|
42
|
+
"sa:has-[[data-attachment-main]:focus-visible]:border-border-default sa:has-[[data-attachment-main]:focus-visible]:bg-bg-popover",
|
|
43
|
+
"sa:has-[[data-attachment-main]:focus-visible]:[box-shadow:0_1px_2px_0_var(--effect-shadow-xs),0_0_0_2px_var(--action-focus-ring)]",
|
|
44
|
+
"sa:data-[force=focus]:border-border-default sa:data-[force=focus]:bg-bg-popover",
|
|
45
|
+
"sa:data-[force=focus]:[box-shadow:0_1px_2px_0_var(--effect-shadow-xs),0_0_0_2px_var(--action-focus-ring)]",
|
|
45
46
|
className
|
|
46
47
|
),
|
|
47
48
|
...props,
|
|
@@ -53,32 +54,32 @@ function Attachment({
|
|
|
53
54
|
"data-attachment-main": "",
|
|
54
55
|
onClick: onOpen,
|
|
55
56
|
className: cn(
|
|
56
|
-
"flex min-w-0 items-center text-left outline-none",
|
|
57
|
+
"sa:flex sa:min-w-0 sa:items-center sa:text-left sa:outline-none",
|
|
57
58
|
// The whole chip is the click target; the remove button sits above it.
|
|
58
|
-
"after:absolute after:inset-0 after:rounded-[inherit]",
|
|
59
|
-
lg ? "gap-2.5" : "gap-1.5"
|
|
59
|
+
"sa:after:absolute sa:after:inset-0 sa:after:rounded-[inherit]",
|
|
60
|
+
lg ? "sa:gap-2.5" : "sa:gap-1.5"
|
|
60
61
|
),
|
|
61
62
|
children: lg ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
63
|
/* @__PURE__ */ jsx(
|
|
63
64
|
"span",
|
|
64
65
|
{
|
|
65
66
|
className: cn(
|
|
66
|
-
"flex size-8 shrink-0 items-center justify-center bg-bg-muted [&_svg]:size-icon-size",
|
|
67
|
-
rounded ? "rounded-xl" : "rounded-md",
|
|
68
|
-
"group-active/attachment:bg-bg-card group-data-[force=pressed]/attachment:bg-bg-card"
|
|
67
|
+
"sa:flex sa:size-8 sa:shrink-0 sa:items-center sa:justify-center sa:bg-bg-muted sa:[&_svg]:size-icon-size",
|
|
68
|
+
rounded ? "sa:rounded-xl" : "sa:rounded-md",
|
|
69
|
+
"sa:group-active/attachment:bg-bg-card sa:group-data-[force=pressed]/attachment:bg-bg-card"
|
|
69
70
|
),
|
|
70
71
|
children: fileIcon
|
|
71
72
|
}
|
|
72
73
|
),
|
|
73
|
-
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
74
|
-
/* @__PURE__ */ jsx("span", { "data-attachment-name": "", className: "max-w-[200px] truncate text-sm font-medium text-text-default", children: name }),
|
|
75
|
-
meta && /* @__PURE__ */ jsx("span", { className: "sr-only", children: ", " }),
|
|
76
|
-
meta && /* @__PURE__ */ jsx("span", { className: "truncate text-xs text-text-muted", children: meta })
|
|
74
|
+
/* @__PURE__ */ jsxs("span", { className: "sa:flex sa:min-w-0 sa:flex-col", children: [
|
|
75
|
+
/* @__PURE__ */ jsx("span", { "data-attachment-name": "", className: "sa:max-w-[200px] sa:truncate sa:text-sm sa:font-medium sa:text-text-default", children: name }),
|
|
76
|
+
meta && /* @__PURE__ */ jsx("span", { className: "sa:sr-only", children: ", " }),
|
|
77
|
+
meta && /* @__PURE__ */ jsx("span", { className: "sa:truncate sa:text-xs sa:text-text-muted", children: meta })
|
|
77
78
|
] })
|
|
78
79
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
|
-
/* @__PURE__ */ jsx("span", { className: "flex shrink-0 [&_svg]:size-icon-size", children: fileIcon }),
|
|
80
|
-
/* @__PURE__ */ jsx("span", { "data-attachment-name": "", className: "max-w-[200px] truncate text-sm font-medium text-text-default", children: name }),
|
|
81
|
-
meta && /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
|
|
80
|
+
/* @__PURE__ */ jsx("span", { className: "sa:flex sa:shrink-0 sa:[&_svg]:size-icon-size", children: fileIcon }),
|
|
81
|
+
/* @__PURE__ */ jsx("span", { "data-attachment-name": "", className: "sa:max-w-[200px] sa:truncate sa:text-sm sa:font-medium sa:text-text-default", children: name }),
|
|
82
|
+
meta && /* @__PURE__ */ jsxs("span", { className: "sa:sr-only", children: [
|
|
82
83
|
", ",
|
|
83
84
|
meta
|
|
84
85
|
] })
|
|
@@ -94,7 +95,7 @@ function Attachment({
|
|
|
94
95
|
iconOnly: true,
|
|
95
96
|
"aria-label": `Remove ${name}`,
|
|
96
97
|
onClick: onRemove,
|
|
97
|
-
className: "relative z-10",
|
|
98
|
+
className: "sa:relative sa:z-10",
|
|
98
99
|
children: /* @__PURE__ */ jsx(Xmark, { "aria-hidden": true })
|
|
99
100
|
}
|
|
100
101
|
)
|
|
@@ -110,7 +111,7 @@ function Attachment({
|
|
|
110
111
|
side: "top",
|
|
111
112
|
align: "start",
|
|
112
113
|
sideOffset: 8,
|
|
113
|
-
className: "z-50 outline-none data-[state=open]:[animation:satin-enter_var(--duration-fast)_var(--ease-out)]",
|
|
114
|
+
className: "sa:z-50 sa:outline-none sa:data-[state=open]:[animation:satin-enter_var(--sa-duration-fast)_var(--sa-ease-out)]",
|
|
114
115
|
children: preview
|
|
115
116
|
}
|
|
116
117
|
) })
|
|
@@ -121,7 +122,7 @@ function AttachmentGroup({ className, ...props }) {
|
|
|
121
122
|
"div",
|
|
122
123
|
{
|
|
123
124
|
"data-slot": "attachment-group",
|
|
124
|
-
className: cn("flex max-w-[576px] flex-wrap items-start gap-1 [&>*]:shrink-0", className),
|
|
125
|
+
className: cn("sa:flex sa:max-w-[576px] sa:flex-wrap sa:items-start sa:gap-1 sa:[&>*]:shrink-0", className),
|
|
125
126
|
...props
|
|
126
127
|
}
|
|
127
128
|
);
|
|
@@ -141,41 +142,41 @@ function AttachmentPreview({
|
|
|
141
142
|
{
|
|
142
143
|
"data-slot": "attachment-preview",
|
|
143
144
|
className: cn(
|
|
144
|
-
"flex w-[296px] flex-col overflow-clip rounded-xl border border-border-default bg-bg-popover",
|
|
145
|
-
"[box-shadow:0_4px_6px_-1px_var(--effect-shadow-sm),0_2px_4px_-2px_var(--effect-shadow-sm)]",
|
|
145
|
+
"sa:flex sa:w-[296px] sa:flex-col sa:overflow-clip sa:rounded-xl sa:border sa:border-border-default sa:bg-bg-popover",
|
|
146
|
+
"sa:[box-shadow:0_4px_6px_-1px_var(--effect-shadow-sm),0_2px_4px_-2px_var(--effect-shadow-sm)]",
|
|
146
147
|
className
|
|
147
148
|
),
|
|
148
149
|
...props,
|
|
149
150
|
children: [
|
|
150
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-2 [&_svg]:size-icon-size", children: [
|
|
151
|
-
/* @__PURE__ */ jsx("span", { className: "flex shrink-0", children: icon ?? /* @__PURE__ */ jsx(FileIcon, { type: "pdf" }) }),
|
|
152
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-medium text-text-default", children: name })
|
|
151
|
+
/* @__PURE__ */ jsxs("div", { className: "sa:flex sa:items-center sa:gap-2 sa:px-3 sa:py-2 sa:[&_svg]:size-icon-size", children: [
|
|
152
|
+
/* @__PURE__ */ jsx("span", { className: "sa:flex sa:shrink-0", children: icon ?? /* @__PURE__ */ jsx(FileIcon, { type: "pdf" }) }),
|
|
153
|
+
/* @__PURE__ */ jsx("span", { className: "sa:min-w-0 sa:flex-1 sa:truncate sa:text-sm sa:font-medium sa:text-text-default", children: name })
|
|
153
154
|
] }),
|
|
154
|
-
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
155
|
+
/* @__PURE__ */ jsxs("div", { className: "sa:relative", children: [
|
|
155
156
|
/* @__PURE__ */ jsx(
|
|
156
157
|
"div",
|
|
157
158
|
{
|
|
158
159
|
tabIndex: 0,
|
|
159
160
|
"aria-label": `Preview of ${name}`,
|
|
160
161
|
className: cn(
|
|
161
|
-
"h-[176px] overflow-x-clip overflow-y-auto pr-4 pl-3 outline-none",
|
|
162
|
-
"[scrollbar-color:var(--border-strong)_transparent] [scrollbar-width:thin]",
|
|
163
|
-
"focus-visible:[box-shadow:inset_0_0_0_2px_var(--action-focus-ring)]"
|
|
162
|
+
"sa:h-[176px] sa:overflow-x-clip sa:overflow-y-auto sa:pr-4 sa:pl-3 sa:outline-none",
|
|
163
|
+
"sa:[scrollbar-color:var(--border-strong)_transparent] sa:[scrollbar-width:thin]",
|
|
164
|
+
"sa:focus-visible:[box-shadow:inset_0_0_0_2px_var(--action-focus-ring)]"
|
|
164
165
|
),
|
|
165
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 pt-2 pb-3", children })
|
|
166
|
+
children: /* @__PURE__ */ jsx("div", { className: "sa:flex sa:flex-col sa:gap-2 sa:pt-2 sa:pb-3", children })
|
|
166
167
|
}
|
|
167
168
|
),
|
|
168
169
|
/* @__PURE__ */ jsx(
|
|
169
170
|
"div",
|
|
170
171
|
{
|
|
171
172
|
"aria-hidden": true,
|
|
172
|
-
className: "pointer-events-none absolute right-2.5 bottom-0 left-0 h-8 bg-linear-to-b from-transparent to-bg-popover"
|
|
173
|
+
className: "sa:pointer-events-none sa:absolute sa:right-2.5 sa:bottom-0 sa:left-0 sa:h-8 sa:bg-linear-to-b sa:from-transparent sa:to-bg-popover"
|
|
173
174
|
}
|
|
174
175
|
)
|
|
175
176
|
] }),
|
|
176
|
-
/* @__PURE__ */ jsx("div", { className: "h-px bg-border-subtle" }),
|
|
177
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-2 py-1.5", children: [
|
|
178
|
-
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 items-center gap-1", children: navigation }),
|
|
177
|
+
/* @__PURE__ */ jsx("div", { className: "sa:h-px sa:bg-border-subtle" }),
|
|
178
|
+
/* @__PURE__ */ jsxs("div", { className: "sa:flex sa:items-center sa:gap-2 sa:px-2 sa:py-1.5", children: [
|
|
179
|
+
/* @__PURE__ */ jsx("div", { className: "sa:flex sa:min-w-0 sa:flex-1 sa:items-center sa:gap-1", children: navigation }),
|
|
179
180
|
/* @__PURE__ */ jsxs(Button, { variant: "tertiary", size: "xs", onClick: onOpen, children: [
|
|
180
181
|
openLabel,
|
|
181
182
|
/* @__PURE__ */ jsx(ArrowUpRight, { "aria-hidden": true })
|
|
@@ -191,10 +192,11 @@ function AttachmentPreviewPager({
|
|
|
191
192
|
onPrevious,
|
|
192
193
|
onNext
|
|
193
194
|
}) {
|
|
195
|
+
const labels = useSatinLabels();
|
|
194
196
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
195
|
-
/* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", shape: "rounded", iconOnly: true, "aria-label":
|
|
196
|
-
/* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", shape: "rounded", iconOnly: true, "aria-label":
|
|
197
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs whitespace-nowrap text-text-muted", "aria-live": "polite", children: [
|
|
197
|
+
/* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", shape: "rounded", iconOnly: true, "aria-label": labels.previousSection, disabled: page <= 1, onClick: onPrevious, children: /* @__PURE__ */ jsx(NavArrowUp, { "aria-hidden": true }) }),
|
|
198
|
+
/* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", shape: "rounded", iconOnly: true, "aria-label": labels.nextSection, disabled: page >= total, onClick: onNext, children: /* @__PURE__ */ jsx(NavArrowDown, { "aria-hidden": true }) }),
|
|
199
|
+
/* @__PURE__ */ jsxs("span", { className: "sa:text-xs sa:whitespace-nowrap sa:text-text-muted", "aria-live": "polite", children: [
|
|
198
200
|
"Page ",
|
|
199
201
|
page,
|
|
200
202
|
" of ",
|
|
@@ -207,7 +209,8 @@ function AttachmentPreviewSheets({
|
|
|
207
209
|
value,
|
|
208
210
|
onValueChange
|
|
209
211
|
}) {
|
|
210
|
-
|
|
212
|
+
const labels = useSatinLabels();
|
|
213
|
+
return /* @__PURE__ */ jsx("div", { role: "tablist", "aria-label": labels.sheets, className: "sa:flex sa:items-center sa:gap-1", children: sheets.map((sheet) => {
|
|
211
214
|
const selected = sheet === value;
|
|
212
215
|
return /* @__PURE__ */ jsx(
|
|
213
216
|
"button",
|
|
@@ -217,10 +220,10 @@ function AttachmentPreviewSheets({
|
|
|
217
220
|
"aria-selected": selected,
|
|
218
221
|
onClick: () => onValueChange?.(sheet),
|
|
219
222
|
className: cn(
|
|
220
|
-
"rounded-sm px-2 py-0.5 text-xs whitespace-nowrap outline-none",
|
|
221
|
-
"transition-[background-color,color,box-shadow] duration-(--duration-fast) ease-(--ease-out)",
|
|
222
|
-
"focus-visible:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
|
|
223
|
-
selected ? "bg-bg-muted text-text-default" : "text-text-muted hover:text-text-default"
|
|
223
|
+
"sa:rounded-sm sa:px-2 sa:py-0.5 sa:text-xs sa:whitespace-nowrap sa:outline-none",
|
|
224
|
+
"sa:transition-[background-color,color,box-shadow] sa:duration-(--sa-duration-fast) sa:ease-(--sa-ease-out)",
|
|
225
|
+
"sa:focus-visible:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
|
|
226
|
+
selected ? "sa:bg-bg-muted sa:text-text-default" : "sa:text-text-muted sa:hover:text-text-default"
|
|
224
227
|
),
|
|
225
228
|
children: sheet
|
|
226
229
|
},
|
|
@@ -229,9 +232,9 @@ function AttachmentPreviewSheets({
|
|
|
229
232
|
}) });
|
|
230
233
|
}
|
|
231
234
|
function FileIcon({ type, className }) {
|
|
232
|
-
const page = type === "pdf" ? "var(--color-red-500)" : "var(--color-green-700)";
|
|
233
|
-
const fold = type === "pdf" ? "var(--color-red-300)" : "var(--color-green-300)";
|
|
234
|
-
return /* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, className: cn("size-icon-size shrink-0", className), children: [
|
|
235
|
+
const page = type === "pdf" ? "var(--sa-color-red-500)" : "var(--sa-color-green-700)";
|
|
236
|
+
const fold = type === "pdf" ? "var(--sa-color-red-300)" : "var(--sa-color-green-300)";
|
|
237
|
+
return /* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, className: cn("sa:size-icon-size sa:shrink-0", className), children: [
|
|
235
238
|
/* @__PURE__ */ jsx(
|
|
236
239
|
"path",
|
|
237
240
|
{
|
|
@@ -246,11 +249,11 @@ function FileIcon({ type, className }) {
|
|
|
246
249
|
fill: fold
|
|
247
250
|
}
|
|
248
251
|
),
|
|
249
|
-
type === "pdf" ? /* @__PURE__ */ jsxs("g", { fill: "var(--color-white)", children: [
|
|
252
|
+
type === "pdf" ? /* @__PURE__ */ jsxs("g", { fill: "var(--sa-color-white)", children: [
|
|
250
253
|
/* @__PURE__ */ jsx("path", { d: "M4.62457 12.9938V10.3491H5.66796C5.86855 10.3491 6.03943 10.3874 6.18062 10.4641C6.3218 10.5398 6.42941 10.6453 6.50345 10.7804C6.57835 10.9147 6.61579 11.0697 6.61579 11.2453C6.61579 11.4209 6.57792 11.5759 6.50216 11.7102C6.4264 11.8445 6.31664 11.9491 6.17287 12.024C6.02996 12.0989 5.85693 12.1363 5.65376 12.1363H4.98873V11.6882H5.56337C5.67098 11.6882 5.75965 11.6697 5.82938 11.6327C5.89997 11.5948 5.95248 11.5428 5.98692 11.4765C6.02222 11.4093 6.03986 11.3323 6.03986 11.2453C6.03986 11.1575 6.02222 11.0809 5.98692 11.0155C5.95248 10.9492 5.89997 10.898 5.82938 10.8618C5.75879 10.8248 5.66925 10.8063 5.56078 10.8063H5.18372V12.9938H4.62457Z" }),
|
|
251
254
|
/* @__PURE__ */ jsx("path", { d: "M7.91648 12.9938H6.97898V10.3491H7.92423C8.19024 10.3491 8.41923 10.4021 8.61121 10.508C8.80319 10.613 8.95083 10.7641 9.05413 10.9612C9.1583 11.1584 9.21038 11.3943 9.21038 11.6689C9.21038 11.9444 9.1583 12.1811 9.05413 12.3791C8.95083 12.5771 8.80233 12.729 8.60863 12.8349C8.41579 12.9408 8.18507 12.9938 7.91648 12.9938ZM7.53812 12.5147H7.89323C8.05852 12.5147 8.19756 12.4854 8.31033 12.4269C8.42397 12.3675 8.5092 12.2758 8.56601 12.1518C8.62369 12.027 8.65253 11.866 8.65253 11.6689C8.65253 11.4735 8.62369 11.3138 8.56601 11.1898C8.5092 11.0658 8.4244 10.9746 8.31162 10.916C8.19885 10.8575 8.05981 10.8282 7.89453 10.8282H7.53812V12.5147Z" }),
|
|
252
255
|
/* @__PURE__ */ jsx("path", { d: "M9.62457 12.9938V10.3491H11.3756V10.8101H10.1837V11.4403H11.2594V11.9013H10.1837V12.9938H9.62457Z" })
|
|
253
|
-
] }) : /* @__PURE__ */ jsxs("g", { fill: "var(--color-white)", children: [
|
|
256
|
+
] }) : /* @__PURE__ */ jsxs("g", { fill: "var(--sa-color-white)", children: [
|
|
254
257
|
/* @__PURE__ */ jsx("path", { d: "M4.54258 10.5469L4.99589 11.3131H5.01346L5.46897 10.5469H6.00571L5.31969 11.6709L6.02107 12.7949H5.47446L5.01346 12.0276H4.99589L4.53489 12.7949H3.99047L4.69405 11.6709L4.00364 10.5469H4.54258Z" }),
|
|
255
258
|
/* @__PURE__ */ jsx("path", { d: "M6.30646 12.7949V10.5469H6.78173V12.403H7.74544V12.7949H6.30646Z" }),
|
|
256
259
|
/* @__PURE__ */ jsx("path", { d: "M9.27965 11.1934C9.27086 11.1049 9.23318 11.0361 9.16659 10.9871C9.1 10.9381 9.00963 10.9135 8.89548 10.9135C8.81791 10.9135 8.75242 10.9245 8.699 10.9465C8.64559 10.9677 8.60461 10.9973 8.57607 11.0354C8.54826 11.0734 8.53436 11.1166 8.53436 11.1649C8.5329 11.2051 8.54131 11.2403 8.5596 11.2703C8.57863 11.3003 8.60461 11.3263 8.63754 11.3482C8.67046 11.3694 8.70852 11.3881 8.75169 11.4042C8.79486 11.4196 8.84096 11.4327 8.88999 11.4437L9.09195 11.492C9.19001 11.5139 9.28001 11.5432 9.36197 11.5798C9.44392 11.6164 9.5149 11.6614 9.57491 11.7148C9.63491 11.7682 9.68138 11.8312 9.71431 11.9036C9.74797 11.976 9.76516 12.0591 9.76589 12.1528C9.76516 12.2903 9.73004 12.4096 9.66052 12.5106C9.59174 12.6108 9.49222 12.6888 9.36197 12.7444C9.23245 12.7993 9.07622 12.8267 8.89328 12.8267C8.71181 12.8267 8.55375 12.7989 8.41911 12.7433C8.2852 12.6877 8.18056 12.6054 8.10519 12.4963C8.03055 12.3866 7.9914 12.2508 7.98774 12.0891H8.44765C8.45277 12.1645 8.47436 12.2274 8.51241 12.2779C8.55119 12.3277 8.60278 12.3653 8.66717 12.3909C8.7323 12.4158 8.80584 12.4283 8.88779 12.4283C8.96829 12.4283 9.03817 12.4166 9.09744 12.3931C9.15744 12.3697 9.20391 12.3372 9.23684 12.2955C9.26977 12.2537 9.28623 12.2058 9.28623 12.1517C9.28623 12.1012 9.27123 12.0587 9.24123 12.0243C9.21196 11.9899 9.16879 11.9607 9.11171 11.9365C9.05536 11.9124 8.98621 11.8904 8.90426 11.8707L8.65949 11.8092C8.46997 11.7631 8.32032 11.691 8.21056 11.593C8.1008 11.4949 8.04628 11.3628 8.04701 11.1967C8.04628 11.0606 8.0825 10.9417 8.15568 10.84C8.22959 10.7383 8.33093 10.6589 8.45972 10.6018C8.58851 10.5447 8.73486 10.5162 8.89877 10.5162C9.06561 10.5162 9.21123 10.5447 9.33562 10.6018C9.46075 10.6589 9.55808 10.7383 9.62759 10.84C9.69711 10.9417 9.73296 11.0595 9.73516 11.1934H9.27965Z" }),
|
|
@@ -260,5 +263,3 @@ function FileIcon({ type, className }) {
|
|
|
260
263
|
}
|
|
261
264
|
|
|
262
265
|
export { Attachment, AttachmentGroup, AttachmentPreview, AttachmentPreviewPager, AttachmentPreviewSheets, FileIcon };
|
|
263
|
-
//# sourceMappingURL=chunk-H4NU7NPO.js.map
|
|
264
|
-
//# sourceMappingURL=chunk-H4NU7NPO.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { menuItemClass, MenuItemContent } from './chunk-
|
|
2
|
-
import { Kbd, KbdHint, KbdArrowUp, KbdArrowDown, KbdReturn } from './chunk-
|
|
3
|
-
import {
|
|
1
|
+
import { menuItemClass, MenuItemContent } from './chunk-BR2B4OIT.js';
|
|
2
|
+
import { Kbd, KbdHint, KbdArrowUp, KbdArrowDown, KbdReturn } from './chunk-57QEOCDZ.js';
|
|
3
|
+
import { useSatinLabels } from './chunk-SSOFFQ5T.js';
|
|
4
|
+
import { cn } from './chunk-O46O6LFQ.js';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { Dialog } from 'radix-ui';
|
|
6
7
|
import { Search } from 'iconoir-react';
|
|
@@ -17,14 +18,16 @@ function CommandMenu({
|
|
|
17
18
|
defaultOpen = false,
|
|
18
19
|
onOpenChange,
|
|
19
20
|
hotkey = true,
|
|
20
|
-
placeholder
|
|
21
|
+
placeholder,
|
|
21
22
|
emptyText = (q) => `No results for \u201C${q}\u201D`,
|
|
22
23
|
hints = true,
|
|
23
24
|
modal = true,
|
|
24
25
|
container,
|
|
25
26
|
onOpenAutoFocus,
|
|
26
|
-
className
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
27
29
|
}) {
|
|
30
|
+
const labels = useSatinLabels();
|
|
28
31
|
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);
|
|
29
32
|
const open = openProp ?? uncontrolledOpen;
|
|
30
33
|
const setOpen = React.useCallback(
|
|
@@ -69,24 +72,25 @@ function CommandMenu({
|
|
|
69
72
|
const position = container ? "absolute" : "fixed";
|
|
70
73
|
let index = -1;
|
|
71
74
|
return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: setOpen, modal, children: /* @__PURE__ */ jsxs(Dialog.Portal, { container, children: [
|
|
72
|
-
/* @__PURE__ */ jsx(Dialog.Overlay, { className: cn(position, "inset-0 z-50 bg-black-a40") }),
|
|
73
|
-
/* @__PURE__ */ jsx("div", { className: cn(position, "pointer-events-none inset-0 z-50 flex items-center justify-center p-4"), children: /* @__PURE__ */ jsxs(
|
|
75
|
+
/* @__PURE__ */ jsx(Dialog.Overlay, { className: cn(position, "sa:inset-0 sa:z-50 sa:bg-black-a40") }),
|
|
76
|
+
/* @__PURE__ */ jsx("div", { className: cn(position, "sa:pointer-events-none sa:inset-0 sa:z-50 sa:flex sa:items-center sa:justify-center sa:p-4"), children: /* @__PURE__ */ jsxs(
|
|
74
77
|
Dialog.Content,
|
|
75
78
|
{
|
|
76
|
-
"data-slot": "command-menu",
|
|
77
79
|
"aria-describedby": void 0,
|
|
80
|
+
...props,
|
|
81
|
+
"data-slot": "command-menu",
|
|
78
82
|
onOpenAutoFocus,
|
|
79
83
|
className: cn(
|
|
80
|
-
"pointer-events-auto flex h-fit max-h-[min(480px,76vh)] w-[520px] max-w-full flex-col overflow-hidden",
|
|
81
|
-
"rounded-2xl border border-border-subtle bg-bg-popover",
|
|
82
|
-
"[box-shadow:0_4px_6px_-4px_var(--effect-shadow-sm),0_10px_15px_-3px_var(--effect-shadow-sm)]",
|
|
83
|
-
"outline-none data-[state=open]:animate-[satin-enter_var(--duration-base)_var(--ease-out)]",
|
|
84
|
+
"sa:pointer-events-auto sa:flex sa:h-fit sa:max-h-[min(480px,76vh)] sa:w-[520px] sa:max-w-full sa:flex-col sa:overflow-hidden",
|
|
85
|
+
"sa:rounded-2xl sa:border sa:border-border-subtle sa:bg-bg-popover",
|
|
86
|
+
"sa:[box-shadow:0_4px_6px_-4px_var(--effect-shadow-sm),0_10px_15px_-3px_var(--effect-shadow-sm)]",
|
|
87
|
+
"sa:outline-none sa:data-[state=open]:animate-[satin-enter_var(--sa-duration-base)_var(--sa-ease-out)]",
|
|
84
88
|
className
|
|
85
89
|
),
|
|
86
90
|
children: [
|
|
87
|
-
/* @__PURE__ */ jsx(Dialog.Title, { className: "sr-only", children:
|
|
88
|
-
/* @__PURE__ */ jsxs("label", { className: "flex h-12 shrink-0 items-center gap-2 border-b border-border-subtle px-4 text-text-muted", children: [
|
|
89
|
-
/* @__PURE__ */ jsx(Search, { "aria-hidden": true, className: "size-4 shrink-0 [stroke-width:1.875]" }),
|
|
91
|
+
/* @__PURE__ */ jsx(Dialog.Title, { className: "sa:sr-only", children: labels.commandMenu }),
|
|
92
|
+
/* @__PURE__ */ jsxs("label", { className: "sa:flex sa:h-12 sa:shrink-0 sa:items-center sa:gap-2 sa:border-b sa:border-border-subtle sa:px-4 sa:text-text-muted", children: [
|
|
93
|
+
/* @__PURE__ */ jsx(Search, { "aria-hidden": true, className: "sa:size-4 sa:shrink-0 sa:[stroke-width:1.875]" }),
|
|
90
94
|
/* @__PURE__ */ jsx(
|
|
91
95
|
"input",
|
|
92
96
|
{
|
|
@@ -95,9 +99,9 @@ function CommandMenu({
|
|
|
95
99
|
"aria-controls": listId,
|
|
96
100
|
"aria-autocomplete": "list",
|
|
97
101
|
"aria-activedescendant": flat[active] ? optionId(active) : void 0,
|
|
98
|
-
"aria-label":
|
|
102
|
+
"aria-label": labels.searchCommands,
|
|
99
103
|
value: query,
|
|
100
|
-
placeholder,
|
|
104
|
+
placeholder: placeholder ?? labels.commandPlaceholder,
|
|
101
105
|
onChange: (e) => {
|
|
102
106
|
setQuery(e.target.value);
|
|
103
107
|
setActive(0);
|
|
@@ -112,13 +116,13 @@ function CommandMenu({
|
|
|
112
116
|
run(flat[active]);
|
|
113
117
|
}
|
|
114
118
|
},
|
|
115
|
-
className: "min-w-0 flex-1 bg-transparent text-base leading-[21px] text-text-default outline-none placeholder:text-text-muted focus-visible:ring-0"
|
|
119
|
+
className: "sa:min-w-0 sa:flex-1 sa:bg-transparent sa:text-base sa:leading-[21px] sa:text-text-default sa:outline-none sa:placeholder:text-text-muted sa:focus-visible:ring-0"
|
|
116
120
|
}
|
|
117
121
|
),
|
|
118
122
|
/* @__PURE__ */ jsx(Kbd, { size: "md", "aria-hidden": true, children: "Esc" })
|
|
119
123
|
] }),
|
|
120
|
-
/* @__PURE__ */ jsx("div", { ref: listRef, id: listId, role: "listbox", "aria-label":
|
|
121
|
-
/* @__PURE__ */ jsx("div", { id: `${listId}-g${gi}`, className: "flex h-6 items-center px-2 text-xs leading-3 font-medium tracking-normal text-text-muted", children: g.label }),
|
|
124
|
+
/* @__PURE__ */ jsx("div", { ref: listRef, id: listId, role: "listbox", "aria-label": labels.commands, className: "sa:flex sa:min-h-0 sa:flex-col sa:gap-2 sa:overflow-y-auto sa:p-2", children: flat.length === 0 ? /* @__PURE__ */ jsx("p", { className: "sa:px-2 sa:py-8 sa:text-center sa:text-sm sa:text-text-muted", children: emptyText(query) }) : shown.map((g, gi) => /* @__PURE__ */ jsxs("div", { role: "group", "aria-labelledby": `${listId}-g${gi}`, className: "sa:flex sa:flex-col", children: [
|
|
125
|
+
/* @__PURE__ */ jsx("div", { id: `${listId}-g${gi}`, className: "sa:flex sa:h-6 sa:items-center sa:px-2 sa:text-xs sa:leading-3 sa:font-medium sa:tracking-normal sa:text-text-muted", children: g.label }),
|
|
122
126
|
g.items.map((item) => {
|
|
123
127
|
index += 1;
|
|
124
128
|
const i = index;
|
|
@@ -150,10 +154,10 @@ function CommandMenu({
|
|
|
150
154
|
);
|
|
151
155
|
})
|
|
152
156
|
] }, gi)) }),
|
|
153
|
-
hints && /* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: "flex h-10 shrink-0 items-center gap-4 border-t border-border-subtle px-4", children: [
|
|
154
|
-
/* @__PURE__ */ jsx(KbdHint, { keys: [/* @__PURE__ */ jsx(KbdArrowUp, {}, "up"), /* @__PURE__ */ jsx(KbdArrowDown, {}, "down")], label:
|
|
155
|
-
/* @__PURE__ */ jsx(KbdHint, { keys: [/* @__PURE__ */ jsx(KbdReturn, {}, "return")], label:
|
|
156
|
-
/* @__PURE__ */ jsx(KbdHint, { className: "ml-auto", keys: ["Esc"], label:
|
|
157
|
+
hints && /* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: "sa:flex sa:h-10 sa:shrink-0 sa:items-center sa:gap-4 sa:border-t sa:border-border-subtle sa:px-4", children: [
|
|
158
|
+
/* @__PURE__ */ jsx(KbdHint, { keys: [/* @__PURE__ */ jsx(KbdArrowUp, {}, "up"), /* @__PURE__ */ jsx(KbdArrowDown, {}, "down")], label: labels.navigate }),
|
|
159
|
+
/* @__PURE__ */ jsx(KbdHint, { keys: [/* @__PURE__ */ jsx(KbdReturn, {}, "return")], label: labels.openItem }),
|
|
160
|
+
/* @__PURE__ */ jsx(KbdHint, { className: "sa:ml-auto", keys: ["Esc"], label: labels.close })
|
|
157
161
|
] })
|
|
158
162
|
]
|
|
159
163
|
}
|
|
@@ -162,5 +166,3 @@ function CommandMenu({
|
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
export { CommandMenu };
|
|
165
|
-
//# sourceMappingURL=chunk-P4O6TGDR.js.map
|
|
166
|
-
//# sourceMappingURL=chunk-P4O6TGDR.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn } from './chunk-
|
|
1
|
+
import { cn } from './chunk-O46O6LFQ.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -33,7 +33,7 @@ function FormField({
|
|
|
33
33
|
"data-layout": layout,
|
|
34
34
|
"data-invalid": invalid || void 0,
|
|
35
35
|
"data-disabled": disabled || void 0,
|
|
36
|
-
className: cn("flex w-full items-start", layout === "vertical" ? "flex-col gap-2" : "gap-6", className),
|
|
36
|
+
className: cn("sa:flex sa:w-full sa:items-start", layout === "vertical" ? "sa:flex-col sa:gap-2" : "sa:gap-6", className),
|
|
37
37
|
...props,
|
|
38
38
|
children: [
|
|
39
39
|
/* @__PURE__ */ jsxs(
|
|
@@ -41,20 +41,20 @@ function FormField({
|
|
|
41
41
|
{
|
|
42
42
|
htmlFor: id,
|
|
43
43
|
className: cn(
|
|
44
|
-
"flex items-start gap-0.5 text-sm leading-[18px] font-medium text-text-default",
|
|
45
|
-
layout === "horizontal" && "w-40 shrink-0",
|
|
46
|
-
disabled && "opacity-50"
|
|
44
|
+
"sa:flex sa:items-start sa:gap-0.5 sa:text-sm sa:leading-[18px] sa:font-medium sa:text-text-default",
|
|
45
|
+
layout === "horizontal" && "sa:w-40 sa:shrink-0",
|
|
46
|
+
disabled && "sa:opacity-50"
|
|
47
47
|
),
|
|
48
48
|
children: [
|
|
49
49
|
label,
|
|
50
50
|
required && // The required mark from Figma (the `sparkle 2` glyph in _label), 6px, in the label colour.
|
|
51
|
-
/* @__PURE__ */ jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", fill: "currentColor", "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ jsx("path", { d: "M3.63636 2.18023L5.55372 1.41279L6 2.75581L4.04959 3.43605L5.27273 5.14535L4.18182 6L2.95868 4.20349L1.80165 6L0.694215 5.14535L1.91736 3.43605L0 2.75581L0.446281 1.41279L2.31405 2.18023V0H3.63636V2.18023Z" }) })
|
|
51
|
+
/* @__PURE__ */ jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", fill: "currentColor", "aria-hidden": true, className: "sa:shrink-0", children: /* @__PURE__ */ jsx("path", { d: "M3.63636 2.18023L5.55372 1.41279L6 2.75581L4.04959 3.43605L5.27273 5.14535L4.18182 6L2.95868 4.20349L1.80165 6L0.694215 5.14535L1.91736 3.43605L0 2.75581L0.446281 1.41279L2.31405 2.18023V0H3.63636V2.18023Z" }) })
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-full min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
55
|
+
/* @__PURE__ */ jsxs("div", { className: "sa:flex sa:w-full sa:min-w-0 sa:flex-1 sa:flex-col sa:gap-1.5", children: [
|
|
56
56
|
children,
|
|
57
|
-
invalid ? /* @__PURE__ */ jsxs("p", { id: messageId, className: "flex items-start gap-1.5 text-sm text-action-destructive-bg", children: [
|
|
57
|
+
invalid ? /* @__PURE__ */ jsxs("p", { id: messageId, className: "sa:flex sa:items-start sa:gap-1.5 sa:text-sm sa:text-action-destructive-bg", children: [
|
|
58
58
|
/* @__PURE__ */ jsxs(
|
|
59
59
|
"svg",
|
|
60
60
|
{
|
|
@@ -67,7 +67,7 @@ function FormField({
|
|
|
67
67
|
strokeLinecap: "round",
|
|
68
68
|
strokeLinejoin: "round",
|
|
69
69
|
"aria-hidden": true,
|
|
70
|
-
className: "mt-[2.75px] shrink-0",
|
|
70
|
+
className: "sa:mt-[2.75px] sa:shrink-0",
|
|
71
71
|
children: [
|
|
72
72
|
/* @__PURE__ */ jsx("path", { d: "M7 4.67613V7.25806" }),
|
|
73
73
|
/* @__PURE__ */ jsx("path", { d: "M7 9.32422L7.0059 9.31766" }),
|
|
@@ -76,7 +76,7 @@ function FormField({
|
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
78
|
/* @__PURE__ */ jsx("span", { children: error })
|
|
79
|
-
] }) : description && /* @__PURE__ */ jsx("p", { id: messageId, className: cn("text-sm text-text-muted", disabled && "opacity-50"), children: description })
|
|
79
|
+
] }) : description && /* @__PURE__ */ jsx("p", { id: messageId, className: cn("sa:text-sm sa:text-text-muted", disabled && "sa:opacity-50"), children: description })
|
|
80
80
|
] })
|
|
81
81
|
]
|
|
82
82
|
}
|
|
@@ -84,5 +84,3 @@ function FormField({
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export { FormField, useFormField };
|
|
87
|
-
//# sourceMappingURL=chunk-UBNHSZSE.js.map
|
|
88
|
-
//# sourceMappingURL=chunk-UBNHSZSE.js.map
|