musae 1.3.1-beta.4 → 1.3.1-beta.5
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/input/__test__/input.test.d.ts +1 -0
- package/dist/components/input/context.cjs +2 -0
- package/dist/components/input/context.d.ts +2 -0
- package/dist/components/input/context.mjs +2 -0
- package/dist/components/input/input.cjs +20 -7
- package/dist/components/input/input.mjs +21 -8
- package/dist/components/input/styles.stylex.cjs +39 -4
- package/dist/components/input/styles.stylex.d.ts +34 -4
- package/dist/components/input/styles.stylex.mjs +39 -4
- package/dist/styles.css +24 -4
- package/dist/types/input.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -18,7 +18,7 @@ var context = require('./context.cjs');
|
|
|
18
18
|
var theme = require('../theme/theme.cjs');
|
|
19
19
|
var useThemeColorVars = require('../../hooks/use-theme-color-vars.cjs');
|
|
20
20
|
|
|
21
|
-
var _excluded = ["className", "style", "type", "invalid", "disabled", "maxLength", "value", "onBlur", "onChange", "onClick", "onFocus", "leading", "trailing", "onInputorClick"];
|
|
21
|
+
var _excluded = ["className", "style", "type", "invalid", "disabled", "maxLength", "value", "onBlur", "onChange", "onClick", "onFocus", "leading", "trailing", "onInputorClick", "label"];
|
|
22
22
|
/**
|
|
23
23
|
* @author murukal
|
|
24
24
|
* @zh 输入组件
|
|
@@ -40,11 +40,15 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
40
40
|
leading = _ref.leading,
|
|
41
41
|
trailing = _ref.trailing,
|
|
42
42
|
onInputorClick = _ref.onInputorClick,
|
|
43
|
+
label = _ref.label,
|
|
43
44
|
inputProps = _objectWithoutProperties(_ref, _excluded);
|
|
44
45
|
var inputorRef = React.useRef(null);
|
|
45
46
|
var inputRef = React.useRef(null);
|
|
46
47
|
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
47
48
|
var hasPlaceholder = !!inputProps.placeholder;
|
|
49
|
+
var _useIdentity = relax.useIdentity(),
|
|
50
|
+
_useIdentity2 = _slicedToArray(_useIdentity, 1),
|
|
51
|
+
id = _useIdentity2[0];
|
|
48
52
|
var _themeColorVars = useThemeColorVars.useThemeColorVars(["primary", "outline", "error", "on-surface-variant", ["on-surface", tokens_stylex.OPACITY.thickest], ["on-surface", tokens_stylex.OPACITY.medium], ["on-surface", tokens_stylex.OPACITY.thin]]);
|
|
49
53
|
// controlled value
|
|
50
54
|
var _useControlledState = relax.useControlledState(valueInProps, {
|
|
@@ -101,10 +105,12 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
101
105
|
focusProps = _useFocus2[1];
|
|
102
106
|
var styled = {
|
|
103
107
|
root: stylex.props(theme.$body.medium, styles_stylex.default.root.base, invalid && styles_stylex.default.root.invalid, disabled && styles_stylex.default.root.disabled, !disabled && styles_stylex.textFieldMarker),
|
|
104
|
-
input: stylex.props(styles_stylex.default.input.base, disabled && styles_stylex.default.input.disabled),
|
|
108
|
+
input: stylex.props(styles_stylex.default.input.base, !!leading && styles_stylex.default.input.hasLeading, !!trailing && styles_stylex.default.input.hasTrailing, disabled && styles_stylex.default.input.disabled),
|
|
109
|
+
leading: stylex.props(styles_stylex.default.leading.base),
|
|
110
|
+
trailing: stylex.props(styles_stylex.default.trailing.base),
|
|
105
111
|
outline: stylex.props(styles_stylex.default.outline.base),
|
|
106
112
|
outlineLeading: stylex.props(styles_stylex.default.outlineLeading.base, disabled && styles_stylex.default.outlineLeading.disabled),
|
|
107
|
-
outlineNotch: stylex.props(styles_stylex.default.outlineNotch.base,
|
|
113
|
+
outlineNotch: stylex.props(styles_stylex.default.outlineNotch.base, theme.$body.small, disabled && styles_stylex.default.outlineNotch.disabled, !!label && styles_stylex.default.outlineNotch.labeled, hasPlaceholder && !!label && styles_stylex.default.outlineNotch.labeledAndHasPlaceholder),
|
|
108
114
|
outlineTrailing: stylex.props(styles_stylex.default.outlineTrailing.base, disabled && styles_stylex.default.outlineTrailing.disabled),
|
|
109
115
|
floatingLabel: stylex.props(styles_stylex.default.floatingLabel.base, hasPlaceholder && styles_stylex.default.floatingLabel.placeholder, disabled && styles_stylex.default.floatingLabel.disabled)
|
|
110
116
|
};
|
|
@@ -115,7 +121,11 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
115
121
|
onClick: inputorEvents.click
|
|
116
122
|
}, !disabled && {
|
|
117
123
|
tabIndex: -1
|
|
118
|
-
}), leading
|
|
124
|
+
}), !!leading && (/*#__PURE__*/React.createElement("div", {
|
|
125
|
+
className: className.stringify(classNames.leading, styled.leading.className),
|
|
126
|
+
style: styled.leading.style
|
|
127
|
+
}, leading)), /*#__PURE__*/React.createElement("input", _objectSpread(_objectSpread({
|
|
128
|
+
id: id,
|
|
119
129
|
value: _value,
|
|
120
130
|
className: className.stringify(classNames.input, styled.input.className),
|
|
121
131
|
style: styled.input.style,
|
|
@@ -136,12 +146,15 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
136
146
|
className: className.stringify(classNames.outlineNotch, styled.outlineNotch.className),
|
|
137
147
|
style: styled.outlineNotch.style
|
|
138
148
|
}, /*#__PURE__*/React.createElement("label", {
|
|
139
|
-
htmlFor:
|
|
149
|
+
htmlFor: id,
|
|
140
150
|
className: className.stringify(styled.floatingLabel.className)
|
|
141
|
-
},
|
|
151
|
+
}, label)), /*#__PURE__*/React.createElement("div", {
|
|
142
152
|
className: className.stringify(classNames.outlineTrailing, styled.outlineTrailing.className),
|
|
143
153
|
style: styled.outlineTrailing.style
|
|
144
|
-
})), trailing
|
|
154
|
+
})), !!trailing && (/*#__PURE__*/React.createElement("div", {
|
|
155
|
+
className: className.stringify(classNames.trailing, styled.trailing.className),
|
|
156
|
+
style: styled.trailing.style
|
|
157
|
+
}, trailing)));
|
|
145
158
|
});
|
|
146
159
|
|
|
147
160
|
exports.default = Input;
|
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
import styles, { textFieldMarker } from './styles.stylex.mjs';
|
|
6
6
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
|
7
7
|
import { useInputEvents, useInputorEvents } from './hooks.mjs';
|
|
8
|
-
import { useControlledState, useFocus } from '@aiszlab/relax';
|
|
8
|
+
import { useIdentity, useControlledState, useFocus } from '@aiszlab/relax';
|
|
9
9
|
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
10
10
|
import { OPACITY } from '../theme/tokens.stylex.mjs';
|
|
11
11
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
@@ -14,7 +14,7 @@ import { CLASS_NAMES } from './context.mjs';
|
|
|
14
14
|
import { $body } from '../theme/theme.mjs';
|
|
15
15
|
import { useThemeColorVars } from '../../hooks/use-theme-color-vars.mjs';
|
|
16
16
|
|
|
17
|
-
var _excluded = ["className", "style", "type", "invalid", "disabled", "maxLength", "value", "onBlur", "onChange", "onClick", "onFocus", "leading", "trailing", "onInputorClick"];
|
|
17
|
+
var _excluded = ["className", "style", "type", "invalid", "disabled", "maxLength", "value", "onBlur", "onChange", "onClick", "onFocus", "leading", "trailing", "onInputorClick", "label"];
|
|
18
18
|
/**
|
|
19
19
|
* @author murukal
|
|
20
20
|
* @zh 输入组件
|
|
@@ -36,11 +36,15 @@ var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
36
36
|
leading = _ref.leading,
|
|
37
37
|
trailing = _ref.trailing,
|
|
38
38
|
onInputorClick = _ref.onInputorClick,
|
|
39
|
+
label = _ref.label,
|
|
39
40
|
inputProps = _objectWithoutProperties(_ref, _excluded);
|
|
40
41
|
var inputorRef = useRef(null);
|
|
41
42
|
var inputRef = useRef(null);
|
|
42
43
|
var classNames = useClassNames(CLASS_NAMES);
|
|
43
44
|
var hasPlaceholder = !!inputProps.placeholder;
|
|
45
|
+
var _useIdentity = useIdentity(),
|
|
46
|
+
_useIdentity2 = _slicedToArray(_useIdentity, 1),
|
|
47
|
+
id = _useIdentity2[0];
|
|
44
48
|
var _themeColorVars = useThemeColorVars(["primary", "outline", "error", "on-surface-variant", ["on-surface", OPACITY.thickest], ["on-surface", OPACITY.medium], ["on-surface", OPACITY.thin]]);
|
|
45
49
|
// controlled value
|
|
46
50
|
var _useControlledState = useControlledState(valueInProps, {
|
|
@@ -97,10 +101,12 @@ var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
97
101
|
focusProps = _useFocus2[1];
|
|
98
102
|
var styled = {
|
|
99
103
|
root: props($body.medium, styles.root.base, invalid && styles.root.invalid, disabled && styles.root.disabled, !disabled && textFieldMarker),
|
|
100
|
-
input: props(styles.input.base, disabled && styles.input.disabled),
|
|
104
|
+
input: props(styles.input.base, !!leading && styles.input.hasLeading, !!trailing && styles.input.hasTrailing, disabled && styles.input.disabled),
|
|
105
|
+
leading: props(styles.leading.base),
|
|
106
|
+
trailing: props(styles.trailing.base),
|
|
101
107
|
outline: props(styles.outline.base),
|
|
102
108
|
outlineLeading: props(styles.outlineLeading.base, disabled && styles.outlineLeading.disabled),
|
|
103
|
-
outlineNotch: props(styles.outlineNotch.base,
|
|
109
|
+
outlineNotch: props(styles.outlineNotch.base, $body.small, disabled && styles.outlineNotch.disabled, !!label && styles.outlineNotch.labeled, hasPlaceholder && !!label && styles.outlineNotch.labeledAndHasPlaceholder),
|
|
104
110
|
outlineTrailing: props(styles.outlineTrailing.base, disabled && styles.outlineTrailing.disabled),
|
|
105
111
|
floatingLabel: props(styles.floatingLabel.base, hasPlaceholder && styles.floatingLabel.placeholder, disabled && styles.floatingLabel.disabled)
|
|
106
112
|
};
|
|
@@ -111,7 +117,11 @@ var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
111
117
|
onClick: inputorEvents.click
|
|
112
118
|
}, !disabled && {
|
|
113
119
|
tabIndex: -1
|
|
114
|
-
}), leading
|
|
120
|
+
}), !!leading && (/*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: stringify(classNames.leading, styled.leading.className),
|
|
122
|
+
style: styled.leading.style
|
|
123
|
+
}, leading)), /*#__PURE__*/React.createElement("input", _objectSpread(_objectSpread({
|
|
124
|
+
id: id,
|
|
115
125
|
value: _value,
|
|
116
126
|
className: stringify(classNames.input, styled.input.className),
|
|
117
127
|
style: styled.input.style,
|
|
@@ -132,12 +142,15 @@ var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
132
142
|
className: stringify(classNames.outlineNotch, styled.outlineNotch.className),
|
|
133
143
|
style: styled.outlineNotch.style
|
|
134
144
|
}, /*#__PURE__*/React.createElement("label", {
|
|
135
|
-
htmlFor:
|
|
145
|
+
htmlFor: id,
|
|
136
146
|
className: stringify(styled.floatingLabel.className)
|
|
137
|
-
},
|
|
147
|
+
}, label)), /*#__PURE__*/React.createElement("div", {
|
|
138
148
|
className: stringify(classNames.outlineTrailing, styled.outlineTrailing.className),
|
|
139
149
|
style: styled.outlineTrailing.style
|
|
140
|
-
})), trailing
|
|
150
|
+
})), !!trailing && (/*#__PURE__*/React.createElement("div", {
|
|
151
|
+
className: stringify(classNames.trailing, styled.trailing.className),
|
|
152
|
+
style: styled.trailing.style
|
|
153
|
+
}, trailing)));
|
|
141
154
|
});
|
|
142
155
|
|
|
143
156
|
export { Input as default };
|
|
@@ -21,7 +21,7 @@ var root = {
|
|
|
21
21
|
kB7OPa: "musaex-9f619",
|
|
22
22
|
kogj98: "musaex-q3gua8",
|
|
23
23
|
k8WAf4: "musaex-11owsmz",
|
|
24
|
-
kg3NbH: "musaex-
|
|
24
|
+
kg3NbH: "musaex-2961ne",
|
|
25
25
|
$$css: true
|
|
26
26
|
},
|
|
27
27
|
invalid: {
|
|
@@ -38,7 +38,8 @@ var input = {
|
|
|
38
38
|
base: {
|
|
39
39
|
kLWn49: "musaex-15bjb6t",
|
|
40
40
|
kGuDYH: "musaex-1qlqyl8",
|
|
41
|
-
|
|
41
|
+
k8WAf4: "musaex-6yerk0",
|
|
42
|
+
kg3NbH: "musaex-1v4gb6w",
|
|
42
43
|
kMzoRj: "musaex-k59kd",
|
|
43
44
|
kWkggS: "musaex-jbqb8w",
|
|
44
45
|
kI3sdo: "musaex-4fx59i",
|
|
@@ -47,11 +48,39 @@ var input = {
|
|
|
47
48
|
kUk6DE: "musaex-98rzlu",
|
|
48
49
|
$$css: true
|
|
49
50
|
},
|
|
51
|
+
hasLeading: {
|
|
52
|
+
kZCmMZ: "musaex-t0f09o",
|
|
53
|
+
$$css: true
|
|
54
|
+
},
|
|
55
|
+
hasTrailing: {
|
|
56
|
+
kwRFfy: "musaex-1kav6dm",
|
|
57
|
+
$$css: true
|
|
58
|
+
},
|
|
50
59
|
disabled: {
|
|
51
60
|
k8Qsv1: "musaex-1tfpmi6",
|
|
52
61
|
$$css: true
|
|
53
62
|
}
|
|
54
63
|
};
|
|
64
|
+
var leading = {
|
|
65
|
+
base: {
|
|
66
|
+
kVAEAm: "musaex-10l6tqk",
|
|
67
|
+
kYYq5F: "musaex-vg9ial",
|
|
68
|
+
kLqNvP: "musaex-82zlsq",
|
|
69
|
+
k1xSpc: "musaex-3nfvp2",
|
|
70
|
+
kGNEyG: "musaex-6s0dn4",
|
|
71
|
+
$$css: true
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var trailing = {
|
|
75
|
+
base: {
|
|
76
|
+
kVAEAm: "musaex-10l6tqk",
|
|
77
|
+
kYYq5F: "musaex-vg9ial",
|
|
78
|
+
kt4wiu: "musaex-1swhz51",
|
|
79
|
+
k1xSpc: "musaex-3nfvp2",
|
|
80
|
+
kGNEyG: "musaex-6s0dn4",
|
|
81
|
+
$$css: true
|
|
82
|
+
}
|
|
83
|
+
};
|
|
55
84
|
var outline = {
|
|
56
85
|
base: {
|
|
57
86
|
kVAEAm: "musaex-10l6tqk",
|
|
@@ -123,12 +152,16 @@ var outlineNotch = {
|
|
|
123
152
|
kVAM5u: "musaex-1t7i6ks",
|
|
124
153
|
kjGldf: "musaex-aafj1c",
|
|
125
154
|
kLoX6v: "musaex-kap2c3",
|
|
126
|
-
|
|
155
|
+
kVixrW: "musaex-hkrz9u",
|
|
127
156
|
k6qhrQ: "musaex-48fzr0",
|
|
157
|
+
$$css: true
|
|
158
|
+
},
|
|
159
|
+
labeled: {
|
|
160
|
+
k3lJl8: "musaex-14zl4sw",
|
|
128
161
|
kRj6wj: "musaex-1bq66p9",
|
|
129
162
|
$$css: true
|
|
130
163
|
},
|
|
131
|
-
|
|
164
|
+
labeledAndHasPlaceholder: {
|
|
132
165
|
kLZC3w: "musaex-1v8p93f",
|
|
133
166
|
$$css: true
|
|
134
167
|
},
|
|
@@ -164,6 +197,8 @@ var floatingLabel = {
|
|
|
164
197
|
var styles = {
|
|
165
198
|
root: root,
|
|
166
199
|
input: input,
|
|
200
|
+
leading: leading,
|
|
201
|
+
trailing: trailing,
|
|
167
202
|
outline: outline,
|
|
168
203
|
outlineLeading: outlineLeading,
|
|
169
204
|
outlineNotch: outlineNotch,
|
|
@@ -33,7 +33,8 @@ declare const styles: {
|
|
|
33
33
|
readonly base: Readonly<{
|
|
34
34
|
readonly lineHeight: import("@stylexjs/stylex").StyleXClassNameFor<"lineHeight", "inherit">;
|
|
35
35
|
readonly fontSize: import("@stylexjs/stylex").StyleXClassNameFor<"fontSize", "inherit">;
|
|
36
|
-
readonly
|
|
36
|
+
readonly paddingBlock: import("@stylexjs/stylex").StyleXClassNameFor<"paddingBlock", string>;
|
|
37
|
+
readonly paddingInline: import("@stylexjs/stylex").StyleXClassNameFor<"paddingInline", string>;
|
|
37
38
|
readonly borderWidth: import("@stylexjs/stylex").StyleXClassNameFor<"borderWidth", string>;
|
|
38
39
|
readonly backgroundColor: import("@stylexjs/stylex").StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
39
40
|
readonly outline: import("@stylexjs/stylex").StyleXClassNameFor<"outline", string>;
|
|
@@ -41,12 +42,36 @@ declare const styles: {
|
|
|
41
42
|
readonly height: import("@stylexjs/stylex").StyleXClassNameFor<"height", string>;
|
|
42
43
|
readonly flex: import("@stylexjs/stylex").StyleXClassNameFor<"flex", 1>;
|
|
43
44
|
}>;
|
|
45
|
+
readonly hasLeading: Readonly<{
|
|
46
|
+
readonly paddingInlineStart: import("@stylexjs/stylex").StyleXClassNameFor<"paddingInlineStart", string>;
|
|
47
|
+
}>;
|
|
48
|
+
readonly hasTrailing: Readonly<{
|
|
49
|
+
readonly paddingInlineEnd: import("@stylexjs/stylex").StyleXClassNameFor<"paddingInlineEnd", string>;
|
|
50
|
+
}>;
|
|
44
51
|
readonly disabled: Readonly<{
|
|
45
52
|
readonly "::placeholder": import("@stylexjs/stylex").StyleXClassNameFor<"::placeholder", {
|
|
46
53
|
readonly color: "var(--color-on-surface-opacity-38)";
|
|
47
54
|
}>;
|
|
48
55
|
}>;
|
|
49
56
|
}>;
|
|
57
|
+
leading: Readonly<{
|
|
58
|
+
readonly base: Readonly<{
|
|
59
|
+
readonly position: import("@stylexjs/stylex").StyleXClassNameFor<"position", "absolute">;
|
|
60
|
+
readonly insetBlock: import("@stylexjs/stylex").StyleXClassNameFor<"insetBlock", string>;
|
|
61
|
+
readonly insetInlineStart: import("@stylexjs/stylex").StyleXClassNameFor<"insetInlineStart", string>;
|
|
62
|
+
readonly display: import("@stylexjs/stylex").StyleXClassNameFor<"display", "inline-flex">;
|
|
63
|
+
readonly alignItems: import("@stylexjs/stylex").StyleXClassNameFor<"alignItems", "center">;
|
|
64
|
+
}>;
|
|
65
|
+
}>;
|
|
66
|
+
trailing: Readonly<{
|
|
67
|
+
readonly base: Readonly<{
|
|
68
|
+
readonly position: import("@stylexjs/stylex").StyleXClassNameFor<"position", "absolute">;
|
|
69
|
+
readonly insetBlock: import("@stylexjs/stylex").StyleXClassNameFor<"insetBlock", string>;
|
|
70
|
+
readonly insetInlineEnd: import("@stylexjs/stylex").StyleXClassNameFor<"insetInlineEnd", string>;
|
|
71
|
+
readonly display: import("@stylexjs/stylex").StyleXClassNameFor<"display", "inline-flex">;
|
|
72
|
+
readonly alignItems: import("@stylexjs/stylex").StyleXClassNameFor<"alignItems", "center">;
|
|
73
|
+
}>;
|
|
74
|
+
}>;
|
|
50
75
|
outline: Readonly<{
|
|
51
76
|
readonly base: Readonly<{
|
|
52
77
|
readonly position: import("@stylexjs/stylex").StyleXClassNameFor<"position", "absolute">;
|
|
@@ -82,9 +107,8 @@ declare const styles: {
|
|
|
82
107
|
outlineNotch: Readonly<{
|
|
83
108
|
readonly base: Readonly<{
|
|
84
109
|
readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, string | {
|
|
85
|
-
readonly
|
|
110
|
+
readonly borderBlockWidth: import("@stylexjs/stylex").StyleXVar<string>;
|
|
86
111
|
readonly borderColor: "var(--color-primary)";
|
|
87
|
-
readonly borderBlockStartColor: "transparent";
|
|
88
112
|
}>;
|
|
89
113
|
readonly boxSizing: import("@stylexjs/stylex").StyleXClassNameFor<"boxSizing", "border-box">;
|
|
90
114
|
readonly display: import("@stylexjs/stylex").StyleXClassNameFor<"display", "flex">;
|
|
@@ -99,7 +123,13 @@ declare const styles: {
|
|
|
99
123
|
readonly borderInlineWidth: import("@stylexjs/stylex").StyleXClassNameFor<"borderInlineWidth", string>;
|
|
100
124
|
readonly borderBlockWidth: import("@stylexjs/stylex").StyleXClassNameFor<"borderBlockWidth", string>;
|
|
101
125
|
}>;
|
|
102
|
-
readonly
|
|
126
|
+
readonly labeled: Readonly<{
|
|
127
|
+
readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, {
|
|
128
|
+
readonly borderBlockStartWidth: import("@stylexjs/stylex").StyleXVar<string>;
|
|
129
|
+
readonly borderBlockStartColor: "transparent";
|
|
130
|
+
}>;
|
|
131
|
+
}>;
|
|
132
|
+
readonly labeledAndHasPlaceholder: Readonly<{
|
|
103
133
|
readonly borderBlockStartColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderBlockStartColor", "transparent">;
|
|
104
134
|
}>;
|
|
105
135
|
readonly disabled: Readonly<{
|
|
@@ -17,7 +17,7 @@ var root = {
|
|
|
17
17
|
kB7OPa: "musaex-9f619",
|
|
18
18
|
kogj98: "musaex-q3gua8",
|
|
19
19
|
k8WAf4: "musaex-11owsmz",
|
|
20
|
-
kg3NbH: "musaex-
|
|
20
|
+
kg3NbH: "musaex-2961ne",
|
|
21
21
|
$$css: true
|
|
22
22
|
},
|
|
23
23
|
invalid: {
|
|
@@ -34,7 +34,8 @@ var input = {
|
|
|
34
34
|
base: {
|
|
35
35
|
kLWn49: "musaex-15bjb6t",
|
|
36
36
|
kGuDYH: "musaex-1qlqyl8",
|
|
37
|
-
|
|
37
|
+
k8WAf4: "musaex-6yerk0",
|
|
38
|
+
kg3NbH: "musaex-1v4gb6w",
|
|
38
39
|
kMzoRj: "musaex-k59kd",
|
|
39
40
|
kWkggS: "musaex-jbqb8w",
|
|
40
41
|
kI3sdo: "musaex-4fx59i",
|
|
@@ -43,11 +44,39 @@ var input = {
|
|
|
43
44
|
kUk6DE: "musaex-98rzlu",
|
|
44
45
|
$$css: true
|
|
45
46
|
},
|
|
47
|
+
hasLeading: {
|
|
48
|
+
kZCmMZ: "musaex-t0f09o",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
51
|
+
hasTrailing: {
|
|
52
|
+
kwRFfy: "musaex-1kav6dm",
|
|
53
|
+
$$css: true
|
|
54
|
+
},
|
|
46
55
|
disabled: {
|
|
47
56
|
k8Qsv1: "musaex-1tfpmi6",
|
|
48
57
|
$$css: true
|
|
49
58
|
}
|
|
50
59
|
};
|
|
60
|
+
var leading = {
|
|
61
|
+
base: {
|
|
62
|
+
kVAEAm: "musaex-10l6tqk",
|
|
63
|
+
kYYq5F: "musaex-vg9ial",
|
|
64
|
+
kLqNvP: "musaex-82zlsq",
|
|
65
|
+
k1xSpc: "musaex-3nfvp2",
|
|
66
|
+
kGNEyG: "musaex-6s0dn4",
|
|
67
|
+
$$css: true
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var trailing = {
|
|
71
|
+
base: {
|
|
72
|
+
kVAEAm: "musaex-10l6tqk",
|
|
73
|
+
kYYq5F: "musaex-vg9ial",
|
|
74
|
+
kt4wiu: "musaex-1swhz51",
|
|
75
|
+
k1xSpc: "musaex-3nfvp2",
|
|
76
|
+
kGNEyG: "musaex-6s0dn4",
|
|
77
|
+
$$css: true
|
|
78
|
+
}
|
|
79
|
+
};
|
|
51
80
|
var outline = {
|
|
52
81
|
base: {
|
|
53
82
|
kVAEAm: "musaex-10l6tqk",
|
|
@@ -119,12 +148,16 @@ var outlineNotch = {
|
|
|
119
148
|
kVAM5u: "musaex-1t7i6ks",
|
|
120
149
|
kjGldf: "musaex-aafj1c",
|
|
121
150
|
kLoX6v: "musaex-kap2c3",
|
|
122
|
-
|
|
151
|
+
kVixrW: "musaex-hkrz9u",
|
|
123
152
|
k6qhrQ: "musaex-48fzr0",
|
|
153
|
+
$$css: true
|
|
154
|
+
},
|
|
155
|
+
labeled: {
|
|
156
|
+
k3lJl8: "musaex-14zl4sw",
|
|
124
157
|
kRj6wj: "musaex-1bq66p9",
|
|
125
158
|
$$css: true
|
|
126
159
|
},
|
|
127
|
-
|
|
160
|
+
labeledAndHasPlaceholder: {
|
|
128
161
|
kLZC3w: "musaex-1v8p93f",
|
|
129
162
|
$$css: true
|
|
130
163
|
},
|
|
@@ -160,6 +193,8 @@ var floatingLabel = {
|
|
|
160
193
|
var styles = {
|
|
161
194
|
root: root,
|
|
162
195
|
input: input,
|
|
196
|
+
leading: leading,
|
|
197
|
+
trailing: trailing,
|
|
163
198
|
outline: outline,
|
|
164
199
|
outlineLeading: outlineLeading,
|
|
165
200
|
outlineNotch: outlineNotch,
|
package/dist/styles.css
CHANGED
|
@@ -352,6 +352,10 @@
|
|
|
352
352
|
grid-template-areas: var(--layout);
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
.musaex-vg9ial {
|
|
356
|
+
inset-block: var(--musaex-1fxazvh);
|
|
357
|
+
}
|
|
358
|
+
|
|
355
359
|
.musaex-17y0mx6 {
|
|
356
360
|
inset-inline: 0;
|
|
357
361
|
}
|
|
@@ -1172,6 +1176,10 @@
|
|
|
1172
1176
|
inset-inline-end: 0;
|
|
1173
1177
|
}
|
|
1174
1178
|
|
|
1179
|
+
.musaex-1swhz51 {
|
|
1180
|
+
inset-inline-end: var(--musaex-14eq97i);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1175
1183
|
.musaex-1aovfyv {
|
|
1176
1184
|
inset-inline-end: var(--musaex-1bvtfky);
|
|
1177
1185
|
}
|
|
@@ -1192,6 +1200,10 @@
|
|
|
1192
1200
|
inset-inline-start: var(--musaex-12cvltn);
|
|
1193
1201
|
}
|
|
1194
1202
|
|
|
1203
|
+
.musaex-82zlsq {
|
|
1204
|
+
inset-inline-start: var(--musaex-14eq97i);
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1195
1207
|
.musaex-lrh9k8 {
|
|
1196
1208
|
inset-inline-start: var(--musaex-1ninzqv);
|
|
1197
1209
|
}
|
|
@@ -1432,6 +1444,10 @@
|
|
|
1432
1444
|
padding-inline-end: var(--musaex-1vpnstl);
|
|
1433
1445
|
}
|
|
1434
1446
|
|
|
1447
|
+
.musaex-1kav6dm {
|
|
1448
|
+
padding-inline-end: var(--musaex-mk8wyj);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1435
1451
|
.musaex-1sznsej {
|
|
1436
1452
|
padding-inline-start: calc(var(--depth) * var(--musaex-14eq97i));
|
|
1437
1453
|
}
|
|
@@ -1460,6 +1476,10 @@
|
|
|
1460
1476
|
padding-inline-start: var(--musaex-1vpnstl);
|
|
1461
1477
|
}
|
|
1462
1478
|
|
|
1479
|
+
.musaex-t0f09o {
|
|
1480
|
+
padding-inline-start: var(--musaex-mk8wyj);
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1463
1483
|
.musaex-67bb7w {
|
|
1464
1484
|
pointer-events: auto;
|
|
1465
1485
|
}
|
|
@@ -2661,14 +2681,14 @@
|
|
|
2661
2681
|
width: var(--width);
|
|
2662
2682
|
}
|
|
2663
2683
|
|
|
2664
|
-
.musaex-1wg96mr.musaex-1wg96mr:where(.musaex-19ap9w9:focus-within *) {
|
|
2665
|
-
border-bottom-width: var(--musaex-1035pbm);
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
2684
|
.musaex-1bq66p9.musaex-1bq66p9:where(.musaex-19ap9w9:focus-within *) {
|
|
2669
2685
|
border-top-color: #0000;
|
|
2670
2686
|
}
|
|
2671
2687
|
|
|
2688
|
+
.musaex-14zl4sw.musaex-14zl4sw:where(.musaex-19ap9w9:focus-within *) {
|
|
2689
|
+
border-top-width: var(--musaex-1xf102v);
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2672
2692
|
.musaex-1skm1u1.musaex-1skm1u1:where(.musaex-19ap9w9:focus-within *) {
|
|
2673
2693
|
top: -50%;
|
|
2674
2694
|
}
|
package/dist/types/input.d.ts
CHANGED