@stevederico/skateboard-ui 3.11.0 → 4.0.0
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 +17 -0
- package/README.md +37 -31
- package/dist/shadcn/ui/accordion.d.ts +1 -6
- package/dist/shadcn/ui/accordion.js +3 -17
- package/dist/shadcn/ui/alert-dialog.d.ts +1 -18
- package/dist/shadcn/ui/alert-dialog.js +3 -43
- package/dist/shadcn/ui/alert.d.ts +1 -13
- package/dist/shadcn/ui/alert.js +3 -28
- package/dist/shadcn/ui/aspect-ratio.d.ts +1 -4
- package/dist/shadcn/ui/aspect-ratio.js +3 -8
- package/dist/shadcn/ui/avatar.d.ts +1 -11
- package/dist/shadcn/ui/avatar.js +3 -24
- package/dist/shadcn/ui/badge.d.ts +1 -14
- package/dist/shadcn/ui/badge.js +3 -33
- package/dist/shadcn/ui/breadcrumb.d.ts +1 -10
- package/dist/shadcn/ui/breadcrumb.js +3 -37
- package/dist/shadcn/ui/button-group.d.ts +1 -13
- package/dist/shadcn/ui/button-group.js +3 -36
- package/dist/shadcn/ui/button.d.ts +1 -34
- package/dist/shadcn/ui/button.js +3 -48
- package/dist/shadcn/ui/calendar.d.ts +1 -13
- package/dist/shadcn/ui/calendar.js +3 -75
- package/dist/shadcn/ui/card.d.ts +1 -11
- package/dist/shadcn/ui/card.js +3 -25
- package/dist/shadcn/ui/checkbox.d.ts +1 -3
- package/dist/shadcn/ui/checkbox.js +3 -9
- package/dist/shadcn/ui/collapsible.d.ts +1 -5
- package/dist/shadcn/ui/collapsible.js +3 -13
- package/dist/shadcn/ui/command.d.ts +1 -19
- package/dist/shadcn/ui/command.js +3 -35
- package/dist/shadcn/ui/context-menu.d.ts +1 -29
- package/dist/shadcn/ui/context-menu.js +3 -52
- package/dist/shadcn/ui/dialog.d.ts +1 -17
- package/dist/shadcn/ui/dialog.js +3 -38
- package/dist/shadcn/ui/drawer.d.ts +1 -13
- package/dist/shadcn/ui/drawer.js +3 -196
- package/dist/shadcn/ui/dropdown-menu.d.ts +1 -29
- package/dist/shadcn/ui/dropdown-menu.js +3 -52
- package/dist/shadcn/ui/empty.d.ts +1 -14
- package/dist/shadcn/ui/empty.js +3 -33
- package/dist/shadcn/ui/field.d.ts +1 -28
- package/dist/shadcn/ui/field.js +3 -68
- package/dist/shadcn/ui/hover-card.d.ts +1 -5
- package/dist/shadcn/ui/hover-card.js +3 -14
- package/dist/shadcn/ui/input-group.d.ts +1 -28
- package/dist/shadcn/ui/input-group.js +3 -58
- package/dist/shadcn/ui/input.d.ts +1 -3
- package/dist/shadcn/ui/input.js +3 -8
- package/dist/shadcn/ui/item.d.ts +1 -34
- package/dist/shadcn/ui/item.js +3 -79
- package/dist/shadcn/ui/kbd.d.ts +1 -3
- package/dist/shadcn/ui/kbd.js +3 -9
- package/dist/shadcn/ui/label.d.ts +1 -3
- package/dist/shadcn/ui/label.js +3 -8
- package/dist/shadcn/ui/menubar.d.ts +1 -29
- package/dist/shadcn/ui/menubar.js +3 -57
- package/dist/shadcn/ui/navigation-menu.d.ts +1 -13
- package/dist/shadcn/ui/navigation-menu.js +3 -31
- package/dist/shadcn/ui/pagination.d.ts +1 -17
- package/dist/shadcn/ui/pagination.js +3 -27
- package/dist/shadcn/ui/popover.d.ts +1 -9
- package/dist/shadcn/ui/popover.js +3 -24
- package/dist/shadcn/ui/progress.d.ts +1 -7
- package/dist/shadcn/ui/progress.js +3 -20
- package/dist/shadcn/ui/radio-group.d.ts +1 -5
- package/dist/shadcn/ui/radio-group.js +3 -12
- package/dist/shadcn/ui/scroll-area.d.ts +1 -5
- package/dist/shadcn/ui/scroll-area.js +3 -12
- package/dist/shadcn/ui/select.d.ts +1 -15
- package/dist/shadcn/ui/select.js +3 -35
- package/dist/shadcn/ui/separator.d.ts +1 -3
- package/dist/shadcn/ui/separator.js +3 -8
- package/dist/shadcn/ui/sheet.d.ts +1 -14
- package/dist/shadcn/ui/sheet.js +3 -38
- package/dist/shadcn/ui/sidebar.d.ts +1 -70
- package/dist/shadcn/ui/sidebar.js +3 -256
- package/dist/shadcn/ui/skeleton.d.ts +1 -2
- package/dist/shadcn/ui/skeleton.js +3 -6
- package/dist/shadcn/ui/slider.d.ts +1 -3
- package/dist/shadcn/ui/slider.js +3 -12
- package/dist/shadcn/ui/spinner.d.ts +1 -2
- package/dist/shadcn/ui/spinner.js +3 -7
- package/dist/shadcn/ui/switch.d.ts +1 -5
- package/dist/shadcn/ui/switch.js +3 -8
- package/dist/shadcn/ui/table.d.ts +1 -10
- package/dist/shadcn/ui/table.js +3 -29
- package/dist/shadcn/ui/tabs.d.ts +1 -13
- package/dist/shadcn/ui/tabs.js +3 -29
- package/dist/shadcn/ui/textarea.d.ts +1 -3
- package/dist/shadcn/ui/textarea.js +3 -7
- package/dist/shadcn/ui/toggle-group.d.ts +1 -11
- package/dist/shadcn/ui/toggle-group.js +3 -25
- package/dist/shadcn/ui/toggle.d.ts +1 -15
- package/dist/shadcn/ui/toggle.js +3 -26
- package/dist/shadcn/ui/tooltip.d.ts +1 -6
- package/dist/shadcn/ui/tooltip.js +3 -17
- package/dist/ui/accordion.d.ts +21 -0
- package/dist/ui/accordion.js +67 -0
- package/dist/ui/alert-dialog.d.ts +32 -0
- package/dist/ui/alert-dialog.js +102 -0
- package/dist/ui/alert.d.ts +13 -0
- package/dist/ui/alert.js +28 -0
- package/dist/ui/aspect-ratio.d.ts +5 -0
- package/dist/ui/aspect-ratio.js +9 -0
- package/dist/ui/avatar.d.ts +14 -0
- package/dist/ui/avatar.js +49 -0
- package/dist/ui/badge.d.ts +22 -0
- package/dist/ui/badge.js +26 -0
- package/dist/ui/breadcrumb.d.ts +13 -0
- package/dist/ui/breadcrumb.js +29 -0
- package/dist/ui/button-group.d.ts +21 -0
- package/dist/ui/button-group.js +29 -0
- package/dist/ui/button.d.ts +38 -0
- package/dist/ui/button.js +49 -0
- package/dist/ui/calendar.d.ts +13 -0
- package/dist/ui/calendar.js +75 -0
- package/dist/ui/card.d.ts +11 -0
- package/dist/ui/card.js +25 -0
- package/dist/ui/checkbox.d.ts +17 -0
- package/dist/ui/checkbox.js +25 -0
- package/dist/ui/collapsible.d.ts +11 -0
- package/dist/ui/collapsible.js +40 -0
- package/dist/ui/command.d.ts +19 -0
- package/dist/ui/command.js +35 -0
- package/dist/ui/context-menu.d.ts +53 -0
- package/dist/ui/context-menu.js +345 -0
- package/dist/ui/dialog.d.ts +40 -0
- package/dist/ui/dialog.js +109 -0
- package/dist/ui/drawer.d.ts +36 -0
- package/dist/ui/drawer.js +234 -0
- package/dist/ui/dropdown-menu.d.ts +61 -0
- package/dist/ui/dropdown-menu.js +323 -0
- package/dist/ui/empty.d.ts +14 -0
- package/dist/ui/empty.js +33 -0
- package/dist/ui/field.d.ts +28 -0
- package/dist/ui/field.js +68 -0
- package/dist/ui/hover-card.d.ts +32 -0
- package/dist/ui/hover-card.js +119 -0
- package/dist/ui/input-group.d.ts +28 -0
- package/dist/ui/input-group.js +58 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +7 -0
- package/dist/ui/item.d.ts +41 -0
- package/dist/ui/item.js +69 -0
- package/dist/ui/kbd.d.ts +4 -0
- package/dist/ui/kbd.js +10 -0
- package/dist/ui/label.d.ts +3 -0
- package/dist/ui/label.js +8 -0
- package/dist/ui/menubar.d.ts +59 -0
- package/dist/ui/menubar.js +384 -0
- package/dist/ui/navigation-menu.d.ts +24 -0
- package/dist/ui/navigation-menu.js +134 -0
- package/dist/ui/pagination.d.ts +17 -0
- package/dist/ui/pagination.js +36 -0
- package/dist/ui/popover.d.ts +25 -0
- package/dist/ui/popover.js +68 -0
- package/dist/ui/portal.d.ts +7 -0
- package/dist/ui/portal.js +12 -0
- package/dist/ui/progress.d.ts +15 -0
- package/dist/ui/progress.js +36 -0
- package/dist/ui/radio-group.d.ts +17 -0
- package/dist/ui/radio-group.js +54 -0
- package/dist/ui/scroll-area.d.ts +9 -0
- package/dist/ui/scroll-area.js +72 -0
- package/dist/ui/select.d.ts +37 -0
- package/dist/ui/select.js +216 -0
- package/dist/ui/separator.d.ts +14 -0
- package/dist/ui/separator.js +13 -0
- package/dist/ui/sheet.d.ts +31 -0
- package/dist/ui/sheet.js +121 -0
- package/dist/ui/sidebar.d.ts +86 -0
- package/dist/ui/sidebar.js +211 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/skeleton.js +7 -0
- package/dist/ui/slider.d.ts +18 -0
- package/dist/ui/slider.js +94 -0
- package/dist/ui/slot.d.ts +27 -0
- package/dist/ui/slot.js +62 -0
- package/dist/ui/spinner.d.ts +3 -0
- package/dist/ui/spinner.js +8 -0
- package/dist/ui/switch.d.ts +17 -0
- package/dist/ui/switch.js +23 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/table.js +29 -0
- package/dist/ui/tabs.d.ts +29 -0
- package/dist/ui/tabs.js +82 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +7 -0
- package/dist/ui/toggle-group.d.ts +23 -0
- package/dist/ui/toggle-group.js +52 -0
- package/dist/ui/toggle.d.ts +25 -0
- package/dist/ui/toggle.js +41 -0
- package/dist/ui/tooltip.d.ts +25 -0
- package/dist/ui/tooltip.js +90 -0
- package/dist/ui/use-controllable-state.d.ts +10 -0
- package/dist/ui/use-controllable-state.js +17 -0
- package/dist/ui/use-dismiss.d.ts +10 -0
- package/dist/ui/use-dismiss.js +51 -0
- package/dist/ui/use-floating.d.ts +38 -0
- package/dist/ui/use-floating.js +128 -0
- package/dist/ui/use-presence.d.ts +8 -0
- package/dist/ui/use-presence.js +48 -0
- package/package.json +6 -1
- package/dist/shadcn/lib/base-ui/LICENSE +0 -21
- package/dist/shadcn/lib/base-ui/_chunk-000kmre8.js +0 -150
- package/dist/shadcn/lib/base-ui/_chunk-1vw45v38.js +0 -64
- package/dist/shadcn/lib/base-ui/_chunk-23rx7haq.js +0 -81
- package/dist/shadcn/lib/base-ui/_chunk-242gh8ph.js +0 -230
- package/dist/shadcn/lib/base-ui/_chunk-26cc610z.js +0 -6
- package/dist/shadcn/lib/base-ui/_chunk-2z044bba.js +0 -5890
- package/dist/shadcn/lib/base-ui/_chunk-3cpd1vjz.js +0 -13
- package/dist/shadcn/lib/base-ui/_chunk-3enq1vat.js +0 -82
- package/dist/shadcn/lib/base-ui/_chunk-3xpke33f.js +0 -23
- package/dist/shadcn/lib/base-ui/_chunk-451nqgsa.js +0 -6
- package/dist/shadcn/lib/base-ui/_chunk-4maf6pas.js +0 -11
- package/dist/shadcn/lib/base-ui/_chunk-4zhfq4d3.js +0 -16
- package/dist/shadcn/lib/base-ui/_chunk-5gaqyne5.js +0 -21
- package/dist/shadcn/lib/base-ui/_chunk-5tt5hk59.js +0 -4
- package/dist/shadcn/lib/base-ui/_chunk-5tze5c8q.js +0 -13
- package/dist/shadcn/lib/base-ui/_chunk-5xmdvndx.js +0 -225
- package/dist/shadcn/lib/base-ui/_chunk-6adaer33.js +0 -435
- package/dist/shadcn/lib/base-ui/_chunk-6ejf1z1r.js +0 -9
- package/dist/shadcn/lib/base-ui/_chunk-6kqramh9.js +0 -27
- package/dist/shadcn/lib/base-ui/_chunk-7b9dc493.js +0 -14
- package/dist/shadcn/lib/base-ui/_chunk-8a9vv8am.js +0 -89
- package/dist/shadcn/lib/base-ui/_chunk-8ctgmf06.js +0 -129
- package/dist/shadcn/lib/base-ui/_chunk-8ganmsbg.js +0 -54
- package/dist/shadcn/lib/base-ui/_chunk-8xaqxgck.js +0 -15
- package/dist/shadcn/lib/base-ui/_chunk-95tf2rxq.js +0 -62
- package/dist/shadcn/lib/base-ui/_chunk-9x63vfqj.js +0 -70
- package/dist/shadcn/lib/base-ui/_chunk-ase0ydtt.js +0 -9
- package/dist/shadcn/lib/base-ui/_chunk-b0nc8wq7.js +0 -34
- package/dist/shadcn/lib/base-ui/_chunk-b5ya6xds.js +0 -10
- package/dist/shadcn/lib/base-ui/_chunk-b6dkjkbw.js +0 -43
- package/dist/shadcn/lib/base-ui/_chunk-c2bz952e.js +0 -19
- package/dist/shadcn/lib/base-ui/_chunk-cdgfsr3q.js +0 -15
- package/dist/shadcn/lib/base-ui/_chunk-cdj8cpx5.js +0 -347
- package/dist/shadcn/lib/base-ui/_chunk-cgptgywc.js +0 -104
- package/dist/shadcn/lib/base-ui/_chunk-cwvtvwc7.js +0 -35
- package/dist/shadcn/lib/base-ui/_chunk-dan0mva4.js +0 -23
- package/dist/shadcn/lib/base-ui/_chunk-dzvjwv25.js +0 -0
- package/dist/shadcn/lib/base-ui/_chunk-e13rsb6b.js +0 -184
- package/dist/shadcn/lib/base-ui/_chunk-e56mpvk1.js +0 -118
- package/dist/shadcn/lib/base-ui/_chunk-e6k2ecs7.js +0 -48
- package/dist/shadcn/lib/base-ui/_chunk-ebyxgtb4.js +0 -29
- package/dist/shadcn/lib/base-ui/_chunk-f2wttwrf.js +0 -39
- package/dist/shadcn/lib/base-ui/_chunk-fdzctasg.js +0 -38
- package/dist/shadcn/lib/base-ui/_chunk-ffpjy0ta.js +0 -39
- package/dist/shadcn/lib/base-ui/_chunk-fqry7pew.js +0 -603
- package/dist/shadcn/lib/base-ui/_chunk-ghn1tzt8.js +0 -84
- package/dist/shadcn/lib/base-ui/_chunk-gy0bpkmx.js +0 -12
- package/dist/shadcn/lib/base-ui/_chunk-hm5h9vsk.js +0 -16
- package/dist/shadcn/lib/base-ui/_chunk-htdj1jps.js +0 -833
- package/dist/shadcn/lib/base-ui/_chunk-j29xjete.js +0 -146
- package/dist/shadcn/lib/base-ui/_chunk-j3qkyd10.js +0 -50
- package/dist/shadcn/lib/base-ui/_chunk-ktvsd5k6.js +0 -2386
- package/dist/shadcn/lib/base-ui/_chunk-kw8nnq00.js +0 -546
- package/dist/shadcn/lib/base-ui/_chunk-m307wpdj.js +0 -18
- package/dist/shadcn/lib/base-ui/_chunk-mnd0j7v9.js +0 -15
- package/dist/shadcn/lib/base-ui/_chunk-n11h505c.js +0 -32
- package/dist/shadcn/lib/base-ui/_chunk-p0e2qacz.js +0 -26
- package/dist/shadcn/lib/base-ui/_chunk-pv7b791x.js +0 -106
- package/dist/shadcn/lib/base-ui/_chunk-q5cg71p7.js +0 -83
- package/dist/shadcn/lib/base-ui/_chunk-qbezxj1g.js +0 -385
- package/dist/shadcn/lib/base-ui/_chunk-qmsqz6nt.js +0 -15
- package/dist/shadcn/lib/base-ui/_chunk-rrh8rt4v.js +0 -65
- package/dist/shadcn/lib/base-ui/_chunk-s5pwkz8v.js +0 -25
- package/dist/shadcn/lib/base-ui/_chunk-svxv97ph.js +0 -218
- package/dist/shadcn/lib/base-ui/_chunk-t7ppm3t0.js +0 -68
- package/dist/shadcn/lib/base-ui/_chunk-vg16xxmb.js +0 -52
- package/dist/shadcn/lib/base-ui/_chunk-vgkfmtbe.js +0 -21
- package/dist/shadcn/lib/base-ui/_chunk-watha94s.js +0 -14
- package/dist/shadcn/lib/base-ui/_chunk-wdqynnjf.js +0 -35
- package/dist/shadcn/lib/base-ui/_chunk-wx2nxg0p.js +0 -15
- package/dist/shadcn/lib/base-ui/_chunk-x11e1k9r.js +0 -0
- package/dist/shadcn/lib/base-ui/_chunk-x8xehj6d.js +0 -302
- package/dist/shadcn/lib/base-ui/_chunk-xcqbtm2f.js +0 -28
- package/dist/shadcn/lib/base-ui/_chunk-ytnp24gq.js +0 -328
- package/dist/shadcn/lib/base-ui/_chunk-yzr7eg4b.js +0 -6
- package/dist/shadcn/lib/base-ui/_chunk-zk4mtm9m.js +0 -9
- package/dist/shadcn/lib/base-ui/accordion.d.ts +0 -447
- package/dist/shadcn/lib/base-ui/accordion.js +0 -630
- package/dist/shadcn/lib/base-ui/alert-dialog.d.ts +0 -1467
- package/dist/shadcn/lib/base-ui/alert-dialog.js +0 -98
- package/dist/shadcn/lib/base-ui/avatar.d.ts +0 -123
- package/dist/shadcn/lib/base-ui/avatar.js +0 -235
- package/dist/shadcn/lib/base-ui/button.d.ts +0 -84
- package/dist/shadcn/lib/base-ui/button.js +0 -51
- package/dist/shadcn/lib/base-ui/checkbox.d.ts +0 -341
- package/dist/shadcn/lib/base-ui/checkbox.js +0 -501
- package/dist/shadcn/lib/base-ui/collapsible.d.ts +0 -291
- package/dist/shadcn/lib/base-ui/collapsible.js +0 -264
- package/dist/shadcn/lib/base-ui/context-menu.d.ts +0 -2213
- package/dist/shadcn/lib/base-ui/context-menu.js +0 -323
- package/dist/shadcn/lib/base-ui/dialog.d.ts +0 -1448
- package/dist/shadcn/lib/base-ui/dialog.js +0 -79
- package/dist/shadcn/lib/base-ui/input.d.ts +0 -506
- package/dist/shadcn/lib/base-ui/input.js +0 -1027
- package/dist/shadcn/lib/base-ui/menu.d.ts +0 -2275
- package/dist/shadcn/lib/base-ui/menu.js +0 -60
- package/dist/shadcn/lib/base-ui/menubar.d.ts +0 -48
- package/dist/shadcn/lib/base-ui/menubar.js +0 -156
- package/dist/shadcn/lib/base-ui/merge-props.d.ts +0 -70
- package/dist/shadcn/lib/base-ui/merge-props.js +0 -15
- package/dist/shadcn/lib/base-ui/navigation-menu.d.ts +0 -825
- package/dist/shadcn/lib/base-ui/navigation-menu.js +0 -1849
- package/dist/shadcn/lib/base-ui/popover.d.ts +0 -1743
- package/dist/shadcn/lib/base-ui/popover.js +0 -1089
- package/dist/shadcn/lib/base-ui/preview-card.d.ts +0 -1608
- package/dist/shadcn/lib/base-ui/preview-card.js +0 -919
- package/dist/shadcn/lib/base-ui/progress.d.ts +0 -172
- package/dist/shadcn/lib/base-ui/progress.js +0 -272
- package/dist/shadcn/lib/base-ui/radio-group.d.ts +0 -260
- package/dist/shadcn/lib/base-ui/radio-group.js +0 -239
- package/dist/shadcn/lib/base-ui/radio.d.ts +0 -176
- package/dist/shadcn/lib/base-ui/radio.js +0 -387
- package/dist/shadcn/lib/base-ui/scroll-area.d.ts +0 -241
- package/dist/shadcn/lib/base-ui/scroll-area.js +0 -1055
- package/dist/shadcn/lib/base-ui/select.d.ts +0 -1266
- package/dist/shadcn/lib/base-ui/select.js +0 -2450
- package/dist/shadcn/lib/base-ui/separator.d.ts +0 -76
- package/dist/shadcn/lib/base-ui/separator.js +0 -11
- package/dist/shadcn/lib/base-ui/slider.d.ts +0 -551
- package/dist/shadcn/lib/base-ui/slider.js +0 -1583
- package/dist/shadcn/lib/base-ui/switch.d.ts +0 -313
- package/dist/shadcn/lib/base-ui/switch.js +0 -326
- package/dist/shadcn/lib/base-ui/tabs.d.ts +0 -406
- package/dist/shadcn/lib/base-ui/tabs.js +0 -915
- package/dist/shadcn/lib/base-ui/toggle-group.d.ts +0 -235
- package/dist/shadcn/lib/base-ui/toggle-group.js +0 -145
- package/dist/shadcn/lib/base-ui/toggle.d.ts +0 -224
- package/dist/shadcn/lib/base-ui/toggle.js +0 -127
- package/dist/shadcn/lib/base-ui/tooltip.d.ts +0 -1656
- package/dist/shadcn/lib/base-ui/tooltip.js +0 -920
- package/dist/shadcn/lib/base-ui/use-render.d.ts +0 -87
- package/dist/shadcn/lib/base-ui/use-render.js +0 -15
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
/* @base-ui/react 1.5.0 — vendored (MIT — MUI Inc).
|
|
2
|
-
* Refresh: scripts/vendor-base-ui.js (see header for instructions).
|
|
3
|
-
* Do not edit by hand. */
|
|
4
|
-
import * as React$1 from 'react';
|
|
5
|
-
|
|
6
|
-
declare const none: "none";
|
|
7
|
-
declare const triggerPress: "trigger-press";
|
|
8
|
-
declare const triggerHover: "trigger-hover";
|
|
9
|
-
declare const triggerFocus: "trigger-focus";
|
|
10
|
-
declare const outsidePress: "outside-press";
|
|
11
|
-
declare const itemPress: "item-press";
|
|
12
|
-
declare const closePress: "close-press";
|
|
13
|
-
declare const linkPress: "link-press";
|
|
14
|
-
declare const clearPress: "clear-press";
|
|
15
|
-
declare const chipRemovePress: "chip-remove-press";
|
|
16
|
-
declare const trackPress: "track-press";
|
|
17
|
-
declare const incrementPress: "increment-press";
|
|
18
|
-
declare const decrementPress: "decrement-press";
|
|
19
|
-
declare const inputChange: "input-change";
|
|
20
|
-
declare const inputClear: "input-clear";
|
|
21
|
-
declare const inputBlur: "input-blur";
|
|
22
|
-
declare const inputPaste: "input-paste";
|
|
23
|
-
declare const inputPress: "input-press";
|
|
24
|
-
declare const focusOut: "focus-out";
|
|
25
|
-
declare const escapeKey: "escape-key";
|
|
26
|
-
declare const closeWatcher: "close-watcher";
|
|
27
|
-
declare const listNavigation: "list-navigation";
|
|
28
|
-
declare const keyboard: "keyboard";
|
|
29
|
-
declare const pointer: "pointer";
|
|
30
|
-
declare const drag: "drag";
|
|
31
|
-
declare const wheel: "wheel";
|
|
32
|
-
declare const scrub: "scrub";
|
|
33
|
-
declare const cancelOpen: "cancel-open";
|
|
34
|
-
declare const siblingOpen: "sibling-open";
|
|
35
|
-
declare const disabled: "disabled";
|
|
36
|
-
declare const missing: "missing";
|
|
37
|
-
declare const initial: "initial";
|
|
38
|
-
declare const imperativeAction: "imperative-action";
|
|
39
|
-
declare const swipe: "swipe";
|
|
40
|
-
declare const windowResize: "window-resize";
|
|
41
|
-
export interface ReasonToEventMap {
|
|
42
|
-
[none]: Event;
|
|
43
|
-
[triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
|
|
44
|
-
[triggerHover]: MouseEvent;
|
|
45
|
-
[triggerFocus]: FocusEvent;
|
|
46
|
-
[outsidePress]: MouseEvent | PointerEvent | TouchEvent;
|
|
47
|
-
[itemPress]: MouseEvent | KeyboardEvent | PointerEvent;
|
|
48
|
-
[closePress]: MouseEvent | KeyboardEvent | PointerEvent;
|
|
49
|
-
[linkPress]: MouseEvent | PointerEvent;
|
|
50
|
-
[clearPress]: PointerEvent | MouseEvent | KeyboardEvent;
|
|
51
|
-
[chipRemovePress]: PointerEvent | MouseEvent | KeyboardEvent;
|
|
52
|
-
[trackPress]: PointerEvent | MouseEvent | TouchEvent;
|
|
53
|
-
[incrementPress]: PointerEvent | MouseEvent | TouchEvent;
|
|
54
|
-
[decrementPress]: PointerEvent | MouseEvent | TouchEvent;
|
|
55
|
-
[inputChange]: InputEvent | Event;
|
|
56
|
-
[inputClear]: InputEvent | FocusEvent | Event;
|
|
57
|
-
[inputBlur]: FocusEvent;
|
|
58
|
-
[inputPaste]: ClipboardEvent;
|
|
59
|
-
[inputPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
|
|
60
|
-
[focusOut]: FocusEvent | KeyboardEvent;
|
|
61
|
-
[escapeKey]: KeyboardEvent;
|
|
62
|
-
[closeWatcher]: Event;
|
|
63
|
-
[listNavigation]: KeyboardEvent;
|
|
64
|
-
[keyboard]: KeyboardEvent;
|
|
65
|
-
[pointer]: PointerEvent;
|
|
66
|
-
[drag]: PointerEvent | TouchEvent;
|
|
67
|
-
[swipe]: PointerEvent | TouchEvent;
|
|
68
|
-
[wheel]: WheelEvent;
|
|
69
|
-
[scrub]: PointerEvent;
|
|
70
|
-
[cancelOpen]: MouseEvent;
|
|
71
|
-
[siblingOpen]: Event;
|
|
72
|
-
[disabled]: Event;
|
|
73
|
-
[missing]: Event;
|
|
74
|
-
[initial]: Event;
|
|
75
|
-
[imperativeAction]: Event;
|
|
76
|
-
[windowResize]: UIEvent;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Maps a change `reason` string to the corresponding native event type.
|
|
80
|
-
*/
|
|
81
|
-
export type ReasonToEvent<Reason extends string> = Reason extends keyof ReasonToEventMap ? ReasonToEventMap[Reason] : Event;
|
|
82
|
-
export type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
|
|
83
|
-
/**
|
|
84
|
-
* The reason for the event.
|
|
85
|
-
*/
|
|
86
|
-
reason: Reason;
|
|
87
|
-
/**
|
|
88
|
-
* The native event associated with the custom event.
|
|
89
|
-
*/
|
|
90
|
-
event: ReasonToEvent<Reason>;
|
|
91
|
-
/**
|
|
92
|
-
* Cancels Base UI from handling the event.
|
|
93
|
-
*/
|
|
94
|
-
cancel: () => void;
|
|
95
|
-
/**
|
|
96
|
-
* Allows the event to propagate in cases where Base UI will stop the propagation.
|
|
97
|
-
*/
|
|
98
|
-
allowPropagation: () => void;
|
|
99
|
-
/**
|
|
100
|
-
* Indicates whether the event has been canceled.
|
|
101
|
-
*/
|
|
102
|
-
isCanceled: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Indicates whether the event is allowed to propagate.
|
|
105
|
-
*/
|
|
106
|
-
isPropagationAllowed: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* The element that triggered the event, if applicable.
|
|
109
|
-
*/
|
|
110
|
-
trigger: Element | undefined;
|
|
111
|
-
} & CustomProperties;
|
|
112
|
-
/**
|
|
113
|
-
* Details of custom change events emitted by Base UI components.
|
|
114
|
-
*/
|
|
115
|
-
export type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
|
|
116
|
-
export type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
|
|
117
|
-
ref?: React$1.Ref<T> | undefined;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
|
|
121
|
-
*
|
|
122
|
-
* @template Props Props to be spread on the rendered element.
|
|
123
|
-
* @template State Component's internal state.
|
|
124
|
-
*/
|
|
125
|
-
export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React$1.ReactElement<unknown>;
|
|
126
|
-
export type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
|
|
127
|
-
preventBaseUIHandler: () => void;
|
|
128
|
-
readonly baseUIHandlerPrevented?: boolean | undefined;
|
|
129
|
-
};
|
|
130
|
-
export type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React$1.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
|
|
131
|
-
/**
|
|
132
|
-
* Adds a `preventBaseUIHandler` method to all event handlers.
|
|
133
|
-
*/
|
|
134
|
-
export type WithBaseUIEvent<T> = {
|
|
135
|
-
[K in keyof T]: WithPreventBaseUIHandler<T[K]>;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Props shared by all Base UI components.
|
|
139
|
-
* Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
|
|
140
|
-
*/
|
|
141
|
-
export type BaseUIComponentProps<ElementType extends React$1.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React$1.ComponentPropsWithRef<ElementType>>, "className" | "color" | "defaultValue" | "defaultChecked" | "style"> & {
|
|
142
|
-
/**
|
|
143
|
-
* CSS class applied to the element, or a function that
|
|
144
|
-
* returns a class based on the component's state.
|
|
145
|
-
*/
|
|
146
|
-
className?: string | ((state: State) => string | undefined) | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* Allows you to replace the component's HTML element
|
|
149
|
-
* with a different tag, or compose it with another component.
|
|
150
|
-
*
|
|
151
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
152
|
-
*/
|
|
153
|
-
render?: React$1.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Style applied to the element, or a function that
|
|
156
|
-
* returns a style object based on the component's state.
|
|
157
|
-
*/
|
|
158
|
-
style?: React$1.CSSProperties | ((state: State) => React$1.CSSProperties | undefined) | undefined;
|
|
159
|
-
};
|
|
160
|
-
export interface NonNativeButtonProps {
|
|
161
|
-
/**
|
|
162
|
-
* Whether the component renders a native `<button>` element when replacing it
|
|
163
|
-
* via the `render` prop.
|
|
164
|
-
* Set to `true` if the rendered element is a native button.
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
nativeButton?: boolean | undefined;
|
|
168
|
-
}
|
|
169
|
-
export interface FieldRootState {
|
|
170
|
-
/**
|
|
171
|
-
* Whether the component should ignore user interaction.
|
|
172
|
-
*/
|
|
173
|
-
disabled: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* Whether the field has been touched.
|
|
176
|
-
*/
|
|
177
|
-
touched: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Whether the field value has changed from its initial value.
|
|
180
|
-
*/
|
|
181
|
-
dirty: boolean;
|
|
182
|
-
/**
|
|
183
|
-
* Whether the field is valid.
|
|
184
|
-
*/
|
|
185
|
-
valid: boolean | null;
|
|
186
|
-
/**
|
|
187
|
-
* Whether the field has a value.
|
|
188
|
-
*/
|
|
189
|
-
filled: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Whether the field is focused.
|
|
192
|
-
*/
|
|
193
|
-
focused: boolean;
|
|
194
|
-
}
|
|
195
|
-
export declare const PARENT_CHECKBOX = "data-parent";
|
|
196
|
-
/**
|
|
197
|
-
* Represents the checkbox itself.
|
|
198
|
-
* Renders a `<span>` element and a hidden `<input>` beside.
|
|
199
|
-
*
|
|
200
|
-
* Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
|
|
201
|
-
*/
|
|
202
|
-
export declare const CheckboxRoot: React$1.ForwardRefExoticComponent<Omit<CheckboxRootProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
203
|
-
export interface CheckboxRootState extends FieldRootState {
|
|
204
|
-
/**
|
|
205
|
-
* Whether the checkbox is currently ticked.
|
|
206
|
-
*/
|
|
207
|
-
checked: boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Whether the component should ignore user interaction.
|
|
210
|
-
*/
|
|
211
|
-
disabled: boolean;
|
|
212
|
-
/**
|
|
213
|
-
* Whether the user should be unable to tick or untick the checkbox.
|
|
214
|
-
*/
|
|
215
|
-
readOnly: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Whether the user must tick the checkbox before submitting a form.
|
|
218
|
-
*/
|
|
219
|
-
required: boolean;
|
|
220
|
-
/**
|
|
221
|
-
* Whether the checkbox is in a mixed state: neither ticked, nor unticked.
|
|
222
|
-
*/
|
|
223
|
-
indeterminate: boolean;
|
|
224
|
-
}
|
|
225
|
-
export interface CheckboxRootProps extends NonNativeButtonProps, Omit<BaseUIComponentProps<"span", CheckboxRootState>, "onChange" | "value"> {
|
|
226
|
-
/**
|
|
227
|
-
* The id of the input element.
|
|
228
|
-
*/
|
|
229
|
-
id?: string | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* Identifies the field when a form is submitted.
|
|
232
|
-
* @default undefined
|
|
233
|
-
*/
|
|
234
|
-
name?: string | undefined;
|
|
235
|
-
/**
|
|
236
|
-
* Identifies the form that owns the hidden input.
|
|
237
|
-
* Useful when the checkbox is rendered outside the form.
|
|
238
|
-
*/
|
|
239
|
-
form?: string | undefined;
|
|
240
|
-
/**
|
|
241
|
-
* Whether the checkbox is currently ticked.
|
|
242
|
-
*
|
|
243
|
-
* To render an uncontrolled checkbox, use the `defaultChecked` prop instead.
|
|
244
|
-
* @default undefined
|
|
245
|
-
*/
|
|
246
|
-
checked?: boolean | undefined;
|
|
247
|
-
/**
|
|
248
|
-
* Whether the checkbox is initially ticked.
|
|
249
|
-
*
|
|
250
|
-
* To render a controlled checkbox, use the `checked` prop instead.
|
|
251
|
-
* @default false
|
|
252
|
-
*/
|
|
253
|
-
defaultChecked?: boolean | undefined;
|
|
254
|
-
/**
|
|
255
|
-
* Whether the component should ignore user interaction.
|
|
256
|
-
* @default false
|
|
257
|
-
*/
|
|
258
|
-
disabled?: boolean | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* Event handler called when the checkbox is ticked or unticked.
|
|
261
|
-
*/
|
|
262
|
-
onCheckedChange?: ((checked: boolean, eventDetails: CheckboxRootChangeEventDetails) => void) | undefined;
|
|
263
|
-
/**
|
|
264
|
-
* Whether the user should be unable to tick or untick the checkbox.
|
|
265
|
-
* @default false
|
|
266
|
-
*/
|
|
267
|
-
readOnly?: boolean | undefined;
|
|
268
|
-
/**
|
|
269
|
-
* Whether the user must tick the checkbox before submitting a form.
|
|
270
|
-
* @default false
|
|
271
|
-
*/
|
|
272
|
-
required?: boolean | undefined;
|
|
273
|
-
/**
|
|
274
|
-
* Whether the checkbox is in a mixed state: neither ticked, nor unticked.
|
|
275
|
-
* @default false
|
|
276
|
-
*/
|
|
277
|
-
indeterminate?: boolean | undefined;
|
|
278
|
-
/**
|
|
279
|
-
* A ref to access the hidden `<input>` element.
|
|
280
|
-
*/
|
|
281
|
-
inputRef?: React$1.Ref<HTMLInputElement> | undefined;
|
|
282
|
-
/**
|
|
283
|
-
* Whether the checkbox controls a group of child checkboxes.
|
|
284
|
-
*
|
|
285
|
-
* Must be used in a [Checkbox Group](https://base-ui.com/react/components/checkbox-group).
|
|
286
|
-
* @default false
|
|
287
|
-
*/
|
|
288
|
-
parent?: boolean | undefined;
|
|
289
|
-
/**
|
|
290
|
-
* The value submitted with the form when the checkbox is unchecked.
|
|
291
|
-
* By default, unchecked checkboxes do not submit any value, matching native checkbox behavior.
|
|
292
|
-
*/
|
|
293
|
-
uncheckedValue?: string | undefined;
|
|
294
|
-
/**
|
|
295
|
-
* The value of the selected checkbox.
|
|
296
|
-
*/
|
|
297
|
-
value?: string | undefined;
|
|
298
|
-
}
|
|
299
|
-
export type CheckboxRootChangeEventReason = typeof none;
|
|
300
|
-
export type CheckboxRootChangeEventDetails = BaseUIChangeEventDetails<CheckboxRoot.ChangeEventReason>;
|
|
301
|
-
export declare namespace CheckboxRoot {
|
|
302
|
-
type State = CheckboxRootState;
|
|
303
|
-
type Props = CheckboxRootProps;
|
|
304
|
-
type ChangeEventReason = CheckboxRootChangeEventReason;
|
|
305
|
-
type ChangeEventDetails = CheckboxRootChangeEventDetails;
|
|
306
|
-
}
|
|
307
|
-
export type TransitionStatus = "starting" | "ending" | "idle" | undefined;
|
|
308
|
-
/**
|
|
309
|
-
* Indicates whether the checkbox is ticked.
|
|
310
|
-
* Renders a `<span>` element.
|
|
311
|
-
*
|
|
312
|
-
* Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
|
|
313
|
-
*/
|
|
314
|
-
export declare const CheckboxIndicator: React$1.ForwardRefExoticComponent<Omit<CheckboxIndicatorProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
315
|
-
export interface CheckboxIndicatorState extends CheckboxRootState {
|
|
316
|
-
/**
|
|
317
|
-
* The transition status of the component.
|
|
318
|
-
*/
|
|
319
|
-
transitionStatus: TransitionStatus;
|
|
320
|
-
}
|
|
321
|
-
export interface CheckboxIndicatorProps extends BaseUIComponentProps<"span", CheckboxIndicatorState> {
|
|
322
|
-
/**
|
|
323
|
-
* Whether to keep the element in the DOM when the checkbox is not checked.
|
|
324
|
-
* @default false
|
|
325
|
-
*/
|
|
326
|
-
keepMounted?: boolean | undefined;
|
|
327
|
-
}
|
|
328
|
-
export declare namespace CheckboxIndicator {
|
|
329
|
-
type State = CheckboxIndicatorState;
|
|
330
|
-
type Props = CheckboxIndicatorProps;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
declare namespace Checkbox {
|
|
334
|
-
export { CheckboxIndicator as Indicator, CheckboxRoot as Root };
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export {
|
|
338
|
-
Checkbox,
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
export {};
|