@fluentui/react-tag-picker 9.0.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 +165 -0
- package/LICENSE +15 -0
- package/README.md +68 -0
- package/Spec.md +208 -0
- package/dist/index.d.ts +453 -0
- package/lib/TagPicker.js +1 -0
- package/lib/TagPicker.js.map +1 -0
- package/lib/TagPickerButton.js +1 -0
- package/lib/TagPickerButton.js.map +1 -0
- package/lib/TagPickerControl.js +1 -0
- package/lib/TagPickerControl.js.map +1 -0
- package/lib/TagPickerGroup.js +1 -0
- package/lib/TagPickerGroup.js.map +1 -0
- package/lib/TagPickerInput.js +1 -0
- package/lib/TagPickerInput.js.map +1 -0
- package/lib/TagPickerList.js +1 -0
- package/lib/TagPickerList.js.map +1 -0
- package/lib/TagPickerOption.js +1 -0
- package/lib/TagPickerOption.js.map +1 -0
- package/lib/TagPickerOptionGroup.js +1 -0
- package/lib/TagPickerOptionGroup.js.map +1 -0
- package/lib/components/TagPicker/TagPicker.js +13 -0
- package/lib/components/TagPicker/TagPicker.js.map +1 -0
- package/lib/components/TagPicker/TagPicker.types.js +1 -0
- package/lib/components/TagPicker/TagPicker.types.js.map +1 -0
- package/lib/components/TagPicker/index.js +4 -0
- package/lib/components/TagPicker/index.js.map +1 -0
- package/lib/components/TagPicker/renderTagPicker.js +20 -0
- package/lib/components/TagPicker/renderTagPicker.js.map +1 -0
- package/lib/components/TagPicker/useTagPicker.js +123 -0
- package/lib/components/TagPicker/useTagPicker.js.map +1 -0
- package/lib/components/TagPicker/useTagPickerContextValues.js +41 -0
- package/lib/components/TagPicker/useTagPickerContextValues.js.map +1 -0
- package/lib/components/TagPickerButton/TagPickerButton.js +15 -0
- package/lib/components/TagPickerButton/TagPickerButton.js.map +1 -0
- package/lib/components/TagPickerButton/TagPickerButton.types.js +1 -0
- package/lib/components/TagPickerButton/TagPickerButton.types.js.map +1 -0
- package/lib/components/TagPickerButton/index.js +5 -0
- package/lib/components/TagPickerButton/index.js.map +1 -0
- package/lib/components/TagPickerButton/renderTagPickerButton.js +8 -0
- package/lib/components/TagPickerButton/renderTagPickerButton.js.map +1 -0
- package/lib/components/TagPickerButton/useTagPickerButton.js +54 -0
- package/lib/components/TagPickerButton/useTagPickerButton.js.map +1 -0
- package/lib/components/TagPickerButton/useTagPickerButtonStyles.styles.js +191 -0
- package/lib/components/TagPickerButton/useTagPickerButtonStyles.styles.js.map +1 -0
- package/lib/components/TagPickerControl/TagPickerControl.js +15 -0
- package/lib/components/TagPickerControl/TagPickerControl.js.map +1 -0
- package/lib/components/TagPickerControl/TagPickerControl.types.js +1 -0
- package/lib/components/TagPickerControl/TagPickerControl.types.js.map +1 -0
- package/lib/components/TagPickerControl/index.js +5 -0
- package/lib/components/TagPickerControl/index.js.map +1 -0
- package/lib/components/TagPickerControl/renderTagPickerControl.js +18 -0
- package/lib/components/TagPickerControl/renderTagPickerControl.js.map +1 -0
- package/lib/components/TagPickerControl/useTagPickerControl.js +101 -0
- package/lib/components/TagPickerControl/useTagPickerControl.js.map +1 -0
- package/lib/components/TagPickerControl/useTagPickerControlStyles.styles.js +262 -0
- package/lib/components/TagPickerControl/useTagPickerControlStyles.styles.js.map +1 -0
- package/lib/components/TagPickerGroup/TagPickerGroup.js +16 -0
- package/lib/components/TagPickerGroup/TagPickerGroup.js.map +1 -0
- package/lib/components/TagPickerGroup/TagPickerGroup.types.js +1 -0
- package/lib/components/TagPickerGroup/TagPickerGroup.types.js.map +1 -0
- package/lib/components/TagPickerGroup/index.js +5 -0
- package/lib/components/TagPickerGroup/index.js.map +1 -0
- package/lib/components/TagPickerGroup/renderTagPickerGroup.js +7 -0
- package/lib/components/TagPickerGroup/renderTagPickerGroup.js.map +1 -0
- package/lib/components/TagPickerGroup/useTagPickerGroup.js +62 -0
- package/lib/components/TagPickerGroup/useTagPickerGroup.js.map +1 -0
- package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.js +53 -0
- package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.js.map +1 -0
- package/lib/components/TagPickerInput/TagPickerInput.js +15 -0
- package/lib/components/TagPickerInput/TagPickerInput.js.map +1 -0
- package/lib/components/TagPickerInput/TagPickerInput.types.js +1 -0
- package/lib/components/TagPickerInput/TagPickerInput.types.js.map +1 -0
- package/lib/components/TagPickerInput/index.js +5 -0
- package/lib/components/TagPickerInput/index.js.map +1 -0
- package/lib/components/TagPickerInput/renderTagPickerInput.js +8 -0
- package/lib/components/TagPickerInput/renderTagPickerInput.js.map +1 -0
- package/lib/components/TagPickerInput/useTagPickerInput.js +137 -0
- package/lib/components/TagPickerInput/useTagPickerInput.js.map +1 -0
- package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.js +60 -0
- package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.js.map +1 -0
- package/lib/components/TagPickerList/TagPickerList.js +15 -0
- package/lib/components/TagPickerList/TagPickerList.js.map +1 -0
- package/lib/components/TagPickerList/TagPickerList.types.js +1 -0
- package/lib/components/TagPickerList/TagPickerList.types.js.map +1 -0
- package/lib/components/TagPickerList/index.js +5 -0
- package/lib/components/TagPickerList/index.js.map +1 -0
- package/lib/components/TagPickerList/renderTagPickerList.js +8 -0
- package/lib/components/TagPickerList/renderTagPickerList.js.map +1 -0
- package/lib/components/TagPickerList/useTagPickerList.js +39 -0
- package/lib/components/TagPickerList/useTagPickerList.js.map +1 -0
- package/lib/components/TagPickerList/useTagPickerListStyles.styles.js +33 -0
- package/lib/components/TagPickerList/useTagPickerListStyles.styles.js.map +1 -0
- package/lib/components/TagPickerOption/TagPickerOption.js +15 -0
- package/lib/components/TagPickerOption/TagPickerOption.js.map +1 -0
- package/lib/components/TagPickerOption/TagPickerOption.types.js +1 -0
- package/lib/components/TagPickerOption/TagPickerOption.types.js.map +1 -0
- package/lib/components/TagPickerOption/index.js +5 -0
- package/lib/components/TagPickerOption/index.js.map +1 -0
- package/lib/components/TagPickerOption/renderTagPickerOption.js +14 -0
- package/lib/components/TagPickerOption/renderTagPickerOption.js.map +1 -0
- package/lib/components/TagPickerOption/useTagPickerOption.js +35 -0
- package/lib/components/TagPickerOption/useTagPickerOption.js.map +1 -0
- package/lib/components/TagPickerOption/useTagPickerOptionStyles.styles.js +49 -0
- package/lib/components/TagPickerOption/useTagPickerOptionStyles.styles.js.map +1 -0
- package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.js +15 -0
- package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.js.map +1 -0
- package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.types.js +1 -0
- package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.types.js.map +1 -0
- package/lib/components/TagPickerOptionGroup/index.js +5 -0
- package/lib/components/TagPickerOptionGroup/index.js.map +1 -0
- package/lib/components/TagPickerOptionGroup/renderTagPickerOptionGroup.js +4 -0
- package/lib/components/TagPickerOptionGroup/renderTagPickerOptionGroup.js.map +1 -0
- package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroup.js +11 -0
- package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroup.js.map +1 -0
- package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js +18 -0
- package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js.map +1 -0
- package/lib/contexts/TagPickerContext.js +27 -0
- package/lib/contexts/TagPickerContext.js.map +1 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -0
- package/lib/utils/tagPicker2Tag.js +32 -0
- package/lib/utils/tagPicker2Tag.js.map +1 -0
- package/lib/utils/tokens.js +6 -0
- package/lib/utils/tokens.js.map +1 -0
- package/lib/utils/useResizeObserverRef.js +22 -0
- package/lib/utils/useResizeObserverRef.js.map +1 -0
- package/lib/utils/useTagPickerFilter.js +35 -0
- package/lib/utils/useTagPickerFilter.js.map +1 -0
- package/lib-commonjs/TagPicker.js +6 -0
- package/lib-commonjs/TagPicker.js.map +1 -0
- package/lib-commonjs/TagPickerButton.js +6 -0
- package/lib-commonjs/TagPickerButton.js.map +1 -0
- package/lib-commonjs/TagPickerControl.js +6 -0
- package/lib-commonjs/TagPickerControl.js.map +1 -0
- package/lib-commonjs/TagPickerGroup.js +6 -0
- package/lib-commonjs/TagPickerGroup.js.map +1 -0
- package/lib-commonjs/TagPickerInput.js +6 -0
- package/lib-commonjs/TagPickerInput.js.map +1 -0
- package/lib-commonjs/TagPickerList.js +6 -0
- package/lib-commonjs/TagPickerList.js.map +1 -0
- package/lib-commonjs/TagPickerOption.js +6 -0
- package/lib-commonjs/TagPickerOption.js.map +1 -0
- package/lib-commonjs/TagPickerOptionGroup.js +6 -0
- package/lib-commonjs/TagPickerOptionGroup.js.map +1 -0
- package/lib-commonjs/components/TagPicker/TagPicker.js +21 -0
- package/lib-commonjs/components/TagPicker/TagPicker.js.map +1 -0
- package/lib-commonjs/components/TagPicker/TagPicker.types.js +4 -0
- package/lib-commonjs/components/TagPicker/TagPicker.types.js.map +1 -0
- package/lib-commonjs/components/TagPicker/index.js +9 -0
- package/lib-commonjs/components/TagPicker/index.js.map +1 -0
- package/lib-commonjs/components/TagPicker/renderTagPicker.js +29 -0
- package/lib-commonjs/components/TagPicker/renderTagPicker.js.map +1 -0
- package/lib-commonjs/components/TagPicker/useTagPicker.js +126 -0
- package/lib-commonjs/components/TagPicker/useTagPicker.js.map +1 -0
- package/lib-commonjs/components/TagPicker/useTagPickerContextValues.js +52 -0
- package/lib-commonjs/components/TagPicker/useTagPickerContextValues.js.map +1 -0
- package/lib-commonjs/components/TagPickerButton/TagPickerButton.js +23 -0
- package/lib-commonjs/components/TagPickerButton/TagPickerButton.js.map +1 -0
- package/lib-commonjs/components/TagPickerButton/TagPickerButton.types.js +4 -0
- package/lib-commonjs/components/TagPickerButton/TagPickerButton.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerButton/index.js +10 -0
- package/lib-commonjs/components/TagPickerButton/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerButton/renderTagPickerButton.js +16 -0
- package/lib-commonjs/components/TagPickerButton/renderTagPickerButton.js.map +1 -0
- package/lib-commonjs/components/TagPickerButton/useTagPickerButton.js +57 -0
- package/lib-commonjs/components/TagPickerButton/useTagPickerButton.js.map +1 -0
- package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.js +453 -0
- package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TagPickerControl/TagPickerControl.js +23 -0
- package/lib-commonjs/components/TagPickerControl/TagPickerControl.js.map +1 -0
- package/lib-commonjs/components/TagPickerControl/TagPickerControl.types.js +6 -0
- package/lib-commonjs/components/TagPickerControl/TagPickerControl.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerControl/index.js +10 -0
- package/lib-commonjs/components/TagPickerControl/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerControl/renderTagPickerControl.js +26 -0
- package/lib-commonjs/components/TagPickerControl/renderTagPickerControl.js.map +1 -0
- package/lib-commonjs/components/TagPickerControl/useTagPickerControl.js +104 -0
- package/lib-commonjs/components/TagPickerControl/useTagPickerControl.js.map +1 -0
- package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.js +579 -0
- package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.js +24 -0
- package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.js.map +1 -0
- package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.types.js +4 -0
- package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerGroup/index.js +10 -0
- package/lib-commonjs/components/TagPickerGroup/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerGroup/renderTagPickerGroup.js +17 -0
- package/lib-commonjs/components/TagPickerGroup/renderTagPickerGroup.js.map +1 -0
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroup.js +65 -0
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroup.js.map +1 -0
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.js +97 -0
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TagPickerInput/TagPickerInput.js +23 -0
- package/lib-commonjs/components/TagPickerInput/TagPickerInput.js.map +1 -0
- package/lib-commonjs/components/TagPickerInput/TagPickerInput.types.js +4 -0
- package/lib-commonjs/components/TagPickerInput/TagPickerInput.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerInput/index.js +10 -0
- package/lib-commonjs/components/TagPickerInput/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerInput/renderTagPickerInput.js +16 -0
- package/lib-commonjs/components/TagPickerInput/renderTagPickerInput.js.map +1 -0
- package/lib-commonjs/components/TagPickerInput/useTagPickerInput.js +140 -0
- package/lib-commonjs/components/TagPickerInput/useTagPickerInput.js.map +1 -0
- package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.js +122 -0
- package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TagPickerList/TagPickerList.js +23 -0
- package/lib-commonjs/components/TagPickerList/TagPickerList.js.map +1 -0
- package/lib-commonjs/components/TagPickerList/TagPickerList.types.js +4 -0
- package/lib-commonjs/components/TagPickerList/TagPickerList.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerList/index.js +10 -0
- package/lib-commonjs/components/TagPickerList/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerList/renderTagPickerList.js +16 -0
- package/lib-commonjs/components/TagPickerList/renderTagPickerList.js.map +1 -0
- package/lib-commonjs/components/TagPickerList/useTagPickerList.js +41 -0
- package/lib-commonjs/components/TagPickerList/useTagPickerList.js.map +1 -0
- package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.js +66 -0
- package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TagPickerOption/TagPickerOption.js +23 -0
- package/lib-commonjs/components/TagPickerOption/TagPickerOption.js.map +1 -0
- package/lib-commonjs/components/TagPickerOption/TagPickerOption.types.js +6 -0
- package/lib-commonjs/components/TagPickerOption/TagPickerOption.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerOption/index.js +10 -0
- package/lib-commonjs/components/TagPickerOption/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerOption/renderTagPickerOption.js +22 -0
- package/lib-commonjs/components/TagPickerOption/renderTagPickerOption.js.map +1 -0
- package/lib-commonjs/components/TagPickerOption/useTagPickerOption.js +38 -0
- package/lib-commonjs/components/TagPickerOption/useTagPickerOption.js.map +1 -0
- package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.js +69 -0
- package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TagPickerOptionGroup/TagPickerOptionGroup.js +23 -0
- package/lib-commonjs/components/TagPickerOptionGroup/TagPickerOptionGroup.js.map +1 -0
- package/lib-commonjs/components/TagPickerOptionGroup/TagPickerOptionGroup.types.js +4 -0
- package/lib-commonjs/components/TagPickerOptionGroup/TagPickerOptionGroup.types.js.map +1 -0
- package/lib-commonjs/components/TagPickerOptionGroup/index.js +10 -0
- package/lib-commonjs/components/TagPickerOptionGroup/index.js.map +1 -0
- package/lib-commonjs/components/TagPickerOptionGroup/renderTagPickerOptionGroup.js +12 -0
- package/lib-commonjs/components/TagPickerOptionGroup/renderTagPickerOptionGroup.js.map +1 -0
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroup.js +14 -0
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroup.js.map +1 -0
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js +32 -0
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.js.map +1 -0
- package/lib-commonjs/contexts/TagPickerContext.js +47 -0
- package/lib-commonjs/contexts/TagPickerContext.js.map +1 -0
- package/lib-commonjs/index.js +138 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/utils/tagPicker2Tag.js +53 -0
- package/lib-commonjs/utils/tagPicker2Tag.js.map +1 -0
- package/lib-commonjs/utils/tokens.js +24 -0
- package/lib-commonjs/utils/tokens.js.map +1 -0
- package/lib-commonjs/utils/useResizeObserverRef.js +33 -0
- package/lib-commonjs/utils/useResizeObserverRef.js.map +1 -0
- package/lib-commonjs/utils/useTagPickerFilter.js +46 -0
- package/lib-commonjs/utils/useTagPickerFilter.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
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
|
+
TagPicker: function() {
|
|
13
|
+
return _TagPicker.TagPicker;
|
|
14
|
+
},
|
|
15
|
+
renderTagPicker_unstable: function() {
|
|
16
|
+
return _TagPicker.renderTagPicker_unstable;
|
|
17
|
+
},
|
|
18
|
+
useTagPicker_unstable: function() {
|
|
19
|
+
return _TagPicker.useTagPicker_unstable;
|
|
20
|
+
},
|
|
21
|
+
TagPickerInput: function() {
|
|
22
|
+
return _TagPickerInput.TagPickerInput;
|
|
23
|
+
},
|
|
24
|
+
tagPickerInputClassNames: function() {
|
|
25
|
+
return _TagPickerInput.tagPickerInputClassNames;
|
|
26
|
+
},
|
|
27
|
+
renderTagPickerInput_unstable: function() {
|
|
28
|
+
return _TagPickerInput.renderTagPickerInput_unstable;
|
|
29
|
+
},
|
|
30
|
+
useTagPickerInputStyles_unstable: function() {
|
|
31
|
+
return _TagPickerInput.useTagPickerInputStyles_unstable;
|
|
32
|
+
},
|
|
33
|
+
useTagPickerInput_unstable: function() {
|
|
34
|
+
return _TagPickerInput.useTagPickerInput_unstable;
|
|
35
|
+
},
|
|
36
|
+
TagPickerList: function() {
|
|
37
|
+
return _TagPickerList.TagPickerList;
|
|
38
|
+
},
|
|
39
|
+
tagPickerListClassNames: function() {
|
|
40
|
+
return _TagPickerList.tagPickerListClassNames;
|
|
41
|
+
},
|
|
42
|
+
renderTagPickerList_unstable: function() {
|
|
43
|
+
return _TagPickerList.renderTagPickerList_unstable;
|
|
44
|
+
},
|
|
45
|
+
useTagPickerListStyles_unstable: function() {
|
|
46
|
+
return _TagPickerList.useTagPickerListStyles_unstable;
|
|
47
|
+
},
|
|
48
|
+
useTagPickerList_unstable: function() {
|
|
49
|
+
return _TagPickerList.useTagPickerList_unstable;
|
|
50
|
+
},
|
|
51
|
+
TagPickerButton: function() {
|
|
52
|
+
return _TagPickerButton.TagPickerButton;
|
|
53
|
+
},
|
|
54
|
+
tagPickerButtonClassNames: function() {
|
|
55
|
+
return _TagPickerButton.tagPickerButtonClassNames;
|
|
56
|
+
},
|
|
57
|
+
renderTagPickerButton_unstable: function() {
|
|
58
|
+
return _TagPickerButton.renderTagPickerButton_unstable;
|
|
59
|
+
},
|
|
60
|
+
useTagPickerButtonStyles_unstable: function() {
|
|
61
|
+
return _TagPickerButton.useTagPickerButtonStyles_unstable;
|
|
62
|
+
},
|
|
63
|
+
useTagPickerButton_unstable: function() {
|
|
64
|
+
return _TagPickerButton.useTagPickerButton_unstable;
|
|
65
|
+
},
|
|
66
|
+
TagPickerControl: function() {
|
|
67
|
+
return _TagPickerControl.TagPickerControl;
|
|
68
|
+
},
|
|
69
|
+
tagPickerControlClassNames: function() {
|
|
70
|
+
return _TagPickerControl.tagPickerControlClassNames;
|
|
71
|
+
},
|
|
72
|
+
renderTagPickerControl_unstable: function() {
|
|
73
|
+
return _TagPickerControl.renderTagPickerControl_unstable;
|
|
74
|
+
},
|
|
75
|
+
useTagPickerControlStyles_unstable: function() {
|
|
76
|
+
return _TagPickerControl.useTagPickerControlStyles_unstable;
|
|
77
|
+
},
|
|
78
|
+
useTagPickerControl_unstable: function() {
|
|
79
|
+
return _TagPickerControl.useTagPickerControl_unstable;
|
|
80
|
+
},
|
|
81
|
+
TagPickerOption: function() {
|
|
82
|
+
return _TagPickerOption.TagPickerOption;
|
|
83
|
+
},
|
|
84
|
+
tagPickerOptionClassNames: function() {
|
|
85
|
+
return _TagPickerOption.tagPickerOptionClassNames;
|
|
86
|
+
},
|
|
87
|
+
renderTagPickerOption_unstable: function() {
|
|
88
|
+
return _TagPickerOption.renderTagPickerOption_unstable;
|
|
89
|
+
},
|
|
90
|
+
useTagPickerOptionStyles_unstable: function() {
|
|
91
|
+
return _TagPickerOption.useTagPickerOptionStyles_unstable;
|
|
92
|
+
},
|
|
93
|
+
useTagPickerOption_unstable: function() {
|
|
94
|
+
return _TagPickerOption.useTagPickerOption_unstable;
|
|
95
|
+
},
|
|
96
|
+
TagPickerGroup: function() {
|
|
97
|
+
return _TagPickerGroup.TagPickerGroup;
|
|
98
|
+
},
|
|
99
|
+
tagPickerGroupClassNames: function() {
|
|
100
|
+
return _TagPickerGroup.tagPickerGroupClassNames;
|
|
101
|
+
},
|
|
102
|
+
renderTagPickerGroup_unstable: function() {
|
|
103
|
+
return _TagPickerGroup.renderTagPickerGroup_unstable;
|
|
104
|
+
},
|
|
105
|
+
useTagPickerGroupStyles_unstable: function() {
|
|
106
|
+
return _TagPickerGroup.useTagPickerGroupStyles_unstable;
|
|
107
|
+
},
|
|
108
|
+
useTagPickerGroup_unstable: function() {
|
|
109
|
+
return _TagPickerGroup.useTagPickerGroup_unstable;
|
|
110
|
+
},
|
|
111
|
+
TagPickerOptionGroup: function() {
|
|
112
|
+
return _TagPickerOptionGroup.TagPickerOptionGroup;
|
|
113
|
+
},
|
|
114
|
+
tagPickerOptionGroupClassNames: function() {
|
|
115
|
+
return _TagPickerOptionGroup.tagPickerOptionGroupClassNames;
|
|
116
|
+
},
|
|
117
|
+
renderTagPickerOptionGroup: function() {
|
|
118
|
+
return _TagPickerOptionGroup.renderTagPickerOptionGroup;
|
|
119
|
+
},
|
|
120
|
+
useTagPickerOptionGroupStyles: function() {
|
|
121
|
+
return _TagPickerOptionGroup.useTagPickerOptionGroupStyles;
|
|
122
|
+
},
|
|
123
|
+
useTagPickerOptionGroup: function() {
|
|
124
|
+
return _TagPickerOptionGroup.useTagPickerOptionGroup;
|
|
125
|
+
},
|
|
126
|
+
useTagPickerFilter: function() {
|
|
127
|
+
return _useTagPickerFilter.useTagPickerFilter;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const _TagPicker = require("./TagPicker");
|
|
131
|
+
const _TagPickerInput = require("./TagPickerInput");
|
|
132
|
+
const _TagPickerList = require("./TagPickerList");
|
|
133
|
+
const _TagPickerButton = require("./TagPickerButton");
|
|
134
|
+
const _TagPickerControl = require("./TagPickerControl");
|
|
135
|
+
const _TagPickerOption = require("./TagPickerOption");
|
|
136
|
+
const _TagPickerGroup = require("./TagPickerGroup");
|
|
137
|
+
const _TagPickerOptionGroup = require("./TagPickerOptionGroup");
|
|
138
|
+
const _useTagPickerFilter = require("./utils/useTagPickerFilter");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { TagPicker, renderTagPicker_unstable, useTagPicker_unstable } from './TagPicker';\nexport { TagPickerInput, tagPickerInputClassNames, renderTagPickerInput_unstable, useTagPickerInputStyles_unstable, useTagPickerInput_unstable } from './TagPickerInput';\nexport { TagPickerList, tagPickerListClassNames, renderTagPickerList_unstable, useTagPickerListStyles_unstable, useTagPickerList_unstable } from './TagPickerList';\nexport { TagPickerButton, tagPickerButtonClassNames, renderTagPickerButton_unstable, useTagPickerButtonStyles_unstable, useTagPickerButton_unstable } from './TagPickerButton';\nexport { TagPickerControl, tagPickerControlClassNames, renderTagPickerControl_unstable, useTagPickerControlStyles_unstable, useTagPickerControl_unstable } from './TagPickerControl';\nexport { TagPickerOption, tagPickerOptionClassNames, renderTagPickerOption_unstable, useTagPickerOptionStyles_unstable, useTagPickerOption_unstable } from './TagPickerOption';\nexport { TagPickerGroup, tagPickerGroupClassNames, renderTagPickerGroup_unstable, useTagPickerGroupStyles_unstable, useTagPickerGroup_unstable } from './TagPickerGroup';\nexport { TagPickerOptionGroup, tagPickerOptionGroupClassNames, renderTagPickerOptionGroup, useTagPickerOptionGroupStyles, useTagPickerOptionGroup } from './TagPickerOptionGroup';\nexport { useTagPickerFilter } from './utils/useTagPickerFilter';\n"],"names":["TagPicker","renderTagPicker_unstable","useTagPicker_unstable","TagPickerInput","tagPickerInputClassNames","renderTagPickerInput_unstable","useTagPickerInputStyles_unstable","useTagPickerInput_unstable","TagPickerList","tagPickerListClassNames","renderTagPickerList_unstable","useTagPickerListStyles_unstable","useTagPickerList_unstable","TagPickerButton","tagPickerButtonClassNames","renderTagPickerButton_unstable","useTagPickerButtonStyles_unstable","useTagPickerButton_unstable","TagPickerControl","tagPickerControlClassNames","renderTagPickerControl_unstable","useTagPickerControlStyles_unstable","useTagPickerControl_unstable","TagPickerOption","tagPickerOptionClassNames","renderTagPickerOption_unstable","useTagPickerOptionStyles_unstable","useTagPickerOption_unstable","TagPickerGroup","tagPickerGroupClassNames","renderTagPickerGroup_unstable","useTagPickerGroupStyles_unstable","useTagPickerGroup_unstable","TagPickerOptionGroup","tagPickerOptionGroupClassNames","renderTagPickerOptionGroup","useTagPickerOptionGroupStyles","useTagPickerOptionGroup","useTagPickerFilter"],"mappings":";;;;;;;;;;;IAASA,SAAS;eAATA,oBAAS;;IAAEC,wBAAwB;eAAxBA,mCAAwB;;IAAEC,qBAAqB;eAArBA,gCAAqB;;IAC1DC,cAAc;eAAdA,8BAAc;;IAAEC,wBAAwB;eAAxBA,wCAAwB;;IAAEC,6BAA6B;eAA7BA,6CAA6B;;IAAEC,gCAAgC;eAAhCA,gDAAgC;;IAAEC,0BAA0B;eAA1BA,0CAA0B;;IACrIC,aAAa;eAAbA,4BAAa;;IAAEC,uBAAuB;eAAvBA,sCAAuB;;IAAEC,4BAA4B;eAA5BA,2CAA4B;;IAAEC,+BAA+B;eAA/BA,8CAA+B;;IAAEC,yBAAyB;eAAzBA,wCAAyB;;IAChIC,eAAe;eAAfA,gCAAe;;IAAEC,yBAAyB;eAAzBA,0CAAyB;;IAAEC,8BAA8B;eAA9BA,+CAA8B;;IAAEC,iCAAiC;eAAjCA,kDAAiC;;IAAEC,2BAA2B;eAA3BA,4CAA2B;;IAC1IC,gBAAgB;eAAhBA,kCAAgB;;IAAEC,0BAA0B;eAA1BA,4CAA0B;;IAAEC,+BAA+B;eAA/BA,iDAA+B;;IAAEC,kCAAkC;eAAlCA,oDAAkC;;IAAEC,4BAA4B;eAA5BA,8CAA4B;;IAC/IC,eAAe;eAAfA,gCAAe;;IAAEC,yBAAyB;eAAzBA,0CAAyB;;IAAEC,8BAA8B;eAA9BA,+CAA8B;;IAAEC,iCAAiC;eAAjCA,kDAAiC;;IAAEC,2BAA2B;eAA3BA,4CAA2B;;IAC1IC,cAAc;eAAdA,8BAAc;;IAAEC,wBAAwB;eAAxBA,wCAAwB;;IAAEC,6BAA6B;eAA7BA,6CAA6B;;IAAEC,gCAAgC;eAAhCA,gDAAgC;;IAAEC,0BAA0B;eAA1BA,0CAA0B;;IACrIC,oBAAoB;eAApBA,0CAAoB;;IAAEC,8BAA8B;eAA9BA,oDAA8B;;IAAEC,0BAA0B;eAA1BA,gDAA0B;;IAAEC,6BAA6B;eAA7BA,mDAA6B;;IAAEC,uBAAuB;eAAvBA,6CAAuB;;IACxIC,kBAAkB;eAAlBA,sCAAkB;;;2BARgD;gCAC2E;+BACL;iCACU;kCACK;iCACL;gCACL;sCACG;oCACtH"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
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
|
+
tagPickerSizeToTagSize: function() {
|
|
13
|
+
return tagPickerSizeToTagSize;
|
|
14
|
+
},
|
|
15
|
+
tagSizeToTagPickerSize: function() {
|
|
16
|
+
return tagSizeToTagPickerSize;
|
|
17
|
+
},
|
|
18
|
+
tagPickerAppearanceToTagAppearance: function() {
|
|
19
|
+
return tagPickerAppearanceToTagAppearance;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
function tagPickerSizeToTagSize(size) {
|
|
23
|
+
switch(size){
|
|
24
|
+
case 'medium':
|
|
25
|
+
return 'extra-small';
|
|
26
|
+
case 'large':
|
|
27
|
+
return 'small';
|
|
28
|
+
case 'extra-large':
|
|
29
|
+
return 'medium';
|
|
30
|
+
default:
|
|
31
|
+
return 'extra-small';
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function tagSizeToTagPickerSize(size) {
|
|
35
|
+
switch(size){
|
|
36
|
+
case 'extra-small':
|
|
37
|
+
return 'medium';
|
|
38
|
+
case 'small':
|
|
39
|
+
return 'large';
|
|
40
|
+
case 'medium':
|
|
41
|
+
return 'extra-large';
|
|
42
|
+
default:
|
|
43
|
+
return 'medium';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function tagPickerAppearanceToTagAppearance(appearance) {
|
|
47
|
+
switch(appearance){
|
|
48
|
+
case 'filled-darker':
|
|
49
|
+
return 'outline';
|
|
50
|
+
default:
|
|
51
|
+
return 'filled';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tagPicker2Tag.js"],"sourcesContent":["export function tagPickerSizeToTagSize(size) {\n switch(size){\n case 'medium':\n return 'extra-small';\n case 'large':\n return 'small';\n case 'extra-large':\n return 'medium';\n default:\n return 'extra-small';\n }\n}\nexport function tagSizeToTagPickerSize(size) {\n switch(size){\n case 'extra-small':\n return 'medium';\n case 'small':\n return 'large';\n case 'medium':\n return 'extra-large';\n default:\n return 'medium';\n }\n}\nexport function tagPickerAppearanceToTagAppearance(appearance) {\n switch(appearance){\n case 'filled-darker':\n return 'outline';\n default:\n return 'filled';\n }\n}\n"],"names":["tagPickerSizeToTagSize","tagSizeToTagPickerSize","tagPickerAppearanceToTagAppearance","size","appearance"],"mappings":";;;;;;;;;;;IAAgBA,sBAAsB;eAAtBA;;IAYAC,sBAAsB;eAAtBA;;IAYAC,kCAAkC;eAAlCA;;;AAxBT,SAASF,uBAAuBG,IAAI;IACvC,OAAOA;QACH,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX;YACI,OAAO;IACf;AACJ;AACO,SAASF,uBAAuBE,IAAI;IACvC,OAAOA;QACH,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX;YACI,OAAO;IACf;AACJ;AACO,SAASD,mCAAmCE,UAAU;IACzD,OAAOA;QACH,KAAK;YACD,OAAO;QACX;YACI,OAAO;IACf;AACJ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
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
|
+
tagPickerInputCSSRules: function() {
|
|
13
|
+
return tagPickerInputCSSRules;
|
|
14
|
+
},
|
|
15
|
+
tagPickerInputTokens: function() {
|
|
16
|
+
return tagPickerInputTokens;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const tagPickerInputCSSRules = {
|
|
20
|
+
width: '--fluent-TagPickerInput__width'
|
|
21
|
+
};
|
|
22
|
+
const tagPickerInputTokens = {
|
|
23
|
+
width: `var(${tagPickerInputCSSRules.width}, 0)`
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tokens.js"],"sourcesContent":["export const tagPickerInputCSSRules = {\n width: '--fluent-TagPickerInput__width'\n};\nexport const tagPickerInputTokens = {\n width: `var(${tagPickerInputCSSRules.width}, 0)`\n};\n"],"names":["tagPickerInputCSSRules","tagPickerInputTokens","width"],"mappings":";;;;;;;;;;;IAAaA,sBAAsB;eAAtBA;;IAGAC,oBAAoB;eAApBA;;;AAHN,MAAMD,yBAAyB;IAClCE,OAAO;AACX;AACO,MAAMD,uBAAuB;IAChCC,OAAO,CAAC,IAAI,EAAEF,uBAAuBE,KAAK,CAAC,IAAI,CAAC;AACpD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useResizeObserverRef", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useResizeObserverRef;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
14
|
+
const useResizeObserverRef = (callback)=>{
|
|
15
|
+
const { targetDocument } = (0, _reactsharedcontexts.useFluent_unstable)();
|
|
16
|
+
const [observer] = _react.useState(()=>{
|
|
17
|
+
var _targetDocument_defaultView;
|
|
18
|
+
const ResizeObserverConstructor = targetDocument === null || targetDocument === void 0 ? void 0 : (_targetDocument_defaultView = targetDocument.defaultView) === null || _targetDocument_defaultView === void 0 ? void 0 : _targetDocument_defaultView.ResizeObserver;
|
|
19
|
+
if (ResizeObserverConstructor) {
|
|
20
|
+
return new ResizeObserverConstructor(callback);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const ref = _react.useCallback((element)=>{
|
|
24
|
+
if (element) {
|
|
25
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(element);
|
|
26
|
+
} else {
|
|
27
|
+
observer === null || observer === void 0 ? void 0 : observer.disconnect();
|
|
28
|
+
}
|
|
29
|
+
}, [
|
|
30
|
+
observer
|
|
31
|
+
]);
|
|
32
|
+
return ref;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useResizeObserverRef.js"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nexport const useResizeObserverRef = (callback)=>{\n const { targetDocument } = useFluent();\n const [observer] = React.useState(()=>{\n var _targetDocument_defaultView;\n const ResizeObserverConstructor = targetDocument === null || targetDocument === void 0 ? void 0 : (_targetDocument_defaultView = targetDocument.defaultView) === null || _targetDocument_defaultView === void 0 ? void 0 : _targetDocument_defaultView.ResizeObserver;\n if (ResizeObserverConstructor) {\n return new ResizeObserverConstructor(callback);\n }\n });\n const ref = React.useCallback((element)=>{\n if (element) {\n observer === null || observer === void 0 ? void 0 : observer.observe(element);\n } else {\n observer === null || observer === void 0 ? void 0 : observer.disconnect();\n }\n }, [\n observer\n ]);\n return ref;\n};\n"],"names":["useResizeObserverRef","callback","targetDocument","useFluent","observer","React","useState","_targetDocument_defaultView","ResizeObserverConstructor","defaultView","ResizeObserver","ref","useCallback","element","observe","disconnect"],"mappings":";;;;+BAEaA;;;eAAAA;;;;iEAFU;qCACyB;AACzC,MAAMA,uBAAuB,CAACC;IACjC,MAAM,EAAEC,cAAc,EAAE,GAAGC,IAAAA,uCAAS;IACpC,MAAM,CAACC,SAAS,GAAGC,OAAMC,QAAQ,CAAC;QAC9B,IAAIC;QACJ,MAAMC,4BAA4BN,mBAAmB,QAAQA,mBAAmB,KAAK,IAAI,KAAK,IAAI,AAACK,CAAAA,8BAA8BL,eAAeO,WAAW,AAAD,MAAO,QAAQF,gCAAgC,KAAK,IAAI,KAAK,IAAIA,4BAA4BG,cAAc;QACrQ,IAAIF,2BAA2B;YAC3B,OAAO,IAAIA,0BAA0BP;QACzC;IACJ;IACA,MAAMU,MAAMN,OAAMO,WAAW,CAAC,CAACC;QAC3B,IAAIA,SAAS;YACTT,aAAa,QAAQA,aAAa,KAAK,IAAI,KAAK,IAAIA,SAASU,OAAO,CAACD;QACzE,OAAO;YACHT,aAAa,QAAQA,aAAa,KAAK,IAAI,KAAK,IAAIA,SAASW,UAAU;QAC3E;IACJ,GAAG;QACCX;KACH;IACD,OAAOO;AACX"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useTagPickerFilter", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useTagPickerFilter;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _TagPickerOption = require("../TagPickerOption");
|
|
14
|
+
function defaultRenderOption(option) {
|
|
15
|
+
return /*#__PURE__*/ _react.createElement(_TagPickerOption.TagPickerOption, {
|
|
16
|
+
value: option,
|
|
17
|
+
key: option
|
|
18
|
+
}, option);
|
|
19
|
+
}
|
|
20
|
+
function useTagPickerFilter({ filter: filterOverride, noOptionsElement, renderOption = defaultRenderOption, query, options }) {
|
|
21
|
+
const defaultFilter = _react.useCallback((option)=>{
|
|
22
|
+
const trimmedQuery = query.trim();
|
|
23
|
+
if (trimmedQuery === '') {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
return option.toLowerCase().includes(trimmedQuery.toLowerCase());
|
|
27
|
+
}, [
|
|
28
|
+
query
|
|
29
|
+
]);
|
|
30
|
+
const filter = filterOverride !== null && filterOverride !== void 0 ? filterOverride : defaultFilter;
|
|
31
|
+
const filteredOptions = _react.useMemo(()=>options.reduce((accumulator, option, index)=>{
|
|
32
|
+
if (filter(option, index)) {
|
|
33
|
+
accumulator.push(renderOption(option));
|
|
34
|
+
}
|
|
35
|
+
return accumulator;
|
|
36
|
+
}, []), [
|
|
37
|
+
options,
|
|
38
|
+
renderOption,
|
|
39
|
+
filter
|
|
40
|
+
]);
|
|
41
|
+
return filteredOptions.length === 0 ? [
|
|
42
|
+
noOptionsElement.key ? noOptionsElement : /*#__PURE__*/ _react.cloneElement(noOptionsElement, {
|
|
43
|
+
key: 'no-options'
|
|
44
|
+
})
|
|
45
|
+
] : filteredOptions;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTagPickerFilter.js"],"sourcesContent":["import * as React from 'react';\nimport { TagPickerOption } from '../TagPickerOption';\nfunction defaultRenderOption(option) {\n return /*#__PURE__*/ React.createElement(TagPickerOption, {\n value: option,\n key: option\n }, option);\n}\nexport function useTagPickerFilter({ filter: filterOverride, noOptionsElement, renderOption = defaultRenderOption, query, options }) {\n const defaultFilter = React.useCallback((option)=>{\n const trimmedQuery = query.trim();\n if (trimmedQuery === '') {\n return true;\n }\n return option.toLowerCase().includes(trimmedQuery.toLowerCase());\n }, [\n query\n ]);\n const filter = filterOverride !== null && filterOverride !== void 0 ? filterOverride : defaultFilter;\n const filteredOptions = React.useMemo(()=>options.reduce((accumulator, option, index)=>{\n if (filter(option, index)) {\n accumulator.push(renderOption(option));\n }\n return accumulator;\n }, []), [\n options,\n renderOption,\n filter\n ]);\n return filteredOptions.length === 0 ? [\n noOptionsElement.key ? noOptionsElement : /*#__PURE__*/ React.cloneElement(noOptionsElement, {\n key: 'no-options'\n })\n ] : filteredOptions;\n}\n"],"names":["useTagPickerFilter","defaultRenderOption","option","React","createElement","TagPickerOption","value","key","filter","filterOverride","noOptionsElement","renderOption","query","options","defaultFilter","useCallback","trimmedQuery","trim","toLowerCase","includes","filteredOptions","useMemo","reduce","accumulator","index","push","length","cloneElement"],"mappings":";;;;+BAQgBA;;;eAAAA;;;;iEARO;iCACS;AAChC,SAASC,oBAAoBC,MAAM;IAC/B,OAAO,WAAW,GAAGC,OAAMC,aAAa,CAACC,gCAAe,EAAE;QACtDC,OAAOJ;QACPK,KAAKL;IACT,GAAGA;AACP;AACO,SAASF,mBAAmB,EAAEQ,QAAQC,cAAc,EAAEC,gBAAgB,EAAEC,eAAeV,mBAAmB,EAAEW,KAAK,EAAEC,OAAO,EAAE;IAC/H,MAAMC,gBAAgBX,OAAMY,WAAW,CAAC,CAACb;QACrC,MAAMc,eAAeJ,MAAMK,IAAI;QAC/B,IAAID,iBAAiB,IAAI;YACrB,OAAO;QACX;QACA,OAAOd,OAAOgB,WAAW,GAAGC,QAAQ,CAACH,aAAaE,WAAW;IACjE,GAAG;QACCN;KACH;IACD,MAAMJ,SAASC,mBAAmB,QAAQA,mBAAmB,KAAK,IAAIA,iBAAiBK;IACvF,MAAMM,kBAAkBjB,OAAMkB,OAAO,CAAC,IAAIR,QAAQS,MAAM,CAAC,CAACC,aAAarB,QAAQsB;YACvE,IAAIhB,OAAON,QAAQsB,QAAQ;gBACvBD,YAAYE,IAAI,CAACd,aAAaT;YAClC;YACA,OAAOqB;QACX,GAAG,EAAE,GAAG;QACRV;QACAF;QACAH;KACH;IACD,OAAOY,gBAAgBM,MAAM,KAAK,IAAI;QAClChB,iBAAiBH,GAAG,GAAGG,mBAAmB,WAAW,GAAGP,OAAMwB,YAAY,CAACjB,kBAAkB;YACzFH,KAAK;QACT;KACH,GAAGa;AACR"}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentui/react-tag-picker",
|
|
3
|
+
"version": "9.0.0",
|
|
4
|
+
"description": "FluentUI TagPicker component",
|
|
5
|
+
"main": "lib-commonjs/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"typings": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"*.md",
|
|
11
|
+
"dist/*.d.ts",
|
|
12
|
+
"lib",
|
|
13
|
+
"lib-commonjs"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/microsoft/fluentui"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "just-scripts build",
|
|
22
|
+
"clean": "just-scripts clean",
|
|
23
|
+
"generate-api": "just-scripts generate-api",
|
|
24
|
+
"lint": "just-scripts lint",
|
|
25
|
+
"start": "yarn storybook",
|
|
26
|
+
"storybook": "start-storybook",
|
|
27
|
+
"test": "jest --passWithNoTests",
|
|
28
|
+
"test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
|
|
29
|
+
"type-check": "tsc -b tsconfig.json",
|
|
30
|
+
"e2e": "cypress run --component",
|
|
31
|
+
"e2e:local": "cypress open --component",
|
|
32
|
+
"bundle-size": "monosize measure"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@fluentui/eslint-plugin": "*",
|
|
36
|
+
"@fluentui/react-conformance": "*",
|
|
37
|
+
"@fluentui/react-conformance-griffel": "*",
|
|
38
|
+
"@fluentui/scripts-api-extractor": "*",
|
|
39
|
+
"@fluentui/scripts-tasks": "*"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@fluentui/react-jsx-runtime": "^9.0.37",
|
|
43
|
+
"@fluentui/react-shared-contexts": "^9.18.0",
|
|
44
|
+
"@fluentui/react-theme": "^9.1.19",
|
|
45
|
+
"@fluentui/react-utilities": "^9.18.8",
|
|
46
|
+
"@fluentui/react-portal": "^9.4.24",
|
|
47
|
+
"@fluentui/react-tabster": "^9.21.2",
|
|
48
|
+
"@fluentui/react-aria": "^9.11.2",
|
|
49
|
+
"@fluentui/react-icons": "^2.0.237",
|
|
50
|
+
"@fluentui/react-combobox": "^9.11.2",
|
|
51
|
+
"@fluentui/react-tags": "^9.3.4",
|
|
52
|
+
"@fluentui/react-context-selector": "^9.1.59",
|
|
53
|
+
"@fluentui/react-positioning": "^9.15.0",
|
|
54
|
+
"@fluentui/keyboard-keys": "^9.0.7",
|
|
55
|
+
"@fluentui/react-field": "^9.1.64",
|
|
56
|
+
"@griffel/react": "^1.5.14",
|
|
57
|
+
"@swc/helpers": "^0.5.1"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@types/react": ">=16.14.0 <19.0.0",
|
|
61
|
+
"@types/react-dom": ">=16.9.0 <19.0.0",
|
|
62
|
+
"react": ">=16.14.0 <19.0.0",
|
|
63
|
+
"react-dom": ">=16.14.0 <19.0.0"
|
|
64
|
+
},
|
|
65
|
+
"exports": {
|
|
66
|
+
".": {
|
|
67
|
+
"types": "./dist/index.d.ts",
|
|
68
|
+
"node": "./lib-commonjs/index.js",
|
|
69
|
+
"import": "./lib/index.js",
|
|
70
|
+
"require": "./lib-commonjs/index.js"
|
|
71
|
+
},
|
|
72
|
+
"./package.json": "./package.json"
|
|
73
|
+
},
|
|
74
|
+
"beachball": {
|
|
75
|
+
"disallowedChangeTypes": [
|
|
76
|
+
"major",
|
|
77
|
+
"prerelease"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|