@povio/ui 2.3.1 → 2.3.2
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.cva.js +2 -0
- 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/DateSegmentItem.js +1 -1
- package/dist/components/inputs/File/InputUpload.js +1 -1
- package/dist/components/inputs/File/shared/InputUploadFilled.js +1 -1
- package/dist/components/inputs/Input/TextArea/TextArea.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -0
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -2
- package/dist/components/inputs/Slider/Slider.js +1 -0
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/components/inputs/Toggle/toggle.cva.js +2 -1
- package/dist/components/inputs/shared/input.cva.js +22 -10
- package/dist/components/inputs/shared/label.cva.js +2 -2
- package/dist/config/uiConfig.context.d.ts +1 -1
- package/dist/tw-ui-plugin.js +6 -1
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ var checkbox = cva([
|
|
|
22
22
|
"group-selected:group-hover:border-interactive-contained-primary-hover",
|
|
23
23
|
"group-selected:group-pressed:bg-interactive-contained-primary-pressed",
|
|
24
24
|
"group-selected:group-pressed:border-interactive-contained-primary-pressed",
|
|
25
|
+
"group-selected:group-disabled:bg-interactive-contained-primary-disabled",
|
|
26
|
+
"group-selected:group-disabled:border-interactive-contained-primary-disabled",
|
|
25
27
|
"group-indeterminate:border-interactive-contained-primary-idle",
|
|
26
28
|
"group-indeterminate:bg-interactive-contained-primary-idle",
|
|
27
29
|
"group-indeterminate:group-hover:bg-interactive-contained-primary-hover",
|
|
@@ -152,7 +152,7 @@ var DatePickerBase = (props) => {
|
|
|
152
152
|
...formFieldProps,
|
|
153
153
|
as,
|
|
154
154
|
labelProps,
|
|
155
|
-
className: clsx("relative inline-flex w-full flex-col text-left", className),
|
|
155
|
+
className: clsx("group relative inline-flex w-full flex-col text-left", className),
|
|
156
156
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
157
157
|
children: [/* @__PURE__ */ jsx(DatePickerInput, {
|
|
158
158
|
ref: mergeRefs(ref, datePickerInputRef),
|
|
@@ -458,7 +458,7 @@ var DateRangePickerBase = (props) => {
|
|
|
458
458
|
...formFieldProps,
|
|
459
459
|
as,
|
|
460
460
|
labelProps,
|
|
461
|
-
className: clsx("relative inline-flex w-full flex-col text-left", className),
|
|
461
|
+
className: clsx("group relative inline-flex w-full flex-col text-left", className),
|
|
462
462
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
463
463
|
children: [/* @__PURE__ */ jsx(DatePickerInput, {
|
|
464
464
|
ref: mergeRefs(ref, datePickerInputRef),
|
|
@@ -142,7 +142,7 @@ var DateTimePickerBase = (props) => {
|
|
|
142
142
|
...formFieldProps,
|
|
143
143
|
as,
|
|
144
144
|
labelProps,
|
|
145
|
-
className: "relative inline-flex w-full flex-col text-left",
|
|
145
|
+
className: "group relative inline-flex w-full flex-col text-left",
|
|
146
146
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
147
147
|
children: [/* @__PURE__ */ jsx(DatePickerInput, {
|
|
148
148
|
ref: mergeRefs(ref, datePickerInputRef),
|
|
@@ -91,7 +91,7 @@ var TimePickerBase = (props) => {
|
|
|
91
91
|
...formFieldProps,
|
|
92
92
|
as,
|
|
93
93
|
labelProps,
|
|
94
|
-
className: clsx("relative inline-flex w-full flex-col text-left", className),
|
|
94
|
+
className: clsx("group relative inline-flex w-full flex-col text-left", className),
|
|
95
95
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
96
96
|
children: [/* @__PURE__ */ jsx(TimePickerInput, {
|
|
97
97
|
ref: mergeRefs(ref, timeFieldRef),
|
|
@@ -19,7 +19,7 @@ var DateSegmentItem = ({ segment, state, isDisabled, timePickerOnly, hidePlaceho
|
|
|
19
19
|
return /* @__PURE__ */ jsx("div", {
|
|
20
20
|
...segmentProps,
|
|
21
21
|
ref,
|
|
22
|
-
className: clsx("box-content rounded-input-rounding-default", isDisabled && "text-interactive-text-secondary-disabled", !isDisabled && isInputEmpty && "text-text-default-3 group-focus-within:text-text-default-1", !isDisabled && !isInputEmpty && "text-text-default-1", "focus-within:outline-1 focus-within:outline-interactive-contained-primary-idle focus-within:outline-offset-1", ["hour", "dayPeriod"].includes(segment.type) && !timePickerOnly && "ml-1", hidePlaceholder && "opacity-0"),
|
|
22
|
+
className: clsx("box-content rounded-input-rounding-default", isDisabled && isInputEmpty && "text-interactive-text-secondary-disabled", isDisabled && !isInputEmpty && "text-text-default-3", !isDisabled && isInputEmpty && "text-text-default-3 group-focus-within:text-text-default-1", !isDisabled && !isInputEmpty && "text-text-default-1", "focus-within:outline-1 focus-within:outline-interactive-contained-primary-idle focus-within:outline-offset-1", ["hour", "dayPeriod"].includes(segment.type) && !timePickerOnly && "ml-1", hidePlaceholder && "opacity-0"),
|
|
23
23
|
children: /* @__PURE__ */ jsxs(Fragment, { children: [segment.isPlaceholder && /* @__PURE__ */ jsx("span", {
|
|
24
24
|
"aria-hidden": "true",
|
|
25
25
|
className: "pointer-events-none",
|
|
@@ -73,7 +73,7 @@ var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isR
|
|
|
73
73
|
return /* @__PURE__ */ jsx(FormField, {
|
|
74
74
|
...formFieldProps,
|
|
75
75
|
labelProps,
|
|
76
|
-
className: clsx("w-full", className),
|
|
76
|
+
className: clsx("group w-full", className),
|
|
77
77
|
children: files.length > 0 ? /* @__PURE__ */ jsx(InputUploadFilled, {
|
|
78
78
|
files,
|
|
79
79
|
onRemove: handleRemove,
|
|
@@ -13,7 +13,7 @@ var InputUploadFilled = ({ files, onRemove, isDisabled, size }) => {
|
|
|
13
13
|
variant: "default",
|
|
14
14
|
size: "label-1",
|
|
15
15
|
as: "span",
|
|
16
|
-
className: "flex-fill select-none truncate text-ellipsis text-text-default-1",
|
|
16
|
+
className: "flex-fill select-none truncate text-ellipsis text-text-default-1 input-disabled:text-text-default-3",
|
|
17
17
|
children: files.map((file) => file.name).join(", ")
|
|
18
18
|
}), /* @__PURE__ */ jsx(InlineIconButton, {
|
|
19
19
|
label: "Remove files",
|
|
@@ -63,7 +63,7 @@ var TextAreaBase = (props) => {
|
|
|
63
63
|
...formFieldProps,
|
|
64
64
|
as,
|
|
65
65
|
labelProps,
|
|
66
|
-
className: clsx("w-full", className),
|
|
66
|
+
className: clsx("group w-full", className),
|
|
67
67
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
68
68
|
children: /* @__PURE__ */ jsxs("div", {
|
|
69
69
|
className: "group/text-area relative h-full",
|
|
@@ -34,6 +34,7 @@ var RadioGroupBase = (props) => {
|
|
|
34
34
|
isInvalid: !!error,
|
|
35
35
|
"data-is-dirty": isDirty || void 0,
|
|
36
36
|
"data-is-required": isRequired || void 0,
|
|
37
|
+
className: "group",
|
|
37
38
|
children: /* @__PURE__ */ jsx(FormField, {
|
|
38
39
|
...formFieldProps,
|
|
39
40
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -83,7 +83,7 @@ var SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inp
|
|
|
83
83
|
isDisabled,
|
|
84
84
|
isInvalid: !!error,
|
|
85
85
|
menuTrigger: "focus",
|
|
86
|
-
className: clsx("w-full", containerClassName)
|
|
86
|
+
className: clsx("group w-full", containerClassName)
|
|
87
87
|
};
|
|
88
88
|
const headerProps = {
|
|
89
89
|
label,
|
|
@@ -110,7 +110,7 @@ var SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inp
|
|
|
110
110
|
...formFieldProps,
|
|
111
111
|
...!isSearchable && {
|
|
112
112
|
labelProps,
|
|
113
|
-
className: clsx("w-full", containerClassName)
|
|
113
|
+
className: clsx("group w-full", containerClassName)
|
|
114
114
|
},
|
|
115
115
|
as,
|
|
116
116
|
ref: wrapperRef,
|
|
@@ -104,7 +104,7 @@ var SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvalid,
|
|
|
104
104
|
ref: inputRef,
|
|
105
105
|
placeholder: as === "floating" ? void 0 : placeholder,
|
|
106
106
|
onBlur,
|
|
107
|
-
className: clsx("w-full flex-1 bg-transparent outline-none placeholder:text-text-default-3 disabled:text-interactive-text-secondary-disabled", inputClassName),
|
|
107
|
+
className: clsx("w-full flex-1 bg-transparent outline-none placeholder:text-text-default-3", "disabled:text-text-default-3 disabled:placeholder:text-interactive-text-secondary-disabled", inputClassName),
|
|
108
108
|
onKeyDown,
|
|
109
109
|
...fieldProps
|
|
110
110
|
})]
|
|
@@ -114,11 +114,11 @@ var SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvalid,
|
|
|
114
114
|
onPress: () => setIsOpen(!isOpen),
|
|
115
115
|
onBlur,
|
|
116
116
|
"data-type": "select-trigger",
|
|
117
|
-
className: clsx("w-full truncate text-start outline-none disabled:text-
|
|
117
|
+
className: clsx("group/select-trigger w-full truncate text-start outline-none disabled:text-text-default-3", showTags && "absolute inset-0 z-0"),
|
|
118
118
|
...fieldProps,
|
|
119
119
|
children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(Typography, {
|
|
120
120
|
size: "label-1",
|
|
121
|
-
className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3"),
|
|
121
|
+
className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3 group-disabled/select-trigger:text-interactive-text-secondary-disabled"),
|
|
122
122
|
children: [isEmpty && placeholder, !isEmpty && (showSelectionContent ? selectedItems[0].content : selectedItems[0].label)]
|
|
123
123
|
})]
|
|
124
124
|
})
|
|
@@ -56,7 +56,7 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
|
|
|
56
56
|
...formFieldProps,
|
|
57
57
|
as,
|
|
58
58
|
labelProps,
|
|
59
|
-
className: clsx("w-full", containerClassName),
|
|
59
|
+
className: clsx("group w-full", containerClassName),
|
|
60
60
|
children: /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
61
61
|
...dialogTriggerProps,
|
|
62
62
|
children: [customTrigger ? /* @__PURE__ */ jsx("div", {
|
|
@@ -103,7 +103,8 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
|
|
|
103
103
|
inputClassName,
|
|
104
104
|
className: "mb-list-height-title-bottom px-list-side-title",
|
|
105
105
|
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(SearchIcon, { className: "size-6" }) : void 0,
|
|
106
|
-
size: "default"
|
|
106
|
+
size: "default",
|
|
107
|
+
isClearable
|
|
107
108
|
}), /* @__PURE__ */ jsx(SelectListBox, {
|
|
108
109
|
...props,
|
|
109
110
|
autoFocus: !isSearchable,
|
|
@@ -99,7 +99,7 @@ var TextEditorBase = ({ ref, as = "default", placeholder, label, hideLabel, tool
|
|
|
99
99
|
ref,
|
|
100
100
|
as,
|
|
101
101
|
labelProps,
|
|
102
|
-
className: clsx("w-full", className),
|
|
102
|
+
className: clsx("group w-full", className),
|
|
103
103
|
children: /* @__PURE__ */ jsxs("div", {
|
|
104
104
|
className: clsx("group/text-editor relative", "h-full w-full rounded-sm border border-elevation-outline-default-2 border-solid bg-elevation-fill-default-1", uiOutlineClass, "focus-within:border focus-within:border-input-outlined-outline-active", "focus-visible:outline-interactive-contained-primary-focus", "hover:border hover:border-input-outlined-outline-hover"),
|
|
105
105
|
"data-text-editor": true,
|
|
@@ -17,7 +17,8 @@ var toggle = cva(["h-6 w-10 rounded-full before:m-0-5 before:block before:aspect
|
|
|
17
17
|
"group-disabled:before:bg-interactive-contained-secondary-on-disabled",
|
|
18
18
|
"group-selected:before:bg-interactive-contained-primary-on-idle",
|
|
19
19
|
"group-selected:group-hover:before:bg-interactive-contained-primary-on-hover",
|
|
20
|
-
"group-selected:group-pressed:before:bg-interactive-contained-primary-on-pressed"
|
|
20
|
+
"group-selected:group-pressed:before:bg-interactive-contained-primary-on-pressed",
|
|
21
|
+
"group-selected:group-disabled:bg-interactive-contained-primary-disabled"
|
|
21
22
|
] } },
|
|
22
23
|
defaultVariants: { variant: "default" }
|
|
23
24
|
});
|
|
@@ -35,9 +35,11 @@ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
|
|
|
35
35
|
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
36
36
|
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
37
37
|
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
38
|
-
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-
|
|
39
|
-
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-
|
|
38
|
+
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
39
|
+
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
40
40
|
"placeholder:text-text-default-3",
|
|
41
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
42
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
41
43
|
"focus-visible:outline-interactive-contained-primary-focus",
|
|
42
44
|
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
43
45
|
]
|
|
@@ -51,9 +53,11 @@ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
|
|
|
51
53
|
"focus-within:border-input-filled-outline-active focus-within:border-solid focus-within:bg-input-filled-active focus-within:text-text-default-1",
|
|
52
54
|
"invalid:border-input-filled-outline-error invalid:border-solid invalid:bg-input-filled-error invalid:text-text-default-1",
|
|
53
55
|
"has-invalid:border-input-filled-outline-error has-invalid:border-solid has-invalid:bg-input-filled-error has-invalid:text-text-default-1",
|
|
54
|
-
"disabled:bg-input-filled-disabled disabled:text-text-default-
|
|
55
|
-
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-
|
|
56
|
+
"disabled:bg-input-filled-disabled disabled:text-text-default-3",
|
|
57
|
+
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-3",
|
|
56
58
|
"placeholder:text-text-default-3",
|
|
59
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
60
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
57
61
|
"focus-visible:outline-interactive-contained-primary-focus",
|
|
58
62
|
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
59
63
|
]
|
|
@@ -67,9 +71,11 @@ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
|
|
|
67
71
|
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
68
72
|
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
69
73
|
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
70
|
-
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-
|
|
71
|
-
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-
|
|
74
|
+
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
75
|
+
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
72
76
|
"placeholder:text-text-default-3",
|
|
77
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
78
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
73
79
|
"focus-visible:outline-interactive-contained-primary-focus",
|
|
74
80
|
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
75
81
|
]
|
|
@@ -83,9 +89,11 @@ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
|
|
|
83
89
|
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-idle focus-within:text-text-default-1",
|
|
84
90
|
"invalid:border-input-filled-outline-error invalid:border-solid invalid:bg-input-filled-error invalid:text-text-default-1",
|
|
85
91
|
"has-invalid:border-input-filled-outline-error has-invalid:border-solid has-invalid:bg-input-filled-error has-invalid:text-text-default-1",
|
|
86
|
-
"disabled:bg-input-filled-disabled disabled:text-text-default-
|
|
87
|
-
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-
|
|
92
|
+
"disabled:bg-input-filled-disabled disabled:text-text-default-3",
|
|
93
|
+
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-3",
|
|
88
94
|
"placeholder:text-text-default-3",
|
|
95
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
96
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
89
97
|
"focus-visible:outline-interactive-contained-primary-focus",
|
|
90
98
|
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
91
99
|
]
|
|
@@ -99,9 +107,11 @@ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
|
|
|
99
107
|
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
100
108
|
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
101
109
|
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
102
|
-
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-
|
|
103
|
-
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-
|
|
110
|
+
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
111
|
+
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
104
112
|
"placeholder:text-text-default-3",
|
|
113
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
114
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
105
115
|
"focus-visible:outline-interactive-contained-primary-focus",
|
|
106
116
|
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
107
117
|
]
|
|
@@ -118,6 +128,8 @@ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
|
|
|
118
128
|
"disabled:bg-input-filled-disabled disabled:text-text-default-1",
|
|
119
129
|
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-1",
|
|
120
130
|
"placeholder:text-text-default-3",
|
|
131
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
132
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
121
133
|
"focus-visible:outline-interactive-contained-primary-focus",
|
|
122
134
|
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
123
135
|
]
|
|
@@ -3,8 +3,8 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
//#region src/components/inputs/shared/label.cva.ts
|
|
4
4
|
var labelBase = cva("", {
|
|
5
5
|
variants: { as: {
|
|
6
|
-
default: ["flex items-start gap-1 text-text-default-1"],
|
|
7
|
-
filter: ["text-text-default-1"],
|
|
6
|
+
default: ["flex items-start gap-1 text-text-default-1 input-disabled:text-text-default-3"],
|
|
7
|
+
filter: ["text-text-default-1 input-disabled:text-text-default-3"],
|
|
8
8
|
inline: ["flex items-start gap-1 text-text-default-1"],
|
|
9
9
|
floating: [
|
|
10
10
|
"pointer-events-none",
|
|
@@ -20,7 +20,7 @@ export declare namespace UIConfig {
|
|
|
20
20
|
};
|
|
21
21
|
export interface Options {
|
|
22
22
|
input: Pick<TextInputProps, "variant" | "isClearable" | "hideLabel" | "as" | "size"> & {
|
|
23
|
-
alwaysShowClear
|
|
23
|
+
alwaysShowClear?: boolean;
|
|
24
24
|
};
|
|
25
25
|
button: Pick<ButtonProps, "variant" | "size">;
|
|
26
26
|
numberInput: Pick<NumberInputProps, "formatOptions">;
|
package/dist/tw-ui-plugin.js
CHANGED
|
@@ -12,11 +12,16 @@ var uiPlugin = plugin(({ addVariant }) => {
|
|
|
12
12
|
].join(", "));
|
|
13
13
|
addVariant("input-disabled", [
|
|
14
14
|
"&:is(:where(.group\\/input-content):has(*:is(input:disabled)) *)",
|
|
15
|
+
"&:is(:where(.group):has(*:is(input:disabled)) *)",
|
|
15
16
|
"&:is(:where(.group\\/select-content)[data-disabled] *)",
|
|
16
17
|
"&:is(:where(.group\\/select-content):has(*:is(input:disabled)) *)",
|
|
18
|
+
"&:is(:where(.group):has([data-disabled]) *)",
|
|
17
19
|
"&:is(:where(.group\\/text-area):has(*:is(textarea:disabled)) *)",
|
|
20
|
+
"&:is(:where(.group):has(*:is(textarea:disabled)) *)",
|
|
18
21
|
"&:is(:where(.group\\/text-editor):where([data-rac])[data-disabled] *)",
|
|
19
|
-
"&:is(:where(.group
|
|
22
|
+
"&:is(:where(.group):where([data-rac])[data-disabled] *)",
|
|
23
|
+
"&:is(:where(.group\\/date-picker-content):where([data-rac])[data-disabled] *)",
|
|
24
|
+
"&:is(:where(.group):where([data-rac])[data-disabled] *)"
|
|
20
25
|
].join(", "));
|
|
21
26
|
});
|
|
22
27
|
//#endregion
|