@fluentui/react-tag-picker 0.0.0-nightly-20240524-0405.1 → 0.0.0-nightly-20240528-0406.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.
package/CHANGELOG.md CHANGED
@@ -1,32 +1,32 @@
1
1
  # Change Log - @fluentui/react-tag-picker
2
2
 
3
- This log was last generated on Fri, 24 May 2024 04:21:09 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 28 May 2024 04:22:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20240524-0405.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v0.0.0-nightly-20240524-0405.1)
7
+ ## [0.0.0-nightly-20240528-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v0.0.0-nightly-20240528-0406.1)
8
8
 
9
- Fri, 24 May 2024 04:21:09 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.0.4..@fluentui/react-tag-picker_v0.0.0-nightly-20240524-0405.1)
9
+ Tue, 28 May 2024 04:22:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tag-picker_v9.0.4..@fluentui/react-tag-picker_v0.0.0-nightly-20240528-0406.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
16
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
17
- - Bump @fluentui/react-theme to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
18
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
19
- - Bump @fluentui/react-portal to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
21
- - Bump @fluentui/react-aria to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
22
- - Bump @fluentui/react-combobox to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
23
- - Bump @fluentui/react-tags to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
24
- - Bump @fluentui/react-context-selector to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
25
- - Bump @fluentui/react-positioning to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
26
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
27
- - Bump @fluentui/react-field to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
28
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
29
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20240524-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff89649b3fa7496c5277542b79a039dd293bcdd) by beachball)
15
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
17
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
18
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
19
+ - Bump @fluentui/react-portal to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
20
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
21
+ - Bump @fluentui/react-aria to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
22
+ - Bump @fluentui/react-combobox to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
23
+ - Bump @fluentui/react-tags to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
24
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
25
+ - Bump @fluentui/react-positioning to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
26
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
27
+ - Bump @fluentui/react-field to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
28
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
29
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20240528-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/e617580cb535235f41d47b0796c109d4ac1b113f) by beachball)
30
30
 
31
31
  ## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-tag-picker_v9.0.4)
32
32
 
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: React.ReactNode;\n value: string;\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
+ {"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 { OptionProps, 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 as OptionProps, 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,SAAsBC,kBAAkB,QAAQ,2BAA2B;AAG3E;;;;;;;;CAQC,GACD,OAAO,MAAMC,8BAA8B,CACzCC,OACAC;IAEA,MAAMC,cAAcJ,mBAAmBE,OAAsBC;IAC7D,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"}
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": "0.0.0-nightly-20240524-0405.1",
3
+ "version": "0.0.0-nightly-20240528-0406.1",
4
4
  "description": "FluentUI TagPicker component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -33,26 +33,26 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@fluentui/eslint-plugin": "*",
36
- "@fluentui/react-conformance": "0.0.0-nightly-20240524-0405.1",
37
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20240524-0405.1",
36
+ "@fluentui/react-conformance": "0.0.0-nightly-20240528-0406.1",
37
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20240528-0406.1",
38
38
  "@fluentui/scripts-api-extractor": "*",
39
39
  "@fluentui/scripts-tasks": "*"
40
40
  },
41
41
  "dependencies": {
42
- "@fluentui/react-jsx-runtime": "0.0.0-nightly-20240524-0405.1",
43
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20240524-0405.1",
44
- "@fluentui/react-theme": "0.0.0-nightly-20240524-0405.1",
45
- "@fluentui/react-utilities": "0.0.0-nightly-20240524-0405.1",
46
- "@fluentui/react-portal": "0.0.0-nightly-20240524-0405.1",
47
- "@fluentui/react-tabster": "0.0.0-nightly-20240524-0405.1",
48
- "@fluentui/react-aria": "0.0.0-nightly-20240524-0405.1",
42
+ "@fluentui/react-jsx-runtime": "0.0.0-nightly-20240528-0406.1",
43
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20240528-0406.1",
44
+ "@fluentui/react-theme": "0.0.0-nightly-20240528-0406.1",
45
+ "@fluentui/react-utilities": "0.0.0-nightly-20240528-0406.1",
46
+ "@fluentui/react-portal": "0.0.0-nightly-20240528-0406.1",
47
+ "@fluentui/react-tabster": "0.0.0-nightly-20240528-0406.1",
48
+ "@fluentui/react-aria": "0.0.0-nightly-20240528-0406.1",
49
49
  "@fluentui/react-icons": "^2.0.239",
50
- "@fluentui/react-combobox": "0.0.0-nightly-20240524-0405.1",
51
- "@fluentui/react-tags": "0.0.0-nightly-20240524-0405.1",
52
- "@fluentui/react-context-selector": "0.0.0-nightly-20240524-0405.1",
53
- "@fluentui/react-positioning": "0.0.0-nightly-20240524-0405.1",
54
- "@fluentui/keyboard-keys": "0.0.0-nightly-20240524-0405.1",
55
- "@fluentui/react-field": "0.0.0-nightly-20240524-0405.1",
50
+ "@fluentui/react-combobox": "0.0.0-nightly-20240528-0406.1",
51
+ "@fluentui/react-tags": "0.0.0-nightly-20240528-0406.1",
52
+ "@fluentui/react-context-selector": "0.0.0-nightly-20240528-0406.1",
53
+ "@fluentui/react-positioning": "0.0.0-nightly-20240528-0406.1",
54
+ "@fluentui/keyboard-keys": "0.0.0-nightly-20240528-0406.1",
55
+ "@fluentui/react-field": "0.0.0-nightly-20240528-0406.1",
56
56
  "@griffel/react": "^1.5.22",
57
57
  "@swc/helpers": "^0.5.1"
58
58
  },