@chayns-components/color-picker 5.0.32 → 5.0.34

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 (2) hide show
  1. package/AI_USAGE.md +204 -0
  2. package/package.json +5 -4
package/AI_USAGE.md ADDED
@@ -0,0 +1,204 @@
1
+ # @chayns-components/color-picker
2
+
3
+ React component package providing 4 documented components for chayns applications.
4
+
5
+ Documented components: `ColorPicker`, `ColorPickerPopup`, `HueSlider`, `TransparencySlider`.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { ColorPicker, ColorPickerPopup, HueSlider } from '@chayns-components/color-picker';
11
+ ```
12
+
13
+ ## Typical Usage
14
+
15
+ ```tsx
16
+ <ColorPicker />
17
+ ```
18
+
19
+ ## Components
20
+
21
+ - `ColorPicker`
22
+ - `ColorPickerPopup`
23
+ - `HueSlider`
24
+ - `TransparencySlider`
25
+
26
+ ## ColorPicker
27
+
28
+ `ColorPicker` is exported by `@chayns-components/color-picker` and should be imported from the public package entry point.
29
+
30
+ ### Import
31
+
32
+ ```ts
33
+ import { ColorPicker } from '@chayns-components/color-picker';
34
+ ```
35
+
36
+ ### Examples
37
+
38
+ #### General
39
+
40
+ ```tsx
41
+ <ColorPicker />
42
+ ```
43
+
44
+ #### With Custom Children
45
+
46
+ ```tsx
47
+ <ColorPicker />
48
+ ```
49
+
50
+ #### With Preset Colors
51
+
52
+ ```tsx
53
+ <ColorPicker
54
+ shouldShowPresetColors
55
+ />
56
+ ```
57
+
58
+ #### With Transparency Slider
59
+
60
+ ```tsx
61
+ <ColorPicker
62
+ shouldShowTransparencySlider
63
+ />
64
+ ```
65
+
66
+ #### With More Options
67
+
68
+ ```tsx
69
+ <ColorPicker
70
+ shouldShowMoreOptions
71
+ />
72
+ ```
73
+
74
+ #### Show Plain
75
+
76
+ ```tsx
77
+ <ColorPicker
78
+ shouldShowAsPopup={false}
79
+ shouldShowMoreOptions
80
+ shouldShowTransparencySlider
81
+ shouldShowPresetColors
82
+ />
83
+ ```
84
+
85
+ ### Props
86
+
87
+ No prop documentation available.
88
+
89
+ ### Types
90
+
91
+ No additional exported types documented.
92
+
93
+ ### Usage Notes
94
+
95
+ - Import `ColorPicker` directly from `@chayns-components/color-picker` instead of internal source paths.
96
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
97
+
98
+ ### Anti Patterns
99
+
100
+ - Avoid imports from internal paths such as `@chayns-components/color-picker/src/...`; always use the public package export.
101
+ ## ColorPickerPopup
102
+
103
+ `ColorPickerPopup` is exported by `@chayns-components/color-picker` and should be imported from the public package entry point.
104
+
105
+ ### Import
106
+
107
+ ```ts
108
+ import { ColorPickerPopup } from '@chayns-components/color-picker';
109
+ ```
110
+
111
+ ### Examples
112
+
113
+ #### General
114
+
115
+ ```tsx
116
+ <ColorPickerPopup />
117
+ ```
118
+
119
+ ### Props
120
+
121
+ No prop documentation available.
122
+
123
+ ### Types
124
+
125
+ No additional exported types documented.
126
+
127
+ ### Usage Notes
128
+
129
+ - Import `ColorPickerPopup` directly from `@chayns-components/color-picker` instead of internal source paths.
130
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
131
+
132
+ ### Anti Patterns
133
+
134
+ - Avoid imports from internal paths such as `@chayns-components/color-picker/src/...`; always use the public package export.
135
+ ## HueSlider
136
+
137
+ `HueSlider` is exported by `@chayns-components/color-picker` and should be imported from the public package entry point.
138
+
139
+ ### Import
140
+
141
+ ```ts
142
+ import { HueSlider } from '@chayns-components/color-picker';
143
+ ```
144
+
145
+ ### Examples
146
+
147
+ #### General
148
+
149
+ ```tsx
150
+ <HueSlider />
151
+ ```
152
+
153
+ ### Props
154
+
155
+ No prop documentation available.
156
+
157
+ ### Types
158
+
159
+ No additional exported types documented.
160
+
161
+ ### Usage Notes
162
+
163
+ - Import `HueSlider` directly from `@chayns-components/color-picker` instead of internal source paths.
164
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
165
+
166
+ ### Anti Patterns
167
+
168
+ - Avoid imports from internal paths such as `@chayns-components/color-picker/src/...`; always use the public package export.
169
+ ## TransparencySlider
170
+
171
+ `TransparencySlider` is exported by `@chayns-components/color-picker` and should be imported from the public package entry point.
172
+
173
+ ### Import
174
+
175
+ ```ts
176
+ import { TransparencySlider } from '@chayns-components/color-picker';
177
+ ```
178
+
179
+ ### Examples
180
+
181
+ #### General
182
+
183
+ ```tsx
184
+ <TransparencySlider
185
+ color={'rgba(255, 0, 0, 1)'}
186
+ />
187
+ ```
188
+
189
+ ### Props
190
+
191
+ No prop documentation available.
192
+
193
+ ### Types
194
+
195
+ No additional exported types documented.
196
+
197
+ ### Usage Notes
198
+
199
+ - Import `TransparencySlider` directly from `@chayns-components/color-picker` instead of internal source paths.
200
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
201
+
202
+ ### Anti Patterns
203
+
204
+ - Avoid imports from internal paths such as `@chayns-components/color-picker/src/...`; always use the public package export.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/color-picker",
3
- "version": "5.0.32",
3
+ "version": "5.0.34",
4
4
  "description": "A set of beautiful React components for developing your own applications with chayns.",
5
5
  "sideEffects": false,
6
6
  "browserslist": [
@@ -33,7 +33,8 @@
33
33
  "test": "__tests__"
34
34
  },
35
35
  "files": [
36
- "lib"
36
+ "lib",
37
+ "AI_USAGE.md"
37
38
  ],
38
39
  "repository": {
39
40
  "type": "git",
@@ -70,7 +71,7 @@
70
71
  "typescript": "^5.9.3"
71
72
  },
72
73
  "dependencies": {
73
- "@chayns-components/core": "^5.0.32",
74
+ "@chayns-components/core": "^5.0.34",
74
75
  "@chayns/colors": "^2.0.2"
75
76
  },
76
77
  "peerDependencies": {
@@ -83,5 +84,5 @@
83
84
  "publishConfig": {
84
85
  "access": "public"
85
86
  },
86
- "gitHead": "e7d1ba2399532df23a225998585a751fee352cfe"
87
+ "gitHead": "7c7c2d7dacbc7c8031f3bcef885e4f63b8f49b1a"
87
88
  }