musae 1.3.1-beta.5 → 1.3.1-beta.6

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.
@@ -104,15 +104,15 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
104
104
  isFocused = _useFocus2[0],
105
105
  focusProps = _useFocus2[1];
106
106
  var styled = {
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),
107
+ root: stylex.props(theme.$body.medium, styles_stylex.default.root.base, disabled && styles_stylex.default.root.disabled, !disabled && styles_stylex.textFieldMarker),
108
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
109
  leading: stylex.props(styles_stylex.default.leading.base),
110
110
  trailing: stylex.props(styles_stylex.default.trailing.base),
111
111
  outline: stylex.props(styles_stylex.default.outline.base),
112
- outlineLeading: stylex.props(styles_stylex.default.outlineLeading.base, disabled && styles_stylex.default.outlineLeading.disabled),
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),
114
- outlineTrailing: stylex.props(styles_stylex.default.outlineTrailing.base, disabled && styles_stylex.default.outlineTrailing.disabled),
115
- floatingLabel: stylex.props(styles_stylex.default.floatingLabel.base, hasPlaceholder && styles_stylex.default.floatingLabel.placeholder, disabled && styles_stylex.default.floatingLabel.disabled)
112
+ outlineLeading: stylex.props(styles_stylex.default.outlineLeading.base, disabled && styles_stylex.default.outlineLeading.disabled, invalid && styles_stylex.default.outlineLeading.invalid),
113
+ outlineNotch: stylex.props(styles_stylex.default.outlineNotch.base, theme.$body.small, !!label && styles_stylex.default.outlineNotch.withLabel, hasPlaceholder && !!label && styles_stylex.default.outlineNotch.withLabelAndPlaceholder, disabled && styles_stylex.default.outlineNotch.disabled, invalid && styles_stylex.default.outlineNotch.invalid),
114
+ outlineTrailing: stylex.props(styles_stylex.default.outlineTrailing.base, disabled && styles_stylex.default.outlineTrailing.disabled, invalid && styles_stylex.default.outlineTrailing.invalid),
115
+ floatingLabel: stylex.props(styles_stylex.default.floatingLabel.base, hasPlaceholder && styles_stylex.default.floatingLabel.placeholder, disabled && styles_stylex.default.floatingLabel.disabled, invalid && styles_stylex.default.floatingLabel.invalid)
116
116
  };
