@atom63/ui-react 0.2.0-beta.13 → 0.2.0-beta.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.
- package/dist/atom63-theme.js +4 -0
- package/dist/atom63-theme.js.map +1 -0
- package/dist/chunk-2GKXGY2X.js +61 -0
- package/dist/chunk-2GKXGY2X.js.map +1 -0
- package/dist/chunk-2QUN4K6Z.js +3 -0
- package/dist/chunk-2QUN4K6Z.js.map +1 -0
- package/dist/chunk-2Z2DZLD7.js +89 -0
- package/dist/chunk-2Z2DZLD7.js.map +1 -0
- package/dist/chunk-34JIIXPP.js +18 -0
- package/dist/chunk-34JIIXPP.js.map +1 -0
- package/dist/chunk-3J2LUXAG.js +3 -0
- package/dist/chunk-3J2LUXAG.js.map +1 -0
- package/dist/chunk-3R74FOXV.js +206 -0
- package/dist/chunk-3R74FOXV.js.map +1 -0
- package/dist/chunk-5CH3VMGZ.js +190 -0
- package/dist/chunk-5CH3VMGZ.js.map +1 -0
- package/dist/chunk-5GU3MTAL.js +54 -0
- package/dist/chunk-5GU3MTAL.js.map +1 -0
- package/dist/chunk-63D5JSVT.js +33 -0
- package/dist/chunk-63D5JSVT.js.map +1 -0
- package/dist/chunk-6EFUKXXN.js +85 -0
- package/dist/chunk-6EFUKXXN.js.map +1 -0
- package/dist/chunk-6RAWJDPH.js +61 -0
- package/dist/chunk-6RAWJDPH.js.map +1 -0
- package/dist/chunk-6XJCNBGH.js +128 -0
- package/dist/chunk-6XJCNBGH.js.map +1 -0
- package/dist/chunk-6YFKZ5CD.js +74 -0
- package/dist/chunk-6YFKZ5CD.js.map +1 -0
- package/dist/chunk-7JOL7SOV.js +49 -0
- package/dist/chunk-7JOL7SOV.js.map +1 -0
- package/dist/chunk-7QY24D5A.js +26 -0
- package/dist/chunk-7QY24D5A.js.map +1 -0
- package/dist/chunk-ADZSCK32.js +110 -0
- package/dist/chunk-ADZSCK32.js.map +1 -0
- package/dist/chunk-AOX2S6EH.js +352 -0
- package/dist/chunk-AOX2S6EH.js.map +1 -0
- package/dist/chunk-ASV4A4YB.js +150 -0
- package/dist/chunk-ASV4A4YB.js.map +1 -0
- package/dist/chunk-ATSXKARJ.js +10 -0
- package/dist/chunk-ATSXKARJ.js.map +1 -0
- package/dist/chunk-B5L4F5O3.js +61 -0
- package/dist/chunk-B5L4F5O3.js.map +1 -0
- package/dist/chunk-BSDSLG3L.js +218 -0
- package/dist/chunk-BSDSLG3L.js.map +1 -0
- package/dist/chunk-C3MWASGU.js +294 -0
- package/dist/chunk-C3MWASGU.js.map +1 -0
- package/dist/chunk-CAS7T4PQ.js +3 -0
- package/dist/chunk-CAS7T4PQ.js.map +1 -0
- package/dist/chunk-CFFGYLY3.js +107 -0
- package/dist/chunk-CFFGYLY3.js.map +1 -0
- package/dist/chunk-CIWJP6G7.js +79 -0
- package/dist/chunk-CIWJP6G7.js.map +1 -0
- package/dist/chunk-CJAWGKA5.js +244 -0
- package/dist/chunk-CJAWGKA5.js.map +1 -0
- package/dist/chunk-CYWNKIIJ.js +72 -0
- package/dist/chunk-CYWNKIIJ.js.map +1 -0
- package/dist/chunk-EAWOBJ24.js +59 -0
- package/dist/chunk-EAWOBJ24.js.map +1 -0
- package/dist/chunk-F52PXIER.js +350 -0
- package/dist/chunk-F52PXIER.js.map +1 -0
- package/dist/chunk-FAOZ6X2C.js +109 -0
- package/dist/chunk-FAOZ6X2C.js.map +1 -0
- package/dist/chunk-FBMTWUHX.js +56 -0
- package/dist/chunk-FBMTWUHX.js.map +1 -0
- package/dist/chunk-FPIUWNK6.js +77 -0
- package/dist/chunk-FPIUWNK6.js.map +1 -0
- package/dist/chunk-FREL2MPS.js +110 -0
- package/dist/chunk-FREL2MPS.js.map +1 -0
- package/dist/chunk-FZ6JHXQI.js +28 -0
- package/dist/chunk-FZ6JHXQI.js.map +1 -0
- package/dist/chunk-G3BUS74T.js +165 -0
- package/dist/chunk-G3BUS74T.js.map +1 -0
- package/dist/chunk-GAGAOFX3.js +70 -0
- package/dist/chunk-GAGAOFX3.js.map +1 -0
- package/dist/chunk-GRRWPMZI.js +64 -0
- package/dist/chunk-GRRWPMZI.js.map +1 -0
- package/dist/chunk-GZPV4T4I.js +16 -0
- package/dist/chunk-GZPV4T4I.js.map +1 -0
- package/dist/chunk-H2N3XFKG.js +20 -0
- package/dist/chunk-H2N3XFKG.js.map +1 -0
- package/dist/chunk-H5QTJ3FJ.js +59 -0
- package/dist/chunk-H5QTJ3FJ.js.map +1 -0
- package/dist/chunk-H7JEKEVY.js +107 -0
- package/dist/chunk-H7JEKEVY.js.map +1 -0
- package/dist/chunk-HSOEBAWM.js +65 -0
- package/dist/chunk-HSOEBAWM.js.map +1 -0
- package/dist/chunk-ICVKZEAA.js +40 -0
- package/dist/chunk-ICVKZEAA.js.map +1 -0
- package/dist/chunk-IHEBXCAF.js +168 -0
- package/dist/chunk-IHEBXCAF.js.map +1 -0
- package/dist/{chunk-WL27K6MO.js → chunk-IPU75YIQ.js} +2 -2
- package/dist/{chunk-WL27K6MO.js.map → chunk-IPU75YIQ.js.map} +1 -1
- package/dist/chunk-ITVGYZ7X.js +80 -0
- package/dist/chunk-ITVGYZ7X.js.map +1 -0
- package/dist/{chunk-ZEY2VU4O.js → chunk-IXWOWQBP.js} +4 -4
- package/dist/{chunk-ZEY2VU4O.js.map → chunk-IXWOWQBP.js.map} +1 -1
- package/dist/chunk-JRMKDIGF.js +79 -0
- package/dist/chunk-JRMKDIGF.js.map +1 -0
- package/dist/chunk-KC6GYHDU.js +284 -0
- package/dist/chunk-KC6GYHDU.js.map +1 -0
- package/dist/chunk-KJMIFN46.js +49 -0
- package/dist/chunk-KJMIFN46.js.map +1 -0
- package/dist/chunk-KQ7W3CBS.js +3 -0
- package/dist/chunk-KQ7W3CBS.js.map +1 -0
- package/dist/chunk-KX5E5UUZ.js +104 -0
- package/dist/chunk-KX5E5UUZ.js.map +1 -0
- package/dist/chunk-L5KFLZUC.js +624 -0
- package/dist/chunk-L5KFLZUC.js.map +1 -0
- package/dist/chunk-LKERWO2G.js +202 -0
- package/dist/chunk-LKERWO2G.js.map +1 -0
- package/dist/chunk-MOWXMXSH.js +163 -0
- package/dist/chunk-MOWXMXSH.js.map +1 -0
- package/dist/chunk-MRDIIUUY.js +181 -0
- package/dist/chunk-MRDIIUUY.js.map +1 -0
- package/dist/chunk-MVWCM6A5.js +196 -0
- package/dist/chunk-MVWCM6A5.js.map +1 -0
- package/dist/chunk-NBBMTH3K.js +43 -0
- package/dist/chunk-NBBMTH3K.js.map +1 -0
- package/dist/chunk-OZPC5YOP.js +17 -0
- package/dist/chunk-OZPC5YOP.js.map +1 -0
- package/dist/chunk-PAWFTQV6.js +178 -0
- package/dist/chunk-PAWFTQV6.js.map +1 -0
- package/dist/chunk-Q2BXME6U.js +75 -0
- package/dist/chunk-Q2BXME6U.js.map +1 -0
- package/dist/chunk-QCNBLY6M.js +239 -0
- package/dist/chunk-QCNBLY6M.js.map +1 -0
- package/dist/chunk-QIDU2WXD.js +105 -0
- package/dist/chunk-QIDU2WXD.js.map +1 -0
- package/dist/chunk-R2CNNKB3.js +70 -0
- package/dist/chunk-R2CNNKB3.js.map +1 -0
- package/dist/chunk-R35FHBSP.js +29 -0
- package/dist/chunk-R35FHBSP.js.map +1 -0
- package/dist/chunk-RDIGEW6P.js +18 -0
- package/dist/chunk-RDIGEW6P.js.map +1 -0
- package/dist/chunk-RI5ZROIJ.js +70 -0
- package/dist/chunk-RI5ZROIJ.js.map +1 -0
- package/dist/chunk-T7FUZUZO.js +70 -0
- package/dist/chunk-T7FUZUZO.js.map +1 -0
- package/dist/chunk-TAXYD4I4.js +208 -0
- package/dist/chunk-TAXYD4I4.js.map +1 -0
- package/dist/chunk-TBB22HVY.js +53 -0
- package/dist/chunk-TBB22HVY.js.map +1 -0
- package/dist/chunk-V4MKJPJ3.js +31 -0
- package/dist/chunk-V4MKJPJ3.js.map +1 -0
- package/dist/chunk-VNBJK2HH.js +86 -0
- package/dist/chunk-VNBJK2HH.js.map +1 -0
- package/dist/chunk-WHUL6ADM.js +39 -0
- package/dist/chunk-WHUL6ADM.js.map +1 -0
- package/dist/{chunk-UPPHQLZ2.js → chunk-WKORZULQ.js} +2 -2
- package/dist/{chunk-UPPHQLZ2.js.map → chunk-WKORZULQ.js.map} +1 -1
- package/dist/chunk-WLLPGOQ7.js +106 -0
- package/dist/chunk-WLLPGOQ7.js.map +1 -0
- package/dist/chunk-WVMYVQE2.js +72 -0
- package/dist/chunk-WVMYVQE2.js.map +1 -0
- package/dist/chunk-XEXDR2WZ.js +193 -0
- package/dist/chunk-XEXDR2WZ.js.map +1 -0
- package/dist/chunk-XHSP2SJ2.js +120 -0
- package/dist/chunk-XHSP2SJ2.js.map +1 -0
- package/dist/chunk-XLSK66GO.js +236 -0
- package/dist/chunk-XLSK66GO.js.map +1 -0
- package/dist/chunk-XUMQEMB3.js +46 -0
- package/dist/chunk-XUMQEMB3.js.map +1 -0
- package/dist/chunk-XUOJLQ75.js +174 -0
- package/dist/chunk-XUOJLQ75.js.map +1 -0
- package/dist/chunk-XZN2LZUC.js +67 -0
- package/dist/chunk-XZN2LZUC.js.map +1 -0
- package/dist/chunk-Y6WVSEIC.js +56 -0
- package/dist/chunk-Y6WVSEIC.js.map +1 -0
- package/dist/chunk-YB2OXQAI.js +43 -0
- package/dist/chunk-YB2OXQAI.js.map +1 -0
- package/dist/chunk-YCG7YMV7.js +48 -0
- package/dist/chunk-YCG7YMV7.js.map +1 -0
- package/dist/chunk-ZSP4XLPE.js +268 -0
- package/dist/chunk-ZSP4XLPE.js.map +1 -0
- package/dist/components/accordion/index.js +4 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/alert/index.js +4 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/alert-dialog/index.js +6 -0
- package/dist/components/alert-dialog/index.js.map +1 -0
- package/dist/components/amount/index.js +4 -0
- package/dist/components/amount/index.js.map +1 -0
- package/dist/components/animated-check/index.js +4 -0
- package/dist/components/animated-check/index.js.map +1 -0
- package/dist/components/autocomplete/index.js +6 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/index.js +4 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.js +4 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/index.js +4 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/index.js +4 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/card/index.js +4 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/carousel/index.js +4 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/chat-composer/index.js +7 -0
- package/dist/components/chat-composer/index.js.map +1 -0
- package/dist/components/chat-message/index.js +5 -0
- package/dist/components/chat-message/index.js.map +1 -0
- package/dist/components/chat-steps/index.js +6 -0
- package/dist/components/chat-steps/index.js.map +1 -0
- package/dist/components/chat-typing-indicator/index.js +5 -0
- package/dist/components/chat-typing-indicator/index.js.map +1 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/collapsible/index.js +4 -0
- package/dist/components/collapsible/index.js.map +1 -0
- package/dist/components/command/index.js +6 -0
- package/dist/components/command/index.js.map +1 -0
- package/dist/components/connected-panel/index.js +5 -0
- package/dist/components/connected-panel/index.js.map +1 -0
- package/dist/components/context-menu/index.js +5 -0
- package/dist/components/context-menu/index.js.map +1 -0
- package/dist/components/copy-button/index.js +6 -0
- package/dist/components/copy-button/index.js.map +1 -0
- package/dist/components/destination-link/index.js +4 -0
- package/dist/components/destination-link/index.js.map +1 -0
- package/dist/components/dialog/index.js +5 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/drawer/index.js +5 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown-menu/index.js +6 -0
- package/dist/components/dropdown-menu/index.js.map +1 -0
- package/dist/components/empty/index.js +7 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/feedback-state/index.js +6 -0
- package/dist/components/feedback-state/index.js.map +1 -0
- package/dist/components/field/index.js +7 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/form/index.js +5 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/frame/index.js +4 -0
- package/dist/components/frame/index.js.map +1 -0
- package/dist/components/hover-card/index.js +5 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input-otp/index.js +4 -0
- package/dist/components/input-otp/index.js.map +1 -0
- package/dist/components/item/index.js +5 -0
- package/dist/components/item/index.js.map +1 -0
- package/dist/components/kbd/index.js +4 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/label/index.js +4 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/load-more-trigger/index.js +4 -0
- package/dist/components/load-more-trigger/index.js.map +1 -0
- package/dist/components/marquee/index.js +5 -0
- package/dist/components/marquee/index.js.map +1 -0
- package/dist/components/menubar/index.js +6 -0
- package/dist/components/menubar/index.js.map +1 -0
- package/dist/components/message/index.js +4 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/navigation-menu/index.js +5 -0
- package/dist/components/navigation-menu/index.js.map +1 -0
- package/dist/components/pagination/index.js +5 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/panel-setting-button/index.js +5 -0
- package/dist/components/panel-setting-button/index.js.map +1 -0
- package/dist/components/popover/index.js +5 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/portal-container/index.js +3 -0
- package/dist/components/portal-container/index.js.map +1 -0
- package/dist/components/preview-card/index.js +5 -0
- package/dist/components/preview-card/index.js.map +1 -0
- package/dist/components/progress/index.js +4 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progressive-blur/index.js +4 -0
- package/dist/components/progressive-blur/index.js.map +1 -0
- package/dist/components/radio/index.js +4 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/rating/index.js +5 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/resizable/index.js +4 -0
- package/dist/components/resizable/index.js.map +1 -0
- package/dist/components/scroll-area/index.js +5 -0
- package/dist/components/scroll-area/index.js.map +1 -0
- package/dist/components/scrollable-list/index.js +8 -0
- package/dist/components/scrollable-list/index.js.map +1 -0
- package/dist/components/search-field/index.js +8 -0
- package/dist/components/search-field/index.js.map +1 -0
- package/dist/components/segmented-control/index.js +4 -0
- package/dist/components/segmented-control/index.js.map +1 -0
- package/dist/components/select/index.js +5 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/separator/index.js +4 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/sheet/index.js +8 -0
- package/dist/components/sheet/index.js.map +1 -0
- package/dist/components/sidebar/index.js +15 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/sidebar-nav-tree/index.js +18 -0
- package/dist/components/sidebar-nav-tree/index.js.map +1 -0
- package/dist/components/skeleton/index.js +4 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/index.js +4 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/spinner/index.js +4 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/switch/index.js +4 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.js +4 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.js +4 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/text-ticker/index.js +5 -0
- package/dist/components/text-ticker/index.js.map +1 -0
- package/dist/components/textarea/index.js +4 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/toaster/index.js +5 -0
- package/dist/components/toaster/index.js.map +1 -0
- package/dist/components/toggle/index.js +4 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle-group/index.js +5 -0
- package/dist/components/toggle-group/index.js.map +1 -0
- package/dist/components/tooltip/index.js +5 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/conformance/index.js +3 -0
- package/dist/conformance/index.js.map +1 -0
- package/dist/hooks/use-extract-color.js +4 -0
- package/dist/hooks/use-extract-color.js.map +1 -0
- package/dist/{index-CbgpSG4j.d.ts → index-DlcaeyJS.d.ts} +16 -193
- package/dist/index.d.ts +32 -14
- package/dist/index.js +86 -5532
- package/dist/index.js.map +1 -1
- package/dist/lib/extract-color.js +3 -0
- package/dist/lib/extract-color.js.map +1 -0
- package/dist/lib/motion.js +3 -0
- package/dist/lib/motion.js.map +1 -0
- package/dist/media/index.js +4 -4
- package/dist/media/media-lightbox/parts/index.js +3 -3
- package/dist/preview/index.d.ts +2 -2
- package/dist/preview/index.js +24 -3
- package/dist/provider.js +4 -0
- package/dist/provider.js.map +1 -0
- package/dist/theme/index.js +7 -2
- package/dist/theme/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/alert-dialog/alert-dialog.css +3 -3
- package/src/components/avatar/avatar.css +2 -2
- package/src/components/button-group/button-group.css +1 -1
- package/src/components/item/item.css +4 -4
- package/src/components/tabs/tabs.css +13 -0
- package/src/components/text-ticker/text-ticker.css +37 -4
- package/dist/chunk-IFBF2IA3.js +0 -225
- package/dist/chunk-IFBF2IA3.js.map +0 -1
- package/dist/chunk-R7IQ3IL5.js +0 -157
- package/dist/chunk-R7IQ3IL5.js.map +0 -1
- package/dist/chunk-RLF45GBS.js +0 -2846
- package/dist/chunk-RLF45GBS.js.map +0 -1
package/dist/chunk-RLF45GBS.js
DELETED
|
@@ -1,2846 +0,0 @@
|
|
|
1
|
-
import { Button, ScrollArea } from './chunk-R7IQ3IL5.js';
|
|
2
|
-
import { usePortalContainer } from './chunk-UPPHQLZ2.js';
|
|
3
|
-
import { cn } from './chunk-AJLHJRK6.js';
|
|
4
|
-
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
5
|
-
export { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
|
|
8
|
-
export { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
9
|
-
import { inputContract, avatarContract, separatorContract, buttonGroupContract, cardContract, textareaContract, progressContract, selectContract, sheetContract } from '@atom63/ui-foundation';
|
|
10
|
-
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
11
|
-
export { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
12
|
-
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
13
|
-
export { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
14
|
-
import * as React2 from 'react';
|
|
15
|
-
import { useRef, useState, useCallback, useMemo, useEffect, useLayoutEffect } from 'react';
|
|
16
|
-
import { mergeProps } from '@base-ui/react/merge-props';
|
|
17
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
18
|
-
import { Input as Input$1 } from '@base-ui/react/input';
|
|
19
|
-
export { Input as InputPrimitive } from '@base-ui/react/input';
|
|
20
|
-
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
21
|
-
export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
22
|
-
import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
|
|
23
|
-
import { ChevronDown, ChevronLeft, ChevronRight, ChevronsUpDown, ChevronUp, Check, X } from 'lucide-react';
|
|
24
|
-
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
25
|
-
export { Progress as ProgressPrimitive } from '@base-ui/react/progress';
|
|
26
|
-
import { Select as Select$1 } from '@base-ui/react/select';
|
|
27
|
-
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
28
|
-
export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
29
|
-
|
|
30
|
-
var AlertDialogCreateHandle = AlertDialog$1.createHandle;
|
|
31
|
-
var AlertDialog = AlertDialog$1.Root;
|
|
32
|
-
function AlertDialogPortal(props) {
|
|
33
|
-
const { container, ...portalProps } = props;
|
|
34
|
-
const contextPortalContainer = usePortalContainer();
|
|
35
|
-
return /* @__PURE__ */ jsx(
|
|
36
|
-
AlertDialog$1.Portal,
|
|
37
|
-
{
|
|
38
|
-
container: container ?? contextPortalContainer,
|
|
39
|
-
"data-slot": "alert-dialog-portal",
|
|
40
|
-
...portalProps
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
function AlertDialogTrigger({
|
|
45
|
-
className,
|
|
46
|
-
...props
|
|
47
|
-
}) {
|
|
48
|
-
return /* @__PURE__ */ jsx(
|
|
49
|
-
AlertDialog$1.Trigger,
|
|
50
|
-
{
|
|
51
|
-
className: cn("a63-AlertDialog-trigger", className),
|
|
52
|
-
"data-slot": "alert-dialog-trigger",
|
|
53
|
-
...props
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
function AlertDialogBackdrop({
|
|
58
|
-
className,
|
|
59
|
-
...props
|
|
60
|
-
}) {
|
|
61
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
-
AlertDialog$1.Backdrop,
|
|
63
|
-
{
|
|
64
|
-
className: cn("a63-AlertDialog-backdrop", className),
|
|
65
|
-
"data-slot": "alert-dialog-backdrop",
|
|
66
|
-
...props
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function AlertDialogViewport({
|
|
71
|
-
className,
|
|
72
|
-
...props
|
|
73
|
-
}) {
|
|
74
|
-
return /* @__PURE__ */ jsx(
|
|
75
|
-
AlertDialog$1.Viewport,
|
|
76
|
-
{
|
|
77
|
-
className: cn("a63-AlertDialog-viewport", className),
|
|
78
|
-
"data-slot": "alert-dialog-viewport",
|
|
79
|
-
...props
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
function AlertDialogPopup({
|
|
84
|
-
className,
|
|
85
|
-
bottomStickOnMobile = true,
|
|
86
|
-
portalProps,
|
|
87
|
-
size = "default",
|
|
88
|
-
variant = "default",
|
|
89
|
-
...props
|
|
90
|
-
}) {
|
|
91
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, { ...portalProps, children: [
|
|
92
|
-
/* @__PURE__ */ jsx(AlertDialogBackdrop, {}),
|
|
93
|
-
/* @__PURE__ */ jsx(AlertDialogViewport, { "data-stick-bottom": bottomStickOnMobile ? "" : void 0, children: /* @__PURE__ */ jsx(
|
|
94
|
-
AlertDialog$1.Popup,
|
|
95
|
-
{
|
|
96
|
-
"aria-modal": true,
|
|
97
|
-
className: cn("a63-AlertDialog-popup", className),
|
|
98
|
-
"data-size": size,
|
|
99
|
-
"data-slot": "alert-dialog-popup",
|
|
100
|
-
"data-stick-bottom": bottomStickOnMobile ? "" : void 0,
|
|
101
|
-
"data-variant": variant,
|
|
102
|
-
...props
|
|
103
|
-
}
|
|
104
|
-
) })
|
|
105
|
-
] });
|
|
106
|
-
}
|
|
107
|
-
function AlertDialogHeader({
|
|
108
|
-
className,
|
|
109
|
-
...props
|
|
110
|
-
}) {
|
|
111
|
-
return /* @__PURE__ */ jsx(
|
|
112
|
-
"div",
|
|
113
|
-
{
|
|
114
|
-
className: cn("a63-AlertDialog-header", className),
|
|
115
|
-
"data-slot": "alert-dialog-header",
|
|
116
|
-
...props
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
function AlertDialogFooter({
|
|
121
|
-
className,
|
|
122
|
-
variant = "default",
|
|
123
|
-
...props
|
|
124
|
-
}) {
|
|
125
|
-
return /* @__PURE__ */ jsx(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
className: cn("a63-AlertDialog-footer", className),
|
|
129
|
-
"data-slot": "alert-dialog-footer",
|
|
130
|
-
"data-variant": variant,
|
|
131
|
-
...props
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
function AlertDialogMedia({
|
|
136
|
-
className,
|
|
137
|
-
...props
|
|
138
|
-
}) {
|
|
139
|
-
return /* @__PURE__ */ jsx(
|
|
140
|
-
"div",
|
|
141
|
-
{
|
|
142
|
-
className: cn("a63-AlertDialog-media", className),
|
|
143
|
-
"data-slot": "alert-dialog-media",
|
|
144
|
-
...props
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
function AlertDialogTitle({
|
|
149
|
-
className,
|
|
150
|
-
...props
|
|
151
|
-
}) {
|
|
152
|
-
return /* @__PURE__ */ jsx(
|
|
153
|
-
AlertDialog$1.Title,
|
|
154
|
-
{
|
|
155
|
-
className: cn("a63-AlertDialog-title", className),
|
|
156
|
-
"data-slot": "alert-dialog-title",
|
|
157
|
-
...props
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
function AlertDialogDescription({
|
|
162
|
-
className,
|
|
163
|
-
...props
|
|
164
|
-
}) {
|
|
165
|
-
return /* @__PURE__ */ jsx(
|
|
166
|
-
AlertDialog$1.Description,
|
|
167
|
-
{
|
|
168
|
-
className: cn("a63-AlertDialog-description", className),
|
|
169
|
-
"data-slot": "alert-dialog-description",
|
|
170
|
-
...props
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
function AlertDialogClose(props) {
|
|
175
|
-
return /* @__PURE__ */ jsx(AlertDialog$1.Close, { "data-slot": "alert-dialog-close", ...props });
|
|
176
|
-
}
|
|
177
|
-
function AlertDialogAction({
|
|
178
|
-
className,
|
|
179
|
-
variant = "default",
|
|
180
|
-
size = "md",
|
|
181
|
-
...props
|
|
182
|
-
}) {
|
|
183
|
-
return /* @__PURE__ */ jsx(
|
|
184
|
-
AlertDialog$1.Close,
|
|
185
|
-
{
|
|
186
|
-
className: cn(className),
|
|
187
|
-
"data-slot": "alert-dialog-action",
|
|
188
|
-
render: /* @__PURE__ */ jsx(Button, { size, variant }),
|
|
189
|
-
...props
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
function AlertDialogCancel({
|
|
194
|
-
className,
|
|
195
|
-
variant = "ghost",
|
|
196
|
-
size = "md",
|
|
197
|
-
...props
|
|
198
|
-
}) {
|
|
199
|
-
return /* @__PURE__ */ jsx(
|
|
200
|
-
AlertDialog$1.Close,
|
|
201
|
-
{
|
|
202
|
-
className: cn(className),
|
|
203
|
-
"data-slot": "alert-dialog-cancel",
|
|
204
|
-
render: /* @__PURE__ */ jsx(Button, { size, variant }),
|
|
205
|
-
...props
|
|
206
|
-
}
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
var Autocomplete = Autocomplete$1.Root;
|
|
210
|
-
function ChevronsUpDownIcon() {
|
|
211
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
212
|
-
"path",
|
|
213
|
-
{
|
|
214
|
-
d: "M5 6.5 8 3.5 11 6.5M5 9.5l3 3 3-3",
|
|
215
|
-
stroke: "currentColor",
|
|
216
|
-
strokeLinecap: "round",
|
|
217
|
-
strokeLinejoin: "round",
|
|
218
|
-
strokeWidth: "1.5"
|
|
219
|
-
}
|
|
220
|
-
) });
|
|
221
|
-
}
|
|
222
|
-
function CloseIcon() {
|
|
223
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
224
|
-
"path",
|
|
225
|
-
{
|
|
226
|
-
d: "m4 4 8 8M12 4l-8 8",
|
|
227
|
-
stroke: "currentColor",
|
|
228
|
-
strokeLinecap: "round",
|
|
229
|
-
strokeLinejoin: "round",
|
|
230
|
-
strokeWidth: "1.5"
|
|
231
|
-
}
|
|
232
|
-
) });
|
|
233
|
-
}
|
|
234
|
-
function AutocompleteInput({
|
|
235
|
-
"aria-invalid": ariaInvalid,
|
|
236
|
-
className,
|
|
237
|
-
clearProps,
|
|
238
|
-
invalid = false,
|
|
239
|
-
showClear = false,
|
|
240
|
-
showTrigger = false,
|
|
241
|
-
size,
|
|
242
|
-
startAddon,
|
|
243
|
-
triggerProps,
|
|
244
|
-
...props
|
|
245
|
-
}) {
|
|
246
|
-
const sizeValue = size ?? "default";
|
|
247
|
-
const dataSize = typeof sizeValue === "number" ? void 0 : sizeValue;
|
|
248
|
-
const nativeSize = typeof sizeValue === "number" ? sizeValue : void 0;
|
|
249
|
-
const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
|
|
250
|
-
const invalidProps = isInvalid ? { "data-invalid": "" } : null;
|
|
251
|
-
return /* @__PURE__ */ jsxs(
|
|
252
|
-
Autocomplete$1.InputGroup,
|
|
253
|
-
{
|
|
254
|
-
className: "a63-Autocomplete-input-group",
|
|
255
|
-
"data-size": dataSize,
|
|
256
|
-
"data-slot": "autocomplete-input-group",
|
|
257
|
-
...invalidProps,
|
|
258
|
-
children: [
|
|
259
|
-
startAddon ? /* @__PURE__ */ jsx(
|
|
260
|
-
"div",
|
|
261
|
-
{
|
|
262
|
-
"aria-hidden": "true",
|
|
263
|
-
className: "a63-Autocomplete-start-addon",
|
|
264
|
-
"data-slot": "autocomplete-start-addon",
|
|
265
|
-
children: startAddon
|
|
266
|
-
}
|
|
267
|
-
) : null,
|
|
268
|
-
/* @__PURE__ */ jsx(
|
|
269
|
-
Autocomplete$1.Input,
|
|
270
|
-
{
|
|
271
|
-
"aria-invalid": isInvalid ? true : ariaInvalid,
|
|
272
|
-
className: cn("a63-Autocomplete-input", className),
|
|
273
|
-
"data-has-start-addon": startAddon ? "" : void 0,
|
|
274
|
-
"data-slot": "autocomplete-input",
|
|
275
|
-
size: nativeSize,
|
|
276
|
-
...invalidProps,
|
|
277
|
-
...props
|
|
278
|
-
}
|
|
279
|
-
),
|
|
280
|
-
showTrigger ? /* @__PURE__ */ jsx(
|
|
281
|
-
AutocompleteTrigger,
|
|
282
|
-
{
|
|
283
|
-
"aria-label": "Show suggestions",
|
|
284
|
-
className: cn("a63-Autocomplete-adornment", triggerProps?.className),
|
|
285
|
-
...triggerProps,
|
|
286
|
-
children: /* @__PURE__ */ jsx(Autocomplete$1.Icon, { "data-slot": "autocomplete-icon", children: /* @__PURE__ */ jsx(ChevronsUpDownIcon, {}) })
|
|
287
|
-
}
|
|
288
|
-
) : null,
|
|
289
|
-
showClear ? /* @__PURE__ */ jsx(
|
|
290
|
-
AutocompleteClear,
|
|
291
|
-
{
|
|
292
|
-
"aria-label": "Clear",
|
|
293
|
-
className: cn("a63-Autocomplete-adornment", clearProps?.className),
|
|
294
|
-
...clearProps,
|
|
295
|
-
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
296
|
-
}
|
|
297
|
-
) : null
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
function AutocompletePopup({
|
|
303
|
-
align = "start",
|
|
304
|
-
alignOffset,
|
|
305
|
-
anchor,
|
|
306
|
-
children,
|
|
307
|
-
className,
|
|
308
|
-
portalProps,
|
|
309
|
-
side = "bottom",
|
|
310
|
-
sideOffset = 4,
|
|
311
|
-
...props
|
|
312
|
-
}) {
|
|
313
|
-
const contextPortalContainer = usePortalContainer();
|
|
314
|
-
return /* @__PURE__ */ jsx(
|
|
315
|
-
Autocomplete$1.Portal,
|
|
316
|
-
{
|
|
317
|
-
...portalProps,
|
|
318
|
-
container: portalProps?.container ?? contextPortalContainer,
|
|
319
|
-
children: /* @__PURE__ */ jsx(
|
|
320
|
-
Autocomplete$1.Positioner,
|
|
321
|
-
{
|
|
322
|
-
align,
|
|
323
|
-
alignOffset,
|
|
324
|
-
anchor,
|
|
325
|
-
className: "a63-Autocomplete-positioner",
|
|
326
|
-
"data-slot": "autocomplete-positioner",
|
|
327
|
-
side,
|
|
328
|
-
sideOffset,
|
|
329
|
-
children: /* @__PURE__ */ jsx("span", { className: "a63-Autocomplete-surface a63-Menu-popup", children: /* @__PURE__ */ jsx(
|
|
330
|
-
Autocomplete$1.Popup,
|
|
331
|
-
{
|
|
332
|
-
className: cn("a63-Autocomplete-popup", className),
|
|
333
|
-
"data-slot": "autocomplete-popup",
|
|
334
|
-
...props,
|
|
335
|
-
children
|
|
336
|
-
}
|
|
337
|
-
) })
|
|
338
|
-
}
|
|
339
|
-
)
|
|
340
|
-
}
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
function AutocompleteItem({
|
|
344
|
-
children,
|
|
345
|
-
className,
|
|
346
|
-
...props
|
|
347
|
-
}) {
|
|
348
|
-
return /* @__PURE__ */ jsx(
|
|
349
|
-
Autocomplete$1.Item,
|
|
350
|
-
{
|
|
351
|
-
className: cn("a63-Menu-item", "a63-Autocomplete-item", className),
|
|
352
|
-
"data-slot": "autocomplete-item",
|
|
353
|
-
...props,
|
|
354
|
-
children
|
|
355
|
-
}
|
|
356
|
-
);
|
|
357
|
-
}
|
|
358
|
-
function AutocompleteSeparator({
|
|
359
|
-
className,
|
|
360
|
-
...props
|
|
361
|
-
}) {
|
|
362
|
-
return /* @__PURE__ */ jsx(
|
|
363
|
-
Autocomplete$1.Separator,
|
|
364
|
-
{
|
|
365
|
-
"aria-orientation": void 0,
|
|
366
|
-
className: cn("a63-Menu-separator", "a63-Autocomplete-separator", className),
|
|
367
|
-
"data-slot": "autocomplete-separator",
|
|
368
|
-
role: "none",
|
|
369
|
-
...props
|
|
370
|
-
}
|
|
371
|
-
);
|
|
372
|
-
}
|
|
373
|
-
function AutocompleteGroup({
|
|
374
|
-
className,
|
|
375
|
-
...props
|
|
376
|
-
}) {
|
|
377
|
-
return /* @__PURE__ */ jsx(
|
|
378
|
-
Autocomplete$1.Group,
|
|
379
|
-
{
|
|
380
|
-
className: cn("a63-Autocomplete-group", className),
|
|
381
|
-
"data-slot": "autocomplete-group",
|
|
382
|
-
...props
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
function AutocompleteGroupLabel({
|
|
387
|
-
className,
|
|
388
|
-
...props
|
|
389
|
-
}) {
|
|
390
|
-
return /* @__PURE__ */ jsx(
|
|
391
|
-
Autocomplete$1.GroupLabel,
|
|
392
|
-
{
|
|
393
|
-
className: cn("a63-Menu-label", "a63-Autocomplete-group-label", className),
|
|
394
|
-
"data-slot": "autocomplete-group-label",
|
|
395
|
-
...props
|
|
396
|
-
}
|
|
397
|
-
);
|
|
398
|
-
}
|
|
399
|
-
function AutocompleteEmpty({
|
|
400
|
-
className,
|
|
401
|
-
...props
|
|
402
|
-
}) {
|
|
403
|
-
return /* @__PURE__ */ jsx(
|
|
404
|
-
Autocomplete$1.Empty,
|
|
405
|
-
{
|
|
406
|
-
className: cn("a63-Autocomplete-empty", className),
|
|
407
|
-
"data-slot": "autocomplete-empty",
|
|
408
|
-
...props
|
|
409
|
-
}
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
function AutocompleteRow({
|
|
413
|
-
className,
|
|
414
|
-
...props
|
|
415
|
-
}) {
|
|
416
|
-
return /* @__PURE__ */ jsx(
|
|
417
|
-
Autocomplete$1.Row,
|
|
418
|
-
{
|
|
419
|
-
className: cn("a63-Autocomplete-row", className),
|
|
420
|
-
"data-slot": "autocomplete-row",
|
|
421
|
-
...props
|
|
422
|
-
}
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
function AutocompleteValue({
|
|
426
|
-
...props
|
|
427
|
-
}) {
|
|
428
|
-
return /* @__PURE__ */ jsx(Autocomplete$1.Value, { "data-slot": "autocomplete-value", ...props });
|
|
429
|
-
}
|
|
430
|
-
function AutocompleteList({
|
|
431
|
-
className,
|
|
432
|
-
...props
|
|
433
|
-
}) {
|
|
434
|
-
return /* @__PURE__ */ jsx(ScrollArea, { scrollFade: true, scrollbarGutter: true, children: /* @__PURE__ */ jsx(
|
|
435
|
-
Autocomplete$1.List,
|
|
436
|
-
{
|
|
437
|
-
className: cn("a63-Autocomplete-list", className),
|
|
438
|
-
"data-slot": "autocomplete-list",
|
|
439
|
-
...props
|
|
440
|
-
}
|
|
441
|
-
) });
|
|
442
|
-
}
|
|
443
|
-
function AutocompleteClear({
|
|
444
|
-
children,
|
|
445
|
-
className,
|
|
446
|
-
...props
|
|
447
|
-
}) {
|
|
448
|
-
return /* @__PURE__ */ jsx(
|
|
449
|
-
Autocomplete$1.Clear,
|
|
450
|
-
{
|
|
451
|
-
className: cn("a63-Autocomplete-adornment", className),
|
|
452
|
-
"data-slot": "autocomplete-clear",
|
|
453
|
-
...props,
|
|
454
|
-
children: children ?? /* @__PURE__ */ jsx(CloseIcon, {})
|
|
455
|
-
}
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
function AutocompleteStatus({
|
|
459
|
-
className,
|
|
460
|
-
...props
|
|
461
|
-
}) {
|
|
462
|
-
return /* @__PURE__ */ jsx(
|
|
463
|
-
Autocomplete$1.Status,
|
|
464
|
-
{
|
|
465
|
-
className: cn("a63-Autocomplete-status", className),
|
|
466
|
-
"data-slot": "autocomplete-status",
|
|
467
|
-
...props
|
|
468
|
-
}
|
|
469
|
-
);
|
|
470
|
-
}
|
|
471
|
-
function AutocompleteCollection({
|
|
472
|
-
...props
|
|
473
|
-
}) {
|
|
474
|
-
return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "autocomplete-collection", ...props });
|
|
475
|
-
}
|
|
476
|
-
function AutocompleteTrigger({
|
|
477
|
-
children,
|
|
478
|
-
className,
|
|
479
|
-
...props
|
|
480
|
-
}) {
|
|
481
|
-
return /* @__PURE__ */ jsx(
|
|
482
|
-
Autocomplete$1.Trigger,
|
|
483
|
-
{
|
|
484
|
-
className,
|
|
485
|
-
"data-slot": "autocomplete-trigger",
|
|
486
|
-
...props,
|
|
487
|
-
children
|
|
488
|
-
}
|
|
489
|
-
);
|
|
490
|
-
}
|
|
491
|
-
var useAutocompleteFilter = Autocomplete$1.useFilter;
|
|
492
|
-
function Avatar({
|
|
493
|
-
className,
|
|
494
|
-
ring = false,
|
|
495
|
-
shape = avatarContract.defaultShape,
|
|
496
|
-
size = avatarContract.defaultSize,
|
|
497
|
-
...props
|
|
498
|
-
}) {
|
|
499
|
-
return /* @__PURE__ */ jsx(
|
|
500
|
-
Avatar$1.Root,
|
|
501
|
-
{
|
|
502
|
-
className: cn("a63-Avatar", className),
|
|
503
|
-
"data-ring": ring === true ? "unseen" : ring || void 0,
|
|
504
|
-
"data-shape": shape,
|
|
505
|
-
"data-size": size,
|
|
506
|
-
"data-slot": "avatar",
|
|
507
|
-
...props
|
|
508
|
-
}
|
|
509
|
-
);
|
|
510
|
-
}
|
|
511
|
-
function AvatarImage({
|
|
512
|
-
className,
|
|
513
|
-
...props
|
|
514
|
-
}) {
|
|
515
|
-
return /* @__PURE__ */ jsx(
|
|
516
|
-
Avatar$1.Image,
|
|
517
|
-
{
|
|
518
|
-
className: cn("a63-Avatar-image", className),
|
|
519
|
-
"data-slot": "avatar-image",
|
|
520
|
-
...props
|
|
521
|
-
}
|
|
522
|
-
);
|
|
523
|
-
}
|
|
524
|
-
function AvatarFallback({
|
|
525
|
-
className,
|
|
526
|
-
...props
|
|
527
|
-
}) {
|
|
528
|
-
return /* @__PURE__ */ jsx(
|
|
529
|
-
Avatar$1.Fallback,
|
|
530
|
-
{
|
|
531
|
-
className: cn("a63-Avatar-fallback", className),
|
|
532
|
-
"data-slot": "avatar-fallback",
|
|
533
|
-
...props
|
|
534
|
-
}
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
function AvatarBadge({
|
|
538
|
-
className,
|
|
539
|
-
...props
|
|
540
|
-
}) {
|
|
541
|
-
return /* @__PURE__ */ jsx("span", { className: cn("a63-Avatar-badge", className), "data-slot": "avatar-badge", ...props });
|
|
542
|
-
}
|
|
543
|
-
function AvatarGroup({
|
|
544
|
-
className,
|
|
545
|
-
...props
|
|
546
|
-
}) {
|
|
547
|
-
return /* @__PURE__ */ jsx("div", { className: cn("a63-Avatar-group", className), "data-slot": "avatar-group", ...props });
|
|
548
|
-
}
|
|
549
|
-
function AvatarGroupCount({
|
|
550
|
-
className,
|
|
551
|
-
...props
|
|
552
|
-
}) {
|
|
553
|
-
return /* @__PURE__ */ jsx(
|
|
554
|
-
"div",
|
|
555
|
-
{
|
|
556
|
-
className: cn("a63-Avatar-group-count", className),
|
|
557
|
-
"data-slot": "avatar-group-count",
|
|
558
|
-
...props
|
|
559
|
-
}
|
|
560
|
-
);
|
|
561
|
-
}
|
|
562
|
-
function Separator({
|
|
563
|
-
className,
|
|
564
|
-
decorative = false,
|
|
565
|
-
orientation = separatorContract.defaultOrientation,
|
|
566
|
-
variant = separatorContract.defaultVariant,
|
|
567
|
-
...props
|
|
568
|
-
}) {
|
|
569
|
-
return /* @__PURE__ */ jsx(
|
|
570
|
-
Separator$1,
|
|
571
|
-
{
|
|
572
|
-
...decorative ? { "aria-hidden": true, role: "presentation" } : {},
|
|
573
|
-
className: cn("a63-Separator", className),
|
|
574
|
-
"data-slot": "separator",
|
|
575
|
-
"data-variant": variant,
|
|
576
|
-
orientation,
|
|
577
|
-
...props
|
|
578
|
-
}
|
|
579
|
-
);
|
|
580
|
-
}
|
|
581
|
-
var ButtonGroupContext = React2.createContext(false);
|
|
582
|
-
function ButtonGroupProvider({
|
|
583
|
-
children
|
|
584
|
-
}) {
|
|
585
|
-
return /* @__PURE__ */ jsx(ButtonGroupContext.Provider, { value: true, children });
|
|
586
|
-
}
|
|
587
|
-
function useButtonGroupContext() {
|
|
588
|
-
return React2.useContext(ButtonGroupContext);
|
|
589
|
-
}
|
|
590
|
-
function ButtonGroup({
|
|
591
|
-
className,
|
|
592
|
-
orientation = buttonGroupContract.defaultOrientation,
|
|
593
|
-
size = buttonGroupContract.defaultSize,
|
|
594
|
-
...props
|
|
595
|
-
}) {
|
|
596
|
-
return /* @__PURE__ */ jsx(ButtonGroupProvider, { children: /* @__PURE__ */ jsx(
|
|
597
|
-
"div",
|
|
598
|
-
{
|
|
599
|
-
className: cn("a63-ButtonGroup", className),
|
|
600
|
-
"data-orientation": orientation,
|
|
601
|
-
"data-size": size,
|
|
602
|
-
"data-slot": "button-group",
|
|
603
|
-
role: "group",
|
|
604
|
-
...props
|
|
605
|
-
}
|
|
606
|
-
) });
|
|
607
|
-
}
|
|
608
|
-
function ButtonGroupText({
|
|
609
|
-
className,
|
|
610
|
-
render,
|
|
611
|
-
...props
|
|
612
|
-
}) {
|
|
613
|
-
return useRender({
|
|
614
|
-
defaultTagName: "div",
|
|
615
|
-
props: mergeProps({ className: cn("a63-ButtonGroup-text", className) }, props, {
|
|
616
|
-
"data-slot": "button-group-text"
|
|
617
|
-
}),
|
|
618
|
-
render,
|
|
619
|
-
state: {
|
|
620
|
-
slot: "button-group-text"
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
function ButtonGroupSeparator({
|
|
625
|
-
className,
|
|
626
|
-
orientation = "vertical",
|
|
627
|
-
...props
|
|
628
|
-
}) {
|
|
629
|
-
return /* @__PURE__ */ jsx(
|
|
630
|
-
Separator,
|
|
631
|
-
{
|
|
632
|
-
className: cn("a63-ButtonGroup-separator", className),
|
|
633
|
-
"data-slot": "button-group-separator",
|
|
634
|
-
orientation,
|
|
635
|
-
...props
|
|
636
|
-
}
|
|
637
|
-
);
|
|
638
|
-
}
|
|
639
|
-
function paddingAttrs(padding, fallback) {
|
|
640
|
-
if (typeof padding === "object") {
|
|
641
|
-
return {
|
|
642
|
-
"data-padding": padding.base ?? fallback,
|
|
643
|
-
...padding.sm ? { "data-padding-sm": padding.sm } : {}
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
return { "data-padding": padding };
|
|
647
|
-
}
|
|
648
|
-
function Card({
|
|
649
|
-
className,
|
|
650
|
-
render,
|
|
651
|
-
variant = cardContract.defaultVariant,
|
|
652
|
-
padding,
|
|
653
|
-
...props
|
|
654
|
-
}) {
|
|
655
|
-
const resolvedPadding = padding ?? (variant === "overlay" ? "none" : "md");
|
|
656
|
-
const defaultProps = {
|
|
657
|
-
className: cn("a63-Card", className),
|
|
658
|
-
"data-slot": "card",
|
|
659
|
-
"data-variant": variant,
|
|
660
|
-
"data-padding": resolvedPadding
|
|
661
|
-
};
|
|
662
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
663
|
-
}
|
|
664
|
-
function CardHeader({
|
|
665
|
-
className,
|
|
666
|
-
render,
|
|
667
|
-
padding = "md",
|
|
668
|
-
...props
|
|
669
|
-
}) {
|
|
670
|
-
const defaultProps = {
|
|
671
|
-
className: cn("a63-Card-header", className),
|
|
672
|
-
"data-slot": "card-header",
|
|
673
|
-
"data-padding": padding
|
|
674
|
-
};
|
|
675
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
676
|
-
}
|
|
677
|
-
function CardLabel({
|
|
678
|
-
className,
|
|
679
|
-
render,
|
|
680
|
-
...props
|
|
681
|
-
}) {
|
|
682
|
-
const defaultProps = { className: cn("a63-Card-label", className), "data-slot": "card-label" };
|
|
683
|
-
return useRender({
|
|
684
|
-
defaultTagName: "span",
|
|
685
|
-
props: mergeProps(defaultProps, props),
|
|
686
|
-
render
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
function CardMedia({
|
|
690
|
-
className,
|
|
691
|
-
render,
|
|
692
|
-
aspectRatio,
|
|
693
|
-
hoverScale = true,
|
|
694
|
-
style,
|
|
695
|
-
...props
|
|
696
|
-
}) {
|
|
697
|
-
const defaultProps = {
|
|
698
|
-
className: cn("a63-Card-media", className),
|
|
699
|
-
"data-slot": "card-media",
|
|
700
|
-
...hoverScale ? { "data-hover-scale": "" } : {},
|
|
701
|
-
style: aspectRatio ? { aspectRatio, ...style } : style
|
|
702
|
-
};
|
|
703
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
704
|
-
}
|
|
705
|
-
function CardMediaOverlay({
|
|
706
|
-
className,
|
|
707
|
-
render,
|
|
708
|
-
aspectRatio,
|
|
709
|
-
style,
|
|
710
|
-
...props
|
|
711
|
-
}) {
|
|
712
|
-
const defaultProps = {
|
|
713
|
-
className: cn("a63-Card-media-overlay", className),
|
|
714
|
-
"data-slot": "card-media-overlay",
|
|
715
|
-
...aspectRatio ? { "data-aspect": "" } : {},
|
|
716
|
-
style: aspectRatio ? { aspectRatio, ...style } : style
|
|
717
|
-
};
|
|
718
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
719
|
-
}
|
|
720
|
-
function CardMediaOverlayImage({
|
|
721
|
-
className,
|
|
722
|
-
render,
|
|
723
|
-
...props
|
|
724
|
-
}) {
|
|
725
|
-
const defaultProps = {
|
|
726
|
-
className: cn("a63-Card-media-overlay-image", className),
|
|
727
|
-
"data-slot": "card-media-overlay-image"
|
|
728
|
-
};
|
|
729
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
730
|
-
}
|
|
731
|
-
function CardMediaOverlayScrim({
|
|
732
|
-
className,
|
|
733
|
-
render,
|
|
734
|
-
...props
|
|
735
|
-
}) {
|
|
736
|
-
const defaultProps = {
|
|
737
|
-
className: cn("a63-Card-media-overlay-scrim", className),
|
|
738
|
-
"data-slot": "card-media-overlay-scrim"
|
|
739
|
-
};
|
|
740
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
741
|
-
}
|
|
742
|
-
function CardMediaOverlayTopRight({
|
|
743
|
-
className,
|
|
744
|
-
render,
|
|
745
|
-
...props
|
|
746
|
-
}) {
|
|
747
|
-
const defaultProps = {
|
|
748
|
-
className: cn("a63-Card-media-overlay-top-right", className),
|
|
749
|
-
"data-slot": "card-media-overlay-top-right"
|
|
750
|
-
};
|
|
751
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
752
|
-
}
|
|
753
|
-
function CardMediaOverlayBottom({
|
|
754
|
-
className,
|
|
755
|
-
render,
|
|
756
|
-
...props
|
|
757
|
-
}) {
|
|
758
|
-
const defaultProps = {
|
|
759
|
-
className: cn("a63-Card-media-overlay-bottom", className),
|
|
760
|
-
"data-slot": "card-media-overlay-bottom"
|
|
761
|
-
};
|
|
762
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
763
|
-
}
|
|
764
|
-
function CardMediaOverlayIconButton({
|
|
765
|
-
className,
|
|
766
|
-
render,
|
|
767
|
-
...props
|
|
768
|
-
}) {
|
|
769
|
-
const defaultProps = {
|
|
770
|
-
className: cn("a63-Card-media-overlay-icon-button", className),
|
|
771
|
-
"data-slot": "card-media-overlay-icon-button"
|
|
772
|
-
};
|
|
773
|
-
return useRender({
|
|
774
|
-
defaultTagName: "span",
|
|
775
|
-
props: mergeProps(defaultProps, props),
|
|
776
|
-
render
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
function CardContent({
|
|
780
|
-
className,
|
|
781
|
-
render,
|
|
782
|
-
padding = "md",
|
|
783
|
-
...props
|
|
784
|
-
}) {
|
|
785
|
-
const defaultProps = {
|
|
786
|
-
className: cn("a63-Card-content", className),
|
|
787
|
-
"data-slot": "card-content",
|
|
788
|
-
...paddingAttrs(padding, "md")
|
|
789
|
-
};
|
|
790
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
791
|
-
}
|
|
792
|
-
function CardTitle({
|
|
793
|
-
className,
|
|
794
|
-
render,
|
|
795
|
-
lineClamp = 2,
|
|
796
|
-
...props
|
|
797
|
-
}) {
|
|
798
|
-
const defaultProps = {
|
|
799
|
-
className: cn("a63-Card-title", className),
|
|
800
|
-
"data-slot": "card-title",
|
|
801
|
-
...lineClamp ? { "data-line-clamp": String(lineClamp) } : {}
|
|
802
|
-
};
|
|
803
|
-
return useRender({
|
|
804
|
-
defaultTagName: "span",
|
|
805
|
-
props: mergeProps(defaultProps, props),
|
|
806
|
-
render
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
function CardDescription({
|
|
810
|
-
className,
|
|
811
|
-
render,
|
|
812
|
-
lineClamp = 3,
|
|
813
|
-
...props
|
|
814
|
-
}) {
|
|
815
|
-
const defaultProps = {
|
|
816
|
-
className: cn("a63-Card-description", className),
|
|
817
|
-
"data-slot": "card-description",
|
|
818
|
-
...lineClamp ? { "data-line-clamp": String(lineClamp) } : {}
|
|
819
|
-
};
|
|
820
|
-
return useRender({
|
|
821
|
-
defaultTagName: "span",
|
|
822
|
-
props: mergeProps(defaultProps, props),
|
|
823
|
-
render
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
function CardTags({
|
|
827
|
-
className,
|
|
828
|
-
render,
|
|
829
|
-
...props
|
|
830
|
-
}) {
|
|
831
|
-
const defaultProps = { className: cn("a63-Card-tags", className), "data-slot": "card-tags" };
|
|
832
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
833
|
-
}
|
|
834
|
-
function CardFooter({
|
|
835
|
-
className,
|
|
836
|
-
render,
|
|
837
|
-
padding = "md",
|
|
838
|
-
...props
|
|
839
|
-
}) {
|
|
840
|
-
const defaultProps = {
|
|
841
|
-
className: cn("a63-Card-footer", className),
|
|
842
|
-
"data-slot": "card-footer",
|
|
843
|
-
...paddingAttrs(padding, "md")
|
|
844
|
-
};
|
|
845
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
846
|
-
}
|
|
847
|
-
function CardAction({
|
|
848
|
-
className,
|
|
849
|
-
render,
|
|
850
|
-
...props
|
|
851
|
-
}) {
|
|
852
|
-
const defaultProps = { className: cn("a63-Card-action", className), "data-slot": "card-action" };
|
|
853
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
854
|
-
}
|
|
855
|
-
function CardCursorLabel({
|
|
856
|
-
className,
|
|
857
|
-
render,
|
|
858
|
-
...props
|
|
859
|
-
}) {
|
|
860
|
-
const defaultProps = {
|
|
861
|
-
className: cn("a63-Card-cursor-label", className),
|
|
862
|
-
"data-slot": "card-cursor-label"
|
|
863
|
-
};
|
|
864
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
865
|
-
}
|
|
866
|
-
var cardLinkClassName = "a63-CardLink";
|
|
867
|
-
function useCardCursor(options = {}) {
|
|
868
|
-
const { onMove } = options;
|
|
869
|
-
const ref = useRef(null);
|
|
870
|
-
const rectRef = useRef(null);
|
|
871
|
-
const [active, setActive] = useState(false);
|
|
872
|
-
const apply = useCallback(
|
|
873
|
-
(clientX, clientY) => {
|
|
874
|
-
const rect = rectRef.current;
|
|
875
|
-
if (!rect) {
|
|
876
|
-
return;
|
|
877
|
-
}
|
|
878
|
-
const x = clientX - rect.left;
|
|
879
|
-
const y = clientY - rect.top;
|
|
880
|
-
if (onMove) {
|
|
881
|
-
onMove({ x, y });
|
|
882
|
-
return;
|
|
883
|
-
}
|
|
884
|
-
const el = ref.current;
|
|
885
|
-
if (el) {
|
|
886
|
-
el.style.setProperty("--a63-card-cursor-x", `${x}px`);
|
|
887
|
-
el.style.setProperty("--a63-card-cursor-y", `${y}px`);
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
[onMove]
|
|
891
|
-
);
|
|
892
|
-
const onPointerEnter = useCallback(
|
|
893
|
-
(event) => {
|
|
894
|
-
if (!ref.current) {
|
|
895
|
-
return;
|
|
896
|
-
}
|
|
897
|
-
rectRef.current = ref.current.getBoundingClientRect();
|
|
898
|
-
apply(event.clientX, event.clientY);
|
|
899
|
-
setActive(true);
|
|
900
|
-
},
|
|
901
|
-
[apply]
|
|
902
|
-
);
|
|
903
|
-
const onPointerMove = useCallback(
|
|
904
|
-
(event) => apply(event.clientX, event.clientY),
|
|
905
|
-
[apply]
|
|
906
|
-
);
|
|
907
|
-
const onPointerLeave = useCallback(() => {
|
|
908
|
-
rectRef.current = null;
|
|
909
|
-
setActive(false);
|
|
910
|
-
}, []);
|
|
911
|
-
return { ref, active, onPointerEnter, onPointerMove, onPointerLeave };
|
|
912
|
-
}
|
|
913
|
-
function Textarea({
|
|
914
|
-
"aria-invalid": ariaInvalid,
|
|
915
|
-
className,
|
|
916
|
-
disabled,
|
|
917
|
-
invalid = false,
|
|
918
|
-
shadow = true,
|
|
919
|
-
size = textareaContract.defaultSize,
|
|
920
|
-
textareaClassName,
|
|
921
|
-
unstyled = false,
|
|
922
|
-
...props
|
|
923
|
-
}) {
|
|
924
|
-
const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
|
|
925
|
-
return /* @__PURE__ */ jsx(
|
|
926
|
-
"span",
|
|
927
|
-
{
|
|
928
|
-
className: cn("a63-Textarea", className),
|
|
929
|
-
"data-disabled": disabled ? "" : void 0,
|
|
930
|
-
"data-invalid": isInvalid ? "" : void 0,
|
|
931
|
-
"data-shadow": shadow ? void 0 : "false",
|
|
932
|
-
"data-size": size,
|
|
933
|
-
"data-slot": "textarea-control",
|
|
934
|
-
"data-unstyled": unstyled ? "" : void 0,
|
|
935
|
-
children: /* @__PURE__ */ jsx(
|
|
936
|
-
"textarea",
|
|
937
|
-
{
|
|
938
|
-
"aria-invalid": isInvalid ? true : ariaInvalid,
|
|
939
|
-
className: cn("a63-Textarea-field", textareaClassName),
|
|
940
|
-
"data-slot": "textarea",
|
|
941
|
-
disabled,
|
|
942
|
-
...props
|
|
943
|
-
}
|
|
944
|
-
)
|
|
945
|
-
}
|
|
946
|
-
);
|
|
947
|
-
}
|
|
948
|
-
function isAriaInvalid(value) {
|
|
949
|
-
return value === true || value === "true";
|
|
950
|
-
}
|
|
951
|
-
function Input({
|
|
952
|
-
"aria-invalid": ariaInvalid,
|
|
953
|
-
className,
|
|
954
|
-
disabled,
|
|
955
|
-
inputClassName,
|
|
956
|
-
invalid = false,
|
|
957
|
-
nativeInput = false,
|
|
958
|
-
shadow = true,
|
|
959
|
-
size = inputContract.defaultSize,
|
|
960
|
-
unstyled = false,
|
|
961
|
-
variant = inputContract.defaultVariant,
|
|
962
|
-
...props
|
|
963
|
-
}) {
|
|
964
|
-
const isInvalid = invalid || isAriaInvalid(ariaInvalid);
|
|
965
|
-
const isNumericSize = typeof size === "number";
|
|
966
|
-
const dataSize = isNumericSize ? inputContract.defaultSize : size;
|
|
967
|
-
const fieldProps = {
|
|
968
|
-
className: cn("a63-Input-field", inputClassName),
|
|
969
|
-
"data-slot": "input",
|
|
970
|
-
disabled,
|
|
971
|
-
size: isNumericSize ? size : void 0,
|
|
972
|
-
"aria-invalid": isInvalid ? true : ariaInvalid
|
|
973
|
-
};
|
|
974
|
-
return /* @__PURE__ */ jsx(
|
|
975
|
-
"span",
|
|
976
|
-
{
|
|
977
|
-
className: cn("a63-Input", className),
|
|
978
|
-
"data-disabled": disabled ? "" : void 0,
|
|
979
|
-
"data-invalid": isInvalid ? "" : void 0,
|
|
980
|
-
"data-shadow": shadow ? void 0 : "false",
|
|
981
|
-
"data-size": dataSize,
|
|
982
|
-
"data-slot": "input-control",
|
|
983
|
-
"data-unstyled": unstyled ? "" : void 0,
|
|
984
|
-
"data-variant": variant,
|
|
985
|
-
children: nativeInput ? /* @__PURE__ */ jsx("input", { ...fieldProps, ...props }) : /* @__PURE__ */ jsx(Input$1, { ...fieldProps, ...props })
|
|
986
|
-
}
|
|
987
|
-
);
|
|
988
|
-
}
|
|
989
|
-
var InputGroupContext = React2.createContext({
|
|
990
|
-
disabled: false,
|
|
991
|
-
invalid: false,
|
|
992
|
-
size: inputContract.defaultSize
|
|
993
|
-
});
|
|
994
|
-
var ADDON_INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role='button'], [role='combobox'], [role='listbox'], [data-slot='select-trigger']";
|
|
995
|
-
function InputGroup({
|
|
996
|
-
children,
|
|
997
|
-
className,
|
|
998
|
-
disabled = false,
|
|
999
|
-
invalid = false,
|
|
1000
|
-
shadow = true,
|
|
1001
|
-
size = inputContract.defaultSize,
|
|
1002
|
-
variant = inputContract.defaultVariant,
|
|
1003
|
-
...props
|
|
1004
|
-
}) {
|
|
1005
|
-
const context = React2.useMemo(() => ({ disabled, invalid, size }), [disabled, invalid, size]);
|
|
1006
|
-
return /* @__PURE__ */ jsx(InputGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
|
|
1007
|
-
"div",
|
|
1008
|
-
{
|
|
1009
|
-
className: cn("a63-InputGroup", className),
|
|
1010
|
-
"data-disabled": disabled ? "" : void 0,
|
|
1011
|
-
"data-invalid": invalid ? "" : void 0,
|
|
1012
|
-
"data-shadow": shadow ? void 0 : "false",
|
|
1013
|
-
"data-size": size,
|
|
1014
|
-
"data-slot": "input-group",
|
|
1015
|
-
"data-variant": variant,
|
|
1016
|
-
role: "group",
|
|
1017
|
-
...props,
|
|
1018
|
-
children
|
|
1019
|
-
}
|
|
1020
|
-
) });
|
|
1021
|
-
}
|
|
1022
|
-
function InputGroupAddon({
|
|
1023
|
-
align = "inline-start",
|
|
1024
|
-
children,
|
|
1025
|
-
className,
|
|
1026
|
-
onMouseDown,
|
|
1027
|
-
...props
|
|
1028
|
-
}) {
|
|
1029
|
-
return (
|
|
1030
|
-
// mousedown only delegates focus to the field (the real control); the addon is a decorative slot
|
|
1031
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions -- the input remains the sole interactive control
|
|
1032
|
-
/* @__PURE__ */ jsx(
|
|
1033
|
-
"div",
|
|
1034
|
-
{
|
|
1035
|
-
className: cn("a63-InputGroup-addon", className),
|
|
1036
|
-
"data-align": align,
|
|
1037
|
-
"data-slot": "input-group-addon",
|
|
1038
|
-
onMouseDown: (event) => {
|
|
1039
|
-
onMouseDown?.(event);
|
|
1040
|
-
if (event.defaultPrevented) {
|
|
1041
|
-
return;
|
|
1042
|
-
}
|
|
1043
|
-
const target = event.target;
|
|
1044
|
-
if (target.closest(ADDON_INTERACTIVE_SELECTOR)) {
|
|
1045
|
-
return;
|
|
1046
|
-
}
|
|
1047
|
-
event.preventDefault();
|
|
1048
|
-
const parent = event.currentTarget.parentElement;
|
|
1049
|
-
const field = parent?.querySelector(
|
|
1050
|
-
"input, textarea"
|
|
1051
|
-
);
|
|
1052
|
-
if (field && !parent?.querySelector("input:focus, textarea:focus")) {
|
|
1053
|
-
field.focus();
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
...props,
|
|
1057
|
-
children
|
|
1058
|
-
}
|
|
1059
|
-
)
|
|
1060
|
-
);
|
|
1061
|
-
}
|
|
1062
|
-
function InputGroupInput({
|
|
1063
|
-
disabled,
|
|
1064
|
-
invalid,
|
|
1065
|
-
size,
|
|
1066
|
-
...props
|
|
1067
|
-
}) {
|
|
1068
|
-
const {
|
|
1069
|
-
disabled: groupDisabled,
|
|
1070
|
-
invalid: groupInvalid,
|
|
1071
|
-
size: groupSize
|
|
1072
|
-
} = React2.useContext(InputGroupContext);
|
|
1073
|
-
return /* @__PURE__ */ jsx(
|
|
1074
|
-
Input,
|
|
1075
|
-
{
|
|
1076
|
-
disabled: disabled ?? groupDisabled,
|
|
1077
|
-
invalid: invalid ?? groupInvalid,
|
|
1078
|
-
size: size ?? groupSize,
|
|
1079
|
-
unstyled: true,
|
|
1080
|
-
...props
|
|
1081
|
-
}
|
|
1082
|
-
);
|
|
1083
|
-
}
|
|
1084
|
-
function InputGroupTextarea({
|
|
1085
|
-
disabled,
|
|
1086
|
-
...props
|
|
1087
|
-
}) {
|
|
1088
|
-
const { disabled: groupDisabled, invalid: groupInvalid } = React2.useContext(InputGroupContext);
|
|
1089
|
-
return /* @__PURE__ */ jsx(
|
|
1090
|
-
Textarea,
|
|
1091
|
-
{
|
|
1092
|
-
"aria-invalid": props["aria-invalid"] ?? (groupInvalid || void 0),
|
|
1093
|
-
disabled: disabled ?? groupDisabled,
|
|
1094
|
-
unstyled: true,
|
|
1095
|
-
...props
|
|
1096
|
-
}
|
|
1097
|
-
);
|
|
1098
|
-
}
|
|
1099
|
-
function InputGroupButton({
|
|
1100
|
-
size = "xs",
|
|
1101
|
-
variant = "ghost",
|
|
1102
|
-
...props
|
|
1103
|
-
}) {
|
|
1104
|
-
return /* @__PURE__ */ jsx(Button, { "data-slot": "input-group-button", size, variant, ...props });
|
|
1105
|
-
}
|
|
1106
|
-
function InputGroupText({
|
|
1107
|
-
children,
|
|
1108
|
-
className,
|
|
1109
|
-
...props
|
|
1110
|
-
}) {
|
|
1111
|
-
return /* @__PURE__ */ jsx("span", { className: cn("a63-InputGroup-text", className), "data-slot": "input-group-text", ...props, children });
|
|
1112
|
-
}
|
|
1113
|
-
var CommandDialog = Dialog$1.Root;
|
|
1114
|
-
function CommandDialogPortal(props) {
|
|
1115
|
-
const { container, ...portalProps } = props;
|
|
1116
|
-
const contextPortalContainer = usePortalContainer();
|
|
1117
|
-
return /* @__PURE__ */ jsx(
|
|
1118
|
-
Dialog$1.Portal,
|
|
1119
|
-
{
|
|
1120
|
-
container: container ?? contextPortalContainer,
|
|
1121
|
-
...portalProps
|
|
1122
|
-
}
|
|
1123
|
-
);
|
|
1124
|
-
}
|
|
1125
|
-
var CommandCreateHandle = Dialog$1.createHandle;
|
|
1126
|
-
function CommandDialogTrigger(props) {
|
|
1127
|
-
return /* @__PURE__ */ jsx(Dialog$1.Trigger, { "data-slot": "command-dialog-trigger", ...props });
|
|
1128
|
-
}
|
|
1129
|
-
function CommandDialogBackdrop({
|
|
1130
|
-
className,
|
|
1131
|
-
...props
|
|
1132
|
-
}) {
|
|
1133
|
-
return /* @__PURE__ */ jsx(
|
|
1134
|
-
Dialog$1.Backdrop,
|
|
1135
|
-
{
|
|
1136
|
-
className: cn("a63-Command-backdrop", className),
|
|
1137
|
-
"data-slot": "command-dialog-backdrop",
|
|
1138
|
-
...props
|
|
1139
|
-
}
|
|
1140
|
-
);
|
|
1141
|
-
}
|
|
1142
|
-
function CommandDialogViewport({
|
|
1143
|
-
className,
|
|
1144
|
-
...props
|
|
1145
|
-
}) {
|
|
1146
|
-
return /* @__PURE__ */ jsx(
|
|
1147
|
-
Dialog$1.Viewport,
|
|
1148
|
-
{
|
|
1149
|
-
className: cn("a63-Command-viewport", className),
|
|
1150
|
-
"data-slot": "command-dialog-viewport",
|
|
1151
|
-
...props
|
|
1152
|
-
}
|
|
1153
|
-
);
|
|
1154
|
-
}
|
|
1155
|
-
function CommandDialogPopup({
|
|
1156
|
-
className,
|
|
1157
|
-
children,
|
|
1158
|
-
...props
|
|
1159
|
-
}) {
|
|
1160
|
-
return /* @__PURE__ */ jsxs(CommandDialogPortal, { children: [
|
|
1161
|
-
/* @__PURE__ */ jsx(CommandDialogBackdrop, {}),
|
|
1162
|
-
/* @__PURE__ */ jsx(CommandDialogViewport, { children: /* @__PURE__ */ jsx(
|
|
1163
|
-
Dialog$1.Popup,
|
|
1164
|
-
{
|
|
1165
|
-
className: cn("a63-Command-popup", className),
|
|
1166
|
-
"data-slot": "command-dialog-popup",
|
|
1167
|
-
...props,
|
|
1168
|
-
children
|
|
1169
|
-
}
|
|
1170
|
-
) })
|
|
1171
|
-
] });
|
|
1172
|
-
}
|
|
1173
|
-
function Command({
|
|
1174
|
-
autoHighlight = "always",
|
|
1175
|
-
keepHighlight = true,
|
|
1176
|
-
...props
|
|
1177
|
-
}) {
|
|
1178
|
-
return /* @__PURE__ */ jsx(
|
|
1179
|
-
Autocomplete$1.Root,
|
|
1180
|
-
{
|
|
1181
|
-
autoHighlight,
|
|
1182
|
-
"data-slot": "command",
|
|
1183
|
-
inline: true,
|
|
1184
|
-
keepHighlight,
|
|
1185
|
-
open: true,
|
|
1186
|
-
...props
|
|
1187
|
-
}
|
|
1188
|
-
);
|
|
1189
|
-
}
|
|
1190
|
-
function SearchIcon() {
|
|
1191
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ jsx(
|
|
1192
|
-
"path",
|
|
1193
|
-
{
|
|
1194
|
-
d: "M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5",
|
|
1195
|
-
stroke: "currentColor",
|
|
1196
|
-
strokeLinecap: "round",
|
|
1197
|
-
strokeLinejoin: "round",
|
|
1198
|
-
strokeWidth: "1.75"
|
|
1199
|
-
}
|
|
1200
|
-
) });
|
|
1201
|
-
}
|
|
1202
|
-
function CommandInput({
|
|
1203
|
-
className,
|
|
1204
|
-
endAddon,
|
|
1205
|
-
icon = /* @__PURE__ */ jsx(SearchIcon, {}),
|
|
1206
|
-
placeholder,
|
|
1207
|
-
...props
|
|
1208
|
-
}) {
|
|
1209
|
-
return /* @__PURE__ */ jsxs("div", { className: "a63-Command-input-wrapper", "data-slot": "command-input-wrapper", children: [
|
|
1210
|
-
icon ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-Command-input-icon", children: icon }) : null,
|
|
1211
|
-
/* @__PURE__ */ jsx(
|
|
1212
|
-
Autocomplete$1.Input,
|
|
1213
|
-
{
|
|
1214
|
-
"aria-expanded": true,
|
|
1215
|
-
autoFocus: true,
|
|
1216
|
-
className: cn("a63-Command-input", className),
|
|
1217
|
-
"data-slot": "command-input",
|
|
1218
|
-
placeholder,
|
|
1219
|
-
...props
|
|
1220
|
-
}
|
|
1221
|
-
),
|
|
1222
|
-
endAddon ? /* @__PURE__ */ jsx("span", { className: "a63-Command-input-end", "data-slot": "command-input-end", children: endAddon }) : null
|
|
1223
|
-
] });
|
|
1224
|
-
}
|
|
1225
|
-
function CommandPanel({
|
|
1226
|
-
className,
|
|
1227
|
-
children,
|
|
1228
|
-
...props
|
|
1229
|
-
}) {
|
|
1230
|
-
return /* @__PURE__ */ jsx(
|
|
1231
|
-
ScrollArea,
|
|
1232
|
-
{
|
|
1233
|
-
className: cn("a63-Command-panel", className),
|
|
1234
|
-
"data-slot": "command-panel",
|
|
1235
|
-
scrollFade: true,
|
|
1236
|
-
showScrollbarOnHover: true,
|
|
1237
|
-
...props,
|
|
1238
|
-
children
|
|
1239
|
-
}
|
|
1240
|
-
);
|
|
1241
|
-
}
|
|
1242
|
-
function CommandList({
|
|
1243
|
-
className,
|
|
1244
|
-
...props
|
|
1245
|
-
}) {
|
|
1246
|
-
return /* @__PURE__ */ jsx(
|
|
1247
|
-
Autocomplete$1.List,
|
|
1248
|
-
{
|
|
1249
|
-
className: cn("a63-Command-list", className),
|
|
1250
|
-
"data-slot": "command-list",
|
|
1251
|
-
...props
|
|
1252
|
-
}
|
|
1253
|
-
);
|
|
1254
|
-
}
|
|
1255
|
-
function CommandEmpty({
|
|
1256
|
-
className,
|
|
1257
|
-
...props
|
|
1258
|
-
}) {
|
|
1259
|
-
return /* @__PURE__ */ jsx(
|
|
1260
|
-
Autocomplete$1.Empty,
|
|
1261
|
-
{
|
|
1262
|
-
className: cn("a63-Command-empty", className),
|
|
1263
|
-
"data-slot": "command-empty",
|
|
1264
|
-
...props
|
|
1265
|
-
}
|
|
1266
|
-
);
|
|
1267
|
-
}
|
|
1268
|
-
function CommandGroup({
|
|
1269
|
-
className,
|
|
1270
|
-
...props
|
|
1271
|
-
}) {
|
|
1272
|
-
return /* @__PURE__ */ jsx(
|
|
1273
|
-
Autocomplete$1.Group,
|
|
1274
|
-
{
|
|
1275
|
-
className: cn("a63-Command-group", className),
|
|
1276
|
-
"data-slot": "command-group",
|
|
1277
|
-
...props
|
|
1278
|
-
}
|
|
1279
|
-
);
|
|
1280
|
-
}
|
|
1281
|
-
function CommandGroupLabel({
|
|
1282
|
-
className,
|
|
1283
|
-
...props
|
|
1284
|
-
}) {
|
|
1285
|
-
return /* @__PURE__ */ jsx(
|
|
1286
|
-
Autocomplete$1.GroupLabel,
|
|
1287
|
-
{
|
|
1288
|
-
className: cn("a63-Command-group-label", className),
|
|
1289
|
-
"data-slot": "command-group-label",
|
|
1290
|
-
...props
|
|
1291
|
-
}
|
|
1292
|
-
);
|
|
1293
|
-
}
|
|
1294
|
-
function CommandCollection({
|
|
1295
|
-
...props
|
|
1296
|
-
}) {
|
|
1297
|
-
return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "command-collection", ...props });
|
|
1298
|
-
}
|
|
1299
|
-
function CommandItem({
|
|
1300
|
-
className,
|
|
1301
|
-
...props
|
|
1302
|
-
}) {
|
|
1303
|
-
return /* @__PURE__ */ jsx(
|
|
1304
|
-
Autocomplete$1.Item,
|
|
1305
|
-
{
|
|
1306
|
-
className: cn("a63-Command-item", className),
|
|
1307
|
-
"data-slot": "command-item",
|
|
1308
|
-
...props
|
|
1309
|
-
}
|
|
1310
|
-
);
|
|
1311
|
-
}
|
|
1312
|
-
function CommandSeparator({
|
|
1313
|
-
className,
|
|
1314
|
-
...props
|
|
1315
|
-
}) {
|
|
1316
|
-
return /* @__PURE__ */ jsx(
|
|
1317
|
-
Autocomplete$1.Separator,
|
|
1318
|
-
{
|
|
1319
|
-
className: cn("a63-Command-separator", className),
|
|
1320
|
-
"data-slot": "command-separator",
|
|
1321
|
-
"aria-orientation": void 0,
|
|
1322
|
-
role: "presentation",
|
|
1323
|
-
...props
|
|
1324
|
-
}
|
|
1325
|
-
);
|
|
1326
|
-
}
|
|
1327
|
-
function CommandShortcut({
|
|
1328
|
-
className,
|
|
1329
|
-
...props
|
|
1330
|
-
}) {
|
|
1331
|
-
return /* @__PURE__ */ jsx(
|
|
1332
|
-
"kbd",
|
|
1333
|
-
{
|
|
1334
|
-
className: cn("a63-Command-shortcut", className),
|
|
1335
|
-
"data-slot": "command-shortcut",
|
|
1336
|
-
...props
|
|
1337
|
-
}
|
|
1338
|
-
);
|
|
1339
|
-
}
|
|
1340
|
-
function CommandFooter({
|
|
1341
|
-
className,
|
|
1342
|
-
...props
|
|
1343
|
-
}) {
|
|
1344
|
-
return /* @__PURE__ */ jsx("div", { className: cn("a63-Command-footer", className), "data-slot": "command-footer", ...props });
|
|
1345
|
-
}
|
|
1346
|
-
var DialogCreateHandle = Dialog$1.createHandle;
|
|
1347
|
-
var DialogModalContext = React2.createContext(true);
|
|
1348
|
-
function Dialog(props) {
|
|
1349
|
-
return /* @__PURE__ */ jsx(DialogModalContext.Provider, { value: props.modal ?? true, children: /* @__PURE__ */ jsx(Dialog$1.Root, { ...props }) });
|
|
1350
|
-
}
|
|
1351
|
-
function DialogPortal(props) {
|
|
1352
|
-
const { container, ...portalProps } = props;
|
|
1353
|
-
const contextPortalContainer = usePortalContainer();
|
|
1354
|
-
return /* @__PURE__ */ jsx(
|
|
1355
|
-
Dialog$1.Portal,
|
|
1356
|
-
{
|
|
1357
|
-
container: container ?? contextPortalContainer,
|
|
1358
|
-
"data-slot": "dialog-portal",
|
|
1359
|
-
...portalProps
|
|
1360
|
-
}
|
|
1361
|
-
);
|
|
1362
|
-
}
|
|
1363
|
-
function DialogTrigger({
|
|
1364
|
-
className,
|
|
1365
|
-
...props
|
|
1366
|
-
}) {
|
|
1367
|
-
return /* @__PURE__ */ jsx(
|
|
1368
|
-
Dialog$1.Trigger,
|
|
1369
|
-
{
|
|
1370
|
-
className: cn("a63-Dialog-trigger", className),
|
|
1371
|
-
"data-slot": "dialog-trigger",
|
|
1372
|
-
...props
|
|
1373
|
-
}
|
|
1374
|
-
);
|
|
1375
|
-
}
|
|
1376
|
-
function DialogClose(props) {
|
|
1377
|
-
return /* @__PURE__ */ jsx(Dialog$1.Close, { "data-slot": "dialog-close", ...props });
|
|
1378
|
-
}
|
|
1379
|
-
function DialogBackdrop({
|
|
1380
|
-
className,
|
|
1381
|
-
...props
|
|
1382
|
-
}) {
|
|
1383
|
-
return /* @__PURE__ */ jsx(
|
|
1384
|
-
Dialog$1.Backdrop,
|
|
1385
|
-
{
|
|
1386
|
-
className: cn("a63-Dialog-backdrop", className),
|
|
1387
|
-
"data-slot": "dialog-backdrop",
|
|
1388
|
-
...props
|
|
1389
|
-
}
|
|
1390
|
-
);
|
|
1391
|
-
}
|
|
1392
|
-
function DialogViewport({
|
|
1393
|
-
className,
|
|
1394
|
-
...props
|
|
1395
|
-
}) {
|
|
1396
|
-
return /* @__PURE__ */ jsx(
|
|
1397
|
-
Dialog$1.Viewport,
|
|
1398
|
-
{
|
|
1399
|
-
className: cn("a63-Dialog-viewport", className),
|
|
1400
|
-
"data-slot": "dialog-viewport",
|
|
1401
|
-
...props
|
|
1402
|
-
}
|
|
1403
|
-
);
|
|
1404
|
-
}
|
|
1405
|
-
function CloseIcon2() {
|
|
1406
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
1407
|
-
"path",
|
|
1408
|
-
{
|
|
1409
|
-
d: "m4 4 8 8M12 4l-8 8",
|
|
1410
|
-
stroke: "currentColor",
|
|
1411
|
-
strokeLinecap: "round",
|
|
1412
|
-
strokeLinejoin: "round",
|
|
1413
|
-
strokeWidth: "1.5"
|
|
1414
|
-
}
|
|
1415
|
-
) });
|
|
1416
|
-
}
|
|
1417
|
-
function DialogPopup({
|
|
1418
|
-
className,
|
|
1419
|
-
children,
|
|
1420
|
-
showCloseButton = true,
|
|
1421
|
-
bottomStickOnMobile = true,
|
|
1422
|
-
mobilePlacement,
|
|
1423
|
-
size = "default",
|
|
1424
|
-
closeProps,
|
|
1425
|
-
portalProps,
|
|
1426
|
-
...props
|
|
1427
|
-
}) {
|
|
1428
|
-
const modal = React2.useContext(DialogModalContext);
|
|
1429
|
-
const resolvedMobilePlacement = mobilePlacement ?? (bottomStickOnMobile ? "bottom" : "center");
|
|
1430
|
-
const stickToBottomOnMobile = resolvedMobilePlacement === "bottom";
|
|
1431
|
-
return /* @__PURE__ */ jsxs(DialogPortal, { ...portalProps, children: [
|
|
1432
|
-
/* @__PURE__ */ jsx(DialogBackdrop, {}),
|
|
1433
|
-
/* @__PURE__ */ jsx(DialogViewport, { "data-mobile-placement": resolvedMobilePlacement, children: /* @__PURE__ */ jsxs(
|
|
1434
|
-
Dialog$1.Popup,
|
|
1435
|
-
{
|
|
1436
|
-
"aria-modal": modal === false ? void 0 : true,
|
|
1437
|
-
className: cn("a63-Dialog-popup", className),
|
|
1438
|
-
"data-mobile-placement": resolvedMobilePlacement,
|
|
1439
|
-
"data-size": size,
|
|
1440
|
-
"data-slot": "dialog-popup",
|
|
1441
|
-
"data-stick-bottom": stickToBottomOnMobile ? "" : void 0,
|
|
1442
|
-
...props,
|
|
1443
|
-
children: [
|
|
1444
|
-
children,
|
|
1445
|
-
showCloseButton && /* @__PURE__ */ jsx(
|
|
1446
|
-
Dialog$1.Close,
|
|
1447
|
-
{
|
|
1448
|
-
"aria-label": "Close",
|
|
1449
|
-
className: "a63-Dialog-close-button",
|
|
1450
|
-
"data-slot": "dialog-close-button",
|
|
1451
|
-
...closeProps,
|
|
1452
|
-
children: closeProps?.children ?? /* @__PURE__ */ jsx(CloseIcon2, {})
|
|
1453
|
-
}
|
|
1454
|
-
)
|
|
1455
|
-
]
|
|
1456
|
-
}
|
|
1457
|
-
) })
|
|
1458
|
-
] });
|
|
1459
|
-
}
|
|
1460
|
-
function DialogHeader({
|
|
1461
|
-
className,
|
|
1462
|
-
render,
|
|
1463
|
-
...props
|
|
1464
|
-
}) {
|
|
1465
|
-
const defaultProps = {
|
|
1466
|
-
className: cn("a63-Dialog-header", className),
|
|
1467
|
-
"data-slot": "dialog-header"
|
|
1468
|
-
};
|
|
1469
|
-
return useRender({
|
|
1470
|
-
defaultTagName: "div",
|
|
1471
|
-
props: mergeProps(defaultProps, props),
|
|
1472
|
-
render
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
function DialogFooter({
|
|
1476
|
-
className,
|
|
1477
|
-
variant = "default",
|
|
1478
|
-
render,
|
|
1479
|
-
...props
|
|
1480
|
-
}) {
|
|
1481
|
-
const defaultProps = {
|
|
1482
|
-
className: cn("a63-Dialog-footer", className),
|
|
1483
|
-
"data-slot": "dialog-footer",
|
|
1484
|
-
"data-variant": variant
|
|
1485
|
-
};
|
|
1486
|
-
return useRender({
|
|
1487
|
-
defaultTagName: "div",
|
|
1488
|
-
props: mergeProps(defaultProps, props),
|
|
1489
|
-
render
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
function DialogTitle({
|
|
1493
|
-
className,
|
|
1494
|
-
...props
|
|
1495
|
-
}) {
|
|
1496
|
-
return /* @__PURE__ */ jsx(
|
|
1497
|
-
Dialog$1.Title,
|
|
1498
|
-
{
|
|
1499
|
-
className: cn("a63-Dialog-title", className),
|
|
1500
|
-
"data-slot": "dialog-title",
|
|
1501
|
-
...props
|
|
1502
|
-
}
|
|
1503
|
-
);
|
|
1504
|
-
}
|
|
1505
|
-
function DialogDescription({
|
|
1506
|
-
className,
|
|
1507
|
-
...props
|
|
1508
|
-
}) {
|
|
1509
|
-
return /* @__PURE__ */ jsx(
|
|
1510
|
-
Dialog$1.Description,
|
|
1511
|
-
{
|
|
1512
|
-
className: cn("a63-Dialog-description", className),
|
|
1513
|
-
"data-slot": "dialog-description",
|
|
1514
|
-
...props
|
|
1515
|
-
}
|
|
1516
|
-
);
|
|
1517
|
-
}
|
|
1518
|
-
function DialogPanel({
|
|
1519
|
-
className,
|
|
1520
|
-
scrollFade = true,
|
|
1521
|
-
render,
|
|
1522
|
-
...props
|
|
1523
|
-
}) {
|
|
1524
|
-
const defaultProps = {
|
|
1525
|
-
className: cn("a63-Dialog-panel", className),
|
|
1526
|
-
"data-scroll-fade": scrollFade ? "" : void 0,
|
|
1527
|
-
"data-slot": "dialog-panel"
|
|
1528
|
-
};
|
|
1529
|
-
return useRender({
|
|
1530
|
-
defaultTagName: "div",
|
|
1531
|
-
props: mergeProps(defaultProps, props),
|
|
1532
|
-
render
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
// src/conformance/renderer-conformance.ts
|
|
1537
|
-
var reactRendererConformance = [
|
|
1538
|
-
{
|
|
1539
|
-
contractId: "button",
|
|
1540
|
-
implementedStates: ["rest", "pressed", "disabled", "loading"],
|
|
1541
|
-
verifiedSharedOutcomes: [
|
|
1542
|
-
"action-fires-once",
|
|
1543
|
-
"loading-blocks-repeat-activation",
|
|
1544
|
-
"disabled-prevents-activation"
|
|
1545
|
-
],
|
|
1546
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "announces-loading", "disabled-while-loading"],
|
|
1547
|
-
verifiesMotionRecipe: true
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
contractId: "alert",
|
|
1551
|
-
implementedStates: ["info", "success", "warning", "error"],
|
|
1552
|
-
verifiedSharedOutcomes: [
|
|
1553
|
-
"tone-is-not-conveyed-by-color-alone",
|
|
1554
|
-
"message-remains-readable",
|
|
1555
|
-
"action-does-not-obscure-status"
|
|
1556
|
-
],
|
|
1557
|
-
verifiedAccessibilityOutcomes: ["announces-semantic-tone", "text-does-not-rely-on-color"],
|
|
1558
|
-
verifiesMotionRecipe: false
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
contractId: "dialog",
|
|
1562
|
-
implementedStates: ["closed", "open", "focus-visible"],
|
|
1563
|
-
verifiedSharedOutcomes: [
|
|
1564
|
-
"opening-presents-a-modal-context",
|
|
1565
|
-
"background-interaction-is-blocked-while-open",
|
|
1566
|
-
"dismissal-returns-to-the-originating-context"
|
|
1567
|
-
],
|
|
1568
|
-
verifiedAccessibilityOutcomes: [
|
|
1569
|
-
"exposes-modal-title",
|
|
1570
|
-
"keeps-assistive-focus-in-the-modal-context",
|
|
1571
|
-
"restores-access-to-the-originating-control"
|
|
1572
|
-
],
|
|
1573
|
-
verifiesMotionRecipe: false
|
|
1574
|
-
},
|
|
1575
|
-
{
|
|
1576
|
-
contractId: "alert-dialog",
|
|
1577
|
-
implementedStates: ["closed", "open"],
|
|
1578
|
-
verifiedSharedOutcomes: [
|
|
1579
|
-
"consequential-action-requires-explicit-confirmation",
|
|
1580
|
-
"cancel-dismisses-without-performing-the-action",
|
|
1581
|
-
"confirmation-performs-the-action-once-and-dismisses"
|
|
1582
|
-
],
|
|
1583
|
-
verifiedAccessibilityOutcomes: [
|
|
1584
|
-
"exposes-alert-dialog-title",
|
|
1585
|
-
"exposes-consequence-description",
|
|
1586
|
-
"identifies-cancel-and-confirm-actions"
|
|
1587
|
-
],
|
|
1588
|
-
verifiesMotionRecipe: false
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
contractId: "field",
|
|
1592
|
-
implementedStates: ["default", "invalid", "disabled"],
|
|
1593
|
-
verifiedSharedOutcomes: [
|
|
1594
|
-
"label-identifies-control",
|
|
1595
|
-
"description-explains-input",
|
|
1596
|
-
"invalid-state-exposes-error"
|
|
1597
|
-
],
|
|
1598
|
-
verifiedAccessibilityOutcomes: [
|
|
1599
|
-
"associates-label",
|
|
1600
|
-
"associates-description",
|
|
1601
|
-
"announces-error"
|
|
1602
|
-
],
|
|
1603
|
-
verifiesMotionRecipe: false
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
contractId: "destination-link",
|
|
1607
|
-
implementedStates: ["rest", "focus-visible"],
|
|
1608
|
-
verifiedSharedOutcomes: [
|
|
1609
|
-
"internal-destination-preserves-application-navigation",
|
|
1610
|
-
"external-destination-uses-platform-external-navigation",
|
|
1611
|
-
"destination-kind-remains-distinguishable"
|
|
1612
|
-
],
|
|
1613
|
-
verifiedAccessibilityOutcomes: [
|
|
1614
|
-
"exposes-link-label",
|
|
1615
|
-
"announces-external-destination-behavior",
|
|
1616
|
-
"preserves-native-link-semantics"
|
|
1617
|
-
],
|
|
1618
|
-
verifiesMotionRecipe: false
|
|
1619
|
-
},
|
|
1620
|
-
{
|
|
1621
|
-
contractId: "input",
|
|
1622
|
-
implementedStates: ["rest", "focus", "disabled", "invalid"],
|
|
1623
|
-
verifiedSharedOutcomes: [
|
|
1624
|
-
"value-remains-editable-when-enabled",
|
|
1625
|
-
"focus-is-visible",
|
|
1626
|
-
"invalid-state-is-announced"
|
|
1627
|
-
],
|
|
1628
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "exposes-value", "announces-invalid"],
|
|
1629
|
-
verifiesMotionRecipe: false
|
|
1630
|
-
},
|
|
1631
|
-
{
|
|
1632
|
-
contractId: "textarea",
|
|
1633
|
-
implementedStates: ["rest", "focus", "disabled", "invalid"],
|
|
1634
|
-
verifiedSharedOutcomes: [
|
|
1635
|
-
"multi-line-value-remains-editable",
|
|
1636
|
-
"focus-is-visible",
|
|
1637
|
-
"invalid-state-is-announced"
|
|
1638
|
-
],
|
|
1639
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "exposes-value", "announces-invalid"],
|
|
1640
|
-
verifiesMotionRecipe: false
|
|
1641
|
-
},
|
|
1642
|
-
{
|
|
1643
|
-
contractId: "switch",
|
|
1644
|
-
implementedStates: ["off", "on", "disabled"],
|
|
1645
|
-
verifiedSharedOutcomes: [
|
|
1646
|
-
"value-is-boolean",
|
|
1647
|
-
"activation-toggles-value",
|
|
1648
|
-
"disabled-prevents-change"
|
|
1649
|
-
],
|
|
1650
|
-
verifiedAccessibilityOutcomes: [
|
|
1651
|
-
"exposes-label",
|
|
1652
|
-
"exposes-boolean-value",
|
|
1653
|
-
"preserves-native-control-role"
|
|
1654
|
-
],
|
|
1655
|
-
verifiesMotionRecipe: false
|
|
1656
|
-
},
|
|
1657
|
-
{
|
|
1658
|
-
contractId: "select",
|
|
1659
|
-
implementedStates: ["closed", "open", "disabled", "selected-item", "disabled-item"],
|
|
1660
|
-
verifiedSharedOutcomes: [
|
|
1661
|
-
"current-selection-remains-visible",
|
|
1662
|
-
"activation-reveals-available-options",
|
|
1663
|
-
"choosing-an-option-updates-the-value-once",
|
|
1664
|
-
"disabled-controls-and-options-prevent-selection"
|
|
1665
|
-
],
|
|
1666
|
-
verifiedAccessibilityOutcomes: [
|
|
1667
|
-
"exposes-label",
|
|
1668
|
-
"exposes-selected-value",
|
|
1669
|
-
"preserves-single-selection-semantics"
|
|
1670
|
-
],
|
|
1671
|
-
verifiesMotionRecipe: false
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
contractId: "segmented-control",
|
|
1675
|
-
implementedStates: ["rest", "selected", "disabled"],
|
|
1676
|
-
verifiedSharedOutcomes: [
|
|
1677
|
-
"one-segment-is-selected-at-a-time",
|
|
1678
|
-
"activation-updates-the-selection-once",
|
|
1679
|
-
"disabled-segment-prevents-selection"
|
|
1680
|
-
],
|
|
1681
|
-
verifiedAccessibilityOutcomes: [
|
|
1682
|
-
"exposes-each-segment-label",
|
|
1683
|
-
"exposes-selected-state",
|
|
1684
|
-
"preserves-single-selection-semantics"
|
|
1685
|
-
],
|
|
1686
|
-
verifiesMotionRecipe: false
|
|
1687
|
-
},
|
|
1688
|
-
{
|
|
1689
|
-
contractId: "radio",
|
|
1690
|
-
implementedStates: ["unchecked", "checked", "disabled"],
|
|
1691
|
-
verifiedSharedOutcomes: [
|
|
1692
|
-
"exactly-one-option-may-be-selected",
|
|
1693
|
-
"activation-moves-selection-to-the-chosen-option",
|
|
1694
|
-
"disabled-option-prevents-selection"
|
|
1695
|
-
],
|
|
1696
|
-
verifiedAccessibilityOutcomes: [
|
|
1697
|
-
"exposes-group-label",
|
|
1698
|
-
"exposes-option-labels-and-selected-state",
|
|
1699
|
-
"preserves-single-selection-semantics"
|
|
1700
|
-
],
|
|
1701
|
-
verifiesMotionRecipe: false
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
contractId: "slider",
|
|
1705
|
-
implementedStates: ["rest", "dragging", "disabled"],
|
|
1706
|
-
verifiedSharedOutcomes: [
|
|
1707
|
-
"value-remains-within-the-declared-range",
|
|
1708
|
-
"interaction-updates-value-using-the-declared-step",
|
|
1709
|
-
"disabled-control-prevents-value-change"
|
|
1710
|
-
],
|
|
1711
|
-
verifiedAccessibilityOutcomes: [
|
|
1712
|
-
"exposes-label",
|
|
1713
|
-
"exposes-current-value-and-range",
|
|
1714
|
-
"supports-adjustable-actions"
|
|
1715
|
-
],
|
|
1716
|
-
verifiesMotionRecipe: false
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
contractId: "dropdown-menu",
|
|
1720
|
-
implementedStates: ["closed", "open", "disabled", "checked", "destructive"],
|
|
1721
|
-
verifiedSharedOutcomes: [
|
|
1722
|
-
"enabled-action-executes-once-and-dismisses-the-menu",
|
|
1723
|
-
"disabled-action-does-not-execute",
|
|
1724
|
-
"checked-choice-exposes-its-current-state",
|
|
1725
|
-
"destructive-action-retains-destructive-intent"
|
|
1726
|
-
],
|
|
1727
|
-
verifiedAccessibilityOutcomes: [
|
|
1728
|
-
"trigger-exposes-menu-availability",
|
|
1729
|
-
"items-expose-label-role-and-disabled-state",
|
|
1730
|
-
"checked-items-expose-selected-or-checked-state"
|
|
1731
|
-
],
|
|
1732
|
-
verifiesMotionRecipe: false
|
|
1733
|
-
},
|
|
1734
|
-
{
|
|
1735
|
-
contractId: "accordion",
|
|
1736
|
-
implementedStates: ["closed", "open", "disabled"],
|
|
1737
|
-
verifiedSharedOutcomes: [
|
|
1738
|
-
"activation-toggles-associated-content-visibility",
|
|
1739
|
-
"expanded-state-matches-content-visibility",
|
|
1740
|
-
"disabled-trigger-prevents-disclosure-change"
|
|
1741
|
-
],
|
|
1742
|
-
verifiedAccessibilityOutcomes: [
|
|
1743
|
-
"trigger-exposes-expanded-state",
|
|
1744
|
-
"trigger-is-associated-with-disclosed-content",
|
|
1745
|
-
"disabled-trigger-exposes-disabled-state"
|
|
1746
|
-
],
|
|
1747
|
-
verifiesMotionRecipe: false
|
|
1748
|
-
},
|
|
1749
|
-
{
|
|
1750
|
-
contractId: "calendar",
|
|
1751
|
-
implementedStates: ["rest", "selected", "disabled"],
|
|
1752
|
-
verifiedSharedOutcomes: [
|
|
1753
|
-
"selection-updates-to-an-allowed-date",
|
|
1754
|
-
"disabled-date-prevents-selection",
|
|
1755
|
-
"selected-date-remains-visible"
|
|
1756
|
-
],
|
|
1757
|
-
verifiedAccessibilityOutcomes: [
|
|
1758
|
-
"exposes-control-label",
|
|
1759
|
-
"dates-expose-complete-date-names",
|
|
1760
|
-
"selected-date-exposes-selected-state"
|
|
1761
|
-
],
|
|
1762
|
-
verifiesMotionRecipe: false
|
|
1763
|
-
},
|
|
1764
|
-
{
|
|
1765
|
-
contractId: "search-field",
|
|
1766
|
-
implementedStates: ["empty", "query", "focus", "disabled"],
|
|
1767
|
-
verifiedSharedOutcomes: [
|
|
1768
|
-
"editing-updates-the-query",
|
|
1769
|
-
"clear-empties-the-query-and-preserves-input-context",
|
|
1770
|
-
"submit-commits-the-current-query-once",
|
|
1771
|
-
"disabled-search-prevents-editing-and-clear"
|
|
1772
|
-
],
|
|
1773
|
-
verifiedAccessibilityOutcomes: [
|
|
1774
|
-
"exposes-search-input-role-and-label",
|
|
1775
|
-
"clear-action-has-an-accessible-label",
|
|
1776
|
-
"disabled-state-is-exposed"
|
|
1777
|
-
],
|
|
1778
|
-
verifiesMotionRecipe: false
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
contractId: "tabs",
|
|
1782
|
-
implementedStates: ["rest", "selected"],
|
|
1783
|
-
verifiedSharedOutcomes: [
|
|
1784
|
-
"one-tab-is-selected-at-a-time",
|
|
1785
|
-
"selection-reveals-the-associated-content",
|
|
1786
|
-
"selected-tab-remains-visually-distinguishable"
|
|
1787
|
-
],
|
|
1788
|
-
verifiedAccessibilityOutcomes: [
|
|
1789
|
-
"exposes-tab-labels",
|
|
1790
|
-
"exposes-selected-state",
|
|
1791
|
-
"associates-selection-with-visible-content"
|
|
1792
|
-
],
|
|
1793
|
-
verifiesMotionRecipe: false
|
|
1794
|
-
},
|
|
1795
|
-
{
|
|
1796
|
-
contractId: "load-more-trigger",
|
|
1797
|
-
implementedStates: ["idle", "loading", "failed", "exhausted"],
|
|
1798
|
-
verifiedSharedOutcomes: [
|
|
1799
|
-
"loading-is-announced",
|
|
1800
|
-
"failure-provides-retry",
|
|
1801
|
-
"exhaustion-is-announced",
|
|
1802
|
-
"existing-items-remain-stable-while-appending"
|
|
1803
|
-
],
|
|
1804
|
-
verifiedAccessibilityOutcomes: [
|
|
1805
|
-
"announces-loading",
|
|
1806
|
-
"exposes-retry-action",
|
|
1807
|
-
"announces-exhausted"
|
|
1808
|
-
],
|
|
1809
|
-
verifiesMotionRecipe: false
|
|
1810
|
-
},
|
|
1811
|
-
{
|
|
1812
|
-
contractId: "skeleton",
|
|
1813
|
-
implementedStates: ["loading", "reduced-motion"],
|
|
1814
|
-
verifiedSharedOutcomes: [
|
|
1815
|
-
"placeholder-is-hidden-from-assistive-technology",
|
|
1816
|
-
"interaction-is-blocked-while-loading",
|
|
1817
|
-
"reduced-motion-result-is-static"
|
|
1818
|
-
],
|
|
1819
|
-
verifiedAccessibilityOutcomes: [
|
|
1820
|
-
"hidden-from-accessibility-tree",
|
|
1821
|
-
"blocks-interaction-while-active"
|
|
1822
|
-
],
|
|
1823
|
-
verifiesMotionRecipe: true
|
|
1824
|
-
},
|
|
1825
|
-
{
|
|
1826
|
-
contractId: "toggle",
|
|
1827
|
-
implementedStates: ["off", "on", "disabled"],
|
|
1828
|
-
verifiedSharedOutcomes: [
|
|
1829
|
-
"selected-state-is-visible",
|
|
1830
|
-
"activation-toggles-selection",
|
|
1831
|
-
"disabled-prevents-change"
|
|
1832
|
-
],
|
|
1833
|
-
verifiedAccessibilityOutcomes: [
|
|
1834
|
-
"exposes-label",
|
|
1835
|
-
"announces-selected-state",
|
|
1836
|
-
"preserves-button-role"
|
|
1837
|
-
],
|
|
1838
|
-
verifiesMotionRecipe: false
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
contractId: "toggle-group",
|
|
1842
|
-
implementedStates: ["rest", "selected", "disabled"],
|
|
1843
|
-
verifiedSharedOutcomes: [
|
|
1844
|
-
"selection-state-is-visible",
|
|
1845
|
-
"disabled-options-cannot-change-selection"
|
|
1846
|
-
],
|
|
1847
|
-
verifiedAccessibilityOutcomes: ["exposes-selection", "exposes-disabled-state"],
|
|
1848
|
-
verifiesMotionRecipe: false
|
|
1849
|
-
},
|
|
1850
|
-
{
|
|
1851
|
-
contractId: "card",
|
|
1852
|
-
implementedStates: ["rest", "interactive", "focus-visible"],
|
|
1853
|
-
verifiedSharedOutcomes: [
|
|
1854
|
-
"content-order-is-preserved",
|
|
1855
|
-
"static-card-does-not-imply-action",
|
|
1856
|
-
"interactive-card-has-one-primary-action"
|
|
1857
|
-
],
|
|
1858
|
-
verifiedAccessibilityOutcomes: ["preserves-content-order", "does-not-imply-action-when-static"],
|
|
1859
|
-
verifiesMotionRecipe: false
|
|
1860
|
-
},
|
|
1861
|
-
{
|
|
1862
|
-
contractId: "badge",
|
|
1863
|
-
implementedStates: ["neutral", "accent", "success", "warning", "error"],
|
|
1864
|
-
verifiedSharedOutcomes: [
|
|
1865
|
-
"label-remains-readable-without-color",
|
|
1866
|
-
"semantic-tone-retains-meaning"
|
|
1867
|
-
],
|
|
1868
|
-
verifiedAccessibilityOutcomes: ["text-does-not-rely-on-color"],
|
|
1869
|
-
verifiesMotionRecipe: false
|
|
1870
|
-
},
|
|
1871
|
-
{
|
|
1872
|
-
contractId: "avatar",
|
|
1873
|
-
implementedStates: ["loading", "loaded", "fallback"],
|
|
1874
|
-
verifiedSharedOutcomes: [
|
|
1875
|
-
"accessible-name-is-preserved",
|
|
1876
|
-
"fallback-preserves-identity",
|
|
1877
|
-
"loading-does-not-expose-empty-image"
|
|
1878
|
-
],
|
|
1879
|
-
verifiedAccessibilityOutcomes: ["exposes-accessible-name", "fallback-preserves-identity"],
|
|
1880
|
-
verifiesMotionRecipe: false
|
|
1881
|
-
},
|
|
1882
|
-
{
|
|
1883
|
-
contractId: "empty",
|
|
1884
|
-
implementedStates: ["empty", "error"],
|
|
1885
|
-
verifiedSharedOutcomes: [
|
|
1886
|
-
"heading-explains-state",
|
|
1887
|
-
"supporting-copy-provides-context",
|
|
1888
|
-
"recovery-action-remains-available"
|
|
1889
|
-
],
|
|
1890
|
-
verifiedAccessibilityOutcomes: [
|
|
1891
|
-
"exposes-heading",
|
|
1892
|
-
"exposes-recovery-action",
|
|
1893
|
-
"preserves-reading-order"
|
|
1894
|
-
],
|
|
1895
|
-
verifiesMotionRecipe: false
|
|
1896
|
-
},
|
|
1897
|
-
{
|
|
1898
|
-
contractId: "progress",
|
|
1899
|
-
implementedStates: ["indeterminate", "progressing", "complete"],
|
|
1900
|
-
verifiedSharedOutcomes: [
|
|
1901
|
-
"label-identifies-operation",
|
|
1902
|
-
"determinate-value-is-exposed",
|
|
1903
|
-
"completion-is-distinguishable"
|
|
1904
|
-
],
|
|
1905
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "announces-progress-value"],
|
|
1906
|
-
verifiesMotionRecipe: false
|
|
1907
|
-
},
|
|
1908
|
-
{
|
|
1909
|
-
contractId: "toaster",
|
|
1910
|
-
implementedStates: ["visible", "dismissing", "reduced-motion"],
|
|
1911
|
-
verifiedSharedOutcomes: [
|
|
1912
|
-
"message-is-announced",
|
|
1913
|
-
"focus-is-not-trapped",
|
|
1914
|
-
"dismissal-respects-motion-preference"
|
|
1915
|
-
],
|
|
1916
|
-
verifiedAccessibilityOutcomes: ["announces-message", "does-not-trap-focus"],
|
|
1917
|
-
verifiesMotionRecipe: true
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
contractId: "item",
|
|
1921
|
-
implementedStates: ["rest"],
|
|
1922
|
-
verifiedSharedOutcomes: ["rows-keep-reading-order", "dividers-are-decorative"],
|
|
1923
|
-
verifiedAccessibilityOutcomes: [
|
|
1924
|
-
"preserves-row-order",
|
|
1925
|
-
"hides-dividers-from-assistive-technology"
|
|
1926
|
-
],
|
|
1927
|
-
verifiesMotionRecipe: false
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
contractId: "carousel",
|
|
1931
|
-
implementedStates: ["rest"],
|
|
1932
|
-
verifiedSharedOutcomes: [
|
|
1933
|
-
"one-dot-per-slide",
|
|
1934
|
-
"current-slide-is-marked",
|
|
1935
|
-
"choosing-a-dot-shows-its-slide"
|
|
1936
|
-
],
|
|
1937
|
-
verifiedAccessibilityOutcomes: ["names-the-indicator", "exposes-the-current-position"],
|
|
1938
|
-
verifiesMotionRecipe: false
|
|
1939
|
-
},
|
|
1940
|
-
{
|
|
1941
|
-
contractId: "message",
|
|
1942
|
-
implementedStates: ["rest"],
|
|
1943
|
-
verifiedSharedOutcomes: [
|
|
1944
|
-
"direction-sets-side-and-fill",
|
|
1945
|
-
"runs-join-at-shared-corners",
|
|
1946
|
-
"status-is-named"
|
|
1947
|
-
],
|
|
1948
|
-
verifiedAccessibilityOutcomes: ["names-the-sender", "names-the-delivery-status"],
|
|
1949
|
-
verifiesMotionRecipe: false
|
|
1950
|
-
}
|
|
1951
|
-
];
|
|
1952
|
-
function getReactRendererConformance(contractId) {
|
|
1953
|
-
return reactRendererConformance.find((evidence) => evidence.contractId === contractId);
|
|
1954
|
-
}
|
|
1955
|
-
function NavigationMenu({
|
|
1956
|
-
align = "start",
|
|
1957
|
-
children,
|
|
1958
|
-
className,
|
|
1959
|
-
portalContainer,
|
|
1960
|
-
...props
|
|
1961
|
-
}) {
|
|
1962
|
-
return /* @__PURE__ */ jsxs(
|
|
1963
|
-
NavigationMenu$1.Root,
|
|
1964
|
-
{
|
|
1965
|
-
className: cn("a63-NavigationMenu", className),
|
|
1966
|
-
"data-slot": "navigation-menu",
|
|
1967
|
-
...props,
|
|
1968
|
-
children: [
|
|
1969
|
-
children,
|
|
1970
|
-
/* @__PURE__ */ jsx(NavigationMenuPositioner, { align, portalContainer })
|
|
1971
|
-
]
|
|
1972
|
-
}
|
|
1973
|
-
);
|
|
1974
|
-
}
|
|
1975
|
-
function NavigationMenuList({
|
|
1976
|
-
className,
|
|
1977
|
-
...props
|
|
1978
|
-
}) {
|
|
1979
|
-
return /* @__PURE__ */ jsx(
|
|
1980
|
-
NavigationMenu$1.List,
|
|
1981
|
-
{
|
|
1982
|
-
className: cn("a63-NavigationMenu-list", className),
|
|
1983
|
-
"data-slot": "navigation-menu-list",
|
|
1984
|
-
...props
|
|
1985
|
-
}
|
|
1986
|
-
);
|
|
1987
|
-
}
|
|
1988
|
-
function NavigationMenuItem({
|
|
1989
|
-
className,
|
|
1990
|
-
...props
|
|
1991
|
-
}) {
|
|
1992
|
-
return /* @__PURE__ */ jsx(
|
|
1993
|
-
NavigationMenu$1.Item,
|
|
1994
|
-
{
|
|
1995
|
-
className: cn("a63-NavigationMenu-item", className),
|
|
1996
|
-
"data-slot": "navigation-menu-item",
|
|
1997
|
-
...props
|
|
1998
|
-
}
|
|
1999
|
-
);
|
|
2000
|
-
}
|
|
2001
|
-
function navigationMenuTriggerStyle() {
|
|
2002
|
-
return "a63-NavigationMenu-trigger";
|
|
2003
|
-
}
|
|
2004
|
-
function NavigationMenuTrigger({
|
|
2005
|
-
children,
|
|
2006
|
-
className,
|
|
2007
|
-
...props
|
|
2008
|
-
}) {
|
|
2009
|
-
return /* @__PURE__ */ jsxs(
|
|
2010
|
-
NavigationMenu$1.Trigger,
|
|
2011
|
-
{
|
|
2012
|
-
className: cn("a63-NavigationMenu-trigger", className),
|
|
2013
|
-
"data-slot": "navigation-menu-trigger",
|
|
2014
|
-
...props,
|
|
2015
|
-
children: [
|
|
2016
|
-
children,
|
|
2017
|
-
/* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true, className: "a63-NavigationMenu-trigger-icon" })
|
|
2018
|
-
]
|
|
2019
|
-
}
|
|
2020
|
-
);
|
|
2021
|
-
}
|
|
2022
|
-
function NavigationMenuContent({
|
|
2023
|
-
className,
|
|
2024
|
-
...props
|
|
2025
|
-
}) {
|
|
2026
|
-
return /* @__PURE__ */ jsx(
|
|
2027
|
-
NavigationMenu$1.Content,
|
|
2028
|
-
{
|
|
2029
|
-
className: cn("a63-NavigationMenu-content", className),
|
|
2030
|
-
"data-slot": "navigation-menu-content",
|
|
2031
|
-
...props
|
|
2032
|
-
}
|
|
2033
|
-
);
|
|
2034
|
-
}
|
|
2035
|
-
function NavigationMenuPositioner({
|
|
2036
|
-
align = "start",
|
|
2037
|
-
alignOffset = 0,
|
|
2038
|
-
className,
|
|
2039
|
-
portalContainer,
|
|
2040
|
-
side = "bottom",
|
|
2041
|
-
sideOffset = 8,
|
|
2042
|
-
...props
|
|
2043
|
-
}) {
|
|
2044
|
-
const contextPortalContainer = usePortalContainer();
|
|
2045
|
-
return /* @__PURE__ */ jsx(
|
|
2046
|
-
NavigationMenu$1.Portal,
|
|
2047
|
-
{
|
|
2048
|
-
container: portalContainer ?? contextPortalContainer,
|
|
2049
|
-
"data-slot": "navigation-menu-portal",
|
|
2050
|
-
children: /* @__PURE__ */ jsx(
|
|
2051
|
-
NavigationMenu$1.Positioner,
|
|
2052
|
-
{
|
|
2053
|
-
align,
|
|
2054
|
-
alignOffset,
|
|
2055
|
-
className: cn("a63-NavigationMenu-positioner", className),
|
|
2056
|
-
"data-slot": "navigation-menu-positioner",
|
|
2057
|
-
side,
|
|
2058
|
-
sideOffset,
|
|
2059
|
-
...props,
|
|
2060
|
-
children: /* @__PURE__ */ jsx(
|
|
2061
|
-
NavigationMenu$1.Popup,
|
|
2062
|
-
{
|
|
2063
|
-
className: "a63-NavigationMenu-popup",
|
|
2064
|
-
"data-slot": "navigation-menu-popup",
|
|
2065
|
-
children: /* @__PURE__ */ jsx(NavigationMenuViewport, {})
|
|
2066
|
-
}
|
|
2067
|
-
)
|
|
2068
|
-
}
|
|
2069
|
-
)
|
|
2070
|
-
}
|
|
2071
|
-
);
|
|
2072
|
-
}
|
|
2073
|
-
function NavigationMenuLink({
|
|
2074
|
-
className,
|
|
2075
|
-
...props
|
|
2076
|
-
}) {
|
|
2077
|
-
return /* @__PURE__ */ jsx(
|
|
2078
|
-
NavigationMenu$1.Link,
|
|
2079
|
-
{
|
|
2080
|
-
className: cn("a63-NavigationMenu-link", className),
|
|
2081
|
-
"data-slot": "navigation-menu-link",
|
|
2082
|
-
...props
|
|
2083
|
-
}
|
|
2084
|
-
);
|
|
2085
|
-
}
|
|
2086
|
-
function NavigationMenuIndicator({
|
|
2087
|
-
className,
|
|
2088
|
-
...props
|
|
2089
|
-
}) {
|
|
2090
|
-
return /* @__PURE__ */ jsx(
|
|
2091
|
-
"div",
|
|
2092
|
-
{
|
|
2093
|
-
className: cn("a63-NavigationMenu-indicator", className),
|
|
2094
|
-
"data-slot": "navigation-menu-indicator",
|
|
2095
|
-
...props,
|
|
2096
|
-
children: /* @__PURE__ */ jsx("div", { className: "a63-NavigationMenu-indicator-arrow" })
|
|
2097
|
-
}
|
|
2098
|
-
);
|
|
2099
|
-
}
|
|
2100
|
-
function NavigationMenuViewport({
|
|
2101
|
-
className,
|
|
2102
|
-
...props
|
|
2103
|
-
}) {
|
|
2104
|
-
return /* @__PURE__ */ jsx(
|
|
2105
|
-
NavigationMenu$1.Viewport,
|
|
2106
|
-
{
|
|
2107
|
-
className: cn("a63-NavigationMenu-viewport", className),
|
|
2108
|
-
"data-slot": "navigation-menu-viewport",
|
|
2109
|
-
...props
|
|
2110
|
-
}
|
|
2111
|
-
);
|
|
2112
|
-
}
|
|
2113
|
-
function Progress({
|
|
2114
|
-
className,
|
|
2115
|
-
children,
|
|
2116
|
-
tone = progressContract.defaultTone,
|
|
2117
|
-
...props
|
|
2118
|
-
}) {
|
|
2119
|
-
return /* @__PURE__ */ jsx(
|
|
2120
|
-
Progress$1.Root,
|
|
2121
|
-
{
|
|
2122
|
-
className: cn("a63-Progress", className),
|
|
2123
|
-
"data-slot": "progress",
|
|
2124
|
-
"data-tone": tone,
|
|
2125
|
-
...props,
|
|
2126
|
-
children: children ?? /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })
|
|
2127
|
-
}
|
|
2128
|
-
);
|
|
2129
|
-
}
|
|
2130
|
-
function ProgressLabel({
|
|
2131
|
-
className,
|
|
2132
|
-
...props
|
|
2133
|
-
}) {
|
|
2134
|
-
return /* @__PURE__ */ jsx(
|
|
2135
|
-
Progress$1.Label,
|
|
2136
|
-
{
|
|
2137
|
-
className: cn("a63-Progress-label", className),
|
|
2138
|
-
"data-slot": "progress-label",
|
|
2139
|
-
...props
|
|
2140
|
-
}
|
|
2141
|
-
);
|
|
2142
|
-
}
|
|
2143
|
-
function ProgressTrack({
|
|
2144
|
-
className,
|
|
2145
|
-
...props
|
|
2146
|
-
}) {
|
|
2147
|
-
return /* @__PURE__ */ jsx(
|
|
2148
|
-
Progress$1.Track,
|
|
2149
|
-
{
|
|
2150
|
-
className: cn("a63-Progress-track", className),
|
|
2151
|
-
"data-slot": "progress-track",
|
|
2152
|
-
...props
|
|
2153
|
-
}
|
|
2154
|
-
);
|
|
2155
|
-
}
|
|
2156
|
-
function ProgressIndicator({
|
|
2157
|
-
className,
|
|
2158
|
-
...props
|
|
2159
|
-
}) {
|
|
2160
|
-
return /* @__PURE__ */ jsx(
|
|
2161
|
-
Progress$1.Indicator,
|
|
2162
|
-
{
|
|
2163
|
-
className: cn("a63-Progress-indicator", className),
|
|
2164
|
-
"data-slot": "progress-indicator",
|
|
2165
|
-
...props
|
|
2166
|
-
}
|
|
2167
|
-
);
|
|
2168
|
-
}
|
|
2169
|
-
function ProgressValue({
|
|
2170
|
-
className,
|
|
2171
|
-
...props
|
|
2172
|
-
}) {
|
|
2173
|
-
return /* @__PURE__ */ jsx(
|
|
2174
|
-
Progress$1.Value,
|
|
2175
|
-
{
|
|
2176
|
-
className: cn("a63-Progress-value", className),
|
|
2177
|
-
"data-slot": "progress-value",
|
|
2178
|
-
...props
|
|
2179
|
-
}
|
|
2180
|
-
);
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
// src/lib/merge-refs.ts
|
|
2184
|
-
function mergeRefs(...refs) {
|
|
2185
|
-
return (node) => {
|
|
2186
|
-
for (const ref of refs) {
|
|
2187
|
-
if (typeof ref === "function") {
|
|
2188
|
-
ref(node);
|
|
2189
|
-
} else if (ref) {
|
|
2190
|
-
ref.current = node;
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
};
|
|
2194
|
-
}
|
|
2195
|
-
var scrollableListControlClassNames = {
|
|
2196
|
-
button: "a63-ScrollableList-controlButton",
|
|
2197
|
-
icon: "a63-ScrollableList-controlIcon"
|
|
2198
|
-
};
|
|
2199
|
-
function ScrollableList({
|
|
2200
|
-
children,
|
|
2201
|
-
className,
|
|
2202
|
-
contentPad,
|
|
2203
|
-
controlInset,
|
|
2204
|
-
showChevrons = true,
|
|
2205
|
-
disabled = false,
|
|
2206
|
-
draggable = false,
|
|
2207
|
-
mask = true,
|
|
2208
|
-
ref,
|
|
2209
|
-
role,
|
|
2210
|
-
scrollEndLabel,
|
|
2211
|
-
scrollStartLabel,
|
|
2212
|
-
style,
|
|
2213
|
-
wrapLayoutBreakpoint,
|
|
2214
|
-
...props
|
|
2215
|
-
}) {
|
|
2216
|
-
const [canScrollStart, setCanScrollStart] = useState(false);
|
|
2217
|
-
const [canScrollEnd, setCanScrollEnd] = useState(false);
|
|
2218
|
-
const [isRtl, setIsRtl] = useState(false);
|
|
2219
|
-
const [useWrapLayout, setUseWrapLayout] = useState(false);
|
|
2220
|
-
const containerRef = useRef(null);
|
|
2221
|
-
const scrollAreaRef = useRef(null);
|
|
2222
|
-
const startButtonRef = useRef(null);
|
|
2223
|
-
const endButtonRef = useRef(null);
|
|
2224
|
-
const rootRef = useMemo(() => mergeRefs(containerRef, ref), [ref]);
|
|
2225
|
-
const getViewport = useCallback(() => {
|
|
2226
|
-
return scrollAreaRef.current?.querySelector('[data-slot="scroll-area-viewport"]');
|
|
2227
|
-
}, []);
|
|
2228
|
-
const checkScrollPosition = useCallback(() => {
|
|
2229
|
-
const viewport = getViewport();
|
|
2230
|
-
if (!viewport) return;
|
|
2231
|
-
const rtl = getComputedStyle(viewport).direction === "rtl";
|
|
2232
|
-
const { scrollLeft, scrollWidth, clientWidth } = viewport;
|
|
2233
|
-
const offset = rtl ? -scrollLeft : scrollLeft;
|
|
2234
|
-
setIsRtl(rtl);
|
|
2235
|
-
setCanScrollStart(offset > 1);
|
|
2236
|
-
setCanScrollEnd(offset < scrollWidth - clientWidth - 1);
|
|
2237
|
-
}, [getViewport]);
|
|
2238
|
-
const scrollContent = useCallback(
|
|
2239
|
-
(direction) => {
|
|
2240
|
-
const viewport = getViewport();
|
|
2241
|
-
if (!viewport) return;
|
|
2242
|
-
const scrollAmount = viewport.clientWidth * (isRtl ? -0.8 : 0.8);
|
|
2243
|
-
const targetScroll = viewport.scrollLeft + (direction === "end" ? scrollAmount : -scrollAmount);
|
|
2244
|
-
viewport.scrollTo({
|
|
2245
|
-
left: targetScroll,
|
|
2246
|
-
behavior: window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
|
|
2247
|
-
});
|
|
2248
|
-
},
|
|
2249
|
-
[getViewport, isRtl]
|
|
2250
|
-
);
|
|
2251
|
-
useEffect(() => {
|
|
2252
|
-
if (!wrapLayoutBreakpoint) return;
|
|
2253
|
-
const container = containerRef.current;
|
|
2254
|
-
if (!container) return;
|
|
2255
|
-
const checkWidth = () => {
|
|
2256
|
-
const width = container.getBoundingClientRect().width;
|
|
2257
|
-
setUseWrapLayout(width >= wrapLayoutBreakpoint);
|
|
2258
|
-
};
|
|
2259
|
-
checkWidth();
|
|
2260
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
2261
|
-
requestAnimationFrame(checkWidth);
|
|
2262
|
-
});
|
|
2263
|
-
resizeObserver.observe(container);
|
|
2264
|
-
return () => resizeObserver.disconnect();
|
|
2265
|
-
}, [wrapLayoutBreakpoint]);
|
|
2266
|
-
useEffect(() => {
|
|
2267
|
-
if (useWrapLayout) return;
|
|
2268
|
-
const immediateCheck = window.setTimeout(checkScrollPosition, 10);
|
|
2269
|
-
const delayedCheck = window.setTimeout(checkScrollPosition, 100);
|
|
2270
|
-
return () => {
|
|
2271
|
-
clearTimeout(immediateCheck);
|
|
2272
|
-
clearTimeout(delayedCheck);
|
|
2273
|
-
};
|
|
2274
|
-
}, [checkScrollPosition, useWrapLayout, children]);
|
|
2275
|
-
useEffect(() => {
|
|
2276
|
-
if (!draggable || disabled || useWrapLayout) {
|
|
2277
|
-
return;
|
|
2278
|
-
}
|
|
2279
|
-
const viewport = getViewport();
|
|
2280
|
-
if (!viewport) {
|
|
2281
|
-
return;
|
|
2282
|
-
}
|
|
2283
|
-
let isDown = false;
|
|
2284
|
-
let startX = 0;
|
|
2285
|
-
let startScroll = 0;
|
|
2286
|
-
let moved = false;
|
|
2287
|
-
const onPointerDown = (event) => {
|
|
2288
|
-
isDown = true;
|
|
2289
|
-
moved = false;
|
|
2290
|
-
startX = event.clientX;
|
|
2291
|
-
startScroll = viewport.scrollLeft;
|
|
2292
|
-
viewport.setPointerCapture?.(event.pointerId);
|
|
2293
|
-
viewport.dataset.dragging = "true";
|
|
2294
|
-
};
|
|
2295
|
-
const onPointerMove = (event) => {
|
|
2296
|
-
if (!isDown) {
|
|
2297
|
-
return;
|
|
2298
|
-
}
|
|
2299
|
-
const dx = event.clientX - startX;
|
|
2300
|
-
if (Math.abs(dx) > 3) {
|
|
2301
|
-
moved = true;
|
|
2302
|
-
}
|
|
2303
|
-
viewport.scrollLeft = startScroll - dx;
|
|
2304
|
-
};
|
|
2305
|
-
const endDrag = (event) => {
|
|
2306
|
-
if (!isDown) {
|
|
2307
|
-
return;
|
|
2308
|
-
}
|
|
2309
|
-
isDown = false;
|
|
2310
|
-
viewport.dataset.dragging = "";
|
|
2311
|
-
viewport.releasePointerCapture?.(event.pointerId);
|
|
2312
|
-
};
|
|
2313
|
-
const onClickCapture = (event) => {
|
|
2314
|
-
if (moved) {
|
|
2315
|
-
event.stopPropagation();
|
|
2316
|
-
event.preventDefault();
|
|
2317
|
-
moved = false;
|
|
2318
|
-
}
|
|
2319
|
-
};
|
|
2320
|
-
viewport.addEventListener("pointerdown", onPointerDown);
|
|
2321
|
-
viewport.addEventListener("pointermove", onPointerMove);
|
|
2322
|
-
viewport.addEventListener("pointerup", endDrag);
|
|
2323
|
-
viewport.addEventListener("pointercancel", endDrag);
|
|
2324
|
-
viewport.addEventListener("click", onClickCapture, true);
|
|
2325
|
-
return () => {
|
|
2326
|
-
viewport.removeEventListener("pointerdown", onPointerDown);
|
|
2327
|
-
viewport.removeEventListener("pointermove", onPointerMove);
|
|
2328
|
-
viewport.removeEventListener("pointerup", endDrag);
|
|
2329
|
-
viewport.removeEventListener("pointercancel", endDrag);
|
|
2330
|
-
viewport.removeEventListener("click", onClickCapture, true);
|
|
2331
|
-
};
|
|
2332
|
-
}, [disabled, draggable, useWrapLayout, getViewport]);
|
|
2333
|
-
useEffect(() => {
|
|
2334
|
-
if (useWrapLayout) return;
|
|
2335
|
-
const viewport = getViewport();
|
|
2336
|
-
if (!viewport) return;
|
|
2337
|
-
checkScrollPosition();
|
|
2338
|
-
viewport.addEventListener("scroll", checkScrollPosition);
|
|
2339
|
-
const resizeObserver = new ResizeObserver(checkScrollPosition);
|
|
2340
|
-
resizeObserver.observe(viewport);
|
|
2341
|
-
const contentContainer = viewport.querySelector(":scope > *");
|
|
2342
|
-
if (contentContainer) {
|
|
2343
|
-
resizeObserver.observe(contentContainer);
|
|
2344
|
-
}
|
|
2345
|
-
return () => {
|
|
2346
|
-
viewport.removeEventListener("scroll", checkScrollPosition);
|
|
2347
|
-
resizeObserver.disconnect();
|
|
2348
|
-
};
|
|
2349
|
-
}, [checkScrollPosition, getViewport, useWrapLayout]);
|
|
2350
|
-
useLayoutEffect(() => {
|
|
2351
|
-
const active = document.activeElement;
|
|
2352
|
-
if (!canScrollEnd && canScrollStart && active === endButtonRef.current) {
|
|
2353
|
-
startButtonRef.current?.focus();
|
|
2354
|
-
} else if (!canScrollStart && canScrollEnd && active === startButtonRef.current) {
|
|
2355
|
-
endButtonRef.current?.focus();
|
|
2356
|
-
}
|
|
2357
|
-
}, [canScrollEnd, canScrollStart]);
|
|
2358
|
-
const bleedStyle = contentPad || controlInset ? {
|
|
2359
|
-
...contentPad ? { "--scrollable-list-content-pad": contentPad } : null,
|
|
2360
|
-
...controlInset ? { "--scrollable-list-control-inset": controlInset } : null,
|
|
2361
|
-
...style
|
|
2362
|
-
} : style;
|
|
2363
|
-
const rootRole = role ?? (props["aria-label"] || props["aria-labelledby"] ? "group" : void 0);
|
|
2364
|
-
if (wrapLayoutBreakpoint && useWrapLayout) {
|
|
2365
|
-
return /* @__PURE__ */ jsx(
|
|
2366
|
-
"div",
|
|
2367
|
-
{
|
|
2368
|
-
...props,
|
|
2369
|
-
className: cn("a63-ScrollableList", className),
|
|
2370
|
-
"data-disabled": disabled || void 0,
|
|
2371
|
-
"data-slot": "scrollable-list",
|
|
2372
|
-
ref: rootRef,
|
|
2373
|
-
role: rootRole,
|
|
2374
|
-
style: bleedStyle,
|
|
2375
|
-
children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
|
|
2376
|
-
}
|
|
2377
|
-
);
|
|
2378
|
-
}
|
|
2379
|
-
return /* @__PURE__ */ jsx(
|
|
2380
|
-
"div",
|
|
2381
|
-
{
|
|
2382
|
-
...props,
|
|
2383
|
-
className: cn("a63-ScrollableList", className),
|
|
2384
|
-
"data-disabled": disabled || void 0,
|
|
2385
|
-
"data-draggable": draggable || void 0,
|
|
2386
|
-
"data-slot": "scrollable-list",
|
|
2387
|
-
ref: rootRef,
|
|
2388
|
-
role: rootRole,
|
|
2389
|
-
style: bleedStyle,
|
|
2390
|
-
children: /* @__PURE__ */ jsxs("div", { className: "a63-ScrollableList-frame", "data-slot": "scrollable-list-frame", children: [
|
|
2391
|
-
/* @__PURE__ */ jsx(
|
|
2392
|
-
ScrollArea,
|
|
2393
|
-
{
|
|
2394
|
-
className: "[&_[data-slot=scroll-area-scrollbar][data-orientation=vertical]]:hidden",
|
|
2395
|
-
ref: scrollAreaRef,
|
|
2396
|
-
scrollFade: mask,
|
|
2397
|
-
viewportProps: { style: { overflowY: "hidden" } },
|
|
2398
|
-
children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
|
|
2399
|
-
}
|
|
2400
|
-
),
|
|
2401
|
-
showChevrons && !disabled && /* @__PURE__ */ jsx(
|
|
2402
|
-
"div",
|
|
2403
|
-
{
|
|
2404
|
-
className: "a63-ScrollableList-control",
|
|
2405
|
-
"data-side": "start",
|
|
2406
|
-
"data-slot": "scrollable-list-control",
|
|
2407
|
-
"data-visible": canScrollStart || void 0,
|
|
2408
|
-
inert: !canScrollStart,
|
|
2409
|
-
children: /* @__PURE__ */ jsx(
|
|
2410
|
-
Button,
|
|
2411
|
-
{
|
|
2412
|
-
"aria-label": scrollStartLabel ?? (isRtl ? "Scroll right" : "Scroll left"),
|
|
2413
|
-
className: scrollableListControlClassNames.button,
|
|
2414
|
-
onClick: () => scrollContent("start"),
|
|
2415
|
-
ref: startButtonRef,
|
|
2416
|
-
size: "icon-lg",
|
|
2417
|
-
type: "button",
|
|
2418
|
-
variant: "secondary",
|
|
2419
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: scrollableListControlClassNames.icon })
|
|
2420
|
-
}
|
|
2421
|
-
)
|
|
2422
|
-
}
|
|
2423
|
-
),
|
|
2424
|
-
showChevrons && !disabled && /* @__PURE__ */ jsx(
|
|
2425
|
-
"div",
|
|
2426
|
-
{
|
|
2427
|
-
className: "a63-ScrollableList-control",
|
|
2428
|
-
"data-side": "end",
|
|
2429
|
-
"data-slot": "scrollable-list-control",
|
|
2430
|
-
"data-visible": canScrollEnd || void 0,
|
|
2431
|
-
inert: !canScrollEnd,
|
|
2432
|
-
children: /* @__PURE__ */ jsx(
|
|
2433
|
-
Button,
|
|
2434
|
-
{
|
|
2435
|
-
"aria-label": scrollEndLabel ?? (isRtl ? "Scroll left" : "Scroll right"),
|
|
2436
|
-
className: scrollableListControlClassNames.button,
|
|
2437
|
-
onClick: () => scrollContent("end"),
|
|
2438
|
-
ref: endButtonRef,
|
|
2439
|
-
size: "icon-lg",
|
|
2440
|
-
type: "button",
|
|
2441
|
-
variant: "secondary",
|
|
2442
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: scrollableListControlClassNames.icon })
|
|
2443
|
-
}
|
|
2444
|
-
)
|
|
2445
|
-
}
|
|
2446
|
-
)
|
|
2447
|
-
] })
|
|
2448
|
-
}
|
|
2449
|
-
);
|
|
2450
|
-
}
|
|
2451
|
-
var Select = Select$1.Root;
|
|
2452
|
-
var selectTriggerDefaultClassName = "a63-Select-trigger";
|
|
2453
|
-
function SelectTrigger({
|
|
2454
|
-
"aria-invalid": ariaInvalid,
|
|
2455
|
-
children,
|
|
2456
|
-
className,
|
|
2457
|
-
invalid = false,
|
|
2458
|
-
size = selectContract.defaultSize,
|
|
2459
|
-
...props
|
|
2460
|
-
}) {
|
|
2461
|
-
const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
|
|
2462
|
-
return /* @__PURE__ */ jsxs(
|
|
2463
|
-
Select$1.Trigger,
|
|
2464
|
-
{
|
|
2465
|
-
"aria-invalid": isInvalid ? true : ariaInvalid,
|
|
2466
|
-
className: cn(selectTriggerDefaultClassName, className),
|
|
2467
|
-
"data-size": size,
|
|
2468
|
-
"data-slot": "select-trigger",
|
|
2469
|
-
...isInvalid ? { "data-invalid": "" } : null,
|
|
2470
|
-
...props,
|
|
2471
|
-
children: [
|
|
2472
|
-
children,
|
|
2473
|
-
/* @__PURE__ */ jsx(Select$1.Icon, { className: "a63-Select-icon", "data-slot": "select-icon", children: /* @__PURE__ */ jsx(ChevronsUpDown, { "aria-hidden": "true" }) })
|
|
2474
|
-
]
|
|
2475
|
-
}
|
|
2476
|
-
);
|
|
2477
|
-
}
|
|
2478
|
-
function SelectValue({
|
|
2479
|
-
className,
|
|
2480
|
-
...props
|
|
2481
|
-
}) {
|
|
2482
|
-
return /* @__PURE__ */ jsx(
|
|
2483
|
-
Select$1.Value,
|
|
2484
|
-
{
|
|
2485
|
-
className: cn("a63-Select-value", className),
|
|
2486
|
-
"data-slot": "select-value",
|
|
2487
|
-
...props
|
|
2488
|
-
}
|
|
2489
|
-
);
|
|
2490
|
-
}
|
|
2491
|
-
function SelectPopup({
|
|
2492
|
-
children,
|
|
2493
|
-
className,
|
|
2494
|
-
listClassName,
|
|
2495
|
-
portalContainer,
|
|
2496
|
-
sideOffset = 4,
|
|
2497
|
-
alignItemWithTrigger = true,
|
|
2498
|
-
...props
|
|
2499
|
-
}) {
|
|
2500
|
-
const contextPortalContainer = usePortalContainer();
|
|
2501
|
-
const container = portalContainer ?? contextPortalContainer;
|
|
2502
|
-
return /* @__PURE__ */ jsx(Select$1.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
2503
|
-
Select$1.Positioner,
|
|
2504
|
-
{
|
|
2505
|
-
alignItemWithTrigger,
|
|
2506
|
-
className: "a63-Select-positioner",
|
|
2507
|
-
"data-slot": "select-positioner",
|
|
2508
|
-
sideOffset,
|
|
2509
|
-
children: /* @__PURE__ */ jsxs(
|
|
2510
|
-
Select$1.Popup,
|
|
2511
|
-
{
|
|
2512
|
-
className: cn("a63-Select-popup", className),
|
|
2513
|
-
"data-slot": "select-popup",
|
|
2514
|
-
...props,
|
|
2515
|
-
children: [
|
|
2516
|
-
/* @__PURE__ */ jsx(
|
|
2517
|
-
Select$1.ScrollUpArrow,
|
|
2518
|
-
{
|
|
2519
|
-
className: "a63-Select-scroll-arrow",
|
|
2520
|
-
"data-slot": "select-scroll-up-arrow",
|
|
2521
|
-
children: /* @__PURE__ */ jsx(ChevronUp, { "aria-hidden": "true" })
|
|
2522
|
-
}
|
|
2523
|
-
),
|
|
2524
|
-
/* @__PURE__ */ jsx("div", { className: "a63-Select-surface a63-Menu-popup", "data-slot": "select-surface", children: /* @__PURE__ */ jsx(
|
|
2525
|
-
Select$1.List,
|
|
2526
|
-
{
|
|
2527
|
-
className: cn("a63-Select-list", listClassName),
|
|
2528
|
-
"data-slot": "select-list",
|
|
2529
|
-
children
|
|
2530
|
-
}
|
|
2531
|
-
) }),
|
|
2532
|
-
/* @__PURE__ */ jsx(
|
|
2533
|
-
Select$1.ScrollDownArrow,
|
|
2534
|
-
{
|
|
2535
|
-
className: "a63-Select-scroll-arrow",
|
|
2536
|
-
"data-slot": "select-scroll-down-arrow",
|
|
2537
|
-
children: /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true" })
|
|
2538
|
-
}
|
|
2539
|
-
)
|
|
2540
|
-
]
|
|
2541
|
-
}
|
|
2542
|
-
)
|
|
2543
|
-
}
|
|
2544
|
-
) });
|
|
2545
|
-
}
|
|
2546
|
-
function SelectItem({
|
|
2547
|
-
children,
|
|
2548
|
-
className,
|
|
2549
|
-
...props
|
|
2550
|
-
}) {
|
|
2551
|
-
return /* @__PURE__ */ jsxs(
|
|
2552
|
-
Select$1.Item,
|
|
2553
|
-
{
|
|
2554
|
-
className: cn("a63-Menu-item", "a63-Select-item", className),
|
|
2555
|
-
"data-slot": "select-item",
|
|
2556
|
-
...props,
|
|
2557
|
-
children: [
|
|
2558
|
-
/* @__PURE__ */ jsx(
|
|
2559
|
-
Select$1.ItemIndicator,
|
|
2560
|
-
{
|
|
2561
|
-
className: "a63-Select-item-indicator",
|
|
2562
|
-
"data-slot": "select-item-indicator",
|
|
2563
|
-
children: /* @__PURE__ */ jsx(Check, { "aria-hidden": "true" })
|
|
2564
|
-
}
|
|
2565
|
-
),
|
|
2566
|
-
/* @__PURE__ */ jsx(Select$1.ItemText, { className: "a63-Select-item-text", "data-slot": "select-item-text", children })
|
|
2567
|
-
]
|
|
2568
|
-
}
|
|
2569
|
-
);
|
|
2570
|
-
}
|
|
2571
|
-
function SelectSeparator({
|
|
2572
|
-
className,
|
|
2573
|
-
...props
|
|
2574
|
-
}) {
|
|
2575
|
-
return /* @__PURE__ */ jsx(
|
|
2576
|
-
Select$1.Separator,
|
|
2577
|
-
{
|
|
2578
|
-
"aria-orientation": void 0,
|
|
2579
|
-
className: cn("a63-Menu-separator", "a63-Select-separator", className),
|
|
2580
|
-
"data-slot": "select-separator",
|
|
2581
|
-
role: "none",
|
|
2582
|
-
...props
|
|
2583
|
-
}
|
|
2584
|
-
);
|
|
2585
|
-
}
|
|
2586
|
-
function SelectGroup(props) {
|
|
2587
|
-
return /* @__PURE__ */ jsx(Select$1.Group, { "data-slot": "select-group", ...props });
|
|
2588
|
-
}
|
|
2589
|
-
function SelectGroupLabel({
|
|
2590
|
-
className,
|
|
2591
|
-
...props
|
|
2592
|
-
}) {
|
|
2593
|
-
return /* @__PURE__ */ jsx(
|
|
2594
|
-
Select$1.GroupLabel,
|
|
2595
|
-
{
|
|
2596
|
-
className: cn("a63-Menu-label", "a63-Select-group-label", className),
|
|
2597
|
-
"data-slot": "select-group-label",
|
|
2598
|
-
...props
|
|
2599
|
-
}
|
|
2600
|
-
);
|
|
2601
|
-
}
|
|
2602
|
-
var SelectContent = SelectPopup;
|
|
2603
|
-
var openSheetCount = 0;
|
|
2604
|
-
function setSheetBodyState(open) {
|
|
2605
|
-
openSheetCount = Math.max(0, openSheetCount + (open ? 1 : -1));
|
|
2606
|
-
document.body.toggleAttribute("data-sheet-open", openSheetCount > 0);
|
|
2607
|
-
}
|
|
2608
|
-
function Sheet({ onOpenChange, open, defaultOpen, ...props }) {
|
|
2609
|
-
const isControlled = open !== void 0;
|
|
2610
|
-
const bodyStateRef = React2.useRef(false);
|
|
2611
|
-
const syncBodyState = React2.useCallback((nextOpen) => {
|
|
2612
|
-
if (bodyStateRef.current === nextOpen) return;
|
|
2613
|
-
bodyStateRef.current = nextOpen;
|
|
2614
|
-
setSheetBodyState(nextOpen);
|
|
2615
|
-
}, []);
|
|
2616
|
-
React2.useEffect(() => {
|
|
2617
|
-
if (isControlled) syncBodyState(open);
|
|
2618
|
-
}, [isControlled, open, syncBodyState]);
|
|
2619
|
-
React2.useEffect(() => {
|
|
2620
|
-
if (!isControlled && defaultOpen) syncBodyState(true);
|
|
2621
|
-
return () => syncBodyState(false);
|
|
2622
|
-
}, [defaultOpen, isControlled, syncBodyState]);
|
|
2623
|
-
const handleOpenChange = (open2, eventDetails) => {
|
|
2624
|
-
if (!isControlled) syncBodyState(open2);
|
|
2625
|
-
onOpenChange?.(open2, eventDetails);
|
|
2626
|
-
};
|
|
2627
|
-
return /* @__PURE__ */ jsx(
|
|
2628
|
-
Dialog$1.Root,
|
|
2629
|
-
{
|
|
2630
|
-
"data-slot": "sheet",
|
|
2631
|
-
defaultOpen,
|
|
2632
|
-
onOpenChange: handleOpenChange,
|
|
2633
|
-
open,
|
|
2634
|
-
...props
|
|
2635
|
-
}
|
|
2636
|
-
);
|
|
2637
|
-
}
|
|
2638
|
-
function SheetPortal(props) {
|
|
2639
|
-
const { container, ...portalProps } = props;
|
|
2640
|
-
const contextPortalContainer = usePortalContainer();
|
|
2641
|
-
return /* @__PURE__ */ jsx(
|
|
2642
|
-
Dialog$1.Portal,
|
|
2643
|
-
{
|
|
2644
|
-
container: container ?? contextPortalContainer,
|
|
2645
|
-
"data-slot": "sheet-portal",
|
|
2646
|
-
...portalProps
|
|
2647
|
-
}
|
|
2648
|
-
);
|
|
2649
|
-
}
|
|
2650
|
-
function SheetTrigger({
|
|
2651
|
-
className,
|
|
2652
|
-
...props
|
|
2653
|
-
}) {
|
|
2654
|
-
return /* @__PURE__ */ jsx(Dialog$1.Trigger, { className, "data-slot": "sheet-trigger", ...props });
|
|
2655
|
-
}
|
|
2656
|
-
function SheetClose({
|
|
2657
|
-
className,
|
|
2658
|
-
...props
|
|
2659
|
-
}) {
|
|
2660
|
-
return /* @__PURE__ */ jsx(Dialog$1.Close, { className, "data-slot": "sheet-close", ...props });
|
|
2661
|
-
}
|
|
2662
|
-
function SheetBackdrop({
|
|
2663
|
-
className,
|
|
2664
|
-
...props
|
|
2665
|
-
}) {
|
|
2666
|
-
return /* @__PURE__ */ jsx(
|
|
2667
|
-
Dialog$1.Backdrop,
|
|
2668
|
-
{
|
|
2669
|
-
className: cn("a63-Sheet-backdrop", className),
|
|
2670
|
-
"data-slot": "sheet-backdrop",
|
|
2671
|
-
...props
|
|
2672
|
-
}
|
|
2673
|
-
);
|
|
2674
|
-
}
|
|
2675
|
-
function SheetViewport({
|
|
2676
|
-
className,
|
|
2677
|
-
side = sheetContract.defaultSide,
|
|
2678
|
-
variant = sheetContract.defaultVariant,
|
|
2679
|
-
...props
|
|
2680
|
-
}) {
|
|
2681
|
-
return /* @__PURE__ */ jsx(
|
|
2682
|
-
Dialog$1.Viewport,
|
|
2683
|
-
{
|
|
2684
|
-
className: cn("a63-Sheet-viewport", className),
|
|
2685
|
-
"data-side": side,
|
|
2686
|
-
"data-slot": "sheet-viewport",
|
|
2687
|
-
"data-variant": variant,
|
|
2688
|
-
...props
|
|
2689
|
-
}
|
|
2690
|
-
);
|
|
2691
|
-
}
|
|
2692
|
-
function SheetPopup({
|
|
2693
|
-
className,
|
|
2694
|
-
children,
|
|
2695
|
-
showCloseButton = true,
|
|
2696
|
-
side = sheetContract.defaultSide,
|
|
2697
|
-
variant = sheetContract.defaultVariant,
|
|
2698
|
-
closeProps,
|
|
2699
|
-
portalProps,
|
|
2700
|
-
...props
|
|
2701
|
-
}) {
|
|
2702
|
-
return /* @__PURE__ */ jsxs(SheetPortal, { ...portalProps, children: [
|
|
2703
|
-
/* @__PURE__ */ jsx(SheetBackdrop, {}),
|
|
2704
|
-
/* @__PURE__ */ jsx(SheetViewport, { side, variant, children: /* @__PURE__ */ jsxs(
|
|
2705
|
-
Dialog$1.Popup,
|
|
2706
|
-
{
|
|
2707
|
-
className: cn("a63-Sheet-popup", className),
|
|
2708
|
-
"data-side": side,
|
|
2709
|
-
"data-slot": "sheet-popup",
|
|
2710
|
-
"data-variant": variant,
|
|
2711
|
-
...props,
|
|
2712
|
-
children: [
|
|
2713
|
-
children,
|
|
2714
|
-
showCloseButton && /* @__PURE__ */ jsx(
|
|
2715
|
-
Dialog$1.Close,
|
|
2716
|
-
{
|
|
2717
|
-
"aria-label": "Close",
|
|
2718
|
-
className: "a63-Sheet-close-button",
|
|
2719
|
-
"data-slot": "sheet-close-button",
|
|
2720
|
-
render: /* @__PURE__ */ jsx(Button, { size: "icon", variant: "ghost" }),
|
|
2721
|
-
...closeProps,
|
|
2722
|
-
children: closeProps?.children ?? /* @__PURE__ */ jsx(X, { "aria-hidden": "true" })
|
|
2723
|
-
}
|
|
2724
|
-
)
|
|
2725
|
-
]
|
|
2726
|
-
}
|
|
2727
|
-
) })
|
|
2728
|
-
] });
|
|
2729
|
-
}
|
|
2730
|
-
function SheetHeader({
|
|
2731
|
-
className,
|
|
2732
|
-
render,
|
|
2733
|
-
...props
|
|
2734
|
-
}) {
|
|
2735
|
-
const defaultProps = {
|
|
2736
|
-
className: cn("a63-Sheet-header", className),
|
|
2737
|
-
"data-slot": "sheet-header"
|
|
2738
|
-
};
|
|
2739
|
-
return useRender({
|
|
2740
|
-
defaultTagName: "div",
|
|
2741
|
-
props: mergeProps(defaultProps, props),
|
|
2742
|
-
render
|
|
2743
|
-
});
|
|
2744
|
-
}
|
|
2745
|
-
function SheetFooter({
|
|
2746
|
-
className,
|
|
2747
|
-
variant = sheetContract.defaultFooterVariant,
|
|
2748
|
-
render,
|
|
2749
|
-
...props
|
|
2750
|
-
}) {
|
|
2751
|
-
const defaultProps = {
|
|
2752
|
-
className: cn("a63-Sheet-footer", className),
|
|
2753
|
-
"data-slot": "sheet-footer",
|
|
2754
|
-
"data-variant": variant
|
|
2755
|
-
};
|
|
2756
|
-
return useRender({
|
|
2757
|
-
defaultTagName: "div",
|
|
2758
|
-
props: mergeProps(defaultProps, props),
|
|
2759
|
-
render
|
|
2760
|
-
});
|
|
2761
|
-
}
|
|
2762
|
-
function SheetTitle({
|
|
2763
|
-
className,
|
|
2764
|
-
...props
|
|
2765
|
-
}) {
|
|
2766
|
-
return /* @__PURE__ */ jsx(
|
|
2767
|
-
Dialog$1.Title,
|
|
2768
|
-
{
|
|
2769
|
-
className: cn("a63-Sheet-title", className),
|
|
2770
|
-
"data-slot": "sheet-title",
|
|
2771
|
-
...props
|
|
2772
|
-
}
|
|
2773
|
-
);
|
|
2774
|
-
}
|
|
2775
|
-
function SheetDescription({
|
|
2776
|
-
className,
|
|
2777
|
-
...props
|
|
2778
|
-
}) {
|
|
2779
|
-
return /* @__PURE__ */ jsx(
|
|
2780
|
-
Dialog$1.Description,
|
|
2781
|
-
{
|
|
2782
|
-
className: cn("a63-Sheet-description", className),
|
|
2783
|
-
"data-slot": "sheet-description",
|
|
2784
|
-
...props
|
|
2785
|
-
}
|
|
2786
|
-
);
|
|
2787
|
-
}
|
|
2788
|
-
function SheetPanel({
|
|
2789
|
-
className,
|
|
2790
|
-
scrollFade = true,
|
|
2791
|
-
render,
|
|
2792
|
-
...props
|
|
2793
|
-
}) {
|
|
2794
|
-
const defaultProps = {
|
|
2795
|
-
className: cn("a63-Sheet-panel", className),
|
|
2796
|
-
"data-slot": "sheet-panel"
|
|
2797
|
-
};
|
|
2798
|
-
return /* @__PURE__ */ jsx(ScrollArea, { scrollFade, children: useRender({
|
|
2799
|
-
defaultTagName: "div",
|
|
2800
|
-
props: mergeProps(defaultProps, props),
|
|
2801
|
-
render
|
|
2802
|
-
}) });
|
|
2803
|
-
}
|
|
2804
|
-
var TooltipCreateHandle = Tooltip$1.createHandle;
|
|
2805
|
-
var TooltipProvider = Tooltip$1.Provider;
|
|
2806
|
-
var Tooltip = Tooltip$1.Root;
|
|
2807
|
-
function TooltipTrigger(props) {
|
|
2808
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
2809
|
-
}
|
|
2810
|
-
function TooltipPopup({
|
|
2811
|
-
align = "center",
|
|
2812
|
-
anchor,
|
|
2813
|
-
children,
|
|
2814
|
-
className,
|
|
2815
|
-
portalProps,
|
|
2816
|
-
side = "top",
|
|
2817
|
-
sideOffset = 4,
|
|
2818
|
-
...props
|
|
2819
|
-
}) {
|
|
2820
|
-
const contextPortalContainer = usePortalContainer();
|
|
2821
|
-
const container = portalProps?.container ?? contextPortalContainer;
|
|
2822
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { ...portalProps, container, children: /* @__PURE__ */ jsx(
|
|
2823
|
-
Tooltip$1.Positioner,
|
|
2824
|
-
{
|
|
2825
|
-
align,
|
|
2826
|
-
anchor,
|
|
2827
|
-
className: "a63-Tooltip-positioner",
|
|
2828
|
-
"data-slot": "tooltip-positioner",
|
|
2829
|
-
side,
|
|
2830
|
-
sideOffset,
|
|
2831
|
-
children: /* @__PURE__ */ jsx(
|
|
2832
|
-
Tooltip$1.Popup,
|
|
2833
|
-
{
|
|
2834
|
-
className: cn("a63-Tooltip-popup", className),
|
|
2835
|
-
"data-slot": "tooltip-popup",
|
|
2836
|
-
...props,
|
|
2837
|
-
children: /* @__PURE__ */ jsx(Tooltip$1.Viewport, { className: "a63-Tooltip-viewport", "data-slot": "tooltip-viewport", children })
|
|
2838
|
-
}
|
|
2839
|
-
)
|
|
2840
|
-
}
|
|
2841
|
-
) });
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2844
|
-
export { AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogPopup, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, ButtonGroup, ButtonGroupProvider, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardCursorLabel, CardDescription, CardFooter, CardHeader, CardLabel, CardMedia, CardMediaOverlay, CardMediaOverlayBottom, CardMediaOverlayIconButton, CardMediaOverlayImage, CardMediaOverlayScrim, CardMediaOverlayTopRight, CardTags, CardTitle, Command, CommandCollection, CommandCreateHandle, CommandDialog, CommandDialogBackdrop, CommandDialogPopup, CommandDialogPortal, CommandDialogTrigger, CommandDialogViewport, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, Dialog, DialogBackdrop, DialogClose, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogPopup, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ScrollableList, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, Textarea, Tooltip, TooltipCreateHandle, TooltipPopup, TooltipProvider, TooltipTrigger, cardLinkClassName, getReactRendererConformance, mergeRefs, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor };
|
|
2845
|
-
//# sourceMappingURL=chunk-RLF45GBS.js.map
|
|
2846
|
-
//# sourceMappingURL=chunk-RLF45GBS.js.map
|