@alfadocs/ui-kit 1.134.0 → 1.136.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/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
- package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
- package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
- package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
- package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
- package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
- package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
- package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
- package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
- package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
- package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
- package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
- package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
- package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
- package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
- package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
- package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
- package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
- package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
- package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
- package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
- package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
- package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
- package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
- package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
- package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
- package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
- package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
- package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
- package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
- package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
- package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
- package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
- package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
- package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
- package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
- package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
- package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
- package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
- package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
- package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
- package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +528 -2
- package/dist/agent-i18n/en.json +51 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
- package/dist/components/call-status-chip/index.d.ts +3 -0
- package/dist/components/call-status-chip/index.js +5 -0
- package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
- package/dist/components/calls-panel/calls-panel.d.ts +153 -0
- package/dist/components/calls-panel/index.d.ts +4 -0
- package/dist/components/calls-panel/index.js +6 -0
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +20 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +148 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +37 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +13 -4
- package/dist/i18n/locales/ar.d.ts +162 -0
- package/dist/i18n/locales/ar.js +163 -0
- package/dist/i18n/locales/de.d.ts +162 -0
- package/dist/i18n/locales/de.js +163 -0
- package/dist/i18n/locales/el.d.ts +162 -0
- package/dist/i18n/locales/el.js +163 -0
- package/dist/i18n/locales/en.d.ts +162 -0
- package/dist/i18n/locales/en.js +163 -0
- package/dist/i18n/locales/es.d.ts +162 -0
- package/dist/i18n/locales/es.js +163 -0
- package/dist/i18n/locales/fr.d.ts +162 -0
- package/dist/i18n/locales/fr.js +163 -0
- package/dist/i18n/locales/hi.d.ts +162 -0
- package/dist/i18n/locales/hi.js +163 -0
- package/dist/i18n/locales/it.d.ts +162 -0
- package/dist/i18n/locales/it.js +163 -0
- package/dist/i18n/locales/ja.d.ts +162 -0
- package/dist/i18n/locales/ja.js +163 -0
- package/dist/i18n/locales/nl.d.ts +162 -0
- package/dist/i18n/locales/nl.js +163 -0
- package/dist/i18n/locales/pl.d.ts +162 -0
- package/dist/i18n/locales/pl.js +163 -0
- package/dist/i18n/locales/pt.d.ts +162 -0
- package/dist/i18n/locales/pt.js +163 -0
- package/dist/i18n/locales/ro.d.ts +162 -0
- package/dist/i18n/locales/ro.js +163 -0
- package/dist/i18n/locales/ru.d.ts +162 -0
- package/dist/i18n/locales/ru.js +163 -0
- package/dist/i18n/locales/sq.d.ts +162 -0
- package/dist/i18n/locales/sq.js +163 -0
- package/dist/i18n/locales/sv.d.ts +162 -0
- package/dist/i18n/locales/sv.js +163 -0
- package/dist/i18n/locales/tr.d.ts +162 -0
- package/dist/i18n/locales/tr.js +163 -0
- package/dist/i18n/locales/zh.d.ts +162 -0
- package/dist/i18n/locales/zh.js +163 -0
- package/dist/index.js +905 -893
- package/dist/locales/ar.json +162 -0
- package/dist/locales/de.json +162 -0
- package/dist/locales/el.json +162 -0
- package/dist/locales/en.json +162 -0
- package/dist/locales/es.json +162 -0
- package/dist/locales/fr.json +162 -0
- package/dist/locales/hi.json +162 -0
- package/dist/locales/it.json +162 -0
- package/dist/locales/ja.json +162 -0
- package/dist/locales/nl.json +162 -0
- package/dist/locales/pl.json +162 -0
- package/dist/locales/pt.json +162 -0
- package/dist/locales/ro.json +162 -0
- package/dist/locales/ru.json +162 -0
- package/dist/locales/sq.json +162 -0
- package/dist/locales/sv.json +162 -0
- package/dist/locales/tr.json +162 -0
- package/dist/locales/zh.json +162 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/patient-sign-in/index.js +2 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +1 -0
- package/dist/patterns/signing/index.js +1 -1
- package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useContext as he, useId as me, useState as M, useRef as P, useEffect as De, useMemo as Fe, Fragment as Le, createContext as Ge } from "react";
|
|
3
|
+
import { u as Ke } from "./registry-DvAUVLHh.js";
|
|
4
4
|
import * as o from "@radix-ui/react-select";
|
|
5
5
|
import { c as J } from "./index-D2ZczOXr.js";
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { b as
|
|
12
|
-
import { P as
|
|
13
|
-
import { o as U, b as
|
|
14
|
-
import { C as
|
|
6
|
+
import { useTranslation as We } from "react-i18next";
|
|
7
|
+
import { u as $e, F as qe, a as He } from "./form-field-context-DtiROUJV.js";
|
|
8
|
+
import { g as Me } from "./group-options-BvKhQ3xb.js";
|
|
9
|
+
import { u as Ue } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
|
+
import { u as Xe } from "./use-controllable-state-BiY4xTzM.js";
|
|
11
|
+
import { b as Je } from "./menu-row-BAr8bx1I.js";
|
|
12
|
+
import { P as Qe } from "./popup-region-qz_5_A0V.js";
|
|
13
|
+
import { o as U, b as Ye, d as Ze, c as et } from "./option-row-Dc7BrbK8.js";
|
|
14
|
+
import { C as tt } from "./chevron-up-umRGgtJA.js";
|
|
15
15
|
import { C as ge } from "./chevron-down-DWE7GSq9.js";
|
|
16
|
-
import { C as
|
|
17
|
-
import { u as
|
|
18
|
-
import { X as
|
|
19
|
-
const
|
|
16
|
+
import { C as st } from "./check-DrFSN__t.js";
|
|
17
|
+
import { u as at } from "./use-direction-Dp8h70PP.js";
|
|
18
|
+
import { X as nt } from "./x-B5YnXwCz.js";
|
|
19
|
+
const ot = {
|
|
20
20
|
id: "select",
|
|
21
21
|
// Persisted single choice (value state + set_value) → select_single + set_value,
|
|
22
22
|
// plus open/close of the option list.
|
|
@@ -103,8 +103,7 @@ const nt = {
|
|
|
103
103
|
}, ve = J(
|
|
104
104
|
[
|
|
105
105
|
"ds:group ds:inline-flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full",
|
|
106
|
-
"ds:rounded-[var(--radius-sm)]
|
|
107
|
-
"ds:shadow-[var(--shadow-input)]",
|
|
106
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
108
107
|
"ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
109
108
|
"ds:data-[placeholder]:text-muted-foreground",
|
|
110
109
|
"ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
@@ -122,15 +121,37 @@ const nt = {
|
|
|
122
121
|
},
|
|
123
122
|
tone: {
|
|
124
123
|
default: "",
|
|
125
|
-
error: "ds:
|
|
124
|
+
error: "ds:focus-visible:outline-destructive"
|
|
125
|
+
},
|
|
126
|
+
// `plain` is for a trigger that sits inside another bordered box (a
|
|
127
|
+
// composer toolbar): no edge, fill or shadow, a muted wash on hover.
|
|
128
|
+
appearance: {
|
|
129
|
+
outlined: "ds:border ds:border-[color:var(--control-border)] ds:bg-input ds:shadow-[var(--shadow-input)]",
|
|
130
|
+
plain: "ds:border-0 ds:bg-transparent ds:shadow-none ds:hover:bg-muted ds:data-[state=open]:bg-muted ds:forced-colors:border ds:forced-colors:border-[ButtonText]"
|
|
126
131
|
}
|
|
127
132
|
},
|
|
133
|
+
compoundVariants: [
|
|
134
|
+
{
|
|
135
|
+
appearance: "outlined",
|
|
136
|
+
tone: "error",
|
|
137
|
+
className: "ds:border-destructive"
|
|
138
|
+
},
|
|
139
|
+
// A plain trigger has no edge to turn red, so the error is shown on the
|
|
140
|
+
// text itself: the destructive colour and an underline, which keeps
|
|
141
|
+
// the signal when colour is not seen. Without focus, too.
|
|
142
|
+
{
|
|
143
|
+
appearance: "plain",
|
|
144
|
+
tone: "error",
|
|
145
|
+
className: "ds:text-[color:var(--destructive)] ds:data-[placeholder]:text-[color:var(--destructive)] ds:underline ds:decoration-[color:var(--destructive)] ds:underline-offset-4"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
128
148
|
defaultVariants: {
|
|
129
149
|
size: "md",
|
|
130
|
-
tone: "default"
|
|
150
|
+
tone: "default",
|
|
151
|
+
appearance: "outlined"
|
|
131
152
|
}
|
|
132
153
|
}
|
|
133
|
-
),
|
|
154
|
+
), rt = J(
|
|
134
155
|
[
|
|
135
156
|
"ds:z-[var(--z-dropdown)] ds:overflow-hidden",
|
|
136
157
|
// Never wider than the screen allows: a long option wraps or ends in an
|
|
@@ -148,12 +169,12 @@ const nt = {
|
|
|
148
169
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
149
170
|
"ds:motion-reduce:animate-none"
|
|
150
171
|
].join(" ")
|
|
151
|
-
),
|
|
172
|
+
), dt = J(
|
|
152
173
|
[
|
|
153
174
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center",
|
|
154
175
|
"ds:rounded-[var(--radius-sm)]",
|
|
155
176
|
"ds:text-foreground ds:outline-none ds:select-none",
|
|
156
|
-
|
|
177
|
+
Je.highlighted,
|
|
157
178
|
"ds:data-[disabled]:pointer-events-none ds:data-[disabled]:opacity-50"
|
|
158
179
|
].join(" "),
|
|
159
180
|
{
|
|
@@ -172,28 +193,28 @@ const nt = {
|
|
|
172
193
|
"ds:ps-8 ds:pe-3 ds:py-1.5",
|
|
173
194
|
"type-eyebrow ds:text-muted-foreground",
|
|
174
195
|
"ds:sticky ds:top-0 ds:bg-background"
|
|
175
|
-
].join(" "),
|
|
196
|
+
].join(" "), lt = {
|
|
176
197
|
sm: "ds:size-3.5",
|
|
177
198
|
md: "ds:size-4",
|
|
178
199
|
lg: "ds:size-5"
|
|
179
|
-
},
|
|
200
|
+
}, ct = {
|
|
180
201
|
sm: "ds:start-2",
|
|
181
202
|
md: "ds:start-2",
|
|
182
203
|
lg: "ds:start-3"
|
|
183
204
|
};
|
|
184
|
-
function
|
|
205
|
+
function ut(...t) {
|
|
185
206
|
return (a) => {
|
|
186
207
|
for (const n of t)
|
|
187
208
|
n && (typeof n == "function" ? n(a) : n.current = a);
|
|
188
209
|
};
|
|
189
210
|
}
|
|
190
|
-
const Q =
|
|
211
|
+
const Q = Ge(void 0), be = ({
|
|
191
212
|
open: t,
|
|
192
213
|
defaultOpen: a,
|
|
193
214
|
onOpenChange: n,
|
|
194
|
-
...
|
|
215
|
+
...d
|
|
195
216
|
}) => {
|
|
196
|
-
const [u, l] =
|
|
217
|
+
const [u, l] = Xe({
|
|
197
218
|
value: t,
|
|
198
219
|
defaultValue: a ?? !1,
|
|
199
220
|
onChange: n
|
|
@@ -203,19 +224,19 @@ const Q = Le(void 0), be = ({
|
|
|
203
224
|
{
|
|
204
225
|
open: u ?? !1,
|
|
205
226
|
onOpenChange: l,
|
|
206
|
-
...
|
|
227
|
+
...d
|
|
207
228
|
}
|
|
208
229
|
) });
|
|
209
230
|
};
|
|
210
231
|
be.displayName = "Select.Root";
|
|
211
|
-
const ye =
|
|
212
|
-
({ size: t, tone: a,
|
|
232
|
+
const ye = h(
|
|
233
|
+
({ size: t, tone: a, appearance: n, className: d, children: u, ...l }, b) => /* @__PURE__ */ e(
|
|
213
234
|
o.Trigger,
|
|
214
235
|
{
|
|
215
|
-
ref:
|
|
216
|
-
className: ve({ size: t, tone: a,
|
|
217
|
-
...
|
|
218
|
-
children:
|
|
236
|
+
ref: b,
|
|
237
|
+
className: ve({ size: t, tone: a, appearance: n, className: d }),
|
|
238
|
+
...l,
|
|
239
|
+
children: u
|
|
219
240
|
}
|
|
220
241
|
)
|
|
221
242
|
);
|
|
@@ -223,29 +244,29 @@ ye.displayName = "Select.Trigger";
|
|
|
223
244
|
const X = { "data-select-value": "" }, fe = [
|
|
224
245
|
"ds:[[data-select-value]_&]:block",
|
|
225
246
|
"ds:[[data-select-value]_&]:truncate"
|
|
226
|
-
].join(" "), xe =
|
|
247
|
+
].join(" "), xe = h((t, a) => /* @__PURE__ */ e(o.Value, { ref: a, ...X, ...t }));
|
|
227
248
|
xe.displayName = "Select.Value";
|
|
228
|
-
const Y =
|
|
249
|
+
const Y = h(
|
|
229
250
|
({
|
|
230
251
|
className: t,
|
|
231
252
|
children: a,
|
|
232
253
|
position: n = "popper",
|
|
233
|
-
sideOffset:
|
|
254
|
+
sideOffset: d = 4,
|
|
234
255
|
container: u,
|
|
235
256
|
...l
|
|
236
|
-
},
|
|
237
|
-
const
|
|
238
|
-
return /* @__PURE__ */ e(o.Portal, { container: u ?? void 0, children: /* @__PURE__ */ e(
|
|
257
|
+
}, b) => {
|
|
258
|
+
const w = he(Q);
|
|
259
|
+
return /* @__PURE__ */ e(o.Portal, { container: u ?? void 0, children: /* @__PURE__ */ e(Qe, { popupRef: b, open: w, children: (g) => /* @__PURE__ */ m(
|
|
239
260
|
o.Content,
|
|
240
261
|
{
|
|
241
262
|
ref: g,
|
|
242
263
|
position: n,
|
|
243
|
-
sideOffset:
|
|
264
|
+
sideOffset: d,
|
|
244
265
|
"data-component": "select-content",
|
|
245
|
-
className:
|
|
266
|
+
className: rt({ className: t }),
|
|
246
267
|
...l,
|
|
247
268
|
children: [
|
|
248
|
-
/* @__PURE__ */ e(o.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(o.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ e(tt, { "aria-hidden": "true", className: "ds:size-4" }) }),
|
|
249
270
|
a,
|
|
250
271
|
/* @__PURE__ */ e(o.ScrollDownButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ e(ge, { "aria-hidden": "true", className: "ds:size-4" }) })
|
|
251
272
|
]
|
|
@@ -254,7 +275,7 @@ const Y = f(
|
|
|
254
275
|
}
|
|
255
276
|
);
|
|
256
277
|
Y.displayName = "Select.Content";
|
|
257
|
-
const Z =
|
|
278
|
+
const Z = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
258
279
|
o.Viewport,
|
|
259
280
|
{
|
|
260
281
|
ref: n,
|
|
@@ -263,24 +284,24 @@ const Z = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
263
284
|
}
|
|
264
285
|
));
|
|
265
286
|
Z.displayName = "Select.Viewport";
|
|
266
|
-
const ee =
|
|
287
|
+
const ee = h(
|
|
267
288
|
({
|
|
268
289
|
size: t = "md",
|
|
269
290
|
className: a,
|
|
270
291
|
children: n,
|
|
271
|
-
startAdornment:
|
|
292
|
+
startAdornment: d,
|
|
272
293
|
endContent: u,
|
|
273
294
|
description: l,
|
|
274
|
-
descriptionTone:
|
|
275
|
-
descriptionInName:
|
|
295
|
+
descriptionTone: b,
|
|
296
|
+
descriptionInName: w = !1,
|
|
276
297
|
wrapLabel: g = !1,
|
|
277
298
|
labelDir: v,
|
|
278
|
-
...
|
|
279
|
-
},
|
|
280
|
-
const A =
|
|
299
|
+
...x
|
|
300
|
+
}, j) => {
|
|
301
|
+
const A = ct[t ?? "md"], D = lt[t ?? "md"], T = me(), O = me(), p = l != null && l !== "", R = p && w, k = R ? { id: O } : {}, F = R ? { "aria-labelledby": `${O} ${T}` } : {}, E = g ? U({
|
|
281
302
|
wrap: !0,
|
|
282
303
|
className: fe
|
|
283
|
-
}) : "", S =
|
|
304
|
+
}) : "", S = p ? "ds:group-data-[disabled]/select-item:opacity-50" : "", B = u ? (
|
|
284
305
|
// Radix points the item's `aria-labelledby` at `ItemText`, so
|
|
285
306
|
// anything rendered outside it is dropped from the accessible
|
|
286
307
|
// name — a price there would be visible but never announced.
|
|
@@ -304,10 +325,10 @@ const ee = f(
|
|
|
304
325
|
// our own span become the ItemText element, so `flex-1` lands.
|
|
305
326
|
//
|
|
306
327
|
// A wrapping label keeps the end content on its first line.
|
|
307
|
-
/* @__PURE__ */ e(o.ItemText, { asChild: !0, ...k, children: /* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ e(o.ItemText, { asChild: !0, ...k, children: /* @__PURE__ */ m(
|
|
308
329
|
"span",
|
|
309
330
|
{
|
|
310
|
-
className:
|
|
331
|
+
className: Ze({
|
|
311
332
|
wrap: g,
|
|
312
333
|
className: S
|
|
313
334
|
}),
|
|
@@ -320,11 +341,11 @@ const ee = f(
|
|
|
320
341
|
children: n
|
|
321
342
|
}
|
|
322
343
|
),
|
|
323
|
-
/* @__PURE__ */ e("span", { className:
|
|
344
|
+
/* @__PURE__ */ e("span", { className: Ye, children: u })
|
|
324
345
|
]
|
|
325
346
|
}
|
|
326
347
|
) })
|
|
327
|
-
) :
|
|
348
|
+
) : p || g ? /* @__PURE__ */ e(o.ItemText, { asChild: !0, ...k, children: /* @__PURE__ */ e(
|
|
328
349
|
"span",
|
|
329
350
|
{
|
|
330
351
|
dir: v,
|
|
@@ -345,64 +366,64 @@ const ee = f(
|
|
|
345
366
|
}
|
|
346
367
|
) })
|
|
347
368
|
) : /* @__PURE__ */ e(o.ItemText, { children: n });
|
|
348
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ m(
|
|
349
370
|
o.Item,
|
|
350
371
|
{
|
|
351
|
-
ref:
|
|
372
|
+
ref: j,
|
|
352
373
|
...F,
|
|
353
|
-
"aria-describedby":
|
|
354
|
-
className:
|
|
374
|
+
"aria-describedby": p && !R ? T : void 0,
|
|
375
|
+
className: dt({
|
|
355
376
|
size: t,
|
|
356
|
-
className:
|
|
377
|
+
className: p ? [
|
|
357
378
|
"ds:group/select-item ds:data-[disabled]:!opacity-100",
|
|
358
379
|
a
|
|
359
380
|
].filter(Boolean).join(" ") : a
|
|
360
381
|
}),
|
|
361
|
-
...
|
|
382
|
+
...x,
|
|
362
383
|
children: [
|
|
363
384
|
/* @__PURE__ */ e(
|
|
364
385
|
"span",
|
|
365
386
|
{
|
|
366
387
|
className: `ds:absolute ${A} ds:inline-flex ds:items-center ds:justify-center ${S}`,
|
|
367
388
|
"aria-hidden": "true",
|
|
368
|
-
children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
389
|
+
children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(st, { className: D }) })
|
|
369
390
|
}
|
|
370
391
|
),
|
|
371
|
-
|
|
392
|
+
d ? (
|
|
372
393
|
// Decorative by contract — accessible name comes from the item text.
|
|
373
394
|
/* @__PURE__ */ e(
|
|
374
395
|
"span",
|
|
375
396
|
{
|
|
376
397
|
"aria-hidden": "true",
|
|
377
398
|
className: `ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)] ${S}`,
|
|
378
|
-
children:
|
|
399
|
+
children: d
|
|
379
400
|
}
|
|
380
401
|
)
|
|
381
402
|
) : null,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
403
|
+
p || g ? /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:py-[var(--spacing-xs)]", children: [
|
|
404
|
+
B,
|
|
405
|
+
p ? /* @__PURE__ */ e(
|
|
385
406
|
"span",
|
|
386
407
|
{
|
|
387
|
-
id:
|
|
388
|
-
className:
|
|
389
|
-
tone:
|
|
408
|
+
id: T,
|
|
409
|
+
className: et({
|
|
410
|
+
tone: b
|
|
390
411
|
}),
|
|
391
412
|
children: l
|
|
392
413
|
}
|
|
393
414
|
) : null
|
|
394
|
-
] }) :
|
|
415
|
+
] }) : B
|
|
395
416
|
]
|
|
396
417
|
}
|
|
397
418
|
);
|
|
398
419
|
}
|
|
399
420
|
);
|
|
400
421
|
ee.displayName = "Select.Item";
|
|
401
|
-
const Se =
|
|
422
|
+
const Se = h((t, a) => /* @__PURE__ */ e(o.ItemText, { ref: a, ...t }));
|
|
402
423
|
Se.displayName = "Select.ItemText";
|
|
403
|
-
const Ne =
|
|
424
|
+
const Ne = h((t, a) => /* @__PURE__ */ e(o.Group, { ref: a, ...t }));
|
|
404
425
|
Ne.displayName = "Select.Group";
|
|
405
|
-
const te =
|
|
426
|
+
const te = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
406
427
|
o.Label,
|
|
407
428
|
{
|
|
408
429
|
ref: n,
|
|
@@ -411,7 +432,7 @@ const te = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
411
432
|
}
|
|
412
433
|
));
|
|
413
434
|
te.displayName = "Select.Label";
|
|
414
|
-
const se =
|
|
435
|
+
const se = h(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
415
436
|
o.Separator,
|
|
416
437
|
{
|
|
417
438
|
ref: n,
|
|
@@ -420,7 +441,7 @@ const se = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
420
441
|
}
|
|
421
442
|
));
|
|
422
443
|
se.displayName = "Select.Separator";
|
|
423
|
-
const
|
|
444
|
+
const pt = "ds:[--primary:var(--primary-readable)] ds:text-primary", mt = "ds-select-detached", ft = /* @__PURE__ */ new Set([
|
|
424
445
|
"data-component",
|
|
425
446
|
"data-component-id",
|
|
426
447
|
"data-state",
|
|
@@ -429,111 +450,113 @@ const ut = "ds:[--primary:var(--primary-readable)] ds:text-primary", pt = "ds-se
|
|
|
429
450
|
"aria-expanded",
|
|
430
451
|
"aria-controls"
|
|
431
452
|
]);
|
|
432
|
-
function
|
|
453
|
+
function ht(t) {
|
|
433
454
|
const a = {};
|
|
434
|
-
for (const [n,
|
|
435
|
-
|
|
455
|
+
for (const [n, d] of Object.entries(t))
|
|
456
|
+
d === void 0 || ft.has(n) || (n.startsWith("data-") || n.startsWith("aria-")) && (a[n] = d);
|
|
436
457
|
return a;
|
|
437
458
|
}
|
|
438
|
-
const Ie =
|
|
459
|
+
const Ie = h(function({
|
|
439
460
|
options: a,
|
|
440
461
|
value: n,
|
|
441
|
-
defaultValue:
|
|
462
|
+
defaultValue: d,
|
|
442
463
|
onValueChange: u,
|
|
443
464
|
placeholder: l,
|
|
444
|
-
clearable:
|
|
445
|
-
disabled:
|
|
465
|
+
clearable: b = !1,
|
|
466
|
+
disabled: w,
|
|
446
467
|
required: g,
|
|
447
468
|
name: v,
|
|
448
|
-
id:
|
|
449
|
-
size:
|
|
469
|
+
id: x,
|
|
470
|
+
size: j = "md",
|
|
450
471
|
tone: A = "default",
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
"aria-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
472
|
+
appearance: D = "outlined",
|
|
473
|
+
className: T,
|
|
474
|
+
container: O,
|
|
475
|
+
"aria-label": p,
|
|
476
|
+
"aria-describedby": R,
|
|
477
|
+
adornmentInTrigger: k = !1,
|
|
478
|
+
showDescriptions: F = !1,
|
|
479
|
+
descriptionInName: E = !1,
|
|
480
|
+
wrapOptionLabels: S = !1,
|
|
481
|
+
...B
|
|
482
|
+
}, Ce) {
|
|
461
483
|
var ue;
|
|
462
|
-
const { t: L } =
|
|
463
|
-
n ??
|
|
464
|
-
), I = n !== void 0,
|
|
465
|
-
ae.current =
|
|
466
|
-
const
|
|
467
|
-
|
|
484
|
+
const { t: L } = We("ui"), N = $e(), y = he(qe) !== null, [we, _] = M(
|
|
485
|
+
n ?? d ?? ""
|
|
486
|
+
), I = n !== void 0, f = I ? n : we, [V, G] = M(!1), ae = P(f);
|
|
487
|
+
ae.current = f;
|
|
488
|
+
const Te = He(N, x), Re = x ?? (y ? Te : void 0), K = (y ? N.disabled : !1) || !!w, W = (y ? N.required : !1) || !!g, ne = y ? N.invalid : !1, Ve = ne ? "error" : A, ze = [y ? N.describedBy : void 0, R].filter(Boolean).join(" ") || void 0, oe = k ? (ue = a.find((s) => s.value === f)) == null ? void 0 : ue.startAdornment : void 0, z = P(null), je = ut(Ce, z), Oe = at(z), [ke, Ee] = M(!0);
|
|
489
|
+
Ue(() => {
|
|
468
490
|
var s;
|
|
469
|
-
|
|
491
|
+
f === "" && Ee(!!((s = z.current) != null && s.closest("form")));
|
|
470
492
|
});
|
|
471
|
-
const $ =
|
|
472
|
-
|
|
493
|
+
const $ = f === "" && ke, re = P(null), q = P(f !== "");
|
|
494
|
+
De(() => {
|
|
473
495
|
var s;
|
|
474
|
-
if (
|
|
496
|
+
if (f !== "") {
|
|
475
497
|
q.current = !0;
|
|
476
498
|
return;
|
|
477
499
|
}
|
|
478
500
|
q.current && (q.current = !1, (s = re.current) == null || s.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
479
|
-
}, [
|
|
480
|
-
const
|
|
501
|
+
}, [f]);
|
|
502
|
+
const i = u, de = (s) => {
|
|
481
503
|
const r = a.some(
|
|
482
504
|
(C) => C.value === s && C.intent === "action"
|
|
483
505
|
);
|
|
484
|
-
r && !V || (!I && !r &&
|
|
485
|
-
},
|
|
506
|
+
r && !V || (!I && !r && _(s), i == null || i(s));
|
|
507
|
+
}, Be = (s) => {
|
|
486
508
|
var r;
|
|
487
|
-
s.preventDefault(), s.stopPropagation(), I ||
|
|
488
|
-
}, H = l ?? L("inputs.select.placeholder", "Select…"), _e =
|
|
509
|
+
s.preventDefault(), s.stopPropagation(), I || _(""), i == null || i(""), (r = z.current) == null || r.focus();
|
|
510
|
+
}, H = l ?? L("inputs.select.placeholder", "Select…"), _e = b && !!f && !K, ie = p === void 0 && !y, le = ie ? H : p, ce = !p && y ? `${N.id}-label` : void 0, Pe = Me(a), Ae = Fe(
|
|
489
511
|
() => ({
|
|
490
512
|
getValue: () => ae.current,
|
|
491
513
|
setValue: (s) => {
|
|
492
514
|
const r = a.find((C) => C.value === s);
|
|
493
|
-
!r || r.disabled || r.intent === "action" || (I ||
|
|
515
|
+
!r || r.disabled || r.intent === "action" || (I || _(s), i == null || i(s));
|
|
494
516
|
},
|
|
495
517
|
clear: () => {
|
|
496
|
-
I ||
|
|
518
|
+
I || _(""), i == null || i("");
|
|
497
519
|
},
|
|
498
520
|
open: () => G(!0),
|
|
499
521
|
close: () => G(!1),
|
|
500
522
|
isOpen: () => V
|
|
501
523
|
}),
|
|
502
|
-
[
|
|
524
|
+
[i, I, V, a]
|
|
503
525
|
);
|
|
504
|
-
return
|
|
526
|
+
return Ke(ot, Ae, x), /* @__PURE__ */ m(
|
|
505
527
|
o.Root,
|
|
506
528
|
{
|
|
507
|
-
value:
|
|
508
|
-
onValueChange:
|
|
529
|
+
value: f,
|
|
530
|
+
onValueChange: de,
|
|
509
531
|
open: V,
|
|
510
532
|
onOpenChange: G,
|
|
511
533
|
disabled: K,
|
|
512
534
|
required: W,
|
|
513
535
|
name: $ ? void 0 : v,
|
|
514
|
-
form: $ ?
|
|
515
|
-
dir:
|
|
536
|
+
form: $ ? mt : void 0,
|
|
537
|
+
dir: Oe,
|
|
516
538
|
children: [
|
|
517
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ m(
|
|
518
540
|
o.Trigger,
|
|
519
541
|
{
|
|
520
|
-
ref:
|
|
521
|
-
id:
|
|
542
|
+
ref: je,
|
|
543
|
+
id: Re,
|
|
522
544
|
"aria-label": le,
|
|
523
545
|
"aria-labelledby": ce,
|
|
524
|
-
"data-name-from-placeholder":
|
|
546
|
+
"data-name-from-placeholder": ie || void 0,
|
|
525
547
|
"aria-describedby": ze,
|
|
526
548
|
"aria-invalid": ne || void 0,
|
|
527
|
-
...
|
|
549
|
+
...ht(B),
|
|
528
550
|
"data-component": "select",
|
|
529
|
-
"data-component-id":
|
|
551
|
+
"data-component-id": x,
|
|
530
552
|
className: ve({
|
|
531
|
-
size:
|
|
532
|
-
tone:
|
|
533
|
-
|
|
553
|
+
size: j,
|
|
554
|
+
tone: Ve,
|
|
555
|
+
appearance: D,
|
|
556
|
+
className: T
|
|
534
557
|
}),
|
|
535
558
|
children: [
|
|
536
|
-
oe ? /* @__PURE__ */
|
|
559
|
+
oe ? /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
537
560
|
/* @__PURE__ */ e(
|
|
538
561
|
"span",
|
|
539
562
|
{
|
|
@@ -557,13 +580,13 @@ const Ie = f(function({
|
|
|
557
580
|
placeholder: H
|
|
558
581
|
}
|
|
559
582
|
) }),
|
|
560
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ m("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
561
584
|
_e ? /* @__PURE__ */ e(
|
|
562
585
|
"button",
|
|
563
586
|
{
|
|
564
587
|
type: "button",
|
|
565
588
|
"aria-label": L("inputs.select.clear", "Clear selection"),
|
|
566
|
-
onClick:
|
|
589
|
+
onClick: Be,
|
|
567
590
|
onPointerDown: (s) => s.stopPropagation(),
|
|
568
591
|
onKeyDown: (s) => {
|
|
569
592
|
(s.key === "Enter" || s.key === " ") && s.stopPropagation();
|
|
@@ -576,7 +599,7 @@ const Ie = f(function({
|
|
|
576
599
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
577
600
|
"ds:size-4"
|
|
578
601
|
].join(" "),
|
|
579
|
-
children: /* @__PURE__ */ e(
|
|
602
|
+
children: /* @__PURE__ */ e(nt, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
580
603
|
}
|
|
581
604
|
) : null,
|
|
582
605
|
/* @__PURE__ */ e(o.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -594,7 +617,7 @@ const Ie = f(function({
|
|
|
594
617
|
]
|
|
595
618
|
}
|
|
596
619
|
),
|
|
597
|
-
$ && (v !== void 0 || W) ? /* @__PURE__ */
|
|
620
|
+
$ && (v !== void 0 || W) ? /* @__PURE__ */ m(
|
|
598
621
|
"select",
|
|
599
622
|
{
|
|
600
623
|
ref: re,
|
|
@@ -609,7 +632,7 @@ const Ie = f(function({
|
|
|
609
632
|
value: "",
|
|
610
633
|
onChange: (s) => {
|
|
611
634
|
var r;
|
|
612
|
-
s.target.value !== "" && (document.activeElement === s.target && ((r =
|
|
635
|
+
s.target.value !== "" && (document.activeElement === s.target && ((r = z.current) == null || r.focus()), de(s.target.value));
|
|
613
636
|
},
|
|
614
637
|
className: "ds:sr-only",
|
|
615
638
|
children: [
|
|
@@ -627,29 +650,29 @@ const Ie = f(function({
|
|
|
627
650
|
]
|
|
628
651
|
}
|
|
629
652
|
) : null,
|
|
630
|
-
/* @__PURE__ */ e(Q.Provider, { value: V, children: /* @__PURE__ */ e(Y, { container:
|
|
631
|
-
const pe = r.map((c) => /* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ e(Q.Provider, { value: V, children: /* @__PURE__ */ e(Y, { container: O, children: /* @__PURE__ */ e(Z, { children: a.length === 0 ? /* @__PURE__ */ e("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: L("inputs.select.noOptions", "No options") }) : Pe.map(({ group: s, items: r }, C) => {
|
|
654
|
+
const pe = r.map((c) => /* @__PURE__ */ m(Le, { children: [
|
|
632
655
|
c.separatorBefore ? /* @__PURE__ */ e(se, {}) : null,
|
|
633
656
|
/* @__PURE__ */ e(
|
|
634
657
|
ee,
|
|
635
658
|
{
|
|
636
659
|
value: c.value,
|
|
637
|
-
className: c.intent === "action" ?
|
|
660
|
+
className: c.intent === "action" ? pt : void 0,
|
|
638
661
|
disabled: c.disabled,
|
|
639
|
-
size:
|
|
662
|
+
size: j,
|
|
640
663
|
"data-option-id": c.value,
|
|
641
664
|
startAdornment: c.startAdornment,
|
|
642
665
|
endContent: c.endContent,
|
|
643
|
-
description:
|
|
666
|
+
description: F ? c.description : void 0,
|
|
644
667
|
descriptionTone: c.descriptionTone,
|
|
645
|
-
descriptionInName:
|
|
646
|
-
wrapLabel:
|
|
668
|
+
descriptionInName: E,
|
|
669
|
+
wrapLabel: S,
|
|
647
670
|
labelDir: c.dir,
|
|
648
671
|
children: c.label
|
|
649
672
|
}
|
|
650
673
|
)
|
|
651
674
|
] }, c.value));
|
|
652
|
-
return s ? /* @__PURE__ */
|
|
675
|
+
return s ? /* @__PURE__ */ m(o.Group, { children: [
|
|
653
676
|
/* @__PURE__ */ e(te, { children: s }),
|
|
654
677
|
pe
|
|
655
678
|
] }, `group-${s}`) : /* @__PURE__ */ e(o.Group, { children: pe }, `group-${C}`);
|
|
@@ -659,7 +682,7 @@ const Ie = f(function({
|
|
|
659
682
|
);
|
|
660
683
|
});
|
|
661
684
|
Ie.displayName = "Select";
|
|
662
|
-
const
|
|
685
|
+
const gt = Object.assign(Ie, {
|
|
663
686
|
Root: be,
|
|
664
687
|
Trigger: ye,
|
|
665
688
|
Value: xe,
|
|
@@ -670,9 +693,9 @@ const ht = Object.assign(Ie, {
|
|
|
670
693
|
Group: Ne,
|
|
671
694
|
Label: te,
|
|
672
695
|
Separator: se
|
|
673
|
-
}),
|
|
696
|
+
}), Bt = gt;
|
|
674
697
|
export {
|
|
675
|
-
|
|
698
|
+
Bt as S,
|
|
676
699
|
Y as a,
|
|
677
700
|
Ne as b,
|
|
678
701
|
ee as c,
|
|
@@ -685,4 +708,4 @@ export {
|
|
|
685
708
|
Z as j,
|
|
686
709
|
ve as s
|
|
687
710
|
};
|
|
688
|
-
//# sourceMappingURL=select-
|
|
711
|
+
//# sourceMappingURL=select-CIXKyUMw.js.map
|