@povio/ui 3.2.0 → 3.2.2-rc.1
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/components/inputs/Checkbox/Checkbox.d.ts +4 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +83 -69
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +23 -0
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +363 -0
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +62 -0
- package/dist/components/inputs/Checkbox/checkbox.cva.js +103 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +167 -149
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +136 -132
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +1 -1
- package/dist/components/inputs/Input/TextArea/TextArea.js +2 -2
- package/dist/components/inputs/Input/TextInput/TextInput.js +1 -1
- package/dist/components/inputs/Input/shared/InputContent.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +1 -0
- package/dist/components/inputs/Inputs/InputItem.js +2 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectInput.js +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.js +2 -2
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/config/uiOverrides.context.d.ts +3 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -7
- package/dist/tw-ui-plugin.js +2 -0
- package/package.json +5 -5
|
@@ -18,6 +18,68 @@ export declare const checkboxTypography: (props: {
|
|
|
18
18
|
export declare const checkboxContentClassName: (props: {
|
|
19
19
|
readonly variant?: "default" | null | undefined;
|
|
20
20
|
}) => string | undefined;
|
|
21
|
+
export declare const checkboxContentWrapperDefinition: {
|
|
22
|
+
base: string[];
|
|
23
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
24
|
+
readonly variant: {
|
|
25
|
+
readonly default: "";
|
|
26
|
+
};
|
|
27
|
+
readonly size: {
|
|
28
|
+
readonly "extra-small": "";
|
|
29
|
+
readonly small: "";
|
|
30
|
+
readonly default: "";
|
|
31
|
+
readonly large: "";
|
|
32
|
+
};
|
|
33
|
+
readonly as: {
|
|
34
|
+
readonly default: "flex-col";
|
|
35
|
+
readonly floating: "flex-col";
|
|
36
|
+
readonly filter: "flex-row flex-wrap items-center gap-2";
|
|
37
|
+
readonly inline: "flex-row flex-wrap items-center gap-2";
|
|
38
|
+
};
|
|
39
|
+
readonly hasInputFrame: {
|
|
40
|
+
readonly true: "gap-2";
|
|
41
|
+
readonly false: "";
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
export type CheckboxContentWrapperConfig = NonNullable<typeof checkboxContentWrapperDefinition.config>;
|
|
46
|
+
export interface CheckboxContentWrapperVariantProps extends UIOverrides.VariantProps<CheckboxContentWrapperConfig> {
|
|
47
|
+
}
|
|
48
|
+
export declare const checkboxGroupLabelDefinition: {
|
|
49
|
+
base: string[];
|
|
50
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
51
|
+
readonly as: {
|
|
52
|
+
readonly default: "";
|
|
53
|
+
readonly floating: ["pointer-events-none absolute", "top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]", "text-text-default-1", "font-semibold!", "text-label-3!"];
|
|
54
|
+
readonly filter: "";
|
|
55
|
+
readonly inline: "";
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
export type CheckboxGroupLabelConfig = NonNullable<typeof checkboxGroupLabelDefinition.config>;
|
|
60
|
+
export interface CheckboxGroupLabelVariantProps extends UIOverrides.VariantProps<CheckboxGroupLabelConfig> {
|
|
61
|
+
}
|
|
62
|
+
export declare const checkboxContentRowDefinition: {
|
|
63
|
+
base: string[];
|
|
64
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
65
|
+
readonly variant: {
|
|
66
|
+
readonly default: "";
|
|
67
|
+
};
|
|
68
|
+
readonly as: {
|
|
69
|
+
readonly default: "flex-col";
|
|
70
|
+
readonly floating: "flex-col";
|
|
71
|
+
readonly filter: "flex-row flex-wrap items-center gap-2";
|
|
72
|
+
readonly inline: "flex-row flex-wrap items-center gap-2";
|
|
73
|
+
};
|
|
74
|
+
readonly hasInputFrame: {
|
|
75
|
+
readonly true: "gap-2";
|
|
76
|
+
readonly false: "";
|
|
77
|
+
};
|
|
78
|
+
}>;
|
|
79
|
+
};
|
|
80
|
+
export type CheckboxContentRowConfig = NonNullable<typeof checkboxContentRowDefinition.config>;
|
|
81
|
+
export interface CheckboxContentRowVariantProps extends UIOverrides.VariantProps<CheckboxContentRowConfig> {
|
|
82
|
+
}
|
|
21
83
|
export declare const checkboxIconDefinition: {
|
|
22
84
|
base: string[];
|
|
23
85
|
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
@@ -45,6 +45,108 @@ var checkboxTypography = compoundMapper({ default: {
|
|
|
45
45
|
variant: "default"
|
|
46
46
|
} });
|
|
47
47
|
var checkboxContentClassName = compoundMapper({ default: "text-text-default-2" });
|
|
48
|
+
var checkboxContentWrapperDefinition = UIOverrides.defineConfig({
|
|
49
|
+
base: ["relative flex"],
|
|
50
|
+
config: {
|
|
51
|
+
variants: {
|
|
52
|
+
variant: { default: "" },
|
|
53
|
+
size: {
|
|
54
|
+
"extra-small": "",
|
|
55
|
+
small: "",
|
|
56
|
+
default: "",
|
|
57
|
+
large: ""
|
|
58
|
+
},
|
|
59
|
+
as: {
|
|
60
|
+
default: "flex-col",
|
|
61
|
+
floating: "flex-col",
|
|
62
|
+
filter: "flex-row flex-wrap items-center gap-2",
|
|
63
|
+
inline: "flex-row flex-wrap items-center gap-2"
|
|
64
|
+
},
|
|
65
|
+
hasInputFrame: {
|
|
66
|
+
true: "gap-2",
|
|
67
|
+
false: ""
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
compoundVariants: [
|
|
71
|
+
{
|
|
72
|
+
as: "floating",
|
|
73
|
+
hasInputFrame: true,
|
|
74
|
+
className: ["pb-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-bottom))]", "pt-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top)+var(--text-label-3--line-height)*var(--text-label-3)+var(--spacing-input-gap-input-text-to-elements))]"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
as: "floating",
|
|
78
|
+
size: "extra-small",
|
|
79
|
+
hasInputFrame: true,
|
|
80
|
+
className: "px-input-side-xs"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
as: "floating",
|
|
84
|
+
size: "small",
|
|
85
|
+
hasInputFrame: true,
|
|
86
|
+
className: "px-input-side-s"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
as: "floating",
|
|
90
|
+
size: "default",
|
|
91
|
+
hasInputFrame: true,
|
|
92
|
+
className: "px-input-side-m"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
as: "floating",
|
|
96
|
+
size: "large",
|
|
97
|
+
hasInputFrame: true,
|
|
98
|
+
className: "px-input-side-l"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
defaultVariants: {
|
|
102
|
+
variant: "default",
|
|
103
|
+
as: "default",
|
|
104
|
+
size: "default",
|
|
105
|
+
hasInputFrame: false
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
var checkboxGroupLabelDefinition = UIOverrides.defineConfig({
|
|
110
|
+
base: [""],
|
|
111
|
+
config: {
|
|
112
|
+
variants: { as: {
|
|
113
|
+
default: "",
|
|
114
|
+
floating: [
|
|
115
|
+
"pointer-events-none absolute",
|
|
116
|
+
"top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]",
|
|
117
|
+
"text-text-default-1",
|
|
118
|
+
"font-semibold!",
|
|
119
|
+
"text-label-3!"
|
|
120
|
+
],
|
|
121
|
+
filter: "",
|
|
122
|
+
inline: ""
|
|
123
|
+
} },
|
|
124
|
+
defaultVariants: { as: "default" }
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
var checkboxContentRowDefinition = UIOverrides.defineConfig({
|
|
128
|
+
base: ["flex"],
|
|
129
|
+
config: {
|
|
130
|
+
variants: {
|
|
131
|
+
variant: { default: "" },
|
|
132
|
+
as: {
|
|
133
|
+
default: "flex-col",
|
|
134
|
+
floating: "flex-col",
|
|
135
|
+
filter: "flex-row flex-wrap items-center gap-2",
|
|
136
|
+
inline: "flex-row flex-wrap items-center gap-2"
|
|
137
|
+
},
|
|
138
|
+
hasInputFrame: {
|
|
139
|
+
true: "gap-2",
|
|
140
|
+
false: ""
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
defaultVariants: {
|
|
144
|
+
variant: "default",
|
|
145
|
+
as: "default",
|
|
146
|
+
hasInputFrame: false
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
});
|
|
48
150
|
var checkboxIconDefinition = UIOverrides.defineConfig({
|
|
49
151
|
base: ["absolute hidden size-3"],
|
|
50
152
|
config: {
|
|
@@ -56,4 +158,4 @@ var checkboxIconDefinition = UIOverrides.defineConfig({
|
|
|
56
158
|
}
|
|
57
159
|
});
|
|
58
160
|
//#endregion
|
|
59
|
-
export { checkboxContentClassName, checkboxDefinition, checkboxIconDefinition, checkboxIndicatorClass, checkboxTypography };
|
|
161
|
+
export { checkboxContentClassName, checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxDefinition, checkboxGroupLabelDefinition, checkboxIconDefinition, checkboxIndicatorClass, checkboxTypography };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
2
2
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
3
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
3
4
|
import { Calendar } from "../shared/Calendar.js";
|
|
4
5
|
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
5
6
|
import { datePickerInputContentRowDefinition } from "../shared/datePickerInput.cva.js";
|
|
@@ -8,7 +9,6 @@ import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
|
8
9
|
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
9
10
|
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
10
11
|
import { getStaticCalendarDateSegments, getStaticDateTimeFocusTarget } from "../shared/staticDateTimeSegments.js";
|
|
11
|
-
import { FormField } from "../../FormField/FormField.js";
|
|
12
12
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
13
13
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
14
14
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
@@ -2,6 +2,7 @@ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
3
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
4
4
|
import "../../../../config/i18n.js";
|
|
5
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
5
6
|
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
6
7
|
import { datePickerInputContentRowDefinition } from "../shared/datePickerInput.cva.js";
|
|
7
8
|
import { renderDatePickerTodayIcon } from "../shared/datePickerTodayIcon.js";
|
|
@@ -9,7 +10,6 @@ import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
|
9
10
|
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
10
11
|
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
11
12
|
import { getStaticDateRangeSegments, getStaticDateTimeFocusTarget } from "../shared/staticDateTimeSegments.js";
|
|
12
|
-
import { FormField } from "../../FormField/FormField.js";
|
|
13
13
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
14
14
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
15
15
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
2
2
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
3
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
3
4
|
import { Calendar } from "../shared/Calendar.js";
|
|
4
5
|
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
5
6
|
import { datePickerInputContentRowDefinition } from "../shared/datePickerInput.cva.js";
|
|
@@ -8,7 +9,6 @@ import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
|
8
9
|
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
9
10
|
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
10
11
|
import { getStaticCalendarDateTimeSegments, getStaticDateTimeFocusTarget } from "../shared/staticDateTimeSegments.js";
|
|
11
|
-
import { FormField } from "../../FormField/FormField.js";
|
|
12
12
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
13
13
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
14
14
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
2
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
2
3
|
import { TimePickerForm } from "../shared/TimePickerForm.js";
|
|
3
4
|
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
4
5
|
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
5
6
|
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
6
7
|
import { getStaticDateTimeFocusTarget, getStaticTimeSegments } from "../shared/staticDateTimeSegments.js";
|
|
7
|
-
import { FormField } from "../../FormField/FormField.js";
|
|
8
8
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
9
9
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
10
10
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
@@ -14,6 +14,7 @@ interface DateFieldProps extends Omit<DateFieldStateOptions, "locale" | "createC
|
|
|
14
14
|
format?: string;
|
|
15
15
|
timeZone?: string;
|
|
16
16
|
segmentGroup?: string;
|
|
17
|
+
shouldAutoFixYear?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export declare const DateField: ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity, isTimeOptional, format, timeZone, segmentGroup, ...props }: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const DateField: ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity, isTimeOptional, format, timeZone, segmentGroup, shouldAutoFixYear, ...props }: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|