@fluentui/react-input 9.74.5-experimental.tabster-v9.20260804-bb909442fe.0 → 9.74.7-experimental.cli-api.20261006-ccaa611d58.0

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 (37) hide show
  1. package/CHANGELOG.md +23 -10
  2. package/dist/index.d.cts +140 -0
  3. package/dist/metadata/api/api-root.json +1 -0
  4. package/dist/metadata/index.json +1 -0
  5. package/lib/Input.js +1 -1
  6. package/lib/Input.js.map +1 -1
  7. package/lib/components/Input/Input.js +5 -5
  8. package/lib/components/Input/Input.js.map +1 -1
  9. package/lib/components/Input/index.js +4 -4
  10. package/lib/components/Input/index.js.map +1 -1
  11. package/lib/components/Input/renderInput.js +1 -1
  12. package/lib/components/Input/useInput.js +3 -3
  13. package/lib/components/Input/useInputStyles.styles.js +2 -2
  14. package/lib/components/Input/useInputStyles.styles.js.map +1 -1
  15. package/lib/components/Input/useInputStyles.styles.raw.js +2 -2
  16. package/lib/index.js +1 -1
  17. package/lib/index.js.map +1 -1
  18. package/lib-commonjs/{Input.js → Input.cjs} +1 -1
  19. package/lib-commonjs/{Input.js.map → Input.cjs.map} +1 -1
  20. package/lib-commonjs/components/Input/{Input.js → Input.cjs} +3 -3
  21. package/lib-commonjs/components/Input/{Input.js.map → Input.cjs.map} +1 -1
  22. package/lib-commonjs/components/Input/{index.js → index.cjs} +4 -4
  23. package/lib-commonjs/components/Input/{index.js.map → index.cjs.map} +1 -1
  24. package/lib-commonjs/components/Input/useInputStyles.styles.cjs.map +1 -0
  25. package/lib-commonjs/{index.js → index.cjs} +1 -1
  26. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  27. package/package.json +28 -16
  28. package/lib-commonjs/components/Input/useInputStyles.styles.js.map +0 -1
  29. /package/lib-commonjs/components/Input/{Input.types.js → Input.types.cjs} +0 -0
  30. /package/lib-commonjs/components/Input/{Input.types.js.map → Input.types.cjs.map} +0 -0
  31. /package/lib-commonjs/components/Input/{renderInput.js → renderInput.cjs} +0 -0
  32. /package/lib-commonjs/components/Input/{renderInput.js.map → renderInput.cjs.map} +0 -0
  33. /package/lib-commonjs/components/Input/{useInput.js → useInput.cjs} +0 -0
  34. /package/lib-commonjs/components/Input/{useInput.js.map → useInput.cjs.map} +0 -0
  35. /package/lib-commonjs/components/Input/{useInputStyles.styles.js → useInputStyles.styles.cjs} +0 -0
  36. /package/lib-commonjs/components/Input/{useInputStyles.styles.raw.js → useInputStyles.styles.raw.cjs} +0 -0
  37. /package/lib-commonjs/components/Input/{useInputStyles.styles.raw.js.map → useInputStyles.styles.raw.cjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,22 +1,35 @@
1
1
  # Change Log - @fluentui/react-input
2
2
 
3
- This log was last generated on Tue, 04 Aug 2026 15:10:30 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Tue, 06 Oct 2026 11:40:23 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.74.5-experimental.tabster-v9.20260804-bb909442fe.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-input_v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0)
7
+ ## [9.74.7-experimental.cli-api.20261006-ccaa611d58.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-input_v9.74.7-experimental.cli-api.20261006-ccaa611d58.0)
8
8
 
9
- Tue, 04 Aug 2026 15:10:30 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-input_v9.8.5..@fluentui/react-input_v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0)
9
+ Tue, 06 Oct 2026 11:40:23 GMT
11
10
 
12
11
  ### Changes
13
12
 