117
117
  return /*#__PURE__*/React.createElement("div", _objectSpread({
118
118
  ref: inputorRef,
@@ -100,15 +100,15 @@ var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
100
100
  isFocused = _useFocus2[0],
101
101
  focusProps = _useFocus2[1];
102
102
  var styled = {
103
- root: props($body.medium, styles.root.base, invalid && styles.root.invalid, disabled && styles.root.disabled, !disabled && textFieldMarker),
103
+ root: props($body.medium, styles.root.base, disabled && styles.root.disabled, !disabled && textFieldMarker),
104
104
  input: props(styles.input.base, !!leading && styles.input.hasLeading, !!trailing && styles.input.hasTrailing, disabled && styles.input.disabled),
105
105
  leading: props(styles.leading.base),
106
106
  trailing: props(styles.trailing.base),
107
107
  outline: props(styles.outline.base),
108
- outlineLeading: props(styles.outlineLeading.base, disabled && styles.outlineLeading.disabled),
109
- outlineNotch: props(styles.outlineNotch.base, $body.small, disabled && styles.outlineNotch.disabled, !!label && styles.outlineNotch.labeled, hasPlaceholder && !!label && styles.outlineNotch.labeledAndHasPlaceholder),
110
- outlineTrailing: props(styles.outlineTrailing.base, disabled && styles.outlineTrailing.disabled),
111
- floatingLabel: props(styles.floatingLabel.base, hasPlaceholder && styles.floatingLabel.placeholder, disabled && styles.floatingLabel.disabled)
108
+ outlineLeading: props(styles.outlineLeading.base, disabled && styles.outlineLeading.disabled, invalid && styles.outlineLeading.invalid),
109
+ outlineNotch: props(styles.outlineNotch.base, $body.small, !!label && styles.outlineNotch.withLabel, hasPlaceholder && !!label && styles.outlineNotch.withLabelAndPlaceholder, disabled && styles.outlineNotch.disabled, invalid && styles.outlineNotch.invalid),
110
+ outlineTrailing: props(styles.outlineTrailing.base, disabled && styles.outlineTrailing.disabled, invalid && styles.outlineTrailing.invalid),
111
+ floatingLabel: props(styles.floatingLabel.base, hasPlaceholder && styles.floatingLabel.placeholder, disabled && styles.floatingLabel.disabled, invalid && styles.floatingLabel.invalid)
112
112
  };
113
113
  return /*#__PURE__*/React.createElement("div", _objectSpread({
114
114
  ref: inputorRef,
@@ -24,11 +24,6 @@ var root = {
24
24
  kg3NbH: "musaex-2961ne",
25
25
  $$css: true
26
26
  },
27
- invalid: {
28
- kGVxlE: "musaex-4ms1xy",
29
- knuKkz: null,
30
- $$css: true
31
- },
32
27
  disabled: {
33
28
  kMwMTN: "musaex-1ldep6k",
34
29
  $$css: true
@@ -46,6 +41,7 @@ var input = {
46
41
  k7Eaqz: "musaex-1rdiejn",
47
42
  kZKoxP: "musaex-kyvkcq",
48
43
  kUk6DE: "musaex-98rzlu",
44
+ k8Qsv1: "musaex-19r3k9r",
49
45
  $$css: true
50
46
  },
51
47
  hasLeading: {
@@ -112,6 +108,11 @@ var outlineLeading = {
112
108
  disabled: {
113
109
  kVAM5u: "musaex-utl9qk",
114
110
  $$css: true
111
+ },
112
+ invalid: {
113
+ kVAM5u: "musaex-1ofxpqo",
114
+ k6qhrQ: "musaex-7rzjjb",
115
+ $$css: true
115
116
  }
116
117
  };
117
118
  var outlineTrailing = {
@@ -136,6 +137,11 @@ var outlineTrailing = {
136
137
  disabled: {
137
138
  kVAM5u: "musaex-utl9qk",
138
139
  $$css: true
140
+ },
141
+ invalid: {
142
+ kVAM5u: "musaex-1ofxpqo",
143
+ k6qhrQ: "musaex-7rzjjb",
144
+ $$css: true
139
145
  }
140
146
  };
141
147
  var outlineNotch = {
@@ -156,18 +162,23 @@ var outlineNotch = {
156
162
  k6qhrQ: "musaex-48fzr0",
157
163
  $$css: true
158
164
  },
159
- labeled: {
165
+ withLabel: {
160
166
  k3lJl8: "musaex-14zl4sw",
161
167
  kRj6wj: "musaex-1bq66p9",
162
168
  $$css: true
163
169
  },
164
- labeledAndHasPlaceholder: {
170
+ withLabelAndPlaceholder: {
165
171
  kLZC3w: "musaex-1v8p93f",
166
172
  $$css: true
167
173
  },
168
174
  disabled: {
169
175
  kVAM5u: "musaex-utl9qk",
170
176
  $$css: true
177
+ },
178
+ invalid: {
179
+ kVAM5u: "musaex-1ofxpqo",
180
+ k6qhrQ: "musaex-7rzjjb",
181
+ $$css: true
171
182
  }
172
183
  };
173
184
  var floatingLabel = {
@@ -189,6 +200,11 @@ var floatingLabel = {
189
200
  k3aq6I: "musaex-3oybdh",
190
201
  $$css: true
191
202
  },
203
+ invalid: {
204
+ kMwMTN: "musaex-jt36v0",
205
+ kan248: "musaex-19uxsja",
206
+ $$css: true
207
+ },
192
208
  disabled: {
193
209
  kMwMTN: "musaex-1ldep6k",
194
210
  $$css: true
@@ -19,12 +19,6 @@ declare const styles: {
19
19
  readonly paddingBlock: import("@stylexjs/stylex").StyleXClassNameFor<"paddingBlock", string>;
20
20
  readonly paddingInline: import("@stylexjs/stylex").StyleXClassNameFor<"paddingInline", string>;
21
21
  }>;
22
- readonly invalid: Readonly<{
23
- readonly boxShadow: import("@stylexjs/stylex").StyleXClassNameFor<"boxShadow", `0px 0px 0px ${import("@stylexjs/stylex").StyleXVar<string>} var(--color-error) inset`>;
24
- readonly ":focus-within": import("@stylexjs/stylex").StyleXClassNameFor<":focus-within", {
25
- readonly boxShadow: null;
26
- }>;
27
- }>;
28
22
  readonly disabled: Readonly<{
29
23
  readonly color: import("@stylexjs/stylex").StyleXClassNameFor<"color", "var(--color-on-surface-opacity-38)">;
30
24
  }>;
@@ -41,6 +35,9 @@ declare const styles: {
41
35
  readonly minWidth: import("@stylexjs/stylex").StyleXClassNameFor<"minWidth", string>;
42
36
  readonly height: import("@stylexjs/stylex").StyleXClassNameFor<"height", string>;
43
37
  readonly flex: import("@stylexjs/stylex").StyleXClassNameFor<"flex", 1>;
38
+ readonly "::placeholder": import("@stylexjs/stylex").StyleXClassNameFor<"::placeholder", {
39
+ readonly color: "var(--color-on-surface-variant)";
40
+ }>;
44
41
  }>;
45
42
  readonly hasLeading: Readonly<{
46
43
  readonly paddingInlineStart: import("@stylexjs/stylex").StyleXClassNameFor<"paddingInlineStart", string>;
@@ -103,6 +100,12 @@ declare const styles: {
103
100
  readonly disabled: Readonly<{
104
101
  readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-on-surface-opacity-12)">;
105
102
  }>;
103
+ readonly invalid: Readonly<{
104
+ readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, "var(--color-error)" | {
105
+ readonly borderColor: "var(--color-error)";
106
+ }>;
107
+ readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-error)">;
108
+ }>;
106
109
  }>;
107
110
  outlineNotch: Readonly<{
108
111
  readonly base: Readonly<{
@@ -123,18 +126,24 @@ declare const styles: {
123
126
  readonly borderInlineWidth: import("@stylexjs/stylex").StyleXClassNameFor<"borderInlineWidth", string>;
124
127
  readonly borderBlockWidth: import("@stylexjs/stylex").StyleXClassNameFor<"borderBlockWidth", string>;
125
128
  }>;
126
- readonly labeled: Readonly<{
129
+ readonly withLabel: Readonly<{
127
130
  readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, {
128
131
  readonly borderBlockStartWidth: import("@stylexjs/stylex").StyleXVar<string>;
129
132
  readonly borderBlockStartColor: "transparent";
130
133
  }>;
131
134
  }>;
132
- readonly labeledAndHasPlaceholder: Readonly<{
135
+ readonly withLabelAndPlaceholder: Readonly<{
133
136
  readonly borderBlockStartColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderBlockStartColor", "transparent">;
134
137
  }>;
135
138
  readonly disabled: Readonly<{
136
139
  readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-on-surface-opacity-12)">;
137
140
  }>;
141
+ readonly invalid: Readonly<{
142
+ readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, "var(--color-error)" | {
143
+ readonly borderColor: "var(--color-error)";
144
+ }>;
145
+ readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-error)">;
146
+ }>;
138
147
  }>;
139
148
  outlineTrailing: Readonly<{
140
149
  readonly base: Readonly<{
@@ -159,6 +168,12 @@ declare const styles: {
159
168
  readonly disabled: Readonly<{
160
169
  readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-on-surface-opacity-12)">;
161
170
  }>;
171
+ readonly invalid: Readonly<{
172
+ readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, "var(--color-error)" | {
173
+ readonly borderColor: "var(--color-error)";
174
+ }>;
175
+ readonly borderColor: import("@stylexjs/stylex").StyleXClassNameFor<"borderColor", "var(--color-error)">;
176
+ }>;
162
177
  }>;
163
178
  floatingLabel: Readonly<{
164
179
  readonly base: Readonly<{
@@ -179,6 +194,12 @@ declare const styles: {
179
194
  readonly top: import("@stylexjs/stylex").StyleXClassNameFor<"top", "-50%">;
180
195
  readonly transform: import("@stylexjs/stylex").StyleXClassNameFor<"transform", "scale(1)">;
181
196
  }>;
197
+ readonly invalid: Readonly<{
198
+ readonly [x: string]: import("@stylexjs/stylex").StyleXClassNameFor<string, "var(--color-error)" | {
199
+ readonly color: "var(--color-error)";
200
+ }>;
201
+ readonly color: import("@stylexjs/stylex").StyleXClassNameFor<"color", "var(--color-error)">;
202
+ }>;
182
203
  readonly disabled: Readonly<{
183
204
  readonly color: import("@stylexjs/stylex").StyleXClassNameFor<"color", "var(--color-on-surface-opacity-38)">;
184
205
  }>;
@@ -20,11 +20,6 @@ var root = {
20
20
  kg3NbH: "musaex-2961ne",
21
21
  $$css: true
22
22
  },
23
- invalid: {
24
- kGVxlE: "musaex-4ms1xy",
25
- knuKkz: null,
26
- $$css: true
27
- },
28
23
  disabled: {
29
24
  kMwMTN: "musaex-1ldep6k",
30
25
  $$css: true
@@ -42,6 +37,7 @@ var input = {
42
37
  k7Eaqz: "musaex-1rdiejn",
43
38
  kZKoxP: "musaex-kyvkcq",
44
39
  kUk6DE: "musaex-98rzlu",
40
+ k8Qsv1: "musaex-19r3k9r",
45
41
  $$css: true
46
42
  },
47
43
  hasLeading: {
@@ -108,6 +104,11 @@ var outlineLeading = {
108
104
  disabled: {
109
105
  kVAM5u: "musaex-utl9qk",
110
106
  $$css: true
107
+ },
108
+ invalid: {
109
+ kVAM5u: "musaex-1ofxpqo",
110
+ k6qhrQ: "musaex-7rzjjb",
111
+ $$css: true
111
112
  }
112
113
  };
113
114
  var outlineTrailing = {
@@ -132,6 +133,11 @@ var outlineTrailing = {
132
133
  disabled: {
133
134
  kVAM5u: "musaex-utl9qk",
134
135
  $$css: true
136
+ },
137
+ invalid: {
138
+ kVAM5u: "musaex-1ofxpqo",
139
+ k6qhrQ: "musaex-7rzjjb",
140
+ $$css: true
135
141
  }
136
142
  };
137
143
  var outlineNotch = {
@@ -152,18 +158,23 @@ var outlineNotch = {
152
158
  k6qhrQ: "musaex-48fzr0",
153
159
  $$css: true
154
160
  },
155
- labeled: {
161
+ withLabel: {
156
162
  k3lJl8: "musaex-14zl4sw",
157
163
  kRj6wj: "musaex-1bq66p9",
158
164
  $$css: true
159
165
  },
160
- labeledAndHasPlaceholder: {
166
+ withLabelAndPlaceholder: {
161
167
  kLZC3w: "musaex-1v8p93f",
162
168
  $$css: true
163
169
  },
164
170
  disabled: {
165
171
  kVAM5u: "musaex-utl9qk",
166
172
  $$css: true
173
+ },
174
+ invalid: {
175
+ kVAM5u: "musaex-1ofxpqo",
176
+ k6qhrQ: "musaex-7rzjjb",
177
+ $$css: true
167
178
  }
168
179
  };
169
180
  var floatingLabel = {
@@ -185,6 +196,11 @@ var floatingLabel = {
185
196
  k3aq6I: "musaex-3oybdh",
186
197
  $$css: true
187
198
  },
199
+ invalid: {
200
+ kMwMTN: "musaex-jt36v0",
201
+ kan248: "musaex-19uxsja",
202
+ $$css: true
203
+ },
188
204
  disabled: {
189
205
  kMwMTN: "musaex-1ldep6k",
190
206
  $$css: true
package/dist/styles.css CHANGED
@@ -516,6 +516,10 @@
516
516
  transition: transform .3s;
517
517
  }
518
518
 
519
+ .musaex-7rzjjb.musaex-7rzjjb:where(.musaex-19ap9w9:focus-within *) {
520
+ border-color: var(--color-error);
521
+ }
522
+
519
523
  .musaex-48fzr0.musaex-48fzr0:where(.musaex-19ap9w9:focus-within *) {
520
524
  border-color: var(--color-primary);
521
525
  }
@@ -800,10 +804,6 @@
800
804
  border-start-start-radius: var(--musaex-17d148i);
801
805
  }
802
806
 
803
- .musaex-4ms1xy {
804
- box-shadow: 0 0 0 var(--musaex-1035pbm) var(--color-error) inset;
805
- }
806
-
807
807
  .musaex-bxw2on {
808
808
  box-shadow: 0 0 0 var(--musaex-1xf102v) var(--color-on-primary);
809
809
  }
@@ -1841,6 +1841,10 @@
1841
1841
  border-inline-start-width: var(--musaex-1035pbm);
1842
1842
  }
1843
1843
 
1844
+ .musaex-19uxsja.musaex-19uxsja:where(.musaex-19ap9w9:focus-within *) {
1845
+ color: var(--color-error);
1846
+ }
1847
+
1844
1848
  .musaex-1lxvvmp.musaex-1lxvvmp:where(.musaex-19ap9w9:focus-within *) {
1845
1849
  color: var(--color-primary);
1846
1850
  }
@@ -2883,6 +2887,10 @@
2883
2887
  color: var(--color-on-surface-opacity-38);
2884
2888
  }
2885
2889
 
2890
+ .musaex-19r3k9r::placeholder {
2891
+ color: var(--color-on-surface-variant);
2892
+ }
2893
+
2886
2894
  .musaex-100rkj9:after, .musaex-10tli2e:before, .musaex-1cpjm7i:before, .musaex-1s928wv:after {
2887
2895
  content: "";
2888
2896
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musae",
3
- "version": "1.3.1-beta.5",
3
+ "version": "1.3.1-beta.6",
4
4
  "description": "musae-ui",
5
5
  "author": "tutu@fantufantu.com",
6
6
  "license": "MIT",