@fluentui/react-color-picker 0.0.0-nightly-20250319-0406.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 (157) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/LICENSE +15 -0
  3. package/README.md +50 -0
  4. package/dist/index.d.ts +281 -0
  5. package/lib/AlphaSlider.js +1 -0
  6. package/lib/AlphaSlider.js.map +1 -0
  7. package/lib/ColorArea.js +1 -0
  8. package/lib/ColorArea.js.map +1 -0
  9. package/lib/ColorPicker.js +1 -0
  10. package/lib/ColorPicker.js.map +1 -0
  11. package/lib/ColorSlider.js +1 -0
  12. package/lib/ColorSlider.js.map +1 -0
  13. package/lib/components/AlphaSlider/AlphaSlider.js +14 -0
  14. package/lib/components/AlphaSlider/AlphaSlider.js.map +1 -0
  15. package/lib/components/AlphaSlider/AlphaSlider.types.js +3 -0
  16. package/lib/components/AlphaSlider/AlphaSlider.types.js.map +1 -0
  17. package/lib/components/AlphaSlider/alphaSliderUtils.js +31 -0
  18. package/lib/components/AlphaSlider/alphaSliderUtils.js.map +1 -0
  19. package/lib/components/AlphaSlider/index.js +4 -0
  20. package/lib/components/AlphaSlider/index.js.map +1 -0
  21. package/lib/components/AlphaSlider/renderAlphaSlider.js +14 -0
  22. package/lib/components/AlphaSlider/renderAlphaSlider.js.map +1 -0
  23. package/lib/components/AlphaSlider/useAlphaSlider.js +56 -0
  24. package/lib/components/AlphaSlider/useAlphaSlider.js.map +1 -0
  25. package/lib/components/AlphaSlider/useAlphaSliderState.js +58 -0
  26. package/lib/components/AlphaSlider/useAlphaSliderState.js.map +1 -0
  27. package/lib/components/AlphaSlider/useAlphaSliderStyles.styles.js +80 -0
  28. package/lib/components/AlphaSlider/useAlphaSliderStyles.styles.js.map +1 -0
  29. package/lib/components/ColorArea/ColorArea.js +14 -0
  30. package/lib/components/ColorArea/ColorArea.js.map +1 -0
  31. package/lib/components/ColorArea/ColorArea.types.js +1 -0
  32. package/lib/components/ColorArea/ColorArea.types.js.map +1 -0
  33. package/lib/components/ColorArea/index.js +4 -0
  34. package/lib/components/ColorArea/index.js.map +1 -0
  35. package/lib/components/ColorArea/renderColorArea.js +15 -0
  36. package/lib/components/ColorArea/renderColorArea.js.map +1 -0
  37. package/lib/components/ColorArea/useColorArea.js +189 -0
  38. package/lib/components/ColorArea/useColorArea.js.map +1 -0
  39. package/lib/components/ColorArea/useColorAreaStyles.styles.js +231 -0
  40. package/lib/components/ColorArea/useColorAreaStyles.styles.js.map +1 -0
  41. package/lib/components/ColorPicker/ColorPicker.js +16 -0
  42. package/lib/components/ColorPicker/ColorPicker.js.map +1 -0
  43. package/lib/components/ColorPicker/ColorPicker.types.js +1 -0
  44. package/lib/components/ColorPicker/ColorPicker.types.js.map +1 -0
  45. package/lib/components/ColorPicker/index.js +4 -0
  46. package/lib/components/ColorPicker/index.js.map +1 -0
  47. package/lib/components/ColorPicker/renderColorPicker.js +14 -0
  48. package/lib/components/ColorPicker/renderColorPicker.js.map +1 -0
  49. package/lib/components/ColorPicker/useColorPicker.js +34 -0
  50. package/lib/components/ColorPicker/useColorPicker.js.map +1 -0
  51. package/lib/components/ColorPicker/useColorPickerStyles.styles.js +31 -0
  52. package/lib/components/ColorPicker/useColorPickerStyles.styles.js.map +1 -0
  53. package/lib/components/ColorSlider/ColorSlider.js +14 -0
  54. package/lib/components/ColorSlider/ColorSlider.js.map +1 -0
  55. package/lib/components/ColorSlider/ColorSlider.types.js +1 -0
  56. package/lib/components/ColorSlider/ColorSlider.types.js.map +1 -0
  57. package/lib/components/ColorSlider/index.js +4 -0
  58. package/lib/components/ColorSlider/index.js.map +1 -0
  59. package/lib/components/ColorSlider/renderColorSlider.js +14 -0
  60. package/lib/components/ColorSlider/renderColorSlider.js.map +1 -0
  61. package/lib/components/ColorSlider/useColorSlider.js +129 -0
  62. package/lib/components/ColorSlider/useColorSlider.js.map +1 -0
  63. package/lib/components/ColorSlider/useColorSliderStyles.styles.js +288 -0
  64. package/lib/components/ColorSlider/useColorSliderStyles.styles.js.map +1 -0
  65. package/lib/contexts/colorPicker.js +23 -0
  66. package/lib/contexts/colorPicker.js.map +1 -0
  67. package/lib/index.js +4 -0
  68. package/lib/index.js.map +1 -0
  69. package/lib/types/color.js +1 -0
  70. package/lib/types/color.js.map +1 -0
  71. package/lib/utils/adjustChannel.js +22 -0
  72. package/lib/utils/adjustChannel.js.map +1 -0
  73. package/lib/utils/constants.js +6 -0
  74. package/lib/utils/constants.js.map +1 -0
  75. package/lib/utils/createHsvColor.js +17 -0
  76. package/lib/utils/createHsvColor.js.map +1 -0
  77. package/lib/utils/getCoordinates.js +24 -0
  78. package/lib/utils/getCoordinates.js.map +1 -0
  79. package/lib/utils/getPercent.js +11 -0
  80. package/lib/utils/getPercent.js.map +1 -0
  81. package/lib-commonjs/AlphaSlider.js +31 -0
  82. package/lib-commonjs/AlphaSlider.js.map +1 -0
  83. package/lib-commonjs/ColorArea.js +31 -0
  84. package/lib-commonjs/ColorArea.js.map +1 -0
  85. package/lib-commonjs/ColorPicker.js +28 -0
  86. package/lib-commonjs/ColorPicker.js.map +1 -0
  87. package/lib-commonjs/ColorSlider.js +31 -0
  88. package/lib-commonjs/ColorSlider.js.map +1 -0
  89. package/lib-commonjs/components/AlphaSlider/AlphaSlider.js +23 -0
  90. package/lib-commonjs/components/AlphaSlider/AlphaSlider.js.map +1 -0
  91. package/lib-commonjs/components/AlphaSlider/AlphaSlider.types.js +6 -0
  92. package/lib-commonjs/components/AlphaSlider/AlphaSlider.types.js.map +1 -0
  93. package/lib-commonjs/components/AlphaSlider/alphaSliderUtils.js +39 -0
  94. package/lib-commonjs/components/AlphaSlider/alphaSliderUtils.js.map +1 -0
  95. package/lib-commonjs/components/AlphaSlider/index.js +34 -0
  96. package/lib-commonjs/components/AlphaSlider/index.js.map +1 -0
  97. package/lib-commonjs/components/AlphaSlider/renderAlphaSlider.js +22 -0
  98. package/lib-commonjs/components/AlphaSlider/renderAlphaSlider.js.map +1 -0
  99. package/lib-commonjs/components/AlphaSlider/useAlphaSlider.js +58 -0
  100. package/lib-commonjs/components/AlphaSlider/useAlphaSlider.js.map +1 -0
  101. package/lib-commonjs/components/AlphaSlider/useAlphaSliderState.js +69 -0
  102. package/lib-commonjs/components/AlphaSlider/useAlphaSliderState.js.map +1 -0
  103. package/lib-commonjs/components/AlphaSlider/useAlphaSliderStyles.styles.js +115 -0
  104. package/lib-commonjs/components/AlphaSlider/useAlphaSliderStyles.styles.js.map +1 -0
  105. package/lib-commonjs/components/ColorArea/ColorArea.js +23 -0
  106. package/lib-commonjs/components/ColorArea/ColorArea.js.map +1 -0
  107. package/lib-commonjs/components/ColorArea/ColorArea.types.js +6 -0
  108. package/lib-commonjs/components/ColorArea/ColorArea.types.js.map +1 -0
  109. package/lib-commonjs/components/ColorArea/index.js +34 -0
  110. package/lib-commonjs/components/ColorArea/index.js.map +1 -0
  111. package/lib-commonjs/components/ColorArea/renderColorArea.js +23 -0
  112. package/lib-commonjs/components/ColorArea/renderColorArea.js.map +1 -0
  113. package/lib-commonjs/components/ColorArea/useColorArea.js +190 -0
  114. package/lib-commonjs/components/ColorArea/useColorArea.js.map +1 -0
  115. package/lib-commonjs/components/ColorArea/useColorAreaStyles.styles.js +377 -0
  116. package/lib-commonjs/components/ColorArea/useColorAreaStyles.styles.js.map +1 -0
  117. package/lib-commonjs/components/ColorPicker/ColorPicker.js +25 -0
  118. package/lib-commonjs/components/ColorPicker/ColorPicker.js.map +1 -0
  119. package/lib-commonjs/components/ColorPicker/ColorPicker.types.js +6 -0
  120. package/lib-commonjs/components/ColorPicker/ColorPicker.types.js.map +1 -0
  121. package/lib-commonjs/components/ColorPicker/index.js +31 -0
  122. package/lib-commonjs/components/ColorPicker/index.js.map +1 -0
  123. package/lib-commonjs/components/ColorPicker/renderColorPicker.js +22 -0
  124. package/lib-commonjs/components/ColorPicker/renderColorPicker.js.map +1 -0
  125. package/lib-commonjs/components/ColorPicker/useColorPicker.js +37 -0
  126. package/lib-commonjs/components/ColorPicker/useColorPicker.js.map +1 -0
  127. package/lib-commonjs/components/ColorPicker/useColorPickerStyles.styles.js +50 -0
  128. package/lib-commonjs/components/ColorPicker/useColorPickerStyles.styles.js.map +1 -0
  129. package/lib-commonjs/components/ColorSlider/ColorSlider.js +23 -0
  130. package/lib-commonjs/components/ColorSlider/ColorSlider.js.map +1 -0
  131. package/lib-commonjs/components/ColorSlider/ColorSlider.types.js +6 -0
  132. package/lib-commonjs/components/ColorSlider/ColorSlider.types.js.map +1 -0
  133. package/lib-commonjs/components/ColorSlider/index.js +34 -0
  134. package/lib-commonjs/components/ColorSlider/index.js.map +1 -0
  135. package/lib-commonjs/components/ColorSlider/renderColorSlider.js +22 -0
  136. package/lib-commonjs/components/ColorSlider/renderColorSlider.js.map +1 -0
  137. package/lib-commonjs/components/ColorSlider/useColorSlider.js +130 -0
  138. package/lib-commonjs/components/ColorSlider/useColorSlider.js.map +1 -0
  139. package/lib-commonjs/components/ColorSlider/useColorSliderStyles.styles.js +454 -0
  140. package/lib-commonjs/components/ColorSlider/useColorSliderStyles.styles.js.map +1 -0
  141. package/lib-commonjs/contexts/colorPicker.js +48 -0
  142. package/lib-commonjs/contexts/colorPicker.js.map +1 -0
  143. package/lib-commonjs/index.js +76 -0
  144. package/lib-commonjs/index.js.map +1 -0
  145. package/lib-commonjs/types/color.js +4 -0
  146. package/lib-commonjs/types/color.js.map +1 -0
  147. package/lib-commonjs/utils/adjustChannel.js +27 -0
  148. package/lib-commonjs/utils/adjustChannel.js.map +1 -0
  149. package/lib-commonjs/utils/constants.js +33 -0
  150. package/lib-commonjs/utils/constants.js.map +1 -0
  151. package/lib-commonjs/utils/createHsvColor.js +27 -0
  152. package/lib-commonjs/utils/createHsvColor.js.map +1 -0
  153. package/lib-commonjs/utils/getCoordinates.js +31 -0
  154. package/lib-commonjs/utils/getCoordinates.js.map +1 -0
  155. package/lib-commonjs/utils/getPercent.js +21 -0
  156. package/lib-commonjs/utils/getPercent.js.map +1 -0
  157. package/package.json +53 -0
