@povio/ui 5.0.0-rc.7 → 5.0.0-rc.8
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/Button-BPTvffuk.js +86 -0
- package/dist/{Calendar-BTjajO6i.js → Calendar-BxtOuqIM.js} +3 -3
- package/dist/{Checkbox-CV1ILXXO.js → Checkbox-DYxXYfKL.js} +3 -2
- package/dist/CheckboxCheckmark-D_uc9pon.js +44 -0
- package/dist/{ComponentGallery-Dp0kZVZM.js → ComponentGallery-Da70Y4_Q.js} +17 -17
- package/dist/{DatePicker-DOLL7mkc.js → DatePicker-wulRNGyL.js} +6 -6
- package/dist/{DatePickerInput-BLBcySA2.js → DatePickerInput-BB_vPlKu.js} +3 -3
- package/dist/{DateRangePicker-BF-1CztH.js → DateRangePicker-B0tMVREG.js} +6 -6
- package/dist/{DateTimePicker-Cj0qvJUz.js → DateTimePicker-WGMr0bEH.js} +6 -6
- package/dist/{FileInput-Br5DQaGQ.js → FileInput-DP105Iy9.js} +2 -2
- package/dist/{FileUpload--7ub3EZO.js → FileUpload-CgNDIvzg.js} +3 -3
- package/dist/{Form-BJ12MjE-.d.ts → Form-DbEWnCKc.d.ts} +1 -1
- package/dist/{FormField-B99dLt8o.js → FormField-AY25LzbW.js} +3 -96
- package/dist/{FormFieldError-DeOHHLo2.js → FormFieldError-BVAO5p7H.js} +2 -13
- package/dist/{InputItem-CIxbTxZu.js → InputItem-ZeN-aIz8.js} +11 -11
- package/dist/{Inputs-DJSKiaWY.js → Inputs-BC5q5Cvj.js} +1 -1
- package/dist/{Inputs-DA73LmLc.d.ts → Inputs-O84btFJL.d.ts} +1 -1
- package/dist/{NumberRangeInput-B8-LHfg3.js → NumberRangeInput-B_sMIpP1.js} +2 -2
- package/dist/{PaginationList-DtvuP63b.js → PaginationList-DptMNpNs.js} +1 -1
- package/dist/{Progress-B3mY9rIP.js → Progress-Du30L4_s.js} +2 -27
- package/dist/{RadioGroup-DOw3PRoX.js → RadioGroup-CUGNSJql.js} +3 -82
- package/dist/{RichTextEditor-D4yN7Wj7.js → RichTextEditor-VDOpj7sk.js} +3 -3
- package/dist/{Select-UR0ec2Ux.js → Select-B2pAfwRk.js} +2 -2
- package/dist/{Slider-CzEmKYBF.js → Slider-Clc1szFY.js} +1 -1
- package/dist/{Switch-CqnGEdeD.js → Switch-CimmMqEk.js} +3 -27
- package/dist/{Table-BN2_J_Ne.js → Table-CqepqSfe.js} +2 -1
- package/dist/{TextArea-D8WkKsGn.js → TextArea-B3teIhsJ.js} +3 -5
- package/dist/TextArea.cva-Bb73hriz.js +5 -0
- package/dist/{TimePicker-C4taAOFQ.js → TimePicker-CU_yL2sY.js} +4 -4
- package/dist/{Toast-DtG3pA61.js → Toast-DPbnLlBi.js} +1 -1
- package/dist/{ToggleGroup-DOk27fgI.js → ToggleGroup-BULVwErp.js} +1 -1
- package/dist/{Button-C5rv4Cr2.js → button.cva-rv5Uq4aW.js} +1 -84
- package/dist/{CheckboxCheckmark-CpC3wlMs.js → checkbox.cva-IfOByVLA.js} +1 -42
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.js +116 -1
- package/dist/components/autocomplete.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/number-field.js +3 -3
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/split-button.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag.js +93 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/app-canvas.d.ts +79 -0
- package/dist/config/app-canvas.js +2253 -0
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/config/ui-configurator.d.ts +1 -920
- package/dist/config/ui-configurator.js +127 -1174
- package/dist/configuration.context-f_FSPWhQ.d.ts +926 -0
- package/dist/{datePickerValue.utils-DCgoSrP3.js → datePickerValue.utils-CIFHjKwv.js} +1 -1
- package/dist/{dynamicInputs-iP39lVKf.d.ts → dynamicInputs-ByVMnx4Z.d.ts} +1 -1
- package/dist/formFieldError.cva-CsXaQRHX.js +14 -0
- package/dist/formFieldHelper.cva-B8F9LmsE.js +96 -0
- package/dist/grip-vertical-BVxcjdfr.js +54 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -19
- package/dist/inspection-model-LuI36xTg.js +1339 -0
- package/dist/progress.cva-WQB8BGbk.js +28 -0
- package/dist/radio.cva-DGbvTymp.js +82 -0
- package/dist/rhf/checkbox.js +1 -1
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-input.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/rich-text-editor.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/switch.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle-group.js +1 -1
- package/dist/rhf.d.ts +2 -2
- package/dist/rhf.js +24 -19
- package/dist/rich-text-editor.js +1 -1
- package/dist/{staticDateTimeSegments-DtU63_dw.js → staticDateTimeSegments-sf_ND7zL.js} +1 -1
- package/dist/{staticSelect.utils-uHa8f_c6.js → staticSelect.utils-CzlnLPPd.js} +3 -3
- package/dist/status.cva-6HxNR4EP.js +130 -0
- package/dist/styles/app-canvas.css +733 -0
- package/dist/styles/configurator.css +19 -5
- package/dist/switch.cva-BX3HOxbL.js +27 -0
- package/dist/{table.cva-D5oQ-QvA.js → table.cva-DlMT-zLD.js} +1 -54
- package/dist/{Tag-DPg5sL1Z.js → tag.cva-B3MudLeC.js} +1 -92
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.js +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.d.ts +4 -4
- package/dist/tanstack.js +39 -31
- package/dist/{toast.runtime-cxex9e4E.js → toast.runtime-Zf-XyAC3.js} +1 -1
- package/dist/{useFieldAccessibility-ScC6Mtd5.js → useFieldAccessibility-CcBTgGfm.js} +1 -1
- package/dist/{useFormAutosave-DfuP7drj.js → useFormAutosave-BD_TFqDF.js} +1 -1
- package/dist/{useStaticInputHandoff-NeZVnci-.js → useStaticInputHandoff-kkQrc6DA.js} +1 -1
- package/dist/{useTableColumnConfig-Di0_w80v.js → useTableColumnConfig-aVUWC2Mp.js} +2 -2
- package/package.json +7 -1
- package/dist/Alert-CnvEb1D_.js +0 -244
- package/dist/token-classes-Bfcx0get.js +0 -163
|
@@ -1,33 +1,8 @@
|
|
|
1
1
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
2
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
3
|
+
import { a as progressValueDefinition, i as progressTrackWrapperDefinition, n as progressFillDefinition, r as progressTrackDefinition, t as progressDefinition } from "./progress.cva-WQB8BGbk.js";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/status/Progress/progress.cva.ts
|
|
6
|
-
const progressDefinition = UIOverrides.defineConfig({
|
|
7
|
-
base: ["flex w-full items-center justify-center gap-file-upload-content-gap-progress-actions"],
|
|
8
|
-
config: {
|
|
9
|
-
variants: { valueLabel: {
|
|
10
|
-
leading: ["flex-row-reverse"],
|
|
11
|
-
trailing: [],
|
|
12
|
-
none: []
|
|
13
|
-
} },
|
|
14
|
-
defaultVariants: { valueLabel: "trailing" }
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
const progressTrackWrapperDefinition = UIOverrides.defineConfig({ base: ["flex flex-fill flex-col items-start gap-2 py-progress-height-height"] });
|
|
18
|
-
const progressTrackDefinition = UIOverrides.defineConfig({
|
|
19
|
-
base: [],
|
|
20
|
-
config: {
|
|
21
|
-
variants: { part: {
|
|
22
|
-
container: ["relative h-1 w-full"],
|
|
23
|
-
background: ["h-1 w-full shrink-0 rounded-xs bg-surface-default-popover"]
|
|
24
|
-
} },
|
|
25
|
-
defaultVariants: { part: "container" }
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const progressFillDefinition = UIOverrides.defineConfig({ base: ["absolute top-0 left-0 h-1 shrink-0 rounded-xs bg-interactive-primary-background transition-all duration-300"] });
|
|
29
|
-
const progressValueDefinition = UIOverrides.defineConfig({ base: ["text-center text-surface-default-popover-foreground"] });
|
|
30
|
-
//#endregion
|
|
31
6
|
//#region src/components/status/Progress/Progress.tsx
|
|
32
7
|
const Progress = (t0) => {
|
|
33
8
|
const $ = c(33);
|
|
@@ -141,4 +116,4 @@ const Progress = (t0) => {
|
|
|
141
116
|
return t15;
|
|
142
117
|
};
|
|
143
118
|
//#endregion
|
|
144
|
-
export {
|
|
119
|
+
export { Progress as t };
|
|
@@ -6,13 +6,12 @@ import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-B2-B-uFY
|
|
|
6
6
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D2MPZ3sY.js";
|
|
7
7
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-DlQcyN1f.js";
|
|
8
8
|
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-Da1c_cOO.js";
|
|
9
|
-
import { t as uiGroupOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
10
|
-
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
11
9
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
12
10
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
13
|
-
import {
|
|
11
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-AY25LzbW.js";
|
|
14
12
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
15
13
|
import { t as CheckContent } from "./CheckContent-D7sZPmzx.js";
|
|
14
|
+
import { a as radioIndicatorClass, i as radioDefinition, n as radioContentRowDefinition, o as radioTypography, r as radioContentWrapperDefinition, t as radioContentClassName } from "./radio.cva-DGbvTymp.js";
|
|
16
15
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
17
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
17
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -143,84 +142,6 @@ const $fe21c36db05242bb$export$f4422ae58352e179 = /*#__PURE__*/ forwardRef(funct
|
|
|
143
142
|
})), renderProps.children);
|
|
144
143
|
});
|
|
145
144
|
//#endregion
|
|
146
|
-
//#region src/components/inputs/RadioGroup/radio.cva.ts
|
|
147
|
-
const radioDefinition = UIOverrides.defineConfig({
|
|
148
|
-
base: [
|
|
149
|
-
"flex items-center justify-center border-2",
|
|
150
|
-
"relative m-1.25 size-3.5 shrink-0 rounded-full",
|
|
151
|
-
"before:absolute before:hidden before:size-1 before:rounded-full",
|
|
152
|
-
uiGroupOutlineClass
|
|
153
|
-
],
|
|
154
|
-
config: {
|
|
155
|
-
variants: { variant: { default: [
|
|
156
|
-
"border-interactive-primary-background bg-support-transparent-outline",
|
|
157
|
-
"before:bg-interactive-primary-foreground group-selected:before:block",
|
|
158
|
-
"group-focus-visible:outline-interactive-ring",
|
|
159
|
-
"group-not-disabled:group-invalid:border-border-destructive-base",
|
|
160
|
-
"group-disabled:border-state-interactive-primary-background/disabled",
|
|
161
|
-
"group-not-disabled:group-not-invalid:group-hover:border-state-interactive-primary-background/hover",
|
|
162
|
-
"group-not-disabled:group-not-invalid:group-pressed:border-state-interactive-primary-background/pressed",
|
|
163
|
-
"group-selected:bg-interactive-primary-background",
|
|
164
|
-
"group-selected:group-not-disabled:group-hover:bg-state-interactive-primary-background/hover",
|
|
165
|
-
"group-selected:group-not-disabled:group-pressed:bg-state-interactive-primary-background/pressed",
|
|
166
|
-
"group-selected:group-disabled:bg-state-interactive-primary-background/disabled"
|
|
167
|
-
] } },
|
|
168
|
-
defaultVariants: { variant: "default" }
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
const radioContentWrapperDefinition = UIOverrides.defineConfig({
|
|
172
|
-
base: ["relative flex"],
|
|
173
|
-
config: {
|
|
174
|
-
variants: {
|
|
175
|
-
variant: { default: "" },
|
|
176
|
-
as: {
|
|
177
|
-
default: "flex-col",
|
|
178
|
-
floating: "flex-col",
|
|
179
|
-
filter: "flex-row flex-wrap items-center gap-2",
|
|
180
|
-
inline: "flex-row flex-wrap items-center gap-2"
|
|
181
|
-
},
|
|
182
|
-
hasInputFrame: {
|
|
183
|
-
true: "gap-2",
|
|
184
|
-
false: ""
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
defaultVariants: {
|
|
188
|
-
variant: "default",
|
|
189
|
-
as: "default",
|
|
190
|
-
hasInputFrame: false
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
const radioContentRowDefinition = UIOverrides.defineConfig({
|
|
195
|
-
base: ["flex"],
|
|
196
|
-
config: {
|
|
197
|
-
variants: {
|
|
198
|
-
variant: { default: "" },
|
|
199
|
-
as: {
|
|
200
|
-
default: "flex-col",
|
|
201
|
-
floating: "flex-col",
|
|
202
|
-
filter: "flex-row flex-wrap items-center gap-2",
|
|
203
|
-
inline: "flex-row flex-wrap items-center gap-2"
|
|
204
|
-
},
|
|
205
|
-
hasInputFrame: {
|
|
206
|
-
true: "gap-2",
|
|
207
|
-
false: ""
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
defaultVariants: {
|
|
211
|
-
variant: "default",
|
|
212
|
-
as: "default",
|
|
213
|
-
hasInputFrame: false
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
const radioIndicatorClass = "group flex items-center gap-2";
|
|
218
|
-
const radioTypography = compoundMapper({ default: {
|
|
219
|
-
size: "large",
|
|
220
|
-
sizeMobile: "large"
|
|
221
|
-
} });
|
|
222
|
-
const radioContentClassName = compoundMapper({ default: "text-surface-default-foreground" });
|
|
223
|
-
//#endregion
|
|
224
145
|
//#region src/components/inputs/RadioGroup/RadioGroup.tsx
|
|
225
146
|
const RadioGroupBase = (props) => {
|
|
226
147
|
const ui = UIConfig.useConfig();
|
|
@@ -374,4 +295,4 @@ const RadioGroupComponent = (props) => {
|
|
|
374
295
|
};
|
|
375
296
|
const RadioGroup = memo(RadioGroupComponent);
|
|
376
297
|
//#endregion
|
|
377
|
-
export {
|
|
298
|
+
export { RadioGroup as t };
|
|
@@ -13,16 +13,16 @@ import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$e
|
|
|
13
13
|
import { t as popoverAnimationClassName } from "./popoverAnimation-DEZSvKP8.js";
|
|
14
14
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
15
15
|
import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
16
|
-
import { t as Button } from "./Button-
|
|
16
|
+
import { t as Button } from "./Button-BPTvffuk.js";
|
|
17
17
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
18
18
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
19
19
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
20
|
-
import {
|
|
20
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-AY25LzbW.js";
|
|
21
21
|
import "./i18n-CX2EjhJI.js";
|
|
22
22
|
import { i as inputSideDefinition, o as useInputCva } from "./input.cva-DJA8ovm_.js";
|
|
23
23
|
import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
|
|
24
24
|
import { Input } from "./components/input.js";
|
|
25
|
-
import { t as Select } from "./Select-
|
|
25
|
+
import { t as Select } from "./Select-B2pAfwRk.js";
|
|
26
26
|
import { Popover } from "./components/popover.js";
|
|
27
27
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
28
28
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2,10 +2,10 @@ import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
|
2
2
|
import { r as selectInputTagsContentWrapperDefinition } from "./selectDesktop.cva-CHAMxhfO.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
|
-
import { n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "./staticSelect.utils-
|
|
5
|
+
import { n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "./staticSelect.utils-CzlnLPPd.js";
|
|
6
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
7
7
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
8
|
-
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-
|
|
8
|
+
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-kkQrc6DA.js";
|
|
9
9
|
import { memo, useRef, useState } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/inputs/Selection/Select/Select.tsx
|
|
@@ -6,7 +6,7 @@ import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
|
6
6
|
import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
7
7
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
8
8
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
9
|
-
import { t as FormField } from "./FormField-
|
|
9
|
+
import { t as FormField } from "./FormField-AY25LzbW.js";
|
|
10
10
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useRef } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -2,12 +2,11 @@ import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
4
4
|
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
5
|
-
import { t as uiGroupOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
6
|
-
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
7
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
8
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
9
|
-
import { t as FormFieldError } from "./FormFieldError-
|
|
7
|
+
import { t as FormFieldError } from "./FormFieldError-BVAO5p7H.js";
|
|
10
8
|
import { t as CheckContent } from "./CheckContent-D7sZPmzx.js";
|
|
9
|
+
import { n as switchDefinition, r as switchTypography, t as switchContentClassName } from "./switch.cva-BX3HOxbL.js";
|
|
11
10
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
12
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -88,29 +87,6 @@ const $24585aa46d6ffdff$export$72111f742dee7cb8 = /*#__PURE__*/ forwardRef(funct
|
|
|
88
87
|
})), renderProps.children);
|
|
89
88
|
});
|
|
90
89
|
//#endregion
|
|
91
|
-
//#region src/components/inputs/Switch/switch.cva.ts
|
|
92
|
-
const switchDefinition = UIOverrides.defineConfig({
|
|
93
|
-
base: ["h-6 w-10 rounded-full before:m-0.5 before:block before:aspect-square before:h-5 before:rounded-full before:transition-transform before:content-[''] group-selected:before:translate-x-4", uiGroupOutlineClass],
|
|
94
|
-
config: {
|
|
95
|
-
variants: { variant: { default: [
|
|
96
|
-
"bg-state-interactive-primary-background/disabled before:bg-interactive-primary-foreground",
|
|
97
|
-
"group-not-disabled:group-selected:bg-interactive-primary-background",
|
|
98
|
-
"group-disabled:bg-state-interactive-secondary-background/disabled group-disabled:before:bg-interactive-secondary-foreground",
|
|
99
|
-
"group-focus-visible:outline-interactive-ring",
|
|
100
|
-
"group-not-disabled:group-hover:bg-state-interactive-primary-background/hover",
|
|
101
|
-
"group-not-disabled:group-pressed:bg-state-interactive-primary-background/pressed",
|
|
102
|
-
"group-not-disabled:group-selected:group-hover:bg-state-interactive-primary-background/hover",
|
|
103
|
-
"group-not-disabled:group-selected:group-pressed:bg-state-interactive-primary-background/pressed"
|
|
104
|
-
] } },
|
|
105
|
-
defaultVariants: { variant: "default" }
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
const switchTypography = compoundMapper({ default: {
|
|
109
|
-
size: "large",
|
|
110
|
-
sizeMobile: "large"
|
|
111
|
-
} });
|
|
112
|
-
const switchContentClassName = compoundMapper({ default: "text-surface-default-foreground" });
|
|
113
|
-
//#endregion
|
|
114
90
|
//#region src/components/inputs/Switch/Switch.tsx
|
|
115
91
|
const SwitchBase = (props) => {
|
|
116
92
|
const ui = UIConfig.useConfig();
|
|
@@ -181,4 +157,4 @@ const SwitchComponent = (props) => {
|
|
|
181
157
|
};
|
|
182
158
|
const Switch = memo(SwitchComponent);
|
|
183
159
|
//#endregion
|
|
184
|
-
export {
|
|
160
|
+
export { Switch as t };
|
|
@@ -2,13 +2,14 @@ import { t as logger } from "./logger-CqZjM-sn.js";
|
|
|
2
2
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
3
3
|
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
4
4
|
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as GripVertical } from "./grip-vertical-BVxcjdfr.js";
|
|
6
6
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
7
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
8
8
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
9
9
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
10
10
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
11
11
|
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
12
|
+
import { a as tableHeaderTextDefinition, i as tableHeadRowDefinition, n as tableDataDefinition, o as tableRowDefinition, r as tableHeadDataDefinition, s as theadDefinition, t as tableCellTextDefinition } from "./table.cva-DlMT-zLD.js";
|
|
12
13
|
import { Suspense, lazy, useCallback, useMemo, useRef, useState } from "react";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
15
|
import { createPaginatedRowModel, createSortedRowModel, flexRender, stockFeatures, tableFeatures, useTable } from "@tanstack/react-table";
|
|
@@ -4,9 +4,10 @@ import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
|
4
4
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Czcqspm7.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import {
|
|
7
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-AY25LzbW.js";
|
|
8
8
|
import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-DJA8ovm_.js";
|
|
9
9
|
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
10
|
+
import { t as textAreaWrapperDefinition } from "./TextArea.cva-Bb73hriz.js";
|
|
10
11
|
import $ahdqC$react, { createContext, forwardRef, memo, useRef } from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -50,9 +51,6 @@ const $bd263d78e9bf3c56$export$f5c9f3c2c4054eec = /*#__PURE__*/ forwardRef(funct
|
|
|
50
51
|
});
|
|
51
52
|
});
|
|
52
53
|
//#endregion
|
|
53
|
-
//#region src/components/inputs/Input/TextArea/TextArea.cva.ts
|
|
54
|
-
const textAreaWrapperDefinition = UIOverrides.defineConfig({ base: ["group/text-area relative h-full"] });
|
|
55
|
-
//#endregion
|
|
56
54
|
//#region src/components/inputs/Input/TextArea/TextArea.tsx
|
|
57
55
|
const TextAreaBase = (props) => {
|
|
58
56
|
const ui = UIConfig.useConfig();
|
|
@@ -178,4 +176,4 @@ const TextAreaComponent = (props) => {
|
|
|
178
176
|
};
|
|
179
177
|
const TextArea = memo(TextAreaComponent);
|
|
180
178
|
//#endregion
|
|
181
|
-
export {
|
|
179
|
+
export { TextArea as t };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
|
+
//#region src/components/inputs/Input/TextArea/TextArea.cva.ts
|
|
3
|
+
const textAreaWrapperDefinition = UIOverrides.defineConfig({ base: ["group/text-area relative h-full"] });
|
|
4
|
+
//#endregion
|
|
5
|
+
export { textAreaWrapperDefinition as t };
|
|
@@ -6,13 +6,13 @@ import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
|
6
6
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
7
7
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
8
8
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
9
|
-
import {
|
|
9
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-AY25LzbW.js";
|
|
10
10
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
11
11
|
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
12
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-kkQrc6DA.js";
|
|
13
13
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
14
|
-
import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-
|
|
15
|
-
import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-
|
|
14
|
+
import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-sf_ND7zL.js";
|
|
15
|
+
import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-CIFHjKwv.js";
|
|
16
16
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
17
17
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
|
3
3
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
4
4
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
5
5
|
import { t as Spinner } from "./Spinner-BeVTUzzx.js";
|
|
6
|
-
import { t as Button } from "./Button-
|
|
6
|
+
import { t as Button } from "./Button-BPTvffuk.js";
|
|
7
7
|
import { a as toastDefinition, n as statusIconDefinition, r as statusSeparatorDefinition, t as buttonColorVariant } from "./toast.cva-C_L_RffH.js";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/status/Toast/Toast.tsx
|
|
@@ -5,7 +5,7 @@ import { n as $bc25b811ec97a172$export$40258cc1d95ff477, t as $75afe627ae0cc0fa$
|
|
|
5
5
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
6
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
7
7
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
8
|
-
import { t as FormField } from "./FormField-
|
|
8
|
+
import { t as FormField } from "./FormField-AY25LzbW.js";
|
|
9
9
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
10
10
|
import { n as toggleGroupItemDefinition, t as toggleGroupDefinition } from "./toggleGroup.cva-MbpaEBg1.js";
|
|
11
11
|
import { Fragment, useMemo, useRef } from "react";
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
1
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
4
|
-
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-FupWOW1f.js";
|
|
5
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
6
|
-
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-BW1ensey.js";
|
|
7
|
-
import { t as LinkContext } from "./link.context-J7aQtMOr.js";
|
|
8
|
-
import { t as ButtonContent } from "./ButtonContent-c7lJayVQ.js";
|
|
9
2
|
import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
10
3
|
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
4
|
//#region src/components/buttons/Button/button.cva.ts
|
|
13
5
|
const buttonDefinition = UIOverrides.defineConfig({
|
|
14
6
|
base: [
|
|
@@ -428,79 +420,4 @@ const buttonTypography = compoundMapper({ default: {
|
|
|
428
420
|
className: "font-bold"
|
|
429
421
|
} });
|
|
430
422
|
//#endregion
|
|
431
|
-
|
|
432
|
-
const getContentIconPosition = ({ icon, startIcon, endIcon, iconPosition }) => {
|
|
433
|
-
if (startIcon || !endIcon && icon && iconPosition !== "right") return "left";
|
|
434
|
-
if (endIcon || icon) return "right";
|
|
435
|
-
return "none";
|
|
436
|
-
};
|
|
437
|
-
const Button = ({ icon: Icon, startIcon, endIcon, iconPosition, children, isLoading: isLoadingProp, loading, className, link, iconClassName, noDisableWhenLoading, disableWhileLoading, contentRef, variant: variantProp, size: sizeProp, width: widthProp, fullWidth, ...props }) => {
|
|
438
|
-
const linkContext = LinkContext.useLinkContext();
|
|
439
|
-
const uiConfig = UIConfig.useConfig();
|
|
440
|
-
const variant = variantProp ?? uiConfig.button.variant;
|
|
441
|
-
const size = sizeProp ?? uiConfig.button.size;
|
|
442
|
-
const width = fullWidth ? "fill" : widthProp;
|
|
443
|
-
const isLoading = isLoadingProp ?? loading;
|
|
444
|
-
const shouldDisableWhileLoading = disableWhileLoading ?? !noDisableWhenLoading;
|
|
445
|
-
const contentIconPosition = getContentIconPosition({
|
|
446
|
-
icon: Icon,
|
|
447
|
-
startIcon,
|
|
448
|
-
endIcon,
|
|
449
|
-
iconPosition
|
|
450
|
-
});
|
|
451
|
-
const buttonCva = UIOverrides.useCva("button.cva", buttonDefinition);
|
|
452
|
-
const buttonSizeCva = UIOverrides.useCva("button.sizeCva", buttonSizeDefinition);
|
|
453
|
-
const buttonContentCva = UIOverrides.useCva("button.contentCva", buttonContentDefinition);
|
|
454
|
-
const buttonIconSizeCva = UIOverrides.useCva("button.iconSize", buttonIconSizeDefinition);
|
|
455
|
-
const typographyMap = UIOverrides.useMapper("button.typography", buttonTypography);
|
|
456
|
-
const Component = (() => {
|
|
457
|
-
if (link) return linkContext?.LinkComponent ?? $984a1fc08f87e4f3$export$a6c7ac8248d6e38a;
|
|
458
|
-
if (props.toggle != null) return $75afe627ae0cc0fa$export$d2b052e7b4be1756;
|
|
459
|
-
return $7705c033048f6da7$export$353f5b6fc5456de1;
|
|
460
|
-
})();
|
|
461
|
-
if (link && !link.to && link.href) link.to = link.href;
|
|
462
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
463
|
-
...props,
|
|
464
|
-
...link,
|
|
465
|
-
isDisabled: props.isDisabled || isLoading && shouldDisableWhileLoading,
|
|
466
|
-
className: clsx(buttonCva({
|
|
467
|
-
...props,
|
|
468
|
-
variant,
|
|
469
|
-
size,
|
|
470
|
-
width,
|
|
471
|
-
className
|
|
472
|
-
}), buttonSizeCva({
|
|
473
|
-
...props,
|
|
474
|
-
variant,
|
|
475
|
-
size
|
|
476
|
-
}), buttonContentCva({
|
|
477
|
-
...props,
|
|
478
|
-
variant,
|
|
479
|
-
size,
|
|
480
|
-
iconPosition: contentIconPosition
|
|
481
|
-
})),
|
|
482
|
-
children: /* @__PURE__ */ jsx(ButtonContent, {
|
|
483
|
-
ref: contentRef,
|
|
484
|
-
isLoading,
|
|
485
|
-
icon: Icon,
|
|
486
|
-
startIcon,
|
|
487
|
-
endIcon,
|
|
488
|
-
content: children,
|
|
489
|
-
hideText: props.iconOnly,
|
|
490
|
-
iconPosition,
|
|
491
|
-
iconClassName: buttonIconSizeCva({
|
|
492
|
-
...props,
|
|
493
|
-
variant,
|
|
494
|
-
size,
|
|
495
|
-
className: iconClassName
|
|
496
|
-
}),
|
|
497
|
-
typography: typographyMap({
|
|
498
|
-
...props,
|
|
499
|
-
variant,
|
|
500
|
-
size
|
|
501
|
-
})
|
|
502
|
-
})
|
|
503
|
-
});
|
|
504
|
-
};
|
|
505
|
-
//#endregion
|
|
506
|
-
export { buttonSizeDefinition as a, buttonIconSizeDefinition as i, buttonContentDefinition as n, buttonDefinition as r, Button as t };
|
|
423
|
+
export { buttonTypography as a, buttonSizeDefinition as i, buttonDefinition as n, buttonIconSizeDefinition as r, buttonContentDefinition as t };
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as Check } from "./check-DYMBkp_Z.js";
|
|
3
1
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
4
2
|
import { t as uiGroupOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
5
3
|
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/minus.mjs
|
|
8
|
-
/**
|
|
9
|
-
* @license lucide-react v1.43.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const __iconData = {
|
|
15
|
-
name: "minus",
|
|
16
|
-
size: 24,
|
|
17
|
-
node: [["path", {
|
|
18
|
-
d: "M5 12h14",
|
|
19
|
-
key: "1ays0h"
|
|
20
|
-
}]]
|
|
21
|
-
};
|
|
22
|
-
__iconData.node;
|
|
23
|
-
const Minus = createLucideIcon(__iconData);
|
|
24
|
-
//#endregion
|
|
25
4
|
//#region src/components/inputs/Checkbox/checkbox.cva.ts
|
|
26
5
|
const checkboxDefinition = UIOverrides.defineConfig({
|
|
27
6
|
base: [
|
|
@@ -155,24 +134,4 @@ const checkboxIconDefinition = UIOverrides.defineConfig({
|
|
|
155
134
|
}
|
|
156
135
|
});
|
|
157
136
|
//#endregion
|
|
158
|
-
|
|
159
|
-
const CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Check, indeterminateIcon: IndeterminateIcon = Minus, ...props }) => {
|
|
160
|
-
const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
|
|
161
|
-
const checkboxIconCva = UIOverrides.useCva("checkbox.iconCva", checkboxIconDefinition);
|
|
162
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
163
|
-
className: checkboxCva({
|
|
164
|
-
variant,
|
|
165
|
-
...props,
|
|
166
|
-
className
|
|
167
|
-
}),
|
|
168
|
-
children: [/* @__PURE__ */ jsx(SelectedIcon, { className: checkboxIconCva({
|
|
169
|
-
...props,
|
|
170
|
-
iconVariant: "selected"
|
|
171
|
-
}) }), /* @__PURE__ */ jsx(IndeterminateIcon, { className: checkboxIconCva({
|
|
172
|
-
...props,
|
|
173
|
-
iconVariant: "indeterminate"
|
|
174
|
-
}) })]
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
//#endregion
|
|
178
|
-
export { checkboxDefinition as a, checkboxIndicatorClass as c, checkboxContentWrapperDefinition as i, checkboxTypography as l, checkboxContentClassName as n, checkboxGroupLabelDefinition as o, checkboxContentRowDefinition as r, checkboxIconDefinition as s, CheckboxCheckmark as t, Minus as u };
|
|
137
|
+
export { checkboxGroupLabelDefinition as a, checkboxTypography as c, checkboxDefinition as i, checkboxContentRowDefinition as n, checkboxIconDefinition as o, checkboxContentWrapperDefinition as r, checkboxIndicatorClass as s, checkboxContentClassName as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
|
|
2
2
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
3
|
import { t as Typography } from "../Typography-LU4z2pR1.js";
|
|
4
|
-
import { t as Button } from "../Button-
|
|
4
|
+
import { t as Button } from "../Button-BPTvffuk.js";
|
|
5
5
|
import { t as Dialog } from "../Dialog-9manOgMA.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/components/alert.js
CHANGED
|
@@ -1,2 +1,117 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
|
|
2
|
+
import { t as IconSlot } from "../IconSlot-DSK7qNxc.js";
|
|
3
|
+
import { t as Typography } from "../Typography-LU4z2pR1.js";
|
|
4
|
+
import { t as Spinner } from "../Spinner-BeVTUzzx.js";
|
|
5
|
+
import { n as statusSeparatorDefinition, r as alertDefinition, t as statusIconDefinition } from "../status.cva-6HxNR4EP.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/status/Alert/Alert.tsx
|
|
9
|
+
const Alert = (t0) => {
|
|
10
|
+
const $ = c(31);
|
|
11
|
+
const { variant, color, text, isLoading: t1, rightContent, hasSeparator, icon: Icon, className } = t0;
|
|
12
|
+
const isLoading = t1 === void 0 ? false : t1;
|
|
13
|
+
const alertCva = UIOverrides.useCva("alert.cva", alertDefinition);
|
|
14
|
+
const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
|
|
15
|
+
const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
|
|
16
|
+
let t2;
|
|
17
|
+
if ($[0] !== alertCva || $[1] !== className || $[2] !== color || $[3] !== variant) {
|
|
18
|
+
t2 = alertCva({
|
|
19
|
+
variant,
|
|
20
|
+
color,
|
|
21
|
+
className
|
|
22
|
+
});
|
|
23
|
+
$[0] = alertCva;
|
|
24
|
+
$[1] = className;
|
|
25
|
+
$[2] = color;
|
|
26
|
+
$[3] = variant;
|
|
27
|
+
$[4] = t2;
|
|
28
|
+
} else t2 = $[4];
|
|
29
|
+
let t3;
|
|
30
|
+
if ($[5] !== isLoading) {
|
|
31
|
+
t3 = isLoading && /* @__PURE__ */ jsx(Spinner, {
|
|
32
|
+
size: "default",
|
|
33
|
+
className: "shrink-0"
|
|
34
|
+
});
|
|
35
|
+
$[5] = isLoading;
|
|
36
|
+
$[6] = t3;
|
|
37
|
+
} else t3 = $[6];
|
|
38
|
+
let t4;
|
|
39
|
+
if ($[7] !== Icon || $[8] !== color || $[9] !== iconCva || $[10] !== isLoading || $[11] !== variant) {
|
|
40
|
+
t4 = !isLoading && Icon && /* @__PURE__ */ jsx(IconSlot, {
|
|
41
|
+
icon: Icon,
|
|
42
|
+
className: iconCva({
|
|
43
|
+
variant,
|
|
44
|
+
color
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
$[7] = Icon;
|
|
48
|
+
$[8] = color;
|
|
49
|
+
$[9] = iconCva;
|
|
50
|
+
$[10] = isLoading;
|
|
51
|
+
$[11] = variant;
|
|
52
|
+
$[12] = t4;
|
|
53
|
+
} else t4 = $[12];
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[13] !== text) {
|
|
56
|
+
t5 = /* @__PURE__ */ jsx(Typography, {
|
|
57
|
+
size: "large",
|
|
58
|
+
children: text
|
|
59
|
+
});
|
|
60
|
+
$[13] = text;
|
|
61
|
+
$[14] = t5;
|
|
62
|
+
} else t5 = $[14];
|
|
63
|
+
let t6;
|
|
64
|
+
if ($[15] !== t3 || $[16] !== t4 || $[17] !== t5) {
|
|
65
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
66
|
+
className: "flex w-full items-start gap-alert-gap-icon-to-text px-alert-side-default py-alert-height-content",
|
|
67
|
+
children: [
|
|
68
|
+
t3,
|
|
69
|
+
t4,
|
|
70
|
+
t5
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
$[15] = t3;
|
|
74
|
+
$[16] = t4;
|
|
75
|
+
$[17] = t5;
|
|
76
|
+
$[18] = t6;
|
|
77
|
+
} else t6 = $[18];
|
|
78
|
+
let t7;
|
|
79
|
+
if ($[19] !== color || $[20] !== hasSeparator || $[21] !== rightContent || $[22] !== separatorCva || $[23] !== variant) {
|
|
80
|
+
t7 = !!rightContent && /* @__PURE__ */ jsxs(Fragment, { children: [hasSeparator && /* @__PURE__ */ jsx("div", { className: separatorCva({
|
|
81
|
+
variant,
|
|
82
|
+
color
|
|
83
|
+
}) }), /* @__PURE__ */ jsx("div", {
|
|
84
|
+
className: "flex w-full shrink-0 flex-wrap items-center justify-end gap-toast-gap-action px-alert-side-default py-alert-height-actions-mobile md:w-auto md:justify-center md:py-alert-height-actions-desktop",
|
|
85
|
+
children: rightContent
|
|
86
|
+
})] });
|
|
87
|
+
$[19] = color;
|
|
88
|
+
$[20] = hasSeparator;
|
|
89
|
+
$[21] = rightContent;
|
|
90
|
+
$[22] = separatorCva;
|
|
91
|
+
$[23] = variant;
|
|
92
|
+
$[24] = t7;
|
|
93
|
+
} else t7 = $[24];
|
|
94
|
+
let t8;
|
|
95
|
+
if ($[25] !== t6 || $[26] !== t7) {
|
|
96
|
+
t8 = /* @__PURE__ */ jsxs("div", {
|
|
97
|
+
className: "flex w-auto flex-col items-center md:flex-row",
|
|
98
|
+
children: [t6, t7]
|
|
99
|
+
});
|
|
100
|
+
$[25] = t6;
|
|
101
|
+
$[26] = t7;
|
|
102
|
+
$[27] = t8;
|
|
103
|
+
} else t8 = $[27];
|
|
104
|
+
let t9;
|
|
105
|
+
if ($[28] !== t2 || $[29] !== t8) {
|
|
106
|
+
t9 = /* @__PURE__ */ jsx("div", {
|
|
107
|
+
className: t2,
|
|
108
|
+
children: t8
|
|
109
|
+
});
|
|
110
|
+
$[28] = t2;
|
|
111
|
+
$[29] = t8;
|
|
112
|
+
$[30] = t9;
|
|
113
|
+
} else t9 = $[30];
|
|
114
|
+
return t9;
|
|
115
|
+
};
|
|
116
|
+
//#endregion
|
|
2
117
|
export { Alert };
|
|
@@ -2,10 +2,10 @@ import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
|
|
|
2
2
|
import { r as selectInputTagsContentWrapperDefinition } from "../selectDesktop.cva-CHAMxhfO.js";
|
|
3
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
|
|
5
|
-
import { n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "../staticSelect.utils-
|
|
5
|
+
import { n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "../staticSelect.utils-CzlnLPPd.js";
|
|
6
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
7
7
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
8
|
-
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "../useStaticInputHandoff-
|
|
8
|
+
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "../useStaticInputHandoff-kkQrc6DA.js";
|
|
9
9
|
import { memo, useRef, useState } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Button } from "../Button-
|
|
1
|
+
import { t as Button } from "../Button-BPTvffuk.js";
|
|
2
2
|
export { Button };
|