@povio/ui 5.0.0-rc.8 → 5.0.0-rc.9
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/README.md +48 -0
- package/dist/Alert-CnvEb1D_.js +244 -0
- package/dist/AppCanvasPage--RG31Yyv.js +2421 -0
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +80 -0
- package/dist/{button.cva-rv5Uq4aW.js → Button-C5rv4Cr2.js} +84 -1
- package/dist/{Calendar-BxtOuqIM.js → Calendar-BTjajO6i.js} +3 -3
- package/dist/{Checkbox-DYxXYfKL.js → Checkbox-CV1ILXXO.js} +2 -3
- package/dist/{checkbox.cva-IfOByVLA.js → CheckboxCheckmark-CpC3wlMs.js} +42 -1
- package/dist/{ComponentGallery-Da70Y4_Q.js → ComponentGallery-C6exitZN.js} +17 -17
- package/dist/{DatePicker-wulRNGyL.js → DatePicker-DOLL7mkc.js} +6 -6
- package/dist/{DatePickerInput-BB_vPlKu.js → DatePickerInput-BLBcySA2.js} +3 -3
- package/dist/{DateRangePicker-B0tMVREG.js → DateRangePicker-BF-1CztH.js} +6 -6
- package/dist/{DateTimePicker-WGMr0bEH.js → DateTimePicker-Cj0qvJUz.js} +6 -6
- package/dist/{FileInput-DP105Iy9.js → FileInput-Br5DQaGQ.js} +2 -2
- package/dist/{FileUpload-CgNDIvzg.js → FileUpload--7ub3EZO.js} +3 -3
- package/dist/{FormField-AY25LzbW.js → FormField-B99dLt8o.js} +96 -3
- package/dist/{FormFieldError-BVAO5p7H.js → FormFieldError-DeOHHLo2.js} +13 -2
- package/dist/{InputItem-ZeN-aIz8.js → InputItem-CIxbTxZu.js} +11 -11
- package/dist/{Inputs-BC5q5Cvj.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/{NumberRangeInput-B_sMIpP1.js → NumberRangeInput-B8-LHfg3.js} +2 -2
- package/dist/{PaginationList-DptMNpNs.js → PaginationList-DtvuP63b.js} +1 -1
- package/dist/{Progress-Du30L4_s.js → Progress-B3mY9rIP.js} +27 -2
- package/dist/{RadioGroup-CUGNSJql.js → RadioGroup-DOw3PRoX.js} +82 -3
- package/dist/{RichTextEditor-VDOpj7sk.js → RichTextEditor-D4yN7Wj7.js} +3 -3
- package/dist/{Select-B2pAfwRk.js → Select-UR0ec2Ux.js} +2 -2
- package/dist/{Slider-Clc1szFY.js → Slider-CzEmKYBF.js} +1 -1
- package/dist/{Switch-CimmMqEk.js → Switch-CqnGEdeD.js} +27 -3
- package/dist/{Table-CqepqSfe.js → Table-BN2_J_Ne.js} +1 -2
- package/dist/{tag.cva-B3MudLeC.js → Tag-DPg5sL1Z.js} +92 -1
- package/dist/{TextArea-B3teIhsJ.js → TextArea-D8WkKsGn.js} +5 -3
- package/dist/{TimePicker-CU_yL2sY.js → TimePicker-C4taAOFQ.js} +4 -4
- package/dist/{Toast-DPbnLlBi.js → Toast-DtG3pA61.js} +1 -1
- package/dist/{ToggleGroup-BULVwErp.js → ToggleGroup-DOk27fgI.js} +1 -1
- package/dist/UIConfigurator-BwLRfe-a.js +6704 -0
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.js +1 -116
- 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 +1 -93
- 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-tanstack.d.ts +23 -0
- package/dist/config/app-canvas-tanstack.js +62 -0
- package/dist/config/app-canvas.d.ts +2 -69
- package/dist/config/app-canvas.js +2 -2253
- package/dist/config/ui-configurator.js +2 -5383
- package/dist/{datePickerValue.utils-CIFHjKwv.js → datePickerValue.utils-DCgoSrP3.js} +1 -1
- package/dist/index.js +19 -24
- 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/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.js +19 -24
- package/dist/rich-text-editor.js +1 -1
- package/dist/{staticDateTimeSegments-sf_ND7zL.js → staticDateTimeSegments-DtU63_dw.js} +1 -1
- package/dist/{staticSelect.utils-CzlnLPPd.js → staticSelect.utils-uHa8f_c6.js} +3 -3
- package/dist/styles/app-canvas.css +7 -0
- package/dist/{table.cva-DlMT-zLD.js → table.cva-D5oQ-QvA.js} +54 -1
- 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.js +1 -1
- 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.js +31 -39
- package/dist/{toast.runtime-Zf-XyAC3.js → toast.runtime-cxex9e4E.js} +1 -1
- package/dist/{useFieldAccessibility-CcBTgGfm.js → useFieldAccessibility-ScC6Mtd5.js} +1 -1
- package/dist/{useFormAutosave-BD_TFqDF.js → useFormAutosave-DfuP7drj.js} +1 -1
- package/dist/{useStaticInputHandoff-kkQrc6DA.js → useStaticInputHandoff-NeZVnci-.js} +1 -1
- package/dist/{useTableColumnConfig-aVUWC2Mp.js → useTableColumnConfig-Di0_w80v.js} +2 -2
- package/package.json +10 -1
- package/dist/Button-BPTvffuk.js +0 -86
- package/dist/CheckboxCheckmark-D_uc9pon.js +0 -44
- package/dist/TextArea.cva-Bb73hriz.js +0 -5
- package/dist/formFieldError.cva-CsXaQRHX.js +0 -14
- package/dist/formFieldHelper.cva-B8F9LmsE.js +0 -96
- package/dist/grip-vertical-BVxcjdfr.js +0 -54
- package/dist/inspection-model-LuI36xTg.js +0 -1339
- package/dist/progress.cva-WQB8BGbk.js +0 -28
- package/dist/radio.cva-DGbvTymp.js +0 -82
- package/dist/status.cva-6HxNR4EP.js +0 -130
- package/dist/switch.cva-BX3HOxbL.js +0 -27
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as PasswordInput } from "./PasswordInput-DYwUZ4-k.js";
|
|
2
|
-
import { t as Checkbox } from "./Checkbox-
|
|
3
|
-
import { t as Slider } from "./Slider-
|
|
4
|
-
import { t as Switch } from "./Switch-
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
2
|
+
import { t as Checkbox } from "./Checkbox-CV1ILXXO.js";
|
|
3
|
+
import { t as Slider } from "./Slider-CzEmKYBF.js";
|
|
4
|
+
import { t as Switch } from "./Switch-CqnGEdeD.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-D8WkKsGn.js";
|
|
6
6
|
import { Input } from "./components/input.js";
|
|
7
7
|
import { Autocomplete } from "./components/autocomplete.js";
|
|
8
8
|
import { CheckboxGroup } from "./components/checkbox-group.js";
|
|
9
|
-
import { t as DateRangePicker } from "./DateRangePicker-
|
|
10
|
-
import { t as TimePicker } from "./TimePicker-
|
|
11
|
-
import { t as ToggleGroup } from "./ToggleGroup-
|
|
12
|
-
import { t as DatePicker } from "./DatePicker-
|
|
13
|
-
import { t as Select } from "./Select-
|
|
14
|
-
import { t as DateTimePicker } from "./DateTimePicker-
|
|
9
|
+
import { t as DateRangePicker } from "./DateRangePicker-BF-1CztH.js";
|
|
10
|
+
import { t as TimePicker } from "./TimePicker-C4taAOFQ.js";
|
|
11
|
+
import { t as ToggleGroup } from "./ToggleGroup-DOk27fgI.js";
|
|
12
|
+
import { t as DatePicker } from "./DatePicker-DOLL7mkc.js";
|
|
13
|
+
import { t as Select } from "./Select-UR0ec2Ux.js";
|
|
14
|
+
import { t as DateTimePicker } from "./DateTimePicker-Cj0qvJUz.js";
|
|
15
15
|
import { NumberField } from "./components/number-field.js";
|
|
16
|
-
import { t as NumberRangeInput } from "./NumberRangeInput-
|
|
16
|
+
import { t as NumberRangeInput } from "./NumberRangeInput-B8-LHfg3.js";
|
|
17
17
|
import { QueryAutocomplete } from "./components/query-autocomplete.js";
|
|
18
18
|
import { QuerySelect } from "./components/query-select.js";
|
|
19
19
|
import { useMemo } from "react";
|
|
@@ -5,10 +5,10 @@ import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-BsbLZDtC
|
|
|
5
5
|
import { a as $a3be900807531178$re_export$useLocale } from "./exports-BNrTn8Tj.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 {
|
|
8
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.js";
|
|
9
9
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
10
10
|
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
11
|
-
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-
|
|
11
|
+
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
12
12
|
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BX50PSee.js";
|
|
13
13
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
14
14
|
import { memo, useEffect, useRef, useState } from "react";
|
|
@@ -3,7 +3,7 @@ import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
|
3
3
|
import { n as ChevronsLeft, t as ChevronsRight } from "./chevrons-right-DJPPn2fD.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
5
|
import { r as cva } from "./uiOverrides.context-BTCH9y5a.js";
|
|
6
|
-
import { t as Button } from "./Button-
|
|
6
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
7
7
|
import "./i18n-CX2EjhJI.js";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,33 @@
|
|
|
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";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
5
4
|
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
|
|
6
31
|
//#region src/components/status/Progress/Progress.tsx
|
|
7
32
|
const Progress = (t0) => {
|
|
8
33
|
const $ = c(33);
|
|
@@ -116,4 +141,4 @@ const Progress = (t0) => {
|
|
|
116
141
|
return t15;
|
|
117
142
|
};
|
|
118
143
|
//#endregion
|
|
119
|
-
export { Progress as t };
|
|
144
|
+
export { progressTrackWrapperDefinition as a, progressTrackDefinition as i, progressDefinition as n, progressValueDefinition as o, progressFillDefinition as r, Progress as t };
|
|
@@ -6,12 +6,13 @@ 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";
|
|
9
11
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
10
12
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
11
|
-
import {
|
|
13
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.js";
|
|
12
14
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
13
15
|
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";
|
|
15
16
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
16
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
18
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -142,6 +143,84 @@ const $fe21c36db05242bb$export$f4422ae58352e179 = /*#__PURE__*/ forwardRef(funct
|
|
|
142
143
|
})), renderProps.children);
|
|
143
144
|
});
|
|
144
145
|
//#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
|
|
145
224
|
//#region src/components/inputs/RadioGroup/RadioGroup.tsx
|
|
146
225
|
const RadioGroupBase = (props) => {
|
|
147
226
|
const ui = UIConfig.useConfig();
|
|
@@ -295,4 +374,4 @@ const RadioGroupComponent = (props) => {
|
|
|
295
374
|
};
|
|
296
375
|
const RadioGroup = memo(RadioGroupComponent);
|
|
297
376
|
//#endregion
|
|
298
|
-
export { RadioGroup as t };
|
|
377
|
+
export { radioDefinition as i, radioContentRowDefinition as n, radioContentWrapperDefinition as r, 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-C5rv4Cr2.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 { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.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-UR0ec2Ux.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-uHa8f_c6.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-NeZVnci-.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-B99dLt8o.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,11 +2,12 @@ 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";
|
|
5
7
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
8
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import { t as FormFieldError } from "./FormFieldError-
|
|
9
|
+
import { t as FormFieldError } from "./FormFieldError-DeOHHLo2.js";
|
|
8
10
|
import { t as CheckContent } from "./CheckContent-D7sZPmzx.js";
|
|
9
|
-
import { n as switchDefinition, r as switchTypography, t as switchContentClassName } from "./switch.cva-BX3HOxbL.js";
|
|
10
11
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
11
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -87,6 +88,29 @@ const $24585aa46d6ffdff$export$72111f742dee7cb8 = /*#__PURE__*/ forwardRef(funct
|
|
|
87
88
|
})), renderProps.children);
|
|
88
89
|
});
|
|
89
90
|
//#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
|
|
90
114
|
//#region src/components/inputs/Switch/Switch.tsx
|
|
91
115
|
const SwitchBase = (props) => {
|
|
92
116
|
const ui = UIConfig.useConfig();
|
|
@@ -157,4 +181,4 @@ const SwitchComponent = (props) => {
|
|
|
157
181
|
};
|
|
158
182
|
const Switch = memo(SwitchComponent);
|
|
159
183
|
//#endregion
|
|
160
|
-
export { Switch as t };
|
|
184
|
+
export { switchDefinition as n, Switch as t };
|
|
@@ -2,14 +2,13 @@ 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 { a as tableHeaderTextDefinition, c as GripVertical, i as tableHeadRowDefinition, n as tableDataDefinition, o as tableRowDefinition, r as tableHeadDataDefinition, s as theadDefinition, t as tableCellTextDefinition } from "./table.cva-D5oQ-QvA.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";
|
|
13
12
|
import { Suspense, lazy, useCallback, useMemo, useRef, useState } from "react";
|
|
14
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import { createPaginatedRowModel, createSortedRowModel, flexRender, stockFeatures, tableFeatures, useTable } from "@tanstack/react-table";
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
+
import { t as X } from "./x-B6vfz8Ps.js";
|
|
3
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
1
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
6
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
7
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
2
8
|
import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
9
|
+
import "./i18n-CX2EjhJI.js";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
3
13
|
//#region src/components/text/Tag/tag.cva.ts
|
|
4
14
|
const tagDefinition = UIOverrides.defineConfig({
|
|
5
15
|
base: [
|
|
@@ -52,4 +62,85 @@ const tagDefinition = UIOverrides.defineConfig({
|
|
|
52
62
|
}
|
|
53
63
|
});
|
|
54
64
|
//#endregion
|
|
55
|
-
|
|
65
|
+
//#region src/components/text/Tag/Tag.tsx
|
|
66
|
+
const Tag = (t0) => {
|
|
67
|
+
const $ = c(19);
|
|
68
|
+
const { className, children, dismissible, dismissable, isDisabled, disabled, onRemove, onDismiss, dismissButtonProps, excludeFromTabOrder, onPress, contentRef, textSize: textSizeProp, ...appearanceProps } = t0;
|
|
69
|
+
const uiConfig = UIConfig.useConfig();
|
|
70
|
+
const textSize = textSizeProp ?? uiConfig.tag.textSize;
|
|
71
|
+
const isDismissible = dismissible ?? dismissable ?? false;
|
|
72
|
+
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
73
|
+
const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
|
|
74
|
+
const { t } = useTranslation("ui");
|
|
75
|
+
const t1 = onRemove ?? onDismiss ?? onPress;
|
|
76
|
+
let t2;
|
|
77
|
+
if ($[0] !== t) {
|
|
78
|
+
t2 = t(_temp);
|
|
79
|
+
$[0] = t;
|
|
80
|
+
$[1] = t2;
|
|
81
|
+
} else t2 = $[1];
|
|
82
|
+
let t3;
|
|
83
|
+
if ($[2] !== dismissButtonProps || $[3] !== excludeFromTabOrder || $[4] !== resolvedIsDisabled || $[5] !== t1 || $[6] !== t2) {
|
|
84
|
+
t3 = {
|
|
85
|
+
...dismissButtonProps,
|
|
86
|
+
excludeFromTabOrder,
|
|
87
|
+
isDisabled: resolvedIsDisabled,
|
|
88
|
+
onPress: t1,
|
|
89
|
+
"aria-label": t2
|
|
90
|
+
};
|
|
91
|
+
$[2] = dismissButtonProps;
|
|
92
|
+
$[3] = excludeFromTabOrder;
|
|
93
|
+
$[4] = resolvedIsDisabled;
|
|
94
|
+
$[5] = t1;
|
|
95
|
+
$[6] = t2;
|
|
96
|
+
$[7] = t3;
|
|
97
|
+
} else t3 = $[7];
|
|
98
|
+
const buttonProps = t3;
|
|
99
|
+
const t4 = tagCva({
|
|
100
|
+
...appearanceProps,
|
|
101
|
+
className: clsx("pointer-events-none", className)
|
|
102
|
+
});
|
|
103
|
+
const t5 = contentRef;
|
|
104
|
+
let t6;
|
|
105
|
+
if ($[8] !== children || $[9] !== t5 || $[10] !== textSize) {
|
|
106
|
+
t6 = /* @__PURE__ */ jsx(Typography, {
|
|
107
|
+
ref: t5,
|
|
108
|
+
size: textSize,
|
|
109
|
+
as: "span",
|
|
110
|
+
className: "truncate",
|
|
111
|
+
children
|
|
112
|
+
});
|
|
113
|
+
$[8] = children;
|
|
114
|
+
$[9] = t5;
|
|
115
|
+
$[10] = textSize;
|
|
116
|
+
$[11] = t6;
|
|
117
|
+
} else t6 = $[11];
|
|
118
|
+
let t7;
|
|
119
|
+
if ($[12] !== buttonProps || $[13] !== isDismissible) {
|
|
120
|
+
t7 = isDismissible && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
121
|
+
...buttonProps,
|
|
122
|
+
className: "pointer-events-auto shrink-0",
|
|
123
|
+
children: /* @__PURE__ */ jsx(IconSlot, { icon: X })
|
|
124
|
+
});
|
|
125
|
+
$[12] = buttonProps;
|
|
126
|
+
$[13] = isDismissible;
|
|
127
|
+
$[14] = t7;
|
|
128
|
+
} else t7 = $[14];
|
|
129
|
+
let t8;
|
|
130
|
+
if ($[15] !== t4 || $[16] !== t6 || $[17] !== t7) {
|
|
131
|
+
t8 = /* @__PURE__ */ jsxs("div", {
|
|
132
|
+
className: t4,
|
|
133
|
+
children: [t6, t7]
|
|
134
|
+
});
|
|
135
|
+
$[15] = t4;
|
|
136
|
+
$[16] = t6;
|
|
137
|
+
$[17] = t7;
|
|
138
|
+
$[18] = t8;
|
|
139
|
+
} else t8 = $[18];
|
|
140
|
+
return t8;
|
|
141
|
+
};
|
|
142
|
+
function _temp($) {
|
|
143
|
+
return $.ui.tag.dismiss;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
export { tagDefinition as n, Tag as t };
|
|
@@ -4,10 +4,9 @@ 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 { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.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";
|
|
11
10
|
import $ahdqC$react, { createContext, forwardRef, memo, useRef } from "react";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -51,6 +50,9 @@ const $bd263d78e9bf3c56$export$f5c9f3c2c4054eec = /*#__PURE__*/ forwardRef(funct
|
|
|
51
50
|
});
|
|
52
51
|
});
|
|
53
52
|
//#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
|
|
54
56
|
//#region src/components/inputs/Input/TextArea/TextArea.tsx
|
|
55
57
|
const TextAreaBase = (props) => {
|
|
56
58
|
const ui = UIConfig.useConfig();
|
|
@@ -176,4 +178,4 @@ const TextAreaComponent = (props) => {
|
|
|
176
178
|
};
|
|
177
179
|
const TextArea = memo(TextAreaComponent);
|
|
178
180
|
//#endregion
|
|
179
|
-
export { TextArea as t };
|
|
181
|
+
export { textAreaWrapperDefinition as n, TextArea 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 { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.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-NeZVnci-.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-DtU63_dw.js";
|
|
15
|
+
import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-DCgoSrP3.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-C5rv4Cr2.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-B99dLt8o.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";
|