@prokodo/ui 0.1.13 → 0.1.14

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 (48) hide show
  1. package/README.md +2 -0
  2. package/dist/components/button/Button.css +114 -6
  3. package/dist/components/button/Button.module.css +114 -6
  4. package/dist/components/button/Button.module.scss.js +10 -2
  5. package/dist/components/button/Button.view.js +1 -0
  6. package/dist/components/checkbox/Checkbox.client.js +42 -0
  7. package/dist/components/checkbox/Checkbox.css +312 -0
  8. package/dist/components/checkbox/Checkbox.js +12 -0
  9. package/dist/components/checkbox/Checkbox.lazy.js +12 -0
  10. package/dist/components/checkbox/Checkbox.module.css +312 -0
  11. package/dist/components/checkbox/Checkbox.module.scss.js +20 -0
  12. package/dist/components/checkbox/Checkbox.server.js +20 -0
  13. package/dist/components/checkbox/Checkbox.view.js +86 -0
  14. package/dist/components/checkbox/index.js +4 -0
  15. package/dist/components/checkbox-group/CheckboxGroup.client.js +57 -0
  16. package/dist/components/checkbox-group/CheckboxGroup.css +238 -0
  17. package/dist/components/checkbox-group/CheckboxGroup.js +13 -0
  18. package/dist/components/checkbox-group/CheckboxGroup.lazy.js +12 -0
  19. package/dist/components/checkbox-group/CheckboxGroup.module.css +238 -0
  20. package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +15 -0
  21. package/dist/components/checkbox-group/CheckboxGroup.server.js +25 -0
  22. package/dist/components/checkbox-group/CheckboxGroup.view.js +97 -0
  23. package/dist/components/checkbox-group/index.js +4 -0
  24. package/dist/components/dialog/Dialog.view.js +2 -1
  25. package/dist/components/snackbar/Snackbar.css +5 -1
  26. package/dist/components/snackbar/Snackbar.module.css +5 -1
  27. package/dist/constants/project.js +1 -1
  28. package/dist/index.js +4 -0
  29. package/dist/theme.css +430 -9
  30. package/dist/tsconfig.build.tsbuildinfo +1 -1
  31. package/dist/types/components/checkbox/Checkbox.client.d.ts +4 -0
  32. package/dist/types/components/checkbox/Checkbox.d.ts +18 -0
  33. package/dist/types/components/checkbox/Checkbox.lazy.d.ts +19 -0
  34. package/dist/types/components/checkbox/Checkbox.model.d.ts +23 -0
  35. package/dist/types/components/checkbox/Checkbox.server.d.ts +3 -0
  36. package/dist/types/components/checkbox/Checkbox.view.d.ts +3 -0
  37. package/dist/types/components/checkbox/index.d.ts +2 -0
  38. package/dist/types/components/checkbox-group/CheckboxGroup.client.d.ts +4 -0
  39. package/dist/types/components/checkbox-group/CheckboxGroup.d.ts +4 -0
  40. package/dist/types/components/checkbox-group/CheckboxGroup.lazy.d.ts +5 -0
  41. package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +38 -0
  42. package/dist/types/components/checkbox-group/CheckboxGroup.server.d.ts +3 -0
  43. package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +3 -0
  44. package/dist/types/components/checkbox-group/index.d.ts +2 -0
  45. package/dist/types/components/dialog/Dialog.model.d.ts +1 -0
  46. package/dist/types/components/dialog/Dialog.view.d.ts +1 -1
  47. package/dist/types/index.d.ts +2 -0
  48. package/package.json +11 -1