@@ -0,0 +1,288 @@
1
+ import { __styles, __resetStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const colorSliderClassNames = {
4
+ root: 'fui-ColorSlider',
5
+ rail: 'fui-ColorSlider__rail',
6
+ thumb: 'fui-ColorSlider__thumb',
7
+ input: 'fui-ColorSlider__input'
8
+ };
9
+ export const colorSliderCSSVars = {
10
+ sliderDirectionVar: `--fui-Slider--direction`,
11
+ sliderProgressVar: `--fui-Slider--progress`,
12
+ thumbColorVar: `--fui-Slider__thumb--color`,
13
+ railColorVar: `--fui-Slider__rail--color`,
14
+ thumbSizeVar: `--fui-Slider__thumb--size`,
15
+ railSizeVar: `--fui-Slider__rail--size`
16
+ };
17
+ const hueBackground = `linear-gradient(${/*#__PURE__*/[`var(${colorSliderCSSVars.sliderDirectionVar})`, 'red', 'fuchsia', 'blue', 'aqua', 'lime', 'yellow', 'red'].join(',')})`;
18
+ /**
19
+ * Styles for the root slot
20
+ */
21
+ const useRootStyles = /*#__PURE__*/__resetStyles("r1j9hj9j", null, [".r1j9hj9j{position:relative;display:inline-grid;touch-action:none;align-items:center;justify-items:center;--fui-Slider__thumb--size:20px;--fui-Slider__rail--size:20px;min-height:32px;}"]);
22
+ const useStyles = /*#__PURE__*/__styles({
23
+ horizontal: {
24
+ Bf4jedk: "f93ek0f",
25
+ wkccdc: "fgfd48t",
26
+ Budl1dq: "f11e9psi"
27
+ },
28
+ vertical: {
29
+ sshi5w: "fwwq4i4",
30
+ wkccdc: "fqcvrs3",
31
+ Budl1dq: "fiadc6h"
32
+ }
33
+ }, {
34
+ d: [".f93ek0f{min-width:200px;}", ".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}", ".f11e9psi{grid-template-columns:1fr 100% 1fr;}", ".fwwq4i4{min-height:280px;}", ".fqcvrs3{grid-template-rows:1fr 100% 1fr;}", ".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}"]
35
+ });
36
+ const useChannelStyles = /*#__PURE__*/__styles({
37
+ hue: {
38
+ Bcmaq0h: "f1curpo1"
39
+ },
40
+ saturation: {
41
+ Bcmaq0h: ["fdhcg5e", "f1onqon0"]
42
+ },
43
+ value: {
44
+ Bcmaq0h: ["f1r1ueul", "fbtriqu"]
45
+ }
46
+ }, {
47
+ d: [".f1curpo1{background-image:linear-gradient(var(--fui-Slider--direction),red,fuchsia,blue,aqua,lime,yellow,red);}", ".fdhcg5e{background-image:linear-gradient(to right, #808080, var(--fui-Slider__rail--color));}", ".f1onqon0{background-image:linear-gradient(to left, #808080, var(--fui-Slider__rail--color));}", ".f1r1ueul{background-image:linear-gradient(to right, #000, var(--fui-Slider__rail--color));}", ".fbtriqu{background-image:linear-gradient(to left, #000, var(--fui-Slider__rail--color));}"]
48
+ });
49
+ /**
50
+ * Styles for the rail slot
51
+ */
52
+ const useRailStyles = /*#__PURE__*/__styles({
53
+ rail: {
54
+ Bkecrkj: "f1aehjj5",
55
+ Ijaq50: "faunodf",
56
+ nk6f5a: "f88nxoq",
57
+ Br312pm: "fd46tj4",
58
+ Bw0ie65: "f1e2fz10",
59
+ qhf8xq: "f10pi13n",
60
+ Bvjb7m6: "fdgv6k0",
61
+ Bpd4iqm: "fpvhumw",
62
+ oeaueh: "f1yog68k",
63
+ Bw0xxkn: "f13sgyd8",
64
+ Ftih45: "fzhtfnv",
65
+ Brfgrao: "f1j7ml58"
66
+ },
67
+ horizontal: {
68
+ a9b677: "fly5x3f",
69
+ Bqenvij: "f1cy86ho",
70
+ Fbdkly: ["f1heqfse", "fkh49vu"],
71
+ mdwyqc: ["fkh49vu", "f1heqfse"],
72
+ Baz25je: "f16tdq4e"
73
+ },
74
+ vertical: {
75
+ a9b677: "fqxfnkd",
76
+ Bqenvij: "f1l02sjl",
77
+ Ccq8qp: "f1rik0od",
78
+ Bciustq: "f14xwovp",
79
+ lawp4y: "febq2dz"
80
+ }
81
+ }, {
82
+ d: [".f1aehjj5{pointer-events:none;}", ".faunodf{grid-row-start:2;}", ".f88nxoq{grid-row-end:2;}", ".fd46tj4{grid-column-start:2;}", ".f1e2fz10{grid-column-end:2;}", ".f10pi13n{position:relative;}", ".fdgv6k0{forced-color-adjust:none;}", ".fpvhumw{outline-width:1px;}", ".f1yog68k{outline-style:solid;}", ".f13sgyd8{outline-color:var(--colorTransparentStroke);}", ".fzhtfnv::before{content:'';}", ".f1j7ml58::before{position:absolute;}", ".fly5x3f{width:100%;}", ".f1cy86ho{height:var(--fui-Slider__rail--size);}", ".f1heqfse::before{left:-1px;}", ".fkh49vu::before{right:-1px;}", ".f16tdq4e::before{height:var(--fui-Slider__rail--size);}", ".fqxfnkd{width:var(--fui-Slider__rail--size);}", ".f1l02sjl{height:100%;}", ".f1rik0od::before{width:var(--fui-Slider__rail--size);}", ".f14xwovp::before{top:-1px;}", ".febq2dz::before{bottom:1px;}"]
83
+ });
84
+ /**
85
+ * Styles for the thumb slot
86
+ */
87
+ const useThumbStyles = /*#__PURE__*/__styles({
88
+ thumb: {
89
+ Ijaq50: "faunodf",
90
+ nk6f5a: "f88nxoq",
91
+ Br312pm: "fd46tj4",
92
+ Bw0ie65: "f1e2fz10",
93
+ qhf8xq: "f1euv43f",
94
+ a9b677: "f174ca62",
95
+ Bqenvij: "f1yfdkfd",
96
+ Bkecrkj: "f1aehjj5",
97
+ oeaueh: "f1s6fcnf",
98
+ Bvjb7m6: "fdgv6k0",
99
+ Beyfa6y: 0,
100
+ Bbmb7ep: 0,
101
+ Btl43ni: 0,
102
+ B7oj6ja: 0,
103
+ Dimara: "f44lkw9",
104
+ Bgfg5da: 0,
105
+ B9xav0g: 0,
106
+ oivjwe: 0,
107
+ Bn0qgzm: 0,
108
+ B4g9neb: 0,
109
+ zhjwy3: 0,
110
+ wvpqe5: 0,
111
+ ibv6hh: 0,
112
+ u1mtju: 0,
113
+ h3c5rm: 0,
114
+ vrafjx: 0,
115
+ Bekrc4i: 0,
116
+ i8vvqc: 0,
117
+ g2u3we: 0,
118
+ icvyot: 0,
119
+ B4j52fo: 0,
120
+ irswps: "f1lvq45z",
121
+ E5pizo: "f1whvlc6",
122
+ De3pzq: "foksa45",
123
+ Brfgrao: "f1j7ml58",
124
+ lawp4y: 0,
125
+ Fbdkly: 0,
126
+ mdwyqc: 0,
127
+ Bciustq: 0,
128
+ gc50h5: "f1abv9ik",
129
+ r59vdv: 0,
130
+ Budzafs: 0,
131
+ ck0cow: 0,
132
+ n07z76: 0,
133
+ Gng75u: "fielpny",
134
+ Bcvre1j: "fyl8oag",
135
+ Ftih45: "fzhtfnv",
136
+ Bcgcnre: 0,
137
+ Bqjgrrk: 0,
138
+ qa3bma: 0,
139
+ y0oebl: 0,
140
+ Biqmznv: 0,
141
+ Bm6vgfq: 0,
142
+ Bbv0w2i: 0,
143
+ uvfttm: 0,
144
+ eqrjj: 0,
145
+ Bk5zm6e: 0,
146
+ m598lv: 0,
147
+ B4f6apu: 0,
148
+ ydt019: 0,
149
+ Bq4z7u6: 0,
150
+ Bdkvgpv: 0,
151
+ B0qfbqy: 0,
152
+ kj8mxx: "f3i7wkk"
153
+ },
154
+ horizontal: {
155
+ Bz10aip: ["f13gfj74", "f1nfknbn"],
156
+ oyh7mz: ["f1fj3zth", "fcf9u6w"]
157
+ },
158
+ vertical: {
159
+ Bz10aip: "f5cv5a3",
160
+ B5kzvoi: "feeniun"
161
+ }
162
+ }, {
163
+ d: [".faunodf{grid-row-start:2;}", ".f88nxoq{grid-row-end:2;}", ".fd46tj4{grid-column-start:2;}", ".f1e2fz10{grid-column-end:2;}", ".f1euv43f{position:absolute;}", ".f174ca62{width:var(--fui-Slider__thumb--size);}", ".f1yfdkfd{height:var(--fui-Slider__thumb--size);}", ".f1aehjj5{pointer-events:none;}", ".f1s6fcnf{outline-style:none;}", ".fdgv6k0{forced-color-adjust:none;}", [".f44lkw9{border-radius:var(--borderRadiusCircular);}", {
164
+ p: -1
165
+ }], [".f1lvq45z{border:var(--strokeWidthThin) solid var(--colorNeutralForeground4);}", {
166
+ p: -2
167
+ }], ".f1whvlc6{box-shadow:var(--shadow4);}", ".foksa45{background-color:var(--fui-Slider__thumb--color);}", ".f1j7ml58::before{position:absolute;}", [".f1abv9ik::before{inset:0px;}", {
168
+ p: -1
169
+ }], [".fielpny::before{border-radius:var(--borderRadiusCircular);}", {
170
+ p: -1
171
+ }], ".fyl8oag::before{box-sizing:border-box;}", ".fzhtfnv::before{content:'';}", [".f3i7wkk::before{border:var(--strokeWidthThick) solid var(--colorNeutralBackground1);}", {
172
+ p: -2
173
+ }], ".f13gfj74{transform:translateX(-50%);}", ".f1nfknbn{transform:translateX(50%);}", ".f1fj3zth{left:var(--fui-Slider--progress);}", ".fcf9u6w{right:var(--fui-Slider--progress);}", ".f5cv5a3{transform:translateY(50%);}", ".feeniun{bottom:var(--fui-Slider--progress);}"]
174
+ });
175
+ const useShapeStyles = /*#__PURE__*/__styles({
176
+ rounded: {
177
+ Beyfa6y: 0,
178
+ Bbmb7ep: 0,
179
+ Btl43ni: 0,
180
+ B7oj6ja: 0,
181
+ Dimara: "ft85np5"
182
+ },
183
+ square: {
184
+ Beyfa6y: 0,
185
+ Bbmb7ep: 0,
186
+ Btl43ni: 0,
187
+ B7oj6ja: 0,
188
+ Dimara: "f1fabniw"
189
+ }
190
+ }, {
191
+ d: [[".ft85np5{border-radius:var(--borderRadiusMedium);}", {
192
+ p: -1
193
+ }], [".f1fabniw{border-radius:var(--borderRadiusNone);}", {
194
+ p: -1
195
+ }]]
196
+ });
197
+ /**
198
+ * Styles for the Input slot
199
+ */
200
+ const useInputStyles = /*#__PURE__*/__styles({
201
+ input: {
202
+ Bceei9c: "f1k6fduh",
203
+ abs64n: "fk73vx1",
204
+ Ijaq50: "f16hsg94",
205
+ nk6f5a: "f1nzqi2z",
206
+ Br312pm: "fwpfdsa",
207
+ Bw0ie65: "fuur7zz",
208
+ Byoj8tv: 0,
209
+ uwmqm3: 0,
210
+ z189sj: 0,
211
+ z8tnut: 0,
212
+ B0ocmuz: "f1mk8lai",
213
+ jrapky: 0,
214
+ Frg6f3: 0,
215
+ t21cq0: 0,
216
+ B6of3ja: 0,
217
+ B74szlk: "f1s184ao",
218
+ jo39rj: 0,
219
+ C5zqim: 0,
220
+ Bdlbwnu: 0,
221
+ B8rk77i: 0,
222
+ Bbzx7hc: 0,
223
+ Hwkvcz: 0,
224
+ B0nnt1c: 0,
225
+ Brwsv5j: 0,
226
+ B2b7vog: 0,
227
+ B4hmq5e: 0,
228
+ B8jxwem: 0,
229
+ B18nadz: 0,
230
+ Ddg5ig: 0,
231
+ Byj09el: 0,
232
+ Dac2s3: 0,
233
+ Dd2y6r: 0,
234
+ Bk0t58e: "f1nq8t98",
235
+ Ewenww: 0,
236
+ Brqi8qb: 0,
237
+ zz3kca: 0,
238
+ low6xx: "fjt56wq",
239
+ d0s10n: 0,
240
+ wea7l5: 0,
241
+ olu5tv: 0,
242
+ g5nsvh: 0,
243
+ Bqvnfwh: "f1n9m442"
244
+ },
245
+ horizontal: {
246
+ Bqenvij: "f1yfdkfd",
247
+ a9b677: "fly5x3f"
248
+ },
249
+ vertical: {
250
+ Bqenvij: "f1l02sjl",
251
+ a9b677: "f174ca62",
252
+ Biqzhck: "f1r7j8g6",
253
+ kgocjf: ["f1va4sj6", "f1r2v9sp"]
254
+ }
255
+ }, {
256
+ d: [".f1k6fduh{cursor:pointer;}", ".fk73vx1{opacity:0;}", ".f16hsg94{grid-row-start:1;}", ".f1nzqi2z{grid-row-end:-1;}", ".fwpfdsa{grid-column-start:1;}", ".fuur7zz{grid-column-end:-1;}", [".f1mk8lai{padding:0;}", {
257
+ p: -1
258
+ }], [".f1s184ao{margin:0;}", {
259
+ p: -1
260
+ }], ".f1yfdkfd{height:var(--fui-Slider__thumb--size);}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}", ".f174ca62{width:var(--fui-Slider__thumb--size);}", ".f1r7j8g6{writing-mode:vertical-lr;}", ".f1va4sj6{direction:rtl;}", ".f1r2v9sp{direction:ltr;}"],
261
+ i: [[".f1nq8t98:focus-visible~.fui-ColorSlider__thumb{border:2px solid var(--colorStrokeFocus2);}", {
262
+ p: -2
263
+ }], [".fjt56wq:focus-visible~.fui-ColorSlider__thumb{outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);}", {
264
+ p: -1
265
+ }], [".f1n9m442:focus-visible~.fui-ColorSlider__thumb{border-radius:var(--borderRadiusCircular);}", {
266
+ p: -1
267
+ }]]
268
+ });
269
+ /**
270
+ * Apply styling to the ColorSlider slots based on the state
271
+ */
272
+ export const useColorSliderStyles_unstable = state => {
273
+ 'use no memo';
274
+
275
+ const rootStyles = useRootStyles();
276
+ const styles = useStyles();
277
+ const railStyles = useRailStyles();
278
+ const thumbStyles = useThumbStyles();
279
+ const inputStyles = useInputStyles();
280
+ const shapeStyles = useShapeStyles();
281
+ const channelStyles = useChannelStyles();
282
+ const isVertical = state.vertical;
283
+ state.root.className = mergeClasses(colorSliderClassNames.root, rootStyles, isVertical ? styles.vertical : styles.horizontal, state.root.className);
284
+ state.rail.className = mergeClasses(colorSliderClassNames.rail, railStyles.rail, channelStyles[state.channel || 'hue'], shapeStyles[state.shape || 'rounded'], isVertical ? railStyles.vertical : railStyles.horizontal, state.rail.className);
285
+ state.thumb.className = mergeClasses(colorSliderClassNames.thumb, thumbStyles.thumb, isVertical ? thumbStyles.vertical : thumbStyles.horizontal, state.thumb.className);
286
+ state.input.className = mergeClasses(colorSliderClassNames.input, inputStyles.input, isVertical ? inputStyles.vertical : inputStyles.horizontal, state.input.className);
287
+ return state;
288
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__styles","__resetStyles","mergeClasses","tokens","colorSliderClassNames","root","rail","thumb","input","colorSliderCSSVars","sliderDirectionVar","sliderProgressVar","thumbColorVar","railColorVar","thumbSizeVar","railSizeVar","hueBackground","join","useRootStyles","useStyles","horizontal","Bf4jedk","wkccdc","Budl1dq","vertical","sshi5w","d","useChannelStyles","hue","Bcmaq0h","saturation","value","useRailStyles","Bkecrkj","Ijaq50","nk6f5a","Br312pm","Bw0ie65","qhf8xq","Bvjb7m6","Bpd4iqm","oeaueh","Bw0xxkn","Ftih45","Brfgrao","a9b677","Bqenvij","Fbdkly","mdwyqc","Baz25je","Ccq8qp","Bciustq","lawp4y","useThumbStyles","Beyfa6y","Bbmb7ep","Btl43ni","B7oj6ja","Dimara","Bgfg5da","B9xav0g","oivjwe","Bn0qgzm","B4g9neb","zhjwy3","wvpqe5","ibv6hh","u1mtju","h3c5rm","vrafjx","Bekrc4i","i8vvqc","g2u3we","icvyot","B4j52fo","irswps","E5pizo","De3pzq","gc50h5","r59vdv","Budzafs","ck0cow","n07z76","Gng75u","Bcvre1j","Bcgcnre","Bqjgrrk","qa3bma","y0oebl","Biqmznv","Bm6vgfq","Bbv0w2i","uvfttm","eqrjj","Bk5zm6e","m598lv","B4f6apu","ydt019","Bq4z7u6","Bdkvgpv","B0qfbqy","kj8mxx","Bz10aip","oyh7mz","B5kzvoi","p","useShapeStyles","rounded","square","useInputStyles","Bceei9c","abs64n","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","jrapky","Frg6f3","t21cq0","B6of3ja","B74szlk","jo39rj","C5zqim","Bdlbwnu","B8rk77i","Bbzx7hc","Hwkvcz","B0nnt1c","Brwsv5j","B2b7vog","B4hmq5e","B8jxwem","B18nadz","Ddg5ig","Byj09el","Dac2s3","Dd2y6r","Bk0t58e","Ewenww","Brqi8qb","zz3kca","low6xx","d0s10n","wea7l5","olu5tv","g5nsvh","Bqvnfwh","Biqzhck","kgocjf","i","useColorSliderStyles_unstable","state","rootStyles","styles","railStyles","thumbStyles","inputStyles","shapeStyles","channelStyles","isVertical","className","channel","shape"],"sources":["useColorSliderStyles.styles.js"],"sourcesContent":["import { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const colorSliderClassNames = {\n root: 'fui-ColorSlider',\n rail: 'fui-ColorSlider__rail',\n thumb: 'fui-ColorSlider__thumb',\n input: 'fui-ColorSlider__input'\n};\nexport const colorSliderCSSVars = {\n sliderDirectionVar: `--fui-Slider--direction`,\n sliderProgressVar: `--fui-Slider--progress`,\n thumbColorVar: `--fui-Slider__thumb--color`,\n railColorVar: `--fui-Slider__rail--color`,\n thumbSizeVar: `--fui-Slider__thumb--size`,\n railSizeVar: `--fui-Slider__rail--size`\n};\nconst hueBackground = `linear-gradient(${[\n `var(${colorSliderCSSVars.sliderDirectionVar})`,\n 'red',\n 'fuchsia',\n 'blue',\n 'aqua',\n 'lime',\n 'yellow',\n 'red'\n].join(',')})`;\n/**\n * Styles for the root slot\n */ const useRootStyles = makeResetStyles({\n position: 'relative',\n display: 'inline-grid',\n touchAction: 'none',\n alignItems: 'center',\n justifyItems: 'center',\n [colorSliderCSSVars.thumbSizeVar]: '20px',\n [colorSliderCSSVars.railSizeVar]: '20px',\n minHeight: '32px'\n});\nconst useStyles = makeStyles({\n horizontal: {\n minWidth: '200px',\n // 3x3 grid with the rail and thumb in the center cell [2,2] and the hidden input stretching across all cells\n gridTemplateRows: `1fr var(${colorSliderCSSVars.thumbSizeVar}) 1fr`,\n gridTemplateColumns: `1fr 100% 1fr`\n },\n vertical: {\n minHeight: '280px',\n // 3x3 grid with the rail and thumb in the center cell [2,2] and the hidden input stretching across all cells\n gridTemplateRows: `1fr 100% 1fr`,\n gridTemplateColumns: `1fr var(${colorSliderCSSVars.thumbSizeVar}) 1fr`\n }\n});\nconst useChannelStyles = makeStyles({\n hue: {\n backgroundImage: hueBackground\n },\n saturation: {\n backgroundImage: `linear-gradient(to right, #808080, var(${colorSliderCSSVars.railColorVar}))`\n },\n value: {\n backgroundImage: `linear-gradient(to right, #000, var(${colorSliderCSSVars.railColorVar}))`\n }\n});\n/**\n * Styles for the rail slot\n */ const useRailStyles = makeStyles({\n rail: {\n pointerEvents: 'none',\n gridRowStart: '2',\n gridRowEnd: '2',\n gridColumnStart: '2',\n gridColumnEnd: '2',\n position: 'relative',\n forcedColorAdjust: 'none',\n outlineWidth: '1px',\n outlineStyle: 'solid',\n outlineColor: tokens.colorTransparentStroke,\n '::before': {\n content: \"''\",\n position: 'absolute'\n }\n },\n horizontal: {\n width: '100%',\n height: `var(${colorSliderCSSVars.railSizeVar})`,\n '::before': {\n left: '-1px',\n right: '-1px',\n height: `var(${colorSliderCSSVars.railSizeVar})`\n }\n },\n vertical: {\n width: `var(${colorSliderCSSVars.railSizeVar})`,\n height: '100%',\n '::before': {\n width: `var(${colorSliderCSSVars.railSizeVar})`,\n top: '-1px',\n bottom: '1px'\n }\n }\n});\n/**\n * Styles for the thumb slot\n */ const useThumbStyles = makeStyles({\n thumb: {\n gridRowStart: '2',\n gridRowEnd: '2',\n gridColumnStart: '2',\n gridColumnEnd: '2',\n position: 'absolute',\n width: `var(${colorSliderCSSVars.thumbSizeVar})`,\n height: `var(${colorSliderCSSVars.thumbSizeVar})`,\n pointerEvents: 'none',\n outlineStyle: 'none',\n forcedColorAdjust: 'none',\n borderRadius: tokens.borderRadiusCircular,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralForeground4}`,\n boxShadow: tokens.shadow4,\n backgroundColor: `var(${colorSliderCSSVars.thumbColorVar})`,\n '::before': {\n position: 'absolute',\n inset: '0px',\n borderRadius: tokens.borderRadiusCircular,\n boxSizing: 'border-box',\n content: \"''\",\n border: `${tokens.strokeWidthThick} solid ${tokens.colorNeutralBackground1}`\n }\n },\n horizontal: {\n transform: 'translateX(-50%)',\n left: `var(${colorSliderCSSVars.sliderProgressVar})`\n },\n vertical: {\n transform: 'translateY(50%)',\n bottom: `var(${colorSliderCSSVars.sliderProgressVar})`\n }\n});\nconst useShapeStyles = makeStyles({\n rounded: {\n borderRadius: tokens.borderRadiusMedium\n },\n square: {\n borderRadius: tokens.borderRadiusNone\n }\n});\n/**\n * Styles for the Input slot\n */ const useInputStyles = makeStyles({\n input: {\n cursor: 'pointer',\n opacity: 0,\n gridRowStart: '1',\n gridRowEnd: '-1',\n gridColumnStart: '1',\n gridColumnEnd: '-1',\n padding: '0',\n margin: '0',\n [`:focus-visible ~ .${colorSliderClassNames.thumb}`]: {\n border: `2px solid ${tokens.colorStrokeFocus2}`,\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorTransparentStroke}`,\n borderRadius: tokens.borderRadiusCircular\n }\n },\n horizontal: {\n height: `var(${colorSliderCSSVars.thumbSizeVar})`,\n width: '100%'\n },\n vertical: {\n height: '100%',\n width: `var(${colorSliderCSSVars.thumbSizeVar})`,\n 'writing-mode': 'vertical-lr',\n direction: 'rtl'\n }\n});\n/**\n * Apply styling to the ColorSlider slots based on the state\n */ export const useColorSliderStyles_unstable = (state)=>{\n 'use no memo';\n const rootStyles = useRootStyles();\n const styles = useStyles();\n const railStyles = useRailStyles();\n const thumbStyles = useThumbStyles();\n const inputStyles = useInputStyles();\n const shapeStyles = useShapeStyles();\n const channelStyles = useChannelStyles();\n const isVertical = state.vertical;\n state.root.className = mergeClasses(colorSliderClassNames.root, rootStyles, isVertical ? styles.vertical : styles.horizontal, state.root.className);\n state.rail.className = mergeClasses(colorSliderClassNames.rail, railStyles.rail, channelStyles[state.channel || 'hue'], shapeStyles[state.shape || 'rounded'], isVertical ? railStyles.vertical : railStyles.horizontal, state.rail.className);\n state.thumb.className = mergeClasses(colorSliderClassNames.thumb, thumbStyles.thumb, isVertical ? thumbStyles.vertical : thumbStyles.horizontal, state.thumb.className);\n state.input.className = mergeClasses(colorSliderClassNames.input, inputStyles.input, isVertical ? inputStyles.vertical : inputStyles.horizontal, state.input.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAAC,aAAA,EAAsCC,YAAY,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,qBAAqB,GAAG;EACjCC,IAAI,EAAE,iBAAiB;EACvBC,IAAI,EAAE,uBAAuB;EAC7BC,KAAK,EAAE,wBAAwB;EAC/BC,KAAK,EAAE;AACX,CAAC;AACD,OAAO,M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,CAACE,qBAAqB,CAACI,KAAK,EAAEqJ,WAAW,CAACrJ,KAAK,EAAEwJ,UAAU,GAAGH,WAAW,CAACrI,QAAQ,GAAGqI,WAAW,CAACzI,UAAU,EAAEoI,KAAK,CAAChJ,KAAK,CAACyJ,SAAS,CAAC;EACvK,OAAOT,KAAK;AAChB,CAAC","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { createContext, useContextSelector } from '@fluentui/react-context-selector';
3
+ export const useColorPickerContextValues = (state)=>{
4
+ const { color, shape, requestChange } = state;
5
+ // This context is created with "@fluentui/react-context-selector", these is no sense to memoize it
6
+ const colorPicker = {
7
+ requestChange,
8
+ color,
9
+ shape
10
+ };
11
+ return {
12
+ colorPicker
13
+ };
14
+ };
15
+ export const colorPickerContextDefaultValue = {
16
+ requestChange: ()=>{
17
+ /*noop*/ },
18
+ color: undefined,
19
+ shape: 'rounded'
20
+ };
21
+ const colorPickerContext = createContext(undefined);
22
+ export const ColorPickerProvider = colorPickerContext.Provider;
23
+ export const useColorPickerContextValue_unstable = (selector)=>useContextSelector(colorPickerContext, (ctx = colorPickerContextDefaultValue)=>selector(ctx));
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/contexts/colorPicker.ts"],"sourcesContent":["import * as React from 'react';\nimport { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { ContextSelector, Context } from '@fluentui/react-context-selector';\nimport type { ColorPickerState, ColorPickerProps } from '../components/ColorPicker/ColorPicker.types';\nimport type { HsvColor } from '../types/color';\n\n/**\n * The context through which individual color controls communicate with the picker.\n */\nexport type ColorPickerContextValue = Pick<ColorPickerProps, 'shape' | 'color'> & {\n /**\n * @internal\n * Callback used by Sliders to request a change on it's selected value\n * Should be used to get value of color channel\n */\n requestChange: (event: React.ChangeEvent<HTMLInputElement>, data: { color: HsvColor }) => void;\n};\n\nexport const useColorPickerContextValues = (state: ColorPickerState): ColorPickerContextValues => {\n const { color, shape, requestChange } = state;\n\n // This context is created with \"@fluentui/react-context-selector\", these is no sense to memoize it\n const colorPicker: ColorPickerContextValue = {\n requestChange,\n color,\n shape,\n };\n\n return { colorPicker };\n};\n\nexport const colorPickerContextDefaultValue: ColorPickerContextValue = {\n requestChange: () => {\n /*noop*/\n },\n color: undefined,\n shape: 'rounded',\n};\n\nexport type ColorPickerContextValues = {\n colorPicker: ColorPickerContextValue;\n};\n\nconst colorPickerContext = createContext<ColorPickerContextValue | undefined>(\n undefined,\n) as Context<ColorPickerContextValue>;\n\nexport const ColorPickerProvider = colorPickerContext.Provider;\n\nexport const useColorPickerContextValue_unstable = <T>(selector: ContextSelector<ColorPickerContextValue, T>): T =>\n useContextSelector(colorPickerContext, (ctx = colorPickerContextDefaultValue) => selector(ctx));\n"],"names":["React","createContext","useContextSelector","useColorPickerContextValues","state","color","shape","requestChange","colorPicker","colorPickerContextDefaultValue","undefined","colorPickerContext","ColorPickerProvider","Provider","useColorPickerContextValue_unstable","selector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AAiBrF,OAAO,MAAMC,8BAA8B,CAACC;IAC1C,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,aAAa,EAAE,GAAGH;IAExC,mGAAmG;IACnG,MAAMI,cAAuC;QAC3CD;QACAF;QACAC;IACF;IAEA,OAAO;QAAEE;IAAY;AACvB,EAAE;AAEF,OAAO,MAAMC,iCAA0D;IACrEF,eAAe;IACb,MAAM,GACR;IACAF,OAAOK;IACPJ,OAAO;AACT,EAAE;AAMF,MAAMK,qBAAqBV,cACzBS;AAGF,OAAO,MAAME,sBAAsBD,mBAAmBE,QAAQ,CAAC;AAE/D,OAAO,MAAMC,sCAAsC,CAAIC,WACrDb,mBAAmBS,oBAAoB,CAACK,MAAMP,8BAA8B,GAAKM,SAASC,MAAM"}
package/lib/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { ColorSlider, colorSliderClassNames, renderColorSlider_unstable, useColorSliderStyles_unstable, useColorSlider_unstable } from './ColorSlider';
2
+ export { ColorPicker, colorPickerClassNames, renderColorPicker_unstable, useColorPickerStyles_unstable, useColorPicker_unstable } from './ColorPicker';
3
+ export { ColorArea, colorAreaClassNames, renderColorArea_unstable, useColorAreaStyles_unstable, useColorArea_unstable } from './ColorArea';
4
+ export { AlphaSlider, alphaSliderClassNames, renderAlphaSlider_unstable, useAlphaSliderStyles_unstable, useAlphaSlider_unstable } from './AlphaSlider';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export type { ColorSliderProps, ColorSliderSlots, ColorSliderState } from './ColorSlider';\nexport {\n ColorSlider,\n colorSliderClassNames,\n renderColorSlider_unstable,\n useColorSliderStyles_unstable,\n useColorSlider_unstable,\n} from './ColorSlider';\nexport type { ColorPickerProps, ColorPickerSlots, ColorPickerState } from './ColorPicker';\nexport {\n ColorPicker,\n colorPickerClassNames,\n renderColorPicker_unstable,\n useColorPickerStyles_unstable,\n useColorPicker_unstable,\n} from './ColorPicker';\nexport type { ColorAreaProps, ColorAreaSlots, ColorAreaState } from './ColorArea';\nexport {\n ColorArea,\n colorAreaClassNames,\n renderColorArea_unstable,\n useColorAreaStyles_unstable,\n useColorArea_unstable,\n} from './ColorArea';\nexport type { AlphaSliderProps, AlphaSliderSlots, AlphaSliderState } from './AlphaSlider';\nexport {\n AlphaSlider,\n alphaSliderClassNames,\n renderAlphaSlider_unstable,\n useAlphaSliderStyles_unstable,\n useAlphaSlider_unstable,\n} from './AlphaSlider';\n"],"names":["ColorSlider","colorSliderClassNames","renderColorSlider_unstable","useColorSliderStyles_unstable","useColorSlider_unstable","ColorPicker","colorPickerClassNames","renderColorPicker_unstable","useColorPickerStyles_unstable","useColorPicker_unstable","ColorArea","colorAreaClassNames","renderColorArea_unstable","useColorAreaStyles_unstable","useColorArea_unstable","AlphaSlider","alphaSliderClassNames","renderAlphaSlider_unstable","useAlphaSliderStyles_unstable","useAlphaSlider_unstable"],"rangeMappings":";;;","mappings":"AACA,SACEA,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,uBAAuB,QAClB,gBAAgB;AAEvB,SACEC,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,uBAAuB,QAClB,gBAAgB;AAEvB,SACEC,SAAS,EACTC,mBAAmB,EACnBC,wBAAwB,EACxBC,2BAA2B,EAC3BC,qBAAqB,QAChB,cAAc;AAErB,SACEC,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,uBAAuB,QAClB,gBAAgB"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/color.ts"],"sourcesContent":["export type HsvColor = {\n h: number;\n s: number;\n v: number;\n a?: number;\n};\n"],"names":[],"rangeMappings":"","mappings":"AAAA,WAKE"}
@@ -0,0 +1,22 @@
1
+ import { MIN, HUE_MAX, MAX as COLOR_MAX } from './constants';
2
+ import { clamp } from '@fluentui/react-utilities';
3
+ /**
4
+ * Clamps a given value to the valid range for a specified color channel.
5
+ *
6
+ * @param value - The numeric value to be clamped.
7
+ * @param channel - The color channel to use for clamping. Defaults to 'hue'.
8
+ * @returns The clamped value within the range defined by the color channel.
9
+ */ export function clampValue(value, channel = 'hue') {
10
+ const MAX = channel === 'hue' ? HUE_MAX : COLOR_MAX;
11
+ return clamp(value, MIN, MAX);
12
+ }
13
+ /**
14
+ * Adjusts the specified color channel using the provided actions.
15
+ *
16
+ * @template T - The type of the result returned by the actions.
17
+ * @param {ColorChannel} channel - The color channel to adjust.
18
+ * @param {ChannelActions<T>} actions - An object containing actions for each color channel.
19
+ * @returns {T} - The result of the action corresponding to the specified channel, or the hue action if the channel is not found.
20
+ */ export function adjustChannel(channel, actions) {
21
+ return actions[channel] || actions.hue;
22
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/adjustChannel.ts"],"sourcesContent":["import type { ColorChannel } from '../components/ColorSlider/ColorSlider.types';\nimport { MIN, HUE_MAX, MAX as COLOR_MAX } from './constants';\nimport { clamp } from '@fluentui/react-utilities';\n\n/**\n * Clamps a given value to the valid range for a specified color channel.\n *\n * @param value - The numeric value to be clamped.\n * @param channel - The color channel to use for clamping. Defaults to 'hue'.\n * @returns The clamped value within the range defined by the color channel.\n */\nexport function clampValue(value: number, channel: ColorChannel = 'hue') {\n const MAX = channel === 'hue' ? HUE_MAX : COLOR_MAX;\n return clamp(value, MIN, MAX);\n}\n\nexport type ChannelActions<T> = {\n hue: T;\n saturation: T;\n value: T;\n};\n\n/**\n * Adjusts the specified color channel using the provided actions.\n *\n * @template T - The type of the result returned by the actions.\n * @param {ColorChannel} channel - The color channel to adjust.\n * @param {ChannelActions<T>} actions - An object containing actions for each color channel.\n * @returns {T} - The result of the action corresponding to the specified channel, or the hue action if the channel is not found.\n */\nexport function adjustChannel<T>(channel: ColorChannel, actions: ChannelActions<T>): T {\n return actions[channel] || actions.hue;\n}\n"],"names":["MIN","HUE_MAX","MAX","COLOR_MAX","clamp","clampValue","value","channel","adjustChannel","actions","hue"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":"AACA,SAASA,GAAG,EAAEC,OAAO,EAAEC,OAAOC,SAAS,QAAQ,cAAc;AAC7D,SAASC,KAAK,QAAQ,4BAA4B;AAElD;;;;;;CAMC,GACD,OAAO,SAASC,WAAWC,KAAa,EAAEC,UAAwB,KAAK;IACrE,MAAML,MAAMK,YAAY,QAAQN,UAAUE;IAC1C,OAAOC,MAAME,OAAON,KAAKE;AAC3B;AAQA;;;;;;;CAOC,GACD,OAAO,SAASM,cAAiBD,OAAqB,EAAEE,OAA0B;IAChF,OAAOA,OAAO,CAACF,QAAQ,IAAIE,QAAQC,GAAG;AACxC"}
@@ -0,0 +1,6 @@
1
+ import { tinycolor } from '@ctrl/tinycolor';
2
+ export const MIN = 0;
3
+ export const MAX = 100;
4
+ export const HUE_MAX = 360;
5
+ export const INITIAL_COLOR = '#FFF';
6
+ export const INITIAL_COLOR_HSV = tinycolor(INITIAL_COLOR).toHsv();
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/constants.ts"],"sourcesContent":["import { tinycolor } from '@ctrl/tinycolor';\n\nexport const MIN = 0;\nexport const MAX = 100;\nexport const HUE_MAX = 360;\nexport const INITIAL_COLOR = '#FFF';\nexport const INITIAL_COLOR_HSV = tinycolor(INITIAL_COLOR).toHsv();\n"],"names":["tinycolor","MIN","MAX","HUE_MAX","INITIAL_COLOR","INITIAL_COLOR_HSV","toHsv"],"rangeMappings":";;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,MAAM,EAAE;AACrB,OAAO,MAAMC,MAAM,IAAI;AACvB,OAAO,MAAMC,UAAU,IAAI;AAC3B,OAAO,MAAMC,gBAAgB,OAAO;AACpC,OAAO,MAAMC,oBAAoBL,UAAUI,eAAeE,KAAK,GAAG"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Creates an HSV color object with optional hue, saturation, value, and alpha components.
3
+ *
4
+ * @param {Partial<HsvColor>} param0 - An object containing optional HSV color components:
5
+ * - `h` (number): The hue component, default is 0.
6
+ * - `s` (number): The saturation component, default is 0.
7
+ * - `v` (number): The value component, default is 0.
8
+ * - `a` (number): The alpha component, default is 1.
9
+ * @returns {HsvColor} The resulting HSV color object.
10
+ */ export function createHsvColor({ h = 0, s = 0, v = 0, a = 1 }) {
11
+ return {
12
+ h,
13
+ s,
14
+ v,
15
+ a
16
+ };
17
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/createHsvColor.ts"],"sourcesContent":["import { HsvColor } from '../types/color';\n\n/**\n * Creates an HSV color object with optional hue, saturation, value, and alpha components.\n *\n * @param {Partial<HsvColor>} param0 - An object containing optional HSV color components:\n * - `h` (number): The hue component, default is 0.\n * - `s` (number): The saturation component, default is 0.\n * - `v` (number): The value component, default is 0.\n * - `a` (number): The alpha component, default is 1.\n * @returns {HsvColor} The resulting HSV color object.\n */\nexport function createHsvColor({ h = 0, s = 0, v = 0, a = 1 }: Partial<HsvColor>): HsvColor {\n return { h, s, v, a };\n}\n"],"names":["createHsvColor","h","s","v","a"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAEA;;;;;;;;;CASC,GACD,OAAO,SAASA,eAAe,EAAEC,IAAI,CAAC,EAAEC,IAAI,CAAC,EAAEC,IAAI,CAAC,EAAEC,IAAI,CAAC,EAAqB;IAC9E,OAAO;QAAEH;QAAGC;QAAGC;QAAGC;IAAE;AACtB"}
@@ -0,0 +1,24 @@
1
+ import { clamp } from '@fluentui/react-utilities';
2
+ /**
3
+ * Calculates the normalized coordinates of a mouse event relative to a given HTML element.
4
+ *
5
+ * @param element - The HTML element to calculate the coordinates relative to.
6
+ * @param event - The mouse event containing the clientX and clientY properties.
7
+ * @returns An object containing the normalized x and y coordinates, clamped between 0 and 1.
8
+ */ export function getCoordinates(element, event) {
9
+ const rect = element.getBoundingClientRect();
10
+ const newX = roundTwoDecimal((event.clientX - rect.left) / rect.width);
11
+ const newY = roundTwoDecimal(1 - (event.clientY - rect.top) / rect.height);
12
+ return {
13
+ x: clamp(newX, 0, 1),
14
+ y: clamp(newY, 0, 1)
15
+ };
16
+ }
17
+ /**
18
+ * Rounds a given number to two decimal places.
19
+ *
20
+ * @param num - The number to be rounded.
21
+ * @returns The number rounded to two decimal places.
22
+ */ export function roundTwoDecimal(num) {
23
+ return Math.round(num * 100) / 100;
24
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/getCoordinates.ts"],"sourcesContent":["import { clamp } from '@fluentui/react-utilities';\n\n/**\n * Calculates the normalized coordinates of a mouse event relative to a given HTML element.\n *\n * @param element - The HTML element to calculate the coordinates relative to.\n * @param event - The mouse event containing the clientX and clientY properties.\n * @returns An object containing the normalized x and y coordinates, clamped between 0 and 1.\n */\nexport function getCoordinates(element: HTMLElement, event: MouseEvent) {\n const rect = element.getBoundingClientRect();\n\n const newX = roundTwoDecimal((event.clientX - rect.left) / rect.width);\n const newY = roundTwoDecimal(1 - (event.clientY - rect.top) / rect.height);\n\n return {\n x: clamp(newX, 0, 1),\n y: clamp(newY, 0, 1),\n };\n}\n\n/**\n * Rounds a given number to two decimal places.\n *\n * @param num - The number to be rounded.\n * @returns The number rounded to two decimal places.\n */\nexport function roundTwoDecimal(num: number) {\n return Math.round(num * 100) / 100;\n}\n"],"names":["clamp","getCoordinates","element","event","rect","getBoundingClientRect","newX","roundTwoDecimal","clientX","left","width","newY","clientY","top","height","x","y","num","Math","round"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,KAAK,QAAQ,4BAA4B;AAElD;;;;;;CAMC,GACD,OAAO,SAASC,eAAeC,OAAoB,EAAEC,KAAiB;IACpE,MAAMC,OAAOF,QAAQG,qBAAqB;IAE1C,MAAMC,OAAOC,gBAAgB,AAACJ,CAAAA,MAAMK,OAAO,GAAGJ,KAAKK,IAAI,AAAD,IAAKL,KAAKM,KAAK;IACrE,MAAMC,OAAOJ,gBAAgB,IAAI,AAACJ,CAAAA,MAAMS,OAAO,GAAGR,KAAKS,GAAG,AAAD,IAAKT,KAAKU,MAAM;IAEzE,OAAO;QACLC,GAAGf,MAAMM,MAAM,GAAG;QAClBU,GAAGhB,MAAMW,MAAM,GAAG;IACpB;AACF;AAEA;;;;;CAKC,GACD,OAAO,SAASJ,gBAAgBU,GAAW;IACzC,OAAOC,KAAKC,KAAK,CAACF,MAAM,OAAO;AACjC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Calculates the percentage of a value within a given range.
3
+ *
4
+ * @param value - The value to be converted to a percentage.
5
+ * @param min - The minimum value of the range.
6
+ * @param max - The maximum value of the range.
7
+ * @returns The percentage representation of the value within the range [min, max].
8
+ * Returns 0 if `min` is equal to `max`.
9
+ */ export const getPercent = (value, min, max)=>{
10
+ return max === min ? 0 : (value - min) / (max - min) * 100;
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/getPercent.ts"],"sourcesContent":["/**\n * Calculates the percentage of a value within a given range.\n *\n * @param value - The value to be converted to a percentage.\n * @param min - The minimum value of the range.\n * @param max - The maximum value of the range.\n * @returns The percentage representation of the value within the range [min, max].\n * Returns 0 if `min` is equal to `max`.\n */\nexport const getPercent = (value: number, min: number, max: number) => {\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n};\n"],"names":["getPercent","value","min","max"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA;;;;;;;;CAQC,GACD,OAAO,MAAMA,aAAa,CAACC,OAAeC,KAAaC;IACrD,OAAOA,QAAQD,MAAM,IAAI,AAAED,CAAAA,QAAQC,GAAE,IAAMC,CAAAA,MAAMD,GAAE,IAAM;AAC3D,EAAE"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ AlphaSlider: function() {
13
+ return _index.AlphaSlider;
14
+ },
15
+ alphaSliderCSSVars: function() {
16
+ return _index.alphaSliderCSSVars;
17
+ },
18
+ alphaSliderClassNames: function() {
19
+ return _index.alphaSliderClassNames;
20
+ },
21
+ renderAlphaSlider_unstable: function() {
22
+ return _index.renderAlphaSlider_unstable;
23
+ },
24
+ useAlphaSliderStyles_unstable: function() {
25
+ return _index.useAlphaSliderStyles_unstable;
26
+ },
27
+ useAlphaSlider_unstable: function() {
28
+ return _index.useAlphaSlider_unstable;
29
+ }
30
+ });
31
+ const _index = require("./components/AlphaSlider/index");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/AlphaSlider.ts"],"sourcesContent":["export type { AlphaSliderProps, AlphaSliderSlots, AlphaSliderState } from './components/AlphaSlider/index';\nexport {\n AlphaSlider,\n alphaSliderCSSVars,\n alphaSliderClassNames,\n renderAlphaSlider_unstable,\n useAlphaSliderStyles_unstable,\n useAlphaSlider_unstable,\n} from './components/AlphaSlider/index';\n"],"names":["AlphaSlider","alphaSliderCSSVars","alphaSliderClassNames","renderAlphaSlider_unstable","useAlphaSliderStyles_unstable","useAlphaSlider_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEEA,WAAW;eAAXA,kBAAW;;IACXC,kBAAkB;eAAlBA,yBAAkB;;IAClBC,qBAAqB;eAArBA,4BAAqB;;IACrBC,0BAA0B;eAA1BA,iCAA0B;;IAC1BC,6BAA6B;eAA7BA,oCAA6B;;IAC7BC,uBAAuB;eAAvBA,8BAAuB;;;uBAClB"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ColorArea: function() {
13
+ return _index.ColorArea;
14
+ },
15
+ colorAreaCSSVars: function() {
16
+ return _index.colorAreaCSSVars;
17
+ },
18
+ colorAreaClassNames: function() {
19
+ return _index.colorAreaClassNames;
20
+ },
21
+ renderColorArea_unstable: function() {
22
+ return _index.renderColorArea_unstable;
23
+ },
24
+ useColorAreaStyles_unstable: function() {
25
+ return _index.useColorAreaStyles_unstable;
26
+ },
27
+ useColorArea_unstable: function() {
28
+ return _index.useColorArea_unstable;
29
+ }
30
+ });
31
+ const _index = require("./components/ColorArea/index");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ColorArea.ts"],"sourcesContent":["export type {\n ColorAreaOnColorChangeData,\n ColorAreaProps,\n ColorAreaSlots,\n ColorAreaState,\n} from './components/ColorArea/index';\nexport {\n ColorArea,\n colorAreaCSSVars,\n colorAreaClassNames,\n renderColorArea_unstable,\n useColorAreaStyles_unstable,\n useColorArea_unstable,\n} from './components/ColorArea/index';\n"],"names":["ColorArea","colorAreaCSSVars","colorAreaClassNames","renderColorArea_unstable","useColorAreaStyles_unstable","useColorArea_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOEA,SAAS;eAATA,gBAAS;;IACTC,gBAAgB;eAAhBA,uBAAgB;;IAChBC,mBAAmB;eAAnBA,0BAAmB;;IACnBC,wBAAwB;eAAxBA,+BAAwB;;IACxBC,2BAA2B;eAA3BA,kCAA2B;;IAC3BC,qBAAqB;eAArBA,4BAAqB;;;uBAChB"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ColorPicker: function() {
13
+ return _index.ColorPicker;
14
+ },
15
+ colorPickerClassNames: function() {
16
+ return _index.colorPickerClassNames;
17
+ },
18
+ renderColorPicker_unstable: function() {
19
+ return _index.renderColorPicker_unstable;
20
+ },
21
+ useColorPickerStyles_unstable: function() {
22
+ return _index.useColorPickerStyles_unstable;
23
+ },
24
+ useColorPicker_unstable: function() {
25
+ return _index.useColorPicker_unstable;
26
+ }
27
+ });
28
+ const _index = require("./components/ColorPicker/index");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ColorPicker.ts"],"sourcesContent":["export type {\n ColorPickerOnChangeData,\n ColorPickerProps,\n ColorPickerSlots,\n ColorPickerState,\n} from './components/ColorPicker/index';\nexport {\n ColorPicker,\n colorPickerClassNames,\n renderColorPicker_unstable,\n useColorPickerStyles_unstable,\n useColorPicker_unstable,\n} from './components/ColorPicker/index';\n"],"names":["ColorPicker","colorPickerClassNames","renderColorPicker_unstable","useColorPickerStyles_unstable","useColorPicker_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOEA,WAAW;eAAXA,kBAAW;;IACXC,qBAAqB;eAArBA,4BAAqB;;IACrBC,0BAA0B;eAA1BA,iCAA0B;;IAC1BC,6BAA6B;eAA7BA,oCAA6B;;IAC7BC,uBAAuB;eAAvBA,8BAAuB;;;uBAClB"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ColorSlider: function() {
13
+ return _index.ColorSlider;
14
+ },
15
+ colorSliderCSSVars: function() {
16
+ return _index.colorSliderCSSVars;
17
+ },
18
+ colorSliderClassNames: function() {
19
+ return _index.colorSliderClassNames;
20
+ },
21
+ renderColorSlider_unstable: function() {
22
+ return _index.renderColorSlider_unstable;
23
+ },
24
+ useColorSliderStyles_unstable: function() {
25
+ return _index.useColorSliderStyles_unstable;
26
+ },
27
+ useColorSlider_unstable: function() {
28
+ return _index.useColorSlider_unstable;
29
+ }
30
+ });
31
+ const _index = require("./components/ColorSlider/index");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ColorSlider.ts"],"sourcesContent":["export type {\n ColorSliderProps,\n ColorSliderSlots,\n ColorSliderState,\n SliderOnChangeData,\n} from './components/ColorSlider/index';\nexport {\n ColorSlider,\n colorSliderCSSVars,\n colorSliderClassNames,\n renderColorSlider_unstable,\n useColorSliderStyles_unstable,\n useColorSlider_unstable,\n} from './components/ColorSlider/index';\n"],"names":["ColorSlider","colorSliderCSSVars","colorSliderClassNames","renderColorSlider_unstable","useColorSliderStyles_unstable","useColorSlider_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOEA,WAAW;eAAXA,kBAAW;;IACXC,kBAAkB;eAAlBA,yBAAkB;;IAClBC,qBAAqB;eAArBA,4BAAqB;;IACrBC,0BAA0B;eAA1BA,iCAA0B;;IAC1BC,6BAA6B;eAA7BA,oCAA6B;;IAC7BC,uBAAuB;eAAvBA,8BAAuB;;;uBAClB"}