@alfadocs/ui-kit-debug 1.93.1 → 1.94.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-DH_rnV-F.js → ai-prompt-input-CG9BEggs.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DH_rnV-F.js.map → ai-prompt-input-CG9BEggs.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-EKPfVCmh.js → anamnesis-summary-rows-IMohuz0D.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-EKPfVCmh.js.map → anamnesis-summary-rows-IMohuz0D.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-m7Jqvvcl.js → audio-recorder-BOm2FgEu.js} +2 -2
- package/dist/_chunks/{audio-recorder-m7Jqvvcl.js.map → audio-recorder-BOm2FgEu.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-BtJvre1-.js → balance-badge-cell-vZxbOFgP.js} +4 -4
- package/dist/_chunks/{balance-badge-cell-BtJvre1-.js.map → balance-badge-cell-vZxbOFgP.js.map} +1 -1
- package/dist/_chunks/{bishop-score-C5di6oAV.js → bishop-score-BBYuyk2k.js} +2 -2
- package/dist/_chunks/{bishop-score-C5di6oAV.js.map → bishop-score-BBYuyk2k.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-sJKLoVJ2.js → calendar-appointment-editor-dialog-CsVWoRcP.js} +5 -5
- package/dist/_chunks/{calendar-appointment-editor-dialog-sJKLoVJ2.js.map → calendar-appointment-editor-dialog-CsVWoRcP.js.map} +1 -1
- package/dist/_chunks/{data-table-CqQgoNsU.js → data-table-C_nnpJ-Q.js} +2 -2
- package/dist/_chunks/{data-table-CqQgoNsU.js.map → data-table-C_nnpJ-Q.js.map} +1 -1
- package/dist/_chunks/{document-preview-QEbr7jp1.js → document-preview-ytR1FcWA.js} +2 -2
- package/dist/_chunks/{document-preview-QEbr7jp1.js.map → document-preview-ytR1FcWA.js.map} +1 -1
- package/dist/_chunks/{file-manager-BnI1ZWZu.js → file-manager-CAIbuaSs.js} +2 -2
- package/dist/_chunks/{file-manager-BnI1ZWZu.js.map → file-manager-CAIbuaSs.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-Dr9hdDta.js → gestational-age-calculator-Dn8IOXHB.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-Dr9hdDta.js.map → gestational-age-calculator-Dn8IOXHB.js.map} +1 -1
- package/dist/_chunks/group-options-BvKhQ3xb.js.map +1 -1
- package/dist/_chunks/{heatmap-fCxwNz2o.js → heatmap-DdF8qTTV.js} +2 -2
- package/dist/_chunks/{heatmap-fCxwNz2o.js.map → heatmap-DdF8qTTV.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-a0G4COFH.js → kit-extensions-44gudqqq.js} +3 -3
- package/dist/_chunks/{kit-extensions-a0G4COFH.js.map → kit-extensions-44gudqqq.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-BS3V4LA6.js → link-cell-renderer-OmvrkUeN.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BS3V4LA6.js.map → link-cell-renderer-OmvrkUeN.js.map} +1 -1
- package/dist/_chunks/{muscle-scheme-C66WlCxG.js → muscle-scheme-B7qMW0ho.js} +2 -2
- package/dist/_chunks/{muscle-scheme-C66WlCxG.js.map → muscle-scheme-B7qMW0ho.js.map} +1 -1
- package/dist/_chunks/{operator-hero-C_5B-8Qp.js → operator-hero-D_0KoEuJ.js} +31 -31
- package/dist/_chunks/operator-hero-D_0KoEuJ.js.map +1 -0
- package/dist/_chunks/{optical-prescription-CMM1Y6Xg.js → optical-prescription-BGVeDVSP.js} +2 -2
- package/dist/_chunks/{optical-prescription-CMM1Y6Xg.js.map → optical-prescription-BGVeDVSP.js.map} +1 -1
- package/dist/_chunks/{patient-details-BjcUpD9S.js → patient-details-DTlpBYHJ.js} +2 -2
- package/dist/_chunks/{patient-details-BjcUpD9S.js.map → patient-details-DTlpBYHJ.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-B0tdiaWi.js → patient-field-row-DWTKV1hF.js} +2 -2
- package/dist/_chunks/{patient-field-row-B0tdiaWi.js.map → patient-field-row-DWTKV1hF.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-Cvv6_Ugk.js → patient-summary-card-C61AR4Tn.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Cvv6_Ugk.js.map → patient-summary-card-C61AR4Tn.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-BHvfDxz4.js → pregnancy-dating-CuVj9KGR.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BHvfDxz4.js.map → pregnancy-dating-CuVj9KGR.js.map} +1 -1
- package/dist/_chunks/{registration-form-CRm6DaB9.js → registration-form-BygI73vG.js} +2 -2
- package/dist/_chunks/{registration-form-CRm6DaB9.js.map → registration-form-BygI73vG.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-DnPwaa4u.js → reserved.agent-XU88crNW.js} +2 -2
- package/dist/_chunks/{reserved.agent-DnPwaa4u.js.map → reserved.agent-XU88crNW.js.map} +1 -1
- package/dist/_chunks/{select-4S-eYZUf.js → select-BBDRYxJl.js} +247 -241
- package/dist/_chunks/select-BBDRYxJl.js.map +1 -0
- package/dist/_chunks/signature-request-BVGeF0qB.js +2774 -0
- package/dist/_chunks/signature-request-BVGeF0qB.js.map +1 -0
- package/dist/_chunks/{tabs-BTj-2qMZ.js → tabs-BmxQu-TJ.js} +2 -2
- package/dist/_chunks/{tabs-BTj-2qMZ.js.map → tabs-BmxQu-TJ.js.map} +1 -1
- package/dist/_chunks/{task-editor-CI1SKUNc.js → task-editor-BZeSBxwU.js} +2 -2
- package/dist/_chunks/{task-editor-CI1SKUNc.js.map → task-editor-BZeSBxwU.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-BkjtgjQ8.js → tasks-panel-BTCYGLGA.js} +2 -2
- package/dist/_chunks/{tasks-panel-BkjtgjQ8.js.map → tasks-panel-BTCYGLGA.js.map} +1 -1
- package/dist/_chunks/{unit-converter-BH5ueIhT.js → unit-converter-C95sa5y8.js} +2 -2
- package/dist/_chunks/{unit-converter-BH5ueIhT.js.map → unit-converter-C95sa5y8.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-D8vDg0sg.js → use-appointment-details-read-B6uhmNdV.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-D8vDg0sg.js.map → use-appointment-details-read-B6uhmNdV.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-BP0otrID.js → voice-control-panel-BGJjUwnY.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BP0otrID.js.map → voice-control-panel-BGJjUwnY.js.map} +1 -1
- package/dist/agent-catalog.json +9 -5
- package/dist/agent-i18n/en.json +4 -4
- package/dist/components/_shared/group-options.d.ts +2 -2
- package/dist/components/_shared/group-options.d.ts.map +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/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/muscle-scheme/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +3 -2
- package/dist/components/operator-hero/operator-hero.d.ts.map +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 +13 -1
- package/dist/components/select/select.d.ts.map +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/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +4 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +4 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +4 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +4 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +4 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +4 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +4 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +4 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +4 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +4 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +4 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +4 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +4 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +4 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +4 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +4 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +4 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +4 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +4 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +4 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +4 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +4 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +4 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +29 -29
- package/dist/locales/ar.json +4 -0
- package/dist/locales/de.json +4 -0
- package/dist/locales/el.json +4 -0
- package/dist/locales/en.json +4 -0
- package/dist/locales/es.json +4 -0
- package/dist/locales/fr.json +4 -0
- package/dist/locales/hi.json +4 -0
- package/dist/locales/it.json +4 -0
- package/dist/locales/ja.json +4 -0
- package/dist/locales/nl.json +4 -0
- package/dist/locales/pl.json +4 -0
- package/dist/locales/pt.json +4 -0
- package/dist/locales/ro.json +4 -0
- package/dist/locales/ru.json +4 -0
- package/dist/locales/sq.json +4 -0
- package/dist/locales/sv.json +4 -0
- package/dist/locales/tr.json +4 -0
- package/dist/locales/zh.json +4 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signature-request/required-documents.d.ts +2 -1
- package/dist/patterns/signature-request/required-documents.d.ts.map +1 -1
- package/dist/patterns/signature-request/signature-request.d.ts +61 -0
- package/dist/patterns/signature-request/signature-request.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/operator-hero-C_5B-8Qp.js.map +0 -1
- package/dist/_chunks/select-4S-eYZUf.js.map +0 -1
- package/dist/_chunks/signature-request-DvhyrRpn.js +0 -2448
- package/dist/_chunks/signature-request-DvhyrRpn.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as f, useContext as
|
|
3
|
-
import { u as
|
|
4
|
-
import * as
|
|
1
|
+
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f, useContext as ge, useId as me, useState as M, useRef as P, useEffect as Ae, useMemo as De, Fragment as Fe, createContext as Le } from "react";
|
|
3
|
+
import { u as Ge } from "./registry-DvAUVLHh.js";
|
|
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
|
|
15
|
-
import { C as
|
|
16
|
-
import { C as
|
|
17
|
-
import { u as
|
|
18
|
-
import { X as
|
|
19
|
-
const
|
|
6
|
+
import { useTranslation as Ke } from "react-i18next";
|
|
7
|
+
import { u as We, F as $e, a as qe } from "./form-field-context-DtiROUJV.js";
|
|
8
|
+
import { g as He } from "./group-options-BvKhQ3xb.js";
|
|
9
|
+
import { u as Me } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
|
+
import { u as Ue } from "./use-controllable-state-BiY4xTzM.js";
|
|
11
|
+
import { b as Xe } from "./menu-row-BAr8bx1I.js";
|
|
12
|
+
import { P as Je } from "./popup-region-qz_5_A0V.js";
|
|
13
|
+
import { o as U, b as Qe, d as Ye, c as Ze } from "./option-row-Dc7BrbK8.js";
|
|
14
|
+
import { C as et } from "./chevron-up-umRGgtJA.js";
|
|
15
|
+
import { C as he } from "./chevron-down-DWE7GSq9.js";
|
|
16
|
+
import { C as tt } from "./check-DrFSN__t.js";
|
|
17
|
+
import { u as st } from "./use-direction-Dp8h70PP.js";
|
|
18
|
+
import { X as at } from "./x-B5YnXwCz.js";
|
|
19
|
+
const nt = {
|
|
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.
|
|
@@ -49,7 +49,7 @@ const at = {
|
|
|
49
49
|
},
|
|
50
50
|
idempotent: !0,
|
|
51
51
|
descriptionKey: "ui.agent.select.actions.setValue",
|
|
52
|
-
description: "Select the option with the given value. A value that is not among the options,
|
|
52
|
+
description: "Select the option with the given value. A value that is not among the options, belongs to a disabled option, or is an action option (such as New signatory), is ignored and the selection stays as it was.",
|
|
53
53
|
examples: [{ args: { value: "it" }, note: 'Select the "it" option.' }],
|
|
54
54
|
invoke: (t, a) => {
|
|
55
55
|
t.setValue(a.value);
|
|
@@ -100,7 +100,7 @@ const at = {
|
|
|
100
100
|
description: "Stable opaque option value emitted on each rendered option."
|
|
101
101
|
}
|
|
102
102
|
}
|
|
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
106
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-input",
|
|
@@ -145,12 +145,12 @@ const at = {
|
|
|
145
145
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
146
146
|
"ds:motion-reduce:animate-none"
|
|
147
147
|
].join(" ")
|
|
148
|
-
),
|
|
148
|
+
), rt = J(
|
|
149
149
|
[
|
|
150
150
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center",
|
|
151
151
|
"ds:rounded-[var(--radius-sm)]",
|
|
152
152
|
"ds:text-foreground ds:outline-none ds:select-none",
|
|
153
|
-
|
|
153
|
+
Xe.highlighted,
|
|
154
154
|
"ds:data-[disabled]:pointer-events-none ds:data-[disabled]:opacity-50"
|
|
155
155
|
].join(" "),
|
|
156
156
|
{
|
|
@@ -165,7 +165,7 @@ const at = {
|
|
|
165
165
|
size: "md"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
),
|
|
168
|
+
), it = [
|
|
169
169
|
"ds:ps-8 ds:pe-3 ds:py-1.5",
|
|
170
170
|
"type-eyebrow ds:text-muted-foreground",
|
|
171
171
|
"ds:sticky ds:top-0 ds:bg-background"
|
|
@@ -173,88 +173,88 @@ const at = {
|
|
|
173
173
|
sm: "ds:size-3.5",
|
|
174
174
|
md: "ds:size-4",
|
|
175
175
|
lg: "ds:size-5"
|
|
176
|
-
},
|
|
176
|
+
}, lt = {
|
|
177
177
|
sm: "ds:start-2",
|
|
178
178
|
md: "ds:start-2",
|
|
179
179
|
lg: "ds:start-3"
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function ct(...t) {
|
|
182
182
|
return (a) => {
|
|
183
|
-
for (const
|
|
184
|
-
|
|
183
|
+
for (const n of t)
|
|
184
|
+
n && (typeof n == "function" ? n(a) : n.current = a);
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
const Q =
|
|
187
|
+
const Q = Le(void 0), be = ({
|
|
188
188
|
open: t,
|
|
189
189
|
defaultOpen: a,
|
|
190
|
-
onOpenChange:
|
|
191
|
-
...
|
|
190
|
+
onOpenChange: n,
|
|
191
|
+
...i
|
|
192
192
|
}) => {
|
|
193
|
-
const [
|
|
193
|
+
const [u, l] = Ue({
|
|
194
194
|
value: t,
|
|
195
195
|
defaultValue: a ?? !1,
|
|
196
|
-
onChange:
|
|
196
|
+
onChange: n
|
|
197
197
|
});
|
|
198
|
-
return /* @__PURE__ */ e(Q.Provider, { value:
|
|
199
|
-
|
|
198
|
+
return /* @__PURE__ */ e(Q.Provider, { value: u ?? !1, children: /* @__PURE__ */ e(
|
|
199
|
+
o.Root,
|
|
200
200
|
{
|
|
201
|
-
open:
|
|
202
|
-
onOpenChange:
|
|
203
|
-
...
|
|
201
|
+
open: u ?? !1,
|
|
202
|
+
onOpenChange: l,
|
|
203
|
+
...i
|
|
204
204
|
}
|
|
205
205
|
) });
|
|
206
206
|
};
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
({ size: t, tone: a, className:
|
|
210
|
-
|
|
207
|
+
be.displayName = "Select.Root";
|
|
208
|
+
const ye = f(
|
|
209
|
+
({ size: t, tone: a, className: n, children: i, ...u }, l) => /* @__PURE__ */ e(
|
|
210
|
+
o.Trigger,
|
|
211
211
|
{
|
|
212
|
-
ref:
|
|
213
|
-
className:
|
|
214
|
-
...
|
|
215
|
-
children:
|
|
212
|
+
ref: l,
|
|
213
|
+
className: ve({ size: t, tone: a, className: n }),
|
|
214
|
+
...u,
|
|
215
|
+
children: i
|
|
216
216
|
}
|
|
217
217
|
)
|
|
218
218
|
);
|
|
219
|
-
|
|
220
|
-
const X = { "data-select-value": "" },
|
|
219
|
+
ye.displayName = "Select.Trigger";
|
|
220
|
+
const X = { "data-select-value": "" }, fe = [
|
|
221
221
|
"ds:[[data-select-value]_&]:block",
|
|
222
222
|
"ds:[[data-select-value]_&]:truncate"
|
|
223
|
-
].join(" "),
|
|
224
|
-
|
|
223
|
+
].join(" "), Se = f((t, a) => /* @__PURE__ */ e(o.Value, { ref: a, ...X, ...t }));
|
|
224
|
+
Se.displayName = "Select.Value";
|
|
225
225
|
const Y = f(
|
|
226
226
|
({
|
|
227
227
|
className: t,
|
|
228
228
|
children: a,
|
|
229
|
-
position:
|
|
230
|
-
sideOffset:
|
|
231
|
-
container:
|
|
232
|
-
...
|
|
233
|
-
},
|
|
234
|
-
const
|
|
235
|
-
return /* @__PURE__ */ e(
|
|
236
|
-
|
|
229
|
+
position: n = "popper",
|
|
230
|
+
sideOffset: i = 4,
|
|
231
|
+
container: u,
|
|
232
|
+
...l
|
|
233
|
+
}, w) => {
|
|
234
|
+
const T = ge(Q);
|
|
235
|
+
return /* @__PURE__ */ e(o.Portal, { container: u ?? void 0, children: /* @__PURE__ */ e(Je, { popupRef: w, open: T, children: (h) => /* @__PURE__ */ p(
|
|
236
|
+
o.Content,
|
|
237
237
|
{
|
|
238
238
|
ref: h,
|
|
239
|
-
position:
|
|
240
|
-
sideOffset:
|
|
239
|
+
position: n,
|
|
240
|
+
sideOffset: i,
|
|
241
241
|
"data-component": "select-content",
|
|
242
242
|
className: ot({ className: t }),
|
|
243
|
-
...
|
|
243
|
+
...l,
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */ e(
|
|
245
|
+
/* @__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(et, { "aria-hidden": "true", className: "ds:size-4" }) }),
|
|
246
246
|
a,
|
|
247
|
-
/* @__PURE__ */ e(
|
|
247
|
+
/* @__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(he, { "aria-hidden": "true", className: "ds:size-4" }) })
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
) }) });
|
|
251
251
|
}
|
|
252
252
|
);
|
|
253
253
|
Y.displayName = "Select.Content";
|
|
254
|
-
const Z = f(({ className: t, ...a },
|
|
255
|
-
|
|
254
|
+
const Z = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
255
|
+
o.Viewport,
|
|
256
256
|
{
|
|
257
|
-
ref:
|
|
257
|
+
ref: n,
|
|
258
258
|
className: ["ds:p-1", t].filter(Boolean).join(" "),
|
|
259
259
|
...a
|
|
260
260
|
}
|
|
@@ -264,20 +264,20 @@ const ee = f(
|
|
|
264
264
|
({
|
|
265
265
|
size: t = "md",
|
|
266
266
|
className: a,
|
|
267
|
-
children:
|
|
268
|
-
startAdornment:
|
|
269
|
-
endContent:
|
|
270
|
-
description:
|
|
271
|
-
descriptionTone:
|
|
272
|
-
descriptionInName:
|
|
267
|
+
children: n,
|
|
268
|
+
startAdornment: i,
|
|
269
|
+
endContent: u,
|
|
270
|
+
description: l,
|
|
271
|
+
descriptionTone: w,
|
|
272
|
+
descriptionInName: T = !1,
|
|
273
273
|
wrapLabel: h = !1,
|
|
274
274
|
labelDir: v,
|
|
275
275
|
...y
|
|
276
|
-
},
|
|
277
|
-
const
|
|
276
|
+
}, O) => {
|
|
277
|
+
const A = lt[t ?? "md"], D = dt[t ?? "md"], R = me(), S = me(), g = l != null && l !== "", z = g && T, k = z ? { id: S } : {}, F = z ? { "aria-labelledby": `${S} ${R}` } : {}, E = h ? U({
|
|
278
278
|
wrap: !0,
|
|
279
|
-
className:
|
|
280
|
-
}) : "",
|
|
279
|
+
className: fe
|
|
280
|
+
}) : "", x = g ? "ds:group-data-[disabled]/select-item:opacity-50" : "", _ = u ? (
|
|
281
281
|
// Radix points the item's `aria-labelledby` at `ItemText`, so
|
|
282
282
|
// anything rendered outside it is dropped from the accessible
|
|
283
283
|
// name — a price there would be visible but never announced.
|
|
@@ -301,54 +301,54 @@ const ee = f(
|
|
|
301
301
|
// our own span become the ItemText element, so `flex-1` lands.
|
|
302
302
|
//
|
|
303
303
|
// A wrapping label keeps the end content on its first line.
|
|
304
|
-
/* @__PURE__ */ e(
|
|
304
|
+
/* @__PURE__ */ e(o.ItemText, { asChild: !0, ...k, children: /* @__PURE__ */ p(
|
|
305
305
|
"span",
|
|
306
306
|
{
|
|
307
|
-
className:
|
|
307
|
+
className: Ye({
|
|
308
308
|
wrap: h,
|
|
309
|
-
className:
|
|
309
|
+
className: x
|
|
310
310
|
}),
|
|
311
311
|
children: [
|
|
312
312
|
/* @__PURE__ */ e(
|
|
313
313
|
"span",
|
|
314
314
|
{
|
|
315
315
|
dir: v,
|
|
316
|
-
className:
|
|
317
|
-
children:
|
|
316
|
+
className: E || U(),
|
|
317
|
+
children: n
|
|
318
318
|
}
|
|
319
319
|
),
|
|
320
|
-
/* @__PURE__ */ e("span", { className:
|
|
320
|
+
/* @__PURE__ */ e("span", { className: Qe, children: u })
|
|
321
321
|
]
|
|
322
322
|
}
|
|
323
323
|
) })
|
|
324
|
-
) : g || h ? /* @__PURE__ */ e(
|
|
324
|
+
) : g || h ? /* @__PURE__ */ e(o.ItemText, { asChild: !0, ...k, children: /* @__PURE__ */ e(
|
|
325
325
|
"span",
|
|
326
326
|
{
|
|
327
327
|
dir: v,
|
|
328
|
-
className: [
|
|
329
|
-
children:
|
|
328
|
+
className: [E, x].filter(Boolean).join(" "),
|
|
329
|
+
children: n
|
|
330
330
|
}
|
|
331
331
|
) }) : v ? (
|
|
332
332
|
// Our own element, so the direction sits on the box that clips, in
|
|
333
333
|
// the list and in the trigger (Radix mirrors this span there).
|
|
334
|
-
/* @__PURE__ */ e(
|
|
334
|
+
/* @__PURE__ */ e(o.ItemText, { asChild: !0, children: /* @__PURE__ */ e(
|
|
335
335
|
"span",
|
|
336
336
|
{
|
|
337
337
|
dir: v,
|
|
338
338
|
className: U({
|
|
339
|
-
className:
|
|
339
|
+
className: fe
|
|
340
340
|
}),
|
|
341
|
-
children:
|
|
341
|
+
children: n
|
|
342
342
|
}
|
|
343
343
|
) })
|
|
344
|
-
) : /* @__PURE__ */ e(
|
|
345
|
-
return /* @__PURE__ */
|
|
346
|
-
|
|
344
|
+
) : /* @__PURE__ */ e(o.ItemText, { children: n });
|
|
345
|
+
return /* @__PURE__ */ p(
|
|
346
|
+
o.Item,
|
|
347
347
|
{
|
|
348
|
-
ref:
|
|
349
|
-
...
|
|
350
|
-
"aria-describedby": g && !
|
|
351
|
-
className:
|
|
348
|
+
ref: O,
|
|
349
|
+
...F,
|
|
350
|
+
"aria-describedby": g && !z ? R : void 0,
|
|
351
|
+
className: rt({
|
|
352
352
|
size: t,
|
|
353
353
|
className: g ? [
|
|
354
354
|
"ds:group/select-item ds:data-[disabled]:!opacity-100",
|
|
@@ -360,64 +360,64 @@ const ee = f(
|
|
|
360
360
|
/* @__PURE__ */ e(
|
|
361
361
|
"span",
|
|
362
362
|
{
|
|
363
|
-
className: `ds:absolute ${
|
|
363
|
+
className: `ds:absolute ${A} ds:inline-flex ds:items-center ds:justify-center ${x}`,
|
|
364
364
|
"aria-hidden": "true",
|
|
365
|
-
children: /* @__PURE__ */ e(
|
|
365
|
+
children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(tt, { className: D }) })
|
|
366
366
|
}
|
|
367
367
|
),
|
|
368
|
-
|
|
368
|
+
i ? (
|
|
369
369
|
// Decorative by contract — accessible name comes from the item text.
|
|
370
370
|
/* @__PURE__ */ e(
|
|
371
371
|
"span",
|
|
372
372
|
{
|
|
373
373
|
"aria-hidden": "true",
|
|
374
|
-
className: `ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)] ${
|
|
375
|
-
children:
|
|
374
|
+
className: `ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)] ${x}`,
|
|
375
|
+
children: i
|
|
376
376
|
}
|
|
377
377
|
)
|
|
378
378
|
) : null,
|
|
379
|
-
g || h ? /* @__PURE__ */
|
|
380
|
-
|
|
379
|
+
g || h ? /* @__PURE__ */ p("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:py-[var(--spacing-xs)]", children: [
|
|
380
|
+
_,
|
|
381
381
|
g ? /* @__PURE__ */ e(
|
|
382
382
|
"span",
|
|
383
383
|
{
|
|
384
|
-
id:
|
|
385
|
-
className:
|
|
386
|
-
tone:
|
|
384
|
+
id: R,
|
|
385
|
+
className: Ze({
|
|
386
|
+
tone: w
|
|
387
387
|
}),
|
|
388
|
-
children:
|
|
388
|
+
children: l
|
|
389
389
|
}
|
|
390
390
|
) : null
|
|
391
|
-
] }) :
|
|
391
|
+
] }) : _
|
|
392
392
|
]
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
397
|
ee.displayName = "Select.Item";
|
|
398
|
-
const xe = f((t, a) => /* @__PURE__ */ e(
|
|
398
|
+
const xe = f((t, a) => /* @__PURE__ */ e(o.ItemText, { ref: a, ...t }));
|
|
399
399
|
xe.displayName = "Select.ItemText";
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
const te = f(({ className: t, ...a },
|
|
403
|
-
|
|
400
|
+
const Ne = f((t, a) => /* @__PURE__ */ e(o.Group, { ref: a, ...t }));
|
|
401
|
+
Ne.displayName = "Select.Group";
|
|
402
|
+
const te = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
403
|
+
o.Label,
|
|
404
404
|
{
|
|
405
|
-
ref:
|
|
406
|
-
className: [
|
|
405
|
+
ref: n,
|
|
406
|
+
className: [it, t].filter(Boolean).join(" "),
|
|
407
407
|
...a
|
|
408
408
|
}
|
|
409
409
|
));
|
|
410
410
|
te.displayName = "Select.Label";
|
|
411
|
-
const
|
|
412
|
-
|
|
411
|
+
const se = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
412
|
+
o.Separator,
|
|
413
413
|
{
|
|
414
|
-
ref:
|
|
414
|
+
ref: n,
|
|
415
415
|
className: ["ds:my-1 ds:h-px ds:bg-border", t].filter(Boolean).join(" "),
|
|
416
416
|
...a
|
|
417
417
|
}
|
|
418
418
|
));
|
|
419
|
-
|
|
420
|
-
const
|
|
419
|
+
se.displayName = "Select.Separator";
|
|
420
|
+
const ut = "ds:[--primary:var(--primary-readable)] ds:text-primary", pt = "ds-select-detached", mt = /* @__PURE__ */ new Set([
|
|
421
421
|
"data-component",
|
|
422
422
|
"data-component-id",
|
|
423
423
|
"data-state",
|
|
@@ -426,108 +426,111 @@ const ct = "ds-select-detached", ut = /* @__PURE__ */ new Set([
|
|
|
426
426
|
"aria-expanded",
|
|
427
427
|
"aria-controls"
|
|
428
428
|
]);
|
|
429
|
-
function
|
|
429
|
+
function ft(t) {
|
|
430
430
|
const a = {};
|
|
431
|
-
for (const [
|
|
432
|
-
|
|
431
|
+
for (const [n, i] of Object.entries(t))
|
|
432
|
+
i === void 0 || mt.has(n) || (n.startsWith("data-") || n.startsWith("aria-")) && (a[n] = i);
|
|
433
433
|
return a;
|
|
434
434
|
}
|
|
435
435
|
const Ie = f(function({
|
|
436
436
|
options: a,
|
|
437
|
-
value:
|
|
438
|
-
defaultValue:
|
|
439
|
-
onValueChange:
|
|
440
|
-
placeholder:
|
|
441
|
-
clearable:
|
|
442
|
-
disabled:
|
|
437
|
+
value: n,
|
|
438
|
+
defaultValue: i,
|
|
439
|
+
onValueChange: u,
|
|
440
|
+
placeholder: l,
|
|
441
|
+
clearable: w = !1,
|
|
442
|
+
disabled: T,
|
|
443
443
|
required: h,
|
|
444
444
|
name: v,
|
|
445
445
|
id: y,
|
|
446
|
-
size:
|
|
447
|
-
tone:
|
|
448
|
-
className:
|
|
449
|
-
container:
|
|
450
|
-
"aria-label":
|
|
446
|
+
size: O = "md",
|
|
447
|
+
tone: A = "default",
|
|
448
|
+
className: D,
|
|
449
|
+
container: R,
|
|
450
|
+
"aria-label": S,
|
|
451
451
|
"aria-describedby": g,
|
|
452
|
-
adornmentInTrigger:
|
|
453
|
-
showDescriptions:
|
|
454
|
-
descriptionInName:
|
|
455
|
-
wrapOptionLabels:
|
|
456
|
-
...
|
|
457
|
-
},
|
|
458
|
-
var
|
|
459
|
-
const { t:
|
|
460
|
-
|
|
461
|
-
), I =
|
|
462
|
-
|
|
463
|
-
const we =
|
|
464
|
-
|
|
452
|
+
adornmentInTrigger: z = !1,
|
|
453
|
+
showDescriptions: k = !1,
|
|
454
|
+
descriptionInName: F = !1,
|
|
455
|
+
wrapOptionLabels: E = !1,
|
|
456
|
+
...x
|
|
457
|
+
}, _) {
|
|
458
|
+
var ue;
|
|
459
|
+
const { t: L } = Ke("ui"), N = We(), b = ge($e) !== null, [Ce, B] = M(
|
|
460
|
+
n ?? i ?? ""
|
|
461
|
+
), I = n !== void 0, m = I ? n : Ce, [V, G] = M(!1), ae = P(m);
|
|
462
|
+
ae.current = m;
|
|
463
|
+
const we = qe(N, y), Te = y ?? (b ? we : void 0), K = (b ? N.disabled : !1) || !!T, W = (b ? N.required : !1) || !!h, ne = b ? N.invalid : !1, Re = ne ? "error" : A, ze = [b ? N.describedBy : void 0, g].filter(Boolean).join(" ") || void 0, oe = z ? (ue = a.find((s) => s.value === m)) == null ? void 0 : ue.startAdornment : void 0, j = P(null), Ve = ct(_, j), je = st(j), [Oe, ke] = M(!0);
|
|
464
|
+
Me(() => {
|
|
465
465
|
var s;
|
|
466
|
-
|
|
466
|
+
m === "" && ke(!!((s = j.current) != null && s.closest("form")));
|
|
467
467
|
});
|
|
468
|
-
const
|
|
468
|
+
const $ = m === "" && Oe, re = P(null), q = P(m !== "");
|
|
469
469
|
Ae(() => {
|
|
470
470
|
var s;
|
|
471
|
-
if (
|
|
472
|
-
|
|
471
|
+
if (m !== "") {
|
|
472
|
+
q.current = !0;
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
|
-
|
|
476
|
-
}, [
|
|
477
|
-
const d =
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
},
|
|
475
|
+
q.current && (q.current = !1, (s = re.current) == null || s.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
476
|
+
}, [m]);
|
|
477
|
+
const d = u, ie = (s) => {
|
|
478
|
+
const r = a.some(
|
|
479
|
+
(C) => C.value === s && C.intent === "action"
|
|
480
|
+
);
|
|
481
|
+
r && !V || (!I && !r && B(s), d == null || d(s));
|
|
482
|
+
}, Ee = (s) => {
|
|
483
|
+
var r;
|
|
484
|
+
s.preventDefault(), s.stopPropagation(), I || B(""), d == null || d(""), (r = j.current) == null || r.focus();
|
|
485
|
+
}, H = l ?? L("inputs.select.placeholder", "Select…"), _e = w && !!m && !K, de = S === void 0 && !b, le = de ? H : S, ce = !S && b ? `${N.id}-label` : void 0, Be = He(a), Pe = De(
|
|
483
486
|
() => ({
|
|
484
|
-
getValue: () =>
|
|
487
|
+
getValue: () => ae.current,
|
|
485
488
|
setValue: (s) => {
|
|
486
|
-
const
|
|
487
|
-
!
|
|
489
|
+
const r = a.find((C) => C.value === s);
|
|
490
|
+
!r || r.disabled || r.intent === "action" || (I || B(s), d == null || d(s));
|
|
488
491
|
},
|
|
489
492
|
clear: () => {
|
|
490
|
-
I ||
|
|
493
|
+
I || B(""), d == null || d("");
|
|
491
494
|
},
|
|
492
|
-
open: () =>
|
|
493
|
-
close: () =>
|
|
494
|
-
isOpen: () =>
|
|
495
|
+
open: () => G(!0),
|
|
496
|
+
close: () => G(!1),
|
|
497
|
+
isOpen: () => V
|
|
495
498
|
}),
|
|
496
|
-
[d, I,
|
|
499
|
+
[d, I, V, a]
|
|
497
500
|
);
|
|
498
|
-
return
|
|
499
|
-
|
|
501
|
+
return Ge(nt, Pe, y), /* @__PURE__ */ p(
|
|
502
|
+
o.Root,
|
|
500
503
|
{
|
|
501
|
-
value:
|
|
502
|
-
onValueChange:
|
|
503
|
-
open:
|
|
504
|
-
onOpenChange:
|
|
505
|
-
disabled:
|
|
506
|
-
required:
|
|
507
|
-
name:
|
|
508
|
-
form:
|
|
504
|
+
value: m,
|
|
505
|
+
onValueChange: ie,
|
|
506
|
+
open: V,
|
|
507
|
+
onOpenChange: G,
|
|
508
|
+
disabled: K,
|
|
509
|
+
required: W,
|
|
510
|
+
name: $ ? void 0 : v,
|
|
511
|
+
form: $ ? pt : void 0,
|
|
509
512
|
dir: je,
|
|
510
513
|
children: [
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
|
|
514
|
+
/* @__PURE__ */ p(
|
|
515
|
+
o.Trigger,
|
|
513
516
|
{
|
|
514
517
|
ref: Ve,
|
|
515
518
|
id: Te,
|
|
516
|
-
"aria-label":
|
|
517
|
-
"aria-labelledby":
|
|
519
|
+
"aria-label": le,
|
|
520
|
+
"aria-labelledby": ce,
|
|
518
521
|
"data-name-from-placeholder": de || void 0,
|
|
519
522
|
"aria-describedby": ze,
|
|
520
|
-
"aria-invalid":
|
|
521
|
-
...
|
|
523
|
+
"aria-invalid": ne || void 0,
|
|
524
|
+
...ft(x),
|
|
522
525
|
"data-component": "select",
|
|
523
526
|
"data-component-id": y,
|
|
524
|
-
className:
|
|
525
|
-
size:
|
|
527
|
+
className: ve({
|
|
528
|
+
size: O,
|
|
526
529
|
tone: Re,
|
|
527
|
-
className:
|
|
530
|
+
className: D
|
|
528
531
|
}),
|
|
529
532
|
children: [
|
|
530
|
-
oe ? /* @__PURE__ */
|
|
533
|
+
oe ? /* @__PURE__ */ p("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
531
534
|
/* @__PURE__ */ e(
|
|
532
535
|
"span",
|
|
533
536
|
{
|
|
@@ -538,26 +541,26 @@ const Ie = f(function({
|
|
|
538
541
|
}
|
|
539
542
|
),
|
|
540
543
|
/* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ e(
|
|
541
|
-
|
|
544
|
+
o.Value,
|
|
542
545
|
{
|
|
543
546
|
...X,
|
|
544
|
-
placeholder:
|
|
547
|
+
placeholder: H
|
|
545
548
|
}
|
|
546
549
|
) })
|
|
547
550
|
] }) : /* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ e(
|
|
548
|
-
|
|
551
|
+
o.Value,
|
|
549
552
|
{
|
|
550
553
|
...X,
|
|
551
|
-
placeholder:
|
|
554
|
+
placeholder: H
|
|
552
555
|
}
|
|
553
556
|
) }),
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
|
|
557
|
+
/* @__PURE__ */ p("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
558
|
+
_e ? /* @__PURE__ */ e(
|
|
556
559
|
"button",
|
|
557
560
|
{
|
|
558
561
|
type: "button",
|
|
559
|
-
"aria-label":
|
|
560
|
-
onClick:
|
|
562
|
+
"aria-label": L("inputs.select.clear", "Clear selection"),
|
|
563
|
+
onClick: Ee,
|
|
561
564
|
onPointerDown: (s) => s.stopPropagation(),
|
|
562
565
|
onKeyDown: (s) => {
|
|
563
566
|
(s.key === "Enter" || s.key === " ") && s.stopPropagation();
|
|
@@ -570,11 +573,11 @@ const Ie = f(function({
|
|
|
570
573
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
571
574
|
"ds:size-4"
|
|
572
575
|
].join(" "),
|
|
573
|
-
children: /* @__PURE__ */ e(
|
|
576
|
+
children: /* @__PURE__ */ e(at, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
574
577
|
}
|
|
575
578
|
) : null,
|
|
576
|
-
/* @__PURE__ */ e(
|
|
577
|
-
|
|
579
|
+
/* @__PURE__ */ e(o.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
580
|
+
he,
|
|
578
581
|
{
|
|
579
582
|
"aria-hidden": "true",
|
|
580
583
|
className: [
|
|
@@ -588,22 +591,22 @@ const Ie = f(function({
|
|
|
588
591
|
]
|
|
589
592
|
}
|
|
590
593
|
),
|
|
591
|
-
|
|
594
|
+
$ && (v !== void 0 || W) ? /* @__PURE__ */ p(
|
|
592
595
|
"select",
|
|
593
596
|
{
|
|
594
|
-
ref:
|
|
597
|
+
ref: re,
|
|
595
598
|
"data-component": "select-field",
|
|
596
599
|
"aria-hidden": !0,
|
|
597
600
|
tabIndex: -1,
|
|
598
|
-
"aria-label":
|
|
599
|
-
"aria-labelledby":
|
|
601
|
+
"aria-label": le,
|
|
602
|
+
"aria-labelledby": ce,
|
|
600
603
|
name: v,
|
|
601
|
-
required:
|
|
602
|
-
disabled:
|
|
604
|
+
required: W,
|
|
605
|
+
disabled: K,
|
|
603
606
|
value: "",
|
|
604
607
|
onChange: (s) => {
|
|
605
|
-
var
|
|
606
|
-
s.target.value !== "" && (document.activeElement === s.target && ((
|
|
608
|
+
var r;
|
|
609
|
+
s.target.value !== "" && (document.activeElement === s.target && ((r = j.current) == null || r.focus()), ie(s.target.value));
|
|
607
610
|
},
|
|
608
611
|
className: "ds:sr-only",
|
|
609
612
|
children: [
|
|
@@ -621,59 +624,62 @@ const Ie = f(function({
|
|
|
621
624
|
]
|
|
622
625
|
}
|
|
623
626
|
) : null,
|
|
624
|
-
/* @__PURE__ */ e(Q.Provider, { value:
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
627
|
+
/* @__PURE__ */ e(Q.Provider, { value: V, children: /* @__PURE__ */ e(Y, { container: R, 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") }) : Be.map(({ group: s, items: r }, C) => {
|
|
628
|
+
const pe = r.map((c) => /* @__PURE__ */ p(Fe, { children: [
|
|
629
|
+
c.separatorBefore ? /* @__PURE__ */ e(se, {}) : null,
|
|
630
|
+
/* @__PURE__ */ e(
|
|
631
|
+
ee,
|
|
632
|
+
{
|
|
633
|
+
value: c.value,
|
|
634
|
+
className: c.intent === "action" ? ut : void 0,
|
|
635
|
+
disabled: c.disabled,
|
|
636
|
+
size: O,
|
|
637
|
+
"data-option-id": c.value,
|
|
638
|
+
startAdornment: c.startAdornment,
|
|
639
|
+
endContent: c.endContent,
|
|
640
|
+
description: k ? c.description : void 0,
|
|
641
|
+
descriptionTone: c.descriptionTone,
|
|
642
|
+
descriptionInName: F,
|
|
643
|
+
wrapLabel: E,
|
|
644
|
+
labelDir: c.dir,
|
|
645
|
+
children: c.label
|
|
646
|
+
}
|
|
647
|
+
)
|
|
648
|
+
] }, c.value));
|
|
649
|
+
return s ? /* @__PURE__ */ p(o.Group, { children: [
|
|
644
650
|
/* @__PURE__ */ e(te, { children: s }),
|
|
645
|
-
|
|
646
|
-
] }, `group-${s}`) : /* @__PURE__ */ e(
|
|
651
|
+
pe
|
|
652
|
+
] }, `group-${s}`) : /* @__PURE__ */ e(o.Group, { children: pe }, `group-${C}`);
|
|
647
653
|
}) }) }) })
|
|
648
654
|
]
|
|
649
655
|
}
|
|
650
656
|
);
|
|
651
657
|
});
|
|
652
658
|
Ie.displayName = "Select";
|
|
653
|
-
const
|
|
654
|
-
Root:
|
|
655
|
-
Trigger:
|
|
656
|
-
Value:
|
|
659
|
+
const gt = Object.assign(Ie, {
|
|
660
|
+
Root: be,
|
|
661
|
+
Trigger: ye,
|
|
662
|
+
Value: Se,
|
|
657
663
|
Content: Y,
|
|
658
664
|
Viewport: Z,
|
|
659
665
|
Item: ee,
|
|
660
666
|
ItemText: xe,
|
|
661
|
-
Group:
|
|
667
|
+
Group: Ne,
|
|
662
668
|
Label: te,
|
|
663
|
-
Separator:
|
|
664
|
-
}),
|
|
669
|
+
Separator: se
|
|
670
|
+
}), Et = gt;
|
|
665
671
|
export {
|
|
666
|
-
|
|
672
|
+
Et as S,
|
|
667
673
|
Y as a,
|
|
668
|
-
|
|
674
|
+
Ne as b,
|
|
669
675
|
ee as c,
|
|
670
676
|
xe as d,
|
|
671
677
|
te as e,
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
678
|
+
be as f,
|
|
679
|
+
se as g,
|
|
680
|
+
ye as h,
|
|
681
|
+
Se as i,
|
|
676
682
|
Z as j,
|
|
677
|
-
|
|
683
|
+
ve as s
|
|
678
684
|
};
|
|
679
|
-
//# sourceMappingURL=select-
|
|
685
|
+
//# sourceMappingURL=select-BBDRYxJl.js.map
|