@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.
- package/CHANGELOG.md +136 -0
- package/LICENSE +15 -0
- package/README.md +61 -0
- package/dist/index.d.ts +346 -0
- package/lib/ColorSwatch.js +1 -0
- package/lib/ColorSwatch.js.map +1 -0
- package/lib/EmptySwatch.js +1 -0
- package/lib/EmptySwatch.js.map +1 -0
- package/lib/ImageSwatch.js +1 -0
- package/lib/ImageSwatch.js.map +1 -0
- package/lib/SwatchPicker.js +1 -0
- package/lib/SwatchPicker.js.map +1 -0
- package/lib/SwatchPickerRow.js +1 -0
- package/lib/SwatchPickerRow.js.map +1 -0
- package/lib/components/ColorSwatch/ColorSwatch.js +14 -0
- package/lib/components/ColorSwatch/ColorSwatch.js.map +1 -0
- package/lib/components/ColorSwatch/ColorSwatch.types.js +1 -0
- package/lib/components/ColorSwatch/ColorSwatch.types.js.map +1 -0
- package/lib/components/ColorSwatch/index.js +5 -0
- package/lib/components/ColorSwatch/index.js.map +1 -0
- package/lib/components/ColorSwatch/renderColorSwatch.js +14 -0
- package/lib/components/ColorSwatch/renderColorSwatch.js.map +1 -0
- package/lib/components/ColorSwatch/useColorSwatch.js +76 -0
- package/lib/components/ColorSwatch/useColorSwatch.js.map +1 -0
- package/lib/components/ColorSwatch/useColorSwatchStyles.styles.js +148 -0
- package/lib/components/ColorSwatch/useColorSwatchStyles.styles.js.map +1 -0
- package/lib/components/EmptySwatch/EmptySwatch.js +14 -0
- package/lib/components/EmptySwatch/EmptySwatch.js.map +1 -0
- package/lib/components/EmptySwatch/EmptySwatch.types.js +1 -0
- package/lib/components/EmptySwatch/EmptySwatch.types.js.map +1 -0
- package/lib/components/EmptySwatch/index.js +5 -0
- package/lib/components/EmptySwatch/index.js.map +1 -0
- package/lib/components/EmptySwatch/renderEmptySwatch.js +8 -0
- package/lib/components/EmptySwatch/renderEmptySwatch.js.map +1 -0
- package/lib/components/EmptySwatch/useEmptySwatch.js +36 -0
- package/lib/components/EmptySwatch/useEmptySwatch.js.map +1 -0
- package/lib/components/EmptySwatch/useEmptySwatchStyles.styles.js +78 -0
- package/lib/components/EmptySwatch/useEmptySwatchStyles.styles.js.map +1 -0
- package/lib/components/ImageSwatch/ImageSwatch.js +14 -0
- package/lib/components/ImageSwatch/ImageSwatch.js.map +1 -0
- package/lib/components/ImageSwatch/ImageSwatch.types.js +1 -0
- package/lib/components/ImageSwatch/ImageSwatch.types.js.map +1 -0
- package/lib/components/ImageSwatch/index.js +5 -0
- package/lib/components/ImageSwatch/index.js.map +1 -0
- package/lib/components/ImageSwatch/renderImageSwatch.js +8 -0
- package/lib/components/ImageSwatch/renderImageSwatch.js.map +1 -0
- package/lib/components/ImageSwatch/useImageSwatch.js +51 -0
- package/lib/components/ImageSwatch/useImageSwatch.js.map +1 -0
- package/lib/components/ImageSwatch/useImageSwatchStyles.styles.js +102 -0
- package/lib/components/ImageSwatch/useImageSwatchStyles.styles.js.map +1 -0
- package/lib/components/SwatchPicker/SwatchPicker.js +16 -0
- package/lib/components/SwatchPicker/SwatchPicker.js.map +1 -0
- package/lib/components/SwatchPicker/SwatchPicker.types.js +1 -0
- package/lib/components/SwatchPicker/SwatchPicker.types.js.map +1 -0
- package/lib/components/SwatchPicker/index.js +5 -0
- package/lib/components/SwatchPicker/index.js.map +1 -0
- package/lib/components/SwatchPicker/renderSwatchPicker.js +14 -0
- package/lib/components/SwatchPicker/renderSwatchPicker.js.map +1 -0
- package/lib/components/SwatchPicker/useSwatchPicker.js +54 -0
- package/lib/components/SwatchPicker/useSwatchPicker.js.map +1 -0
- package/lib/components/SwatchPicker/useSwatchPickerStyles.styles.js +44 -0
- package/lib/components/SwatchPicker/useSwatchPickerStyles.styles.js.map +1 -0
- package/lib/components/SwatchPickerRow/SwatchPickerRow.js +14 -0
- package/lib/components/SwatchPickerRow/SwatchPickerRow.js.map +1 -0
- package/lib/components/SwatchPickerRow/SwatchPickerRow.types.js +1 -0
- package/lib/components/SwatchPickerRow/SwatchPickerRow.types.js.map +1 -0
- package/lib/components/SwatchPickerRow/index.js +5 -0
- package/lib/components/SwatchPickerRow/index.js.map +1 -0
- package/lib/components/SwatchPickerRow/renderSwatchPickerRow.js +8 -0
- package/lib/components/SwatchPickerRow/renderSwatchPickerRow.js.map +1 -0
- package/lib/components/SwatchPickerRow/useSwatchPickerRow.js +28 -0
- package/lib/components/SwatchPickerRow/useSwatchPickerRow.js.map +1 -0
- package/lib/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js +29 -0
- package/lib/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js.map +1 -0
- package/lib/contexts/index.js +1 -0
- package/lib/contexts/index.js.map +1 -0
- package/lib/contexts/swatchPicker.js +29 -0
- package/lib/contexts/swatchPicker.js.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -0
- package/lib/utils/renderUtils.js +32 -0
- package/lib/utils/renderUtils.js.map +1 -0
- package/lib-commonjs/ColorSwatch.js +6 -0
- package/lib-commonjs/ColorSwatch.js.map +1 -0
- package/lib-commonjs/EmptySwatch.js +6 -0
- package/lib-commonjs/EmptySwatch.js.map +1 -0
- package/lib-commonjs/ImageSwatch.js +6 -0
- package/lib-commonjs/ImageSwatch.js.map +1 -0
- package/lib-commonjs/SwatchPicker.js +6 -0
- package/lib-commonjs/SwatchPicker.js.map +1 -0
- package/lib-commonjs/SwatchPickerRow.js +6 -0
- package/lib-commonjs/SwatchPickerRow.js.map +1 -0
- package/lib-commonjs/components/ColorSwatch/ColorSwatch.js +23 -0
- package/lib-commonjs/components/ColorSwatch/ColorSwatch.js.map +1 -0
- package/lib-commonjs/components/ColorSwatch/ColorSwatch.types.js +4 -0
- package/lib-commonjs/components/ColorSwatch/ColorSwatch.types.js.map +1 -0
- package/lib-commonjs/components/ColorSwatch/index.js +10 -0
- package/lib-commonjs/components/ColorSwatch/index.js.map +1 -0
- package/lib-commonjs/components/ColorSwatch/renderColorSwatch.js +22 -0
- package/lib-commonjs/components/ColorSwatch/renderColorSwatch.js.map +1 -0
- package/lib-commonjs/components/ColorSwatch/useColorSwatch.js +79 -0
- package/lib-commonjs/components/ColorSwatch/useColorSwatch.js.map +1 -0
- package/lib-commonjs/components/ColorSwatch/useColorSwatchStyles.styles.js +303 -0
- package/lib-commonjs/components/ColorSwatch/useColorSwatchStyles.styles.js.map +1 -0
- package/lib-commonjs/components/EmptySwatch/EmptySwatch.js +23 -0
- package/lib-commonjs/components/EmptySwatch/EmptySwatch.js.map +1 -0
- package/lib-commonjs/components/EmptySwatch/EmptySwatch.types.js +4 -0
- package/lib-commonjs/components/EmptySwatch/EmptySwatch.types.js.map +1 -0
- package/lib-commonjs/components/EmptySwatch/index.js +10 -0
- package/lib-commonjs/components/EmptySwatch/index.js.map +1 -0
- package/lib-commonjs/components/EmptySwatch/renderEmptySwatch.js +16 -0
- package/lib-commonjs/components/EmptySwatch/renderEmptySwatch.js.map +1 -0
- package/lib-commonjs/components/EmptySwatch/useEmptySwatch.js +39 -0
- package/lib-commonjs/components/EmptySwatch/useEmptySwatch.js.map +1 -0
- package/lib-commonjs/components/EmptySwatch/useEmptySwatchStyles.styles.js +197 -0
- package/lib-commonjs/components/EmptySwatch/useEmptySwatchStyles.styles.js.map +1 -0
- package/lib-commonjs/components/ImageSwatch/ImageSwatch.js +23 -0
- package/lib-commonjs/components/ImageSwatch/ImageSwatch.js.map +1 -0
- package/lib-commonjs/components/ImageSwatch/ImageSwatch.types.js +4 -0
- package/lib-commonjs/components/ImageSwatch/ImageSwatch.types.js.map +1 -0
- package/lib-commonjs/components/ImageSwatch/index.js +10 -0
- package/lib-commonjs/components/ImageSwatch/index.js.map +1 -0
- package/lib-commonjs/components/ImageSwatch/renderImageSwatch.js +16 -0
- package/lib-commonjs/components/ImageSwatch/renderImageSwatch.js.map +1 -0
- package/lib-commonjs/components/ImageSwatch/useImageSwatch.js +54 -0
- package/lib-commonjs/components/ImageSwatch/useImageSwatch.js.map +1 -0
- package/lib-commonjs/components/ImageSwatch/useImageSwatchStyles.styles.js +246 -0
- package/lib-commonjs/components/ImageSwatch/useImageSwatchStyles.styles.js.map +1 -0
- package/lib-commonjs/components/SwatchPicker/SwatchPicker.js +25 -0
- package/lib-commonjs/components/SwatchPicker/SwatchPicker.js.map +1 -0
- package/lib-commonjs/components/SwatchPicker/SwatchPicker.types.js +6 -0
- package/lib-commonjs/components/SwatchPicker/SwatchPicker.types.js.map +1 -0
- package/lib-commonjs/components/SwatchPicker/index.js +10 -0
- package/lib-commonjs/components/SwatchPicker/index.js.map +1 -0
- package/lib-commonjs/components/SwatchPicker/renderSwatchPicker.js +22 -0
- package/lib-commonjs/components/SwatchPicker/renderSwatchPicker.js.map +1 -0
- package/lib-commonjs/components/SwatchPicker/useSwatchPicker.js +57 -0
- package/lib-commonjs/components/SwatchPicker/useSwatchPicker.js.map +1 -0
- package/lib-commonjs/components/SwatchPicker/useSwatchPickerStyles.styles.js +74 -0
- package/lib-commonjs/components/SwatchPicker/useSwatchPickerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.js +23 -0
- package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.js.map +1 -0
- package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.types.js +4 -0
- package/lib-commonjs/components/SwatchPickerRow/SwatchPickerRow.types.js.map +1 -0
- package/lib-commonjs/components/SwatchPickerRow/index.js +10 -0
- package/lib-commonjs/components/SwatchPickerRow/index.js.map +1 -0
- package/lib-commonjs/components/SwatchPickerRow/renderSwatchPickerRow.js +16 -0
- package/lib-commonjs/components/SwatchPickerRow/renderSwatchPickerRow.js.map +1 -0
- package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRow.js +31 -0
- package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRow.js.map +1 -0
- package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js +47 -0
- package/lib-commonjs/components/SwatchPickerRow/useSwatchPickerRowStyles.styles.js.map +1 -0
- package/lib-commonjs/contexts/index.js +6 -0
- package/lib-commonjs/contexts/index.js.map +1 -0
- package/lib-commonjs/contexts/swatchPicker.js +54 -0
- package/lib-commonjs/contexts/swatchPicker.js.map +1 -0
- package/lib-commonjs/index.js +112 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/utils/renderUtils.js +43 -0
- package/lib-commonjs/utils/renderUtils.js.map +1 -0
- 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
|
+
}
|