@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,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-C5rv4Cr2.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,117 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
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
|
|
1
|
+
import { t as Alert } from "../Alert-CnvEb1D_.js";
|
|
117
2
|
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-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/Autocomplete/Autocomplete.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Button } from "../Button-
|
|
1
|
+
import { t as Button } from "../Button-C5rv4Cr2.js";
|
|
2
2
|
export { Button };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
|
|
2
|
+
import { i as checkboxContentWrapperDefinition, o as checkboxGroupLabelDefinition, r as checkboxContentRowDefinition } from "../CheckboxCheckmark-CpC3wlMs.js";
|
|
2
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
4
|
import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
|
|
4
|
-
import { n as CheckboxBase, r as $ed8ccb2e23e76301$export$4aa08d5625cb8ead } from "../Checkbox-
|
|
5
|
+
import { n as CheckboxBase, r as $ed8ccb2e23e76301$export$4aa08d5625cb8ead } from "../Checkbox-CV1ILXXO.js";
|
|
5
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
6
7
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
7
|
-
import {
|
|
8
|
+
import { r as FormFieldLabel, t as FormField } from "../FormField-B99dLt8o.js";
|
|
8
9
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
|
|
9
|
-
import { a as checkboxGroupLabelDefinition, n as checkboxContentRowDefinition, r as checkboxContentWrapperDefinition } from "../checkbox.cva-IfOByVLA.js";
|
|
10
10
|
import { memo } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { useLabel } from "@react-aria/label";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CheckboxBase, t as Checkbox } from "../Checkbox-
|
|
1
|
+
import { n as CheckboxBase, t as Checkbox } from "../Checkbox-CV1ILXXO.js";
|
|
2
2
|
export { Checkbox, CheckboxBase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DatePicker } from "../DatePicker-
|
|
1
|
+
import { t as DatePicker } from "../DatePicker-DOLL7mkc.js";
|
|
2
2
|
export { DatePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isDateRangePresetValue, c as resolveDateRangePreset, i as hydrateRelativeDateRangeValue, n as dateRangePresetValues, o as isRelativeDateRangeValue, r as getDateRangePreset, s as isStoredRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-
|
|
1
|
+
import { a as isDateRangePresetValue, c as resolveDateRangePreset, i as hydrateRelativeDateRangeValue, n as dateRangePresetValues, o as isRelativeDateRangeValue, r as getDateRangePreset, s as isStoredRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-BF-1CztH.js";
|
|
2
2
|
export { DateRangePicker, dateRangePresetValues, getDateRangePreset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, resolveDateRangePreset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DateTimePicker } from "../DateTimePicker-
|
|
1
|
+
import { t as DateTimePicker } from "../DateTimePicker-Cj0qvJUz.js";
|
|
2
2
|
export { DateTimePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FileInput } from "../FileInput-
|
|
1
|
+
import { t as FileInput } from "../FileInput-Br5DQaGQ.js";
|
|
2
2
|
export { FileInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FileUpload } from "../FileUpload
|
|
1
|
+
import { t as FileUpload } from "../FileUpload--7ub3EZO.js";
|
|
2
2
|
export { FileUpload };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FormField } from "../FormField-
|
|
1
|
+
import { t as FormField } from "../FormField-B99dLt8o.js";
|
|
2
2
|
export { FormField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Tooltip } from "../Tooltip-CpG1nz7Y.js";
|
|
2
|
-
import { t as Button } from "../Button-
|
|
2
|
+
import { t as Button } from "../Button-C5rv4Cr2.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.tsx
|
package/dist/components/input.js
CHANGED
|
@@ -4,11 +4,11 @@ import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
|
|
|
4
4
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.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 { t as FormField } from "../FormField-
|
|
7
|
+
import { t as FormField } from "../FormField-B99dLt8o.js";
|
|
8
8
|
import { t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
|
|
9
9
|
import { t as TooltipWrapper } from "../TooltipWrapper-3jyN0Wss.js";
|
|
10
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-
|
|
11
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-
|
|
10
|
+
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-ScC6Mtd5.js";
|
|
11
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-NeZVnci-.js";
|
|
12
12
|
import { memo, useEffect, useRef, useState } from "react";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useFocusVisible } from "@react-aria/interactions";
|
|
@@ -5,11 +5,11 @@ import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDt
|
|
|
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 { t as FormField } from "../FormField-
|
|
8
|
+
import { t as FormField } from "../FormField-B99dLt8o.js";
|
|
9
9
|
import { t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
|
|
10
10
|
import { t as TooltipWrapper } from "../TooltipWrapper-3jyN0Wss.js";
|
|
11
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-
|
|
11
|
+
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-ScC6Mtd5.js";
|
|
12
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-NeZVnci-.js";
|
|
13
13
|
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BX50PSee.js";
|
|
14
14
|
import { t as IntlUtils } from "../intl.utils-zwAFoZ0U.js";
|
|
15
15
|
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as NumberRangeInput } from "../NumberRangeInput-
|
|
1
|
+
import { t as NumberRangeInput } from "../NumberRangeInput-B8-LHfg3.js";
|
|
2
2
|
export { NumberRangeInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PaginationList } from "../PaginationList-
|
|
1
|
+
import { t as PaginationList } from "../PaginationList-DtvuP63b.js";
|
|
2
2
|
export { PaginationList };
|
|
@@ -2,7 +2,7 @@ import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
|
2
2
|
import { t as Typography } from "../Typography-LU4z2pR1.js";
|
|
3
3
|
import "../i18n-CX2EjhJI.js";
|
|
4
4
|
import { NumberField } from "./number-field.js";
|
|
5
|
-
import { t as PaginationList } from "../PaginationList-
|
|
5
|
+
import { t as PaginationList } from "../PaginationList-DtvuP63b.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Progress } from "../Progress-
|
|
1
|
+
import { t as Progress } from "../Progress-B3mY9rIP.js";
|
|
2
2
|
export { Progress };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
3
3
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
4
|
-
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-
|
|
4
|
+
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-NeZVnci-.js";
|
|
5
5
|
import { Autocomplete } from "./autocomplete.js";
|
|
6
6
|
import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
|
|
7
7
|
import { memo, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
3
3
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
4
|
-
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-
|
|
5
|
-
import { t as Select } from "../Select-
|
|
4
|
+
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-NeZVnci-.js";
|
|
5
|
+
import { t as Select } from "../Select-UR0ec2Ux.js";
|
|
6
6
|
import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
|
|
7
7
|
import { memo, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as RadioGroup } from "../RadioGroup-
|
|
1
|
+
import { t as RadioGroup } from "../RadioGroup-DOw3PRoX.js";
|
|
2
2
|
export { RadioGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Select } from "../Select-
|
|
1
|
+
import { t as Select } from "../Select-UR0ec2Ux.js";
|
|
2
2
|
export { Select };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Slider } from "../Slider-
|
|
1
|
+
import { t as Slider } from "../Slider-CzEmKYBF.js";
|
|
2
2
|
export { Slider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as DropdownMenu } from "../DropdownMenu-5jmtgLXd.js";
|
|
2
2
|
import { t as ChevronDown } from "../chevron-down-B4Pr8bD3.js";
|
|
3
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as Button } from "../Button-
|
|
4
|
+
import { t as Button } from "../Button-C5rv4Cr2.js";
|
|
5
5
|
import { IconButton } from "./icon-button.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "../Switch-
|
|
1
|
+
import { t as Switch } from "../Switch-CqnGEdeD.js";
|
|
2
2
|
export { Switch };
|
package/dist/components/tag.js
CHANGED
|
@@ -1,94 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as X } from "../x-B6vfz8Ps.js";
|
|
3
|
-
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
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";
|
|
8
|
-
import { t as tagDefinition } from "../tag.cva-B3MudLeC.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";
|
|
13
|
-
//#region src/components/text/Tag/Tag.tsx
|
|
14
|
-
const Tag = (t0) => {
|
|
15
|
-
const $ = c(19);
|
|
16
|
-
const { className, children, dismissible, dismissable, isDisabled, disabled, onRemove, onDismiss, dismissButtonProps, excludeFromTabOrder, onPress, contentRef, textSize: textSizeProp, ...appearanceProps } = t0;
|
|
17
|
-
const uiConfig = UIConfig.useConfig();
|
|
18
|
-
const textSize = textSizeProp ?? uiConfig.tag.textSize;
|
|
19
|
-
const isDismissible = dismissible ?? dismissable ?? false;
|
|
20
|
-
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
21
|
-
const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
|
|
22
|
-
const { t } = useTranslation("ui");
|
|
23
|
-
const t1 = onRemove ?? onDismiss ?? onPress;
|
|
24
|
-
let t2;
|
|
25
|
-
if ($[0] !== t) {
|
|
26
|
-
t2 = t(_temp);
|
|
27
|
-
$[0] = t;
|
|
28
|
-
$[1] = t2;
|
|
29
|
-
} else t2 = $[1];
|
|
30
|
-
let t3;
|
|
31
|
-
if ($[2] !== dismissButtonProps || $[3] !== excludeFromTabOrder || $[4] !== resolvedIsDisabled || $[5] !== t1 || $[6] !== t2) {
|
|
32
|
-
t3 = {
|
|
33
|
-
...dismissButtonProps,
|
|
34
|
-
excludeFromTabOrder,
|
|
35
|
-
isDisabled: resolvedIsDisabled,
|
|
36
|
-
onPress: t1,
|
|
37
|
-
"aria-label": t2
|
|
38
|
-
};
|
|
39
|
-
$[2] = dismissButtonProps;
|
|
40
|
-
$[3] = excludeFromTabOrder;
|
|
41
|
-
$[4] = resolvedIsDisabled;
|
|
42
|
-
$[5] = t1;
|
|
43
|
-
$[6] = t2;
|
|
44
|
-
$[7] = t3;
|
|
45
|
-
} else t3 = $[7];
|
|
46
|
-
const buttonProps = t3;
|
|
47
|
-
const t4 = tagCva({
|
|
48
|
-
...appearanceProps,
|
|
49
|
-
className: clsx("pointer-events-none", className)
|
|
50
|
-
});
|
|
51
|
-
const t5 = contentRef;
|
|
52
|
-
let t6;
|
|
53
|
-
if ($[8] !== children || $[9] !== t5 || $[10] !== textSize) {
|
|
54
|
-
t6 = /* @__PURE__ */ jsx(Typography, {
|
|
55
|
-
ref: t5,
|
|
56
|
-
size: textSize,
|
|
57
|
-
as: "span",
|
|
58
|
-
className: "truncate",
|
|
59
|
-
children
|
|
60
|
-
});
|
|
61
|
-
$[8] = children;
|
|
62
|
-
$[9] = t5;
|
|
63
|
-
$[10] = textSize;
|
|
64
|
-
$[11] = t6;
|
|
65
|
-
} else t6 = $[11];
|
|
66
|
-
let t7;
|
|
67
|
-
if ($[12] !== buttonProps || $[13] !== isDismissible) {
|
|
68
|
-
t7 = isDismissible && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
69
|
-
...buttonProps,
|
|
70
|
-
className: "pointer-events-auto shrink-0",
|
|
71
|
-
children: /* @__PURE__ */ jsx(IconSlot, { icon: X })
|
|
72
|
-
});
|
|
73
|
-
$[12] = buttonProps;
|
|
74
|
-
$[13] = isDismissible;
|
|
75
|
-
$[14] = t7;
|
|
76
|
-
} else t7 = $[14];
|
|
77
|
-
let t8;
|
|
78
|
-
if ($[15] !== t4 || $[16] !== t6 || $[17] !== t7) {
|
|
79
|
-
t8 = /* @__PURE__ */ jsxs("div", {
|
|
80
|
-
className: t4,
|
|
81
|
-
children: [t6, t7]
|
|
82
|
-
});
|
|
83
|
-
$[15] = t4;
|
|
84
|
-
$[16] = t6;
|
|
85
|
-
$[17] = t7;
|
|
86
|
-
$[18] = t8;
|
|
87
|
-
} else t8 = $[18];
|
|
88
|
-
return t8;
|
|
89
|
-
};
|
|
90
|
-
function _temp($) {
|
|
91
|
-
return $.ui.tag.dismiss;
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
1
|
+
import { t as Tag } from "../Tag-DPg5sL1Z.js";
|
|
94
2
|
export { Tag };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextArea } from "../TextArea-
|
|
1
|
+
import { t as TextArea } from "../TextArea-D8WkKsGn.js";
|
|
2
2
|
export { TextArea };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TimePicker } from "../TimePicker-
|
|
1
|
+
import { t as TimePicker } from "../TimePicker-C4taAOFQ.js";
|
|
2
2
|
export { TimePicker };
|
package/dist/components/toast.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleGroup } from "../ToggleGroup-
|
|
1
|
+
import { t as ToggleGroup } from "../ToggleGroup-DOk27fgI.js";
|
|
2
2
|
export { ToggleGroup };
|
|
@@ -5,7 +5,7 @@ let nextToastId = 0;
|
|
|
5
5
|
const enqueueToast = (color, params, options) => {
|
|
6
6
|
const id = `povio-toast-${++nextToastId}`;
|
|
7
7
|
activateToastRenderer();
|
|
8
|
-
import("../toast.runtime-
|
|
8
|
+
import("../toast.runtime-cxex9e4E.js").then(({ showToast }) => showToast(id, color, params, options));
|
|
9
9
|
return id;
|
|
10
10
|
};
|
|
11
11
|
const useToast = () => {
|
|
@@ -22,7 +22,7 @@ const useToast = () => {
|
|
|
22
22
|
return enqueueToast("neutral", params_2, options_2);
|
|
23
23
|
}, []);
|
|
24
24
|
const closeToast = useCallback((id) => {
|
|
25
|
-
import("../toast.runtime-
|
|
25
|
+
import("../toast.runtime-cxex9e4E.js").then(({ dismissToast }) => dismissToast(id));
|
|
26
26
|
}, []);
|
|
27
27
|
return useMemo(() => ({
|
|
28
28
|
successToast,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { n as AppCanvasPage, r as AppCanvasPageProps, t as APP_CANVAS_PATH } from "../AppCanvasPage-BIFYeEeS.js";
|
|
2
|
+
import { AnyRoute } from "@tanstack/react-router";
|
|
3
|
+
//#region src/app-canvas/tanstack.d.ts
|
|
4
|
+
interface AppCanvasRouteOptions {
|
|
5
|
+
/** Explicit access gate. For a development-only route, pass import.meta.env.DEV. */
|
|
6
|
+
enabled: boolean | (() => boolean);
|
|
7
|
+
canvas?: Omit<AppCanvasPageProps, "router" | "canvasPath">;
|
|
8
|
+
}
|
|
9
|
+
/** Use with createFileRoute('/_canvas') for file-based TanStack Router apps. */
|
|
10
|
+
declare function appCanvasRouteOptions({ enabled, canvas }: AppCanvasRouteOptions): {
|
|
11
|
+
beforeLoad: () => void;
|
|
12
|
+
component: () => import("react").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
/** Add this child to the existing root route before creating a code-based router. */
|
|
15
|
+
declare function createAppCanvasRoute<TParent extends AnyRoute>({ getParentRoute, ...options }: AppCanvasRouteOptions & {
|
|
16
|
+
getParentRoute: () => TParent;
|
|
17
|
+
}): import("@tanstack/react-router").Route<unknown, TParent, "/_canvas", import("@tanstack/router-core").ResolveFullPath<TParent, "/_canvas", TParent["fullPath"] extends (infer T) ? T extends TParent["fullPath"] ? T extends "__root__" ? "/_canvas" : `${T}//_canvas` extends "/" ? "/" : `/${import("@tanstack/router-core").TrimPathLeft<`${import("@tanstack/router-core").TrimPathRight<T>}/_canvas`>}` : never : never>, string, import("@tanstack/router-core").ResolveId<TParent, string, "/_canvas">, undefined, import("@tanstack/router-core").ResolveParams<"/_canvas">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, () => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
18
|
+
/** Mount once under the existing router and UIConfigurationProvider, beside Outlet. */
|
|
19
|
+
declare function AppCanvasBridge(): import("react").JSX.Element;
|
|
20
|
+
/** Hide existing configurator launchers on the canvas page; its editor is already included. */
|
|
21
|
+
declare function useIsAppCanvasPage(): boolean;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { APP_CANVAS_PATH, AppCanvasBridge, AppCanvasPage, type AppCanvasRouteOptions, appCanvasRouteOptions, createAppCanvasRoute, useIsAppCanvasPage };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { n as AppCanvasPage, r as AppCanvasFrameBridge, t as APP_CANVAS_PATH } from "../AppCanvasPage--RG31Yyv.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { createRoute, notFound, useRouter, useRouterState } from "@tanstack/react-router";
|
|
5
|
+
//#region src/app-canvas/tanstack.tsx
|
|
6
|
+
/** Use with createFileRoute('/_canvas') for file-based TanStack Router apps. */
|
|
7
|
+
function appCanvasRouteOptions({ enabled, canvas }) {
|
|
8
|
+
return {
|
|
9
|
+
beforeLoad: () => {
|
|
10
|
+
if (!(typeof enabled === "function" ? enabled() : enabled)) throw notFound();
|
|
11
|
+
},
|
|
12
|
+
component: function CanvasRoutePage() {
|
|
13
|
+
return /* @__PURE__ */ jsx(AppCanvasPage, {
|
|
14
|
+
...canvas,
|
|
15
|
+
router: useRouter()
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** Add this child to the existing root route before creating a code-based router. */
|
|
21
|
+
function createAppCanvasRoute({ getParentRoute, ...options }) {
|
|
22
|
+
return createRoute({
|
|
23
|
+
getParentRoute,
|
|
24
|
+
path: APP_CANVAS_PATH,
|
|
25
|
+
...appCanvasRouteOptions(options)
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/** Mount once under the existing router and UIConfigurationProvider, beside Outlet. */
|
|
29
|
+
function AppCanvasBridge() {
|
|
30
|
+
const $ = c(3);
|
|
31
|
+
let t0;
|
|
32
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
33
|
+
t0 = { select: _temp };
|
|
34
|
+
$[0] = t0;
|
|
35
|
+
} else t0 = $[0];
|
|
36
|
+
const href = useRouterState(t0);
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[1] !== href) {
|
|
39
|
+
t1 = /* @__PURE__ */ jsx(AppCanvasFrameBridge, { href });
|
|
40
|
+
$[1] = href;
|
|
41
|
+
$[2] = t1;
|
|
42
|
+
} else t1 = $[2];
|
|
43
|
+
return t1;
|
|
44
|
+
}
|
|
45
|
+
/** Hide existing configurator launchers on the canvas page; its editor is already included. */
|
|
46
|
+
function _temp(state) {
|
|
47
|
+
return state.location.href;
|
|
48
|
+
}
|
|
49
|
+
function useIsAppCanvasPage() {
|
|
50
|
+
const $ = c(1);
|
|
51
|
+
let t0;
|
|
52
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
53
|
+
t0 = { select: _temp2 };
|
|
54
|
+
$[0] = t0;
|
|
55
|
+
} else t0 = $[0];
|
|
56
|
+
return useRouterState(t0);
|
|
57
|
+
}
|
|
58
|
+
function _temp2(state) {
|
|
59
|
+
return state.location.pathname.replace(/\/$/, "") === APP_CANVAS_PATH;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { APP_CANVAS_PATH, AppCanvasBridge, AppCanvasPage, appCanvasRouteOptions, createAppCanvasRoute, useIsAppCanvasPage };
|