@fluentui/react-input 9.4.4 → 9.4.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.
Files changed (63) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +85 -1
  3. package/CHANGELOG.md +29 -2
  4. package/lib/Input.js.map +1 -1
  5. package/lib/InputField.js.map +1 -1
  6. package/lib/components/Input/Input.js.map +1 -1
  7. package/lib/components/Input/Input.types.js +1 -1
  8. package/lib/components/Input/Input.types.js.map +1 -1
  9. package/lib/components/Input/index.js.map +1 -1
  10. package/lib/components/Input/renderInput.js +1 -9
  11. package/lib/components/Input/renderInput.js.map +1 -1
  12. package/lib/components/Input/useInput.js +3 -2
  13. package/lib/components/Input/useInput.js.map +1 -1
  14. package/lib/components/Input/useInputStyles.js.map +1 -1
  15. package/lib/components/InputField/InputField.js +1 -2
  16. package/lib/components/InputField/InputField.js.map +1 -1
  17. package/lib/components/InputField/index.js.map +1 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib-commonjs/Input.js +5 -4
  20. package/lib-commonjs/Input.js.map +1 -1
  21. package/lib-commonjs/InputField.js +5 -4
  22. package/lib-commonjs/InputField.js.map +1 -1
  23. package/lib-commonjs/components/Input/Input.js +19 -20
  24. package/lib-commonjs/components/Input/Input.js.map +1 -1
  25. package/lib-commonjs/components/Input/Input.types.js +5 -2
  26. package/lib-commonjs/components/Input/Input.types.js.map +1 -1
  27. package/lib-commonjs/components/Input/index.js +9 -8
  28. package/lib-commonjs/components/Input/index.js.map +1 -1
  29. package/lib-commonjs/components/Input/renderInput.js +13 -24
  30. package/lib-commonjs/components/Input/renderInput.js.map +1 -1
  31. package/lib-commonjs/components/Input/useInput.js +66 -70
  32. package/lib-commonjs/components/Input/useInput.js.map +1 -1
  33. package/lib-commonjs/components/Input/useInputStyles.js +394 -178
  34. package/lib-commonjs/components/Input/useInputStyles.js.map +1 -1
  35. package/lib-commonjs/components/InputField/InputField.js +17 -11
  36. package/lib-commonjs/components/InputField/InputField.js.map +1 -1
  37. package/lib-commonjs/components/InputField/index.js +5 -4
  38. package/lib-commonjs/components/InputField/index.js.map +1 -1
  39. package/lib-commonjs/index.js +21 -49
  40. package/lib-commonjs/index.js.map +1 -1
  41. package/package.json +10 -9
  42. package/lib-amd/Input.js +0 -6
  43. package/lib-amd/Input.js.map +0 -1
  44. package/lib-amd/InputField.js +0 -6
  45. package/lib-amd/InputField.js.map +0 -1
  46. package/lib-amd/components/Input/Input.js +0 -17
  47. package/lib-amd/components/Input/Input.js.map +0 -1
  48. package/lib-amd/components/Input/Input.types.js +0 -5
  49. package/lib-amd/components/Input/Input.types.js.map +0 -1
  50. package/lib-amd/components/Input/index.js +0 -10
  51. package/lib-amd/components/Input/index.js.map +0 -1
  52. package/lib-amd/components/Input/renderInput.js +0 -17
  53. package/lib-amd/components/Input/renderInput.js.map +0 -1
  54. package/lib-amd/components/Input/useInput.js +0 -64
  55. package/lib-amd/components/Input/useInput.js.map +0 -1
  56. package/lib-amd/components/Input/useInputStyles.js +0 -214
  57. package/lib-amd/components/Input/useInputStyles.js.map +0 -1
  58. package/lib-amd/components/InputField/InputField.js +0 -10
  59. package/lib-amd/components/InputField/InputField.js.map +0 -1
  60. package/lib-amd/components/InputField/index.js +0 -6
  61. package/lib-amd/components/InputField/index.js.map +0 -1
  62. package/lib-amd/index.js +0 -13
  63. package/lib-amd/index.js.map +0 -1