package/README.md CHANGED
@@ -168,6 +168,8 @@ export default function GalleryPage() {
168
168
  | Calendly | ✅ | ✅ |
169
169
  | Card | ✅ | ✅ |
170
170
  | Carousel | ✅ | ✅ |
171
+ | Checkbox | ✅ | ✅ |
172
+ | CheckboxGroup | ✅ | ✅ |
171
173
  | Chip | ✅ | ✅ |
172
174
  | DatePicker | ✅ | ✅ |
173
175
  | Dialog | ✅ | ✅ |
@@ -155,29 +155,58 @@ html[data-theme=dark] .prokodo-Button {
155
155
  border-radius: 1.5rem;
156
156
  border-radius: 1.5rem;
157
157
  }
158
- .prokodo-Button--has-bg-primary, .prokodo-Button--has-bg-secondary, .prokodo-Button--has-bg-info, .prokodo-Button--has-bg-error {
159
- color: #FFFFFF !important;
158
+ .prokodo-Button--has-bg-primary, .prokodo-Button--has-bg-secondary, .prokodo-Button--has-bg-success, .prokodo-Button--has-bg-warning {
159
+ color: #000000;
160
160
  }
161
- .prokodo-Button--has-bg-success, .prokodo-Button--has-bg-warning {
162
- color: var(--color-black);
161
+ .prokodo-Button--has-bg-info, .prokodo-Button--has-bg-error {
162
+ color: #FFFFFF;
163
163
  }
164
164
  .prokodo-Button--has-bg-primary {
165
165
  background: var(--gradient-background-primary);
166
+ color: #000000;
167
+ }
168
+ html[data-theme=dark] .prokodo-Button--has-bg-primary {
169
+ color: #FFFFFF;
170
+ }
171
+ html[data-theme=dark] .prokodo-Button--has-bg-inherit {
172
+ color: var(--color-grey-900);
173
+ background: linear-gradient(112deg, var(--color-grey-200) 0%, var(--color-grey-300) 100%);
174
+ background-color: var(--color-grey-300);
166
175
  }
167
176
  .prokodo-Button--has-bg-secondary {
168
177
  background: var(--gradient-background-secondary);
178
+ color: #000000;
179
+ }
180
+ html[data-theme=dark] .prokodo-Button--has-bg-secondary {
181
+ color: #FFFFFF;
169
182
  }
170
183
  .prokodo-Button--is-disabled, .prokodo-Button--has-bg-info {
171
184
  background: var(--gradient-background-info);
185
+ color: #FFFFFF;
186
+ }
187
+ html[data-theme=dark] .prokodo-Button--is-disabled, html[data-theme=dark] .prokodo-Button--has-bg-info {
188
+ color: var(--color-grey-700);
172
189
  }
173
190
  .prokodo-Button--has-bg-success {
174
191
  background: var(--gradient-background-success);
192
+ color: #000000;
193
+ }
194
+ html[data-theme=dark] .prokodo-Button--has-bg-success {
195
+ color: #000000;
175
196
  }
176
197
  .prokodo-Button--has-bg-warning {
177
198
  background: var(--gradient-background-warning);
199
+ color: #000000;
200
+ }
201
+ html[data-theme=dark] .prokodo-Button--has-bg-warning {
202
+ color: #000000;
178
203
  }
179
204
  .prokodo-Button--has-bg-error {
180
205
  background: var(--gradient-background-error);
206
+ color: #FFFFFF;
207
+ }
208
+ html[data-theme=dark] .prokodo-Button--has-bg-error {
209
+ color: #FFFFFF;
181
210
  }
182
211
  .prokodo-Button--has-text-inherit, .prokodo-Button--has-text-primary, .prokodo-Button--has-text-secondary, .prokodo-Button--has-text-info, .prokodo-Button--has-text-success, .prokodo-Button--has-text-warning, .prokodo-Button--has-text-error {
183
212
  background: none;
@@ -233,7 +262,7 @@ html[data-theme=dark] .prokodo-Button {
233
262
  .prokodo-Button--has-variant-outlined {
234
263
  position: relative;
235
264
  background: none;
236
- color: var(--color-black) !important;
265
+ color: var(--color-black);
237
266
  }
238
267
  .prokodo-Button--has-variant-outlined::before {
239
268
  content: "";
@@ -254,6 +283,66 @@ html[data-theme=dark] .prokodo-Button {
254
283
  html[data-theme=dark] .prokodo-Button--has-variant-outlined {
255
284
  background: none;
256
285
  }
286
+ .prokodo-Button--has-variant-outlined--has-outline-inherit {
287
+ color: var(--color-black);
288
+ }
289
+ .prokodo-Button--has-variant-outlined--has-outline-inherit::before {
290
+ background: var(--gradient-border-8);
291
+ }
292
+ .prokodo-Button--has-variant-outlined--has-outline-primary {
293
+ color: var(--color-black);
294
+ }
295
+ .prokodo-Button--has-variant-outlined--has-outline-primary::before {
296
+ background: var(--gradient-border-4);
297
+ }
298
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-primary {
299
+ color: var(--color-primary-500);
300
+ }
301
+ .prokodo-Button--has-variant-outlined--has-outline-secondary {
302
+ color: var(--color-black);
303
+ }
304
+ .prokodo-Button--has-variant-outlined--has-outline-secondary::before {
305
+ background: var(--gradient-border-2);
306
+ }
307
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-secondary {
308
+ color: var(--color-secondary-500);
309
+ }
310
+ .prokodo-Button--has-variant-outlined--has-outline-info {
311
+ color: var(--color-black);
312
+ }
313
+ .prokodo-Button--has-variant-outlined--has-outline-info::before {
314
+ background: var(--gradient-border-info);
315
+ }
316
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-info {
317
+ color: #FFFFFF;
318
+ }
319
+ .prokodo-Button--has-variant-outlined--has-outline-success {
320
+ color: var(--color-black);
321
+ }
322
+ .prokodo-Button--has-variant-outlined--has-outline-success::before {
323
+ background: var(--gradient-border-success);
324
+ }
325
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-success {
326
+ color: var(--color-success);
327
+ }
328
+ .prokodo-Button--has-variant-outlined--has-outline-warning {
329
+ color: var(--color-black);
330
+ }
331
+ .prokodo-Button--has-variant-outlined--has-outline-warning::before {
332
+ background: var(--gradient-border-warning);
333
+ }
334
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-warning {
335
+ color: var(--color-warning);
336
+ }
337
+ .prokodo-Button--has-variant-outlined--has-outline-error {
338
+ color: var(--color-black);
339
+ }
340
+ .prokodo-Button--has-variant-outlined--has-outline-error::before {
341
+ background: var(--gradient-border-error);
342
+ }
343
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-error {
344
+ color: var(--color-error);
345
+ }
257
346
  .prokodo-Button--has-image, .prokodo-Button--has-icon {
258
347
  display: flex;
259
348
  align-items: center;
@@ -272,6 +361,26 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
272
361
  }
273
362
  .prokodo-Button--is-disabled {
274
363
  cursor: default;
364
+ box-shadow: none;
365
+ color: var(--color-grey-500);
366
+ background: var(--color-grey-100);
367
+ background-color: var(--color-grey-100);
368
+ }
369
+ .prokodo-Button--is-disabled::before {
370
+ background: var(--gradient-border-8);
371
+ }
372
+ .prokodo-Button--is-disabled:hover {
373
+ color: var(--color-grey-500);
374
+ background: var(--color-grey-100);
375
+ background-color: var(--color-grey-100);
376
+ }
377
+ html[data-theme=dark] .prokodo-Button--is-disabled {
378
+ color: var(--color-grey-600);
379
+ background: linear-gradient(112deg, var(--color-grey-200) 0%, var(--color-grey-300) 100%);
380
+ background-color: var(--color-grey-300);
381
+ }
382
+ html[data-theme=dark] .prokodo-Button--is-disabled::before {
383
+ background: linear-gradient(112deg, var(--color-grey-300) 0%, var(--color-grey-500) 100%);
275
384
  }
276
385
  .prokodo-Button__title {
277
386
  display: flex;
@@ -315,6 +424,5 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
315
424
  width: 100%;
316
425
  }
317
426
  .prokodo-Button__content--icon-only {
318
- padding: 0.5rem;
319
427
  border-radius: 2000rem;
320
428
  }
@@ -155,29 +155,58 @@ html[data-theme=dark] .prokodo-Button {
155
155
  border-radius: 1.5rem;
156
156
  border-radius: 1.5rem;
157
157
  }
158
- .prokodo-Button--has-bg-primary, .prokodo-Button--has-bg-secondary, .prokodo-Button--has-bg-info, .prokodo-Button--has-bg-error {
159
- color: #FFFFFF !important;
158
+ .prokodo-Button--has-bg-primary, .prokodo-Button--has-bg-secondary, .prokodo-Button--has-bg-success, .prokodo-Button--has-bg-warning {
159
+ color: #000000;
160
160
  }
161
- .prokodo-Button--has-bg-success, .prokodo-Button--has-bg-warning {
162
- color: var(--color-black);
161
+ .prokodo-Button--has-bg-info, .prokodo-Button--has-bg-error {
162
+ color: #FFFFFF;
163
163
  }
164
164
  .prokodo-Button--has-bg-primary {
165
165
  background: var(--gradient-background-primary);
166
+ color: #000000;
167
+ }
168
+ html[data-theme=dark] .prokodo-Button--has-bg-primary {
169
+ color: #FFFFFF;
170
+ }
171
+ html[data-theme=dark] .prokodo-Button--has-bg-inherit {
172
+ color: var(--color-grey-900);
173
+ background: linear-gradient(112deg, var(--color-grey-200) 0%, var(--color-grey-300) 100%);
174
+ background-color: var(--color-grey-300);
166
175
  }
167
176
  .prokodo-Button--has-bg-secondary {
168
177
  background: var(--gradient-background-secondary);
178
+ color: #000000;
179
+ }
180
+ html[data-theme=dark] .prokodo-Button--has-bg-secondary {
181
+ color: #FFFFFF;
169
182
  }
170
183
  .prokodo-Button--is-disabled, .prokodo-Button--has-bg-info {
171
184
  background: var(--gradient-background-info);
185
+ color: #FFFFFF;
186
+ }
187
+ html[data-theme=dark] .prokodo-Button--is-disabled, html[data-theme=dark] .prokodo-Button--has-bg-info {
188
+ color: var(--color-grey-700);
172
189
  }
173
190
  .prokodo-Button--has-bg-success {
174
191
  background: var(--gradient-background-success);
192
+ color: #000000;
193
+ }
194
+ html[data-theme=dark] .prokodo-Button--has-bg-success {
195
+ color: #000000;
175
196
  }
176
197
  .prokodo-Button--has-bg-warning {
177
198
  background: var(--gradient-background-warning);
199
+ color: #000000;
200
+ }
201
+ html[data-theme=dark] .prokodo-Button--has-bg-warning {
202
+ color: #000000;
178
203
  }
179
204
  .prokodo-Button--has-bg-error {
180
205
  background: var(--gradient-background-error);
206
+ color: #FFFFFF;
207
+ }
208
+ html[data-theme=dark] .prokodo-Button--has-bg-error {
209
+ color: #FFFFFF;
181
210
  }
182
211
  .prokodo-Button--has-text-inherit, .prokodo-Button--has-text-primary, .prokodo-Button--has-text-secondary, .prokodo-Button--has-text-info, .prokodo-Button--has-text-success, .prokodo-Button--has-text-warning, .prokodo-Button--has-text-error {
183
212
  background: none;
@@ -233,7 +262,7 @@ html[data-theme=dark] .prokodo-Button {
233
262
  .prokodo-Button--has-variant-outlined {
234
263
  position: relative;
235
264
  background: none;
236
- color: var(--color-black) !important;
265
+ color: var(--color-black);
237
266
  }
238
267
  .prokodo-Button--has-variant-outlined::before {
239
268
  content: "";
@@ -254,6 +283,66 @@ html[data-theme=dark] .prokodo-Button {
254
283
  html[data-theme=dark] .prokodo-Button--has-variant-outlined {
255
284
  background: none;
256
285
  }
286
+ .prokodo-Button--has-variant-outlined--has-outline-inherit {
287
+ color: var(--color-black);
288
+ }
289
+ .prokodo-Button--has-variant-outlined--has-outline-inherit::before {
290
+ background: var(--gradient-border-8);
291
+ }
292
+ .prokodo-Button--has-variant-outlined--has-outline-primary {
293
+ color: var(--color-black);
294
+ }
295
+ .prokodo-Button--has-variant-outlined--has-outline-primary::before {
296
+ background: var(--gradient-border-4);
297
+ }
298
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-primary {
299
+ color: var(--color-primary-500);
300
+ }
301
+ .prokodo-Button--has-variant-outlined--has-outline-secondary {
302
+ color: var(--color-black);
303
+ }
304
+ .prokodo-Button--has-variant-outlined--has-outline-secondary::before {
305
+ background: var(--gradient-border-2);
306
+ }
307
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-secondary {
308
+ color: var(--color-secondary-500);
309
+ }
310
+ .prokodo-Button--has-variant-outlined--has-outline-info {
311
+ color: var(--color-black);
312
+ }
313
+ .prokodo-Button--has-variant-outlined--has-outline-info::before {
314
+ background: var(--gradient-border-info);
315
+ }
316
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-info {
317
+ color: #FFFFFF;
318
+ }
319
+ .prokodo-Button--has-variant-outlined--has-outline-success {
320
+ color: var(--color-black);
321
+ }
322
+ .prokodo-Button--has-variant-outlined--has-outline-success::before {
323
+ background: var(--gradient-border-success);
324
+ }
325
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-success {
326
+ color: var(--color-success);
327
+ }
328
+ .prokodo-Button--has-variant-outlined--has-outline-warning {
329
+ color: var(--color-black);
330
+ }
331
+ .prokodo-Button--has-variant-outlined--has-outline-warning::before {
332
+ background: var(--gradient-border-warning);
333
+ }
334
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-warning {
335
+ color: var(--color-warning);
336
+ }
337
+ .prokodo-Button--has-variant-outlined--has-outline-error {
338
+ color: var(--color-black);
339
+ }
340
+ .prokodo-Button--has-variant-outlined--has-outline-error::before {
341
+ background: var(--gradient-border-error);
342
+ }
343
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-error {
344
+ color: var(--color-error);
345
+ }
257
346
  .prokodo-Button--has-image, .prokodo-Button--has-icon {
258
347
  display: flex;
259
348
  align-items: center;
@@ -272,6 +361,26 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
272
361
  }
273
362
  .prokodo-Button--is-disabled {
274
363
  cursor: default;
364
+ box-shadow: none;
365
+ color: var(--color-grey-500);
366
+ background: var(--color-grey-100);
367
+ background-color: var(--color-grey-100);
368
+ }
369
+ .prokodo-Button--is-disabled::before {
370
+ background: var(--gradient-border-8);
371
+ }
372
+ .prokodo-Button--is-disabled:hover {
373
+ color: var(--color-grey-500);
374
+ background: var(--color-grey-100);
375
+ background-color: var(--color-grey-100);
376
+ }
377
+ html[data-theme=dark] .prokodo-Button--is-disabled {
378
+ color: var(--color-grey-600);
379
+ background: linear-gradient(112deg, var(--color-grey-200) 0%, var(--color-grey-300) 100%);
380
+ background-color: var(--color-grey-300);
381
+ }
382
+ html[data-theme=dark] .prokodo-Button--is-disabled::before {
383
+ background: linear-gradient(112deg, var(--color-grey-300) 0%, var(--color-grey-500) 100%);
275
384
  }
276
385
  .prokodo-Button__title {
277
386
  display: flex;
@@ -315,6 +424,5 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
315
424
  width: 100%;
316
425
  }
317
426
  .prokodo-Button__content--icon-only {
318
- padding: 0.5rem;
319
427
  border-radius: 2000rem;
320
428
  }
@@ -2,10 +2,11 @@ const styles = {
2
2
  "prokodo-Button": "prokodo-Button",
3
3
  "prokodo-Button--has-bg-primary": "prokodo-Button--has-bg-primary",
4
4
  "prokodo-Button--has-bg-secondary": "prokodo-Button--has-bg-secondary",
5
- "prokodo-Button--has-bg-info": "prokodo-Button--has-bg-info",
6
- "prokodo-Button--has-bg-error": "prokodo-Button--has-bg-error",
7
5
  "prokodo-Button--has-bg-success": "prokodo-Button--has-bg-success",
8
6
  "prokodo-Button--has-bg-warning": "prokodo-Button--has-bg-warning",
7
+ "prokodo-Button--has-bg-info": "prokodo-Button--has-bg-info",
8
+ "prokodo-Button--has-bg-error": "prokodo-Button--has-bg-error",
9
+ "prokodo-Button--has-bg-inherit": "prokodo-Button--has-bg-inherit",
9
10
  "prokodo-Button--is-disabled": "prokodo-Button--is-disabled",
10
11
  "prokodo-Button--has-text-inherit": "prokodo-Button--has-text-inherit",
11
12
  "prokodo-Button--has-text-primary": "prokodo-Button--has-text-primary",
@@ -15,6 +16,13 @@ const styles = {
15
16
  "prokodo-Button--has-text-warning": "prokodo-Button--has-text-warning",
16
17
  "prokodo-Button--has-text-error": "prokodo-Button--has-text-error",
17
18
  "prokodo-Button--has-variant-outlined": "prokodo-Button--has-variant-outlined",
19
+ "prokodo-Button--has-variant-outlined--has-outline-inherit": "prokodo-Button--has-variant-outlined--has-outline-inherit",
20
+ "prokodo-Button--has-variant-outlined--has-outline-primary": "prokodo-Button--has-variant-outlined--has-outline-primary",
21
+ "prokodo-Button--has-variant-outlined--has-outline-secondary": "prokodo-Button--has-variant-outlined--has-outline-secondary",
22
+ "prokodo-Button--has-variant-outlined--has-outline-info": "prokodo-Button--has-variant-outlined--has-outline-info",
23
+ "prokodo-Button--has-variant-outlined--has-outline-success": "prokodo-Button--has-variant-outlined--has-outline-success",
24
+ "prokodo-Button--has-variant-outlined--has-outline-warning": "prokodo-Button--has-variant-outlined--has-outline-warning",
25
+ "prokodo-Button--has-variant-outlined--has-outline-error": "prokodo-Button--has-variant-outlined--has-outline-error",
18
26
  "prokodo-Button--has-image": "prokodo-Button--has-image",
19
27
  "prokodo-Button--has-icon": "prokodo-Button--has-icon",
20
28
  "prokodo-Button--icon-only": "prokodo-Button--icon-only",
@@ -52,6 +52,7 @@ const ButtonView = /* @__PURE__ */ __name(({
52
52
  "has-icon": !Boolean(isIconOnly) && isString(iconProps == null ? void 0 : iconProps.name),
53
53
  [`has-variant-${variant}`]: true,
54
54
  [`has-bg-${color}`]: variant === "contained",
55
+ [`has-variant-${variant}--has-outline-${color}`]: variant === "outlined",
55
56
  [`has-text-${color}`]: variant === "text",
56
57
  "is-disabled": Boolean(disabled),
57
58
  ...iconMod
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { memo, useState, useEffect, useCallback } from "react";
6
+ import { CheckboxView } from "./Checkbox.view.js";
7
+ function CheckboxClient(props) {
8
+ const { checked: controlledChecked, defaultChecked, onChange } = props;
9
+ const [isChecked, setIsChecked] = useState(
10
+ controlledChecked ?? defaultChecked ?? false
11
+ );
12
+ useEffect(() => {
13
+ if (typeof controlledChecked === "boolean") {
14
+ setIsChecked(controlledChecked);
15
+ }
16
+ }, [controlledChecked]);
17
+ const handleChange = useCallback(
18
+ (event) => {
19
+ const nextChecked = event.target.checked;
20
+ if (typeof controlledChecked !== "boolean") {
21
+ setIsChecked(nextChecked);
22
+ }
23
+ onChange == null ? void 0 : onChange(event, nextChecked);
24
+ },
25
+ [controlledChecked, onChange]
26
+ );
27
+ return /* @__PURE__ */ jsx(
28
+ CheckboxView,
29
+ {
30
+ ...props,
31
+ checked: void 0,
32
+ defaultChecked: void 0,
33
+ isChecked,
34
+ onChangeInternal: handleChange
35
+ }
36
+ );
37
+ }
38
+ __name(CheckboxClient, "CheckboxClient");
39
+ const CheckboxClient$1 = memo(CheckboxClient);
40
+ export {
41
+ CheckboxClient$1 as default
42
+ };