@fluentui/react-tag-picker 9.10.5 → 9.10.7
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 +29 -2
- package/lib/components/TagPicker/TagPicker.js.map +1 -1
- package/lib/components/TagPicker/TagPicker.types.js.map +1 -1
- package/lib/components/TagPicker/index.js.map +1 -1
- package/lib/components/TagPicker/renderTagPicker.js.map +1 -1
- package/lib/components/TagPicker/useTagPicker.js.map +1 -1
- package/lib/components/TagPicker/useTagPickerContextValues.js.map +1 -1
- package/lib/components/TagPickerButton/TagPickerButton.js.map +1 -1
- package/lib/components/TagPickerButton/TagPickerButton.types.js.map +1 -1
- package/lib/components/TagPickerButton/index.js.map +1 -1
- package/lib/components/TagPickerButton/renderTagPickerButton.js +2 -2
- package/lib/components/TagPickerButton/renderTagPickerButton.js.map +1 -1
- package/lib/components/TagPickerButton/useTagPickerButton.js.map +1 -1
- package/lib/components/TagPickerButton/useTagPickerButtonStyles.styles.raw.js.map +1 -1
- package/lib/components/TagPickerControl/TagPickerControl.js.map +1 -1
- package/lib/components/TagPickerControl/TagPickerControl.types.js.map +1 -1
- package/lib/components/TagPickerControl/index.js.map +1 -1
- package/lib/components/TagPickerControl/renderTagPickerControl.js +2 -2
- package/lib/components/TagPickerControl/renderTagPickerControl.js.map +1 -1
- package/lib/components/TagPickerControl/useTagPickerControl.js +6 -3
- package/lib/components/TagPickerControl/useTagPickerControl.js.map +1 -1
- package/lib/components/TagPickerControl/useTagPickerControlStyles.styles.raw.js.map +1 -1
- package/lib/components/TagPickerGroup/TagPickerGroup.js.map +1 -1
- package/lib/components/TagPickerGroup/TagPickerGroup.types.js.map +1 -1
- package/lib/components/TagPickerGroup/index.js.map +1 -1
- package/lib/components/TagPickerGroup/renderTagPickerGroup.js.map +1 -1
- package/lib/components/TagPickerGroup/useTagPickerGroup.js.map +1 -1
- package/lib/components/TagPickerGroup/useTagPickerGroupStyles.styles.raw.js.map +1 -1
- package/lib/components/TagPickerInput/TagPickerInput.js.map +1 -1
- package/lib/components/TagPickerInput/TagPickerInput.types.js.map +1 -1
- package/lib/components/TagPickerInput/index.js.map +1 -1
- package/lib/components/TagPickerInput/renderTagPickerInput.js +2 -2
- package/lib/components/TagPickerInput/renderTagPickerInput.js.map +1 -1
- package/lib/components/TagPickerInput/useTagPickerInput.js.map +1 -1
- package/lib/components/TagPickerInput/useTagPickerInputStyles.styles.raw.js.map +1 -1
- package/lib/components/TagPickerList/TagPickerList.js.map +1 -1
- package/lib/components/TagPickerList/TagPickerList.types.js.map +1 -1
- package/lib/components/TagPickerList/index.js.map +1 -1
- package/lib/components/TagPickerList/renderTagPickerList.js +2 -2
- package/lib/components/TagPickerList/renderTagPickerList.js.map +1 -1
- package/lib/components/TagPickerList/useTagPickerList.js.map +1 -1
- package/lib/components/TagPickerList/useTagPickerListStyles.styles.raw.js.map +1 -1
- package/lib/components/TagPickerOption/TagPickerOption.js.map +1 -1
- package/lib/components/TagPickerOption/TagPickerOption.types.js.map +1 -1
- package/lib/components/TagPickerOption/index.js.map +1 -1
- package/lib/components/TagPickerOption/renderTagPickerOption.js +2 -2
- package/lib/components/TagPickerOption/renderTagPickerOption.js.map +1 -1
- package/lib/components/TagPickerOption/useTagPickerOption.js +2 -0
- package/lib/components/TagPickerOption/useTagPickerOption.js.map +1 -1
- package/lib/components/TagPickerOption/useTagPickerOptionStyles.styles.raw.js.map +1 -1
- package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.js.map +1 -1
- package/lib/components/TagPickerOptionGroup/TagPickerOptionGroup.types.js.map +1 -1
- package/lib/components/TagPickerOptionGroup/index.js.map +1 -1
- package/lib/components/TagPickerOptionGroup/renderTagPickerOptionGroup.js.map +1 -1
- package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroup.js.map +1 -1
- package/lib/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.raw.js.map +1 -1
- package/lib/contexts/TagPickerContext.js.map +1 -1
- package/lib/utils/tagPicker2Tag.js.map +1 -1
- package/lib/utils/tokens.js.map +1 -1
- package/lib/utils/useExpandLabel.js.map +1 -1
- package/lib/utils/useResizeObserverRef.js.map +1 -1
- package/lib/utils/useTabsterEscapeIgnore.js.map +1 -1
- package/lib/utils/useTagPickerFilter.js.map +1 -1
- package/lib-commonjs/TagPicker.cjs +6 -6
- package/lib-commonjs/TagPickerButton.cjs +7 -7
- package/lib-commonjs/TagPickerControl.cjs +9 -9
- package/lib-commonjs/TagPickerControl.cjs.map +1 -1
- package/lib-commonjs/TagPickerGroup.cjs +6 -6
- package/lib-commonjs/TagPickerInput.cjs +7 -7
- package/lib-commonjs/TagPickerList.cjs +6 -6
- package/lib-commonjs/TagPickerOption.cjs +6 -6
- package/lib-commonjs/TagPickerOptionGroup.cjs +6 -6
- package/lib-commonjs/components/TagPicker/TagPicker.cjs.map +1 -1
- package/lib-commonjs/components/TagPicker/TagPicker.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPicker/index.cjs +6 -6
- package/lib-commonjs/components/TagPicker/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPicker/renderTagPicker.cjs.map +1 -1
- package/lib-commonjs/components/TagPicker/useTagPicker.cjs +3 -3
- package/lib-commonjs/components/TagPicker/useTagPicker.cjs.map +1 -1
- package/lib-commonjs/components/TagPicker/useTagPickerContextValues.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/TagPickerButton.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/TagPickerButton.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/index.cjs +7 -7
- package/lib-commonjs/components/TagPickerButton/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/renderTagPickerButton.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/useTagPickerButton.cjs +3 -3
- package/lib-commonjs/components/TagPickerButton/useTagPickerButton.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TagPickerButton/useTagPickerButtonStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/TagPickerControl.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/TagPickerControl.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/index.cjs +9 -9
- package/lib-commonjs/components/TagPickerControl/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/renderTagPickerControl.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/useTagPickerControl.cjs +9 -6
- package/lib-commonjs/components/TagPickerControl/useTagPickerControl.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.cjs +5 -5
- package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.raw.cjs +5 -5
- package/lib-commonjs/components/TagPickerControl/useTagPickerControlStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/TagPickerGroup.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/index.cjs +6 -6
- package/lib-commonjs/components/TagPickerGroup/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/renderTagPickerGroup.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroup.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TagPickerGroup/useTagPickerGroupStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/TagPickerInput.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/TagPickerInput.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/index.cjs +7 -7
- package/lib-commonjs/components/TagPickerInput/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/renderTagPickerInput.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/useTagPickerInput.cjs +3 -3
- package/lib-commonjs/components/TagPickerInput/useTagPickerInput.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TagPickerInput/useTagPickerInputStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/TagPickerList.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/TagPickerList.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/index.cjs +6 -6
- package/lib-commonjs/components/TagPickerList/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/renderTagPickerList.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/useTagPickerList.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TagPickerList/useTagPickerListStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/TagPickerOption.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/TagPickerOption.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/index.cjs +6 -6
- package/lib-commonjs/components/TagPickerOption/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/renderTagPickerOption.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/useTagPickerOption.cjs +2 -0
- package/lib-commonjs/components/TagPickerOption/useTagPickerOption.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TagPickerOption/useTagPickerOptionStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/TagPickerOptionGroup.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/TagPickerOptionGroup.types.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/index.cjs +6 -6
- package/lib-commonjs/components/TagPickerOptionGroup/index.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/renderTagPickerOptionGroup.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroup.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/contexts/TagPickerContext.cjs +4 -4
- package/lib-commonjs/contexts/TagPickerContext.cjs.map +1 -1
- package/lib-commonjs/index.cjs +47 -47
- package/lib-commonjs/index.cjs.map +1 -1
- package/lib-commonjs/utils/tagPicker2Tag.cjs +4 -4
- package/lib-commonjs/utils/tagPicker2Tag.cjs.map +1 -1
- package/lib-commonjs/utils/tokens.cjs +3 -3
- package/lib-commonjs/utils/tokens.cjs.map +1 -1
- package/lib-commonjs/utils/useExpandLabel.cjs.map +1 -1
- package/lib-commonjs/utils/useResizeObserverRef.cjs.map +1 -1
- package/lib-commonjs/utils/useTabsterEscapeIgnore.cjs.map +1 -1
- package/lib-commonjs/utils/useTagPickerFilter.cjs.map +1 -1
- package/package.json +11 -11
|
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
TagPickerOption
|
|
12
|
+
get TagPickerOption () {
|
|
13
13
|
return _TagPickerOption.TagPickerOption;
|
|
14
14
|
},
|
|
15
|
-
renderTagPickerOption_unstable
|
|
15
|
+
get renderTagPickerOption_unstable () {
|
|
16
16
|
return _renderTagPickerOption.renderTagPickerOption_unstable;
|
|
17
17
|
},
|
|
18
|
-
tagPickerOptionClassNames
|
|
18
|
+
get tagPickerOptionClassNames () {
|
|
19
19
|
return _useTagPickerOptionStylesstyles.tagPickerOptionClassNames;
|
|
20
20
|
},
|
|
21
|
-
useTagPickerOptionStyles_unstable
|
|
21
|
+
get useTagPickerOptionStyles_unstable () {
|
|
22
22
|
return _useTagPickerOptionStylesstyles.useTagPickerOptionStyles_unstable;
|
|
23
23
|
},
|
|
24
|
-
useTagPickerOption_unstable
|
|
24
|
+
get useTagPickerOption_unstable () {
|
|
25
25
|
return _useTagPickerOption.useTagPickerOption_unstable;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOption/index.ts"],"sourcesContent":["export { TagPickerOption } from './TagPickerOption';\nexport type { TagPickerOptionProps, TagPickerOptionSlots, TagPickerOptionState } from './TagPickerOption.types';\nexport { renderTagPickerOption_unstable } from './renderTagPickerOption';\nexport { useTagPickerOption_unstable } from './useTagPickerOption';\nexport { tagPickerOptionClassNames, useTagPickerOptionStyles_unstable } from './useTagPickerOptionStyles.styles';\n"],"names":["TagPickerOption","renderTagPickerOption_unstable","useTagPickerOption_unstable","tagPickerOptionClassNames","useTagPickerOptionStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,gCAAe;;;eAEfC,qDAA8B;;;eAE9BE,yDAAyB;;;eAAEC,iEAAiC;;;eAD5DF,+CAA2B;;;iCAHJ,uBAAoB;uCAEL,6BAA0B;oCAC7B,0BAAuB;gDACU,uCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOption/renderTagPickerOption.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TagPickerOptionState, TagPickerOptionSlots } from './TagPickerOption.types';\n\n/**\n * Render the final JSX of TagPickerOption\n */\nexport const renderTagPickerOption_unstable = (state: TagPickerOptionState): JSXElement => {\n assertSlots<TagPickerOptionSlots>(state);\n\n return (\n <state.root>\n {state.media && <state.media />}\n {state.root.children}\n {state.secondaryContent && <state.secondaryContent />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTagPickerOption_unstable","state","root","media","children","secondaryContent"],"mappings":";;;;+BAUaC;;;;;;;gCATb,gDAAiD,GAEjD,SAASD,WAAW,QAAQ,4BAA4B;AAOjD,uCAAuC,CAACE;QAC7CF,2BAAAA,EAAkCE;IAElC,OAAA,WAAA,OACE,gBAAA,EAACA,MAAMC,IAAI,EAAA;;YACRD,MAAME,KAAK,IAAA,WAAA,OAAI,eAAA,EAACF,MAAME,KAAK,EAAA,CAAA;YAC3BF,MAAMC,IAAI,CAACE,QAAQ;YACnBH,MAAMI,gBAAgB,IAAA,WAAA,OAAI,eAAA,EAACJ,MAAMI,gBAAgB,EAAA,CAAA;;;AAGxD,EAAE"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "useTagPickerOption_unstable", {
|
|
|
12
12
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
13
|
const _reactcombobox = require("@fluentui/react-combobox");
|
|
14
14
|
const useTagPickerOption_unstable = (props, ref)=>{
|
|
15
|
+
var _props_ariaselected;
|
|
15
16
|
const optionState = (0, _reactcombobox.useOption_unstable)(props, ref);
|
|
16
17
|
const state = {
|
|
17
18
|
components: {
|
|
@@ -29,6 +30,7 @@ const useTagPickerOption_unstable = (props, ref)=>{
|
|
|
29
30
|
root: _reactutilities.slot.always({
|
|
30
31
|
...optionState.root,
|
|
31
32
|
role: 'option',
|
|
33
|
+
'aria-selected': (_props_ariaselected = props['aria-selected']) !== null && _props_ariaselected !== void 0 ? _props_ariaselected : optionState.selected,
|
|
32
34
|
'aria-checked': props['aria-checked']
|
|
33
35
|
}, {
|
|
34
36
|
elementType: 'div'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOption/useTagPickerOption.ts"],"sourcesContent":["'use client';\n\nimport type * 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 // eslint-disable-next-line @typescript-eslint/no-deprecated\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 {\n ...optionState.root,\n role: 'option',\n 'aria-selected': props['aria-selected'] ?? optionState.selected,\n 'aria-checked': props['aria-checked'],\n },\n {\n elementType: 'div',\n },\n ),\n };\n\n return state;\n};\n"],"names":["slot","useOption_unstable","useTagPickerOption_unstable","props","ref","optionState","state","components","media","secondaryContent","optional","elementType","root","always","role","selected"],"mappings":"AAAA;;;;;+BAgBaE;;;;;;gCAbQ,4BAA4B;+BACd,2BAA2B;AAYvD,oCAAoC,CACzCC,OACAC;QAoBuBD;IAlBvB,MAAME,kBAAcJ,iCAAAA,EAAmBE,OAAOC;IAC9C,MAAME,QAA8B;QAClCC,YAAY;YACV,4DAA4D;YAC5D,GAAGF,YAAYE,UAAU;YACzBC,OAAO;YACPC,kBAAkB;QACpB;QACAD,OAAOR,oBAAAA,CAAKU,QAAQ,CAACP,MAAMK,KAAK,EAAE;YAChCG,aAAa;QACf;QACAF,kBAAkBT,oBAAAA,CAAKU,QAAQ,CAACP,MAAMM,gBAAgB,EAAE;YACtDE,aAAa;QACf;QACAC,MAAMZ,oBAAAA,CAAKa,MAAM,CACf;YACE,GAAGR,YAAYO,IAAI;YACnBE,MAAM;YACN,eAAe,EAAA,CAAEX,sBAAAA,KAAK,CAAC,gBAAgB,AAAhB,MAAgB,QAAtBA,wBAAAA,KAAAA,IAAAA,sBAA0BE,YAAYU,QAAQ;YAC/D,gBAAgBZ,KAAK,CAAC,eAAe;QACvC,GACA;YACEQ,aAAa;QACf;IAEJ;IAEA,OAAOL;AACT,EAAE"}
|
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
tagPickerOptionClassNames
|
|
13
|
+
get tagPickerOptionClassNames () {
|
|
14
14
|
return tagPickerOptionClassNames;
|
|
15
15
|
},
|
|
16
|
-
useTagPickerOptionStyles_unstable
|
|
16
|
+
get useTagPickerOptionStyles_unstable () {
|
|
17
17
|
return useTagPickerOptionStyles_unstable;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useTagPickerOptionStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from \"@griffel/react\";\nimport { useOptionStyles_unstable } from \"@fluentui/react-combobox\";\nimport { typographyStyles } from \"@fluentui/react-theme\";\nexport const tagPickerOptionClassNames = {\n root: 'fui-TagPickerOption',\n media: 'fui-TagPickerOption__media',\n secondaryContent: 'fui-TagPickerOption__secondaryContent'\n};\nconst useRootBaseStyle = makeResetStyles({\n display: 'flex',\n alignItems: 'center'\n});\nconst useRootStyles = makeStyles({\n secondaryContent: {\n display: 'grid',\n gridTemplateColumns: 'auto 1fr'\n }\n});\nconst useSecondaryContentBaseStyle = makeResetStyles({\n gridColumnStart: 2,\n gridRowStart: 2,\n ...typographyStyles.caption1\n});\nconst useMediaBaseStyle = makeResetStyles({\n gridRowStart: 'span 2'\n});\n/**\n * Apply styling to the TagPickerOption slots based on the state\n */ export const useTagPickerOptionStyles_unstable = (state)=>{\n const rootBaseStyle = useRootBaseStyle();\n const rootStyles = useRootStyles();\n const secondaryContentBaseStyle = useSecondaryContentBaseStyle();\n const mediaBaseStyle = useMediaBaseStyle();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tagPickerOptionClassNames.root, rootBaseStyle, state.secondaryContent && rootStyles.secondaryContent, state.root.className);\n useOptionStyles_unstable({\n ...state,\n active: false,\n disabled: false,\n focusVisible: false,\n checkIcon: undefined,\n selected: false\n });\n if (state.media) {\n // eslint-disable-next-line react-hooks/immutability\n state.media.className = mergeClasses(tagPickerOptionClassNames.media, mediaBaseStyle, state.media.className);\n }\n if (state.secondaryContent) {\n // eslint-disable-next-line react-hooks/immutability\n state.secondaryContent.className = mergeClasses(tagPickerOptionClassNames.secondaryContent, secondaryContentBaseStyle, state.secondaryContent.className);\n }\n return state;\n};\n"],"names":["__resetStyles","__styles","mergeClasses","useOptionStyles_unstable","typographyStyles","tagPickerOptionClassNames","root","media","secondaryContent","useRootBaseStyle","useRootStyles","mc9l5x","Budl1dq","d","useSecondaryContentBaseStyle","useMediaBaseStyle","useTagPickerOptionStyles_unstable","state","rootBaseStyle","rootStyles","secondaryContentBaseStyle","mediaBaseStyle","className","active","disabled","focusVisible","checkIcon","undefined","selected"],"mappings":"AAAA,YAAY;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["useTagPickerOptionStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from \"@griffel/react\";\nimport { useOptionStyles_unstable } from \"@fluentui/react-combobox\";\nimport { typographyStyles } from \"@fluentui/react-theme\";\nexport const tagPickerOptionClassNames = {\n root: 'fui-TagPickerOption',\n media: 'fui-TagPickerOption__media',\n secondaryContent: 'fui-TagPickerOption__secondaryContent'\n};\nconst useRootBaseStyle = makeResetStyles({\n display: 'flex',\n alignItems: 'center'\n});\nconst useRootStyles = makeStyles({\n secondaryContent: {\n display: 'grid',\n gridTemplateColumns: 'auto 1fr'\n }\n});\nconst useSecondaryContentBaseStyle = makeResetStyles({\n gridColumnStart: 2,\n gridRowStart: 2,\n ...typographyStyles.caption1\n});\nconst useMediaBaseStyle = makeResetStyles({\n gridRowStart: 'span 2'\n});\n/**\n * Apply styling to the TagPickerOption slots based on the state\n */ export const useTagPickerOptionStyles_unstable = (state)=>{\n const rootBaseStyle = useRootBaseStyle();\n const rootStyles = useRootStyles();\n const secondaryContentBaseStyle = useSecondaryContentBaseStyle();\n const mediaBaseStyle = useMediaBaseStyle();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tagPickerOptionClassNames.root, rootBaseStyle, state.secondaryContent && rootStyles.secondaryContent, state.root.className);\n useOptionStyles_unstable({\n ...state,\n active: false,\n disabled: false,\n focusVisible: false,\n checkIcon: undefined,\n selected: false\n });\n if (state.media) {\n // eslint-disable-next-line react-hooks/immutability\n state.media.className = mergeClasses(tagPickerOptionClassNames.media, mediaBaseStyle, state.media.className);\n }\n if (state.secondaryContent) {\n // eslint-disable-next-line react-hooks/immutability\n state.secondaryContent.className = mergeClasses(tagPickerOptionClassNames.secondaryContent, secondaryContentBaseStyle, state.secondaryContent.className);\n }\n return state;\n};\n"],"names":["__resetStyles","__styles","mergeClasses","useOptionStyles_unstable","typographyStyles","tagPickerOptionClassNames","root","media","secondaryContent","useRootBaseStyle","useRootStyles","mc9l5x","Budl1dq","d","useSecondaryContentBaseStyle","useMediaBaseStyle","useTagPickerOptionStyles_unstable","state","rootBaseStyle","rootStyles","secondaryContentBaseStyle","mediaBaseStyle","className","active","disabled","focusVisible","checkIcon","undefined","selected"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAICK,yBAAyB;;;;eAyBrBW,iCAAiC;;;uBA5BQ,gBAAgB;+BACjC,0BAA0B;AAE5D,kCAAkC;IACrCV,IAAI,EAAE,qBAAqB;IAC3BC,KAAK,EAAE,4BAA4B;IACnCC,gBAAgB,EAAE;AACtB,CAAC;AACD,MAAMC,gBAAgB,GAAA,WAAA,OAAGT,oBAAA,EAAA,WAAA,MAAA;IAAA;CAGxB,CAAC;AACF,MAAMU,aAAa,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAO,gBAAA,EAAA;QAAAG,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;KAAA;AAAA,CAKrB,CAAC;AACF,MAAMC,4BAA4B,GAAA,WAAA,OAAGd,oBAAA,EAAA,YAAA,MAAA;IAAA;CAIpC,CAAC;AACF,MAAMe,iBAAiB,GAAA,WAAA,OAAGf,oBAAA,EAAA,WAAA,MAAA;IAAA;CAEzB,CAAC;AAGS,2CAA2CiB,KAAK,IAAG;IAC1D,MAAMC,aAAa,GAAGT,gBAAgB,CAAC,CAAC;IACxC,MAAMU,UAAU,GAAGT,aAAa,CAAC,CAAC;IAClC,MAAMU,yBAAyB,GAAGN,4BAA4B,CAAC,CAAC;IAChE,MAAMO,cAAc,GAAGN,iBAAiB,CAAC,CAAC;IAC1C,oDAAA;IACAE,KAAK,CAACX,IAAI,CAACgB,SAAS,GAAGpB,uBAAY,EAACG,yBAAyB,CAACC,IAAI,EAAEY,aAAa,EAAED,KAAK,CAACT,gBAAgB,IAAIW,UAAU,CAACX,gBAAgB,EAAES,KAAK,CAACX,IAAI,CAACgB,SAAS,CAAC;QAC/JnB,uCAAwB,EAAC;QACrB,GAAGc,KAAK;QACRM,MAAM,EAAE,KAAK;QACbC,QAAQ,EAAE,KAAK;QACfC,YAAY,EAAE,KAAK;QACnBC,SAAS,EAAEC,SAAS;QACpBC,QAAQ,EAAE;IACd,CAAC,CAAC;IACF,IAAIX,KAAK,CAACV,KAAK,EAAE;QACb,oDAAA;QACAU,KAAK,CAACV,KAAK,CAACe,SAAS,GAAGpB,uBAAY,EAACG,yBAAyB,CAACE,KAAK,EAAEc,cAAc,EAAEJ,KAAK,CAACV,KAAK,CAACe,SAAS,CAAC;IAChH;IACA,IAAIL,KAAK,CAACT,gBAAgB,EAAE;QACxB,oDAAA;QACAS,KAAK,CAACT,gBAAgB,CAACc,SAAS,OAAGpB,mBAAY,EAACG,yBAAyB,CAACG,gBAAgB,EAAEY,yBAAyB,EAAEH,KAAK,CAACT,gBAAgB,CAACc,SAAS,CAAC;IAC5J;IACA,OAAOL,KAAK;AAChB,CAAC"}
|
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
tagPickerOptionClassNames
|
|
13
|
+
get tagPickerOptionClassNames () {
|
|
14
14
|
return tagPickerOptionClassNames;
|
|
15
15
|
},
|
|
16
|
-
useTagPickerOptionStyles_unstable
|
|
16
|
+
get useTagPickerOptionStyles_unstable () {
|
|
17
17
|
return useTagPickerOptionStyles_unstable;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOption/useTagPickerOptionStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TagPickerOptionSlots, TagPickerOptionState } from './TagPickerOption.types';\nimport { useOptionStyles_unstable } from '@fluentui/react-combobox';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const tagPickerOptionClassNames: SlotClassNames<TagPickerOptionSlots> = {\n root: 'fui-TagPickerOption',\n media: 'fui-TagPickerOption__media',\n secondaryContent: 'fui-TagPickerOption__secondaryContent',\n};\n\nconst useRootBaseStyle = makeResetStyles({\n display: 'flex',\n alignItems: 'center',\n});\n\nconst useRootStyles = makeStyles({\n secondaryContent: {\n display: 'grid',\n gridTemplateColumns: 'auto 1fr',\n },\n});\n\nconst useSecondaryContentBaseStyle = makeResetStyles({\n gridColumnStart: 2,\n gridRowStart: 2,\n ...typographyStyles.caption1,\n});\n\nconst useMediaBaseStyle = makeResetStyles({\n gridRowStart: 'span 2',\n});\n\n/**\n * Apply styling to the TagPickerOption slots based on the state\n */\nexport const useTagPickerOptionStyles_unstable = (state: TagPickerOptionState): TagPickerOptionState => {\n const rootBaseStyle = useRootBaseStyle();\n const rootStyles = useRootStyles();\n const secondaryContentBaseStyle = useSecondaryContentBaseStyle();\n const mediaBaseStyle = useMediaBaseStyle();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n tagPickerOptionClassNames.root,\n rootBaseStyle,\n state.secondaryContent && rootStyles.secondaryContent,\n state.root.className,\n );\n useOptionStyles_unstable({\n ...state,\n active: false,\n disabled: false,\n focusVisible: false,\n checkIcon: undefined,\n selected: false,\n });\n if (state.media) {\n // eslint-disable-next-line react-hooks/immutability\n state.media.className = mergeClasses(tagPickerOptionClassNames.media, mediaBaseStyle, state.media.className);\n }\n\n if (state.secondaryContent) {\n // eslint-disable-next-line react-hooks/immutability\n state.secondaryContent.className = mergeClasses(\n tagPickerOptionClassNames.secondaryContent,\n secondaryContentBaseStyle,\n state.secondaryContent.className,\n );\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","useOptionStyles_unstable","typographyStyles","tagPickerOptionClassNames","root","media","secondaryContent","useRootBaseStyle","display","alignItems","useRootStyles","gridTemplateColumns","useSecondaryContentBaseStyle","gridColumnStart","gridRowStart","caption1","useMediaBaseStyle","useTagPickerOptionStyles_unstable","state","rootBaseStyle","rootStyles","secondaryContentBaseStyle","mediaBaseStyle","className","active","disabled","focusVisible","checkIcon","undefined","selected"],"mappings":"AAAA;;;;;;;;;;;;QAQaK;;;;eA+BAc;;;uBArC6C,iBAAiB;+BAGlC,2BAA2B;4BACnC,wBAAwB;AAElD,kCAAwE;IAC7Eb,MAAM;IACNC,OAAO;IACPC,kBAAkB;AACpB,EAAE;AAEF,MAAMC,uBAAmBT,sBAAAA,EAAgB;IACvCU,SAAS;IACTC,YAAY;AACd;AAEA,MAAMC,oBAAgBX,iBAAAA,EAAW;IAC/BO,kBAAkB;QAChBE,SAAS;QACTG,qBAAqB;IACvB;AACF;AAEA,MAAMC,mCAA+Bd,sBAAAA,EAAgB;IACnDe,iBAAiB;IACjBC,cAAc;IACd,GAAGZ,4BAAAA,CAAiBa,QAAQ;AAC9B;AAEA,MAAMC,wBAAoBlB,sBAAAA,EAAgB;IACxCgB,cAAc;AAChB;AAKO,0CAA0C,CAACI;IAChD,MAAMC,gBAAgBZ;IACtB,MAAMa,aAAaV;IACnB,MAAMW,4BAA4BT;IAClC,MAAMU,iBAAiBN;IAEvB,oDAAoD;IACpDE,MAAMd,IAAI,CAACmB,SAAS,OAAGvB,mBAAAA,EACrBG,0BAA0BC,IAAI,EAC9Be,eACAD,MAAMZ,gBAAgB,IAAIc,WAAWd,gBAAgB,EACrDY,MAAMd,IAAI,CAACmB,SAAS;QAEtBtB,uCAAAA,EAAyB;QACvB,GAAGiB,KAAK;QACRM,QAAQ;QACRC,UAAU;QACVC,cAAc;QACdC,WAAWC;QACXC,UAAU;IACZ;IACA,IAAIX,MAAMb,KAAK,EAAE;QACf,oDAAoD;QACpDa,MAAMb,KAAK,CAACkB,SAAS,OAAGvB,mBAAAA,EAAaG,0BAA0BE,KAAK,EAAEiB,gBAAgBJ,MAAMb,KAAK,CAACkB,SAAS;IAC7G;IAEA,IAAIL,MAAMZ,gBAAgB,EAAE;QAC1B,oDAAoD;QACpDY,MAAMZ,gBAAgB,CAACiB,SAAS,OAAGvB,mBAAAA,EACjCG,0BAA0BG,gBAAgB,EAC1Ce,2BACAH,MAAMZ,gBAAgB,CAACiB,SAAS;IAEpC;IAEA,OAAOL;AACT,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOptionGroup/TagPickerOptionGroup.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTagPickerOptionGroup } from './useTagPickerOptionGroup';\nimport { renderTagPickerOptionGroup } from './renderTagPickerOptionGroup';\nimport { useTagPickerOptionGroupStyles } from './useTagPickerOptionGroupStyles.styles';\nimport type { TagPickerOptionGroupProps } from './TagPickerOptionGroup.types';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TagPickerOptionGroup component -\n * A TagPickerOptionGroup is a composite component that allows users to group TagPickerOptions.\n */\nexport const TagPickerOptionGroup: ForwardRefComponent<TagPickerOptionGroupProps> = React.forwardRef((props, ref) => {\n const state = useTagPickerOptionGroup(props, ref);\n\n useTagPickerOptionGroupStyles(state);\n useCustomStyleHook_unstable('useTagPickerOptionGroupStyles_unstable')(state);\n return renderTagPickerOptionGroup(state);\n});\n\nTagPickerOptionGroup.displayName = 'TagPickerOptionGroup';\n"],"names":["React","useTagPickerOptionGroup","renderTagPickerOptionGroup","useTagPickerOptionGroupStyles","useCustomStyleHook_unstable","TagPickerOptionGroup","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;yCAES,+BAA4B;4CACzB,kCAA+B;qDAC5B,4CAAyC;qCAE3C,kCAAkC;AAMvE,MAAMK,uBAAAA,WAAAA,GAAuEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IAC3G,MAAMC,YAAQR,gDAAAA,EAAwBM,OAAOC;QAE7CL,kEAAAA,EAA8BM;QAC9BL,gDAAAA,EAA4B,0CAA0CK;IACtE,WAAOP,sDAAAA,EAA2BO;AACpC,GAAG;AAEHJ,qBAAqBK,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOptionGroup/TagPickerOptionGroup.types.ts"],"sourcesContent":["import type { OptionGroupProps, OptionGroupSlots, OptionGroupState } from '@fluentui/react-combobox';\n\nexport type TagPickerOptionGroupSlots = OptionGroupSlots;\n\n/**\n * TagPickerOptionGroup Props\n */\nexport type TagPickerOptionGroupProps = OptionGroupProps;\n\n/**\n * State used in rendering TagPickerOptionGroup\n */\nexport type TagPickerOptionGroupState = OptionGroupState;\n"],"names":[],"mappings":"AASA;;CAEC,GACD,WAAyD"}
|
|
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
TagPickerOptionGroup
|
|
12
|
+
get TagPickerOptionGroup () {
|
|
13
13
|
return _TagPickerOptionGroup.TagPickerOptionGroup;
|
|
14
14
|
},
|
|
15
|
-
renderTagPickerOptionGroup
|
|
15
|
+
get renderTagPickerOptionGroup () {
|
|
16
16
|
return _renderTagPickerOptionGroup.renderTagPickerOptionGroup;
|
|
17
17
|
},
|
|
18
|
-
tagPickerOptionGroupClassNames
|
|
18
|
+
get tagPickerOptionGroupClassNames () {
|
|
19
19
|
return _useTagPickerOptionGroupStylesstyles.tagPickerOptionGroupClassNames;
|
|
20
20
|
},
|
|
21
|
-
useTagPickerOptionGroup
|
|
21
|
+
get useTagPickerOptionGroup () {
|
|
22
22
|
return _useTagPickerOptionGroup.useTagPickerOptionGroup;
|
|
23
23
|
},
|
|
24
|
-
useTagPickerOptionGroupStyles
|
|
24
|
+
get useTagPickerOptionGroupStyles () {
|
|
25
25
|
return _useTagPickerOptionGroupStylesstyles.useTagPickerOptionGroupStyles;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOptionGroup/index.ts"],"sourcesContent":["export { TagPickerOptionGroup } from './TagPickerOptionGroup';\nexport type {\n TagPickerOptionGroupProps,\n TagPickerOptionGroupSlots,\n TagPickerOptionGroupState,\n} from './TagPickerOptionGroup.types';\nexport { renderTagPickerOptionGroup } from './renderTagPickerOptionGroup';\nexport { useTagPickerOptionGroup } from './useTagPickerOptionGroup';\nexport { tagPickerOptionGroupClassNames, useTagPickerOptionGroupStyles } from './useTagPickerOptionGroupStyles.styles';\n"],"names":["TagPickerOptionGroup","renderTagPickerOptionGroup","useTagPickerOptionGroup","tagPickerOptionGroupClassNames","useTagPickerOptionGroupStyles"],"mappings":";;;;;;;;;;;;eAASA,0CAAoB;;;eAMpBC,sDAA0B;;;eAE1BE,mEAA8B;;;eAD9BD,gDAAuB;;;eACSE,kEAA6B;;;sCARjC,4BAAyB;4CAMnB,kCAA+B;yCAClC,+BAA4B;qDACU,4CAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOptionGroup/renderTagPickerOptionGroup.tsx"],"sourcesContent":["import type { TagPickerOptionGroupState } from './TagPickerOptionGroup.types';\nimport { renderOptionGroup_unstable } from '@fluentui/react-combobox';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TagPickerOptionGroup\n */\nexport const renderTagPickerOptionGroup: (state: TagPickerOptionGroupState) => JSXElement = renderOptionGroup_unstable;\n"],"names":["renderOptionGroup_unstable","renderTagPickerOptionGroup"],"mappings":";;;;;;;;;;+BAC2C,2BAA2B;AAM/D,MAAMC,6BAA+ED,yCAAAA,CAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOptionGroup/useTagPickerOptionGroup.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { TagPickerOptionGroupProps, TagPickerOptionGroupState } from './TagPickerOptionGroup.types';\nimport { useOptionGroup_unstable } from '@fluentui/react-combobox';\n\n/**\n * Create the state required to render TagPickerOptionGroup.\n *\n * The returned state can be modified with hooks such as useTagPickerOptionGroupStyles_unstable,\n * before being passed to renderTagPickerOptionGroup_unstable.\n *\n * @param props - props from this instance of TagPickerOptionGroup\n * @param ref - reference to root HTMLDivElement of TagPickerOptionGroup\n */\nexport const useTagPickerOptionGroup: (\n props: TagPickerOptionGroupProps,\n ref: React.Ref<HTMLDivElement>,\n) => TagPickerOptionGroupState = useOptionGroup_unstable;\n"],"names":["useOptionGroup_unstable","useTagPickerOptionGroup"],"mappings":"AAAA;;;;;;;;;;;+BAIwC,2BAA2B;AAW5D,MAAMC,0BAGoBD,sCAAAA,CAAwB"}
|
package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.cjs
CHANGED
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
tagPickerOptionGroupClassNames
|
|
13
|
+
get tagPickerOptionGroupClassNames () {
|
|
14
14
|
return tagPickerOptionGroupClassNames;
|
|
15
15
|
},
|
|
16
|
-
useTagPickerOptionGroupStyles
|
|
16
|
+
get useTagPickerOptionGroupStyles () {
|
|
17
17
|
return useTagPickerOptionGroupStyles;
|
|
18
18
|
}
|
|
19
19
|
});
|
package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useTagPickerOptionGroupStyles.styles.js"],"sourcesContent":["'use client';\nimport { mergeClasses } from \"@griffel/react\";\nimport { useOptionGroupStyles_unstable } from \"@fluentui/react-combobox\";\nexport const tagPickerOptionGroupClassNames = {\n root: 'fui-TagPickerOptionGroup',\n label: 'fui-TagPickerOptionGroup__label'\n};\n/**\n * Apply styling to the TagPickerOptionGroup slots based on the state\n */ export const useTagPickerOptionGroupStyles = (state)=>{\n useOptionGroupStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tagPickerOptionGroupClassNames.root, state.root.className);\n if (state.label) {\n // eslint-disable-next-line react-hooks/immutability\n state.label.className = mergeClasses(tagPickerOptionGroupClassNames.label, state.label.className);\n }\n return state;\n};\n"],"names":["mergeClasses","useOptionGroupStyles_unstable","tagPickerOptionGroupClassNames","root","label","useTagPickerOptionGroupStyles","state","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["useTagPickerOptionGroupStyles.styles.js"],"sourcesContent":["'use client';\nimport { mergeClasses } from \"@griffel/react\";\nimport { useOptionGroupStyles_unstable } from \"@fluentui/react-combobox\";\nexport const tagPickerOptionGroupClassNames = {\n root: 'fui-TagPickerOptionGroup',\n label: 'fui-TagPickerOptionGroup__label'\n};\n/**\n * Apply styling to the TagPickerOptionGroup slots based on the state\n */ export const useTagPickerOptionGroupStyles = (state)=>{\n useOptionGroupStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tagPickerOptionGroupClassNames.root, state.root.className);\n if (state.label) {\n // eslint-disable-next-line react-hooks/immutability\n state.label.className = mergeClasses(tagPickerOptionGroupClassNames.label, state.label.className);\n }\n return state;\n};\n"],"names":["mergeClasses","useOptionGroupStyles_unstable","tagPickerOptionGroupClassNames","root","label","useTagPickerOptionGroupStyles","state","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCE,8BAA8B;;;;;;;uBAFd,gBAAgB;+BACC,0BAA0B;AACjE,uCAAuC;IAC1CC,IAAI,EAAE,0BAA0B;IAChCC,KAAK,EAAE;AACX,CAAC;AAGU,MAAMC,6BAA6B,IAAIC,KAAK,IAAG;QACtDL,4CAA6B,EAACK,KAAK,CAAC;IACpC,oDAAA;IACAA,KAAK,CAACH,IAAI,CAACI,SAAS,OAAGP,mBAAY,EAACE,8BAA8B,CAACC,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACI,SAAS,CAAC;IAC9F,IAAID,KAAK,CAACF,KAAK,EAAE;QACb,oDAAA;QACAE,KAAK,CAACF,KAAK,CAACG,SAAS,OAAGP,mBAAY,EAACE,8BAA8B,CAACE,KAAK,EAAEE,KAAK,CAACF,KAAK,CAACG,SAAS,CAAC;IACrG;IACA,OAAOD,KAAK;AAChB,CAAC"}
|
package/lib-commonjs/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.raw.cjs
CHANGED
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
tagPickerOptionGroupClassNames
|
|
13
|
+
get tagPickerOptionGroupClassNames () {
|
|
14
14
|
return tagPickerOptionGroupClassNames;
|
|
15
15
|
},
|
|
16
|
-
useTagPickerOptionGroupStyles
|
|
16
|
+
get useTagPickerOptionGroupStyles () {
|
|
17
17
|
return useTagPickerOptionGroupStyles;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TagPickerOptionGroup/useTagPickerOptionGroupStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TagPickerOptionGroupSlots, TagPickerOptionGroupState } from './TagPickerOptionGroup.types';\nimport { useOptionGroupStyles_unstable } from '@fluentui/react-combobox';\n\nexport const tagPickerOptionGroupClassNames: SlotClassNames<TagPickerOptionGroupSlots> = {\n root: 'fui-TagPickerOptionGroup',\n label: 'fui-TagPickerOptionGroup__label',\n};\n\n/**\n * Apply styling to the TagPickerOptionGroup slots based on the state\n */\nexport const useTagPickerOptionGroupStyles = (state: TagPickerOptionGroupState): TagPickerOptionGroupState => {\n useOptionGroupStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tagPickerOptionGroupClassNames.root, state.root.className);\n\n if (state.label) {\n // eslint-disable-next-line react-hooks/immutability\n state.label.className = mergeClasses(tagPickerOptionGroupClassNames.label, state.label.className);\n }\n\n return state;\n};\n"],"names":["mergeClasses","useOptionGroupStyles_unstable","tagPickerOptionGroupClassNames","root","label","useTagPickerOptionGroupStyles","state","className"],"mappings":"AAAA;;;;;;;;;;;;QAOaE;;;;;;;uBALgB,iBAAiB;+BAGA,2BAA2B;AAElE,uCAAkF;IACvFC,MAAM;IACNC,OAAO;AACT,EAAE;AAKK,MAAMC,gCAAgC,CAACC;QAC5CL,4CAAAA,EAA8BK;IAC9B,oDAAoD;IACpDA,MAAMH,IAAI,CAACI,SAAS,OAAGP,mBAAAA,EAAaE,+BAA+BC,IAAI,EAAEG,MAAMH,IAAI,CAACI,SAAS;IAE7F,IAAID,MAAMF,KAAK,EAAE;QACf,oDAAoD;QACpDE,MAAMF,KAAK,CAACG,SAAS,OAAGP,mBAAAA,EAAaE,+BAA+BE,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IAClG;IAEA,OAAOD;AACT,EAAE"}
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
TagPickerContextProvider
|
|
13
|
+
get TagPickerContextProvider () {
|
|
14
14
|
return TagPickerContextProvider;
|
|
15
15
|
},
|
|
16
|
-
tagPickerContextDefaultValue
|
|
16
|
+
get tagPickerContextDefaultValue () {
|
|
17
17
|
return tagPickerContextDefaultValue;
|
|
18
18
|
},
|
|
19
|
-
useTagPickerContext_unstable
|
|
19
|
+
get useTagPickerContext_unstable () {
|
|
20
20
|
return useTagPickerContext_unstable;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../src/contexts/TagPickerContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ContextSelector } from '@fluentui/react-context-selector';\nimport { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { TagPickerSize } from '../components/TagPicker/TagPicker.types';\nimport type { ComboboxBaseState } from '@fluentui/react-combobox';\n\nexport interface TagPickerContextValue\n extends Pick<\n ComboboxBaseState,\n | 'open'\n | 'clearSelection'\n | 'getOptionById'\n | 'selectedOptions'\n | 'selectOption'\n | 'setHasFocus'\n | 'setOpen'\n | 'setValue'\n | 'value'\n | 'appearance'\n | 'disabled'\n > {\n triggerRef: React.RefObject<HTMLInputElement | HTMLButtonElement | null>;\n popoverRef: React.RefObject<HTMLDivElement | null>;\n popoverId: string;\n targetRef: React.RefObject<HTMLDivElement | null>;\n secondaryActionRef: React.RefObject<HTMLSpanElement | null>;\n tagPickerGroupRef: React.RefObject<HTMLDivElement | null>;\n size: TagPickerSize;\n noPopover?: boolean;\n}\n\n/**\n * @internal\n */\nexport const tagPickerContextDefaultValue: TagPickerContextValue = {\n triggerRef: React.createRef<HTMLInputElement>(),\n popoverRef: React.createRef<HTMLDivElement>(),\n targetRef: React.createRef<HTMLDivElement>(),\n tagPickerGroupRef: React.createRef<HTMLDivElement>(),\n secondaryActionRef: React.createRef<HTMLDivElement>(),\n open: false,\n clearSelection: () => null,\n getOptionById: () => undefined,\n selectedOptions: [],\n selectOption: () => null,\n setHasFocus: () => null,\n setOpen: () => null,\n setValue: () => null,\n value: undefined,\n popoverId: '',\n size: 'medium',\n appearance: 'outline',\n disabled: false,\n};\n\nconst TagPickerContext = createContext<TagPickerContextValue | undefined>(undefined);\n\nexport const TagPickerContextProvider = TagPickerContext.Provider;\nexport const useTagPickerContext_unstable = <T>(selector: ContextSelector<TagPickerContextValue, T>): T =>\n useContextSelector(TagPickerContext, (ctx = tagPickerContextDefaultValue) => selector(ctx));\n"],"names":["React","createContext","useContextSelector","tagPickerContextDefaultValue","triggerRef","createRef","popoverRef","targetRef","tagPickerGroupRef","secondaryActionRef","open","clearSelection","getOptionById","undefined","selectedOptions","selectOption","setHasFocus","setOpen","setValue","value","popoverId","size","appearance","disabled","TagPickerContext","TagPickerContextProvider","Provider","useTagPickerContext_unstable","selector","ctx"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;iEAEuB,QAAQ;sCAEmB,mCAAmC;AAgC9E,MAAMG,+BAAsD;IACjEC,0BAAYJ,OAAMK,SAAS;IAC3BC,0BAAYN,OAAMK,SAAS;IAC3BE,yBAAWP,OAAMK,SAAS;IAC1BG,iCAAmBR,OAAMK,SAAS;IAClCI,kCAAoBT,OAAMK,SAAS;IACnCK,MAAM;IACNC,gBAAgB,IAAM;IACtBC,eAAe,IAAMC;IACrBC,iBAAiB,EAAE;IACnBC,cAAc,IAAM;IACpBC,aAAa,IAAM;IACnBC,SAAS,IAAM;IACfC,UAAU,IAAM;IAChBC,OAAON;IACPO,WAAW;IACXC,MAAM;IACNC,YAAY;IACZC,UAAU;AACZ,EAAE;AAEF,MAAMC,uBAAmBvB,mCAAAA,EAAiDY;AAEnE,MAAMY,2BAA2BD,iBAAiBE,QAAQ,CAAC;AAC3D,MAAMC,+BAA+B,CAAIC,eAC9C1B,wCAAAA,EAAmBsB,kBAAkB,CAACK,MAAM1B,4BAA4B,GAAKyB,SAASC,MAAM"}
|
package/lib-commonjs/index.cjs
CHANGED
|
@@ -5,146 +5,146 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
TagPicker
|
|
12
|
+
get TagPicker () {
|
|
13
13
|
return _TagPicker.TagPicker;
|
|
14
14
|
},
|
|
15
|
-
TagPickerButton
|
|
15
|
+
get TagPickerButton () {
|
|
16
16
|
return _TagPickerButton.TagPickerButton;
|
|
17
17
|
},
|
|
18
|
-
TagPickerContextProvider
|
|
18
|
+
get TagPickerContextProvider () {
|
|
19
19
|
return _TagPickerContext.TagPickerContextProvider;
|
|
20
20
|
},
|
|
21
|
-
TagPickerControl
|
|
21
|
+
get TagPickerControl () {
|
|
22
22
|
return _TagPickerControl.TagPickerControl;
|
|
23
23
|
},
|
|
24
|
-
TagPickerGroup
|
|
24
|
+
get TagPickerGroup () {
|
|
25
25
|
return _TagPickerGroup.TagPickerGroup;
|
|
26
26
|
},
|
|
27
|
-
TagPickerInput
|
|
27
|
+
get TagPickerInput () {
|
|
28
28
|
return _TagPickerInput.TagPickerInput;
|
|
29
29
|
},
|
|
30
|
-
TagPickerList
|
|
30
|
+
get TagPickerList () {
|
|
31
31
|
return _TagPickerList.TagPickerList;
|
|
32
32
|
},
|
|
33
|
-
TagPickerOption
|
|
33
|
+
get TagPickerOption () {
|
|
34
34
|
return _TagPickerOption.TagPickerOption;
|
|
35
35
|
},
|
|
36
|
-
TagPickerOptionGroup
|
|
36
|
+
get TagPickerOptionGroup () {
|
|
37
37
|
return _TagPickerOptionGroup.TagPickerOptionGroup;
|
|
38
38
|
},
|
|
39
|
-
renderTagPickerButton_unstable
|
|
39
|
+
get renderTagPickerButton_unstable () {
|
|
40
40
|
return _TagPickerButton.renderTagPickerButton_unstable;
|
|
41
41
|
},
|
|
42
|
-
renderTagPickerControl_unstable
|
|
42
|
+
get renderTagPickerControl_unstable () {
|
|
43
43
|
return _TagPickerControl.renderTagPickerControl_unstable;
|
|
44
44
|
},
|
|
45
|
-
renderTagPickerGroup_unstable
|
|
45
|
+
get renderTagPickerGroup_unstable () {
|
|
46
46
|
return _TagPickerGroup.renderTagPickerGroup_unstable;
|
|
47
47
|
},
|
|
48
|
-
renderTagPickerInput_unstable
|
|
48
|
+
get renderTagPickerInput_unstable () {
|
|
49
49
|
return _TagPickerInput.renderTagPickerInput_unstable;
|
|
50
50
|
},
|
|
51
|
-
renderTagPickerList_unstable
|
|
51
|
+
get renderTagPickerList_unstable () {
|
|
52
52
|
return _TagPickerList.renderTagPickerList_unstable;
|
|
53
53
|
},
|
|
54
|
-
renderTagPickerOptionGroup
|
|
54
|
+
get renderTagPickerOptionGroup () {
|
|
55
55
|
return _TagPickerOptionGroup.renderTagPickerOptionGroup;
|
|
56
56
|
},
|
|
57
|
-
renderTagPickerOption_unstable
|
|
57
|
+
get renderTagPickerOption_unstable () {
|
|
58
58
|
return _TagPickerOption.renderTagPickerOption_unstable;
|
|
59
59
|
},
|
|
60
|
-
renderTagPicker_unstable
|
|
60
|
+
get renderTagPicker_unstable () {
|
|
61
61
|
return _TagPicker.renderTagPicker_unstable;
|
|
62
62
|
},
|
|
63
|
-
tagPickerButtonClassNames
|
|
63
|
+
get tagPickerButtonClassNames () {
|
|
64
64
|
return _TagPickerButton.tagPickerButtonClassNames;
|
|
65
65
|
},
|
|
66
|
-
tagPickerControlClassNames
|
|
66
|
+
get tagPickerControlClassNames () {
|
|
67
67
|
return _TagPickerControl.tagPickerControlClassNames;
|
|
68
68
|
},
|
|
69
|
-
tagPickerGroupClassNames
|
|
69
|
+
get tagPickerGroupClassNames () {
|
|
70
70
|
return _TagPickerGroup.tagPickerGroupClassNames;
|
|
71
71
|
},
|
|
72
|
-
tagPickerInputClassNames
|
|
72
|
+
get tagPickerInputClassNames () {
|
|
73
73
|
return _TagPickerInput.tagPickerInputClassNames;
|
|
74
74
|
},
|
|
75
|
-
tagPickerListClassNames
|
|
75
|
+
get tagPickerListClassNames () {
|
|
76
76
|
return _TagPickerList.tagPickerListClassNames;
|
|
77
77
|
},
|
|
78
|
-
tagPickerOptionClassNames
|
|
78
|
+
get tagPickerOptionClassNames () {
|
|
79
79
|
return _TagPickerOption.tagPickerOptionClassNames;
|
|
80
80
|
},
|
|
81
|
-
tagPickerOptionGroupClassNames
|
|
81
|
+
get tagPickerOptionGroupClassNames () {
|
|
82
82
|
return _TagPickerOptionGroup.tagPickerOptionGroupClassNames;
|
|
83
83
|
},
|
|
84
|
-
useTagPickerBase_unstable
|
|
84
|
+
get useTagPickerBase_unstable () {
|
|
85
85
|
return _TagPicker.useTagPickerBase_unstable;
|
|
86
86
|
},
|
|
87
|
-
useTagPickerButtonBase_unstable
|
|
87
|
+
get useTagPickerButtonBase_unstable () {
|
|
88
88
|
return _TagPickerButton.useTagPickerButtonBase_unstable;
|
|
89
89
|
},
|
|
90
|
-
useTagPickerButtonStyles_unstable
|
|
90
|
+
get useTagPickerButtonStyles_unstable () {
|
|
91
91
|
return _TagPickerButton.useTagPickerButtonStyles_unstable;
|
|
92
92
|
},
|
|
93
|
-
useTagPickerButton_unstable
|
|
93
|
+
get useTagPickerButton_unstable () {
|
|
94
94
|
return _TagPickerButton.useTagPickerButton_unstable;
|
|
95
95
|
},
|
|
96
|
-
useTagPickerContextValues
|
|
96
|
+
get useTagPickerContextValues () {
|
|
97
97
|
return _TagPicker.useTagPickerContextValues;
|
|
98
98
|
},
|
|
99
|
-
useTagPickerContext_unstable
|
|
99
|
+
get useTagPickerContext_unstable () {
|
|
100
100
|
return _TagPickerContext.useTagPickerContext_unstable;
|
|
101
101
|
},
|
|
102
|
-
useTagPickerControlBase_unstable
|
|
102
|
+
get useTagPickerControlBase_unstable () {
|
|
103
103
|
return _TagPickerControl.useTagPickerControlBase_unstable;
|
|
104
104
|
},
|
|
105
|
-
useTagPickerControlStyles_unstable
|
|
105
|
+
get useTagPickerControlStyles_unstable () {
|
|
106
106
|
return _TagPickerControl.useTagPickerControlStyles_unstable;
|
|
107
107
|
},
|
|
108
|
-
useTagPickerControl_unstable
|
|
108
|
+
get useTagPickerControl_unstable () {
|
|
109
109
|
return _TagPickerControl.useTagPickerControl_unstable;
|
|
110
110
|
},
|
|
111
|
-
useTagPickerFilter
|
|
111
|
+
get useTagPickerFilter () {
|
|
112
112
|
return _useTagPickerFilter.useTagPickerFilter;
|
|
113
113
|
},
|
|
114
|
-
useTagPickerGroupStyles_unstable
|
|
114
|
+
get useTagPickerGroupStyles_unstable () {
|
|
115
115
|
return _TagPickerGroup.useTagPickerGroupStyles_unstable;
|
|
116
116
|
},
|
|
117
|
-
useTagPickerGroup_unstable
|
|
117
|
+
get useTagPickerGroup_unstable () {
|
|
118
118
|
return _TagPickerGroup.useTagPickerGroup_unstable;
|
|
119
119
|
},
|
|
120
|
-
useTagPickerInputBase_unstable
|
|
120
|
+
get useTagPickerInputBase_unstable () {
|
|
121
121
|
return _TagPickerInput.useTagPickerInputBase_unstable;
|
|
122
122
|
},
|
|
123
|
-
useTagPickerInputStyles_unstable
|
|
123
|
+
get useTagPickerInputStyles_unstable () {
|
|
124
124
|
return _TagPickerInput.useTagPickerInputStyles_unstable;
|
|
125
125
|
},
|
|
126
|
-
useTagPickerInput_unstable
|
|
126
|
+
get useTagPickerInput_unstable () {
|
|
127
127
|
return _TagPickerInput.useTagPickerInput_unstable;
|
|
128
128
|
},
|
|
129
|
-
useTagPickerListStyles_unstable
|
|
129
|
+
get useTagPickerListStyles_unstable () {
|
|
130
130
|
return _TagPickerList.useTagPickerListStyles_unstable;
|
|
131
131
|
},
|
|
132
|
-
useTagPickerList_unstable
|
|
132
|
+
get useTagPickerList_unstable () {
|
|
133
133
|
return _TagPickerList.useTagPickerList_unstable;
|
|
134
134
|
},
|
|
135
|
-
useTagPickerOptionGroup
|
|
135
|
+
get useTagPickerOptionGroup () {
|
|
136
136
|
return _TagPickerOptionGroup.useTagPickerOptionGroup;
|
|
137
137
|
},
|
|
138
|
-
useTagPickerOptionGroupStyles
|
|
138
|
+
get useTagPickerOptionGroupStyles () {
|
|
139
139
|
return _TagPickerOptionGroup.useTagPickerOptionGroupStyles;
|
|
140
140
|
},
|
|
141
|
-
useTagPickerOptionStyles_unstable
|
|
141
|
+
get useTagPickerOptionStyles_unstable () {
|
|
142
142
|
return _TagPickerOption.useTagPickerOptionStyles_unstable;
|
|
143
143
|
},
|
|
144
|
-
useTagPickerOption_unstable
|
|
144
|
+
get useTagPickerOption_unstable () {
|
|
145
145
|
return _TagPickerOption.useTagPickerOption_unstable;
|
|
146
146
|
},
|
|
147
|
-
useTagPicker_unstable
|
|
147
|
+
get useTagPicker_unstable () {
|
|
148
148
|
return _TagPicker.useTagPicker_unstable;
|
|
149
149
|
}
|
|
150
150
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n TagPicker,\n renderTagPicker_unstable,\n useTagPicker_unstable,\n useTagPickerBase_unstable,\n useTagPickerContextValues,\n} from './TagPicker';\nexport type {\n TagPickerBaseProps,\n TagPickerBaseState,\n TagPickerContextValues,\n TagPickerProps,\n TagPickerSlots,\n TagPickerState,\n TagPickerOnOpenChangeData,\n TagPickerOnOptionSelectData,\n TagPickerSize,\n} from './TagPicker';\nexport {\n TagPickerInput,\n tagPickerInputClassNames,\n renderTagPickerInput_unstable,\n useTagPickerInputStyles_unstable,\n useTagPickerInput_unstable,\n useTagPickerInputBase_unstable,\n} from './TagPickerInput';\nexport type {\n TagPickerInputBaseProps,\n TagPickerInputBaseState,\n TagPickerInputProps,\n TagPickerInputSlots,\n TagPickerInputState,\n} from './TagPickerInput';\nexport {\n TagPickerList,\n tagPickerListClassNames,\n renderTagPickerList_unstable,\n useTagPickerListStyles_unstable,\n useTagPickerList_unstable,\n} from './TagPickerList';\nexport type { TagPickerListProps, TagPickerListSlots, TagPickerListState } from './TagPickerList';\nexport {\n TagPickerButton,\n tagPickerButtonClassNames,\n renderTagPickerButton_unstable,\n useTagPickerButtonStyles_unstable,\n useTagPickerButton_unstable,\n useTagPickerButtonBase_unstable,\n} from './TagPickerButton';\nexport type {\n TagPickerButtonBaseProps,\n TagPickerButtonBaseState,\n TagPickerButtonProps,\n TagPickerButtonSlots,\n TagPickerButtonState,\n} from './TagPickerButton';\nexport {\n TagPickerControl,\n tagPickerControlClassNames,\n renderTagPickerControl_unstable,\n useTagPickerControlStyles_unstable,\n useTagPickerControl_unstable,\n useTagPickerControlBase_unstable,\n} from './TagPickerControl';\nexport type {\n TagPickerControlBaseState,\n TagPickerControlInternalSlots,\n TagPickerControlProps,\n TagPickerControlSlots,\n TagPickerControlState,\n} from './TagPickerControl';\nexport {\n TagPickerOption,\n tagPickerOptionClassNames,\n renderTagPickerOption_unstable,\n useTagPickerOptionStyles_unstable,\n useTagPickerOption_unstable,\n} from './TagPickerOption';\nexport type { TagPickerOptionProps, TagPickerOptionSlots, TagPickerOptionState } from './TagPickerOption';\nexport {\n TagPickerGroup,\n tagPickerGroupClassNames,\n renderTagPickerGroup_unstable,\n useTagPickerGroupStyles_unstable,\n useTagPickerGroup_unstable,\n} from './TagPickerGroup';\nexport type {\n TagPickerGroupBaseState,\n TagPickerGroupProps,\n TagPickerGroupSlots,\n TagPickerGroupState,\n} from './TagPickerGroup';\n\nexport {\n TagPickerOptionGroup,\n tagPickerOptionGroupClassNames,\n renderTagPickerOptionGroup,\n useTagPickerOptionGroupStyles,\n useTagPickerOptionGroup,\n} from './TagPickerOptionGroup';\nexport type {\n TagPickerOptionGroupProps,\n TagPickerOptionGroupSlots,\n TagPickerOptionGroupState,\n} from './TagPickerOptionGroup';\n\nexport { useTagPickerFilter } from './utils/useTagPickerFilter';\n\nexport { TagPickerContextProvider, useTagPickerContext_unstable } from './contexts/TagPickerContext';\nexport type { TagPickerContextValue } from './contexts/TagPickerContext';\n"],"names":["TagPicker","renderTagPicker_unstable","useTagPicker_unstable","useTagPickerBase_unstable","useTagPickerContextValues","TagPickerInput","tagPickerInputClassNames","renderTagPickerInput_unstable","useTagPickerInputStyles_unstable","useTagPickerInput_unstable","useTagPickerInputBase_unstable","TagPickerList","tagPickerListClassNames","renderTagPickerList_unstable","useTagPickerListStyles_unstable","useTagPickerList_unstable","TagPickerButton","tagPickerButtonClassNames","renderTagPickerButton_unstable","useTagPickerButtonStyles_unstable","useTagPickerButton_unstable","useTagPickerButtonBase_unstable","TagPickerControl","tagPickerControlClassNames","renderTagPickerControl_unstable","useTagPickerControlStyles_unstable","useTagPickerControl_unstable","useTagPickerControlBase_unstable","TagPickerOption","tagPickerOptionClassNames","renderTagPickerOption_unstable","useTagPickerOptionStyles_unstable","useTagPickerOption_unstable","TagPickerGroup","tagPickerGroupClassNames","renderTagPickerGroup_unstable","useTagPickerGroupStyles_unstable","useTagPickerGroup_unstable","TagPickerOptionGroup","tagPickerOptionGroupClassNames","renderTagPickerOptionGroup","useTagPickerOptionGroupStyles","useTagPickerOptionGroup","useTagPickerFilter","TagPickerContextProvider","useTagPickerContext_unstable"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n TagPicker,\n renderTagPicker_unstable,\n useTagPicker_unstable,\n useTagPickerBase_unstable,\n useTagPickerContextValues,\n} from './TagPicker';\nexport type {\n TagPickerBaseProps,\n TagPickerBaseState,\n TagPickerContextValues,\n TagPickerProps,\n TagPickerSlots,\n TagPickerState,\n TagPickerOnOpenChangeData,\n TagPickerOnOptionSelectData,\n TagPickerSize,\n} from './TagPicker';\nexport {\n TagPickerInput,\n tagPickerInputClassNames,\n renderTagPickerInput_unstable,\n useTagPickerInputStyles_unstable,\n useTagPickerInput_unstable,\n useTagPickerInputBase_unstable,\n} from './TagPickerInput';\nexport type {\n TagPickerInputBaseProps,\n TagPickerInputBaseState,\n TagPickerInputProps,\n TagPickerInputSlots,\n TagPickerInputState,\n} from './TagPickerInput';\nexport {\n TagPickerList,\n tagPickerListClassNames,\n renderTagPickerList_unstable,\n useTagPickerListStyles_unstable,\n useTagPickerList_unstable,\n} from './TagPickerList';\nexport type { TagPickerListProps, TagPickerListSlots, TagPickerListState } from './TagPickerList';\nexport {\n TagPickerButton,\n tagPickerButtonClassNames,\n renderTagPickerButton_unstable,\n useTagPickerButtonStyles_unstable,\n useTagPickerButton_unstable,\n useTagPickerButtonBase_unstable,\n} from './TagPickerButton';\nexport type {\n TagPickerButtonBaseProps,\n TagPickerButtonBaseState,\n TagPickerButtonProps,\n TagPickerButtonSlots,\n TagPickerButtonState,\n} from './TagPickerButton';\nexport {\n TagPickerControl,\n tagPickerControlClassNames,\n renderTagPickerControl_unstable,\n useTagPickerControlStyles_unstable,\n useTagPickerControl_unstable,\n useTagPickerControlBase_unstable,\n} from './TagPickerControl';\nexport type {\n TagPickerControlBaseState,\n TagPickerControlInternalSlots,\n TagPickerControlProps,\n TagPickerControlSlots,\n TagPickerControlState,\n} from './TagPickerControl';\nexport {\n TagPickerOption,\n tagPickerOptionClassNames,\n renderTagPickerOption_unstable,\n useTagPickerOptionStyles_unstable,\n useTagPickerOption_unstable,\n} from './TagPickerOption';\nexport type { TagPickerOptionProps, TagPickerOptionSlots, TagPickerOptionState } from './TagPickerOption';\nexport {\n TagPickerGroup,\n tagPickerGroupClassNames,\n renderTagPickerGroup_unstable,\n useTagPickerGroupStyles_unstable,\n useTagPickerGroup_unstable,\n} from './TagPickerGroup';\nexport type {\n TagPickerGroupBaseState,\n TagPickerGroupProps,\n TagPickerGroupSlots,\n TagPickerGroupState,\n} from './TagPickerGroup';\n\nexport {\n TagPickerOptionGroup,\n tagPickerOptionGroupClassNames,\n renderTagPickerOptionGroup,\n useTagPickerOptionGroupStyles,\n useTagPickerOptionGroup,\n} from './TagPickerOptionGroup';\nexport type {\n TagPickerOptionGroupProps,\n TagPickerOptionGroupSlots,\n TagPickerOptionGroupState,\n} from './TagPickerOptionGroup';\n\nexport { useTagPickerFilter } from './utils/useTagPickerFilter';\n\nexport { TagPickerContextProvider, useTagPickerContext_unstable } from './contexts/TagPickerContext';\nexport type { TagPickerContextValue } from './contexts/TagPickerContext';\n"],"names":["TagPicker","renderTagPicker_unstable","useTagPicker_unstable","useTagPickerBase_unstable","useTagPickerContextValues","TagPickerInput","tagPickerInputClassNames","renderTagPickerInput_unstable","useTagPickerInputStyles_unstable","useTagPickerInput_unstable","useTagPickerInputBase_unstable","TagPickerList","tagPickerListClassNames","renderTagPickerList_unstable","useTagPickerListStyles_unstable","useTagPickerList_unstable","TagPickerButton","tagPickerButtonClassNames","renderTagPickerButton_unstable","useTagPickerButtonStyles_unstable","useTagPickerButton_unstable","useTagPickerButtonBase_unstable","TagPickerControl","tagPickerControlClassNames","renderTagPickerControl_unstable","useTagPickerControlStyles_unstable","useTagPickerControl_unstable","useTagPickerControlBase_unstable","TagPickerOption","tagPickerOptionClassNames","renderTagPickerOption_unstable","useTagPickerOptionStyles_unstable","useTagPickerOption_unstable","TagPickerGroup","tagPickerGroupClassNames","renderTagPickerGroup_unstable","useTagPickerGroupStyles_unstable","useTagPickerGroup_unstable","TagPickerOptionGroup","tagPickerOptionGroupClassNames","renderTagPickerOptionGroup","useTagPickerOptionGroupStyles","useTagPickerOptionGroup","useTagPickerFilter","TagPickerContextProvider","useTagPickerContext_unstable"],"mappings":";;;;;;;;;;;QACEA;mCAAS;;;eAyCTgB,gCAAe;;QAkER4B;yDAAwB;;;eAnD/BtB,kCAAgB;;;eAuBhBW,8BAAc;;;eA7Dd5B,8BAAc;;;eAedM,4BAAa;;;eAsCbiB,gCAAe;;;eAsBfU,0CAAoB;;;eAlDpBpB,+CAA8B;;;eAe9BM,iDAA+B;;;eAuB/BW,6CAA6B;;;eA7D7B5B,6CAA6B;;;eAe7BM,2CAA4B;;;eA4D5B2B,gDAA0B;;;eAtB1BV,+CAA8B;;;eAxE9B7B,mCAAwB;;;eAyCxBgB,0CAAyB;;;eAezBM,4CAA0B;;;eAuB1BW,wCAAwB;;;eA7DxB5B,wCAAwB;;;eAexBM,sCAAuB;;;eAsCvBiB,0CAAyB;;;eAsBzBU,oDAA8B;;;eA3F9BpC,oCAAyB;;QA2CzBkB;+DAA+B;;;eAF/BF,kDAAiC;;;eACjCC,4CAA2B;;;eAzC3BhB,oCAAyB;;;eAuGQyC,8CAA4B;;QA9C7DlB;iEAAgC;;;eAFhCF,oDAAkC;;;eAClCC,8CAA4B;;;eA6CrBiB,sCAAkB;;;eAvBzBP,gDAAgC;;;eAChCC,0CAA0B;;;eA5D1B3B,8CAA8B;;;eAF9BF,gDAAgC;;;eAChCC,0CAA0B;;;eAc1BK,8CAA+B;;;eAC/BC,wCAAyB;;QA4DzB2B;4DAAuB;;;eADvBD,mDAA6B;;;eAtB7BV,kDAAiC;;;eACjCC,4CAA2B;;;eAzE3B9B,gCAAqB;;;2BAGhB,iBAAc;gCAmBd,sBAAmB;+BAcnB,qBAAkB;iCASlB,uBAAoB;kCAepB,wBAAqB;iCAcrB,uBAAoB;gCAQpB,sBAAmB;sCAcnB,4BAAyB;oCAOG,gCAA6B;kCAEO,iCAA8B"}
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
tagPickerAppearanceToTagAppearance
|
|
12
|
+
get tagPickerAppearanceToTagAppearance () {
|
|
13
13
|
return tagPickerAppearanceToTagAppearance;
|
|
14
14
|
},
|
|
15
|
-
tagPickerSizeToTagSize
|
|
15
|
+
get tagPickerSizeToTagSize () {
|
|
16
16
|
return tagPickerSizeToTagSize;
|
|
17
17
|
},
|
|
18
|
-
tagSizeToTagPickerSize
|
|
18
|
+
get tagSizeToTagPickerSize () {
|
|
19
19
|
return tagSizeToTagPickerSize;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../src/utils/tagPicker2Tag.ts"],"sourcesContent":["import type { TagAppearance, TagSize } from '@fluentui/react-tags/src/index';\nimport type { TagPickerSize } from '../TagPicker';\nimport type { ComboboxBaseProps } from '@fluentui/react-combobox';\n\nexport function tagPickerSizeToTagSize(size: TagPickerSize): TagSize {\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}\n\nexport function tagSizeToTagPickerSize(size: TagSize): TagPickerSize {\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}\n\nexport function tagPickerAppearanceToTagAppearance(appearance: ComboboxBaseProps['appearance']): TagAppearance {\n switch (appearance) {\n case 'filled-darker':\n return 'outline';\n default:\n return 'filled';\n }\n}\n"],"names":["tagPickerSizeToTagSize","size","tagSizeToTagPickerSize","tagPickerAppearanceToTagAppearance","appearance"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIO,SAASA,uBAAuBC,IAAmB;IACxD,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT;YACE,OAAO;IACX;AACF;AAEO,SAASC,uBAAuBD,IAAa;IAClD,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT;YACE,OAAO;IACX;AACF;AAEO,SAASE,mCAAmCC,UAA2C;IAC5F,OAAQA;QACN,KAAK;YACH,OAAO;QACT;YACE,OAAO;IACX;AACF"}
|