@@ -1,192 +1,408 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ inputClassNames: ()=>inputClassNames,
13
+ useInputStyles_unstable: ()=>useInputStyles_unstable
5
14
  });
6
- exports.useInputStyles_unstable = exports.inputClassNames = void 0;
7
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
8
- const react_1 = /*#__PURE__*/require("@griffel/react");
9
- exports.inputClassNames = {
10
- root: 'fui-Input',
11
- input: 'fui-Input__input',
12
- contentBefore: 'fui-Input__contentBefore',
13
- contentAfter: 'fui-Input__contentAfter'
15
+ const _react = require("@griffel/react");
16
+ const inputClassNames = {
17
+ root: 'fui-Input',
18
+ input: 'fui-Input__input',
19
+ contentBefore: 'fui-Input__contentBefore',
20
+ contentAfter: 'fui-Input__contentAfter'
14
21
  };
15
22
  // TODO(sharing) should these be shared somewhere?
16
23
  const fieldHeights = {
17
- small: '24px',
18
- medium: '32px',
19
- large: '40px'
24
+ small: '24px',
25
+ medium: '32px',
26
+ large: '40px'
20
27
  };
21
- const useRootClassName = /*#__PURE__*/react_1.__resetStyles("r1jtohuq", "rl1z2p5", [".r1jtohuq{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".r1jtohuq::after{box-sizing:border-box;content:\"\";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);-webkit-clip-path:inset(calc(100% - 2px) 0 0 0);clip-path:inset(calc(100% - 2px) 0 0 0);-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}", "@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}", ".r1jtohuq:focus-within::after{-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}", "@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}", ".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}", ".r1jtohuq:focus-within{outline:2px solid transparent;}", ".rl1z2p5{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".rl1z2p5::after{box-sizing:border-box;content:\"\";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);-webkit-clip-path:inset(calc(100% - 2px) 0 0 0);clip-path:inset(calc(100% - 2px) 0 0 0);-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}", "@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}", ".rl1z2p5:focus-within::after{-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}", "@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}", ".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}", ".rl1z2p5:focus-within{outline:2px solid transparent;}"]);
22
- const useRootStyles = /*#__PURE__*/react_1.__styles({
23
- small: {
24
- sshi5w: "f1pha7fy",
25
- uwmqm3: ["fk8j09s", "fdw0yi8"],
26
- z189sj: ["fdw0yi8", "fk8j09s"],
27
- Bahqtrf: "fk6fouc",
28
- Be2twd7: "fy9rknc",
29
- Bhrd7zp: "figsok6",
30
- Bg96gwp: "fwrc4pm"
31
- },
32
- medium: {},
33
- large: {
34
- sshi5w: "f1w5jphr",
35
- uwmqm3: ["f1uw59to", "fw5db7e"],
36
- z189sj: ["fw5db7e", "f1uw59to"],
37
- Bahqtrf: "fk6fouc",
38
- Be2twd7: "fod5ikn",
39
- Bhrd7zp: "figsok6",
40
- Bg96gwp: "faaz57k",
41
- i8kkvl: "f1rjii52",
42
- Belr9w4: "f1r7g2jn"
43
- },
44
- outline: {},
45
- outlineInteractive: {
46
- Bgoe8wy: "fvcxoqz",
47
- Bwzppfd: ["f1ub3y4t", "f1m52nbi"],
48
- oetu4i: "f1l4zc64",
49
- gg5e9n: ["f1m52nbi", "f1ub3y4t"],
50
- Drbcw7: "f8vnjqi",
51
- udz0bu: ["fz1etlk", "f1hc16gm"],
52
- Be8ivqh: "f1klwx88",
53
- ofdepl: ["f1hc16gm", "fz1etlk"]
54
- },
55
- underline: {
56
- De3pzq: "f1c21dwh",
57
- Bbmb7ep: ["f1krrbdw", "f1deotkl"],
58
- Beyfa6y: ["f1deotkl", "f1krrbdw"],
59
- B7oj6ja: ["f10ostut", "f1ozlkrg"],
60
- Btl43ni: ["f1ozlkrg", "f10ostut"],
61
- icvyot: "f1ern45e",
62
- vrafjx: ["f1n71otn", "f1deefiw"],
63
- wvpqe5: ["f1deefiw", "f1n71otn"],
64
- Eqx8gd: ["f1n6gb5g", "f15yvnhg"],
65
- B1piin3: ["f15yvnhg", "f1n6gb5g"]
66
- },
67
- underlineInteractive: {
68
- oetu4i: "f1l4zc64",
69
- Be8ivqh: "f1klwx88",
70
- B3778ie: ["f1nf3wye", "feulmo5"],
71
- d9w3h3: ["feulmo5", "f1nf3wye"],
72
- Bl18szs: ["f18vqdqu", "f53nyzz"],
73
- B4j8arr: ["f53nyzz", "f18vqdqu"]
74
- },
75
- filled: {
76
- g2u3we: "fghlq4f",
77
- h3c5rm: ["f1gn591s", "fjscplz"],
78
- B9xav0g: "fb073pr",
79
- zhjwy3: ["fjscplz", "f1gn591s"]
80
- },
81
- filledInteractive: {
82
- q7v0qe: "ftmjh5b",
83
- kmh5ft: ["f17blpuu", "fsrcdbj"],
84
- nagaa4: "f1tpwn32",
85
- B1yhkcb: ["fsrcdbj", "f17blpuu"]
86
- },
87
- invalid: {
88
- tvckwq: "fs4k3qj",
89
- gk2u95: ["fcee079", "fmyw78r"],
90
- hhx65j: "f1fgmyf4",
91
- Bxowmz0: ["fmyw78r", "fcee079"]
92
- },
93
- "filled-darker": {
94
- De3pzq: "f16xq7d1"
95
- },
96
- "filled-lighter": {
97
- De3pzq: "fxugw4r"
98
- },
99
- "filled-darker-shadow": {
100
- De3pzq: "f16xq7d1",
101
- E5pizo: "fyed02w"
102
- },
103
- "filled-lighter-shadow": {
104
- De3pzq: "fxugw4r",
105
- E5pizo: "fyed02w"
106
- },
107
- disabled: {
108
- Bceei9c: "fdrzuqr",
109
- De3pzq: "f1c21dwh",
110
- g2u3we: "f1jj8ep1",
111
- h3c5rm: ["f15xbau", "fy0fskl"],
112
- B9xav0g: "f4ikngz",
113
- zhjwy3: ["fy0fskl", "f15xbau"],
114
- Bjwas2f: "fg455y9",
115
- Bn1d65q: ["f1rvyvqg", "f14g86mu"],
116
- Bxeuatn: "f1cwzwz",
117
- n51gp8: ["f14g86mu", "f1rvyvqg"],
118
- Bsft5z2: "fhr9occ",
119
- Bduesf4: "f99w1ws"
120
- }
28
+ const useRootClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r1jtohuq", "rl1z2p5", [
29
+ ".r1jtohuq{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",
30
+ ".r1jtohuq::after{box-sizing:border-box;content:\"\";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);-webkit-clip-path:inset(calc(100% - 2px) 0 0 0);clip-path:inset(calc(100% - 2px) 0 0 0);-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}",
31
+ "@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}",
32
+ ".r1jtohuq:focus-within::after{-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",
33
+ "@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}",
34
+ ".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",
35
+ ".r1jtohuq:focus-within{outline:2px solid transparent;}",
36
+ ".rl1z2p5{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",
37
+ ".rl1z2p5::after{box-sizing:border-box;content:\"\";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);-webkit-clip-path:inset(calc(100% - 2px) 0 0 0);clip-path:inset(calc(100% - 2px) 0 0 0);-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}",
38
+ "@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}",
39
+ ".rl1z2p5:focus-within::after{-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",
40
+ "@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}",
41
+ ".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",
42
+ ".rl1z2p5:focus-within{outline:2px solid transparent;}"
43
+ ]);
44
+ const useRootStyles = /*#__PURE__*/ (0, _react["__styles"])({
45
+ small: {
46
+ sshi5w: "f1pha7fy",
47
+ uwmqm3: [
48
+ "fk8j09s",
49
+ "fdw0yi8"
50
+ ],
51
+ z189sj: [
52
+ "fdw0yi8",
53
+ "fk8j09s"
54
+ ],
55
+ Bahqtrf: "fk6fouc",
56
+ Be2twd7: "fy9rknc",
57
+ Bhrd7zp: "figsok6",
58
+ Bg96gwp: "fwrc4pm"
59
+ },
60
+ medium: {},
61
+ large: {
62
+ sshi5w: "f1w5jphr",
63
+ uwmqm3: [
64
+ "f1uw59to",
65
+ "fw5db7e"
66
+ ],
67
+ z189sj: [
68
+ "fw5db7e",
69
+ "f1uw59to"
70
+ ],
71
+ Bahqtrf: "fk6fouc",
72
+ Be2twd7: "fod5ikn",
73
+ Bhrd7zp: "figsok6",
74
+ Bg96gwp: "faaz57k",
75
+ i8kkvl: "f1rjii52",
76
+ Belr9w4: "f1r7g2jn"
77
+ },
78
+ outline: {},
79
+ outlineInteractive: {
80
+ Bgoe8wy: "fvcxoqz",
81
+ Bwzppfd: [
82
+ "f1ub3y4t",
83
+ "f1m52nbi"
84
+ ],
85
+ oetu4i: "f1l4zc64",
86
+ gg5e9n: [
87
+ "f1m52nbi",
88
+ "f1ub3y4t"
89
+ ],
90
+ Drbcw7: "f8vnjqi",
91
+ udz0bu: [
92
+ "fz1etlk",
93
+ "f1hc16gm"
94
+ ],
95
+ Be8ivqh: "f1klwx88",
96
+ ofdepl: [
97
+ "f1hc16gm",
98
+ "fz1etlk"
99
+ ]
100
+ },
101
+ underline: {
102
+ De3pzq: "f1c21dwh",
103
+ Bbmb7ep: [
104
+ "f1krrbdw",
105
+ "f1deotkl"
106
+ ],
107
+ Beyfa6y: [
108
+ "f1deotkl",
109
+ "f1krrbdw"
110
+ ],
111
+ B7oj6ja: [
112
+ "f10ostut",
113
+ "f1ozlkrg"
114
+ ],
115
+ Btl43ni: [
116
+ "f1ozlkrg",
117
+ "f10ostut"
118
+ ],
119
+ icvyot: "f1ern45e",
120
+ vrafjx: [
121
+ "f1n71otn",
122
+ "f1deefiw"
123
+ ],
124
+ wvpqe5: [
125
+ "f1deefiw",
126
+ "f1n71otn"
127
+ ],
128
+ Eqx8gd: [
129
+ "f1n6gb5g",
130
+ "f15yvnhg"
131
+ ],
132
+ B1piin3: [
133
+ "f15yvnhg",
134
+ "f1n6gb5g"
135
+ ]
136
+ },
137
+ underlineInteractive: {
138
+ oetu4i: "f1l4zc64",
139
+ Be8ivqh: "f1klwx88",
140
+ B3778ie: [
141
+ "f1nf3wye",
142
+ "feulmo5"
143
+ ],
144
+ d9w3h3: [
145
+ "feulmo5",
146
+ "f1nf3wye"
147
+ ],
148
+ Bl18szs: [
149
+ "f18vqdqu",
150
+ "f53nyzz"
151
+ ],
152
+ B4j8arr: [
153
+ "f53nyzz",
154
+ "f18vqdqu"
155
+ ]
156
+ },
157
+ filled: {
158
+ g2u3we: "fghlq4f",
159
+ h3c5rm: [
160
+ "f1gn591s",
161
+ "fjscplz"
162
+ ],
163
+ B9xav0g: "fb073pr",
164
+ zhjwy3: [
165
+ "fjscplz",
166
+ "f1gn591s"
167
+ ]
168
+ },
169
+ filledInteractive: {
170
+ q7v0qe: "ftmjh5b",
171
+ kmh5ft: [
172
+ "f17blpuu",
173
+ "fsrcdbj"
174
+ ],
175
+ nagaa4: "f1tpwn32",
176
+ B1yhkcb: [
177
+ "fsrcdbj",
178
+ "f17blpuu"
179
+ ]
180
+ },
181
+ invalid: {
182
+ tvckwq: "fs4k3qj",
183
+ gk2u95: [
184
+ "fcee079",
185
+ "fmyw78r"
186
+ ],
187
+ hhx65j: "f1fgmyf4",
188
+ Bxowmz0: [
189
+ "fmyw78r",
190
+ "fcee079"
191
+ ]
192
+ },
193
+ "filled-darker": {
194
+ De3pzq: "f16xq7d1"
195
+ },
196
+ "filled-lighter": {
197
+ De3pzq: "fxugw4r"
198
+ },
199
+ "filled-darker-shadow": {
200
+ De3pzq: "f16xq7d1",
201
+ E5pizo: "fyed02w"
202
+ },
203
+ "filled-lighter-shadow": {
204
+ De3pzq: "fxugw4r",
205
+ E5pizo: "fyed02w"
206
+ },
207
+ disabled: {
208
+ Bceei9c: "fdrzuqr",
209
+ De3pzq: "f1c21dwh",
210
+ g2u3we: "f1jj8ep1",
211
+ h3c5rm: [
212
+ "f15xbau",
213
+ "fy0fskl"
214
+ ],
215
+ B9xav0g: "f4ikngz",
216
+ zhjwy3: [
217
+ "fy0fskl",
218
+ "f15xbau"
219
+ ],
220
+ Bjwas2f: "fg455y9",
221
+ Bn1d65q: [
222
+ "f1rvyvqg",
223
+ "f14g86mu"
224
+ ],
225
+ Bxeuatn: "f1cwzwz",
226
+ n51gp8: [
227
+ "f14g86mu",
228
+ "f1rvyvqg"
229
+ ],
230
+ Bsft5z2: "fhr9occ",
231
+ Bduesf4: "f99w1ws"
232
+ }
121
233
  }, {
122
- d: [".f1pha7fy{min-height:24px;}", ".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}", ".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f1w5jphr{min-height:40px;}", ".f1uw59to{padding-left:var(--spacingHorizontalM);}", ".fw5db7e{padding-right:var(--spacingHorizontalM);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1rjii52{-webkit-column-gap:var(--spacingHorizontalSNudge);column-gap:var(--spacingHorizontalSNudge);}", ".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f1krrbdw{border-bottom-right-radius:0;}", ".f1deotkl{border-bottom-left-radius:0;}", ".f10ostut{border-top-right-radius:0;}", ".f1ozlkrg{border-top-left-radius:0;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1n6gb5g::after{left:0;}", ".f15yvnhg::after{right:0;}", ".f1nf3wye::after{border-bottom-right-radius:0;}", ".feulmo5::after{border-bottom-left-radius:0;}", ".f18vqdqu::after{border-top-right-radius:0;}", ".f53nyzz::after{border-top-left-radius:0;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}", ".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}", ".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}", ".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}", ".f16xq7d1{background-color:var(--colorNeutralBackground3);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fyed02w{box-shadow:var(--shadow2);}", ".fdrzuqr{cursor:not-allowed;}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fhr9occ::after{content:unset;}"],
123
- h: [".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}", ".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}", ".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}", ".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}", ".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],
124
- a: [".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}", ".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}", ".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],
125
- m: [["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}", {
126
- m: "(forced-colors: active)"
127
- }], ["@media (forced-colors: active){.f1rvyvqg{border-right-color:GrayText;}.f14g86mu{border-left-color:GrayText;}}", {
128
- m: "(forced-colors: active)"
129
- }], ["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}", {
130
- m: "(forced-colors: active)"
131
- }], ["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}", {
132
- m: "(forced-colors: active)"
133
- }]],
134
- w: [".f99w1ws:focus-within{outline-style:none;}"]
234
+ d: [
235
+ ".f1pha7fy{min-height:24px;}",
236
+ ".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",
237
+ ".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",
238
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
239
+ ".fy9rknc{font-size:var(--fontSizeBase200);}",
240
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
241
+ ".fwrc4pm{line-height:var(--lineHeightBase200);}",
242
+ ".f1w5jphr{min-height:40px;}",
243
+ ".f1uw59to{padding-left:var(--spacingHorizontalM);}",
244
+ ".fw5db7e{padding-right:var(--spacingHorizontalM);}",
245
+ ".fod5ikn{font-size:var(--fontSizeBase400);}",
246
+ ".faaz57k{line-height:var(--lineHeightBase400);}",
247
+ ".f1rjii52{-webkit-column-gap:var(--spacingHorizontalSNudge);column-gap:var(--spacingHorizontalSNudge);}",
248
+ ".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",
249
+ ".f1c21dwh{background-color:var(--colorTransparentBackground);}",
250
+ ".f1krrbdw{border-bottom-right-radius:0;}",
251
+ ".f1deotkl{border-bottom-left-radius:0;}",
252
+ ".f10ostut{border-top-right-radius:0;}",
253
+ ".f1ozlkrg{border-top-left-radius:0;}",
254
+ ".f1ern45e{border-top-style:none;}",
255
+ ".f1n71otn{border-right-style:none;}",
256
+ ".f1deefiw{border-left-style:none;}",
257
+ ".f1n6gb5g::after{left:0;}",
258
+ ".f15yvnhg::after{right:0;}",
259
+ ".f1nf3wye::after{border-bottom-right-radius:0;}",
260
+ ".feulmo5::after{border-bottom-left-radius:0;}",
261
+ ".f18vqdqu::after{border-top-right-radius:0;}",
262
+ ".f53nyzz::after{border-top-left-radius:0;}",
263
+ ".fghlq4f{border-top-color:var(--colorTransparentStroke);}",
264
+ ".f1gn591s{border-right-color:var(--colorTransparentStroke);}",
265
+ ".fjscplz{border-left-color:var(--colorTransparentStroke);}",
266
+ ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",
267
+ ".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",
268
+ ".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",
269
+ ".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",
270
+ ".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",
271
+ ".f16xq7d1{background-color:var(--colorNeutralBackground3);}",
272
+ ".fxugw4r{background-color:var(--colorNeutralBackground1);}",
273
+ ".fyed02w{box-shadow:var(--shadow2);}",
274
+ ".fdrzuqr{cursor:not-allowed;}",
275
+ ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",
276
+ ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",
277
+ ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",
278
+ ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",
279
+ ".fhr9occ::after{content:unset;}"
280
+ ],
281
+ h: [
282
+ ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",
283
+ ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",
284
+ ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",
285
+ ".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",
286
+ ".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",
287
+ ".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",
288
+ ".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",
289
+ ".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"
290
+ ],
291
+ a: [
292
+ ".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",
293
+ ".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",
294
+ ".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",
295
+ ".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"
296
+ ],
297
+ m: [
298
+ [
299
+ "@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",
300
+ {
301
+ m: "(forced-colors: active)"
302
+ }
303
+ ],
304
+ [
305
+ "@media (forced-colors: active){.f1rvyvqg{border-right-color:GrayText;}.f14g86mu{border-left-color:GrayText;}}",
306
+ {
307
+ m: "(forced-colors: active)"
308
+ }
309
+ ],
310
+ [
311
+ "@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",
312
+ {
313
+ m: "(forced-colors: active)"
314
+ }
315
+ ],
316
+ [
317
+ "@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",
318
+ {
319
+ m: "(forced-colors: active)"
320
+ }
321
+ ]
322
+ ],
323
+ w: [
324
+ ".f99w1ws:focus-within{outline-style:none;}"
325
+ ]
135
326
  });
136
- const useInputClassName = /*#__PURE__*/react_1.__resetStyles("rvp2gzh", null, [".rvp2gzh{box-sizing:border-box;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}", ".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}", ".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}", ".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}", ".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]);
137
- const useInputElementStyles = /*#__PURE__*/react_1.__styles({
138
- large: {
139
- uwmqm3: ["fk8j09s", "fdw0yi8"],
140
- z189sj: ["fdw0yi8", "fk8j09s"]
141
- },
142
- disabled: {
143
- sj55zd: "f1s2aq7o",
144
- De3pzq: "f1c21dwh",
145
- Bceei9c: "fdrzuqr",
146
- yvdlaj: "fahhnxm"
147
- }
327
+ const useInputClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rvp2gzh", null, [
328
+ ".rvp2gzh{box-sizing:border-box;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",
329
+ ".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",
330
+ ".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",
331
+ ".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",
332
+ ".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"
333
+ ]);
334
+ const useInputElementStyles = /*#__PURE__*/ (0, _react["__styles"])({
335
+ large: {
336
+ uwmqm3: [
337
+ "fk8j09s",
338
+ "fdw0yi8"
339
+ ],
340
+ z189sj: [
341
+ "fdw0yi8",
342
+ "fk8j09s"
343
+ ]
344
+ },
345
+ disabled: {
346
+ sj55zd: "f1s2aq7o",
347
+ De3pzq: "f1c21dwh",
348
+ Bceei9c: "fdrzuqr",
349
+ yvdlaj: "fahhnxm"
350
+ }
148
351
  }, {
149
- d: [".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}", ".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".fdrzuqr{cursor:not-allowed;}", ".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}", ".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]
352
+ d: [
353
+ ".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",
354
+ ".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",
355
+ ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",
356
+ ".f1c21dwh{background-color:var(--colorTransparentBackground);}",
357
+ ".fdrzuqr{cursor:not-allowed;}",
358
+ ".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",
359
+ ".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"
360
+ ]
150
361
  });
151
- const useContentClassName = /*#__PURE__*/react_1.__resetStyles("r1572tok", null, [".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".r1572tok>svg{font-size:20px;}"]);
152
- const useContentStyles = /*#__PURE__*/react_1.__styles({
153
- disabled: {
154
- sj55zd: "f1s2aq7o"
155
- },
156
- small: {
157
- kwki1k: "f3u2cy0"
158
- },
159
- medium: {},
160
- large: {
161
- kwki1k: "fa420co"
162
- }
362
+ const useContentClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r1572tok", null, [
363
+ ".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",
364
+ ".r1572tok>svg{font-size:20px;}"
365
+ ]);
366
+ const useContentStyles = /*#__PURE__*/ (0, _react["__styles"])({
367
+ disabled: {
368
+ sj55zd: "f1s2aq7o"
369
+ },
370
+ small: {
371
+ kwki1k: "f3u2cy0"
372
+ },
373
+ medium: {},
374
+ large: {
375
+ kwki1k: "fa420co"
376
+ }
163
377
  }, {
164
- d: [".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".f3u2cy0>svg{font-size:16px;}", ".fa420co>svg{font-size:24px;}"]
378
+ d: [
379
+ ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",
380
+ ".f3u2cy0>svg{font-size:16px;}",
381
+ ".fa420co>svg{font-size:24px;}"
382
+ ]
165
383
  });
166
- /**
167
- * Apply styling to the Input slots based on the state
168
- */
169
- const useInputStyles_unstable = state => {
170
- const {
171
- size,
172
- appearance
173
- } = state;
174
- const disabled = state.input.disabled;
175
- const invalid = `${state.input['aria-invalid']}` === 'true';
176
- const filled = appearance.startsWith('filled');
177
- const rootStyles = useRootStyles();
178
- const inputStyles = useInputElementStyles();
179
- const contentStyles = useContentStyles();
180
- state.root.className = react_1.mergeClasses(exports.inputClassNames.root, useRootClassName(), rootStyles[size], rootStyles[appearance], !disabled && appearance === 'outline' && rootStyles.outlineInteractive, !disabled && appearance === 'underline' && rootStyles.underlineInteractive, !disabled && filled && rootStyles.filledInteractive, filled && rootStyles.filled, !disabled && invalid && rootStyles.invalid, disabled && rootStyles.disabled, state.root.className);
181
- state.input.className = react_1.mergeClasses(exports.inputClassNames.input, useInputClassName(), size === 'large' && inputStyles.large, disabled && inputStyles.disabled, state.input.className);
182
- const contentClasses = [useContentClassName(), disabled && contentStyles.disabled, contentStyles[size]];
183
- if (state.contentBefore) {
184
- state.contentBefore.className = react_1.mergeClasses(exports.inputClassNames.contentBefore, ...contentClasses, state.contentBefore.className);
185
- }
186
- if (state.contentAfter) {
187
- state.contentAfter.className = react_1.mergeClasses(exports.inputClassNames.contentAfter, ...contentClasses, state.contentAfter.className);
188
- }
189
- return state;
190
- };
191
- exports.useInputStyles_unstable = useInputStyles_unstable;
384
+ const useInputStyles_unstable = (state)=>{
385
+ const { size , appearance } = state;
386
+ const disabled = state.input.disabled;
387
+ const invalid = `${state.input['aria-invalid']}` === 'true';
388
+ const filled = appearance.startsWith('filled');
389
+ const rootStyles = useRootStyles();
390
+ const inputStyles = useInputElementStyles();
391
+ const contentStyles = useContentStyles();
392
+ state.root.className = (0, _react.mergeClasses)(inputClassNames.root, useRootClassName(), rootStyles[size], rootStyles[appearance], !disabled && appearance === 'outline' && rootStyles.outlineInteractive, !disabled && appearance === 'underline' && rootStyles.underlineInteractive, !disabled && filled && rootStyles.filledInteractive, filled && rootStyles.filled, !disabled && invalid && rootStyles.invalid, disabled && rootStyles.disabled, state.root.className);
393
+ state.input.className = (0, _react.mergeClasses)(inputClassNames.input, useInputClassName(), size === 'large' && inputStyles.large, disabled && inputStyles.disabled, state.input.className);
394
+ const contentClasses = [
395
+ useContentClassName(),
396
+ disabled && contentStyles.disabled,
397
+ contentStyles[size]
398
+ ];
399
+ if (state.contentBefore) {
400
+ state.contentBefore.className = (0, _react.mergeClasses)(inputClassNames.contentBefore, ...contentClasses, state.contentBefore.className);
401
+ }
402
+ if (state.contentAfter) {
403
+ state.contentAfter.className = (0, _react.mergeClasses)(inputClassNames.contentAfter, ...contentClasses, state.contentAfter.className);
404
+ }
405
+ return state;
406
+ }; //# sourceMappingURL=useInputStyles.js.map
407
+
192
408
  //# sourceMappingURL=useInputStyles.js.map