@fluentui/react-tag-picker 9.0.4 → 9.1.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,42 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-tag-picker
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 06 Jun 2024 15:22:22 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.1.0)
|
|
8
|
+
|
|
9
|
+
Thu, 06 Jun 2024 15:22:22 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.0.4..@fluentui/react-tag-picker_v9.1.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- feat: adds text property to TagPickerOption ([PR #31474](https://github.com/microsoft/fluentui/pull/31474) by bernardo.sunderhus@gmail.com)
|
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.39 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
16
|
+
- Bump @fluentui/react-utilities to v9.18.10 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
17
|
+
- Bump @fluentui/react-portal to v9.4.27 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
18
|
+
- Bump @fluentui/react-tabster to v9.21.5 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
19
|
+
- Bump @fluentui/react-aria to v9.12.0 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
20
|
+
- Bump @fluentui/react-combobox to v9.11.7 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
21
|
+
- Bump @fluentui/react-tags to v9.3.8 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
22
|
+
- Bump @fluentui/react-context-selector to v9.1.61 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
23
|
+
- Bump @fluentui/react-positioning to v9.15.3 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
24
|
+
- Bump @fluentui/react-field to v9.1.67 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
25
|
+
|
|
7
26
|
## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.0.4)
|
|
8
27
|
|
|
9
|
-
Thu, 23 May 2024
|
|
28
|
+
Thu, 23 May 2024 08:02:49 GMT
|
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.0.3..@fluentui/react-tag-picker_v9.0.4)
|
|
11
30
|
|
|
12
31
|
### Patches
|
|
13
32
|
|
|
14
33
|
- chore: replace usage of .shorthands() in styles ([PR #31432](https://github.com/microsoft/fluentui/pull/31432) by olfedias@microsoft.com)
|
|
15
|
-
- Bump @fluentui/react-portal to v9.4.26 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
16
|
-
- Bump @fluentui/react-tabster to v9.21.4 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
17
|
-
- Bump @fluentui/react-aria to v9.11.4 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
18
|
-
- Bump @fluentui/react-combobox to v9.11.6 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
19
|
-
- Bump @fluentui/react-tags to v9.3.7 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
20
|
-
- Bump @fluentui/react-positioning to v9.15.2 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
34
|
+
- Bump @fluentui/react-portal to v9.4.26 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
35
|
+
- Bump @fluentui/react-tabster to v9.21.4 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
36
|
+
- Bump @fluentui/react-aria to v9.11.4 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
37
|
+
- Bump @fluentui/react-combobox to v9.11.6 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
38
|
+
- Bump @fluentui/react-tags to v9.3.7 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
39
|
+
- Bump @fluentui/react-positioning to v9.15.2 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
21
40
|
|
|
22
41
|
## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.0.3)
|
|
23
42
|
|
package/dist/index.d.ts
CHANGED
|
@@ -266,9 +266,25 @@ export declare type TagPickerOptionGroupState = OptionGroupState;
|
|
|
266
266
|
* TagPickerOption Props
|
|
267
267
|
*/
|
|
268
268
|
export declare type TagPickerOptionProps = ComponentProps<TagPickerOptionSlots> & {
|
|
269
|
-
children: React_2.ReactNode;
|
|
270
269
|
value: string;
|
|
271
|
-
}
|
|
270
|
+
} & ({
|
|
271
|
+
/**
|
|
272
|
+
* An optional override the string value of the Option's display text,
|
|
273
|
+
* defaulting to the Option's child content.
|
|
274
|
+
* This is used as the Dropdown button's or Combobox input's value when the option is selected,
|
|
275
|
+
* and as the comparison for type-to-find keyboard functionality.
|
|
276
|
+
*/
|
|
277
|
+
text?: string;
|
|
278
|
+
children: string;
|
|
279
|
+
} | {
|
|
280
|
+
/**
|
|
281
|
+
* The string value of the Option's display text when the Option's children are not a string.
|
|
282
|
+
* This is used as the Dropdown button's or Combobox input's value when the option is selected,
|
|
283
|
+
* and as the comparison for type-to-find keyboard functionality.
|
|
284
|
+
*/
|
|
285
|
+
text: string;
|
|
286
|
+
children?: React_2.ReactNode;
|
|
287
|
+
});
|
|
272
288
|
|
|
273
289
|
export declare type TagPickerOptionSlots = Pick<OptionSlots, 'root'> & {
|
|
274
290
|
media?: Slot<'div'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["TagPickerOption.types.ts"],"sourcesContent":["import { OptionSlots, OptionState } from '@fluentui/react-combobox';\nimport { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\n\nexport type TagPickerOptionSlots = Pick<OptionSlots, 'root'> & {\n media?: Slot<'div'>;\n secondaryContent?: Slot<'span'>;\n};\n\n/**\n * TagPickerOption Props\n */\nexport type TagPickerOptionProps = ComponentProps<TagPickerOptionSlots> & {\n children:
|
|
1
|
+
{"version":3,"sources":["TagPickerOption.types.ts"],"sourcesContent":["import { OptionSlots, OptionState } from '@fluentui/react-combobox';\nimport { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\n\nexport type TagPickerOptionSlots = Pick<OptionSlots, 'root'> & {\n media?: Slot<'div'>;\n secondaryContent?: Slot<'span'>;\n};\n\n/**\n * TagPickerOption Props\n */\nexport type TagPickerOptionProps = ComponentProps<TagPickerOptionSlots> & {\n value: string;\n} & (\n | {\n /**\n * An optional override the string value of the Option's display text,\n * defaulting to the Option's child content.\n * This is used as the Dropdown button's or Combobox input's value when the option is selected,\n * and as the comparison for type-to-find keyboard functionality.\n */\n text?: string;\n children: string;\n }\n | {\n /**\n * The string value of the Option's display text when the Option's children are not a string.\n * This is used as the Dropdown button's or Combobox input's value when the option is selected,\n * and as the comparison for type-to-find keyboard functionality.\n */\n text: string;\n children?: React.ReactNode;\n }\n );\n\n/**\n * State used in rendering TagPickerOption\n */\nexport type TagPickerOptionState = ComponentState<TagPickerOptionSlots> & Pick<OptionState, 'components' | 'root'>;\n"],"names":["React"],"mappings":"AAEA,YAAYA,WAAW,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useTagPickerOption.ts"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport {
|
|
1
|
+
{"version":3,"sources":["useTagPickerOption.ts"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport { useOption_unstable } from '@fluentui/react-combobox';\nimport type { TagPickerOptionProps, TagPickerOptionState } from './TagPickerOption.types';\n\n/**\n * Create the state required to render TagPickerOption.\n *\n * The returned state can be modified with hooks such as useTagPickerOptionStyles_unstable,\n * before being passed to renderTagPickerOption_unstable.\n *\n * @param props - props from this instance of TagPickerOption\n * @param ref - reference to root HTMLDivElement of TagPickerOption\n */\nexport const useTagPickerOption_unstable = (\n props: TagPickerOptionProps,\n ref: React.Ref<HTMLDivElement>,\n): TagPickerOptionState => {\n const optionState = useOption_unstable(props, ref);\n const state: TagPickerOptionState = {\n components: {\n ...optionState.components,\n media: 'div',\n secondaryContent: 'span',\n },\n media: slot.optional(props.media, {\n elementType: 'div',\n }),\n secondaryContent: slot.optional(props.secondaryContent, {\n elementType: 'span',\n }),\n root: slot.always(\n { ...optionState.root, role: 'option', 'aria-checked': props['aria-checked'] },\n {\n elementType: 'div',\n },\n ),\n };\n\n return state;\n};\n"],"names":["React","slot","useOption_unstable","useTagPickerOption_unstable","props","ref","optionState","state","components","media","secondaryContent","optional","elementType","root","always","role"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,IAAI,QAAQ,4BAA4B;AACjD,SAASC,kBAAkB,QAAQ,2BAA2B;AAG9D;;;;;;;;CAQC,GACD,OAAO,MAAMC,8BAA8B,CACzCC,OACAC;IAEA,MAAMC,cAAcJ,mBAAmBE,OAAOC;IAC9C,MAAME,QAA8B;QAClCC,YAAY;YACV,GAAGF,YAAYE,UAAU;YACzBC,OAAO;YACPC,kBAAkB;QACpB;QACAD,OAAOR,KAAKU,QAAQ,CAACP,MAAMK,KAAK,EAAE;YAChCG,aAAa;QACf;QACAF,kBAAkBT,KAAKU,QAAQ,CAACP,MAAMM,gBAAgB,EAAE;YACtDE,aAAa;QACf;QACAC,MAAMZ,KAAKa,MAAM,CACf;YAAE,GAAGR,YAAYO,IAAI;YAAEE,MAAM;YAAU,gBAAgBX,KAAK,CAAC,eAAe;QAAC,GAC7E;YACEQ,aAAa;QACf;IAEJ;IAEA,OAAOL;AACT,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-tag-picker",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "FluentUI TagPicker component",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"@fluentui/scripts-tasks": "*"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
|
42
|
+
"@fluentui/react-jsx-runtime": "^9.0.39",
|
|
43
43
|
"@fluentui/react-shared-contexts": "^9.19.0",
|
|
44
44
|
"@fluentui/react-theme": "^9.1.19",
|
|
45
|
-
"@fluentui/react-utilities": "^9.18.
|
|
46
|
-
"@fluentui/react-portal": "^9.4.
|
|
47
|
-
"@fluentui/react-tabster": "^9.21.
|
|
48
|
-
"@fluentui/react-aria": "^9.
|
|
45
|
+
"@fluentui/react-utilities": "^9.18.10",
|
|
46
|
+
"@fluentui/react-portal": "^9.4.27",
|
|
47
|
+
"@fluentui/react-tabster": "^9.21.5",
|
|
48
|
+
"@fluentui/react-aria": "^9.12.0",
|
|
49
49
|
"@fluentui/react-icons": "^2.0.239",
|
|
50
|
-
"@fluentui/react-combobox": "^9.11.
|
|
51
|
-
"@fluentui/react-tags": "^9.3.
|
|
52
|
-
"@fluentui/react-context-selector": "^9.1.
|
|
53
|
-
"@fluentui/react-positioning": "^9.15.
|
|
50
|
+
"@fluentui/react-combobox": "^9.11.7",
|
|
51
|
+
"@fluentui/react-tags": "^9.3.8",
|
|
52
|
+
"@fluentui/react-context-selector": "^9.1.61",
|
|
53
|
+
"@fluentui/react-positioning": "^9.15.3",
|
|
54
54
|
"@fluentui/keyboard-keys": "^9.0.7",
|
|
55
|
-
"@fluentui/react-field": "^9.1.
|
|
55
|
+
"@fluentui/react-field": "^9.1.67",
|
|
56
56
|
"@griffel/react": "^1.5.22",
|
|
57
57
|
"@swc/helpers": "^0.5.1"
|
|
58
58
|
},
|