@fluentui/react-swatch-picker 0.0.0-nightly-20240517-0405.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/LICENSE +15 -0
  3. package/README.md +61 -0
  4. package/dist/index.d.ts +346 -0
  5. package/lib/ColorSwatch.js +1 -0
  6. package/lib/ColorSwatch.js.map +1 -0
  7. package/lib/EmptySwatch.js +1 -0
  8. package/lib/EmptySwatch.js.map +1 -0
  9. package/lib/ImageSwatch.js +1 -0
  10. package/lib/ImageSwatch.js.map +1 -0
  11. package/lib/SwatchPicker.js +1 -0
  12. package/lib/SwatchPicker.js.map +1 -0
  13. package/lib/SwatchPickerRow.js +1 -0
  14. package/lib/SwatchPickerRow.js.map +1 -0
  15. package/lib/components/ColorSwatch/ColorSwatch.js +14 -0
  16. package/lib/components/ColorSwatch/ColorSwatch.js.map +1 -0
  17. package/lib/components/ColorSwatch/ColorSwatch.types.js +1 -0
  18. package/lib/components/ColorSwatch/ColorSwatch.types.js.map +1 -0
  19. package/lib/components/ColorSwatch/index.js +5 -0
  20. package/lib/components/ColorSwatch/index.js.map +1 -0
  21. package/lib/components/ColorSwatch/renderColorSwatch.js +14 -0
  22. package/lib/components/ColorSwatch/renderColorSwatch.js.map +1 -0
  23. package/lib/components/ColorSwatch/useColorSwatch.js +76 -0
  24. package/lib/components/ColorSwatch/useColorSwatch.js.map +1 -0
  25. package/lib/components/ColorSwatch/useColorSwatchStyles.styles.js +148 -0
  26. package/lib/components/ColorSwatch/useColorSwatchStyles.styles.js.map +1 -0
  27. package/lib/components/EmptySwatch/EmptySwatch.js +14 -0
  28. package/lib/components/EmptySwatch/EmptySwatch.js.map +1 -0
  29. package/lib/components/EmptySwatch/EmptySwatch.types.js +1 -0
  30. package/lib/components/EmptySwatch/EmptySwatch.types.js.map +1 -0
  31. package/lib/components/EmptySwatch/index.js +5 -0
  32. package/lib/components/EmptySwatch/index.js.map +1 -0
  33. package/lib/components/EmptySwatch/renderEmptySwatch.js +8 -0
  34. package/lib/components/EmptySwatch/renderEmptySwatch.js.map +1 -0
  35. package/lib/components/EmptySwatch/useEmptySwatch.js +36 -0
  36. package/lib/components/EmptySwatch/useEmptySwatch.js.map +1 -0
  37. package/lib/components/EmptySwatch/useEmptySwatchStyles.styles.js +78 -0
  38. package/lib/components/EmptySwatch/useEmptySwatchStyles.styles.js.map +1 -0
  39. package/lib/components/ImageSwatch/ImageSwatch.js +14 -0
  40. package/lib/components/ImageSwatch/ImageSwatch.js.map +1 -0
  41. package/lib/components/ImageSwatch/ImageSwatch.types.js +1 -0
  42. package/lib/components/ImageSwatch/ImageSwatch.types.js.map +1 -0
  43. package/lib/components/ImageSwatch/index.js +5 -0
  44. package/lib/components/ImageSwatch/index.js.map +1 -0
  45. package/lib/components/ImageSwatch/renderImageSwatch.js +8 -0
  46. package/lib/components/ImageSwatch/renderImageSwatch.js.map +1 -0
  47. package/lib/components/ImageSwatch/useImageSwatch.js +51 -0
  48. package/lib/components/ImageSwatch/useImageSwatch.js.map +1 -0
  49. package/lib/components/ImageSwatch/useImageSwatchStyles.styles.js +102 -0
  50. package/lib/components/ImageSwatch/useImageSwatchStyles.styles.js.map +1 -0
  51. package/lib/components/SwatchPicker/SwatchPicker.js +16 -0
  52. package/lib/components/SwatchPicker/SwatchPicker.js.map +1 -0
  53. package/lib/components/SwatchPicker/SwatchPicker.types.js +1 -0
  54. package/lib/components/SwatchPicker/SwatchPicker.types.js.map +1 -0
  55. package/lib/components/SwatchPicker/index.js +5 -0
  56. package/lib/components/SwatchPicker/index.js.map +1 -0
  57. package/lib/components/SwatchPicker/renderSwatchPicker.js +14 -0
  58. package/lib/components/SwatchPicker/renderSwatchPicker.js.map +1 -0
  59. package/lib/components/SwatchPicker/useSwatchPicker.js +54 -0
  60. package/lib/components/SwatchPicker/useSwatchPicker.js.map +1 -0
  61. package/lib/components/SwatchPicker/useSwatchPickerStyles.styles.js +44 -0
  62. package/lib/components/SwatchPicker/useSwatchPickerStyles.styles.js.map +1 -0
  63. package/lib/components/SwatchPickerRow/SwatchPickerRow.js +14 -0
  64. package/lib/components/SwatchPickerRow/SwatchPickerRow.js.map +1 -0
  65. package/lib/components/SwatchPickerRow/SwatchPickerRow.types.js +1 -0
  66. package/lib/components/SwatchPickerRow/SwatchPickerRow.types.js.map +1 -0
  67. package/lib/components/SwatchPickerRow/index.js +5 -0
  68. package/lib/components/SwatchPickerRow/index.js.map +1 -0
  69. package/lib/components/SwatchPickerRow/renderSwatchPickerRow.js +8 -0
  70. package/lib/components/SwatchPickerRow/renderSwatchPickerRow.js.map +1 -0
  71. package/lib/components/SwatchPickerRow/useSwatchPickerRow.js +28 -0
  72. package/lib/components/SwatchPickerRow/useSwatchPickerRow.js.map +1 -0
  73. package/lib/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js +29 -0
  74. package/lib/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js.map +1 -0
  75. package/lib/contexts/index.js +1 -0
  76. package/lib/contexts/index.js.map +1 -0
  77. package/lib/contexts/swatchPicker.js +29 -0
  78. package/lib/contexts/swatchPicker.js.map +1 -0
  79. package/lib/index.js +7 -0
  80. package/lib/index.js.map +1 -0
  81. package/lib/utils/renderUtils.js +32 -0
  82. package/lib/utils/renderUtils.js.map +1 -0
  83. package/lib-commonjs/ColorSwatch.js +6 -0
  84. package/lib-commonjs/ColorSwatch.js.map +1 -0
  85. package/lib-commonjs/EmptySwatch.js +6 -0
  86. package/lib-commonjs/EmptySwatch.js.map +1 -0
  87. package/lib-commonjs/ImageSwatch.js +6 -0
  88. package/lib-commonjs/ImageSwatch.js.map +1 -0
  89. package/lib-commonjs/SwatchPicker.js +6 -0
  90. package/lib-commonjs/SwatchPicker.js.map +1 -0
  91. package/lib-commonjs/SwatchPickerRow.js +6 -0
  92. package/lib-commonjs/SwatchPickerRow.js.map +1 -0
  93. package/lib-commonjs/components/ColorSwatch/ColorSwatch.js +23 -0
  94. package/lib-commonjs/components/ColorSwatch/ColorSwatch.js.map +1 -0
  95. package/lib-commonjs/components/ColorSwatch/ColorSwatch.types.js +4 -0
  96. package/lib-commonjs/components/ColorSwatch/ColorSwatch.types.js.map +1 -0
  97. package/lib-commonjs/components/ColorSwatch/index.js +10 -0
  98. package/lib-commonjs/components/ColorSwatch/index.js.map +1 -0
  99. package/lib-commonjs/components/ColorSwatch/renderColorSwatch.js +22 -0
  100. package/lib-commonjs/components/ColorSwatch/renderColorSwatch.js.map +1 -0
  101. package/lib-commonjs/components/ColorSwatch/useColorSwatch.js +79 -0
  102. package/lib-commonjs/components/ColorSwatch/useColorSwatch.js.map +1 -0
  103. package/lib-commonjs/components/ColorSwatch/useColorSwatchStyles.styles.js +303 -0
  104. package/lib-commonjs/components/ColorSwatch/useColorSwatchStyles.styles.js.map +1 -0
  105. package/lib-commonjs/components/EmptySwatch/EmptySwatch.js +23 -0
  106. package/lib-commonjs/components/EmptySwatch/EmptySwatch.js.map +1 -0
  107. package/lib-commonjs/components/EmptySwatch/EmptySwatch.types.js +4 -0
  108. package/lib-commonjs/components/EmptySwatch/EmptySwatch.types.js.map +1 -0
  109. package/lib-commonjs/components/EmptySwatch/index.js +10 -0
  110. package/lib-commonjs/components/EmptySwatch/index.js.map +1 -0
  111. package/lib-commonjs/components/EmptySwatch/renderEmptySwatch.js +16 -0
  112. package/lib-commonjs/components/EmptySwatch/renderEmptySwatch.js.map +1 -0
  113. package/lib-commonjs/components/EmptySwatch/useEmptySwatch.js +39 -0
  114. package/lib-commonjs/components/EmptySwatch/useEmptySwatch.js.map +1 -0
  115. package/lib-commonjs/components/EmptySwatch/useEmptySwatchStyles.styles.js +197 -0
  116. package/lib-commonjs/components/EmptySwatch/useEmptySwatchStyles.styles.js.map +1 -0
  117. package/lib-commonjs/components/ImageSwatch/ImageSwatch.js +23 -0
  118. package/lib-commonjs/components/ImageSwatch/ImageSwatch.js.map +1 -0
  119. package/lib-commonjs/components/ImageSwatch/ImageSwatch.types.js +4 -0
  120. package/lib-commonjs/components/ImageSwatch/ImageSwatch.types.js.map +1 -0
  121. package/lib-commonjs/components/ImageSwatch/index.js +10 -0
  122. package/lib-commonjs/components/ImageSwatch/index.js.map +1 -0
  123. package/lib-commonjs/components/ImageSwatch/renderImageSwatch.js +16 -0
  124. package/lib-commonjs/components/ImageSwatch/renderImageSwatch.js.map +1 -0
  125. package/lib-commonjs/components/ImageSwatch/useImageSwatch.js +54 -0
  126. package/lib-commonjs/components/ImageSwatch/useImageSwatch.js.map +1 -0
  127. package/lib-commonjs/components/ImageSwatch/useImageSwatchStyles.styles.js +246 -0
  128. package/lib-commonjs/components/ImageSwatch/useImageSwatchStyles.styles.js.map +1 -0
  129. package/lib-commonjs/components/SwatchPicker/SwatchPicker.js +25 -0
  130. package/lib-commonjs/components/SwatchPicker/SwatchPicker.js.map +1 -0
  131. package/lib-commonjs/components/SwatchPicker/SwatchPicker.types.js +6 -0
  132. package/lib-commonjs/components/SwatchPicker/SwatchPicker.types.js.map +1 -0
  133. package/lib-commonjs/components/SwatchPicker/index.js +10 -0
  134. package/lib-commonjs/components/SwatchPicker/index.js.map +1 -0
  135. package/lib-commonjs/components/SwatchPicker/renderSwatchPicker.js +22 -0
  136. package/lib-commonjs/components/SwatchPicker/renderSwatchPicker.js.map +1 -0
  137. package/lib-commonjs/components/SwatchPicker/useSwatchPicker.js +57 -0
  138. package/lib-commonjs/components/SwatchPicker/useSwatchPicker.js.map +1 -0
  139. package/lib-commonjs/components/SwatchPicker/useSwatchPickerStyles.styles.js +74 -0
  140. package/lib-commonjs/components/SwatchPicker/useSwatchPickerStyles.styles.js.map +1 -0
  141. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.js +23 -0
  142. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.js.map +1 -0
  143. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.types.js +4 -0
  144. package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.types.js.map +1 -0
  145. package/lib-commonjs/components/SwatchPickerRow/index.js +10 -0
  146. package/lib-commonjs/components/SwatchPickerRow/index.js.map +1 -0
  147. package/lib-commonjs/components/SwatchPickerRow/renderSwatchPickerRow.js +16 -0
  148. package/lib-commonjs/components/SwatchPickerRow/renderSwatchPickerRow.js.map +1 -0
  149. package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRow.js +31 -0
  150. package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRow.js.map +1 -0
  151. package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js +47 -0
  152. package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js.map +1 -0
  153. package/lib-commonjs/contexts/index.js +6 -0
  154. package/lib-commonjs/contexts/index.js.map +1 -0
  155. package/lib-commonjs/contexts/swatchPicker.js +54 -0
  156. package/lib-commonjs/contexts/swatchPicker.js.map +1 -0
  157. package/lib-commonjs/index.js +112 -0
  158. package/lib-commonjs/index.js.map +1 -0
  159. package/lib-commonjs/utils/renderUtils.js +43 -0
  160. package/lib-commonjs/utils/renderUtils.js.map +1 -0
  161. package/package.json +69 -0
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@fluentui/react-swatch-picker",
3
+ "version": "0.0.0-nightly-20240517-0405.1",
4
+ "description": "New fluentui react package",
5
+ "main": "lib-commonjs/index.js",
6
+ "module": "lib/index.js",
7
+ "typings": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/microsoft/fluentui"
12
+ },
13
+ "license": "MIT",
14
+ "scripts": {
15
+ "build": "just-scripts build",
16
+ "clean": "just-scripts clean",
17
+ "e2e": "cypress run --component",
18
+ "e2e:local": "cypress open --component",
19
+ "generate-api": "just-scripts generate-api",
20
+ "lint": "just-scripts lint",
21
+ "start": "yarn storybook",
22
+ "storybook": "start-storybook",
23
+ "test": "jest --passWithNoTests",
24
+ "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
25
+ "type-check": "tsc -b tsconfig.json",
26
+ "bundle-size": "monosize measure"
27
+ },
28
+ "devDependencies": {
29
+ "@fluentui/eslint-plugin": "*",
30
+ "@fluentui/react-conformance": "0.0.0-nightly-20240517-0405.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20240517-0405.1",
32
+ "@fluentui/scripts-api-extractor": "*",
33
+ "@fluentui/scripts-cypress": "*",
34
+ "@fluentui/scripts-tasks": "*"
35
+ },
36
+ "dependencies": {
37
+ "@fluentui/react-context-selector": "0.0.0-nightly-20240517-0405.1",
38
+ "@fluentui/react-icons": "^2.0.239",
39
+ "@fluentui/react-jsx-runtime": "0.0.0-nightly-20240517-0405.1",
40
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20240517-0405.1",
41
+ "@fluentui/react-tabster": "0.0.0-nightly-20240517-0405.1",
42
+ "@fluentui/react-theme": "0.0.0-nightly-20240517-0405.1",
43
+ "@fluentui/react-utilities": "0.0.0-nightly-20240517-0405.1",
44
+ "@griffel/react": "^1.5.14",
45
+ "@swc/helpers": "^0.5.1"
46
+ },
47
+ "peerDependencies": {
48
+ "@types/react": ">=16.8.0 <19.0.0",
49
+ "@types/react-dom": ">=16.8.0 <19.0.0",
50
+ "react": ">=16.8.0 <19.0.0",
51
+ "react-dom": ">=16.8.0 <19.0.0"
52
+ },
53
+ "exports": {
54
+ ".": {
55
+ "types": "./dist/index.d.ts",
56
+ "node": "./lib-commonjs/index.js",
57
+ "import": "./lib/index.js",
58
+ "require": "./lib-commonjs/index.js"
59
+ },
60
+ "./package.json": "./package.json"
61
+ },
62
+ "beachball": {},
63
+ "files": [
64
+ "*.md",
65
+ "dist/*.d.ts",
66
+ "lib",
67
+ "lib-commonjs"
68
+ ]
69
+ }