@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,387 +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 {
|
|
5
|
-
useRadioGroupContext
|
|
6
|
-
} from "./_chunk-4maf6pas.js";
|
|
7
|
-
import {
|
|
8
|
-
serializeValue
|
|
9
|
-
} from "./_chunk-4zhfq4d3.js";
|
|
10
|
-
import {
|
|
11
|
-
useLabelableId
|
|
12
|
-
} from "./_chunk-23rx7haq.js";
|
|
13
|
-
import {
|
|
14
|
-
ACTIVE_COMPOSITE_ITEM
|
|
15
|
-
} from "./_chunk-5tt5hk59.js";
|
|
16
|
-
import {
|
|
17
|
-
useAriaLabelledBy
|
|
18
|
-
} from "./_chunk-vg16xxmb.js";
|
|
19
|
-
import {
|
|
20
|
-
useFieldItemContext
|
|
21
|
-
} from "./_chunk-7b9dc493.js";
|
|
22
|
-
import {
|
|
23
|
-
fieldValidityMapping,
|
|
24
|
-
useFieldRootContext,
|
|
25
|
-
useLabelableContext
|
|
26
|
-
} from "./_chunk-8ctgmf06.js";
|
|
27
|
-
import"./_chunk-dzvjwv25.js";
|
|
28
|
-
import {
|
|
29
|
-
CompositeItem
|
|
30
|
-
} from "./_chunk-f2wttwrf.js";
|
|
31
|
-
import"./_chunk-j3qkyd10.js";
|
|
32
|
-
import"./_chunk-3enq1vat.js";
|
|
33
|
-
import"./_chunk-3xpke33f.js";
|
|
34
|
-
import {
|
|
35
|
-
visuallyHidden,
|
|
36
|
-
visuallyHiddenInput
|
|
37
|
-
} from "./_chunk-dan0mva4.js";
|
|
38
|
-
import"./_chunk-x11e1k9r.js";
|
|
39
|
-
import"./_chunk-451nqgsa.js";
|
|
40
|
-
import {
|
|
41
|
-
createChangeEventDetails,
|
|
42
|
-
exports_reason_parts
|
|
43
|
-
} from "./_chunk-e56mpvk1.js";
|
|
44
|
-
import {
|
|
45
|
-
useBaseUiId
|
|
46
|
-
} from "./_chunk-wdqynnjf.js";
|
|
47
|
-
import {
|
|
48
|
-
transitionStatusMapping,
|
|
49
|
-
useOpenChangeComplete,
|
|
50
|
-
useTransitionStatus
|
|
51
|
-
} from "./_chunk-e13rsb6b.js";
|
|
52
|
-
import"./_chunk-zk4mtm9m.js";
|
|
53
|
-
import"./_chunk-8a9vv8am.js";
|
|
54
|
-
import"./_chunk-6ejf1z1r.js";
|
|
55
|
-
import {
|
|
56
|
-
useButton
|
|
57
|
-
} from "./_chunk-5xmdvndx.js";
|
|
58
|
-
import"./_chunk-hm5h9vsk.js";
|
|
59
|
-
import"./_chunk-cdgfsr3q.js";
|
|
60
|
-
import {
|
|
61
|
-
getWindow
|
|
62
|
-
} from "./_chunk-000kmre8.js";
|
|
63
|
-
import {
|
|
64
|
-
useStableCallback
|
|
65
|
-
} from "./_chunk-cwvtvwc7.js";
|
|
66
|
-
import {
|
|
67
|
-
useIsoLayoutEffect
|
|
68
|
-
} from "./_chunk-5tze5c8q.js";
|
|
69
|
-
import {
|
|
70
|
-
EMPTY_OBJECT,
|
|
71
|
-
NOOP,
|
|
72
|
-
useMergedRefs,
|
|
73
|
-
useRenderElement
|
|
74
|
-
} from "./_chunk-x8xehj6d.js";
|
|
75
|
-
import {
|
|
76
|
-
__export
|
|
77
|
-
} from "./_chunk-svxv97ph.js";
|
|
78
|
-
|
|
79
|
-
// node_modules/@base-ui/react/esm/radio/index.parts.js
|
|
80
|
-
var exports_index_parts = {};
|
|
81
|
-
__export(exports_index_parts, {
|
|
82
|
-
Root: () => RadioRoot,
|
|
83
|
-
Indicator: () => RadioIndicator
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
// node_modules/@base-ui/react/esm/radio/root/RadioRoot.js
|
|
87
|
-
import * as React2 from "react";
|
|
88
|
-
|
|
89
|
-
// node_modules/@base-ui/react/esm/radio/root/RadioRootDataAttributes.js
|
|
90
|
-
var RadioRootDataAttributes = /* @__PURE__ */ function(RadioRootDataAttributes2) {
|
|
91
|
-
RadioRootDataAttributes2["checked"] = "data-checked";
|
|
92
|
-
RadioRootDataAttributes2["unchecked"] = "data-unchecked";
|
|
93
|
-
RadioRootDataAttributes2["disabled"] = "data-disabled";
|
|
94
|
-
RadioRootDataAttributes2["readonly"] = "data-readonly";
|
|
95
|
-
RadioRootDataAttributes2["required"] = "data-required";
|
|
96
|
-
RadioRootDataAttributes2["valid"] = "data-valid";
|
|
97
|
-
RadioRootDataAttributes2["invalid"] = "data-invalid";
|
|
98
|
-
RadioRootDataAttributes2["touched"] = "data-touched";
|
|
99
|
-
RadioRootDataAttributes2["dirty"] = "data-dirty";
|
|
100
|
-
RadioRootDataAttributes2["filled"] = "data-filled";
|
|
101
|
-
RadioRootDataAttributes2["focused"] = "data-focused";
|
|
102
|
-
return RadioRootDataAttributes2;
|
|
103
|
-
}({});
|
|
104
|
-
|
|
105
|
-
// node_modules/@base-ui/react/esm/radio/utils/stateAttributesMapping.js
|
|
106
|
-
var stateAttributesMapping = {
|
|
107
|
-
checked(value) {
|
|
108
|
-
if (value) {
|
|
109
|
-
return {
|
|
110
|
-
[RadioRootDataAttributes.checked]: ""
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
[RadioRootDataAttributes.unchecked]: ""
|
|
115
|
-
};
|
|
116
|
-
},
|
|
117
|
-
...transitionStatusMapping,
|
|
118
|
-
...fieldValidityMapping
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
// node_modules/@base-ui/react/esm/radio/root/RadioRootContext.js
|
|
122
|
-
import * as React from "react";
|
|
123
|
-
"use client";
|
|
124
|
-
var RadioRootContext = /* @__PURE__ */ React.createContext(undefined);
|
|
125
|
-
if (true)
|
|
126
|
-
RadioRootContext.displayName = "RadioRootContext";
|
|
127
|
-
function useRadioRootContext() {
|
|
128
|
-
const value = React.useContext(RadioRootContext);
|
|
129
|
-
if (value === undefined) {
|
|
130
|
-
throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");
|
|
131
|
-
}
|
|
132
|
-
return value;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// node_modules/@base-ui/react/esm/radio/root/RadioRoot.js
|
|
136
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
137
|
-
"use client";
|
|
138
|
-
var RadioRoot = /* @__PURE__ */ React2.forwardRef(function RadioRoot2(componentProps, forwardedRef) {
|
|
139
|
-
const {
|
|
140
|
-
render,
|
|
141
|
-
className,
|
|
142
|
-
disabled: disabledProp = false,
|
|
143
|
-
readOnly: readOnlyProp = false,
|
|
144
|
-
required: requiredProp = false,
|
|
145
|
-
"aria-labelledby": ariaLabelledByProp,
|
|
146
|
-
value,
|
|
147
|
-
inputRef: inputRefProp,
|
|
148
|
-
nativeButton = false,
|
|
149
|
-
id: idProp,
|
|
150
|
-
style,
|
|
151
|
-
...elementProps
|
|
152
|
-
} = componentProps;
|
|
153
|
-
const groupContext = useRadioGroupContext();
|
|
154
|
-
const {
|
|
155
|
-
disabled: disabledGroup,
|
|
156
|
-
readOnly: readOnlyGroup,
|
|
157
|
-
required: requiredGroup,
|
|
158
|
-
form: formGroup,
|
|
159
|
-
checkedValue,
|
|
160
|
-
touched = false,
|
|
161
|
-
validation,
|
|
162
|
-
name
|
|
163
|
-
} = groupContext ?? {};
|
|
164
|
-
const setCheckedValue = groupContext?.setCheckedValue ?? NOOP;
|
|
165
|
-
const setTouched = groupContext?.setTouched ?? NOOP;
|
|
166
|
-
const registerControlRef = groupContext?.registerControlRef ?? NOOP;
|
|
167
|
-
const registerInputRef = groupContext?.registerInputRef ?? NOOP;
|
|
168
|
-
const {
|
|
169
|
-
setDirty,
|
|
170
|
-
validityData,
|
|
171
|
-
setTouched: setFieldTouched,
|
|
172
|
-
setFilled,
|
|
173
|
-
state: fieldState,
|
|
174
|
-
disabled: fieldDisabled
|
|
175
|
-
} = useFieldRootContext();
|
|
176
|
-
const fieldItemContext = useFieldItemContext();
|
|
177
|
-
const {
|
|
178
|
-
labelId,
|
|
179
|
-
getDescriptionProps
|
|
180
|
-
} = useLabelableContext();
|
|
181
|
-
const disabled = fieldDisabled || fieldItemContext.disabled || disabledGroup || disabledProp;
|
|
182
|
-
const readOnly = readOnlyGroup || readOnlyProp;
|
|
183
|
-
const required = requiredGroup || requiredProp;
|
|
184
|
-
const form = formGroup;
|
|
185
|
-
const checked = groupContext ? checkedValue === value : value === "";
|
|
186
|
-
const radioRef = React2.useRef(null);
|
|
187
|
-
const inputRef = React2.useRef(null);
|
|
188
|
-
const handleControlRef = useStableCallback((element2) => {
|
|
189
|
-
if (!element2) {
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
registerControlRef(element2, disabled);
|
|
193
|
-
});
|
|
194
|
-
const mergedInputRef = useMergedRefs(inputRefProp, inputRef, registerInputRef);
|
|
195
|
-
useIsoLayoutEffect(() => {
|
|
196
|
-
if (inputRef.current?.checked) {
|
|
197
|
-
setFilled(true);
|
|
198
|
-
}
|
|
199
|
-
}, [setFilled]);
|
|
200
|
-
useIsoLayoutEffect(() => {
|
|
201
|
-
if (!inputRef.current) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
if (disabled && checked) {
|
|
205
|
-
registerInputRef(null);
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
if (radioRef.current) {
|
|
209
|
-
registerControlRef(radioRef.current, disabled);
|
|
210
|
-
}
|
|
211
|
-
registerInputRef(inputRef.current);
|
|
212
|
-
}, [checked, disabled, registerControlRef, registerInputRef]);
|
|
213
|
-
const id = useBaseUiId();
|
|
214
|
-
const inputId = useLabelableId({
|
|
215
|
-
id: idProp,
|
|
216
|
-
implicit: false,
|
|
217
|
-
controlRef: radioRef
|
|
218
|
-
});
|
|
219
|
-
const hiddenInputId = nativeButton ? undefined : inputId;
|
|
220
|
-
const ariaLabelledBy = useAriaLabelledBy(ariaLabelledByProp, labelId, inputRef, !nativeButton, hiddenInputId);
|
|
221
|
-
const rootProps = {
|
|
222
|
-
role: "radio",
|
|
223
|
-
"aria-checked": checked,
|
|
224
|
-
"aria-required": required || undefined,
|
|
225
|
-
"aria-readonly": readOnly || undefined,
|
|
226
|
-
"aria-labelledby": ariaLabelledBy,
|
|
227
|
-
[ACTIVE_COMPOSITE_ITEM]: checked ? "" : undefined,
|
|
228
|
-
id: nativeButton ? inputId : id,
|
|
229
|
-
onKeyDown(event) {
|
|
230
|
-
if (event.key === "Enter") {
|
|
231
|
-
event.preventDefault();
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
onClick(event) {
|
|
235
|
-
if (event.defaultPrevented || disabled || readOnly) {
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
event.preventDefault();
|
|
239
|
-
const input = inputRef.current;
|
|
240
|
-
if (!input) {
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
input.dispatchEvent(new (getWindow(input)).PointerEvent("click", {
|
|
244
|
-
bubbles: true,
|
|
245
|
-
shiftKey: event.shiftKey,
|
|
246
|
-
ctrlKey: event.ctrlKey,
|
|
247
|
-
altKey: event.altKey,
|
|
248
|
-
metaKey: event.metaKey
|
|
249
|
-
}));
|
|
250
|
-
},
|
|
251
|
-
onFocus(event) {
|
|
252
|
-
if (event.defaultPrevented || disabled || readOnly || !touched) {
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
inputRef.current?.click();
|
|
256
|
-
setTouched(false);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
const {
|
|
260
|
-
getButtonProps,
|
|
261
|
-
buttonRef
|
|
262
|
-
} = useButton({
|
|
263
|
-
disabled,
|
|
264
|
-
native: nativeButton
|
|
265
|
-
});
|
|
266
|
-
const inputProps = {
|
|
267
|
-
type: "radio",
|
|
268
|
-
ref: mergedInputRef,
|
|
269
|
-
form,
|
|
270
|
-
id: hiddenInputId,
|
|
271
|
-
name,
|
|
272
|
-
tabIndex: -1,
|
|
273
|
-
style: name ? visuallyHiddenInput : visuallyHidden,
|
|
274
|
-
"aria-hidden": true,
|
|
275
|
-
...value !== undefined ? {
|
|
276
|
-
value: serializeValue(value)
|
|
277
|
-
} : EMPTY_OBJECT,
|
|
278
|
-
disabled,
|
|
279
|
-
checked,
|
|
280
|
-
required,
|
|
281
|
-
readOnly,
|
|
282
|
-
onChange(event) {
|
|
283
|
-
if (event.nativeEvent.defaultPrevented) {
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
if (disabled || readOnly || value === undefined) {
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
const details = createChangeEventDetails(exports_reason_parts.none, event.nativeEvent);
|
|
290
|
-
if (details.isCanceled) {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
setFieldTouched(true);
|
|
294
|
-
setDirty(value !== validityData.initialValue);
|
|
295
|
-
setFilled(true);
|
|
296
|
-
setCheckedValue(value, details);
|
|
297
|
-
},
|
|
298
|
-
onFocus() {
|
|
299
|
-
radioRef.current?.focus();
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
const state = React2.useMemo(() => ({
|
|
303
|
-
...fieldState,
|
|
304
|
-
required,
|
|
305
|
-
disabled,
|
|
306
|
-
readOnly,
|
|
307
|
-
checked
|
|
308
|
-
}), [fieldState, disabled, readOnly, checked, required]);
|
|
309
|
-
const contextValue = state;
|
|
310
|
-
const isRadioGroup = groupContext !== undefined;
|
|
311
|
-
const refs = [forwardedRef, radioRef, buttonRef, handleControlRef];
|
|
312
|
-
const props = [rootProps, getDescriptionProps, validation?.getValidationProps ?? EMPTY_OBJECT, elementProps, getButtonProps];
|
|
313
|
-
const element = useRenderElement("span", componentProps, {
|
|
314
|
-
enabled: !isRadioGroup,
|
|
315
|
-
state,
|
|
316
|
-
ref: refs,
|
|
317
|
-
props,
|
|
318
|
-
stateAttributesMapping
|
|
319
|
-
});
|
|
320
|
-
return /* @__PURE__ */ _jsxs(RadioRootContext.Provider, {
|
|
321
|
-
value: contextValue,
|
|
322
|
-
children: [isRadioGroup ? /* @__PURE__ */ _jsx(CompositeItem, {
|
|
323
|
-
tag: "span",
|
|
324
|
-
render,
|
|
325
|
-
className,
|
|
326
|
-
style,
|
|
327
|
-
state,
|
|
328
|
-
refs,
|
|
329
|
-
props,
|
|
330
|
-
stateAttributesMapping
|
|
331
|
-
}) : element, /* @__PURE__ */ _jsx("input", {
|
|
332
|
-
...inputProps,
|
|
333
|
-
suppressHydrationWarning: true
|
|
334
|
-
})]
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
if (true)
|
|
338
|
-
RadioRoot.displayName = "RadioRoot";
|
|
339
|
-
// node_modules/@base-ui/react/esm/radio/indicator/RadioIndicator.js
|
|
340
|
-
import * as React3 from "react";
|
|
341
|
-
"use client";
|
|
342
|
-
var RadioIndicator = /* @__PURE__ */ React3.forwardRef(function RadioIndicator2(componentProps, forwardedRef) {
|
|
343
|
-
const {
|
|
344
|
-
render,
|
|
345
|
-
className,
|
|
346
|
-
style,
|
|
347
|
-
keepMounted = false,
|
|
348
|
-
...elementProps
|
|
349
|
-
} = componentProps;
|
|
350
|
-
const rootState = useRadioRootContext();
|
|
351
|
-
const rendered = rootState.checked;
|
|
352
|
-
const {
|
|
353
|
-
mounted,
|
|
354
|
-
transitionStatus,
|
|
355
|
-
setMounted
|
|
356
|
-
} = useTransitionStatus(rendered);
|
|
357
|
-
const state = {
|
|
358
|
-
...rootState,
|
|
359
|
-
transitionStatus
|
|
360
|
-
};
|
|
361
|
-
const indicatorRef = React3.useRef(null);
|
|
362
|
-
const shouldRender = keepMounted || mounted;
|
|
363
|
-
const element = useRenderElement("span", componentProps, {
|
|
364
|
-
ref: [forwardedRef, indicatorRef],
|
|
365
|
-
state,
|
|
366
|
-
props: elementProps,
|
|
367
|
-
stateAttributesMapping
|
|
368
|
-
});
|
|
369
|
-
useOpenChangeComplete({
|
|
370
|
-
open: rendered,
|
|
371
|
-
ref: indicatorRef,
|
|
372
|
-
onComplete() {
|
|
373
|
-
if (!rendered) {
|
|
374
|
-
setMounted(false);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
if (!shouldRender) {
|
|
379
|
-
return null;
|
|
380
|
-
}
|
|
381
|
-
return element;
|
|
382
|
-
});
|
|
383
|
-
if (true)
|
|
384
|
-
RadioIndicator.displayName = "RadioIndicator";
|
|
385
|
-
export {
|
|
386
|
-
exports_index_parts as Radio
|
|
387
|
-
};
|
|
@@ -1,241 +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
|
-
export type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
|
|
7
|
-
ref?: React$1.Ref<T> | undefined;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* 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.
|
|
11
|
-
*
|
|
12
|
-
* @template Props Props to be spread on the rendered element.
|
|
13
|
-
* @template State Component's internal state.
|
|
14
|
-
*/
|
|
15
|
-
export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React$1.ReactElement<unknown>;
|
|
16
|
-
export type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
|
|
17
|
-
preventBaseUIHandler: () => void;
|
|
18
|
-
readonly baseUIHandlerPrevented?: boolean | undefined;
|
|
19
|
-
};
|
|
20
|
-
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;
|
|
21
|
-
/**
|
|
22
|
-
* Adds a `preventBaseUIHandler` method to all event handlers.
|
|
23
|
-
*/
|
|
24
|
-
export type WithBaseUIEvent<T> = {
|
|
25
|
-
[K in keyof T]: WithPreventBaseUIHandler<T[K]>;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Props shared by all Base UI components.
|
|
29
|
-
* Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
|
|
30
|
-
*/
|
|
31
|
-
export type BaseUIComponentProps<ElementType extends React$1.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React$1.ComponentPropsWithRef<ElementType>>, "className" | "color" | "defaultValue" | "defaultChecked" | "style"> & {
|
|
32
|
-
/**
|
|
33
|
-
* CSS class applied to the element, or a function that
|
|
34
|
-
* returns a class based on the component's state.
|
|
35
|
-
*/
|
|
36
|
-
className?: string | ((state: State) => string | undefined) | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Allows you to replace the component's HTML element
|
|
39
|
-
* with a different tag, or compose it with another component.
|
|
40
|
-
*
|
|
41
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
42
|
-
*/
|
|
43
|
-
render?: React$1.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Style applied to the element, or a function that
|
|
46
|
-
* returns a style object based on the component's state.
|
|
47
|
-
*/
|
|
48
|
-
style?: React$1.CSSProperties | ((state: State) => React$1.CSSProperties | undefined) | undefined;
|
|
49
|
-
};
|
|
50
|
-
declare const DEFAULT_COORDS: {
|
|
51
|
-
x: number;
|
|
52
|
-
y: number;
|
|
53
|
-
};
|
|
54
|
-
declare const DEFAULT_SIZE: {
|
|
55
|
-
width: number;
|
|
56
|
-
height: number;
|
|
57
|
-
};
|
|
58
|
-
declare const DEFAULT_OVERFLOW_EDGES: {
|
|
59
|
-
xStart: boolean;
|
|
60
|
-
xEnd: boolean;
|
|
61
|
-
yStart: boolean;
|
|
62
|
-
yEnd: boolean;
|
|
63
|
-
};
|
|
64
|
-
declare const DEFAULT_HIDDEN_STATE: {
|
|
65
|
-
x: boolean;
|
|
66
|
-
y: boolean;
|
|
67
|
-
corner: boolean;
|
|
68
|
-
};
|
|
69
|
-
export type HiddenState = typeof DEFAULT_HIDDEN_STATE;
|
|
70
|
-
export type OverflowEdges = typeof DEFAULT_OVERFLOW_EDGES;
|
|
71
|
-
export type Size = typeof DEFAULT_SIZE;
|
|
72
|
-
export type Coords = typeof DEFAULT_COORDS;
|
|
73
|
-
/**
|
|
74
|
-
* Groups all parts of the scroll area.
|
|
75
|
-
* Renders a `<div>` element.
|
|
76
|
-
*
|
|
77
|
-
* Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area)
|
|
78
|
-
*/
|
|
79
|
-
export declare const ScrollAreaRoot: React$1.ForwardRefExoticComponent<Omit<ScrollAreaRootProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
80
|
-
export interface ScrollAreaRootState {
|
|
81
|
-
/**
|
|
82
|
-
* Whether the scroll area is being scrolled.
|
|
83
|
-
*/
|
|
84
|
-
scrolling: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Whether horizontal overflow is present.
|
|
87
|
-
*/
|
|
88
|
-
hasOverflowX: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Whether vertical overflow is present.
|
|
91
|
-
*/
|
|
92
|
-
hasOverflowY: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Whether there is overflow on the inline start side for the horizontal axis.
|
|
95
|
-
*/
|
|
96
|
-
overflowXStart: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Whether there is overflow on the inline end side for the horizontal axis.
|
|
99
|
-
*/
|
|
100
|
-
overflowXEnd: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Whether there is overflow on the block start side.
|
|
103
|
-
*/
|
|
104
|
-
overflowYStart: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Whether there is overflow on the block end side.
|
|
107
|
-
*/
|
|
108
|
-
overflowYEnd: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Whether the scrollbar corner is hidden.
|
|
111
|
-
*/
|
|
112
|
-
cornerHidden: boolean;
|
|
113
|
-
}
|
|
114
|
-
export interface ScrollAreaRootProps extends BaseUIComponentProps<"div", ScrollAreaRootState> {
|
|
115
|
-
/**
|
|
116
|
-
* The threshold in pixels that must be passed before the overflow edge attributes are applied.
|
|
117
|
-
* Accepts a single number for all edges or an object to configure them individually.
|
|
118
|
-
* @default 0
|
|
119
|
-
*/
|
|
120
|
-
overflowEdgeThreshold?: number | Partial<{
|
|
121
|
-
xStart: number;
|
|
122
|
-
xEnd: number;
|
|
123
|
-
yStart: number;
|
|
124
|
-
yEnd: number;
|
|
125
|
-
}> | undefined;
|
|
126
|
-
}
|
|
127
|
-
export declare namespace ScrollAreaRoot {
|
|
128
|
-
type State = ScrollAreaRootState;
|
|
129
|
-
type Props = ScrollAreaRootProps;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* The actual scrollable container of the scroll area.
|
|
133
|
-
* Renders a `<div>` element.
|
|
134
|
-
*
|
|
135
|
-
* Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area)
|
|
136
|
-
*/
|
|
137
|
-
export declare const ScrollAreaViewport: React$1.ForwardRefExoticComponent<Omit<ScrollAreaViewportProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
138
|
-
export interface ScrollAreaViewportProps extends BaseUIComponentProps<"div", ScrollAreaViewportState> {
|
|
139
|
-
}
|
|
140
|
-
export interface ScrollAreaViewportState extends ScrollAreaRootState {
|
|
141
|
-
}
|
|
142
|
-
export declare namespace ScrollAreaViewport {
|
|
143
|
-
type Props = ScrollAreaViewportProps;
|
|
144
|
-
type State = ScrollAreaViewportState;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* A vertical or horizontal scrollbar for the scroll area.
|
|
148
|
-
* Renders a `<div>` element.
|
|
149
|
-
*
|
|
150
|
-
* Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area)
|
|
151
|
-
*/
|
|
152
|
-
export declare const ScrollAreaScrollbar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaScrollbarProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
153
|
-
export interface ScrollAreaScrollbarState extends ScrollAreaRootState {
|
|
154
|
-
/**
|
|
155
|
-
* Whether the scroll area is being hovered.
|
|
156
|
-
*/
|
|
157
|
-
hovering: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Whether the scroll area is being scrolled.
|
|
160
|
-
*/
|
|
161
|
-
scrolling: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* The orientation of the scrollbar.
|
|
164
|
-
*/
|
|
165
|
-
orientation: "vertical" | "horizontal";
|
|
166
|
-
}
|
|
167
|
-
export interface ScrollAreaScrollbarProps extends BaseUIComponentProps<"div", ScrollAreaScrollbarState> {
|
|
168
|
-
/**
|
|
169
|
-
* Whether the scrollbar controls vertical or horizontal scroll.
|
|
170
|
-
* @default 'vertical'
|
|
171
|
-
*/
|
|
172
|
-
orientation?: "vertical" | "horizontal" | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* Whether to keep the HTML element in the DOM when the viewport isn't scrollable.
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
keepMounted?: boolean | undefined;
|
|
178
|
-
}
|
|
179
|
-
export declare namespace ScrollAreaScrollbar {
|
|
180
|
-
type State = ScrollAreaScrollbarState;
|
|
181
|
-
type Props = ScrollAreaScrollbarProps;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* A container for the content of the scroll area.
|
|
185
|
-
* Renders a `<div>` element.
|
|
186
|
-
*
|
|
187
|
-
* Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area)
|
|
188
|
-
*/
|
|
189
|
-
export declare const ScrollAreaContent: React$1.ForwardRefExoticComponent<Omit<ScrollAreaContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
190
|
-
export interface ScrollAreaContentState extends ScrollAreaRootState {
|
|
191
|
-
}
|
|
192
|
-
export interface ScrollAreaContentProps extends BaseUIComponentProps<"div", ScrollAreaContentState> {
|
|
193
|
-
}
|
|
194
|
-
export declare namespace ScrollAreaContent {
|
|
195
|
-
type State = ScrollAreaContentState;
|
|
196
|
-
type Props = ScrollAreaContentProps;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* The draggable part of the scrollbar that indicates the current scroll position.
|
|
200
|
-
* Renders a `<div>` element.
|
|
201
|
-
*
|
|
202
|
-
* Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area)
|
|
203
|
-
*/
|
|
204
|
-
export declare const ScrollAreaThumb: React$1.ForwardRefExoticComponent<Omit<ScrollAreaThumbProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
205
|
-
export interface ScrollAreaThumbState {
|
|
206
|
-
/**
|
|
207
|
-
* The component orientation.
|
|
208
|
-
*/
|
|
209
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
210
|
-
}
|
|
211
|
-
export interface ScrollAreaThumbProps extends BaseUIComponentProps<"div", ScrollAreaThumbState> {
|
|
212
|
-
}
|
|
213
|
-
export declare namespace ScrollAreaThumb {
|
|
214
|
-
type State = ScrollAreaThumbState;
|
|
215
|
-
type Props = ScrollAreaThumbProps;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.
|
|
219
|
-
* Renders a `<div>` element.
|
|
220
|
-
*
|
|
221
|
-
* Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area)
|
|
222
|
-
*/
|
|
223
|
-
export declare const ScrollAreaCorner: React$1.ForwardRefExoticComponent<Omit<ScrollAreaCornerProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
224
|
-
export interface ScrollAreaCornerState {
|
|
225
|
-
}
|
|
226
|
-
export interface ScrollAreaCornerProps extends BaseUIComponentProps<"div", ScrollAreaCornerState> {
|
|
227
|
-
}
|
|
228
|
-
export declare namespace ScrollAreaCorner {
|
|
229
|
-
type State = ScrollAreaCornerState;
|
|
230
|
-
type Props = ScrollAreaCornerProps;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
declare namespace ScrollArea {
|
|
234
|
-
export { ScrollAreaContent as Content, ScrollAreaCorner as Corner, ScrollAreaRoot as Root, ScrollAreaScrollbar as Scrollbar, ScrollAreaThumb as Thumb, ScrollAreaViewport as Viewport };
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export {
|
|
238
|
-
ScrollArea,
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
export {};
|