@fluentui/react-swatch-picker 9.1.4 → 9.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/lib/ColorSwatch.js.map +1 -1
  3. package/lib/EmptySwatch.js.map +1 -1
  4. package/lib/ImageSwatch.js.map +1 -1
  5. package/lib/SwatchPicker.js.map +1 -1
  6. package/lib/SwatchPickerRow.js.map +1 -1
  7. package/lib/components/ColorSwatch/ColorSwatch.js.map +1 -1
  8. package/lib/components/ColorSwatch/ColorSwatch.types.js +3 -1
  9. package/lib/components/ColorSwatch/ColorSwatch.types.js.map +1 -1
  10. package/lib/components/ColorSwatch/index.js.map +1 -1
  11. package/lib/components/ColorSwatch/renderColorSwatch.js.map +1 -1
  12. package/lib/components/ColorSwatch/useColorSwatch.js.map +1 -1
  13. package/lib/components/EmptySwatch/EmptySwatch.js.map +1 -1
  14. package/lib/components/EmptySwatch/EmptySwatch.types.js +3 -1
  15. package/lib/components/EmptySwatch/EmptySwatch.types.js.map +1 -1
  16. package/lib/components/EmptySwatch/index.js.map +1 -1
  17. package/lib/components/EmptySwatch/renderEmptySwatch.js.map +1 -1
  18. package/lib/components/EmptySwatch/useEmptySwatch.js.map +1 -1
  19. package/lib/components/ImageSwatch/ImageSwatch.js.map +1 -1
  20. package/lib/components/ImageSwatch/ImageSwatch.types.js +3 -1
  21. package/lib/components/ImageSwatch/ImageSwatch.types.js.map +1 -1
  22. package/lib/components/ImageSwatch/index.js.map +1 -1
  23. package/lib/components/ImageSwatch/renderImageSwatch.js.map +1 -1
  24. package/lib/components/ImageSwatch/useImageSwatch.js.map +1 -1
  25. package/lib/components/SwatchPicker/SwatchPicker.js.map +1 -1
  26. package/lib/components/SwatchPicker/SwatchPicker.types.js.map +1 -1
  27. package/lib/components/SwatchPicker/index.js.map +1 -1
  28. package/lib/components/SwatchPicker/renderSwatchPicker.js.map +1 -1
  29. package/lib/components/SwatchPicker/useSwatchPicker.js.map +1 -1
  30. package/lib/components/SwatchPickerRow/SwatchPickerRow.js.map +1 -1
  31. package/lib/components/SwatchPickerRow/SwatchPickerRow.types.js +3 -1
  32. package/lib/components/SwatchPickerRow/SwatchPickerRow.types.js.map +1 -1
  33. package/lib/components/SwatchPickerRow/index.js.map +1 -1
  34. package/lib/components/SwatchPickerRow/renderSwatchPickerRow.js.map +1 -1
  35. package/lib/components/SwatchPickerRow/useSwatchPickerRow.js.map +1 -1
  36. package/lib/contexts/index.js.map +1 -1
  37. package/lib/contexts/swatchPicker.js.map +1 -1
  38. package/lib/index.js.map +1 -1
  39. package/lib/utils/renderUtils.js.map +1 -1
  40. package/lib-commonjs/ColorSwatch.js.map +1 -1
  41. package/lib-commonjs/EmptySwatch.js.map +1 -1
  42. package/lib-commonjs/ImageSwatch.js.map +1 -1
  43. package/lib-commonjs/SwatchPicker.js.map +1 -1
  44. package/lib-commonjs/SwatchPickerRow.js.map +1 -1
  45. package/lib-commonjs/components/ColorSwatch/ColorSwatch.js.map +1 -1
  46. package/lib-commonjs/components/ColorSwatch/ColorSwatch.types.js +3 -1
  47. package/lib-commonjs/components/ColorSwatch/ColorSwatch.types.js.map +1 -1
  48. package/lib-commonjs/components/ColorSwatch/index.js.map +1 -1
  49. package/lib-commonjs/components/ColorSwatch/renderColorSwatch.js.map +1 -1
  50. package/lib-commonjs/components/ColorSwatch/useColorSwatch.js.map +1 -1
  51. package/lib-commonjs/components/ColorSwatch/useColorSwatchStyles.styles.js.map +1 -1
  52. package/lib-commonjs/components/EmptySwatch/EmptySwatch.js.map +1 -1
  53. package/lib-commonjs/components/EmptySwatch/EmptySwatch.types.js +3 -1
  54. package/lib-commonjs/components/EmptySwatch/EmptySwatch.types.js.map +1 -1
  55. package/lib-commonjs/components/EmptySwatch/index.js.map +1 -1
  56. package/lib-commonjs/components/EmptySwatch/renderEmptySwatch.js.map +1 -1
  57. package/lib-commonjs/components/EmptySwatch/useEmptySwatch.js.map +1 -1
  58. package/lib-commonjs/components/EmptySwatch/useEmptySwatchStyles.styles.js.map +1 -1
  59. package/lib-commonjs/components/ImageSwatch/ImageSwatch.js.map +1 -1
  60. package/lib-commonjs/components/ImageSwatch/ImageSwatch.types.js +3 -1
  61. package/lib-commonjs/components/ImageSwatch/ImageSwatch.types.js.map +1 -1
  62. package/lib-commonjs/components/ImageSwatch/index.js.map +1 -1
  63. package/lib-commonjs/components/ImageSwatch/renderImageSwatch.js.map +1 -1
  64. package/lib-commonjs/components/ImageSwatch/useImageSwatch.js.map +1 -1
  65. package/lib-commonjs/components/ImageSwatch/useImageSwatchStyles.styles.js.map +1 -1
  66. package/lib-commonjs/components/SwatchPicker/SwatchPicker.js.map +1 -1
  67. package/lib-commonjs/components/SwatchPicker/SwatchPicker.types.js.map +1 -1
  68. package/lib-commonjs/components/SwatchPicker/index.js.map +1 -1
  69. package/lib-commonjs/components/SwatchPicker/renderSwatchPicker.js.map +1 -1
  70. package/lib-commonjs/components/SwatchPicker/useSwatchPicker.js.map +1 -1
  71. package/lib-commonjs/components/SwatchPicker/useSwatchPickerStyles.styles.js.map +1 -1
  72. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.js.map +1 -1
  73. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.types.js +3 -1
  74. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.types.js.map +1 -1
  75. package/lib-commonjs/components/SwatchPickerRow/index.js.map +1 -1
  76. package/lib-commonjs/components/SwatchPickerRow/renderSwatchPickerRow.js.map +1 -1
  77. package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRow.js.map +1 -1
  78. package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js.map +1 -1
  79. package/lib-commonjs/contexts/index.js.map +1 -1
  80. package/lib-commonjs/contexts/swatchPicker.js +5 -5
  81. package/lib-commonjs/contexts/swatchPicker.js.map +1 -1
  82. package/lib-commonjs/index.js +55 -55
  83. package/lib-commonjs/index.js.map +1 -1
  84. package/lib-commonjs/utils/renderUtils.js.map +1 -1
  85. package/package.json +7 -7