14
- - Release 9.74.5-experimental.tabster-v9.20260804-bb909442fe ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-field to v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0 ([commit](https://github.com/microsoft/fluentui/commit/7ace6efd4ac88a8dc271641538056e6fc6927456) by beachball)
16
- - Bump @fluentui/react-jsx-runtime to v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0 ([commit](https://github.com/microsoft/fluentui/commit/7ace6efd4ac88a8dc271641538056e6fc6927456) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0 ([commit](https://github.com/microsoft/fluentui/commit/7ace6efd4ac88a8dc271641538056e6fc6927456) by beachball)
18
- - Bump @fluentui/react-theme to v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0 ([commit](https://github.com/microsoft/fluentui/commit/7ace6efd4ac88a8dc271641538056e6fc6927456) by beachball)
19
- - Bump @fluentui/react-utilities to v9.74.5-experimental.tabster-v9.20260804-bb909442fe.0 ([commit](https://github.com/microsoft/fluentui/commit/7ace6efd4ac88a8dc271641538056e6fc6927456) by beachball)
13
+ - Release 9.74.7-experimental.cli-api.20261006-ccaa611d58 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
+ - Bump @fluentui/react-field to v9.74.7-experimental.cli-api.20261006-ccaa611d58.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
+ - Bump @fluentui/react-jsx-runtime to v9.74.7-experimental.cli-api.20261006-ccaa611d58.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v9.74.7-experimental.cli-api.20261006-ccaa611d58.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-theme to v9.74.7-experimental.cli-api.20261006-ccaa611d58.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-utilities to v9.74.7-experimental.cli-api.20261006-ccaa611d58.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+
20
+ ## [9.8.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-input_v9.8.6)
21
+
22
+ Tue, 11 Aug 2026 17:20:14 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-input_v9.8.5..@fluentui/react-input_v9.8.6)
24
+
25
+ ### Patches
26
+
27
+ - Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
28
+ - Bump @fluentui/react-field to v9.5.4 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
29
+ - Bump @fluentui/react-jsx-runtime to v9.4.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
30
+ - Bump @fluentui/react-shared-contexts to v9.26.3 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
31
+ - Bump @fluentui/react-theme to v9.2.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
32
+ - Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
33
 
21
34
  ## [9.8.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-input_v9.8.5)
22
35
 
@@ -0,0 +1,140 @@
1
+ import type { ComponentProps } from '@fluentui/react-utilities';
2
+ import type { ComponentState } from '@fluentui/react-utilities';
3
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
+ import type { JSXElement } from '@fluentui/react-utilities';
5
+ import type * as React_2 from 'react';
6
+ import type { Slot } from '@fluentui/react-utilities';
7
+ import type { SlotClassNames } from '@fluentui/react-utilities';
8
+
9
+ /**
10
+ * The Input component allows people to enter and edit text.
11
+ */
12
+ export declare const Input: ForwardRefComponent<InputProps>;
13
+
14
+ /**
15
+ * Input props without design-specific props (appearance, size).
16
+ * Use this when building a base input that is unstyled or uses a custom design system.
17
+ */
18
+ export declare type InputBaseProps = Omit<InputProps, 'appearance' | 'size'>;
19
+
20
+ /**
21
+ * Input state without design-specific state (appearance, size).
22
+ */
23
+ export declare type InputBaseState = Omit<InputState, 'appearance' | 'size'>;
24
+
25
+ export declare const inputClassNames: SlotClassNames<InputSlots>;
26
+
27
+ /**
28
+ * Data passed to the `onChange` callback when a user changes the input's value.
29
+ */
30
+ export declare type InputOnChangeData = {
31
+ /** Updated input value from the user */
32
+ value: string;
33
+ };
34
+
35
+ export declare type InputProps = Omit<ComponentProps<Partial<InputSlots>, 'input'>, 'children' | 'defaultValue' | 'onChange' | 'size' | 'type' | 'value'> & {
36
+ /** Input can't have children. */
37
+ children?: never;
38
+ /**
39
+ * Size of the input (changes the font size and spacing).
40
+ * @default 'medium'
41
+ */
42
+ size?: 'small' | 'medium' | 'large';
43
+ /**
44
+ * Controls the colors and borders of the input.
45
+ * @default 'outline'
46
+ *
47
+ * Note: 'filled-darker-shadow' and 'filled-lighter-shadow' are deprecated and will be removed in the future.
48
+ */
49
+ appearance?: 'outline' | 'underline' | 'filled-darker' | 'filled-lighter' | 'filled-darker-shadow' | 'filled-lighter-shadow';
50
+ /**
51
+ * Default value of the input. Provide this if the input should be an uncontrolled component
52
+ * which tracks its current state internally; otherwise, use `value`.
53
+ *
54
+ * (This prop is mutually exclusive with `value`.)
55
+ */
56
+ defaultValue?: string;
57
+ /**
58
+ * Current value of the input. Provide this if the input is a controlled component where you
59
+ * are maintaining its current state; otherwise, use `defaultValue`.
60
+ *
61
+ * (This prop is mutually exclusive with `defaultValue`.)
62
+ */
63
+ value?: string;
64
+ /**
65
+ * Called when the user changes the input's value.
66
+ */
67
+ onChange?: (ev: React_2.ChangeEvent<HTMLInputElement>, data: InputOnChangeData) => void;
68
+ /**
69
+ * An input can have different text-based [types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#input_types)
70
+ * based on the type of value the user will enter.
71
+ *
72
+ * Note that no custom styling is currently applied for alternative types, and some types may
73
+ * activate browser-default styling which does not match the Fluent design language.
74
+ *
75
+ * (For non-text-based types such as `button` or `checkbox`, use the appropriate component or an
76
+ * `<input>` element instead.)
77
+ * @default 'text'
78
+ */
79
+ type?: 'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'number' | 'time' | 'week';
80
+ };
81
+
82
+ export declare type InputSlots = {
83
+ /**
84
+ * Wrapper element which visually appears to be the input and is used for borders, focus styling, etc.
85
+ * (A wrapper is needed to properly position `contentBefore` and `contentAfter` relative to `input`.)
86
+ *
87
+ * The root slot receives the `className` and `style` specified directly on the `<Input>`.
88
+ * All other top-level native props will be applied to the primary slot, `input`.
89
+ */
90
+ root: NonNullable<Slot<'span'>>;
91
+ /**
92
+ * The actual `<input>` element. `type="text"` will be automatically applied unless overridden.
93
+ *
94
+ * This is the "primary" slot, so native props specified directly on the `<Input>` will go here
95
+ * (except `className` and `style`, which go to the `root` slot). The top-level `ref` will
96
+ * also go here.
97
+ */
98
+ input: NonNullable<Slot<'input'>>;
99
+ /** Element before the input text, within the input border */
100
+ contentBefore?: Slot<'span'>;
101
+ /** Element after the input text, within the input border */
102
+ contentAfter?: Slot<'span'>;
103
+ };
104
+
105
+ /**
106
+ * State used in rendering Input.
107
+ */
108
+ export declare type InputState = Required<Pick<InputProps, 'appearance' | 'size'>> & ComponentState<InputSlots>;
109
+
110
+ /**
111
+ * Render the final JSX of Input
112
+ */
113
+ export declare const renderInput_unstable: (state: InputBaseState) => JSXElement;
114
+
115
+ /**
116
+ * Create the state required to render Input.
117
+ *
118
+ * The returned state can be modified with hooks such as useInputStyles_unstable,
119
+ * before being passed to renderInput_unstable.
120
+ *
121
+ * @param props - props from this instance of Input
122
+ * @param ref - reference to `<input>` element of Input
123
+ */
124
+ export declare const useInput_unstable: (props: InputProps, ref: React_2.Ref<HTMLInputElement>) => InputState;
125
+
126
+ /**
127
+ * Base hook for Input component, which manages state related to controlled/uncontrolled value,
128
+ * slot structure, and onChange handling. This hook excludes design-specific props (appearance, size).
129
+ *
130
+ * @param props - User provided props to the Input component.
131
+ * @param ref - User provided ref to be passed to the Input component.
132
+ */
133
+ export declare const useInputBase_unstable: (props: InputBaseProps, ref: React_2.Ref<HTMLInputElement>) => InputBaseState;
134
+
135
+ /**
136
+ * Apply styling to the Input slots based on the state
137
+ */
138
+ export declare const useInputStyles_unstable: (state: InputState) => InputState;
139
+
140
+ export { }