@fluentui/react-input 0.0.0-nightlyca6ef2bc8e20220105.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.json +1044 -0
  2. package/CHANGELOG.md +429 -0
  3. package/LICENSE +15 -0
  4. package/README.md +5 -0
  5. package/Spec-styling.md +125 -0
  6. package/Spec-variants.md +99 -0
  7. package/Spec.md +262 -0
  8. package/dist/react-input.d.ts +123 -0
  9. package/lib/Input.d.ts +1 -0
  10. package/lib/Input.js +2 -0
  11. package/lib/Input.js.map +1 -0
  12. package/lib/components/Input/Input.d.ts +8 -0
  13. package/lib/components/Input/Input.js +17 -0
  14. package/lib/components/Input/Input.js.map +1 -0
  15. package/lib/components/Input/Input.types.d.ts +84 -0
  16. package/lib/components/Input/Input.types.js +2 -0
  17. package/lib/components/Input/Input.types.js.map +1 -0
  18. package/lib/components/Input/index.d.ts +5 -0
  19. package/lib/components/Input/index.js +6 -0
  20. package/lib/components/Input/index.js.map +1 -0
  21. package/lib/components/Input/renderInput.d.ts +5 -0
  22. package/lib/components/Input/renderInput.js +18 -0
  23. package/lib/components/Input/renderInput.js.map +1 -0
  24. package/lib/components/Input/useInput.d.ts +12 -0
  25. package/lib/components/Input/useInput.js +64 -0
  26. package/lib/components/Input/useInput.js.map +1 -0
  27. package/lib/components/Input/useInputStyles.d.ts +6 -0
  28. package/lib/components/Input/useInputStyles.js +296 -0
  29. package/lib/components/Input/useInputStyles.js.map +1 -0
  30. package/lib/index.d.ts +1 -0
  31. package/lib/index.js +2 -0
  32. package/lib/index.js.map +1 -0
  33. package/lib/tsdoc-metadata.json +11 -0
  34. package/lib-commonjs/Input.d.ts +1 -0
  35. package/lib-commonjs/Input.js +10 -0
  36. package/lib-commonjs/Input.js.map +1 -0
  37. package/lib-commonjs/components/Input/Input.d.ts +8 -0
  38. package/lib-commonjs/components/Input/Input.js +28 -0
  39. package/lib-commonjs/components/Input/Input.js.map +1 -0
  40. package/lib-commonjs/components/Input/Input.types.d.ts +84 -0
  41. package/lib-commonjs/components/Input/Input.types.js +6 -0
  42. package/lib-commonjs/components/Input/Input.types.js.map +1 -0
  43. package/lib-commonjs/components/Input/index.d.ts +5 -0
  44. package/lib-commonjs/components/Input/index.js +18 -0
  45. package/lib-commonjs/components/Input/index.js.map +1 -0
  46. package/lib-commonjs/components/Input/renderInput.d.ts +5 -0
  47. package/lib-commonjs/components/Input/renderInput.js +29 -0
  48. package/lib-commonjs/components/Input/renderInput.js.map +1 -0
  49. package/lib-commonjs/components/Input/useInput.d.ts +12 -0
  50. package/lib-commonjs/components/Input/useInput.js +74 -0
  51. package/lib-commonjs/components/Input/useInput.js.map +1 -0
  52. package/lib-commonjs/components/Input/useInputStyles.d.ts +6 -0
  53. package/lib-commonjs/components/Input/useInputStyles.js +306 -0
  54. package/lib-commonjs/components/Input/useInputStyles.js.map +1 -0
  55. package/lib-commonjs/index.d.ts +1 -0
  56. package/lib-commonjs/index.js +10 -0
  57. package/lib-commonjs/index.js.map +1 -0
  58. package/package.json +65 -0
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderInput = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+ /**
12
+ * Render the final JSX of Input
13
+ */
14
+
15
+
16
+ const renderInput = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state, ['input', 'contentBefore', 'contentAfter', 'root']);
21
+ return React.createElement(slots.root, { ...slotProps.root
22
+ }, React.createElement(slots.contentBefore, { ...slotProps.contentBefore
23
+ }), React.createElement(slots.input, { ...slotProps.input
24
+ }), React.createElement(slots.contentAfter, { ...slotProps.contentAfter
25
+ }));
26
+ };
27
+
28
+ exports.renderInput = renderInput;
29
+ //# sourceMappingURL=renderInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Input/renderInput.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAqB,KAArB,EAA4B,CAAC,OAAD,EAAU,eAAV,EAA2B,cAA3B,EAA2C,MAA3C,CAA5B,CAA7B;AACA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,aAAP,EAAoB,EAAA,GAAK,SAAS,CAAC;AAAf,GAApB,CADF,EAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CAFF,EAGE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,YAAP,EAAmB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAnB,CAHF,CADF;AAOD,CATM;;AAAM,OAAA,CAAA,WAAA,GAAW,WAAX","sourceRoot":""}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import type { InputProps, InputState } from './Input.types';
3
+ /**
4
+ * Create the state required to render Input.
5
+ *
6
+ * The returned state can be modified with hooks such as useInputStyles,
7
+ * before being passed to renderInput.
8
+ *
9
+ * @param props - props from this instance of Input
10
+ * @param ref - reference to `<input>` element of Input
11
+ */
12
+ export declare const useInput: (props: InputProps, ref: React.Ref<HTMLInputElement>) => InputState;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useInput = void 0;
7
+
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
+ /**
10
+ * Create the state required to render Input.
11
+ *
12
+ * The returned state can be modified with hooks such as useInputStyles,
13
+ * before being passed to renderInput.
14
+ *
15
+ * @param props - props from this instance of Input
16
+ * @param ref - reference to `<input>` element of Input
17
+ */
18
+
19
+
20
+ const useInput = (props, ref) => {
21
+ const {
22
+ size = 'medium',
23
+ appearance = 'outline',
24
+ inline = false,
25
+ onChange
26
+ } = props;
27
+ const [value, setValue] = react_utilities_1.useControllableState({
28
+ state: props.value,
29
+ defaultState: props.defaultValue,
30
+ initialState: undefined
31
+ });
32
+ const nativeProps = react_utilities_1.getPartitionedNativeProps({
33
+ props,
34
+ primarySlotTagName: 'input',
35
+ excludedPropNames: ['size', 'onChange', 'value', 'defaultValue']
36
+ });
37
+ const state = {
38
+ size,
39
+ appearance,
40
+ inline,
41
+ components: {
42
+ root: 'span',
43
+ input: 'input',
44
+ contentBefore: 'span',
45
+ contentAfter: 'span'
46
+ },
47
+ input: react_utilities_1.resolveShorthand(props.input, {
48
+ required: true,
49
+ defaultProps: {
50
+ type: 'text',
51
+ ref,
52
+ ...nativeProps.primary
53
+ }
54
+ }),
55
+ contentAfter: react_utilities_1.resolveShorthand(props.contentAfter),
56
+ contentBefore: react_utilities_1.resolveShorthand(props.contentBefore),
57
+ root: react_utilities_1.resolveShorthand(props.root, {
58
+ required: true,
59
+ defaultProps: nativeProps.root
60
+ })
61
+ };
62
+ state.input.value = value;
63
+ state.input.onChange = react_utilities_1.useEventCallback(ev => {
64
+ const newValue = ev.target.value;
65
+ onChange === null || onChange === void 0 ? void 0 : onChange(ev, {
66
+ value: newValue
67
+ });
68
+ setValue(newValue);
69
+ });
70
+ return state;
71
+ };
72
+
73
+ exports.useInput = useInput;
74
+ //# sourceMappingURL=useInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Input/useInput.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAA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CAAA,gBAAA,CAAiB,KAAK,CAAC,aAAvB,CAnBS;AAoBxB,IAAA,IAAI,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,IAAvB,EAA6B;AACjC,MAAA,QAAQ,EAAE,IADuB;AAEjC,MAAA,YAAY,EAAE,WAAW,CAAC;AAFO,KAA7B;AApBkB,GAA1B;AA0BA,EAAA,KAAK,CAAC,KAAN,CAAY,KAAZ,GAAoB,KAApB;AACA,EAAA,KAAK,CAAC,KAAN,CAAY,QAAZ,GAAuB,iBAAA,CAAA,gBAAA,CAAiB,EAAE,IAAG;AAC3C,UAAM,QAAQ,GAAG,EAAE,CAAC,MAAH,CAAU,KAA3B;AACA,IAAA,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAQ,KAAA,CAAR,GAAA,QAAQ,CAAG,EAAH,EAAO;AAAE,MAAA,KAAK,EAAE;AAAT,KAAP,CAAR;AACA,IAAA,QAAQ,CAAC,QAAD,CAAR;AACD,GAJsB,CAAvB;AAMA,SAAO,KAAP;AACD,CAjDM;;AAAM,OAAA,CAAA,QAAA,GAAQ,QAAR","sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ import type { InputState } from './Input.types';
2
+ export declare const inputClassName = "fui-Input";
3
+ /**
4
+ * Apply styling to the Input slots based on the state
5
+ */
6
+ export declare const useInputStyles: (state: InputState) => InputState;
@@ -0,0 +1,306 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useInputStyles = exports.inputClassName = void 0;
7
+
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
+
10
+ exports.inputClassName = 'fui-Input'; // TODO(sharing) use theme values once available
11
+
12
+ const horizontalSpacing = {
13
+ xxs: '2px',
14
+ xs: '4px',
15
+ sNudge: '6px',
16
+ s: '8px',
17
+ mNudge: '10px',
18
+ m: '12px'
19
+ };
20
+ const motionDurations = {
21
+ ultraFast: '0.05s',
22
+ normal: '0.2s'
23
+ };
24
+ const motionCurves = {
25
+ accelerateMid: 'cubic-bezier(0.7,0,1,0.5)',
26
+ decelerateMid: 'cubic-bezier(0.1,0.9,0.2,1)'
27
+ };
28
+ const contentSizes = {
29
+ // TODO(sharing) shouldn't these be in the theme?
30
+ body1: theme => ({
31
+ fontSize: theme.fontSizeBase300,
32
+ lineHeight: theme.lineHeightBase300
33
+ }),
34
+ caption1: theme => ({
35
+ fontSize: theme.fontSizeBase200,
36
+ lineHeight: theme.lineHeightBase200
37
+ }),
38
+ // eslint-disable-next-line @typescript-eslint/naming-convention
39
+ 400: theme => ({
40
+ fontSize: theme.fontSizeBase400,
41
+ lineHeight: theme.lineHeightBase400
42
+ })
43
+ }; // TODO(sharing) should these be shared somewhere?
44
+
45
+ const fieldHeights = {
46
+ small: '24px',
47
+ medium: '32px',
48
+ large: '40px'
49
+ };
50
+
51
+ const useRootStyles = /*#__PURE__*/react_make_styles_1.__styles({
52
+ "base": {
53
+ "mc9l5x": "f22iagw",
54
+ "Bt984gj": "f122n59",
55
+ "Eh141a": "flvyvdh",
56
+ "i8kkvl": "f16mnhsx",
57
+ "Belr9w4": "fbi42co",
58
+ "Bahqtrf": "fk6fouc",
59
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
60
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
61
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
62
+ "Btl43ni": ["fyu767a", "f1jar5jt"],
63
+ "qhf8xq": "f10pi13n",
64
+ "B7ck84d": "f1ewtqcl"
65
+ },
66
+ "interactive": {
67
+ "oqd9ik": "ffdc0f3",
68
+ "Bs6t6z0": "fqc6z8f",
69
+ "Hdbjpj": "f11ef69",
70
+ "jc51t6": ["f383sj6", "fpmdmpy"],
71
+ "Bj55yzk": "fqmzrrm",
72
+ "cnmfks": ["fpmdmpy", "f383sj6"],
73
+ "mpb1vu": "f1iv82i4",
74
+ "B9nohqn": ["f1j2a01o", "fvxed1z"],
75
+ "frdscb": ["fvxed1z", "f1j2a01o"],
76
+ "B3zxwmv": "f1gw3il9",
77
+ "J4s2b0": "fd0py6g",
78
+ "Bk8j60v": "f1ta67ae",
79
+ "B5pt6m4": "fabrkco",
80
+ "xn0juu": "f1lmmjng",
81
+ "wbfbqe": "fopw4to",
82
+ "mafdb0": "f1dw3w9y",
83
+ "s1xtto": "f1n2ytmg",
84
+ "Hbcoss": "fnqdfvx",
85
+ "lq1u8j": "fbqc2tv",
86
+ "B37x0ls": "fvvig05",
87
+ "H8rp7s": "f1nwpqpa",
88
+ "uvoyur": "f1e6xsgv"
89
+ },
90
+ "small": {
91
+ "sshi5w": "f1pha7fy",
92
+ "z8tnut": "f1g0x7ka",
93
+ "z189sj": ["f1sgzk6v", "f1bg5zqg"],
94
+ "Byoj8tv": "f1qch9an",
95
+ "uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
96
+ "Be2twd7": "fy9rknc",
97
+ "Bg96gwp": "fwrc4pm"
98
+ },
99
+ "medium": {
100
+ "sshi5w": "f1nxs5xn",
101
+ "z8tnut": "f1g0x7ka",
102
+ "z189sj": ["f81rol6", "frdkuqy"],
103
+ "Byoj8tv": "f1qch9an",
104
+ "uwmqm3": ["frdkuqy", "f81rol6"],
105
+ "Be2twd7": "fkhj508",
106
+ "Bg96gwp": "f1i3iumi"
107
+ },
108
+ "large": {
109
+ "sshi5w": "f1w5jphr",
110
+ "z8tnut": "f1g0x7ka",
111
+ "z189sj": ["f11qrl6u", "fjlbh76"],
112
+ "Byoj8tv": "f1qch9an",
113
+ "uwmqm3": ["fjlbh76", "f11qrl6u"],
114
+ "Be2twd7": "fod5ikn",
115
+ "Bg96gwp": "faaz57k",
116
+ "i8kkvl": "fgfbwa2",
117
+ "Belr9w4": "f1y3hx6l"
118
+ },
119
+ "inline": {
120
+ "mc9l5x": "ftuwxu6"
121
+ },
122
+ "outline": {
123
+ "De3pzq": "fxugw4r",
124
+ "B4j52fo": "f5ogflp",
125
+ "Bekrc4i": ["f1hqa2wf", "finvdd3"],
126
+ "Bn0qgzm": "f1f09k3d",
127
+ "ibv6hh": ["finvdd3", "f1hqa2wf"],
128
+ "icvyot": "fzkkow9",
129
+ "vrafjx": ["fcdblym", "fjik90z"],
130
+ "oivjwe": "fg706s2",
131
+ "wvpqe5": ["fjik90z", "fcdblym"],
132
+ "g2u3we": "fj3muxo",
133
+ "h3c5rm": ["f1akhkt", "f1lxtadh"],
134
+ "B9xav0g": "f1c1zstj",
135
+ "zhjwy3": ["f1lxtadh", "f1akhkt"]
136
+ },
137
+ "outlineInteractive": {
138
+ "Bgoe8wy": "fvcxoqz",
139
+ "Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
140
+ "oetu4i": "f1l4zc64",
141
+ "gg5e9n": ["f1m52nbi", "f1ub3y4t"],
142
+ "Drbcw7": "f8vnjqi",
143
+ "udz0bu": ["fz1etlk", "f1hc16gm"],
144
+ "Be8ivqh": "f1klwx88",
145
+ "ofdepl": ["f1hc16gm", "fz1etlk"]
146
+ },
147
+ "underline": {
148
+ "De3pzq": "f1c21dwh",
149
+ "Bbmb7ep": ["f1krrbdw", "f1deotkl"],
150
+ "Beyfa6y": ["f1deotkl", "f1krrbdw"],
151
+ "B7oj6ja": ["f10ostut", "f1ozlkrg"],
152
+ "Btl43ni": ["f1ozlkrg", "f10ostut"],
153
+ "Bn0qgzm": "f1f09k3d",
154
+ "oivjwe": "fg706s2",
155
+ "B9xav0g": "f1c1zstj"
156
+ },
157
+ "underlineInteractive": {
158
+ "oetu4i": "f1l4zc64",
159
+ "Be8ivqh": "f1klwx88",
160
+ "frdscb": ["fqvcdsd", "f9cg6ix"],
161
+ "B9nohqn": ["f9cg6ix", "fqvcdsd"],
162
+ "B1dhsta": ["f1pvm60u", "f179ivkp"],
163
+ "Bjdmjzx": ["f179ivkp", "f1pvm60u"]
164
+ },
165
+ "filled": {
166
+ "E5pizo": "fyed02w",
167
+ "B4j52fo": "f5ogflp",
168
+ "Bekrc4i": ["f1hqa2wf", "finvdd3"],
169
+ "Bn0qgzm": "f1f09k3d",
170
+ "ibv6hh": ["finvdd3", "f1hqa2wf"],
171
+ "icvyot": "fzkkow9",
172
+ "vrafjx": ["fcdblym", "fjik90z"],
173
+ "oivjwe": "fg706s2",
174
+ "wvpqe5": ["fjik90z", "fcdblym"],
175
+ "g2u3we": "fghlq4f",
176
+ "h3c5rm": ["f1gn591s", "fjscplz"],
177
+ "B9xav0g": "fb073pr",
178
+ "zhjwy3": ["fjscplz", "f1gn591s"]
179
+ },
180
+ "filledInteractive": {
181
+ "q7v0qe": "ftmjh5b",
182
+ "kmh5ft": ["f17blpuu", "fsrcdbj"],
183
+ "nagaa4": "f1tpwn32",
184
+ "B1yhkcb": ["fsrcdbj", "f17blpuu"]
185
+ },
186
+ "filledDarker": {
187
+ "De3pzq": "f16xq7d1"
188
+ },
189
+ "filledLighter": {
190
+ "De3pzq": "fxugw4r"
191
+ },
192
+ "disabled": {
193
+ "Bceei9c": "fdrzuqr",
194
+ "B4j52fo": "f5ogflp",
195
+ "Bekrc4i": ["f1hqa2wf", "finvdd3"],
196
+ "Bn0qgzm": "f1f09k3d",
197
+ "ibv6hh": ["finvdd3", "f1hqa2wf"],
198
+ "icvyot": "fzkkow9",
199
+ "vrafjx": ["fcdblym", "fjik90z"],
200
+ "oivjwe": "fg706s2",
201
+ "wvpqe5": ["fjik90z", "fcdblym"],
202
+ "g2u3we": "f1jj8ep1",
203
+ "h3c5rm": ["f15xbau", "fy0fskl"],
204
+ "B9xav0g": "f4ikngz",
205
+ "zhjwy3": ["fy0fskl", "f15xbau"],
206
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
207
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
208
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
209
+ "Btl43ni": ["fyu767a", "f1jar5jt"]
210
+ }
211
+ }, {
212
+ "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".flvyvdh{-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}", ".f16mnhsx{-webkit-column-gap:2px;column-gap:2px;}", ".fbi42co{row-gap:2px;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".f1ewtqcl{box-sizing:border-box;}", ".ffdc0f3:after{box-sizing:border-box;}", ".fqc6z8f:after{content:\"\";}", ".f11ef69:after{position:absolute;}", ".f383sj6:after{left:-1px;}", ".fpmdmpy:after{right:-1px;}", ".fqmzrrm:after{bottom:-1px;}", ".f1iv82i4:after{height:-webkit-max(2px, var(--borderRadiusMedium));height:-moz-max(2px, var(--borderRadiusMedium));height:max(2px, var(--borderRadiusMedium));}", ".f1j2a01o:after{border-bottom-left-radius:var(--borderRadiusMedium);}", ".fvxed1z:after{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f1gw3il9:after{border-bottom-width:2px;}", ".fd0py6g:after{border-bottom-style:solid;}", ".f1ta67ae:after{border-bottom-color:var(--colorCompoundBrandStroke);}", ".fabrkco:after{-webkit-clip-path:inset(calc(100% - 2px) 0 0 0);clip-path:inset(calc(100% - 2px) 0 0 0);}", ".f1lmmjng:after{-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);transform:scaleX(0);}", ".fopw4to:after{transition-property:transform;}", ".f1dw3w9y:after{transition-duration:0.05s;}", ".f1n2ytmg:after{transition-delay:cubic-bezier(0.7,0,1,0.5);}", ".f1pha7fy{min-height:24px;}", ".f1g0x7ka{padding-top:0;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1qch9an{padding-bottom:0;}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f1nxs5xn{min-height:32px;}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1w5jphr{min-height:40px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".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;}", ".fqvcdsd:after{border-bottom-right-radius:0;}", ".f9cg6ix:after{border-bottom-left-radius:0;}", ".f1pvm60u:after{border-top-right-radius:0;}", ".f179ivkp:after{border-top-left-radius:0;}", ".fyed02w{box-shadow:var(--shadow2);}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f16xq7d1{background-color:var(--colorNeutralBackground3);}", ".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);}"],
213
+ "w": [".fnqdfvx:focus-within:after{-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);}", ".fbqc2tv:focus-within:after{transition-property:transform;}", ".fvvig05:focus-within:after{transition-duration:0.2s;}", ".f1nwpqpa:focus-within:after{transition-delay:cubic-bezier(0.1,0.9,0.2,1);}", ".f1e6xsgv:focus-within:active:after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],
214
+ "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,:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}", ".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}", ".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}", ".f17blpuu:hover,:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}"],
215
+ "a": [".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}", ".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f1hc16gm:active,:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}", ".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}", ".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fz1etlk:active,:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}"]
216
+ });
217
+
218
+ const useInputElementStyles = /*#__PURE__*/react_make_styles_1.__styles({
219
+ "base": {
220
+ "B7ck84d": "f1ewtqcl",
221
+ "Bh6795r": "fqerorx",
222
+ "icvyot": "f1ern45e",
223
+ "vrafjx": ["f1n71otn", "f1deefiw"],
224
+ "oivjwe": "f1h8hb77",
225
+ "wvpqe5": ["f1deefiw", "f1n71otn"],
226
+ "z8tnut": "f1g0x7ka",
227
+ "z189sj": ["f12huiiw", "f161knb0"],
228
+ "Byoj8tv": "f1qch9an",
229
+ "uwmqm3": ["f161knb0", "f12huiiw"],
230
+ "sj55zd": "f19n0e5",
231
+ "De3pzq": "f3rmtva",
232
+ "yvdlaj": "fwyc1cq",
233
+ "B3o7kgh": "f13ta7ih",
234
+ "B486eqv": "f2hkw1w"
235
+ },
236
+ "small": {
237
+ "Be2twd7": "fy9rknc",
238
+ "Bg96gwp": "fwrc4pm"
239
+ },
240
+ "medium": {
241
+ "Be2twd7": "fkhj508",
242
+ "Bg96gwp": "f1i3iumi"
243
+ },
244
+ "large": {
245
+ "Be2twd7": "fod5ikn",
246
+ "Bg96gwp": "faaz57k",
247
+ "z8tnut": "f1g0x7ka",
248
+ "z189sj": ["f1sgzk6v", "f1bg5zqg"],
249
+ "Byoj8tv": "f1qch9an",
250
+ "uwmqm3": ["f1bg5zqg", "f1sgzk6v"]
251
+ },
252
+ "disabled": {
253
+ "sj55zd": "f1s2aq7o",
254
+ "De3pzq": "f1c21dwh",
255
+ "Bceei9c": "fdrzuqr",
256
+ "yvdlaj": "fahhnxm"
257
+ }
258
+ }, {
259
+ "d": [".f1ewtqcl{box-sizing:border-box;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1g0x7ka{padding-top:0;}", ".f12huiiw{padding-right:2px;}", ".f161knb0{padding-left:2px;}", ".f1qch9an{padding-bottom:0;}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f3rmtva{background-color:transparent;}", ".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}", ".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}", ".f13ta7ih::-webkit-input-placeholder{opacity:1;}", ".f13ta7ih::-moz-placeholder{opacity:1;}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".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);}"],
260
+ "i": [".f2hkw1w:focus-visible{outline-style:none;}"]
261
+ });
262
+
263
+ const useContentStyles = /*#__PURE__*/react_make_styles_1.__styles({
264
+ "base": {
265
+ "B7ck84d": "f1ewtqcl",
266
+ "sj55zd": "f11d4kpn",
267
+ "clhimo": "fyuhxbn"
268
+ },
269
+ "disabled": {
270
+ "sj55zd": "f1s2aq7o"
271
+ }
272
+ }, {
273
+ "d": [".f1ewtqcl{box-sizing:border-box;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".fyuhxbn>svg{display:block;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]
274
+ });
275
+ /**
276
+ * Apply styling to the Input slots based on the state
277
+ */
278
+
279
+
280
+ const useInputStyles = state => {
281
+ const {
282
+ size,
283
+ appearance
284
+ } = state;
285
+ const disabled = state.input.disabled;
286
+ const filled = appearance.startsWith('filled');
287
+ const rootStyles = useRootStyles();
288
+ const inputStyles = useInputElementStyles();
289
+ const contentStyles = useContentStyles();
290
+ state.root.className = react_make_styles_1.mergeClasses(exports.inputClassName, rootStyles.base, rootStyles[size], rootStyles[appearance], !disabled && rootStyles.interactive, !disabled && appearance === 'outline' && rootStyles.outlineInteractive, !disabled && appearance === 'underline' && rootStyles.underlineInteractive, !disabled && filled && rootStyles.filledInteractive, state.inline && rootStyles.inline, filled && rootStyles.filled, disabled && rootStyles.disabled, state.root.className);
291
+ state.input.className = react_make_styles_1.mergeClasses(inputStyles.base, inputStyles[size], disabled && inputStyles.disabled, state.input.className);
292
+ const contentClasses = [contentStyles.base, disabled && contentStyles.disabled];
293
+
294
+ if (state.contentBefore) {
295
+ state.contentBefore.className = react_make_styles_1.mergeClasses(...contentClasses, state.contentBefore.className);
296
+ }
297
+
298
+ if (state.contentAfter) {
299
+ state.contentAfter.className = react_make_styles_1.mergeClasses(...contentClasses, state.contentAfter.className);
300
+ }
301
+
302
+ return state;
303
+ };
304
+
305
+ exports.useInputStyles = useInputStyles;
306
+ //# sourceMappingURL=useInputStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Input/useInputStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAIa,OAAA,CAAA,cAAA,GAAiB,WAAjB,C,CAEb;;AACA,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C,aAAV,EAAyB;AACvB,IAAA,KAAK,CAAC,aAAN,CAAoB,SAApB,GAAgC,mBAAA,CAAA,YAAA,CAAa,GAAG,cAAhB,EAAgC,KAAK,CAAC,aAAN,CAAoB,SAApD,CAAhC;AACD;;AACD,MAAI,KAAK,CAAC,YAAV,EAAwB;AACtB,IAAA,KAAK,CAAC,YAAN,CAAmB,SAAnB,GAA+B,mBAAA,CAAA,YAAA,CAAa,GAAG,cAAhB,EAAgC,KAAK,CAAC,YAAN,CAAmB,SAAnD,CAA/B;AACD;;AAED,SAAO,KAAP;AACD,CAxCM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
@@ -0,0 +1 @@
1
+ export * from './Input';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./Input"), exports);
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourceRoot":""}
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@fluentui/react-input",
3
+ "version": "0.0.0-nightlyca6ef2bc8e20220105.1",
4
+ "description": "Fluent UI React Input component",
5
+ "main": "lib-commonjs/index.js",
6
+ "module": "lib/index.js",
7
+ "typings": "lib/index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/microsoft/fluentui"
12
+ },
13
+ "license": "MIT",
14
+ "scripts": {
15
+ "build": "just-scripts build",
16
+ "bundle-size": "bundle-size measure",
17
+ "clean": "just-scripts clean",
18
+ "code-style": "just-scripts code-style",
19
+ "just": "just-scripts",
20
+ "lint": "just-scripts lint",
21
+ "start": "yarn storybook",
22
+ "test": "jest --passWithNoTests",
23
+ "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-input/src && yarn docs",
25
+ "build-storybook": "just-scripts storybook:build",
26
+ "storybook": "start-storybook",
27
+ "type-check": "tsc -b tsconfig.json"
28
+ },
29
+ "devDependencies": {
30
+ "@fluentui/babel-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
31
+ "@fluentui/eslint-plugin": "*",
32
+ "@fluentui/jest-serializer-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
33
+ "@fluentui/react-conformance": "*",
34
+ "@fluentui/react-conformance-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
35
+ "@fluentui/scripts": "^1.0.0",
36
+ "@types/enzyme": "3.10.3",
37
+ "@types/enzyme-adapter-react-16": "1.0.3",
38
+ "@types/react": "16.9.42",
39
+ "@types/react-dom": "16.9.10",
40
+ "@types/react-test-renderer": "^16.0.0",
41
+ "enzyme": "~3.10.0",
42
+ "enzyme-adapter-react-16": "^1.15.0",
43
+ "react": "16.8.6",
44
+ "react-dom": "16.8.6",
45
+ "react-test-renderer": "^16.3.0"
46
+ },
47
+ "dependencies": {
48
+ "@fluentui/react-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
49
+ "@fluentui/react-utilities": "0.0.0-nightlyca6ef2bc8e20220105.1",
50
+ "tslib": "^2.1.0"
51
+ },
52
+ "peerDependencies": {
53
+ "@types/react": ">=16.8.0 <18.0.0",
54
+ "@types/react-dom": ">=16.8.0 <18.0.0",
55
+ "react": ">=16.8.0 <18.0.0",
56
+ "react-dom": ">=16.8.0 <18.0.0"
57
+ },
58
+ "beachball": {
59
+ "disallowedChangeTypes": [
60
+ "major",
61
+ "minor",
62
+ "patch"
63
+ ]
64
+ }
65
+ }