@@ -9,56 +9,74 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- SwatchPicker: function() {
13
- return _SwatchPicker.SwatchPicker;
14
- },
15
- renderSwatchPicker_unstable: function() {
16
- return _SwatchPicker.renderSwatchPicker_unstable;
12
+ ColorSwatch: function() {
13
+ return _ColorSwatch.ColorSwatch;
17
14
  },
18
- useSwatchPickerStyles_unstable: function() {
19
- return _SwatchPicker.useSwatchPickerStyles_unstable;
15
+ EmptySwatch: function() {
16
+ return _EmptySwatch.EmptySwatch;
20
17
  },
21
- useSwatchPicker_unstable: function() {
22
- return _SwatchPicker.useSwatchPicker_unstable;
18
+ ImageSwatch: function() {
19
+ return _ImageSwatch.ImageSwatch;
23
20
  },
24
- swatchPickerClassNames: function() {
25
- return _SwatchPicker.swatchPickerClassNames;
21
+ SwatchPicker: function() {
22
+ return _SwatchPicker.SwatchPicker;
26
23
  },
27
24
  SwatchPickerProvider: function() {
28
25
  return _contexts.SwatchPickerProvider;
29
26
  },
30
- swatchPickerContextDefaultValue: function() {
31
- return _contexts.swatchPickerContextDefaultValue;
27
+ SwatchPickerRow: function() {
28
+ return _SwatchPickerRow.SwatchPickerRow;
32
29
  },
33
- useSwatchPickerContextValue_unstable: function() {
34
- return _contexts.useSwatchPickerContextValue_unstable;
30
+ colorSwatchClassNames: function() {
31
+ return _ColorSwatch.colorSwatchClassNames;
35
32
  },
36
- useSwatchPickerContextValues: function() {
37
- return _contexts.useSwatchPickerContextValues;
33
+ emptySwatchClassNames: function() {
34
+ return _EmptySwatch.emptySwatchClassNames;
38
35
  },
39
- ColorSwatch: function() {
40
- return _ColorSwatch.ColorSwatch;
36
+ imageSwatchClassNames: function() {
37
+ return _ImageSwatch.imageSwatchClassNames;
41
38
  },
42
39
  renderColorSwatch_unstable: function() {
43
40
  return _ColorSwatch.renderColorSwatch_unstable;
44
41
  },
45
- useColorSwatchStyles_unstable: function() {
46
- return _ColorSwatch.useColorSwatchStyles_unstable;
42
+ renderEmptySwatch_unstable: function() {
43
+ return _EmptySwatch.renderEmptySwatch_unstable;
47
44
  },
48
- useColorSwatch_unstable: function() {
49
- return _ColorSwatch.useColorSwatch_unstable;
45
+ renderImageSwatch_unstable: function() {
46
+ return _ImageSwatch.renderImageSwatch_unstable;
50
47
  },
51
- colorSwatchClassNames: function() {
52
- return _ColorSwatch.colorSwatchClassNames;
48
+ renderSwatchPickerGrid: function() {
49
+ return _renderUtils.renderSwatchPickerGrid;
50
+ },
51
+ renderSwatchPickerRow_unstable: function() {
52
+ return _SwatchPickerRow.renderSwatchPickerRow_unstable;
53
+ },
54
+ renderSwatchPicker_unstable: function() {
55
+ return _SwatchPicker.renderSwatchPicker_unstable;
53
56
  },
54
57
  swatchCSSVars: function() {
55
58
  return _ColorSwatch.swatchCSSVars;
56
59
  },
57
- ImageSwatch: function() {
58
- return _ImageSwatch.ImageSwatch;
60
+ swatchPickerClassNames: function() {
61
+ return _SwatchPicker.swatchPickerClassNames;
59
62
  },
60
- renderImageSwatch_unstable: function() {
61
- return _ImageSwatch.renderImageSwatch_unstable;
63
+ swatchPickerContextDefaultValue: function() {
64
+ return _contexts.swatchPickerContextDefaultValue;
65
+ },
66
+ swatchPickerRowClassNames: function() {
67
+ return _SwatchPickerRow.swatchPickerRowClassNames;
68
+ },
69
+ useColorSwatchStyles_unstable: function() {
70
+ return _ColorSwatch.useColorSwatchStyles_unstable;
71
+ },
72
+ useColorSwatch_unstable: function() {
73
+ return _ColorSwatch.useColorSwatch_unstable;
74
+ },
75
+ useEmptySwatchStyles_unstable: function() {
76
+ return _EmptySwatch.useEmptySwatchStyles_unstable;
77
+ },
78
+ useEmptySwatch_unstable: function() {
79
+ return _EmptySwatch.useEmptySwatch_unstable;
62
80
  },
63
81
  useImageSwatchStyles_unstable: function() {
64
82
  return _ImageSwatch.useImageSwatchStyles_unstable;
@@ -66,14 +84,11 @@ _export(exports, {
66
84
  useImageSwatch_unstable: function() {
67
85
  return _ImageSwatch.useImageSwatch_unstable;
68
86
  },
69
- imageSwatchClassNames: function() {
70
- return _ImageSwatch.imageSwatchClassNames;
71
- },
72
- SwatchPickerRow: function() {
73
- return _SwatchPickerRow.SwatchPickerRow;
87
+ useSwatchPickerContextValue_unstable: function() {
88
+ return _contexts.useSwatchPickerContextValue_unstable;
74
89
  },
75
- renderSwatchPickerRow_unstable: function() {
76
- return _SwatchPickerRow.renderSwatchPickerRow_unstable;
90
+ useSwatchPickerContextValues: function() {
91
+ return _contexts.useSwatchPickerContextValues;
77
92
  },
78
93
  useSwatchPickerRowStyles_unstable: function() {
79
94
  return _SwatchPickerRow.useSwatchPickerRowStyles_unstable;
@@ -81,26 +96,11 @@ _export(exports, {
81
96
  useSwatchPickerRow_unstable: function() {
82
97
  return _SwatchPickerRow.useSwatchPickerRow_unstable;
83
98
  },
84
- swatchPickerRowClassNames: function() {
85
- return _SwatchPickerRow.swatchPickerRowClassNames;
86
- },
87
- renderSwatchPickerGrid: function() {
88
- return _renderUtils.renderSwatchPickerGrid;
89
- },
90
- EmptySwatch: function() {
91
- return _EmptySwatch.EmptySwatch;
92
- },
93
- renderEmptySwatch_unstable: function() {
94
- return _EmptySwatch.renderEmptySwatch_unstable;
95
- },
96
- useEmptySwatchStyles_unstable: function() {
97
- return _EmptySwatch.useEmptySwatchStyles_unstable;
98
- },
99
- useEmptySwatch_unstable: function() {
100
- return _EmptySwatch.useEmptySwatch_unstable;
99
+ useSwatchPickerStyles_unstable: function() {
100
+ return _SwatchPicker.useSwatchPickerStyles_unstable;
101
101
  },
102
- emptySwatchClassNames: function() {
103
- return _EmptySwatch.emptySwatchClassNames;
102
+ useSwatchPicker_unstable: function() {
103
+ return _SwatchPicker.useSwatchPicker_unstable;
104
104
  }
105
105
  });
106
106
  const _SwatchPicker = require("./SwatchPicker");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { SwatchPicker, renderSwatchPicker_unstable, useSwatchPickerStyles_unstable, useSwatchPicker_unstable, swatchPickerClassNames } from './SwatchPicker';\nexport { SwatchPickerProvider, swatchPickerContextDefaultValue, useSwatchPickerContextValue_unstable, useSwatchPickerContextValues } from './contexts';\nexport { ColorSwatch, renderColorSwatch_unstable, useColorSwatchStyles_unstable, useColorSwatch_unstable, colorSwatchClassNames, swatchCSSVars } from './ColorSwatch';\nexport { ImageSwatch, renderImageSwatch_unstable, useImageSwatchStyles_unstable, useImageSwatch_unstable, imageSwatchClassNames } from './ImageSwatch';\nexport { SwatchPickerRow, renderSwatchPickerRow_unstable, useSwatchPickerRowStyles_unstable, useSwatchPickerRow_unstable, swatchPickerRowClassNames } from './SwatchPickerRow';\nexport { renderSwatchPickerGrid } from './utils/renderUtils';\nexport { EmptySwatch, renderEmptySwatch_unstable, useEmptySwatchStyles_unstable, useEmptySwatch_unstable, emptySwatchClassNames } from './EmptySwatch';\n"],"names":["SwatchPicker","renderSwatchPicker_unstable","useSwatchPickerStyles_unstable","useSwatchPicker_unstable","swatchPickerClassNames","SwatchPickerProvider","swatchPickerContextDefaultValue","useSwatchPickerContextValue_unstable","useSwatchPickerContextValues","ColorSwatch","renderColorSwatch_unstable","useColorSwatchStyles_unstable","useColorSwatch_unstable","colorSwatchClassNames","swatchCSSVars","ImageSwatch","renderImageSwatch_unstable","useImageSwatchStyles_unstable","useImageSwatch_unstable","imageSwatchClassNames","SwatchPickerRow","renderSwatchPickerRow_unstable","useSwatchPickerRowStyles_unstable","useSwatchPickerRow_unstable","swatchPickerRowClassNames","renderSwatchPickerGrid","EmptySwatch","renderEmptySwatch_unstable","useEmptySwatchStyles_unstable","useEmptySwatch_unstable","emptySwatchClassNames"],"mappings":";;;;;;;;;;;IAASA,YAAY;eAAZA,0BAAY;;IAAEC,2BAA2B;eAA3BA,yCAA2B;;IAAEC,8BAA8B;eAA9BA,4CAA8B;;IAAEC,wBAAwB;eAAxBA,sCAAwB;;IAAEC,sBAAsB;eAAtBA,oCAAsB;;IAC3HC,oBAAoB;eAApBA,8BAAoB;;IAAEC,+BAA+B;eAA/BA,yCAA+B;;IAAEC,oCAAoC;eAApCA,8CAAoC;;IAAEC,4BAA4B;eAA5BA,sCAA4B;;IACzHC,WAAW;eAAXA,wBAAW;;IAAEC,0BAA0B;eAA1BA,uCAA0B;;IAAEC,6BAA6B;eAA7BA,0CAA6B;;IAAEC,uBAAuB;eAAvBA,oCAAuB;;IAAEC,qBAAqB;eAArBA,kCAAqB;;IAAEC,aAAa;eAAbA,0BAAa;;IACrIC,WAAW;eAAXA,wBAAW;;IAAEC,0BAA0B;eAA1BA,uCAA0B;;IAAEC,6BAA6B;eAA7BA,0CAA6B;;IAAEC,uBAAuB;eAAvBA,oCAAuB;;IAAEC,qBAAqB;eAArBA,kCAAqB;;IACtHC,eAAe;eAAfA,gCAAe;;IAAEC,8BAA8B;eAA9BA,+CAA8B;;IAAEC,iCAAiC;eAAjCA,kDAAiC;;IAAEC,2BAA2B;eAA3BA,4CAA2B;;IAAEC,yBAAyB;eAAzBA,0CAAyB;;IAC1IC,sBAAsB;eAAtBA,mCAAsB;;IACtBC,WAAW;eAAXA,wBAAW;;IAAEC,0BAA0B;eAA1BA,uCAA0B;;IAAEC,6BAA6B;eAA7BA,0CAA6B;;IAAEC,uBAAuB;eAAvBA,oCAAuB;;IAAEC,qBAAqB;eAArBA,kCAAqB;;;8BANa;0BACF;6BACY;6BACf;iCACoB;6BACpH;6BACgG"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export {\n SwatchPicker,\n renderSwatchPicker_unstable,\n useSwatchPickerStyles_unstable,\n useSwatchPicker_unstable,\n swatchPickerClassNames,\n} from './SwatchPicker';\nexport {\n SwatchPickerProvider,\n swatchPickerContextDefaultValue,\n useSwatchPickerContextValue_unstable,\n useSwatchPickerContextValues,\n} from './contexts';\nexport type { SwatchPickerContextValue, SwatchPickerContextValues } from './contexts';\nexport type {\n SwatchPickerProps,\n SwatchPickerSlots,\n SwatchPickerState,\n SwatchPickerOnSelectionChangeData,\n SwatchPickerOnSelectEventHandler,\n} from './SwatchPicker';\nexport {\n ColorSwatch,\n renderColorSwatch_unstable,\n useColorSwatchStyles_unstable,\n useColorSwatch_unstable,\n colorSwatchClassNames,\n swatchCSSVars,\n} from './ColorSwatch';\nexport type { ColorSwatchProps, ColorSwatchSlots, ColorSwatchState } from './ColorSwatch';\nexport {\n ImageSwatch,\n renderImageSwatch_unstable,\n useImageSwatchStyles_unstable,\n useImageSwatch_unstable,\n imageSwatchClassNames,\n} from './ImageSwatch';\nexport type { ImageSwatchProps, ImageSwatchSlots, ImageSwatchState } from './ImageSwatch';\nexport type { SwatchPickerRowProps, SwatchPickerRowSlots, SwatchPickerRowState } from './SwatchPickerRow';\nexport {\n SwatchPickerRow,\n renderSwatchPickerRow_unstable,\n useSwatchPickerRowStyles_unstable,\n useSwatchPickerRow_unstable,\n swatchPickerRowClassNames,\n} from './SwatchPickerRow';\nexport { renderSwatchPickerGrid } from './utils/renderUtils';\nexport type { SwatchProps, SwatchPickerGridProps } from './utils/renderUtils';\nexport {\n EmptySwatch,\n renderEmptySwatch_unstable,\n useEmptySwatchStyles_unstable,\n useEmptySwatch_unstable,\n emptySwatchClassNames,\n} from './EmptySwatch';\nexport type { EmptySwatchProps, EmptySwatchSlots, EmptySwatchState } from './EmptySwatch';\n"],"names":["ColorSwatch","EmptySwatch","ImageSwatch","SwatchPicker","SwatchPickerProvider","SwatchPickerRow","colorSwatchClassNames","emptySwatchClassNames","imageSwatchClassNames","renderColorSwatch_unstable","renderEmptySwatch_unstable","renderImageSwatch_unstable","renderSwatchPickerGrid","renderSwatchPickerRow_unstable","renderSwatchPicker_unstable","swatchCSSVars","swatchPickerClassNames","swatchPickerContextDefaultValue","swatchPickerRowClassNames","useColorSwatchStyles_unstable","useColorSwatch_unstable","useEmptySwatchStyles_unstable","useEmptySwatch_unstable","useImageSwatchStyles_unstable","useImageSwatch_unstable","useSwatchPickerContextValue_unstable","useSwatchPickerContextValues","useSwatchPickerRowStyles_unstable","useSwatchPickerRow_unstable","useSwatchPickerStyles_unstable","useSwatchPicker_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAsBEA,WAAW;eAAXA,wBAAW;;IA2BXC,WAAW;eAAXA,wBAAW;;IAlBXC,WAAW;eAAXA,wBAAW;;IA9BXC,YAAY;eAAZA,0BAAY;;IAOZC,oBAAoB;eAApBA,8BAAoB;;IAgCpBC,eAAe;eAAfA,gCAAe;;IAdfC,qBAAqB;eAArBA,kCAAqB;;IA2BrBC,qBAAqB;eAArBA,kCAAqB;;IAlBrBC,qBAAqB;eAArBA,kCAAqB;;IAZrBC,0BAA0B;eAA1BA,uCAA0B;;IA2B1BC,0BAA0B;eAA1BA,uCAA0B;;IAlB1BC,0BAA0B;eAA1BA,uCAA0B;;IAcnBC,sBAAsB;eAAtBA,mCAAsB;;IAL7BC,8BAA8B;eAA9BA,+CAA8B;;IAvC9BC,2BAA2B;eAA3BA,yCAA2B;;IAyB3BC,aAAa;eAAbA,0BAAa;;IAtBbC,sBAAsB;eAAtBA,oCAAsB;;IAItBC,+BAA+B;eAA/BA,yCAA+B;;IAmC/BC,yBAAyB;eAAzBA,0CAAyB;;IApBzBC,6BAA6B;eAA7BA,0CAA6B;;IAC7BC,uBAAuB;eAAvBA,oCAAuB;;IA0BvBC,6BAA6B;eAA7BA,0CAA6B;;IAC7BC,uBAAuB;eAAvBA,oCAAuB;;IAnBvBC,6BAA6B;eAA7BA,0CAA6B;;IAC7BC,uBAAuB;eAAvBA,oCAAuB;;IAxBvBC,oCAAoC;eAApCA,8CAAoC;;IACpCC,4BAA4B;eAA5BA,sCAA4B;;IA+B5BC,iCAAiC;eAAjCA,kDAAiC;;IACjCC,2BAA2B;eAA3BA,4CAA2B;;IAxC3BC,8BAA8B;eAA9BA,4CAA8B;;IAC9BC,wBAAwB;eAAxBA,sCAAwB;;;8BAEnB;0BAMA;6BAgBA;6BAQA;iCASA;6BACgC;6BAQhC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["renderUtils.js"],"sourcesContent":["import * as React from 'react';\nimport { ColorSwatch, SwatchPickerRow, ImageSwatch } from '../';\nexport const renderSwatchPickerGrid = (props)=>{\n const { items, columnCount, renderRow, renderSwatch } = props;\n const _renderRow = renderRow || (({ children, rowId })=>/*#__PURE__*/ React.createElement(SwatchPickerRow, {\n key: rowId\n }, children));\n const _renderSwatch = renderSwatch || ((item)=>{\n var _item_src;\n return item.src ? /*#__PURE__*/ React.createElement(ImageSwatch, {\n key: item.value,\n src: (_item_src = item.src) !== null && _item_src !== void 0 ? _item_src : '',\n ...item\n }) : /*#__PURE__*/ React.createElement(ColorSwatch, {\n key: item.value,\n color: item.color || '',\n ...item\n });\n });\n const rowCount = Math.ceil(items.length / columnCount);\n const rows = Array.from({\n length: rowCount\n }, (_, i)=>{\n const start = i * columnCount;\n const end = start + columnCount;\n return items.slice(start, end);\n });\n return rows.map((row, index)=>_renderRow({\n children: row.map(_renderSwatch),\n rowId: index\n }));\n};\n"],"names":["renderSwatchPickerGrid","props","items","columnCount","renderRow","renderSwatch","_renderRow","children","rowId","React","createElement","SwatchPickerRow","key","_renderSwatch","item","_item_src","src","ImageSwatch","value","ColorSwatch","color","rowCount","Math","ceil","length","rows","Array","from","_","i","start","end","slice","map","row","index"],"mappings":";;;;+BAEaA;;;eAAAA;;;;iEAFU;kBACmC;AACnD,MAAMA,yBAAyB,CAACC;IACnC,MAAM,EAAEC,KAAK,EAAEC,WAAW,EAAEC,SAAS,EAAEC,YAAY,EAAE,GAAGJ;IACxD,MAAMK,aAAaF,aAAc,CAAA,CAAC,EAAEG,QAAQ,EAAEC,KAAK,EAAE,GAAG,WAAW,GAAGC,OAAMC,aAAa,CAACC,iBAAe,EAAE;YACnGC,KAAKJ;QACT,GAAGD,SAAQ;IACf,MAAMM,gBAAgBR,gBAAiB,CAAA,CAACS;QACpC,IAAIC;QACJ,OAAOD,KAAKE,GAAG,GAAG,WAAW,GAAGP,OAAMC,aAAa,CAACO,aAAW,EAAE;YAC7DL,KAAKE,KAAKI,KAAK;YACfF,KAAK,AAACD,CAAAA,YAAYD,KAAKE,GAAG,AAAD,MAAO,QAAQD,cAAc,KAAK,IAAIA,YAAY;YAC3E,GAAGD,IAAI;QACX,KAAK,WAAW,GAAGL,OAAMC,aAAa,CAACS,aAAW,EAAE;YAChDP,KAAKE,KAAKI,KAAK;YACfE,OAAON,KAAKM,KAAK,IAAI;YACrB,GAAGN,IAAI;QACX;IACJ,CAAA;IACA,MAAMO,WAAWC,KAAKC,IAAI,CAACrB,MAAMsB,MAAM,GAAGrB;IAC1C,MAAMsB,OAAOC,MAAMC,IAAI,CAAC;QACpBH,QAAQH;IACZ,GAAG,CAACO,GAAGC;QACH,MAAMC,QAAQD,IAAI1B;QAClB,MAAM4B,MAAMD,QAAQ3B;QACpB,OAAOD,MAAM8B,KAAK,CAACF,OAAOC;IAC9B;IACA,OAAON,KAAKQ,GAAG,CAAC,CAACC,KAAKC,QAAQ7B,WAAW;YACjCC,UAAU2B,IAAID,GAAG,CAACpB;YAClBL,OAAO2B;QACX;AACR"}
1
+ {"version":3,"sources":["renderUtils.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ColorSwatch, SwatchPickerRow, ImageSwatch } from '../';\nimport type { ColorSwatchProps, ImageSwatchProps } from '../';\n\nexport type SwatchProps = ImageSwatchProps | ColorSwatchProps;\n\nexport type SwatchPickerGridProps = {\n items: SwatchProps[];\n columnCount: number;\n renderRow?: (props: { children: JSX.Element[]; rowId: string | number }) => JSX.Element;\n renderSwatch?: (item: SwatchProps) => JSX.Element;\n};\n\nexport const renderSwatchPickerGrid = (props: SwatchPickerGridProps) => {\n const { items, columnCount, renderRow, renderSwatch } = props;\n const _renderRow = renderRow || (({ children, rowId }) => <SwatchPickerRow key={rowId}>{children}</SwatchPickerRow>);\n const _renderSwatch =\n renderSwatch ||\n ((item: SwatchProps) =>\n (item as ImageSwatchProps).src ? (\n <ImageSwatch key={item.value} src={(item as ImageSwatchProps).src ?? ''} {...item} />\n ) : (\n <ColorSwatch key={item.value} color={item.color || ''} {...item} />\n ));\n\n const rowCount = Math.ceil(items.length / columnCount);\n const rows = Array.from({ length: rowCount }, (_, i) => {\n const start = i * columnCount;\n const end = start + columnCount;\n return items.slice(start, end);\n });\n\n return rows.map((row, index) => _renderRow({ children: row.map(_renderSwatch), rowId: index }));\n};\n"],"names":["renderSwatchPickerGrid","props","items","columnCount","renderRow","renderSwatch","_renderRow","children","rowId","React","createElement","SwatchPickerRow","key","_renderSwatch","item","_item_src","src","ImageSwatch","value","ColorSwatch","color","rowCount","Math","ceil","length","rows","Array","from","_","i","start","end","slice","map","row","index"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;kBACmC;AAYnD,MAAMA,yBAAyB,CAACC;IACrC,MAAM,EAAEC,KAAK,EAAEC,WAAW,EAAEC,SAAS,EAAEC,YAAY,EAAE,GAAGJ;IACxD,MAAMK,aAAaF,aAAc,CAAA,CAAC,EAAEG,QAAQ,EAAEC,KAAK,EAAE,GAAA,WAAA,GAAKC,OAAAC,aAAA,CAACC,iBAAAA,EAAAA;YAAgBC,KAAKJ;WAAQD,SAAAA;IACxF,MAAMM,gBACJR,gBACC,CAAA,CAACS;YAEqCC;eADrCD,KAA2BE,GAAG,GAAA,WAAA,GAC5BP,OAAAC,aAAA,CAACO,aAAAA,EAAAA;YAAYL,KAAKE,KAAKI,KAAK;YAAEF,KAAK,AAAAD,CAAAA,YAAAD,KAA2BE,GAAG,AAAHA,MAAG,QAA9BD,cAAA,KAAA,IAAAA,YAAkC;YAAK,GAAGD,IAAI;2BAEjFL,OAAAC,aAAA,CAACS,aAAAA,EAAAA;YAAYP,KAAKE,KAAKI,KAAK;YAAEE,OAAON,KAAKM,KAAK,IAAI;YAAK,GAAGN,IAAI;;IACjE,CAAA;IAEJ,MAAMO,WAAWC,KAAKC,IAAI,CAACrB,MAAMsB,MAAM,GAAGrB;IAC1C,MAAMsB,OAAOC,MAAMC,IAAI,CAAC;QAAEH,QAAQH;IAAS,GAAG,CAACO,GAAGC;QAChD,MAAMC,QAAQD,IAAI1B;QAClB,MAAM4B,MAAMD,QAAQ3B;QACpB,OAAOD,MAAM8B,KAAK,CAACF,OAAOC;IAC5B;IAEA,OAAON,KAAKQ,GAAG,CAAC,CAACC,KAAKC,QAAU7B,WAAW;YAAEC,UAAU2B,IAAID,GAAG,CAACpB;YAAgBL,OAAO2B;QAAM;AAC9F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-swatch-picker",
3
- "version": "9.1.4",
3
+ "version": "9.1.5",
4
4
  "description": "New fluentui react package",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -34,20 +34,20 @@
34
34
  "@fluentui/scripts-tasks": "*"
35
35
  },
36
36
  "dependencies": {
37
- "@fluentui/react-context-selector": "^9.1.63",
37
+ "@fluentui/react-context-selector": "^9.1.64",
38
38
  "@fluentui/react-icons": "^2.0.245",
39
- "@fluentui/react-jsx-runtime": "^9.0.40",
40
- "@fluentui/react-shared-contexts": "^9.19.0",
41
- "@fluentui/react-tabster": "^9.22.1",
39
+ "@fluentui/react-jsx-runtime": "^9.0.41",
40
+ "@fluentui/react-shared-contexts": "^9.19.1",
41
+ "@fluentui/react-tabster": "^9.22.2",
42
42
  "@fluentui/react-theme": "^9.1.19",
43
- "@fluentui/react-utilities": "^9.18.11",
43
+ "@fluentui/react-utilities": "^9.18.12",
44
44
  "@griffel/react": "^1.5.22",
45
45
  "@swc/helpers": "^0.5.1"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@types/react": ">=16.8.0 <19.0.0",
49
49
  "@types/react-dom": ">=16.8.0 <19.0.0",
50
- "react": ">=16.8.0 <19.0.0",
50
+ "react": ">=16.14.0 <19.0.0",
51
51
  "react-dom": ">=16.8.0 <19.0.0"
52
52
  },
53
53
  "exports": {