@optiaxiom/react 1.8.7 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Calendar-C5DUpWvD.js → Textarea-DisYXvwB.js} +704 -201
- package/dist/cjs/assets/src/actions/ActionsContent.css.ts.vanilla-DFcH3jAM.css +22 -0
- package/dist/cjs/assets/src/alert/Alert.css.ts.vanilla-DEKCXugb.css +6 -0
- package/dist/cjs/assets/src/alert-dialog/AlertDialogContent.css.ts.vanilla-BPdVG04o.css +30 -0
- package/dist/{esm/assets/src/alert-dialog/AlertDialogFooter.css.ts.vanilla-BzhwQJON.css → cjs/assets/src/alert-dialog/AlertDialogFooter.css.ts.vanilla-DZEY23Io.css} +3 -3
- package/dist/cjs/assets/src/alert-dialog/AlertDialogHeader.css.ts.vanilla-DOCF4rOu.css +7 -0
- package/dist/cjs/assets/src/avatar/{Avatar.css.ts.vanilla-CzP-Y7Pp.css → Avatar.css.ts.vanilla-C76aUSqs.css} +18 -18
- package/dist/{esm/assets/src/backdrop/Backdrop.css.ts.vanilla-BcmQPPUe.css → cjs/assets/src/backdrop/Backdrop.css.ts.vanilla-CNEJYOtT.css} +3 -3
- package/dist/cjs/assets/src/badge/Badge.css.ts.vanilla-C3pIGqfb.css +51 -0
- package/dist/cjs/assets/src/banner/Banner.css.ts.vanilla-C-iiirtD.css +6 -0
- package/dist/{esm/assets/src/box/Box.css.ts.vanilla-DUz-5y2w.css → cjs/assets/src/box/Box.css.ts.vanilla-DrTr7HOZ.css} +21 -21
- package/dist/cjs/assets/src/breadcrumb/{Breadcrumb.css.ts.vanilla-VT5LasnM.css → Breadcrumb.css.ts.vanilla-TFz3v1wc.css} +6 -6
- package/dist/cjs/assets/src/breadcrumb/{BreadcrumbNode.css.ts.vanilla-CPJC9wAc.css → BreadcrumbNode.css.ts.vanilla-DwVRUOjS.css} +4 -4
- package/dist/cjs/assets/src/button/ButtonLoadable.css.ts.vanilla-vG6De9AB.css +9 -0
- package/dist/cjs/assets/src/button/ButtonRoot.css.ts.vanilla-CpaCqK7r.css +224 -0
- package/dist/cjs/assets/src/calendar/Calendar.css.ts.vanilla-B6erZYOC.css +6 -0
- package/dist/{esm/assets/src/calendar/CalendarDayButton.css.ts.vanilla-B7YdTf6M.css → cjs/assets/src/calendar/CalendarDayButton.css.ts.vanilla-Bt_JPzry.css} +24 -24
- package/dist/cjs/assets/src/calendar/CalendarGrid.css.ts.vanilla-CdkqDEOm.css +7 -0
- package/dist/cjs/assets/src/calendar/CalendarMonths.css.ts.vanilla-DHBgPvJ7.css +6 -0
- package/dist/cjs/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-CWHqnCfU.css +8 -0
- package/dist/cjs/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-BXE9ThZ4.css +8 -0
- package/dist/cjs/assets/src/card/Card.css.ts.vanilla-6B1Zt0xh.css +8 -0
- package/dist/{esm/assets/src/card/CardCheckbox.css.ts.vanilla-DLd3oS_Y.css → cjs/assets/src/card/CardCheckbox.css.ts.vanilla-DdHH54zv.css} +4 -4
- package/dist/cjs/assets/src/card/CardHeader.css.ts.vanilla-CFOfCFv3.css +15 -0
- package/dist/{esm/assets/src/card/CardPreview.css.ts.vanilla-ChoS0z7r.css → cjs/assets/src/card/CardPreview.css.ts.vanilla-CTfTyliN.css} +4 -4
- package/dist/cjs/assets/src/checkbox/{CheckboxControl.css.ts.vanilla-AZKbaGoY.css → CheckboxControl.css.ts.vanilla-Ca8pC30f.css} +7 -7
- package/dist/cjs/assets/src/code/Code.css.ts.vanilla-DSe-VZHU.css +10 -0
- package/dist/cjs/assets/src/command/CommandItem.css.ts.vanilla-C-4_R2Is.css +6 -0
- package/dist/cjs/assets/src/cover/Cover.css.ts.vanilla-BY12GJ4k.css +34 -0
- package/dist/cjs/assets/src/data-table/DataTableBody.css.ts.vanilla-iahXDswM.css +71 -0
- package/dist/cjs/assets/src/data-table/DataTableFooter.css.ts.vanilla-CMoSF7Om.css +6 -0
- package/dist/{esm/assets/src/data-table/DataTableHeaderCell.css.ts.vanilla-2YyCjtE-.css → cjs/assets/src/data-table/DataTableHeaderCell.css.ts.vanilla-z6nZcCW8.css} +9 -9
- package/dist/cjs/assets/src/date-input/DateInput.css.ts.vanilla-BJ194j0L.css +15 -0
- package/dist/cjs/assets/src/details-panel/{DetailsPanel.css.ts.vanilla-BxrZkZJ1.css → DetailsPanel.css.ts.vanilla-VoFdQA7k.css} +4 -4
- package/dist/cjs/assets/src/details-panel/DetailsPanelFooter.css.ts.vanilla-BGGOeU4-.css +7 -0
- package/dist/cjs/assets/src/details-panel/DetailsPanelHeader.css.ts.vanilla-Wab_fAfb.css +8 -0
- package/dist/cjs/assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css +4 -0
- package/dist/cjs/assets/src/dialog/{DialogContent.css.ts.vanilla-CNMpefic.css → DialogContent.css.ts.vanilla-CziQxeOs.css} +14 -14
- package/dist/cjs/assets/src/dialog/DialogFooter.css.ts.vanilla-DF-A3sdc.css +7 -0
- package/dist/cjs/assets/src/dialog/DialogHeader.css.ts.vanilla-ihfhiAFh.css +19 -0
- package/dist/{esm/assets/src/disclosure/DisclosureContent.css.ts.vanilla-7dLbxCDB.css → cjs/assets/src/disclosure/DisclosureContent.css.ts.vanilla-D4xqtFkK.css} +6 -6
- package/dist/{esm/assets/src/disclosure/DisclosureTrigger.css.ts.vanilla-C0pZWOAN.css → cjs/assets/src/disclosure/DisclosureTrigger.css.ts.vanilla-Dzksz6eR.css} +7 -7
- package/dist/cjs/assets/src/file-upload/FileUpload.css.ts.vanilla-IvjPsVWh.css +6 -0
- package/dist/cjs/assets/src/file-upload/{FileUploadDropzone.css.ts.vanilla-D4lUOAd1.css → FileUploadDropzone.css.ts.vanilla-DbagyNcT.css} +9 -9
- package/dist/cjs/assets/src/highlight/Highlight.css.ts.vanilla-CLXs_VaN.css +7 -0
- package/dist/cjs/assets/src/hover-card/HoverCardTrigger.css.ts.vanilla-CsmsV3v-.css +6 -0
- package/dist/cjs/assets/src/indicator/Indicator.css.ts.vanilla-B4lAo7Jo.css +36 -0
- package/dist/cjs/assets/src/inline-input/{InlineInput.css.ts.vanilla-CCBUdzaJ.css → InlineInput.css.ts.vanilla-Dk5Tbevb.css} +4 -4
- package/dist/cjs/assets/src/input/Input.css.ts.vanilla-ByjwzT6K.css +9 -0
- package/dist/cjs/assets/src/input/{InputControl.css.ts.vanilla-C0up4OSD.css → InputControl.css.ts.vanilla-Bn84cpIc.css} +8 -8
- package/dist/cjs/assets/src/input/InputRoot.css.ts.vanilla-GUX2WLT1.css +71 -0
- package/dist/cjs/assets/src/kbd/{Kbd.css.ts.vanilla-B4bry3mm.css → Kbd.css.ts.vanilla-Bdt8rCrw.css} +3 -3
- package/dist/cjs/assets/src/label-menu-button/LabelMenuButton.css.ts.vanilla-D_MF910-.css +7 -0
- package/dist/cjs/assets/src/layers/layers.css.ts.vanilla-B_jLTKAn.css +1 -0
- package/dist/{esm/assets/src/layout/Layout.css.ts.vanilla-K4pacfN-.css → cjs/assets/src/layout/Layout.css.ts.vanilla-DM52TWOG.css} +5 -5
- package/dist/cjs/assets/src/layout/LayoutContent.css.ts.vanilla-sFEYB-l7.css +6 -0
- package/dist/{esm/assets/src/link/Link.css.ts.vanilla-DdKG9IpT.css → cjs/assets/src/link/Link.css.ts.vanilla-cndkzeiv.css} +13 -13
- package/dist/cjs/assets/src/listbox/ListboxCheckboxItem.css.ts.vanilla-BxXbrOvd.css +11 -0
- package/dist/cjs/assets/src/listbox/ListboxItem.css.ts.vanilla-wXOfYTD5.css +52 -0
- package/dist/cjs/assets/src/listbox/{ListboxItemIndicator.css.ts.vanilla-Cv7A9E_B.css → ListboxItemIndicator.css.ts.vanilla-CFZXnbre.css} +4 -4
- package/dist/cjs/assets/src/menu/MenuDialogContent.css.ts.vanilla-BHjo6qSc.css +7 -0
- package/dist/cjs/assets/src/menu/MenuInput.css.ts.vanilla-BF-vBg5W.css +6 -0
- package/dist/cjs/assets/src/modal/{ModalListbox.css.ts.vanilla-C-H3wa0B.css → ModalListbox.css.ts.vanilla-BAXa8Od2.css} +13 -13
- package/dist/cjs/assets/src/nav/Nav.css.ts.vanilla-YsJsKZY9.css +6 -0
- package/dist/cjs/assets/src/nav/NavAccountItem.css.ts.vanilla-CxMlgv6X.css +9 -0
- package/dist/cjs/assets/src/nav/{NavItem.css.ts.vanilla-CBH34Ugz.css → NavItem.css.ts.vanilla-Bv5UYID3.css} +13 -13
- package/dist/{esm/assets/src/pagination/Pagination.css.ts.vanilla-C0mXx3hV.css → cjs/assets/src/pagination/Pagination.css.ts.vanilla-DORDHmaS.css} +5 -5
- package/dist/cjs/assets/src/pill/{Pill.css.ts.vanilla-DWGogqF5.css → Pill.css.ts.vanilla-TYb7HW7c.css} +6 -6
- package/dist/{esm/assets/src/pill-menu/PillMenuTrigger.css.ts.vanilla-37Uhm_Xk.css → cjs/assets/src/pill-menu/PillMenuTrigger.css.ts.vanilla-O2xW6998.css} +7 -7
- package/dist/cjs/assets/src/progress/{Progress.css.ts.vanilla-CanNiCbM.css → Progress.css.ts.vanilla-CdW_D3Iz.css} +4 -4
- package/dist/cjs/assets/src/radio/Radio.css.ts.vanilla-Dj8KGuuN.css +13 -0
- package/dist/cjs/assets/src/range/{Range.css.ts.vanilla-DhU8-ZAD.css → Range.css.ts.vanilla-CYklSEM2.css} +23 -23
- package/dist/cjs/assets/src/resizable/ResizableHandle.css.ts.vanilla-jtVF4D3b.css +19 -0
- package/dist/cjs/assets/src/search-input/SearchInput.css.ts.vanilla-ln59qzcG.css +10 -0
- package/dist/{esm/assets/src/separator/Separator.css.ts.vanilla-D_Oh_k6c.css → cjs/assets/src/separator/Separator.css.ts.vanilla-BQx6pyxJ.css} +8 -8
- package/dist/cjs/assets/src/skeleton/Skeleton.css.ts.vanilla-CiQe6X1o.css +6 -0
- package/dist/cjs/assets/src/sortable/SortableHandle.css.ts.vanilla-BO8ic1NX.css +6 -0
- package/dist/cjs/assets/src/sortable/{SortableItem.css.ts.vanilla-BgIPhBmj.css → SortableItem.css.ts.vanilla-DVRAi5L2.css} +6 -6
- package/dist/cjs/assets/src/spinner/{Spinner.css.ts.vanilla-DVffKgAp.css → Spinner.css.ts.vanilla-CHAq-pvT.css} +4 -4
- package/dist/cjs/assets/src/sprinkles/{properties.css.ts.vanilla-BQdbPCGU.css → properties.css.ts.vanilla-DAnyVz7m.css} +723 -723
- package/dist/cjs/assets/src/sub-nav/SubNav.css.ts.vanilla-C74Jlc7w.css +6 -0
- package/dist/cjs/assets/src/switch/Switch.css.ts.vanilla-BY_Y7yGA.css +45 -0
- package/dist/cjs/assets/src/table/Table.css.ts.vanilla-DEF-DE6U.css +15 -0
- package/dist/cjs/assets/src/table/TableBody.css.ts.vanilla-BPPkl6K4.css +6 -0
- package/dist/cjs/assets/src/table/{TableCell.css.ts.vanilla-B7yeyeI6.css → TableCell.css.ts.vanilla-W50elvgg.css} +6 -6
- package/dist/cjs/assets/src/table/TableHeader.css.ts.vanilla-B_7Hze7f.css +8 -0
- package/dist/cjs/assets/src/table/{TableHeaderCell.css.ts.vanilla-MM4xhWe5.css → TableHeaderCell.css.ts.vanilla-CXTolhxG.css} +6 -6
- package/dist/cjs/assets/src/table/{TableRow.css.ts.vanilla-DLWGxUIu.css → TableRow.css.ts.vanilla-BSOYit4e.css} +8 -8
- package/dist/cjs/assets/src/tabs/Tabs.css.ts.vanilla-CqlvC5XB.css +9 -0
- package/dist/cjs/assets/src/tabs/{TabsList.css.ts.vanilla-Ibt_ckBz.css → TabsList.css.ts.vanilla-tSqqSloM.css} +4 -4
- package/dist/{esm/assets/src/tabs/TabsTrigger.css.ts.vanilla-E1Ir_cZ8.css → cjs/assets/src/tabs/TabsTrigger.css.ts.vanilla-DYpjo_ZS.css} +10 -10
- package/dist/{esm/assets/src/text/Text.css.ts.vanilla-CaQE2TEn.css → cjs/assets/src/text/Text.css.ts.vanilla-CJZEaWwj.css} +8 -8
- package/dist/cjs/assets/src/textarea/Textarea.css.ts.vanilla-CVX3rYg1.css +6 -0
- package/dist/cjs/assets/src/textarea/TextareaAutosize.css.ts.vanilla-CATtXHgd.css +44 -0
- package/dist/cjs/assets/src/toast/Toast.css.ts.vanilla-DR2x8OFi.css +104 -0
- package/dist/{esm/assets/src/toast/ToastProvider.css.ts.vanilla-C84LA2LV.css → cjs/assets/src/toast/ToastProvider.css.ts.vanilla-CzJWwVpU.css} +9 -9
- package/dist/cjs/assets/src/toggle-input/ToggleInput.css.ts.vanilla-CrytUVTz.css +25 -0
- package/dist/cjs/assets/src/toggle-input/ToggleInputControl.css.ts.vanilla-CpdwtyXH.css +10 -0
- package/dist/cjs/assets/src/transition/{Transition.css.ts.vanilla-BrfxVX71.css → Transition.css.ts.vanilla-CcM_8e6o.css} +12 -12
- package/dist/cjs/index.js +478 -964
- package/dist/cjs/unstable.js +2373 -363
- package/dist/esm/assets/src/actions/ActionsContent.css.ts.vanilla-DFcH3jAM.css +22 -0
- package/dist/esm/assets/src/alert/Alert.css.ts.vanilla-DEKCXugb.css +6 -0
- package/dist/esm/assets/src/alert-dialog/AlertDialogContent.css.ts.vanilla-BPdVG04o.css +30 -0
- package/dist/{cjs/assets/src/alert-dialog/AlertDialogFooter.css.ts.vanilla-BzhwQJON.css → esm/assets/src/alert-dialog/AlertDialogFooter.css.ts.vanilla-DZEY23Io.css} +3 -3
- package/dist/esm/assets/src/alert-dialog/AlertDialogHeader.css.ts.vanilla-DOCF4rOu.css +7 -0
- package/dist/esm/assets/src/avatar/{Avatar.css.ts.vanilla-CzP-Y7Pp.css → Avatar.css.ts.vanilla-C76aUSqs.css} +18 -18
- package/dist/{cjs/assets/src/backdrop/Backdrop.css.ts.vanilla-BcmQPPUe.css → esm/assets/src/backdrop/Backdrop.css.ts.vanilla-CNEJYOtT.css} +3 -3
- package/dist/esm/assets/src/badge/Badge.css.ts.vanilla-C3pIGqfb.css +51 -0
- package/dist/esm/assets/src/banner/Banner.css.ts.vanilla-C-iiirtD.css +6 -0
- package/dist/{cjs/assets/src/box/Box.css.ts.vanilla-DUz-5y2w.css → esm/assets/src/box/Box.css.ts.vanilla-DrTr7HOZ.css} +21 -21
- package/dist/esm/assets/src/breadcrumb/{Breadcrumb.css.ts.vanilla-VT5LasnM.css → Breadcrumb.css.ts.vanilla-TFz3v1wc.css} +6 -6
- package/dist/esm/assets/src/breadcrumb/{BreadcrumbNode.css.ts.vanilla-CPJC9wAc.css → BreadcrumbNode.css.ts.vanilla-DwVRUOjS.css} +4 -4
- package/dist/esm/assets/src/button/ButtonLoadable.css.ts.vanilla-vG6De9AB.css +9 -0
- package/dist/esm/assets/src/button/ButtonRoot.css.ts.vanilla-CpaCqK7r.css +224 -0
- package/dist/esm/assets/src/calendar/Calendar.css.ts.vanilla-B6erZYOC.css +6 -0
- package/dist/{cjs/assets/src/calendar/CalendarDayButton.css.ts.vanilla-B7YdTf6M.css → esm/assets/src/calendar/CalendarDayButton.css.ts.vanilla-Bt_JPzry.css} +24 -24
- package/dist/esm/assets/src/calendar/CalendarGrid.css.ts.vanilla-CdkqDEOm.css +7 -0
- package/dist/esm/assets/src/calendar/CalendarMonths.css.ts.vanilla-DHBgPvJ7.css +6 -0
- package/dist/esm/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-CWHqnCfU.css +8 -0
- package/dist/esm/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-BXE9ThZ4.css +8 -0
- package/dist/esm/assets/src/card/Card.css.ts.vanilla-6B1Zt0xh.css +8 -0
- package/dist/{cjs/assets/src/card/CardCheckbox.css.ts.vanilla-DLd3oS_Y.css → esm/assets/src/card/CardCheckbox.css.ts.vanilla-DdHH54zv.css} +4 -4
- package/dist/esm/assets/src/card/CardHeader.css.ts.vanilla-CFOfCFv3.css +15 -0
- package/dist/{cjs/assets/src/card/CardPreview.css.ts.vanilla-ChoS0z7r.css → esm/assets/src/card/CardPreview.css.ts.vanilla-CTfTyliN.css} +4 -4
- package/dist/esm/assets/src/checkbox/{CheckboxControl.css.ts.vanilla-AZKbaGoY.css → CheckboxControl.css.ts.vanilla-Ca8pC30f.css} +7 -7
- package/dist/esm/assets/src/code/Code.css.ts.vanilla-DSe-VZHU.css +10 -0
- package/dist/esm/assets/src/command/CommandItem.css.ts.vanilla-C-4_R2Is.css +6 -0
- package/dist/esm/assets/src/cover/Cover.css.ts.vanilla-BY12GJ4k.css +34 -0
- package/dist/esm/assets/src/data-table/DataTableBody.css.ts.vanilla-iahXDswM.css +71 -0
- package/dist/esm/assets/src/data-table/DataTableFooter.css.ts.vanilla-CMoSF7Om.css +6 -0
- package/dist/{cjs/assets/src/data-table/DataTableHeaderCell.css.ts.vanilla-2YyCjtE-.css → esm/assets/src/data-table/DataTableHeaderCell.css.ts.vanilla-z6nZcCW8.css} +9 -9
- package/dist/esm/assets/src/date-input/DateInput.css.ts.vanilla-BJ194j0L.css +15 -0
- package/dist/esm/assets/src/details-panel/{DetailsPanel.css.ts.vanilla-BxrZkZJ1.css → DetailsPanel.css.ts.vanilla-VoFdQA7k.css} +4 -4
- package/dist/esm/assets/src/details-panel/DetailsPanelFooter.css.ts.vanilla-BGGOeU4-.css +7 -0
- package/dist/esm/assets/src/details-panel/DetailsPanelHeader.css.ts.vanilla-Wab_fAfb.css +8 -0
- package/dist/esm/assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css +4 -0
- package/dist/esm/assets/src/dialog/{DialogContent.css.ts.vanilla-CNMpefic.css → DialogContent.css.ts.vanilla-CziQxeOs.css} +14 -14
- package/dist/esm/assets/src/dialog/DialogFooter.css.ts.vanilla-DF-A3sdc.css +7 -0
- package/dist/esm/assets/src/dialog/DialogHeader.css.ts.vanilla-ihfhiAFh.css +19 -0
- package/dist/{cjs/assets/src/disclosure/DisclosureContent.css.ts.vanilla-7dLbxCDB.css → esm/assets/src/disclosure/DisclosureContent.css.ts.vanilla-D4xqtFkK.css} +6 -6
- package/dist/{cjs/assets/src/disclosure/DisclosureTrigger.css.ts.vanilla-C0pZWOAN.css → esm/assets/src/disclosure/DisclosureTrigger.css.ts.vanilla-Dzksz6eR.css} +7 -7
- package/dist/esm/assets/src/file-upload/FileUpload.css.ts.vanilla-IvjPsVWh.css +6 -0
- package/dist/esm/assets/src/file-upload/{FileUploadDropzone.css.ts.vanilla-D4lUOAd1.css → FileUploadDropzone.css.ts.vanilla-DbagyNcT.css} +9 -9
- package/dist/esm/assets/src/highlight/Highlight.css.ts.vanilla-CLXs_VaN.css +7 -0
- package/dist/esm/assets/src/hover-card/HoverCardTrigger.css.ts.vanilla-CsmsV3v-.css +6 -0
- package/dist/esm/assets/src/indicator/Indicator.css.ts.vanilla-B4lAo7Jo.css +36 -0
- package/dist/esm/assets/src/inline-input/{InlineInput.css.ts.vanilla-CCBUdzaJ.css → InlineInput.css.ts.vanilla-Dk5Tbevb.css} +4 -4
- package/dist/esm/assets/src/input/Input.css.ts.vanilla-ByjwzT6K.css +9 -0
- package/dist/esm/assets/src/input/{InputControl.css.ts.vanilla-C0up4OSD.css → InputControl.css.ts.vanilla-Bn84cpIc.css} +8 -8
- package/dist/esm/assets/src/input/InputRoot.css.ts.vanilla-GUX2WLT1.css +71 -0
- package/dist/esm/assets/src/kbd/{Kbd.css.ts.vanilla-B4bry3mm.css → Kbd.css.ts.vanilla-Bdt8rCrw.css} +3 -3
- package/dist/esm/assets/src/label-menu-button/LabelMenuButton.css.ts.vanilla-D_MF910-.css +7 -0
- package/dist/esm/assets/src/layers/layers.css.ts.vanilla-B_jLTKAn.css +1 -0
- package/dist/{cjs/assets/src/layout/Layout.css.ts.vanilla-K4pacfN-.css → esm/assets/src/layout/Layout.css.ts.vanilla-DM52TWOG.css} +5 -5
- package/dist/esm/assets/src/layout/LayoutContent.css.ts.vanilla-sFEYB-l7.css +6 -0
- package/dist/{cjs/assets/src/link/Link.css.ts.vanilla-DdKG9IpT.css → esm/assets/src/link/Link.css.ts.vanilla-cndkzeiv.css} +13 -13
- package/dist/esm/assets/src/listbox/ListboxCheckboxItem.css.ts.vanilla-BxXbrOvd.css +11 -0
- package/dist/esm/assets/src/listbox/ListboxItem.css.ts.vanilla-wXOfYTD5.css +52 -0
- package/dist/esm/assets/src/listbox/{ListboxItemIndicator.css.ts.vanilla-Cv7A9E_B.css → ListboxItemIndicator.css.ts.vanilla-CFZXnbre.css} +4 -4
- package/dist/esm/assets/src/menu/MenuDialogContent.css.ts.vanilla-BHjo6qSc.css +7 -0
- package/dist/esm/assets/src/menu/MenuInput.css.ts.vanilla-BF-vBg5W.css +6 -0
- package/dist/esm/assets/src/modal/{ModalListbox.css.ts.vanilla-C-H3wa0B.css → ModalListbox.css.ts.vanilla-BAXa8Od2.css} +13 -13
- package/dist/esm/assets/src/nav/Nav.css.ts.vanilla-YsJsKZY9.css +6 -0
- package/dist/esm/assets/src/nav/NavAccountItem.css.ts.vanilla-CxMlgv6X.css +9 -0
- package/dist/esm/assets/src/nav/{NavItem.css.ts.vanilla-CBH34Ugz.css → NavItem.css.ts.vanilla-Bv5UYID3.css} +13 -13
- package/dist/{cjs/assets/src/pagination/Pagination.css.ts.vanilla-C0mXx3hV.css → esm/assets/src/pagination/Pagination.css.ts.vanilla-DORDHmaS.css} +5 -5
- package/dist/esm/assets/src/pill/{Pill.css.ts.vanilla-DWGogqF5.css → Pill.css.ts.vanilla-TYb7HW7c.css} +6 -6
- package/dist/{cjs/assets/src/pill-menu/PillMenuTrigger.css.ts.vanilla-37Uhm_Xk.css → esm/assets/src/pill-menu/PillMenuTrigger.css.ts.vanilla-O2xW6998.css} +7 -7
- package/dist/esm/assets/src/progress/{Progress.css.ts.vanilla-CanNiCbM.css → Progress.css.ts.vanilla-CdW_D3Iz.css} +4 -4
- package/dist/esm/assets/src/radio/Radio.css.ts.vanilla-Dj8KGuuN.css +13 -0
- package/dist/esm/assets/src/range/{Range.css.ts.vanilla-DhU8-ZAD.css → Range.css.ts.vanilla-CYklSEM2.css} +23 -23
- package/dist/esm/assets/src/resizable/ResizableHandle.css.ts.vanilla-jtVF4D3b.css +19 -0
- package/dist/esm/assets/src/search-input/SearchInput.css.ts.vanilla-ln59qzcG.css +10 -0
- package/dist/{cjs/assets/src/separator/Separator.css.ts.vanilla-D_Oh_k6c.css → esm/assets/src/separator/Separator.css.ts.vanilla-BQx6pyxJ.css} +8 -8
- package/dist/esm/assets/src/skeleton/Skeleton.css.ts.vanilla-CiQe6X1o.css +6 -0
- package/dist/esm/assets/src/sortable/SortableHandle.css.ts.vanilla-BO8ic1NX.css +6 -0
- package/dist/esm/assets/src/sortable/{SortableItem.css.ts.vanilla-BgIPhBmj.css → SortableItem.css.ts.vanilla-DVRAi5L2.css} +6 -6
- package/dist/esm/assets/src/spinner/{Spinner.css.ts.vanilla-DVffKgAp.css → Spinner.css.ts.vanilla-CHAq-pvT.css} +4 -4
- package/dist/esm/assets/src/sprinkles/{properties.css.ts.vanilla-BQdbPCGU.css → properties.css.ts.vanilla-DAnyVz7m.css} +723 -723
- package/dist/esm/assets/src/sub-nav/SubNav.css.ts.vanilla-C74Jlc7w.css +6 -0
- package/dist/esm/assets/src/switch/Switch.css.ts.vanilla-BY_Y7yGA.css +45 -0
- package/dist/esm/assets/src/table/Table.css.ts.vanilla-DEF-DE6U.css +15 -0
- package/dist/esm/assets/src/table/TableBody.css.ts.vanilla-BPPkl6K4.css +6 -0
- package/dist/esm/assets/src/table/{TableCell.css.ts.vanilla-B7yeyeI6.css → TableCell.css.ts.vanilla-W50elvgg.css} +6 -6
- package/dist/esm/assets/src/table/TableHeader.css.ts.vanilla-B_7Hze7f.css +8 -0
- package/dist/esm/assets/src/table/{TableHeaderCell.css.ts.vanilla-MM4xhWe5.css → TableHeaderCell.css.ts.vanilla-CXTolhxG.css} +6 -6
- package/dist/esm/assets/src/table/{TableRow.css.ts.vanilla-DLWGxUIu.css → TableRow.css.ts.vanilla-BSOYit4e.css} +8 -8
- package/dist/esm/assets/src/tabs/Tabs.css.ts.vanilla-CqlvC5XB.css +9 -0
- package/dist/esm/assets/src/tabs/{TabsList.css.ts.vanilla-Ibt_ckBz.css → TabsList.css.ts.vanilla-tSqqSloM.css} +4 -4
- package/dist/{cjs/assets/src/tabs/TabsTrigger.css.ts.vanilla-E1Ir_cZ8.css → esm/assets/src/tabs/TabsTrigger.css.ts.vanilla-DYpjo_ZS.css} +10 -10
- package/dist/{cjs/assets/src/text/Text.css.ts.vanilla-CaQE2TEn.css → esm/assets/src/text/Text.css.ts.vanilla-CJZEaWwj.css} +8 -8
- package/dist/esm/assets/src/textarea/Textarea.css.ts.vanilla-CVX3rYg1.css +6 -0
- package/dist/esm/assets/src/textarea/TextareaAutosize.css.ts.vanilla-CATtXHgd.css +44 -0
- package/dist/esm/assets/src/toast/Toast.css.ts.vanilla-DR2x8OFi.css +104 -0
- package/dist/{cjs/assets/src/toast/ToastProvider.css.ts.vanilla-C84LA2LV.css → esm/assets/src/toast/ToastProvider.css.ts.vanilla-CzJWwVpU.css} +9 -9
- package/dist/esm/assets/src/toggle-input/ToggleInput.css.ts.vanilla-CrytUVTz.css +25 -0
- package/dist/esm/assets/src/toggle-input/ToggleInputControl.css.ts.vanilla-CpdwtyXH.css +10 -0
- package/dist/esm/assets/src/transition/{Transition.css.ts.vanilla-BrfxVX71.css → Transition.css.ts.vanilla-CcM_8e6o.css} +12 -12
- package/dist/esm/packages/react/package.json.js +1 -1
- package/dist/esm/packages/react/src/actions/ActionsContent-css.js +4 -4
- package/dist/esm/packages/react/src/actions/ActionsRoot-css.js +3 -3
- package/dist/esm/packages/react/src/alert/Alert-css.js +3 -3
- package/dist/esm/packages/react/src/alert-dialog/AlertDialogContent-css.js +6 -6
- package/dist/esm/packages/react/src/alert-dialog/AlertDialogFooter-css.js +3 -3
- package/dist/esm/packages/react/src/alert-dialog/AlertDialogHeader-css.js +3 -3
- package/dist/esm/packages/react/src/avatar/Avatar-css.js +4 -4
- package/dist/esm/packages/react/src/avatar/AvatarGroup-css.js +3 -3
- package/dist/esm/packages/react/src/backdrop/Backdrop-css.js +3 -3
- package/dist/esm/packages/react/src/badge/Badge-css.js +3 -3
- package/dist/esm/packages/react/src/banner/Banner-css.js +3 -3
- package/dist/esm/packages/react/src/block-document/BlockAction.js +28 -0
- package/dist/esm/packages/react/src/block-document/BlockCancelAction.js +48 -0
- package/dist/esm/packages/react/src/block-document/BlockDocumentContext.js +6 -0
- package/dist/esm/packages/react/src/block-document/BlockDocumentRenderer.js +63 -0
- package/dist/esm/packages/react/src/block-document/BlockElement.js +78 -0
- package/dist/esm/packages/react/src/block-document/BlockField.js +12 -0
- package/dist/esm/packages/react/src/block-document/BlockGroup.js +11 -0
- package/dist/esm/packages/react/src/block-document/BlockHeading.js +11 -0
- package/dist/esm/packages/react/src/block-document/BlockInput.js +32 -0
- package/dist/esm/packages/react/src/block-document/BlockLink.js +11 -0
- package/dist/esm/packages/react/src/block-document/BlockRange.js +10 -0
- package/dist/esm/packages/react/src/block-document/BlockSelect.js +43 -0
- package/dist/esm/packages/react/src/block-document/BlockSelectContent.js +12 -0
- package/dist/esm/packages/react/src/block-document/BlockSelectTrigger.js +16 -0
- package/dist/esm/packages/react/src/block-document/BlockSeparator.js +10 -0
- package/dist/esm/packages/react/src/block-document/BlockText.js +11 -0
- package/dist/esm/packages/react/src/block-document/BlockTextarea.js +29 -0
- package/dist/esm/packages/react/src/block-document/schemas.js +1720 -0
- package/dist/esm/packages/react/src/box/Box-css.js +4 -4
- package/dist/esm/packages/react/src/breadcrumb/Breadcrumb-css.js +4 -4
- package/dist/esm/packages/react/src/breadcrumb/BreadcrumbNode-css.js +3 -3
- package/dist/esm/packages/react/src/button/ButtonGroup-css.js +3 -3
- package/dist/esm/packages/react/src/button/ButtonLoadable-css.js +5 -5
- package/dist/esm/packages/react/src/button/ButtonRoot-css.js +5 -5
- package/dist/esm/packages/react/src/calendar/Calendar-css.js +3 -3
- package/dist/esm/packages/react/src/calendar/CalendarDayButton-css.js +4 -4
- package/dist/esm/packages/react/src/calendar/CalendarGrid-css.js +3 -3
- package/dist/esm/packages/react/src/calendar/CalendarMonths-css.js +3 -3
- package/dist/esm/packages/react/src/calendar/CalendarNextMonthButton-css.js +3 -3
- package/dist/esm/packages/react/src/calendar/CalendarPreviousMonthButton-css.js +3 -3
- package/dist/esm/packages/react/src/card/Card-css.js +4 -4
- package/dist/esm/packages/react/src/card/CardCheckbox-css.js +3 -3
- package/dist/esm/packages/react/src/card/CardHeader-css.js +5 -5
- package/dist/esm/packages/react/src/card/CardImage-css.js +1 -1
- package/dist/esm/packages/react/src/card/CardPreview-css.js +4 -4
- package/dist/esm/packages/react/src/checkbox/CheckboxControl-css.js +6 -6
- package/dist/esm/packages/react/src/code/Code-css.js +3 -3
- package/dist/esm/packages/react/src/command/CommandItem-css.js +3 -3
- package/dist/esm/packages/react/src/cover/Cover-css.js +3 -3
- package/dist/esm/packages/react/src/data-table/DataTableBody-css.js +10 -10
- package/dist/esm/packages/react/src/data-table/DataTableFooter-css.js +3 -3
- package/dist/esm/packages/react/src/data-table/DataTableHeaderCell-css.js +5 -5
- package/dist/esm/packages/react/src/date-input/DateInput-css.js +6 -6
- package/dist/esm/packages/react/src/date-range-picker/DateRangePickerContent-css.js +1 -1
- package/dist/esm/packages/react/src/details-panel/DetailsPanel-css.js +3 -3
- package/dist/esm/packages/react/src/details-panel/DetailsPanelFooter-css.js +3 -3
- package/dist/esm/packages/react/src/details-panel/DetailsPanelHeader-css.js +3 -3
- package/dist/esm/packages/react/src/dialog/DialogBody-css.js +3 -3
- package/dist/esm/packages/react/src/dialog/DialogContent-css.js +8 -8
- package/dist/esm/packages/react/src/dialog/DialogFooter-css.js +3 -3
- package/dist/esm/packages/react/src/dialog/DialogHeader-css.js +7 -7
- package/dist/esm/packages/react/src/disclosure/DisclosureContent-css.js +4 -4
- package/dist/esm/packages/react/src/disclosure/DisclosureTrigger-css.js +5 -5
- package/dist/esm/packages/react/src/field/FieldLabel.js +1 -1
- package/dist/esm/packages/react/src/file-upload/FileUpload-css.js +3 -3
- package/dist/esm/packages/react/src/file-upload/FileUploadDropzone-css.js +4 -4
- package/dist/esm/packages/react/src/highlight/Highlight-css.js +3 -3
- package/dist/esm/packages/react/src/hover-card/HoverCardTrigger-css.js +3 -3
- package/dist/esm/packages/react/src/indicator/Indicator-css.js +5 -5
- package/dist/esm/packages/react/src/inline-input/InlineInput-css.js +4 -4
- package/dist/esm/packages/react/src/input/Input-css.js +3 -3
- package/dist/esm/packages/react/src/input/InputControl-css.js +3 -3
- package/dist/esm/packages/react/src/input/InputRoot-css.js +5 -5
- package/dist/esm/packages/react/src/kbd/Kbd-css.js +3 -3
- package/dist/esm/packages/react/src/label-menu-button/LabelMenuButton-css.js +5 -5
- package/dist/esm/packages/react/src/layers/layers-css.js +3 -3
- package/dist/esm/packages/react/src/layout/Layout-css.js +3 -3
- package/dist/esm/packages/react/src/layout/Layout.js +1 -1
- package/dist/esm/packages/react/src/layout/LayoutContent-css.js +3 -3
- package/dist/esm/packages/react/src/link/Link-css.js +4 -4
- package/dist/esm/packages/react/src/listbox/ListboxCheckboxItem-css.js +3 -3
- package/dist/esm/packages/react/src/listbox/ListboxItem-css.js +6 -6
- package/dist/esm/packages/react/src/listbox/ListboxItemIndicator-css.js +3 -3
- package/dist/esm/packages/react/src/menu/MenuDialogContent-css.js +3 -3
- package/dist/esm/packages/react/src/menu/MenuInput-css.js +3 -3
- package/dist/esm/packages/react/src/modal/ModalListbox-css.js +3 -3
- package/dist/esm/packages/react/src/nav/Nav-css.js +3 -3
- package/dist/esm/packages/react/src/nav/NavAccountItem-css.js +3 -3
- package/dist/esm/packages/react/src/nav/NavBody-css.js +1 -1
- package/dist/esm/packages/react/src/nav/NavItem-css.js +6 -6
- package/dist/esm/packages/react/src/pagination/Pagination-css.js +5 -5
- package/dist/esm/packages/react/src/paper/Paper-css.js +1 -1
- package/dist/esm/packages/react/src/pill/Pill-css.js +3 -3
- package/dist/esm/packages/react/src/pill-menu/PillMenuTrigger-css.js +5 -5
- package/dist/esm/packages/react/src/progress/Progress-css.js +4 -4
- package/dist/esm/packages/react/src/radio/Radio-css.js +8 -8
- package/dist/esm/packages/react/src/range/Range-css.js +10 -10
- package/dist/esm/packages/react/src/resizable/Resizable.js +1 -1
- package/dist/esm/packages/react/src/resizable/ResizableHandle-css.js +4 -4
- package/dist/esm/packages/react/src/search-input/SearchInput-css.js +5 -5
- package/dist/esm/packages/react/src/separator/Separator-css.js +3 -3
- package/dist/esm/packages/react/src/skeleton/Skeleton-css.js +3 -3
- package/dist/esm/packages/react/src/sortable/SortableHandle-css.js +3 -3
- package/dist/esm/packages/react/src/sortable/SortableItem-css.js +3 -3
- package/dist/esm/packages/react/src/spinner/Spinner-css.js +3 -3
- package/dist/esm/packages/react/src/sprinkles/properties-css.js +4 -4
- package/dist/esm/packages/react/src/sub-nav/SubNav-css.js +3 -3
- package/dist/esm/packages/react/src/switch/Switch-css.js +8 -8
- package/dist/esm/packages/react/src/table/Table-css.js +4 -4
- package/dist/esm/packages/react/src/table/TableBody-css.js +3 -3
- package/dist/esm/packages/react/src/table/TableCell-css.js +4 -4
- package/dist/esm/packages/react/src/table/TableHeader-css.js +3 -3
- package/dist/esm/packages/react/src/table/TableHeaderCell-css.js +4 -4
- package/dist/esm/packages/react/src/table/TableRow-css.js +3 -3
- package/dist/esm/packages/react/src/tabs/Tabs-css.js +3 -3
- package/dist/esm/packages/react/src/tabs/TabsList-css.js +3 -3
- package/dist/esm/packages/react/src/tabs/TabsTrigger-css.js +4 -4
- package/dist/esm/packages/react/src/text/Text-css.js +3 -3
- package/dist/esm/packages/react/src/textarea/Textarea-css.js +3 -3
- package/dist/esm/packages/react/src/textarea/TextareaAutosize-css.js +5 -5
- package/dist/esm/packages/react/src/toast/Toast-css.js +6 -6
- package/dist/esm/packages/react/src/toast/ToastProvider-css.js +3 -3
- package/dist/esm/packages/react/src/toggle-input/ToggleInput-css.js +4 -4
- package/dist/esm/packages/react/src/toggle-input/ToggleInputControl-css.js +5 -5
- package/dist/esm/packages/react/src/toggle-input/ToggleInputHiddenInput-css.js +3 -3
- package/dist/esm/packages/react/src/tooltip/TooltipContent-css.js +1 -1
- package/dist/esm/packages/react/src/transition/Transition-css.js +3 -3
- package/dist/esm/unstable.js +1 -0
- package/dist/index.d.ts +82 -20
- package/dist/unstable.d.ts +2533 -4
- package/package.json +2 -1
- package/dist/cjs/assets/src/actions/ActionsContent.css.ts.vanilla-D9gJ_K_P.css +0 -22
- package/dist/cjs/assets/src/alert/Alert.css.ts.vanilla-Cpcil-TF.css +0 -6
- package/dist/cjs/assets/src/alert-dialog/AlertDialogContent.css.ts.vanilla-DORIA4GW.css +0 -30
- package/dist/cjs/assets/src/alert-dialog/AlertDialogHeader.css.ts.vanilla-DOUaDYur.css +0 -7
- package/dist/cjs/assets/src/badge/Badge.css.ts.vanilla-GTPqVj6r.css +0 -51
- package/dist/cjs/assets/src/banner/Banner.css.ts.vanilla-BU8o7ofC.css +0 -6
- package/dist/cjs/assets/src/button/ButtonLoadable.css.ts.vanilla-BJwTj8uz.css +0 -9
- package/dist/cjs/assets/src/button/ButtonRoot.css.ts.vanilla-Cs9WX0Za.css +0 -224
- package/dist/cjs/assets/src/calendar/Calendar.css.ts.vanilla-um1CqRDY.css +0 -6
- package/dist/cjs/assets/src/calendar/CalendarGrid.css.ts.vanilla-ChEJ7LhJ.css +0 -7
- package/dist/cjs/assets/src/calendar/CalendarMonths.css.ts.vanilla-lAuXcpKb.css +0 -6
- package/dist/cjs/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-BhIotaN2.css +0 -8
- package/dist/cjs/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-mwMePMWF.css +0 -8
- package/dist/cjs/assets/src/card/Card.css.ts.vanilla-B1HoCcPM.css +0 -8
- package/dist/cjs/assets/src/card/CardHeader.css.ts.vanilla-Con-1rfu.css +0 -15
- package/dist/cjs/assets/src/code/Code.css.ts.vanilla-C_-RhanZ.css +0 -10
- package/dist/cjs/assets/src/command/CommandItem.css.ts.vanilla-L6MtCkXu.css +0 -6
- package/dist/cjs/assets/src/cover/Cover.css.ts.vanilla-CJQX-gbL.css +0 -34
- package/dist/cjs/assets/src/data-table/DataTableBody.css.ts.vanilla-Dln87Oni.css +0 -71
- package/dist/cjs/assets/src/data-table/DataTableFooter.css.ts.vanilla-DszqZa8C.css +0 -6
- package/dist/cjs/assets/src/date-input/DateInput.css.ts.vanilla-CqjY8cmt.css +0 -15
- package/dist/cjs/assets/src/details-panel/DetailsPanelFooter.css.ts.vanilla-M1n9pTdj.css +0 -7
- package/dist/cjs/assets/src/details-panel/DetailsPanelHeader.css.ts.vanilla-DmGs14df.css +0 -8
- package/dist/cjs/assets/src/dialog/DialogBody.css.ts.vanilla-B62R2PB1.css +0 -4
- package/dist/cjs/assets/src/dialog/DialogFooter.css.ts.vanilla-BEfSlw-b.css +0 -7
- package/dist/cjs/assets/src/dialog/DialogHeader.css.ts.vanilla-CVdqhpZt.css +0 -19
- package/dist/cjs/assets/src/file-upload/FileUpload.css.ts.vanilla-TYBTDU9d.css +0 -6
- package/dist/cjs/assets/src/highlight/Highlight.css.ts.vanilla-B2DPEjh5.css +0 -7
- package/dist/cjs/assets/src/hover-card/HoverCardTrigger.css.ts.vanilla-aM7x-Umr.css +0 -6
- package/dist/cjs/assets/src/indicator/Indicator.css.ts.vanilla-DpoOxY9A.css +0 -36
- package/dist/cjs/assets/src/input/Input.css.ts.vanilla-DYc_4pmq.css +0 -9
- package/dist/cjs/assets/src/input/InputRoot.css.ts.vanilla-DBxg8WsB.css +0 -71
- package/dist/cjs/assets/src/label-menu-button/LabelMenuButton.css.ts.vanilla-BUA0Jw3p.css +0 -7
- package/dist/cjs/assets/src/layers/layers.css.ts.vanilla-cdbQI_2C.css +0 -1
- package/dist/cjs/assets/src/layout/LayoutContent.css.ts.vanilla-D7sR4wLY.css +0 -6
- package/dist/cjs/assets/src/listbox/ListboxCheckboxItem.css.ts.vanilla-DoyuB7iy.css +0 -11
- package/dist/cjs/assets/src/listbox/ListboxItem.css.ts.vanilla-BAkH9nBO.css +0 -52
- package/dist/cjs/assets/src/menu/MenuDialogContent.css.ts.vanilla-BrklqN_k.css +0 -7
- package/dist/cjs/assets/src/menu/MenuInput.css.ts.vanilla-Bft7VInw.css +0 -6
- package/dist/cjs/assets/src/nav/Nav.css.ts.vanilla-MfgUfSK2.css +0 -6
- package/dist/cjs/assets/src/nav/NavAccountItem.css.ts.vanilla-8AXfJxiv.css +0 -9
- package/dist/cjs/assets/src/radio/Radio.css.ts.vanilla-CnXYsGwn.css +0 -13
- package/dist/cjs/assets/src/resizable/ResizableHandle.css.ts.vanilla-D2snnF0B.css +0 -19
- package/dist/cjs/assets/src/search-input/SearchInput.css.ts.vanilla-B7tAVlcV.css +0 -10
- package/dist/cjs/assets/src/skeleton/Skeleton.css.ts.vanilla-CtZ3gYMr.css +0 -6
- package/dist/cjs/assets/src/sortable/SortableHandle.css.ts.vanilla-DUwwL2iF.css +0 -6
- package/dist/cjs/assets/src/sub-nav/SubNav.css.ts.vanilla-C0wQwku-.css +0 -6
- package/dist/cjs/assets/src/switch/Switch.css.ts.vanilla-HF4KoROO.css +0 -45
- package/dist/cjs/assets/src/table/Table.css.ts.vanilla-OlsN_QvU.css +0 -15
- package/dist/cjs/assets/src/table/TableBody.css.ts.vanilla-CURY-MCQ.css +0 -6
- package/dist/cjs/assets/src/table/TableHeader.css.ts.vanilla-DoYiGlVK.css +0 -8
- package/dist/cjs/assets/src/tabs/Tabs.css.ts.vanilla-O0KtSYPr.css +0 -9
- package/dist/cjs/assets/src/textarea/Textarea.css.ts.vanilla-tlwSlL-A.css +0 -6
- package/dist/cjs/assets/src/textarea/TextareaAutosize.css.ts.vanilla-Bn38ZbA1.css +0 -44
- package/dist/cjs/assets/src/toast/Toast.css.ts.vanilla-DPfR2UTo.css +0 -104
- package/dist/cjs/assets/src/toggle-input/ToggleInput.css.ts.vanilla-XMJo5PP4.css +0 -25
- package/dist/cjs/assets/src/toggle-input/ToggleInputControl.css.ts.vanilla-BFffOfM2.css +0 -10
- package/dist/esm/assets/src/actions/ActionsContent.css.ts.vanilla-D9gJ_K_P.css +0 -22
- package/dist/esm/assets/src/alert/Alert.css.ts.vanilla-Cpcil-TF.css +0 -6
- package/dist/esm/assets/src/alert-dialog/AlertDialogContent.css.ts.vanilla-DORIA4GW.css +0 -30
- package/dist/esm/assets/src/alert-dialog/AlertDialogHeader.css.ts.vanilla-DOUaDYur.css +0 -7
- package/dist/esm/assets/src/badge/Badge.css.ts.vanilla-GTPqVj6r.css +0 -51
- package/dist/esm/assets/src/banner/Banner.css.ts.vanilla-BU8o7ofC.css +0 -6
- package/dist/esm/assets/src/button/ButtonLoadable.css.ts.vanilla-BJwTj8uz.css +0 -9
- package/dist/esm/assets/src/button/ButtonRoot.css.ts.vanilla-Cs9WX0Za.css +0 -224
- package/dist/esm/assets/src/calendar/Calendar.css.ts.vanilla-um1CqRDY.css +0 -6
- package/dist/esm/assets/src/calendar/CalendarGrid.css.ts.vanilla-ChEJ7LhJ.css +0 -7
- package/dist/esm/assets/src/calendar/CalendarMonths.css.ts.vanilla-lAuXcpKb.css +0 -6
- package/dist/esm/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-BhIotaN2.css +0 -8
- package/dist/esm/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-mwMePMWF.css +0 -8
- package/dist/esm/assets/src/card/Card.css.ts.vanilla-B1HoCcPM.css +0 -8
- package/dist/esm/assets/src/card/CardHeader.css.ts.vanilla-Con-1rfu.css +0 -15
- package/dist/esm/assets/src/code/Code.css.ts.vanilla-C_-RhanZ.css +0 -10
- package/dist/esm/assets/src/command/CommandItem.css.ts.vanilla-L6MtCkXu.css +0 -6
- package/dist/esm/assets/src/cover/Cover.css.ts.vanilla-CJQX-gbL.css +0 -34
- package/dist/esm/assets/src/data-table/DataTableBody.css.ts.vanilla-Dln87Oni.css +0 -71
- package/dist/esm/assets/src/data-table/DataTableFooter.css.ts.vanilla-DszqZa8C.css +0 -6
- package/dist/esm/assets/src/date-input/DateInput.css.ts.vanilla-CqjY8cmt.css +0 -15
- package/dist/esm/assets/src/details-panel/DetailsPanelFooter.css.ts.vanilla-M1n9pTdj.css +0 -7
- package/dist/esm/assets/src/details-panel/DetailsPanelHeader.css.ts.vanilla-DmGs14df.css +0 -8
- package/dist/esm/assets/src/dialog/DialogBody.css.ts.vanilla-B62R2PB1.css +0 -4
- package/dist/esm/assets/src/dialog/DialogFooter.css.ts.vanilla-BEfSlw-b.css +0 -7
- package/dist/esm/assets/src/dialog/DialogHeader.css.ts.vanilla-CVdqhpZt.css +0 -19
- package/dist/esm/assets/src/file-upload/FileUpload.css.ts.vanilla-TYBTDU9d.css +0 -6
- package/dist/esm/assets/src/highlight/Highlight.css.ts.vanilla-B2DPEjh5.css +0 -7
- package/dist/esm/assets/src/hover-card/HoverCardTrigger.css.ts.vanilla-aM7x-Umr.css +0 -6
- package/dist/esm/assets/src/indicator/Indicator.css.ts.vanilla-DpoOxY9A.css +0 -36
- package/dist/esm/assets/src/input/Input.css.ts.vanilla-DYc_4pmq.css +0 -9
- package/dist/esm/assets/src/input/InputRoot.css.ts.vanilla-DBxg8WsB.css +0 -71
- package/dist/esm/assets/src/label-menu-button/LabelMenuButton.css.ts.vanilla-BUA0Jw3p.css +0 -7
- package/dist/esm/assets/src/layers/layers.css.ts.vanilla-cdbQI_2C.css +0 -1
- package/dist/esm/assets/src/layout/LayoutContent.css.ts.vanilla-D7sR4wLY.css +0 -6
- package/dist/esm/assets/src/listbox/ListboxCheckboxItem.css.ts.vanilla-DoyuB7iy.css +0 -11
- package/dist/esm/assets/src/listbox/ListboxItem.css.ts.vanilla-BAkH9nBO.css +0 -52
- package/dist/esm/assets/src/menu/MenuDialogContent.css.ts.vanilla-BrklqN_k.css +0 -7
- package/dist/esm/assets/src/menu/MenuInput.css.ts.vanilla-Bft7VInw.css +0 -6
- package/dist/esm/assets/src/nav/Nav.css.ts.vanilla-MfgUfSK2.css +0 -6
- package/dist/esm/assets/src/nav/NavAccountItem.css.ts.vanilla-8AXfJxiv.css +0 -9
- package/dist/esm/assets/src/radio/Radio.css.ts.vanilla-CnXYsGwn.css +0 -13
- package/dist/esm/assets/src/resizable/ResizableHandle.css.ts.vanilla-D2snnF0B.css +0 -19
- package/dist/esm/assets/src/search-input/SearchInput.css.ts.vanilla-B7tAVlcV.css +0 -10
- package/dist/esm/assets/src/skeleton/Skeleton.css.ts.vanilla-CtZ3gYMr.css +0 -6
- package/dist/esm/assets/src/sortable/SortableHandle.css.ts.vanilla-DUwwL2iF.css +0 -6
- package/dist/esm/assets/src/sub-nav/SubNav.css.ts.vanilla-C0wQwku-.css +0 -6
- package/dist/esm/assets/src/switch/Switch.css.ts.vanilla-HF4KoROO.css +0 -45
- package/dist/esm/assets/src/table/Table.css.ts.vanilla-OlsN_QvU.css +0 -15
- package/dist/esm/assets/src/table/TableBody.css.ts.vanilla-CURY-MCQ.css +0 -6
- package/dist/esm/assets/src/table/TableHeader.css.ts.vanilla-DoYiGlVK.css +0 -8
- package/dist/esm/assets/src/tabs/Tabs.css.ts.vanilla-O0KtSYPr.css +0 -9
- package/dist/esm/assets/src/textarea/Textarea.css.ts.vanilla-tlwSlL-A.css +0 -6
- package/dist/esm/assets/src/textarea/TextareaAutosize.css.ts.vanilla-Bn38ZbA1.css +0 -44
- package/dist/esm/assets/src/toast/Toast.css.ts.vanilla-DPfR2UTo.css +0 -104
- package/dist/esm/assets/src/toggle-input/ToggleInput.css.ts.vanilla-XMJo5PP4.css +0 -25
- package/dist/esm/assets/src/toggle-input/ToggleInputControl.css.ts.vanilla-BFffOfM2.css +0 -10
package/dist/cjs/unstable.js
CHANGED
|
@@ -1,109 +1,118 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var Calendar = require('./Calendar-C5DUpWvD.js');
|
|
5
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var reactId = require('@radix-ui/react-id');
|
|
7
|
-
var clsx = require('clsx');
|
|
8
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
9
5
|
var React = require('react');
|
|
10
|
-
require('./
|
|
11
|
-
require('./assets/src/details-panel/DetailsPanel.css.ts.vanilla-BxrZkZJ1.css');
|
|
6
|
+
var Textarea = require('./Textarea-DisYXvwB.js');
|
|
12
7
|
var reactContext = require('@radix-ui/react-context');
|
|
13
|
-
require('
|
|
14
|
-
require('
|
|
8
|
+
var reactUseControllableState = require('@radix-ui/react-use-controllable-state');
|
|
9
|
+
var dynamic = require('@vanilla-extract/dynamic');
|
|
10
|
+
var clsx = require('clsx');
|
|
11
|
+
require('./assets/src/layers/layers.css.ts.vanilla-B_jLTKAn.css');
|
|
12
|
+
require('./assets/src/range/Range.css.ts.vanilla-CYklSEM2.css');
|
|
13
|
+
var zod = require('zod');
|
|
14
|
+
var reactId = require('@radix-ui/react-id');
|
|
15
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
16
|
+
require('./assets/src/details-panel/DetailsPanel.css.ts.vanilla-VoFdQA7k.css');
|
|
17
|
+
require('./assets/src/details-panel/DetailsPanelFooter.css.ts.vanilla-BGGOeU4-.css');
|
|
18
|
+
require('./assets/src/details-panel/DetailsPanelHeader.css.ts.vanilla-Wab_fAfb.css');
|
|
15
19
|
var reactComposeRefs = require('@radix-ui/react-compose-refs');
|
|
16
|
-
require('./assets/src/file-upload/FileUpload.css.ts.vanilla-
|
|
17
|
-
require('./assets/src/file-upload/FileUploadDropzone.css.ts.vanilla-
|
|
18
|
-
require('./assets/src/highlight/Highlight.css.ts.vanilla-
|
|
20
|
+
require('./assets/src/file-upload/FileUpload.css.ts.vanilla-IvjPsVWh.css');
|
|
21
|
+
require('./assets/src/file-upload/FileUploadDropzone.css.ts.vanilla-DbagyNcT.css');
|
|
22
|
+
require('./assets/src/highlight/Highlight.css.ts.vanilla-CLXs_VaN.css');
|
|
19
23
|
var RadixHoverCard = require('@radix-ui/react-hover-card');
|
|
20
|
-
|
|
21
|
-
require('./assets/src/
|
|
22
|
-
require('./assets/src/inline-input/InlineInput.css.ts.vanilla-CCBUdzaJ.css');
|
|
24
|
+
require('./assets/src/hover-card/HoverCardTrigger.css.ts.vanilla-CsmsV3v-.css');
|
|
25
|
+
require('./assets/src/inline-input/InlineInput.css.ts.vanilla-Dk5Tbevb.css');
|
|
23
26
|
var ResizablePrimitive = require('react-resizable-panels');
|
|
24
|
-
require('./assets/src/resizable/ResizableHandle.css.ts.vanilla-
|
|
25
|
-
require('./assets/src/layout/Layout.css.ts.vanilla-
|
|
26
|
-
require('./assets/src/layout/LayoutContent.css.ts.vanilla-
|
|
27
|
-
require('./assets/src/pill/Pill.css.ts.vanilla-
|
|
27
|
+
require('./assets/src/resizable/ResizableHandle.css.ts.vanilla-jtVF4D3b.css');
|
|
28
|
+
require('./assets/src/layout/Layout.css.ts.vanilla-DM52TWOG.css');
|
|
29
|
+
require('./assets/src/layout/LayoutContent.css.ts.vanilla-sFEYB-l7.css');
|
|
30
|
+
require('./assets/src/pill/Pill.css.ts.vanilla-TYb7HW7c.css');
|
|
28
31
|
var RadixRovingFocus = require('@radix-ui/react-roving-focus');
|
|
29
|
-
require('./assets/src/pill-menu/PillMenuTrigger.css.ts.vanilla-
|
|
30
|
-
var dynamic = require('@vanilla-extract/dynamic');
|
|
31
|
-
require('./assets/src/range/Range.css.ts.vanilla-DhU8-ZAD.css');
|
|
32
|
+
require('./assets/src/pill-menu/PillMenuTrigger.css.ts.vanilla-O2xW6998.css');
|
|
32
33
|
var helpers = require('@dnd-kit/helpers');
|
|
33
34
|
var react = require('@dnd-kit/react');
|
|
34
|
-
require('./assets/src/sortable/SortableHandle.css.ts.vanilla-
|
|
35
|
+
require('./assets/src/sortable/SortableHandle.css.ts.vanilla-BO8ic1NX.css');
|
|
35
36
|
var sortable = require('@dnd-kit/react/sortable');
|
|
36
|
-
require('./assets/src/sortable/SortableItem.css.ts.vanilla-
|
|
37
|
+
require('./assets/src/sortable/SortableItem.css.ts.vanilla-DVRAi5L2.css');
|
|
37
38
|
var globals = require('@optiaxiom/globals');
|
|
38
|
-
require('./assets/src/menu/MenuDialogContent.css.ts.vanilla-
|
|
39
|
+
require('./assets/src/menu/MenuDialogContent.css.ts.vanilla-BHjo6qSc.css');
|
|
39
40
|
require('downshift');
|
|
40
|
-
require('./assets/src/
|
|
41
|
-
require('./assets/src/
|
|
42
|
-
require('./assets/src/dialog/DialogBody.css.ts.vanilla-B62R2PB1.css');
|
|
43
|
-
require('./assets/src/input/InputRoot.css.ts.vanilla-DBxg8WsB.css');
|
|
44
|
-
require('./assets/src/command/CommandItem.css.ts.vanilla-L6MtCkXu.css');
|
|
45
|
-
require('./assets/src/menu/MenuInput.css.ts.vanilla-Bft7VInw.css');
|
|
41
|
+
require('./assets/src/command/CommandItem.css.ts.vanilla-C-4_R2Is.css');
|
|
42
|
+
require('./assets/src/menu/MenuInput.css.ts.vanilla-BF-vBg5W.css');
|
|
46
43
|
require('react-remove-scroll');
|
|
47
44
|
require('@radix-ui/react-dialog');
|
|
48
45
|
require('use-sync-external-store/shim');
|
|
49
|
-
require('./assets/src/dialog/DialogBody.css.ts.vanilla-
|
|
50
|
-
require('./assets/src/backdrop/Backdrop.css.ts.vanilla-
|
|
51
|
-
require('./assets/src/dialog/DialogContent.css.ts.vanilla-
|
|
52
|
-
require('./assets/src/dialog/DialogFooter.css.ts.vanilla-
|
|
53
|
-
require('./assets/src/dialog/DialogHeader.css.ts.vanilla-
|
|
54
|
-
require('./assets/src/alert-dialog/AlertDialogContent.css.ts.vanilla-
|
|
55
|
-
require('./assets/src/alert-dialog/AlertDialogFooter.css.ts.vanilla-
|
|
56
|
-
require('./assets/src/alert-dialog/AlertDialogHeader.css.ts.vanilla-
|
|
57
|
-
require('./assets/src/
|
|
58
|
-
require('./assets/src/
|
|
59
|
-
require('./assets/src/
|
|
60
|
-
require('./assets/src/
|
|
61
|
-
require('./assets/src/
|
|
62
|
-
require('./assets/src/
|
|
63
|
-
require('./assets/src/
|
|
64
|
-
require('./assets/src/
|
|
65
|
-
require('./assets/src/table/
|
|
66
|
-
require('./assets/src/
|
|
46
|
+
require('./assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css');
|
|
47
|
+
require('./assets/src/backdrop/Backdrop.css.ts.vanilla-CNEJYOtT.css');
|
|
48
|
+
require('./assets/src/dialog/DialogContent.css.ts.vanilla-CziQxeOs.css');
|
|
49
|
+
require('./assets/src/dialog/DialogFooter.css.ts.vanilla-DF-A3sdc.css');
|
|
50
|
+
require('./assets/src/dialog/DialogHeader.css.ts.vanilla-ihfhiAFh.css');
|
|
51
|
+
require('./assets/src/alert-dialog/AlertDialogContent.css.ts.vanilla-BPdVG04o.css');
|
|
52
|
+
require('./assets/src/alert-dialog/AlertDialogFooter.css.ts.vanilla-DZEY23Io.css');
|
|
53
|
+
require('./assets/src/alert-dialog/AlertDialogHeader.css.ts.vanilla-DOCF4rOu.css');
|
|
54
|
+
require('./assets/src/cover/Cover.css.ts.vanilla-BY12GJ4k.css');
|
|
55
|
+
require('./assets/src/card/Card.css.ts.vanilla-6B1Zt0xh.css');
|
|
56
|
+
require('./assets/src/card/CardCheckbox.css.ts.vanilla-DdHH54zv.css');
|
|
57
|
+
require('./assets/src/card/CardHeader.css.ts.vanilla-CFOfCFv3.css');
|
|
58
|
+
require('./assets/src/link/Link.css.ts.vanilla-cndkzeiv.css');
|
|
59
|
+
require('./assets/src/card/CardPreview.css.ts.vanilla-CTfTyliN.css');
|
|
60
|
+
require('./assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css');
|
|
61
|
+
require('./assets/src/actions/ActionsContent.css.ts.vanilla-DFcH3jAM.css');
|
|
62
|
+
require('./assets/src/table/Table.css.ts.vanilla-DEF-DE6U.css');
|
|
63
|
+
require('./assets/src/table/TableBody.css.ts.vanilla-BPPkl6K4.css');
|
|
64
|
+
require('./assets/src/table/TableRow.css.ts.vanilla-BSOYit4e.css');
|
|
65
|
+
require('./assets/src/table/TableCell.css.ts.vanilla-W50elvgg.css');
|
|
66
|
+
require('./assets/src/table/TableHeader.css.ts.vanilla-B_7Hze7f.css');
|
|
67
|
+
require('./assets/src/table/TableHeaderCell.css.ts.vanilla-CXTolhxG.css');
|
|
68
|
+
require('./assets/src/data-table/DataTableHeaderCell.css.ts.vanilla-z6nZcCW8.css');
|
|
67
69
|
require('react-day-picker');
|
|
68
|
-
require('@optiaxiom/globals/fonts');
|
|
69
|
-
require('./assets/src/sprinkles/properties.css.ts.vanilla-BQdbPCGU.css');
|
|
70
|
-
require('./assets/src/box/Box.css.ts.vanilla-DUz-5y2w.css');
|
|
71
70
|
require('@radix-ui/react-popper');
|
|
71
|
+
require('@radix-ui/react-dismissable-layer');
|
|
72
|
+
require('@radix-ui/react-focus-guards');
|
|
73
|
+
require('@radix-ui/react-focus-scope');
|
|
74
|
+
require('./assets/src/calendar/Calendar.css.ts.vanilla-B6erZYOC.css');
|
|
75
|
+
require('./assets/src/calendar/CalendarDayButton.css.ts.vanilla-Bt_JPzry.css');
|
|
76
|
+
require('./assets/src/calendar/CalendarGrid.css.ts.vanilla-CdkqDEOm.css');
|
|
77
|
+
require('./assets/src/calendar/CalendarMonths.css.ts.vanilla-DHBgPvJ7.css');
|
|
78
|
+
require('./assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-CWHqnCfU.css');
|
|
79
|
+
require('./assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-BXE9ThZ4.css');
|
|
80
|
+
require('@radix-ui/react-label');
|
|
81
|
+
require('@radix-ui/react-tooltip');
|
|
82
|
+
require('@optiaxiom/globals/fonts');
|
|
83
|
+
require('./assets/src/sprinkles/properties.css.ts.vanilla-DAnyVz7m.css');
|
|
84
|
+
require('./assets/src/box/Box.css.ts.vanilla-DrTr7HOZ.css');
|
|
85
|
+
require('./assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css');
|
|
86
|
+
require('./assets/src/button/ButtonRoot.css.ts.vanilla-CpaCqK7r.css');
|
|
87
|
+
require('./assets/src/button/ButtonLoadable.css.ts.vanilla-vG6De9AB.css');
|
|
88
|
+
require('./assets/src/text/Text.css.ts.vanilla-CJZEaWwj.css');
|
|
89
|
+
require('./assets/src/spinner/Spinner.css.ts.vanilla-CHAq-pvT.css');
|
|
90
|
+
require('./assets/src/transition/Transition.css.ts.vanilla-CcM_8e6o.css');
|
|
91
|
+
require('./assets/src/alert/Alert.css.ts.vanilla-DEKCXugb.css');
|
|
72
92
|
require('@radix-ui/react-avatar');
|
|
73
|
-
require('./assets/src/dialog/DialogBody.css.ts.vanilla-
|
|
74
|
-
require('./assets/src/avatar/Avatar.css.ts.vanilla-
|
|
75
|
-
require('@radix-ui/react-visually-hidden');
|
|
76
|
-
require('./assets/src/button/ButtonRoot.css.ts.vanilla-Cs9WX0Za.css');
|
|
77
|
-
require('./assets/src/button/ButtonLoadable.css.ts.vanilla-BJwTj8uz.css');
|
|
78
|
-
require('./assets/src/text/Text.css.ts.vanilla-CaQE2TEn.css');
|
|
79
|
-
require('./assets/src/spinner/Spinner.css.ts.vanilla-DVffKgAp.css');
|
|
80
|
-
require('./assets/src/transition/Transition.css.ts.vanilla-BrfxVX71.css');
|
|
81
|
-
require('./assets/src/alert/Alert.css.ts.vanilla-Cpcil-TF.css');
|
|
93
|
+
require('./assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css');
|
|
94
|
+
require('./assets/src/avatar/Avatar.css.ts.vanilla-C76aUSqs.css');
|
|
82
95
|
require('@radix-ui/react-popover');
|
|
83
|
-
require('./assets/src/
|
|
84
|
-
require('./assets/src/
|
|
85
|
-
require('./assets/src/
|
|
96
|
+
require('./assets/src/dialog/DialogBody.css.ts.vanilla-WBp4BSVx.css');
|
|
97
|
+
require('./assets/src/toggle-input/ToggleInput.css.ts.vanilla-CrytUVTz.css');
|
|
98
|
+
require('./assets/src/toggle-input/ToggleInputControl.css.ts.vanilla-CpdwtyXH.css');
|
|
99
|
+
require('@radix-ui/react-visually-hidden');
|
|
100
|
+
require('./assets/src/checkbox/CheckboxControl.css.ts.vanilla-Ca8pC30f.css');
|
|
101
|
+
require('./assets/src/listbox/ListboxCheckboxItem.css.ts.vanilla-BxXbrOvd.css');
|
|
102
|
+
require('./assets/src/listbox/ListboxItem.css.ts.vanilla-wXOfYTD5.css');
|
|
103
|
+
require('./assets/src/listbox/ListboxItemIndicator.css.ts.vanilla-CFZXnbre.css');
|
|
104
|
+
require('./assets/src/skeleton/Skeleton.css.ts.vanilla-CiQe6X1o.css');
|
|
86
105
|
require('@tanstack/react-virtual');
|
|
87
106
|
require('@radix-ui/react-separator');
|
|
88
|
-
require('./assets/src/separator/Separator.css.ts.vanilla-
|
|
89
|
-
require('./assets/src/
|
|
90
|
-
require('./assets/src/
|
|
91
|
-
require('./assets/src/toggle-input/ToggleInputControl.css.ts.vanilla-BFffOfM2.css');
|
|
92
|
-
require('./assets/src/switch/Switch.css.ts.vanilla-HF4KoROO.css');
|
|
93
|
-
require('./assets/src/listbox/ListboxCheckboxItem.css.ts.vanilla-DoyuB7iy.css');
|
|
94
|
-
require('./assets/src/modal/ModalListbox.css.ts.vanilla-C-H3wa0B.css');
|
|
107
|
+
require('./assets/src/separator/Separator.css.ts.vanilla-BQx6pyxJ.css');
|
|
108
|
+
require('./assets/src/switch/Switch.css.ts.vanilla-BY_Y7yGA.css');
|
|
109
|
+
require('./assets/src/modal/ModalListbox.css.ts.vanilla-BAXa8Od2.css');
|
|
95
110
|
require('@radix-ui/react-portal');
|
|
96
|
-
require('./assets/src/
|
|
97
|
-
require('
|
|
98
|
-
require('
|
|
99
|
-
require('
|
|
100
|
-
require('
|
|
101
|
-
require('./assets/src/calendar/Calendar.css.ts.vanilla-um1CqRDY.css');
|
|
102
|
-
require('./assets/src/calendar/CalendarDayButton.css.ts.vanilla-B7YdTf6M.css');
|
|
103
|
-
require('./assets/src/calendar/CalendarGrid.css.ts.vanilla-ChEJ7LhJ.css');
|
|
104
|
-
require('./assets/src/calendar/CalendarMonths.css.ts.vanilla-lAuXcpKb.css');
|
|
105
|
-
require('./assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-BhIotaN2.css');
|
|
106
|
-
require('./assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-mwMePMWF.css');
|
|
111
|
+
require('./assets/src/input/Input.css.ts.vanilla-ByjwzT6K.css');
|
|
112
|
+
require('./assets/src/input/InputControl.css.ts.vanilla-Bn84cpIc.css');
|
|
113
|
+
require('./assets/src/input/InputRoot.css.ts.vanilla-GUX2WLT1.css');
|
|
114
|
+
require('./assets/src/textarea/Textarea.css.ts.vanilla-CVX3rYg1.css');
|
|
115
|
+
require('./assets/src/textarea/TextareaAutosize.css.ts.vanilla-CATtXHgd.css');
|
|
107
116
|
|
|
108
117
|
function _interopNamespaceDefault(e) {
|
|
109
118
|
var n = Object.create(null);
|
|
@@ -229,7 +238,7 @@ function useHotkeys(hotkeys, tagsToIgnore = ["INPUT", "TEXTAREA", "SELECT"], tri
|
|
|
229
238
|
}
|
|
230
239
|
|
|
231
240
|
function useDialogKit() {
|
|
232
|
-
const context = React.useContext(
|
|
241
|
+
const context = React.useContext(Textarea.DialogKitContext);
|
|
233
242
|
if (!context) {
|
|
234
243
|
throw new Error(
|
|
235
244
|
`\`useDialogItemContext\` must be used within managed dialogs.`
|
|
@@ -243,33 +252,2200 @@ function useDialogKit() {
|
|
|
243
252
|
};
|
|
244
253
|
}
|
|
245
254
|
|
|
255
|
+
const [BlockDocumentProvider, useBlockDocumentContext] = reactContext.createContext("@optiaxiom/react/BlockDocument");
|
|
256
|
+
|
|
257
|
+
function BlockAction({ children, onClick, ...props }) {
|
|
258
|
+
const { onEvent } = useBlockDocumentContext("@optiaxiom/react/BlockAction");
|
|
259
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
260
|
+
Textarea.Button,
|
|
261
|
+
{
|
|
262
|
+
justifyContent: "center",
|
|
263
|
+
onClick: () => {
|
|
264
|
+
if (!onClick) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
onEvent(onClick);
|
|
268
|
+
},
|
|
269
|
+
size: "lg",
|
|
270
|
+
...props,
|
|
271
|
+
children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children })
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
BlockAction.displayName = "@optiaxiom/react/BlockAction";
|
|
276
|
+
|
|
277
|
+
function BlockCancelAction({
|
|
278
|
+
children,
|
|
279
|
+
placeholder = "Tell Opal what to do instead"
|
|
280
|
+
}) {
|
|
281
|
+
const { onCancelAction } = useBlockDocumentContext(
|
|
282
|
+
"@optiaxiom/react/BlockCancelAction"
|
|
283
|
+
);
|
|
284
|
+
const [inputValue, setInputValue] = React.useState("");
|
|
285
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
286
|
+
"form",
|
|
287
|
+
{
|
|
288
|
+
onSubmit: (event) => {
|
|
289
|
+
event.preventDefault();
|
|
290
|
+
onCancelAction?.(inputValue);
|
|
291
|
+
},
|
|
292
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Textarea.Flex, { flexDirection: "row", gap: "16", w: "full", children: [
|
|
293
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
294
|
+
Textarea.Input,
|
|
295
|
+
{
|
|
296
|
+
"aria-label": "Cancellation reason",
|
|
297
|
+
onChange: (event) => setInputValue(event.target.value),
|
|
298
|
+
placeholder,
|
|
299
|
+
size: "lg",
|
|
300
|
+
value: inputValue,
|
|
301
|
+
w: "full"
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Button, { size: "lg", type: "submit", children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) })
|
|
305
|
+
] })
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
BlockCancelAction.displayName = "@optiaxiom/react/BlockCancelAction";
|
|
310
|
+
|
|
311
|
+
function BlockField({ children, ...props }) {
|
|
312
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Field, { ...props, children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) });
|
|
313
|
+
}
|
|
314
|
+
BlockField.displayName = "@optiaxiom/react/BlockField";
|
|
315
|
+
|
|
316
|
+
function BlockGroup({ children, ...props }) {
|
|
317
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { ...props, children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) });
|
|
318
|
+
}
|
|
319
|
+
BlockGroup.displayName = "@optiaxiom/react/BlockGroup";
|
|
320
|
+
|
|
321
|
+
function BlockHeading({ children, ...props }) {
|
|
322
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Heading, { ...props, children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) });
|
|
323
|
+
}
|
|
324
|
+
BlockHeading.displayName = "@optiaxiom/react/BlockHeading";
|
|
325
|
+
|
|
326
|
+
function BlockInput({ onValueChange, ...props }) {
|
|
327
|
+
const { data, onDataChange, onEvent, readOnly } = useBlockDocumentContext(
|
|
328
|
+
"@optiaxiom/react/BlockInput"
|
|
329
|
+
);
|
|
330
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
331
|
+
Textarea.Input,
|
|
332
|
+
{
|
|
333
|
+
...props,
|
|
334
|
+
onValueChange: (value) => {
|
|
335
|
+
if (props.name) {
|
|
336
|
+
onDataChange?.(props.name, value);
|
|
337
|
+
}
|
|
338
|
+
if (onValueChange) {
|
|
339
|
+
onEvent(onValueChange, value);
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
readOnly,
|
|
343
|
+
value: props.name ? data[props.name] : ""
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
BlockInput.displayName = "@optiaxiom/react/BlockInput";
|
|
348
|
+
|
|
349
|
+
function BlockLink({ children, ...props }) {
|
|
350
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Link, { ...props, children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) });
|
|
351
|
+
}
|
|
352
|
+
BlockLink.displayName = "@optiaxiom/react/BlockLink";
|
|
353
|
+
|
|
354
|
+
var control = Textarea.recipeRuntime({base:[{bg:'transparent'},'_137e7i6']});
|
|
355
|
+
var fillValue = 'var(--f7cu9i)';
|
|
356
|
+
var mark$1 = Textarea.recipeRuntime({base:[{transition:'colors'},'ajf0yx'],variants:{active:{false:{color:'fg.secondary'},true:{}}}});
|
|
357
|
+
var markValue = 'var(--ejgf9i)';
|
|
358
|
+
var range = Textarea.recipeRuntime({base:[{h:'full',rounded:'inherit'},'_1241oc9']});
|
|
359
|
+
var root$3 = Textarea.recipeRuntime({base:['_1vq6zx2',{alignItems:'center',color:'fg.default',display:'flex',fontSize:'md',w:'full'},'_12j23d3'],variants:{marks:{false:{},true:{mb:'24'}},size:{md:{h:'md'},lg:{h:'lg'}}}});
|
|
360
|
+
var thumb = Textarea.recipeRuntime({base:[{border:'1',rounded:'full',shadow:'sm',size:'xs'},'_14gxwjj']});
|
|
361
|
+
var track = Textarea.recipeRuntime({base:[{display:'flex',flex:'1',rounded:'full'},'_1mtappg']});
|
|
362
|
+
|
|
363
|
+
const useTooltipState = () => {
|
|
364
|
+
const [tooltipOpen, setTooltipOpen] = React.useState(false);
|
|
365
|
+
const timerRef = React.useRef();
|
|
366
|
+
return [
|
|
367
|
+
tooltipOpen,
|
|
368
|
+
(flag, delayed = false) => {
|
|
369
|
+
if (delayed) {
|
|
370
|
+
window.clearTimeout(timerRef.current);
|
|
371
|
+
timerRef.current = window.setTimeout(() => {
|
|
372
|
+
setTooltipOpen(flag);
|
|
373
|
+
}, 50);
|
|
374
|
+
} else {
|
|
375
|
+
window.clearTimeout(timerRef.current);
|
|
376
|
+
setTooltipOpen(flag);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
];
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
const Range = React.forwardRef(
|
|
383
|
+
({
|
|
384
|
+
className,
|
|
385
|
+
defaultValue = 0,
|
|
386
|
+
disabled,
|
|
387
|
+
getLabel = (value) => value,
|
|
388
|
+
marks,
|
|
389
|
+
max = 100,
|
|
390
|
+
min = 0,
|
|
391
|
+
onChange,
|
|
392
|
+
onValueChange,
|
|
393
|
+
showTooltip = false,
|
|
394
|
+
size = "md",
|
|
395
|
+
step = 1,
|
|
396
|
+
value: valueProp,
|
|
397
|
+
...props
|
|
398
|
+
}, ref) => {
|
|
399
|
+
const { boxProps, restProps } = Textarea.extractBoxProps(props);
|
|
400
|
+
const { descriptionId, error, errorId, inputId } = Textarea.useFieldContext(
|
|
401
|
+
"@optiaxiom/react/Range"
|
|
402
|
+
);
|
|
403
|
+
const [value, setValue] = reactUseControllableState.useControllableState({
|
|
404
|
+
caller: "@optiaxiom/react/Range",
|
|
405
|
+
defaultProp: defaultValue,
|
|
406
|
+
onChange: onValueChange,
|
|
407
|
+
prop: valueProp
|
|
408
|
+
});
|
|
409
|
+
const fillValue$1 = `${(value - min) / (max - min)}`;
|
|
410
|
+
const [tooltipOpen, setTooltipOpen] = useTooltipState();
|
|
411
|
+
const isPointerInsideRef = React.useRef(false);
|
|
412
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
413
|
+
Textarea.Box,
|
|
414
|
+
{
|
|
415
|
+
"data-disabled": disabled ? "" : void 0,
|
|
416
|
+
...root$3({ marks: !!marks, size }, className),
|
|
417
|
+
...boxProps,
|
|
418
|
+
children: [
|
|
419
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
420
|
+
Textarea.Box,
|
|
421
|
+
{
|
|
422
|
+
style: dynamic.assignInlineVars({
|
|
423
|
+
[fillValue]: fillValue$1
|
|
424
|
+
}),
|
|
425
|
+
...track(),
|
|
426
|
+
children: [
|
|
427
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ...range() }),
|
|
428
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
429
|
+
Textarea.Tooltip,
|
|
430
|
+
{
|
|
431
|
+
content: getLabel(value),
|
|
432
|
+
disabled: disabled || !showTooltip,
|
|
433
|
+
disableHoverableContent: true,
|
|
434
|
+
open: tooltipOpen,
|
|
435
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ...thumb() })
|
|
436
|
+
}
|
|
437
|
+
),
|
|
438
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
439
|
+
Textarea.Box,
|
|
440
|
+
{
|
|
441
|
+
"aria-describedby": errorId || descriptionId ? clsx(errorId, descriptionId) : void 0,
|
|
442
|
+
"aria-disabled": disabled,
|
|
443
|
+
"aria-invalid": error ? true : void 0,
|
|
444
|
+
asChild: true,
|
|
445
|
+
id: inputId,
|
|
446
|
+
ref,
|
|
447
|
+
...control(),
|
|
448
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
449
|
+
"input",
|
|
450
|
+
{
|
|
451
|
+
disabled,
|
|
452
|
+
max,
|
|
453
|
+
min,
|
|
454
|
+
onBlur: () => {
|
|
455
|
+
if (isPointerInsideRef.current) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
setTooltipOpen(false);
|
|
459
|
+
},
|
|
460
|
+
onChange: (event) => {
|
|
461
|
+
setValue(Number(event.currentTarget.value));
|
|
462
|
+
onChange?.(event);
|
|
463
|
+
},
|
|
464
|
+
onFocus: (event) => {
|
|
465
|
+
if (event.currentTarget.matches(":focus-visible")) {
|
|
466
|
+
setTooltipOpen(true);
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
onKeyDown: () => {
|
|
470
|
+
setTooltipOpen(true);
|
|
471
|
+
},
|
|
472
|
+
onPointerLeave: (event) => {
|
|
473
|
+
isPointerInsideRef.current = false;
|
|
474
|
+
if (!event.currentTarget.matches(":focus-visible")) {
|
|
475
|
+
setTooltipOpen(false);
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
onPointerMove: () => {
|
|
479
|
+
isPointerInsideRef.current = true;
|
|
480
|
+
setTooltipOpen(true, true);
|
|
481
|
+
},
|
|
482
|
+
step,
|
|
483
|
+
type: "range",
|
|
484
|
+
value,
|
|
485
|
+
...restProps
|
|
486
|
+
}
|
|
487
|
+
)
|
|
488
|
+
}
|
|
489
|
+
)
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
),
|
|
493
|
+
marks?.map(
|
|
494
|
+
(mark) => typeof mark === "number" ? {
|
|
495
|
+
label: getLabel(mark),
|
|
496
|
+
value: mark
|
|
497
|
+
} : mark
|
|
498
|
+
).map((mark) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
499
|
+
Textarea.Box,
|
|
500
|
+
{
|
|
501
|
+
onClick: () => {
|
|
502
|
+
if (!disabled) {
|
|
503
|
+
setValue(mark.value);
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
style: dynamic.assignInlineVars({
|
|
507
|
+
[markValue]: `${(mark.value - min) / (max - min)}`
|
|
508
|
+
}),
|
|
509
|
+
...mark$1({ active: value >= mark.value }),
|
|
510
|
+
children: mark.label
|
|
511
|
+
},
|
|
512
|
+
mark.value
|
|
513
|
+
))
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
);
|
|
519
|
+
Range.displayName = "@optiaxiom/react/Range";
|
|
520
|
+
|
|
521
|
+
function BlockRange(props) {
|
|
522
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Range, { ...props });
|
|
523
|
+
}
|
|
524
|
+
BlockRange.displayName = "@optiaxiom/react/BlockRange";
|
|
525
|
+
|
|
526
|
+
function BlockSelect({ children, options, ...props }) {
|
|
527
|
+
const { data, onDataChange, onEvent, readOnly } = useBlockDocumentContext(
|
|
528
|
+
"@optiaxiom/react/BlockSelect"
|
|
529
|
+
);
|
|
530
|
+
const optionsRef = React.useRef(options);
|
|
531
|
+
optionsRef.current = options;
|
|
532
|
+
const value = props.name ? data[props.name] : options[0]?.value ?? "";
|
|
533
|
+
React.useEffect(() => {
|
|
534
|
+
const option = optionsRef.current.find((option2) => option2.value === value);
|
|
535
|
+
if (option?.execute) {
|
|
536
|
+
onEvent(option.execute, value);
|
|
537
|
+
}
|
|
538
|
+
}, [onEvent, value]);
|
|
539
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
540
|
+
Textarea.Select,
|
|
541
|
+
{
|
|
542
|
+
...props,
|
|
543
|
+
onValueChange: (value2) => {
|
|
544
|
+
if (readOnly) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
if (props.name) {
|
|
548
|
+
onDataChange?.(props.name, value2);
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
options,
|
|
552
|
+
value,
|
|
553
|
+
children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children })
|
|
554
|
+
}
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
BlockSelect.displayName = "@optiaxiom/react/BlockSelect";
|
|
558
|
+
|
|
559
|
+
function BlockSelectContent(props) {
|
|
560
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.SelectContent, { ...props });
|
|
561
|
+
}
|
|
562
|
+
BlockSelectContent.displayName = "@optiaxiom/react/BlockSelectContent";
|
|
563
|
+
|
|
564
|
+
function BlockSelectTrigger({
|
|
565
|
+
children,
|
|
566
|
+
...props
|
|
567
|
+
}) {
|
|
568
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.SelectTrigger, { ...props, children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) });
|
|
569
|
+
}
|
|
570
|
+
BlockSelectTrigger.displayName = "@optiaxiom/react/BlockSelectTrigger";
|
|
571
|
+
|
|
572
|
+
function BlockSeparator(props) {
|
|
573
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Separator, { ...props });
|
|
574
|
+
}
|
|
575
|
+
BlockSeparator.displayName = "@optiaxiom/react/BlockSeparator";
|
|
576
|
+
|
|
577
|
+
function BlockText({ children, ...props }) {
|
|
578
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Text, { ...props, children: children && /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: children }) });
|
|
579
|
+
}
|
|
580
|
+
BlockText.displayName = "@optiaxiom/react/BlockText";
|
|
581
|
+
|
|
582
|
+
function BlockTextarea({ onValueChange, ...props }) {
|
|
583
|
+
const { data, onDataChange, onEvent, readOnly } = useBlockDocumentContext(
|
|
584
|
+
"@optiaxiom/react/BlockTextarea"
|
|
585
|
+
);
|
|
586
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
587
|
+
Textarea.Textarea,
|
|
588
|
+
{
|
|
589
|
+
...props,
|
|
590
|
+
onValueChange: (value) => {
|
|
591
|
+
if (props.name) {
|
|
592
|
+
onDataChange?.(props.name, value);
|
|
593
|
+
}
|
|
594
|
+
if (onValueChange) {
|
|
595
|
+
onEvent(onValueChange, value);
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
readOnly,
|
|
599
|
+
value: props.name ? data[props.name] : void 0
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
BlockTextarea.displayName = "@optiaxiom/react/BlockTextarea";
|
|
604
|
+
|
|
605
|
+
const alignItemsSprinkleSchema = zod.z.union([
|
|
606
|
+
zod.z.literal("normal"),
|
|
607
|
+
zod.z.literal("stretch"),
|
|
608
|
+
zod.z.literal("center"),
|
|
609
|
+
zod.z.literal("end"),
|
|
610
|
+
zod.z.literal("start")
|
|
611
|
+
]).describe("Set the element's `align-items` CSS property");
|
|
612
|
+
const alignSelfSprinkleSchema = zod.z.union([
|
|
613
|
+
zod.z.literal("normal"),
|
|
614
|
+
zod.z.literal("stretch"),
|
|
615
|
+
zod.z.literal("center"),
|
|
616
|
+
zod.z.literal("end"),
|
|
617
|
+
zod.z.literal("start")
|
|
618
|
+
]).describe("Set the element's `align-self` CSS property");
|
|
619
|
+
const animationSprinkleSchema = zod.z.union([zod.z.literal("ping"), zod.z.literal("pulse"), zod.z.literal("spin")]).describe("Animate element with CSS animations");
|
|
620
|
+
const backgroundImageSprinkleSchema = zod.z.literal("gradient.opal").describe("Set the element's `background-image` CSS property");
|
|
621
|
+
const bgSprinkleSchema = zod.z.union([
|
|
622
|
+
zod.z.literal("transparent"),
|
|
623
|
+
zod.z.literal("bg.accent"),
|
|
624
|
+
zod.z.literal("bg.accent.hovered"),
|
|
625
|
+
zod.z.literal("bg.accent.light"),
|
|
626
|
+
zod.z.literal("bg.accent.pressed"),
|
|
627
|
+
zod.z.literal("bg.accent.subtle"),
|
|
628
|
+
zod.z.literal("bg.avatar.neutral"),
|
|
629
|
+
zod.z.literal("bg.avatar.purple"),
|
|
630
|
+
zod.z.literal("bg.default"),
|
|
631
|
+
zod.z.literal("bg.default.hovered"),
|
|
632
|
+
zod.z.literal("bg.default.inverse"),
|
|
633
|
+
zod.z.literal("bg.default.inverse.hovered"),
|
|
634
|
+
zod.z.literal("bg.default.inverse.pressed"),
|
|
635
|
+
zod.z.literal("bg.default.pressed"),
|
|
636
|
+
zod.z.literal("bg.error"),
|
|
637
|
+
zod.z.literal("bg.error.hovered"),
|
|
638
|
+
zod.z.literal("bg.error.light"),
|
|
639
|
+
zod.z.literal("bg.error.pressed"),
|
|
640
|
+
zod.z.literal("bg.error.subtle"),
|
|
641
|
+
zod.z.literal("bg.error.subtlest"),
|
|
642
|
+
zod.z.literal("bg.information"),
|
|
643
|
+
zod.z.literal("bg.information.light"),
|
|
644
|
+
zod.z.literal("bg.information.subtle"),
|
|
645
|
+
zod.z.literal("bg.overlay"),
|
|
646
|
+
zod.z.literal("bg.page"),
|
|
647
|
+
zod.z.literal("bg.secondary"),
|
|
648
|
+
zod.z.literal("bg.secondary.hovered"),
|
|
649
|
+
zod.z.literal("bg.spinner.default"),
|
|
650
|
+
zod.z.literal("bg.spinner.inverse"),
|
|
651
|
+
zod.z.literal("bg.success"),
|
|
652
|
+
zod.z.literal("bg.success.hovered"),
|
|
653
|
+
zod.z.literal("bg.success.light"),
|
|
654
|
+
zod.z.literal("bg.success.subtle"),
|
|
655
|
+
zod.z.literal("bg.tertiary"),
|
|
656
|
+
zod.z.literal("bg.tertiary.hovered"),
|
|
657
|
+
zod.z.literal("bg.warning"),
|
|
658
|
+
zod.z.literal("bg.warning.hovered"),
|
|
659
|
+
zod.z.literal("bg.warning.light"),
|
|
660
|
+
zod.z.literal("bg.warning.subtle"),
|
|
661
|
+
zod.z.literal("current")
|
|
662
|
+
]).describe(
|
|
663
|
+
"Set the element's background color. Only accepts predefined color tokens starting with `bg.` (e.g., `bg.default`, `bg.accent`, `bg.error`), or the special values `current` and `transparent`."
|
|
664
|
+
);
|
|
665
|
+
const borderSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("0"), zod.z.literal("1")]).describe("Set the element's `border-width` CSS property");
|
|
666
|
+
const borderBSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("0"), zod.z.literal("1")]).describe("Set the element's `border-bottom-width` CSS property");
|
|
667
|
+
const borderColorSprinkleSchema = zod.z.union([
|
|
668
|
+
zod.z.literal("transparent"),
|
|
669
|
+
zod.z.literal("border.accent"),
|
|
670
|
+
zod.z.literal("border.control"),
|
|
671
|
+
zod.z.literal("border.control.hovered"),
|
|
672
|
+
zod.z.literal("border.default"),
|
|
673
|
+
zod.z.literal("border.disabled"),
|
|
674
|
+
zod.z.literal("border.error"),
|
|
675
|
+
zod.z.literal("border.focus"),
|
|
676
|
+
zod.z.literal("border.focus.error"),
|
|
677
|
+
zod.z.literal("border.secondary"),
|
|
678
|
+
zod.z.literal("border.success"),
|
|
679
|
+
zod.z.literal("border.tertiary"),
|
|
680
|
+
zod.z.literal("border.warning"),
|
|
681
|
+
zod.z.literal("current")
|
|
682
|
+
]).describe(
|
|
683
|
+
"Set the element's border color. Only accepts predefined color tokens starting with `border.` (e.g., `border.default`, `border.accent`, `border.error`), or the special values `current` and `transparent`."
|
|
684
|
+
);
|
|
685
|
+
const borderLSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("0"), zod.z.literal("1")]).describe("Set the element's `border-left-width` CSS property");
|
|
686
|
+
const borderRSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("0"), zod.z.literal("1")]).describe("Set the element's `border-right-width` CSS property");
|
|
687
|
+
const borderTSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("0"), zod.z.literal("1")]).describe("Set the element's `border-top-width` CSS property");
|
|
688
|
+
const colorSprinkleSchema = zod.z.union([
|
|
689
|
+
zod.z.literal("transparent"),
|
|
690
|
+
zod.z.literal("fg.accent"),
|
|
691
|
+
zod.z.literal("fg.accent.hovered"),
|
|
692
|
+
zod.z.literal("fg.accent.strong"),
|
|
693
|
+
zod.z.literal("fg.avatar.neutral"),
|
|
694
|
+
zod.z.literal("fg.avatar.purple"),
|
|
695
|
+
zod.z.literal("fg.default"),
|
|
696
|
+
zod.z.literal("fg.default.inverse"),
|
|
697
|
+
zod.z.literal("fg.disabled"),
|
|
698
|
+
zod.z.literal("fg.error"),
|
|
699
|
+
zod.z.literal("fg.error.hovered"),
|
|
700
|
+
zod.z.literal("fg.error.light"),
|
|
701
|
+
zod.z.literal("fg.error.strong"),
|
|
702
|
+
zod.z.literal("fg.information"),
|
|
703
|
+
zod.z.literal("fg.information.light"),
|
|
704
|
+
zod.z.literal("fg.information.strong"),
|
|
705
|
+
zod.z.literal("fg.link.default"),
|
|
706
|
+
zod.z.literal("fg.link.default.hovered"),
|
|
707
|
+
zod.z.literal("fg.link.inverse"),
|
|
708
|
+
zod.z.literal("fg.link.subtle"),
|
|
709
|
+
zod.z.literal("fg.link.visited"),
|
|
710
|
+
zod.z.literal("fg.secondary"),
|
|
711
|
+
zod.z.literal("fg.spinner.default"),
|
|
712
|
+
zod.z.literal("fg.spinner.inverse"),
|
|
713
|
+
zod.z.literal("fg.success"),
|
|
714
|
+
zod.z.literal("fg.success.hovered"),
|
|
715
|
+
zod.z.literal("fg.success.light"),
|
|
716
|
+
zod.z.literal("fg.success.strong"),
|
|
717
|
+
zod.z.literal("fg.tertiary"),
|
|
718
|
+
zod.z.literal("fg.warning"),
|
|
719
|
+
zod.z.literal("fg.warning.hovered"),
|
|
720
|
+
zod.z.literal("fg.warning.inverse"),
|
|
721
|
+
zod.z.literal("fg.warning.light"),
|
|
722
|
+
zod.z.literal("fg.warning.strong"),
|
|
723
|
+
zod.z.literal("fg.white"),
|
|
724
|
+
zod.z.literal("current")
|
|
725
|
+
]).describe(
|
|
726
|
+
"Set the element's text color. Only accepts predefined color tokens starting with `fg.` (e.g., `fg.default`, `fg.accent`, `fg.error`), or the special values `current` and `transparent`."
|
|
727
|
+
);
|
|
728
|
+
const cursorSprinkleSchema = zod.z.union([zod.z.literal("default"), zod.z.literal("pointer"), zod.z.literal("text")]).describe("Set the element's `cursor` CSS property");
|
|
729
|
+
const displaySprinkleSchema = zod.z.union([
|
|
730
|
+
zod.z.literal("flex"),
|
|
731
|
+
zod.z.literal("grid"),
|
|
732
|
+
zod.z.literal("none"),
|
|
733
|
+
zod.z.literal("block"),
|
|
734
|
+
zod.z.literal("inline"),
|
|
735
|
+
zod.z.literal("table"),
|
|
736
|
+
zod.z.literal("table-cell"),
|
|
737
|
+
zod.z.literal("table-row"),
|
|
738
|
+
zod.z.literal("inline-block"),
|
|
739
|
+
zod.z.literal("inline-flex")
|
|
740
|
+
]).describe("Set the element's `display` CSS property");
|
|
741
|
+
const flexSprinkleSchema = zod.z.union([
|
|
742
|
+
zod.z.literal("initial"),
|
|
743
|
+
zod.z.literal("none"),
|
|
744
|
+
zod.z.literal("auto"),
|
|
745
|
+
zod.z.literal("1")
|
|
746
|
+
]).describe("Set the element's `flex` CSS property");
|
|
747
|
+
const flexDirectionSprinkleSchema = zod.z.union([
|
|
748
|
+
zod.z.literal("column"),
|
|
749
|
+
zod.z.literal("column-reverse"),
|
|
750
|
+
zod.z.literal("row"),
|
|
751
|
+
zod.z.literal("row-reverse")
|
|
752
|
+
]).describe("Set the element's `flex-direction` CSS property");
|
|
753
|
+
const flexWrapSprinkleSchema = zod.z.union([zod.z.literal("nowrap"), zod.z.literal("wrap")]).describe("Set the element's `flex-wrap` CSS property");
|
|
754
|
+
const fontFamilySprinkleSchema = zod.z.union([zod.z.literal("mono"), zod.z.literal("sans")]).describe(
|
|
755
|
+
"Set the element's font family. Only accepts predefined fontFamily tokens."
|
|
756
|
+
);
|
|
757
|
+
const fontSizeSprinkleSchema = zod.z.union([
|
|
758
|
+
zod.z.literal("inherit"),
|
|
759
|
+
zod.z.literal("xs"),
|
|
760
|
+
zod.z.literal("sm"),
|
|
761
|
+
zod.z.literal("md"),
|
|
762
|
+
zod.z.literal("lg"),
|
|
763
|
+
zod.z.literal("xl"),
|
|
764
|
+
zod.z.literal("2xl"),
|
|
765
|
+
zod.z.literal("3xl"),
|
|
766
|
+
zod.z.literal("4xl")
|
|
767
|
+
]).describe(
|
|
768
|
+
"Set the element's font size and line height (both properties are set together). Only accepts predefined fontSize tokens."
|
|
769
|
+
);
|
|
770
|
+
const fontWeightSprinkleSchema = zod.z.union([
|
|
771
|
+
zod.z.literal("inherit"),
|
|
772
|
+
zod.z.literal("600"),
|
|
773
|
+
zod.z.literal("400"),
|
|
774
|
+
zod.z.literal("500"),
|
|
775
|
+
zod.z.literal("700")
|
|
776
|
+
]).describe("Set the element's `font-weight` CSS property");
|
|
777
|
+
const gapSprinkleSchema = zod.z.union([
|
|
778
|
+
zod.z.literal("2"),
|
|
779
|
+
zod.z.literal("4"),
|
|
780
|
+
zod.z.literal("6"),
|
|
781
|
+
zod.z.literal("8"),
|
|
782
|
+
zod.z.literal("12"),
|
|
783
|
+
zod.z.literal("10"),
|
|
784
|
+
zod.z.literal("16"),
|
|
785
|
+
zod.z.literal("20"),
|
|
786
|
+
zod.z.literal("24"),
|
|
787
|
+
zod.z.literal("32"),
|
|
788
|
+
zod.z.literal("40"),
|
|
789
|
+
zod.z.literal("48"),
|
|
790
|
+
zod.z.literal("80"),
|
|
791
|
+
zod.z.literal("0"),
|
|
792
|
+
zod.z.literal("64")
|
|
793
|
+
]).describe("Set the element's `gap` CSS property");
|
|
794
|
+
const gridColumnSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("4"), zod.z.literal("1"), zod.z.literal("3")]).describe("Set the element's size across grid columns");
|
|
795
|
+
const gridTemplateColumnsSprinkleSchema = zod.z.union([zod.z.literal("2"), zod.z.literal("4"), zod.z.literal("1"), zod.z.literal("3")]).describe("Control number of columns in a grid layout");
|
|
796
|
+
const hSprinkleSchema = zod.z.union([
|
|
797
|
+
zod.z.literal("auto"),
|
|
798
|
+
zod.z.literal("12"),
|
|
799
|
+
zod.z.literal("10"),
|
|
800
|
+
zod.z.literal("16"),
|
|
801
|
+
zod.z.literal("20"),
|
|
802
|
+
zod.z.literal("24"),
|
|
803
|
+
zod.z.literal("32"),
|
|
804
|
+
zod.z.literal("40"),
|
|
805
|
+
zod.z.literal("384"),
|
|
806
|
+
zod.z.literal("48"),
|
|
807
|
+
zod.z.literal("80"),
|
|
808
|
+
zod.z.literal("xs"),
|
|
809
|
+
zod.z.literal("sm"),
|
|
810
|
+
zod.z.literal("md"),
|
|
811
|
+
zod.z.literal("lg"),
|
|
812
|
+
zod.z.literal("xl"),
|
|
813
|
+
zod.z.literal("full"),
|
|
814
|
+
zod.z.literal("3xl"),
|
|
815
|
+
zod.z.literal("2xs"),
|
|
816
|
+
zod.z.literal("0"),
|
|
817
|
+
zod.z.literal("64"),
|
|
818
|
+
zod.z.literal("56"),
|
|
819
|
+
zod.z.literal("224"),
|
|
820
|
+
zod.z.literal("1/2"),
|
|
821
|
+
zod.z.literal("1/3"),
|
|
822
|
+
zod.z.literal("2/3"),
|
|
823
|
+
zod.z.literal("1/4"),
|
|
824
|
+
zod.z.literal("3/4"),
|
|
825
|
+
zod.z.literal("fit"),
|
|
826
|
+
zod.z.literal("max"),
|
|
827
|
+
zod.z.literal("min")
|
|
828
|
+
]).describe(
|
|
829
|
+
'Set the element\'s height. Only accepts predefined values: size tokens\n(xs, sm, md, etc.), numeric spacing values (16, 24, 32), fractional\npercentages (1/2, 1/3), or special keywords (auto, full, fit, max, min).\n\n\u26A0\uFE0F COMMON MISTAKE: Do not use arbitrary pixel values like "200" or "300".\nUse the closest valid token from the allowed values instead.\n\n\u{1F4A1} TIP: When width and height are the same, use `size` instead of setting\nboth `w` and `h` separately.'
|
|
830
|
+
);
|
|
831
|
+
const justifyContentSprinkleSchema = zod.z.union([
|
|
832
|
+
zod.z.literal("normal"),
|
|
833
|
+
zod.z.literal("space-around"),
|
|
834
|
+
zod.z.literal("space-between"),
|
|
835
|
+
zod.z.literal("space-evenly"),
|
|
836
|
+
zod.z.literal("stretch"),
|
|
837
|
+
zod.z.literal("center"),
|
|
838
|
+
zod.z.literal("end"),
|
|
839
|
+
zod.z.literal("flex-end"),
|
|
840
|
+
zod.z.literal("flex-start"),
|
|
841
|
+
zod.z.literal("start")
|
|
842
|
+
]).describe("Set the element's `justify-content` CSS property");
|
|
843
|
+
const justifyItemsSprinkleSchema = zod.z.union([
|
|
844
|
+
zod.z.literal("normal"),
|
|
845
|
+
zod.z.literal("stretch"),
|
|
846
|
+
zod.z.literal("center"),
|
|
847
|
+
zod.z.literal("end"),
|
|
848
|
+
zod.z.literal("start")
|
|
849
|
+
]).describe("Set the element's `justify-items` CSS property");
|
|
850
|
+
const mSprinkleSchema = zod.z.union([
|
|
851
|
+
zod.z.literal("auto"),
|
|
852
|
+
zod.z.literal("2"),
|
|
853
|
+
zod.z.literal("4"),
|
|
854
|
+
zod.z.literal("6"),
|
|
855
|
+
zod.z.literal("8"),
|
|
856
|
+
zod.z.literal("12"),
|
|
857
|
+
zod.z.literal("10"),
|
|
858
|
+
zod.z.literal("16"),
|
|
859
|
+
zod.z.literal("20"),
|
|
860
|
+
zod.z.literal("24"),
|
|
861
|
+
zod.z.literal("32"),
|
|
862
|
+
zod.z.literal("40"),
|
|
863
|
+
zod.z.literal("48"),
|
|
864
|
+
zod.z.literal("80"),
|
|
865
|
+
zod.z.literal("0"),
|
|
866
|
+
zod.z.literal("64")
|
|
867
|
+
]).describe(
|
|
868
|
+
`Set the element's margin on all sides
|
|
869
|
+
|
|
870
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
871
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
872
|
+
);
|
|
873
|
+
const maxHSprinkleSchema = zod.z.union([
|
|
874
|
+
zod.z.literal("xs"),
|
|
875
|
+
zod.z.literal("sm"),
|
|
876
|
+
zod.z.literal("md"),
|
|
877
|
+
zod.z.literal("lg"),
|
|
878
|
+
zod.z.literal("full")
|
|
879
|
+
]).describe(
|
|
880
|
+
`Set the element's maximum height. Only accepts predefined maxSize tokens.
|
|
881
|
+
|
|
882
|
+
\u26A0\uFE0F COMMON MISTAKE: Do not use arbitrary pixel values like "200" or "300".
|
|
883
|
+
Use the closest valid token from the allowed values instead.`
|
|
884
|
+
);
|
|
885
|
+
const maxWSprinkleSchema = zod.z.union([
|
|
886
|
+
zod.z.literal("xs"),
|
|
887
|
+
zod.z.literal("sm"),
|
|
888
|
+
zod.z.literal("md"),
|
|
889
|
+
zod.z.literal("lg"),
|
|
890
|
+
zod.z.literal("full")
|
|
891
|
+
]).describe(
|
|
892
|
+
`Set the element's maximum width. Only accepts predefined maxSize tokens.
|
|
893
|
+
|
|
894
|
+
\u26A0\uFE0F COMMON MISTAKE: Do not use arbitrary pixel values like "200" or "300".
|
|
895
|
+
Use the closest valid token from the allowed values instead.`
|
|
896
|
+
);
|
|
897
|
+
const mbSprinkleSchema = zod.z.union([
|
|
898
|
+
zod.z.literal("auto"),
|
|
899
|
+
zod.z.literal("2"),
|
|
900
|
+
zod.z.literal("4"),
|
|
901
|
+
zod.z.literal("6"),
|
|
902
|
+
zod.z.literal("8"),
|
|
903
|
+
zod.z.literal("12"),
|
|
904
|
+
zod.z.literal("10"),
|
|
905
|
+
zod.z.literal("16"),
|
|
906
|
+
zod.z.literal("20"),
|
|
907
|
+
zod.z.literal("24"),
|
|
908
|
+
zod.z.literal("32"),
|
|
909
|
+
zod.z.literal("40"),
|
|
910
|
+
zod.z.literal("48"),
|
|
911
|
+
zod.z.literal("80"),
|
|
912
|
+
zod.z.literal("0"),
|
|
913
|
+
zod.z.literal("64")
|
|
914
|
+
]).describe(
|
|
915
|
+
`Set the element's bottom margin
|
|
916
|
+
|
|
917
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
918
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
919
|
+
);
|
|
920
|
+
const mlSprinkleSchema = zod.z.union([
|
|
921
|
+
zod.z.literal("auto"),
|
|
922
|
+
zod.z.literal("2"),
|
|
923
|
+
zod.z.literal("4"),
|
|
924
|
+
zod.z.literal("6"),
|
|
925
|
+
zod.z.literal("8"),
|
|
926
|
+
zod.z.literal("12"),
|
|
927
|
+
zod.z.literal("10"),
|
|
928
|
+
zod.z.literal("16"),
|
|
929
|
+
zod.z.literal("20"),
|
|
930
|
+
zod.z.literal("24"),
|
|
931
|
+
zod.z.literal("32"),
|
|
932
|
+
zod.z.literal("40"),
|
|
933
|
+
zod.z.literal("48"),
|
|
934
|
+
zod.z.literal("80"),
|
|
935
|
+
zod.z.literal("0"),
|
|
936
|
+
zod.z.literal("64")
|
|
937
|
+
]).describe(
|
|
938
|
+
`Set the element's left margin
|
|
939
|
+
|
|
940
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
941
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
942
|
+
);
|
|
943
|
+
const mrSprinkleSchema = zod.z.union([
|
|
944
|
+
zod.z.literal("auto"),
|
|
945
|
+
zod.z.literal("2"),
|
|
946
|
+
zod.z.literal("4"),
|
|
947
|
+
zod.z.literal("6"),
|
|
948
|
+
zod.z.literal("8"),
|
|
949
|
+
zod.z.literal("12"),
|
|
950
|
+
zod.z.literal("10"),
|
|
951
|
+
zod.z.literal("16"),
|
|
952
|
+
zod.z.literal("20"),
|
|
953
|
+
zod.z.literal("24"),
|
|
954
|
+
zod.z.literal("32"),
|
|
955
|
+
zod.z.literal("40"),
|
|
956
|
+
zod.z.literal("48"),
|
|
957
|
+
zod.z.literal("80"),
|
|
958
|
+
zod.z.literal("0"),
|
|
959
|
+
zod.z.literal("64")
|
|
960
|
+
]).describe(
|
|
961
|
+
`Set the element's right margin
|
|
962
|
+
|
|
963
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
964
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
965
|
+
);
|
|
966
|
+
const mtSprinkleSchema = zod.z.union([
|
|
967
|
+
zod.z.literal("auto"),
|
|
968
|
+
zod.z.literal("2"),
|
|
969
|
+
zod.z.literal("4"),
|
|
970
|
+
zod.z.literal("6"),
|
|
971
|
+
zod.z.literal("8"),
|
|
972
|
+
zod.z.literal("12"),
|
|
973
|
+
zod.z.literal("10"),
|
|
974
|
+
zod.z.literal("16"),
|
|
975
|
+
zod.z.literal("20"),
|
|
976
|
+
zod.z.literal("24"),
|
|
977
|
+
zod.z.literal("32"),
|
|
978
|
+
zod.z.literal("40"),
|
|
979
|
+
zod.z.literal("48"),
|
|
980
|
+
zod.z.literal("80"),
|
|
981
|
+
zod.z.literal("0"),
|
|
982
|
+
zod.z.literal("64")
|
|
983
|
+
]).describe(
|
|
984
|
+
`Set the element's top margin
|
|
985
|
+
|
|
986
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
987
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
988
|
+
);
|
|
989
|
+
const mxSprinkleSchema = zod.z.union([
|
|
990
|
+
zod.z.literal("auto"),
|
|
991
|
+
zod.z.literal("2"),
|
|
992
|
+
zod.z.literal("4"),
|
|
993
|
+
zod.z.literal("6"),
|
|
994
|
+
zod.z.literal("8"),
|
|
995
|
+
zod.z.literal("12"),
|
|
996
|
+
zod.z.literal("10"),
|
|
997
|
+
zod.z.literal("16"),
|
|
998
|
+
zod.z.literal("20"),
|
|
999
|
+
zod.z.literal("24"),
|
|
1000
|
+
zod.z.literal("32"),
|
|
1001
|
+
zod.z.literal("40"),
|
|
1002
|
+
zod.z.literal("48"),
|
|
1003
|
+
zod.z.literal("80"),
|
|
1004
|
+
zod.z.literal("0"),
|
|
1005
|
+
zod.z.literal("64")
|
|
1006
|
+
]).describe(
|
|
1007
|
+
`Set the element's left and right margin
|
|
1008
|
+
|
|
1009
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
1010
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
1011
|
+
);
|
|
1012
|
+
const mySprinkleSchema = zod.z.union([
|
|
1013
|
+
zod.z.literal("auto"),
|
|
1014
|
+
zod.z.literal("2"),
|
|
1015
|
+
zod.z.literal("4"),
|
|
1016
|
+
zod.z.literal("6"),
|
|
1017
|
+
zod.z.literal("8"),
|
|
1018
|
+
zod.z.literal("12"),
|
|
1019
|
+
zod.z.literal("10"),
|
|
1020
|
+
zod.z.literal("16"),
|
|
1021
|
+
zod.z.literal("20"),
|
|
1022
|
+
zod.z.literal("24"),
|
|
1023
|
+
zod.z.literal("32"),
|
|
1024
|
+
zod.z.literal("40"),
|
|
1025
|
+
zod.z.literal("48"),
|
|
1026
|
+
zod.z.literal("80"),
|
|
1027
|
+
zod.z.literal("0"),
|
|
1028
|
+
zod.z.literal("64")
|
|
1029
|
+
]).describe(
|
|
1030
|
+
`Set the element's top and bottom margin
|
|
1031
|
+
|
|
1032
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px", "5rem", or negative
|
|
1033
|
+
numbers like "-8". Only predefined spacing tokens are accepted.`
|
|
1034
|
+
);
|
|
1035
|
+
const objectFitSprinkleSchema = zod.z.union([
|
|
1036
|
+
zod.z.literal("contain"),
|
|
1037
|
+
zod.z.literal("fill"),
|
|
1038
|
+
zod.z.literal("none"),
|
|
1039
|
+
zod.z.literal("cover")
|
|
1040
|
+
]).describe("Set the element's `object-fit` CSS property");
|
|
1041
|
+
const overflowSprinkleSchema = zod.z.union([zod.z.literal("auto"), zod.z.literal("hidden"), zod.z.literal("visible")]).describe("Set the element's `overflow` CSS property");
|
|
1042
|
+
const overflowXSprinkleSchema = zod.z.union([zod.z.literal("auto"), zod.z.literal("hidden"), zod.z.literal("visible")]).describe("Set the element's `overflow-x` CSS property");
|
|
1043
|
+
const overflowYSprinkleSchema = zod.z.union([zod.z.literal("auto"), zod.z.literal("hidden"), zod.z.literal("visible")]).describe("Set the element's `overflow-y` CSS property");
|
|
1044
|
+
const pSprinkleSchema = zod.z.union([
|
|
1045
|
+
zod.z.literal("2"),
|
|
1046
|
+
zod.z.literal("4"),
|
|
1047
|
+
zod.z.literal("6"),
|
|
1048
|
+
zod.z.literal("8"),
|
|
1049
|
+
zod.z.literal("12"),
|
|
1050
|
+
zod.z.literal("10"),
|
|
1051
|
+
zod.z.literal("16"),
|
|
1052
|
+
zod.z.literal("20"),
|
|
1053
|
+
zod.z.literal("24"),
|
|
1054
|
+
zod.z.literal("32"),
|
|
1055
|
+
zod.z.literal("40"),
|
|
1056
|
+
zod.z.literal("48"),
|
|
1057
|
+
zod.z.literal("80"),
|
|
1058
|
+
zod.z.literal("0"),
|
|
1059
|
+
zod.z.literal("64")
|
|
1060
|
+
]).describe(
|
|
1061
|
+
`Set the element's padding on all sides
|
|
1062
|
+
|
|
1063
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1064
|
+
predefined spacing tokens are accepted.`
|
|
1065
|
+
);
|
|
1066
|
+
const pbSprinkleSchema = zod.z.union([
|
|
1067
|
+
zod.z.literal("2"),
|
|
1068
|
+
zod.z.literal("4"),
|
|
1069
|
+
zod.z.literal("6"),
|
|
1070
|
+
zod.z.literal("8"),
|
|
1071
|
+
zod.z.literal("12"),
|
|
1072
|
+
zod.z.literal("10"),
|
|
1073
|
+
zod.z.literal("16"),
|
|
1074
|
+
zod.z.literal("20"),
|
|
1075
|
+
zod.z.literal("24"),
|
|
1076
|
+
zod.z.literal("32"),
|
|
1077
|
+
zod.z.literal("40"),
|
|
1078
|
+
zod.z.literal("48"),
|
|
1079
|
+
zod.z.literal("80"),
|
|
1080
|
+
zod.z.literal("0"),
|
|
1081
|
+
zod.z.literal("64")
|
|
1082
|
+
]).describe(
|
|
1083
|
+
`Set the element's bottom padding
|
|
1084
|
+
|
|
1085
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1086
|
+
predefined spacing tokens are accepted.`
|
|
1087
|
+
);
|
|
1088
|
+
const plSprinkleSchema = zod.z.union([
|
|
1089
|
+
zod.z.literal("2"),
|
|
1090
|
+
zod.z.literal("4"),
|
|
1091
|
+
zod.z.literal("6"),
|
|
1092
|
+
zod.z.literal("8"),
|
|
1093
|
+
zod.z.literal("12"),
|
|
1094
|
+
zod.z.literal("10"),
|
|
1095
|
+
zod.z.literal("16"),
|
|
1096
|
+
zod.z.literal("20"),
|
|
1097
|
+
zod.z.literal("24"),
|
|
1098
|
+
zod.z.literal("32"),
|
|
1099
|
+
zod.z.literal("40"),
|
|
1100
|
+
zod.z.literal("48"),
|
|
1101
|
+
zod.z.literal("80"),
|
|
1102
|
+
zod.z.literal("0"),
|
|
1103
|
+
zod.z.literal("64")
|
|
1104
|
+
]).describe(
|
|
1105
|
+
`Set the element's left padding
|
|
1106
|
+
|
|
1107
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1108
|
+
predefined spacing tokens are accepted.`
|
|
1109
|
+
);
|
|
1110
|
+
const placeItemsSprinkleSchema = zod.z.literal("center").describe("Set the element's `place-items` CSS property");
|
|
1111
|
+
const pointerEventsSprinkleSchema = zod.z.union([zod.z.literal("none"), zod.z.literal("auto")]).describe("Set the element's `pointer-events` CSS property");
|
|
1112
|
+
const prSprinkleSchema = zod.z.union([
|
|
1113
|
+
zod.z.literal("2"),
|
|
1114
|
+
zod.z.literal("4"),
|
|
1115
|
+
zod.z.literal("6"),
|
|
1116
|
+
zod.z.literal("8"),
|
|
1117
|
+
zod.z.literal("12"),
|
|
1118
|
+
zod.z.literal("10"),
|
|
1119
|
+
zod.z.literal("16"),
|
|
1120
|
+
zod.z.literal("20"),
|
|
1121
|
+
zod.z.literal("24"),
|
|
1122
|
+
zod.z.literal("32"),
|
|
1123
|
+
zod.z.literal("40"),
|
|
1124
|
+
zod.z.literal("48"),
|
|
1125
|
+
zod.z.literal("80"),
|
|
1126
|
+
zod.z.literal("0"),
|
|
1127
|
+
zod.z.literal("64")
|
|
1128
|
+
]).describe(
|
|
1129
|
+
`Set the element's right padding
|
|
1130
|
+
|
|
1131
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1132
|
+
predefined spacing tokens are accepted.`
|
|
1133
|
+
);
|
|
1134
|
+
const ptSprinkleSchema = zod.z.union([
|
|
1135
|
+
zod.z.literal("2"),
|
|
1136
|
+
zod.z.literal("4"),
|
|
1137
|
+
zod.z.literal("6"),
|
|
1138
|
+
zod.z.literal("8"),
|
|
1139
|
+
zod.z.literal("12"),
|
|
1140
|
+
zod.z.literal("10"),
|
|
1141
|
+
zod.z.literal("16"),
|
|
1142
|
+
zod.z.literal("20"),
|
|
1143
|
+
zod.z.literal("24"),
|
|
1144
|
+
zod.z.literal("32"),
|
|
1145
|
+
zod.z.literal("40"),
|
|
1146
|
+
zod.z.literal("48"),
|
|
1147
|
+
zod.z.literal("80"),
|
|
1148
|
+
zod.z.literal("0"),
|
|
1149
|
+
zod.z.literal("64")
|
|
1150
|
+
]).describe(
|
|
1151
|
+
`Set the element's top padding
|
|
1152
|
+
|
|
1153
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1154
|
+
predefined spacing tokens are accepted.`
|
|
1155
|
+
);
|
|
1156
|
+
const pxSprinkleSchema = zod.z.union([
|
|
1157
|
+
zod.z.literal("2"),
|
|
1158
|
+
zod.z.literal("4"),
|
|
1159
|
+
zod.z.literal("6"),
|
|
1160
|
+
zod.z.literal("8"),
|
|
1161
|
+
zod.z.literal("12"),
|
|
1162
|
+
zod.z.literal("10"),
|
|
1163
|
+
zod.z.literal("16"),
|
|
1164
|
+
zod.z.literal("20"),
|
|
1165
|
+
zod.z.literal("24"),
|
|
1166
|
+
zod.z.literal("32"),
|
|
1167
|
+
zod.z.literal("40"),
|
|
1168
|
+
zod.z.literal("48"),
|
|
1169
|
+
zod.z.literal("80"),
|
|
1170
|
+
zod.z.literal("0"),
|
|
1171
|
+
zod.z.literal("64")
|
|
1172
|
+
]).describe(
|
|
1173
|
+
`Set the element's left and right padding
|
|
1174
|
+
|
|
1175
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1176
|
+
predefined spacing tokens are accepted.`
|
|
1177
|
+
);
|
|
1178
|
+
const pySprinkleSchema = zod.z.union([
|
|
1179
|
+
zod.z.literal("2"),
|
|
1180
|
+
zod.z.literal("4"),
|
|
1181
|
+
zod.z.literal("6"),
|
|
1182
|
+
zod.z.literal("8"),
|
|
1183
|
+
zod.z.literal("12"),
|
|
1184
|
+
zod.z.literal("10"),
|
|
1185
|
+
zod.z.literal("16"),
|
|
1186
|
+
zod.z.literal("20"),
|
|
1187
|
+
zod.z.literal("24"),
|
|
1188
|
+
zod.z.literal("32"),
|
|
1189
|
+
zod.z.literal("40"),
|
|
1190
|
+
zod.z.literal("48"),
|
|
1191
|
+
zod.z.literal("80"),
|
|
1192
|
+
zod.z.literal("0"),
|
|
1193
|
+
zod.z.literal("64")
|
|
1194
|
+
]).describe(
|
|
1195
|
+
`Set the element's top and bottom padding
|
|
1196
|
+
|
|
1197
|
+
\u26A0\uFE0F WARNING: Do NOT use arbitrary values like "10px" or "5rem". Only
|
|
1198
|
+
predefined spacing tokens are accepted.`
|
|
1199
|
+
);
|
|
1200
|
+
const roundedSprinkleSchema = zod.z.union([
|
|
1201
|
+
zod.z.literal("inherit"),
|
|
1202
|
+
zod.z.literal("none"),
|
|
1203
|
+
zod.z.literal("xs"),
|
|
1204
|
+
zod.z.literal("sm"),
|
|
1205
|
+
zod.z.literal("md"),
|
|
1206
|
+
zod.z.literal("lg"),
|
|
1207
|
+
zod.z.literal("xl"),
|
|
1208
|
+
zod.z.literal("full")
|
|
1209
|
+
]).describe(
|
|
1210
|
+
"Set the element's border radius. Only accepts predefined borderRadius tokens."
|
|
1211
|
+
);
|
|
1212
|
+
const shadowSprinkleSchema = zod.z.union([zod.z.literal("none"), zod.z.literal("sm"), zod.z.literal("md"), zod.z.literal("lg")]).describe(
|
|
1213
|
+
"Set the element's box shadow. Only accepts predefined boxShadow tokens."
|
|
1214
|
+
);
|
|
1215
|
+
const sizeSprinkleSchema = zod.z.union([
|
|
1216
|
+
zod.z.literal("auto"),
|
|
1217
|
+
zod.z.literal("12"),
|
|
1218
|
+
zod.z.literal("10"),
|
|
1219
|
+
zod.z.literal("16"),
|
|
1220
|
+
zod.z.literal("20"),
|
|
1221
|
+
zod.z.literal("24"),
|
|
1222
|
+
zod.z.literal("32"),
|
|
1223
|
+
zod.z.literal("40"),
|
|
1224
|
+
zod.z.literal("384"),
|
|
1225
|
+
zod.z.literal("48"),
|
|
1226
|
+
zod.z.literal("80"),
|
|
1227
|
+
zod.z.literal("xs"),
|
|
1228
|
+
zod.z.literal("sm"),
|
|
1229
|
+
zod.z.literal("md"),
|
|
1230
|
+
zod.z.literal("lg"),
|
|
1231
|
+
zod.z.literal("xl"),
|
|
1232
|
+
zod.z.literal("full"),
|
|
1233
|
+
zod.z.literal("3xl"),
|
|
1234
|
+
zod.z.literal("2xs"),
|
|
1235
|
+
zod.z.literal("0"),
|
|
1236
|
+
zod.z.literal("64"),
|
|
1237
|
+
zod.z.literal("56"),
|
|
1238
|
+
zod.z.literal("224"),
|
|
1239
|
+
zod.z.literal("1/2"),
|
|
1240
|
+
zod.z.literal("1/3"),
|
|
1241
|
+
zod.z.literal("2/3"),
|
|
1242
|
+
zod.z.literal("1/4"),
|
|
1243
|
+
zod.z.literal("3/4"),
|
|
1244
|
+
zod.z.literal("fit"),
|
|
1245
|
+
zod.z.literal("max"),
|
|
1246
|
+
zod.z.literal("min")
|
|
1247
|
+
]).describe(
|
|
1248
|
+
'Set the element\'s width and height. Only accepts predefined values: size\ntokens (xs, sm, md, etc.), numeric spacing values (16, 24, 32),\nfractional percentages (1/2, 1/3), or special keywords (auto, full, fit,\nmax, min).\n\n\u26A0\uFE0F COMMON MISTAKE: Do not use arbitrary pixel values like "200" or "300".\nUse the closest valid token from the allowed values instead.\n\n\u{1F4A1} TIP: When width and height are the same, use `size` instead of setting\nboth `w` and `h` separately (e.g., prefer `size="24"` over `w="24" h="24"`).'
|
|
1249
|
+
);
|
|
1250
|
+
const textAlignSprinkleSchema = zod.z.union([
|
|
1251
|
+
zod.z.literal("center"),
|
|
1252
|
+
zod.z.literal("end"),
|
|
1253
|
+
zod.z.literal("start"),
|
|
1254
|
+
zod.z.literal("justify")
|
|
1255
|
+
]).describe("Set the element's `text-align` CSS property");
|
|
1256
|
+
const textTransformSprinkleSchema = zod.z.union([zod.z.literal("none"), zod.z.literal("capitalize"), zod.z.literal("uppercase")]).describe("Set the element's `text-transform` CSS property");
|
|
1257
|
+
const transitionSprinkleSchema = zod.z.union([
|
|
1258
|
+
zod.z.literal("opacity"),
|
|
1259
|
+
zod.z.literal("transform"),
|
|
1260
|
+
zod.z.literal("all"),
|
|
1261
|
+
zod.z.literal("none"),
|
|
1262
|
+
zod.z.literal("colors")
|
|
1263
|
+
]).describe("Control which CSS properties should transition");
|
|
1264
|
+
const wSprinkleSchema = zod.z.union([
|
|
1265
|
+
zod.z.literal("auto"),
|
|
1266
|
+
zod.z.literal("12"),
|
|
1267
|
+
zod.z.literal("10"),
|
|
1268
|
+
zod.z.literal("16"),
|
|
1269
|
+
zod.z.literal("20"),
|
|
1270
|
+
zod.z.literal("24"),
|
|
1271
|
+
zod.z.literal("32"),
|
|
1272
|
+
zod.z.literal("40"),
|
|
1273
|
+
zod.z.literal("384"),
|
|
1274
|
+
zod.z.literal("48"),
|
|
1275
|
+
zod.z.literal("80"),
|
|
1276
|
+
zod.z.literal("xs"),
|
|
1277
|
+
zod.z.literal("sm"),
|
|
1278
|
+
zod.z.literal("md"),
|
|
1279
|
+
zod.z.literal("lg"),
|
|
1280
|
+
zod.z.literal("xl"),
|
|
1281
|
+
zod.z.literal("full"),
|
|
1282
|
+
zod.z.literal("3xl"),
|
|
1283
|
+
zod.z.literal("2xs"),
|
|
1284
|
+
zod.z.literal("0"),
|
|
1285
|
+
zod.z.literal("64"),
|
|
1286
|
+
zod.z.literal("56"),
|
|
1287
|
+
zod.z.literal("224"),
|
|
1288
|
+
zod.z.literal("1/2"),
|
|
1289
|
+
zod.z.literal("1/3"),
|
|
1290
|
+
zod.z.literal("2/3"),
|
|
1291
|
+
zod.z.literal("1/4"),
|
|
1292
|
+
zod.z.literal("3/4"),
|
|
1293
|
+
zod.z.literal("fit"),
|
|
1294
|
+
zod.z.literal("max"),
|
|
1295
|
+
zod.z.literal("min")
|
|
1296
|
+
]).describe(
|
|
1297
|
+
'Set the element\'s width. Only accepts predefined values: size tokens (xs,\nsm, md, etc.), numeric spacing values (16, 24, 32), fractional\npercentages (1/2, 1/3), or special keywords (auto, full, fit, max, min).\n\n\u26A0\uFE0F COMMON MISTAKE: Do not use arbitrary pixel values like "200" or "300".\nUse the closest valid token from the allowed values instead.\n\n\u{1F4A1} TIP: When width and height are the same, use `size` instead of setting\nboth `w` and `h` separately.'
|
|
1298
|
+
);
|
|
1299
|
+
const whiteSpaceSprinkleSchema = zod.z.literal("nowrap").describe("Set the element's `white-space` CSS property");
|
|
1300
|
+
const zSprinkleSchema = zod.z.union([
|
|
1301
|
+
zod.z.literal("auto"),
|
|
1302
|
+
zod.z.literal("tooltip"),
|
|
1303
|
+
zod.z.literal("10"),
|
|
1304
|
+
zod.z.literal("20"),
|
|
1305
|
+
zod.z.literal("popover"),
|
|
1306
|
+
zod.z.literal("toast"),
|
|
1307
|
+
zod.z.literal("0"),
|
|
1308
|
+
zod.z.literal("30")
|
|
1309
|
+
]).describe(
|
|
1310
|
+
"Set the element's stacking order. Only accepts predefined zIndex tokens (e.g., popover, toast, tooltip) or numeric values (0, 10, 20, 30, auto)."
|
|
1311
|
+
);
|
|
1312
|
+
const BlockActionSchema = zod.z.object({
|
|
1313
|
+
$id: zod.z.string().describe(
|
|
1314
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1315
|
+
).optional(),
|
|
1316
|
+
$type: zod.z.literal("Block.Action"),
|
|
1317
|
+
$visible: zod.z.boolean().describe(
|
|
1318
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1319
|
+
).optional(),
|
|
1320
|
+
appearance: zod.z.union([
|
|
1321
|
+
zod.z.literal("default"),
|
|
1322
|
+
zod.z.literal("danger"),
|
|
1323
|
+
zod.z.literal("primary"),
|
|
1324
|
+
zod.z.literal("subtle"),
|
|
1325
|
+
zod.z.literal("danger-outline"),
|
|
1326
|
+
zod.z.literal("default-opal"),
|
|
1327
|
+
zod.z.literal("inverse"),
|
|
1328
|
+
zod.z.literal("primary-opal")
|
|
1329
|
+
]).describe(
|
|
1330
|
+
"Control the appearance by selecting between the different button types."
|
|
1331
|
+
).optional(),
|
|
1332
|
+
children: zod.z.any(),
|
|
1333
|
+
onClick: zod.z.union([
|
|
1334
|
+
zod.z.object({
|
|
1335
|
+
tool: zod.z.string().describe("Name of registered tool to call")
|
|
1336
|
+
}).strict().describe("Server-side tool call"),
|
|
1337
|
+
zod.z.object({
|
|
1338
|
+
action: zod.z.literal("setVisibility").describe("Set visibility of target elements"),
|
|
1339
|
+
params: zod.z.record(zod.z.boolean()).describe(
|
|
1340
|
+
"Map of element IDs to visibility state (e.g., { 'step-2': true, 'step-1': false })"
|
|
1341
|
+
),
|
|
1342
|
+
when: zod.z.string().describe(
|
|
1343
|
+
"Optional regex pattern - action only executes if value matches"
|
|
1344
|
+
).optional()
|
|
1345
|
+
}).strict().describe("Client-side setVisibility action")
|
|
1346
|
+
]).describe(
|
|
1347
|
+
"Handler for user interactions - either a tool call or client-side action"
|
|
1348
|
+
).optional()
|
|
1349
|
+
}).strict();
|
|
1350
|
+
const BlockCancelActionSchema = zod.z.object({
|
|
1351
|
+
$id: zod.z.string().describe(
|
|
1352
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1353
|
+
).optional(),
|
|
1354
|
+
$type: zod.z.literal("Block.CancelAction"),
|
|
1355
|
+
$visible: zod.z.boolean().describe(
|
|
1356
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1357
|
+
).optional(),
|
|
1358
|
+
children: zod.z.any().optional(),
|
|
1359
|
+
placeholder: zod.z.string().describe("Placeholder text for the text input field").optional()
|
|
1360
|
+
}).strict();
|
|
1361
|
+
const BlockDocumentSchema = zod.z.object({
|
|
1362
|
+
$type: zod.z.literal("Block.Document"),
|
|
1363
|
+
actions: zod.z.array(
|
|
1364
|
+
zod.z.union([
|
|
1365
|
+
zod.z.object({
|
|
1366
|
+
$id: zod.z.string().describe(
|
|
1367
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1368
|
+
).optional(),
|
|
1369
|
+
$type: zod.z.literal("Block.Action"),
|
|
1370
|
+
$visible: zod.z.boolean().describe(
|
|
1371
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1372
|
+
).optional(),
|
|
1373
|
+
appearance: zod.z.union([
|
|
1374
|
+
zod.z.literal("default"),
|
|
1375
|
+
zod.z.literal("danger"),
|
|
1376
|
+
zod.z.literal("primary"),
|
|
1377
|
+
zod.z.literal("subtle"),
|
|
1378
|
+
zod.z.literal("danger-outline"),
|
|
1379
|
+
zod.z.literal("default-opal"),
|
|
1380
|
+
zod.z.literal("inverse"),
|
|
1381
|
+
zod.z.literal("primary-opal")
|
|
1382
|
+
]).describe(
|
|
1383
|
+
"Control the appearance by selecting between the different button types."
|
|
1384
|
+
).optional(),
|
|
1385
|
+
children: zod.z.any(),
|
|
1386
|
+
onClick: zod.z.union([
|
|
1387
|
+
zod.z.object({
|
|
1388
|
+
tool: zod.z.string().describe("Name of registered tool to call")
|
|
1389
|
+
}).strict().describe("Server-side tool call"),
|
|
1390
|
+
zod.z.object({
|
|
1391
|
+
action: zod.z.literal("setVisibility").describe("Set visibility of target elements"),
|
|
1392
|
+
params: zod.z.record(zod.z.boolean()).describe(
|
|
1393
|
+
"Map of element IDs to visibility state (e.g., { 'step-2': true, 'step-1': false })"
|
|
1394
|
+
),
|
|
1395
|
+
when: zod.z.string().describe(
|
|
1396
|
+
"Optional regex pattern - action only executes if value matches"
|
|
1397
|
+
).optional()
|
|
1398
|
+
}).strict().describe("Client-side setVisibility action")
|
|
1399
|
+
]).describe(
|
|
1400
|
+
"Handler for user interactions - either a tool call or client-side action"
|
|
1401
|
+
).optional()
|
|
1402
|
+
}).strict(),
|
|
1403
|
+
zod.z.object({
|
|
1404
|
+
$id: zod.z.string().describe(
|
|
1405
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1406
|
+
).optional(),
|
|
1407
|
+
$type: zod.z.literal("Block.CancelAction"),
|
|
1408
|
+
$visible: zod.z.boolean().describe(
|
|
1409
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1410
|
+
).optional(),
|
|
1411
|
+
children: zod.z.any().optional(),
|
|
1412
|
+
placeholder: zod.z.string().describe("Placeholder text for the text input field").optional()
|
|
1413
|
+
}).strict()
|
|
1414
|
+
])
|
|
1415
|
+
).describe("Actions available for this document").optional(),
|
|
1416
|
+
blocking: zod.z.boolean().describe(
|
|
1417
|
+
"If true, hides chat prompt and forces user interaction with document. User can press ESC or close to abandon."
|
|
1418
|
+
).optional(),
|
|
1419
|
+
children: zod.z.any()
|
|
1420
|
+
}).strict();
|
|
1421
|
+
zod.z.union([
|
|
1422
|
+
zod.z.object({ tool: zod.z.string().describe("Name of registered tool to call") }).strict().describe("Server-side tool call"),
|
|
1423
|
+
zod.z.object({
|
|
1424
|
+
action: zod.z.literal("setVisibility").describe("Set visibility of target elements"),
|
|
1425
|
+
params: zod.z.record(zod.z.boolean()).describe(
|
|
1426
|
+
"Map of element IDs to visibility state (e.g., { 'step-2': true, 'step-1': false })"
|
|
1427
|
+
),
|
|
1428
|
+
when: zod.z.string().describe(
|
|
1429
|
+
"Optional regex pattern - action only executes if value matches"
|
|
1430
|
+
).optional()
|
|
1431
|
+
}).strict().describe("Client-side setVisibility action")
|
|
1432
|
+
]).describe(
|
|
1433
|
+
"Handler for user interactions - either a tool call or client-side action"
|
|
1434
|
+
);
|
|
1435
|
+
const BlockFieldSchema = zod.z.object({
|
|
1436
|
+
$id: zod.z.string().describe(
|
|
1437
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1438
|
+
).optional(),
|
|
1439
|
+
$type: zod.z.literal("Block.Field"),
|
|
1440
|
+
$visible: zod.z.boolean().describe(
|
|
1441
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1442
|
+
).optional(),
|
|
1443
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
1444
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1445
|
+
animation: animationSprinkleSchema.optional(),
|
|
1446
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1447
|
+
bg: bgSprinkleSchema.optional(),
|
|
1448
|
+
border: borderSprinkleSchema.optional(),
|
|
1449
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1450
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1451
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1452
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1453
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1454
|
+
children: zod.z.any().optional(),
|
|
1455
|
+
color: colorSprinkleSchema.optional(),
|
|
1456
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1457
|
+
description: zod.z.any().optional(),
|
|
1458
|
+
display: displaySprinkleSchema.optional(),
|
|
1459
|
+
flex: flexSprinkleSchema.optional(),
|
|
1460
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
1461
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1462
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1463
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1464
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1465
|
+
gap: gapSprinkleSchema.optional(),
|
|
1466
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1467
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1468
|
+
h: hSprinkleSchema.optional(),
|
|
1469
|
+
info: zod.z.any().optional(),
|
|
1470
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1471
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1472
|
+
label: zod.z.any().optional(),
|
|
1473
|
+
m: mSprinkleSchema.optional(),
|
|
1474
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
1475
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1476
|
+
mb: mbSprinkleSchema.optional(),
|
|
1477
|
+
ml: mlSprinkleSchema.optional(),
|
|
1478
|
+
mr: mrSprinkleSchema.optional(),
|
|
1479
|
+
mt: mtSprinkleSchema.optional(),
|
|
1480
|
+
mx: mxSprinkleSchema.optional(),
|
|
1481
|
+
my: mySprinkleSchema.optional(),
|
|
1482
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1483
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1484
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1485
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1486
|
+
p: pSprinkleSchema.optional(),
|
|
1487
|
+
pb: pbSprinkleSchema.optional(),
|
|
1488
|
+
pl: plSprinkleSchema.optional(),
|
|
1489
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1490
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1491
|
+
pr: prSprinkleSchema.optional(),
|
|
1492
|
+
pt: ptSprinkleSchema.optional(),
|
|
1493
|
+
px: pxSprinkleSchema.optional(),
|
|
1494
|
+
py: pySprinkleSchema.optional(),
|
|
1495
|
+
required: zod.z.boolean().describe("Display an asterisk for required inputs.").optional(),
|
|
1496
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
1497
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
1498
|
+
size: sizeSprinkleSchema.optional(),
|
|
1499
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
1500
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
1501
|
+
transition: transitionSprinkleSchema.optional(),
|
|
1502
|
+
w: wSprinkleSchema.optional(),
|
|
1503
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
1504
|
+
z: zSprinkleSchema.optional()
|
|
1505
|
+
}).strict();
|
|
1506
|
+
const BlockGroupSchema = zod.z.object({
|
|
1507
|
+
$id: zod.z.string().describe(
|
|
1508
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1509
|
+
).optional(),
|
|
1510
|
+
$type: zod.z.literal("Block.Group"),
|
|
1511
|
+
$visible: zod.z.boolean().describe(
|
|
1512
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1513
|
+
).optional(),
|
|
1514
|
+
alignItems: zod.z.union([
|
|
1515
|
+
zod.z.literal("normal"),
|
|
1516
|
+
zod.z.literal("stretch"),
|
|
1517
|
+
zod.z.literal("center"),
|
|
1518
|
+
zod.z.literal("end"),
|
|
1519
|
+
zod.z.literal("start")
|
|
1520
|
+
]).describe(
|
|
1521
|
+
"Set the element's `align-items` CSS property. Defaults to `center` when\n`flexDirection='row'`, and `stretch` when `flexDirection='column'`."
|
|
1522
|
+
).optional(),
|
|
1523
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1524
|
+
animation: animationSprinkleSchema.optional(),
|
|
1525
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1526
|
+
bg: bgSprinkleSchema.optional(),
|
|
1527
|
+
border: borderSprinkleSchema.optional(),
|
|
1528
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1529
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1530
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1531
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1532
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1533
|
+
children: zod.z.any().optional(),
|
|
1534
|
+
color: colorSprinkleSchema.optional(),
|
|
1535
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1536
|
+
display: displaySprinkleSchema.optional(),
|
|
1537
|
+
flex: flexSprinkleSchema.optional(),
|
|
1538
|
+
flexDirection: zod.z.union([
|
|
1539
|
+
zod.z.literal("column"),
|
|
1540
|
+
zod.z.literal("column-reverse"),
|
|
1541
|
+
zod.z.literal("row"),
|
|
1542
|
+
zod.z.literal("row-reverse")
|
|
1543
|
+
]).describe(
|
|
1544
|
+
"Set the element's `flex-direction` CSS property.\n\nDefault: 'row' (CSS standard)"
|
|
1545
|
+
).optional(),
|
|
1546
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1547
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1548
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1549
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1550
|
+
gap: gapSprinkleSchema.optional(),
|
|
1551
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1552
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1553
|
+
h: hSprinkleSchema.optional(),
|
|
1554
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1555
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1556
|
+
m: mSprinkleSchema.optional(),
|
|
1557
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
1558
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1559
|
+
mb: mbSprinkleSchema.optional(),
|
|
1560
|
+
ml: mlSprinkleSchema.optional(),
|
|
1561
|
+
mr: mrSprinkleSchema.optional(),
|
|
1562
|
+
mt: mtSprinkleSchema.optional(),
|
|
1563
|
+
mx: mxSprinkleSchema.optional(),
|
|
1564
|
+
my: mySprinkleSchema.optional(),
|
|
1565
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1566
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1567
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1568
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1569
|
+
p: pSprinkleSchema.optional(),
|
|
1570
|
+
pb: pbSprinkleSchema.optional(),
|
|
1571
|
+
pl: plSprinkleSchema.optional(),
|
|
1572
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1573
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1574
|
+
pr: prSprinkleSchema.optional(),
|
|
1575
|
+
pt: ptSprinkleSchema.optional(),
|
|
1576
|
+
px: pxSprinkleSchema.optional(),
|
|
1577
|
+
py: pySprinkleSchema.optional(),
|
|
1578
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
1579
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
1580
|
+
size: sizeSprinkleSchema.optional(),
|
|
1581
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
1582
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
1583
|
+
transition: transitionSprinkleSchema.optional(),
|
|
1584
|
+
w: wSprinkleSchema.optional(),
|
|
1585
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
1586
|
+
z: zSprinkleSchema.optional()
|
|
1587
|
+
}).strict();
|
|
1588
|
+
const BlockHeadingSchema = zod.z.object({
|
|
1589
|
+
$id: zod.z.string().describe(
|
|
1590
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1591
|
+
).optional(),
|
|
1592
|
+
$type: zod.z.literal("Block.Heading"),
|
|
1593
|
+
$visible: zod.z.boolean().describe(
|
|
1594
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1595
|
+
).optional(),
|
|
1596
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
1597
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1598
|
+
animation: animationSprinkleSchema.optional(),
|
|
1599
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1600
|
+
bg: bgSprinkleSchema.optional(),
|
|
1601
|
+
border: borderSprinkleSchema.optional(),
|
|
1602
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1603
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1604
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1605
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1606
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1607
|
+
children: zod.z.any().optional(),
|
|
1608
|
+
color: colorSprinkleSchema.optional(),
|
|
1609
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1610
|
+
display: displaySprinkleSchema.optional(),
|
|
1611
|
+
flex: flexSprinkleSchema.optional(),
|
|
1612
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
1613
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1614
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1615
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1616
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1617
|
+
gap: gapSprinkleSchema.optional(),
|
|
1618
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1619
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1620
|
+
h: hSprinkleSchema.optional(),
|
|
1621
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1622
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1623
|
+
level: zod.z.union([zod.z.literal("2"), zod.z.literal("4"), zod.z.literal("1"), zod.z.literal("3")]).describe(
|
|
1624
|
+
'Heading level (1-4) that controls both the semantic HTML tag and font size.\n- `level="1"`: renders `<h1>` with `fontSize="4xl"` (default)\n- `level="2"`: renders `<h2>` with `fontSize="3xl"`\n- `level="3"`: renders `<h3>` with `fontSize="2xl"`\n- `level="4"`: renders `<h4>` with `fontSize="xl"`\n\nUse `asChild` to decouple the semantic level from visual appearance.'
|
|
1625
|
+
).optional(),
|
|
1626
|
+
m: mSprinkleSchema.optional(),
|
|
1627
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
1628
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1629
|
+
mb: mbSprinkleSchema.optional(),
|
|
1630
|
+
ml: mlSprinkleSchema.optional(),
|
|
1631
|
+
mr: mrSprinkleSchema.optional(),
|
|
1632
|
+
mt: mtSprinkleSchema.optional(),
|
|
1633
|
+
mx: mxSprinkleSchema.optional(),
|
|
1634
|
+
my: mySprinkleSchema.optional(),
|
|
1635
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1636
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1637
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1638
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1639
|
+
p: pSprinkleSchema.optional(),
|
|
1640
|
+
pb: pbSprinkleSchema.optional(),
|
|
1641
|
+
pl: plSprinkleSchema.optional(),
|
|
1642
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1643
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1644
|
+
pr: prSprinkleSchema.optional(),
|
|
1645
|
+
pt: ptSprinkleSchema.optional(),
|
|
1646
|
+
px: pxSprinkleSchema.optional(),
|
|
1647
|
+
py: pySprinkleSchema.optional(),
|
|
1648
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
1649
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
1650
|
+
size: sizeSprinkleSchema.optional(),
|
|
1651
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
1652
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
1653
|
+
transition: transitionSprinkleSchema.optional(),
|
|
1654
|
+
w: wSprinkleSchema.optional(),
|
|
1655
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
1656
|
+
z: zSprinkleSchema.optional()
|
|
1657
|
+
}).strict();
|
|
1658
|
+
const BlockInputSchema = zod.z.object({
|
|
1659
|
+
$id: zod.z.string().describe(
|
|
1660
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1661
|
+
).optional(),
|
|
1662
|
+
$type: zod.z.literal("Block.Input"),
|
|
1663
|
+
$visible: zod.z.boolean().describe(
|
|
1664
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1665
|
+
).optional(),
|
|
1666
|
+
addonAfter: zod.z.any().optional(),
|
|
1667
|
+
addonBefore: zod.z.any().optional(),
|
|
1668
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
1669
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1670
|
+
animation: animationSprinkleSchema.optional(),
|
|
1671
|
+
appearance: zod.z.union([zod.z.literal("number"), zod.z.literal("default")]).describe("Control the appearance of the input.").optional(),
|
|
1672
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1673
|
+
bg: bgSprinkleSchema.optional(),
|
|
1674
|
+
border: borderSprinkleSchema.optional(),
|
|
1675
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1676
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1677
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1678
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1679
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1680
|
+
color: colorSprinkleSchema.optional(),
|
|
1681
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1682
|
+
display: displaySprinkleSchema.optional(),
|
|
1683
|
+
flex: flexSprinkleSchema.optional(),
|
|
1684
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
1685
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1686
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1687
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1688
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1689
|
+
gap: gapSprinkleSchema.optional(),
|
|
1690
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1691
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1692
|
+
h: hSprinkleSchema.optional(),
|
|
1693
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1694
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1695
|
+
m: mSprinkleSchema.optional(),
|
|
1696
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
1697
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1698
|
+
mb: mbSprinkleSchema.optional(),
|
|
1699
|
+
ml: mlSprinkleSchema.optional(),
|
|
1700
|
+
mr: mrSprinkleSchema.optional(),
|
|
1701
|
+
mt: mtSprinkleSchema.optional(),
|
|
1702
|
+
mx: mxSprinkleSchema.optional(),
|
|
1703
|
+
my: mySprinkleSchema.optional(),
|
|
1704
|
+
name: zod.z.string().describe("The name of the form control element.").optional(),
|
|
1705
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1706
|
+
onValueChange: zod.z.union([
|
|
1707
|
+
zod.z.object({
|
|
1708
|
+
tool: zod.z.string().describe("Name of registered tool to call")
|
|
1709
|
+
}).strict().describe("Server-side tool call"),
|
|
1710
|
+
zod.z.object({
|
|
1711
|
+
action: zod.z.literal("setVisibility").describe("Set visibility of target elements"),
|
|
1712
|
+
params: zod.z.record(zod.z.boolean()).describe(
|
|
1713
|
+
"Map of element IDs to visibility state (e.g., { 'step-2': true, 'step-1': false })"
|
|
1714
|
+
),
|
|
1715
|
+
when: zod.z.string().describe(
|
|
1716
|
+
"Optional regex pattern - action only executes if value matches"
|
|
1717
|
+
).optional()
|
|
1718
|
+
}).strict().describe("Client-side setVisibility action")
|
|
1719
|
+
]).describe(
|
|
1720
|
+
"Handler for user interactions - either a tool call or client-side action"
|
|
1721
|
+
).optional(),
|
|
1722
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1723
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1724
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1725
|
+
p: pSprinkleSchema.optional(),
|
|
1726
|
+
pb: pbSprinkleSchema.optional(),
|
|
1727
|
+
pl: plSprinkleSchema.optional(),
|
|
1728
|
+
placeholder: zod.z.string().describe("The placeholder text to use when control has no value.").optional(),
|
|
1729
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1730
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1731
|
+
pr: prSprinkleSchema.optional(),
|
|
1732
|
+
pt: ptSprinkleSchema.optional(),
|
|
1733
|
+
px: pxSprinkleSchema.optional(),
|
|
1734
|
+
py: pySprinkleSchema.optional(),
|
|
1735
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
1736
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
1737
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
1738
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
1739
|
+
transition: transitionSprinkleSchema.optional(),
|
|
1740
|
+
type: zod.z.union([
|
|
1741
|
+
zod.z.literal("number"),
|
|
1742
|
+
zod.z.literal("color"),
|
|
1743
|
+
zod.z.literal("button"),
|
|
1744
|
+
zod.z.literal("checkbox"),
|
|
1745
|
+
zod.z.literal("radio"),
|
|
1746
|
+
zod.z.literal("hidden"),
|
|
1747
|
+
zod.z.literal("text"),
|
|
1748
|
+
zod.z.literal("reset"),
|
|
1749
|
+
zod.z.literal("range"),
|
|
1750
|
+
zod.z.literal("search"),
|
|
1751
|
+
zod.z.literal("time"),
|
|
1752
|
+
zod.z.literal("image"),
|
|
1753
|
+
zod.z.literal("tel"),
|
|
1754
|
+
zod.z.literal("url"),
|
|
1755
|
+
zod.z.literal("email"),
|
|
1756
|
+
zod.z.literal("date"),
|
|
1757
|
+
zod.z.literal("submit"),
|
|
1758
|
+
zod.z.literal("month"),
|
|
1759
|
+
zod.z.literal("datetime-local"),
|
|
1760
|
+
zod.z.literal("week"),
|
|
1761
|
+
zod.z.literal("file"),
|
|
1762
|
+
zod.z.literal("password"),
|
|
1763
|
+
zod.z.string()
|
|
1764
|
+
]).describe("The input type.").optional(),
|
|
1765
|
+
w: wSprinkleSchema.optional(),
|
|
1766
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
1767
|
+
z: zSprinkleSchema.optional()
|
|
1768
|
+
}).strict();
|
|
1769
|
+
const BlockLinkSchema = zod.z.object({
|
|
1770
|
+
$id: zod.z.string().describe(
|
|
1771
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1772
|
+
).optional(),
|
|
1773
|
+
$type: zod.z.literal("Block.Link"),
|
|
1774
|
+
$visible: zod.z.boolean().describe(
|
|
1775
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1776
|
+
).optional(),
|
|
1777
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
1778
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1779
|
+
animation: animationSprinkleSchema.optional(),
|
|
1780
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1781
|
+
bg: bgSprinkleSchema.optional(),
|
|
1782
|
+
border: borderSprinkleSchema.optional(),
|
|
1783
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1784
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1785
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1786
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1787
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1788
|
+
children: zod.z.any().optional(),
|
|
1789
|
+
color: colorSprinkleSchema.optional(),
|
|
1790
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1791
|
+
display: displaySprinkleSchema.optional(),
|
|
1792
|
+
flex: flexSprinkleSchema.optional(),
|
|
1793
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
1794
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1795
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1796
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1797
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1798
|
+
gap: gapSprinkleSchema.optional(),
|
|
1799
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1800
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1801
|
+
h: hSprinkleSchema.optional(),
|
|
1802
|
+
href: zod.z.string().describe("The link href.").optional(),
|
|
1803
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1804
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1805
|
+
m: mSprinkleSchema.optional(),
|
|
1806
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
1807
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1808
|
+
mb: mbSprinkleSchema.optional(),
|
|
1809
|
+
ml: mlSprinkleSchema.optional(),
|
|
1810
|
+
mr: mrSprinkleSchema.optional(),
|
|
1811
|
+
mt: mtSprinkleSchema.optional(),
|
|
1812
|
+
mx: mxSprinkleSchema.optional(),
|
|
1813
|
+
my: mySprinkleSchema.optional(),
|
|
1814
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1815
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1816
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1817
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1818
|
+
p: pSprinkleSchema.optional(),
|
|
1819
|
+
pb: pbSprinkleSchema.optional(),
|
|
1820
|
+
pl: plSprinkleSchema.optional(),
|
|
1821
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1822
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1823
|
+
pr: prSprinkleSchema.optional(),
|
|
1824
|
+
pt: ptSprinkleSchema.optional(),
|
|
1825
|
+
px: pxSprinkleSchema.optional(),
|
|
1826
|
+
py: pySprinkleSchema.optional(),
|
|
1827
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
1828
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
1829
|
+
size: sizeSprinkleSchema.optional(),
|
|
1830
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
1831
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
1832
|
+
transition: transitionSprinkleSchema.optional(),
|
|
1833
|
+
w: wSprinkleSchema.optional(),
|
|
1834
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
1835
|
+
z: zSprinkleSchema.optional()
|
|
1836
|
+
}).strict();
|
|
1837
|
+
const BlockRangeSchema = zod.z.object({
|
|
1838
|
+
$id: zod.z.string().describe(
|
|
1839
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1840
|
+
).optional(),
|
|
1841
|
+
$type: zod.z.literal("Block.Range"),
|
|
1842
|
+
$visible: zod.z.boolean().describe(
|
|
1843
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1844
|
+
).optional(),
|
|
1845
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
1846
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1847
|
+
animation: animationSprinkleSchema.optional(),
|
|
1848
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1849
|
+
bg: bgSprinkleSchema.optional(),
|
|
1850
|
+
border: borderSprinkleSchema.optional(),
|
|
1851
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1852
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1853
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1854
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1855
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1856
|
+
color: colorSprinkleSchema.optional(),
|
|
1857
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1858
|
+
display: displaySprinkleSchema.optional(),
|
|
1859
|
+
flex: flexSprinkleSchema.optional(),
|
|
1860
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
1861
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1862
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1863
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1864
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1865
|
+
gap: gapSprinkleSchema.optional(),
|
|
1866
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1867
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1868
|
+
h: hSprinkleSchema.optional(),
|
|
1869
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1870
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1871
|
+
m: mSprinkleSchema.optional(),
|
|
1872
|
+
marks: zod.z.array(
|
|
1873
|
+
zod.z.union([
|
|
1874
|
+
zod.z.number(),
|
|
1875
|
+
zod.z.object({
|
|
1876
|
+
label: zod.z.string().describe("The label for the mark"),
|
|
1877
|
+
value: zod.z.number().describe("The value for the mark")
|
|
1878
|
+
}).strict()
|
|
1879
|
+
])
|
|
1880
|
+
).describe("The marks to display on the range steps.").optional(),
|
|
1881
|
+
max: zod.z.number().describe("The maximum value for the range.").optional(),
|
|
1882
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
1883
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1884
|
+
mb: mbSprinkleSchema.optional(),
|
|
1885
|
+
min: zod.z.number().describe("The minimum value for the range.").optional(),
|
|
1886
|
+
ml: mlSprinkleSchema.optional(),
|
|
1887
|
+
mr: mrSprinkleSchema.optional(),
|
|
1888
|
+
mt: mtSprinkleSchema.optional(),
|
|
1889
|
+
mx: mxSprinkleSchema.optional(),
|
|
1890
|
+
my: mySprinkleSchema.optional(),
|
|
1891
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1892
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1893
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1894
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1895
|
+
p: pSprinkleSchema.optional(),
|
|
1896
|
+
pb: pbSprinkleSchema.optional(),
|
|
1897
|
+
pl: plSprinkleSchema.optional(),
|
|
1898
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1899
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1900
|
+
pr: prSprinkleSchema.optional(),
|
|
1901
|
+
pt: ptSprinkleSchema.optional(),
|
|
1902
|
+
px: pxSprinkleSchema.optional(),
|
|
1903
|
+
py: pySprinkleSchema.optional(),
|
|
1904
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
1905
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
1906
|
+
step: zod.z.number().describe("The stepping interval for the range.").optional(),
|
|
1907
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
1908
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
1909
|
+
transition: transitionSprinkleSchema.optional(),
|
|
1910
|
+
w: wSprinkleSchema.optional(),
|
|
1911
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
1912
|
+
z: zSprinkleSchema.optional()
|
|
1913
|
+
}).strict();
|
|
1914
|
+
const BlockSelectSchema = zod.z.object({
|
|
1915
|
+
$id: zod.z.string().describe(
|
|
1916
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1917
|
+
).optional(),
|
|
1918
|
+
$type: zod.z.literal("Block.Select"),
|
|
1919
|
+
$visible: zod.z.boolean().describe(
|
|
1920
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1921
|
+
).optional(),
|
|
1922
|
+
children: zod.z.any().optional(),
|
|
1923
|
+
name: zod.z.string().describe("The name of the inner select element.").optional(),
|
|
1924
|
+
options: zod.z.array(
|
|
1925
|
+
zod.z.object({
|
|
1926
|
+
execute: zod.z.union([
|
|
1927
|
+
zod.z.object({
|
|
1928
|
+
tool: zod.z.string().describe("Name of registered tool to call")
|
|
1929
|
+
}).strict().describe("Server-side tool call"),
|
|
1930
|
+
zod.z.object({
|
|
1931
|
+
action: zod.z.literal("setVisibility").describe("Set visibility of target elements"),
|
|
1932
|
+
params: zod.z.record(zod.z.boolean()).describe(
|
|
1933
|
+
"Map of element IDs to visibility state (e.g., { 'step-2': true, 'step-1': false })"
|
|
1934
|
+
),
|
|
1935
|
+
when: zod.z.string().describe(
|
|
1936
|
+
"Optional regex pattern - action only executes if value matches"
|
|
1937
|
+
).optional()
|
|
1938
|
+
}).strict().describe("Client-side setVisibility action")
|
|
1939
|
+
]).describe(
|
|
1940
|
+
"Handler for user interactions - either a tool call or client-side action"
|
|
1941
|
+
).optional(),
|
|
1942
|
+
label: zod.z.string().describe("String representation of items"),
|
|
1943
|
+
value: zod.z.string().describe("Return a unique key for each item")
|
|
1944
|
+
}).strict()
|
|
1945
|
+
).describe("The select items/options we want to render.")
|
|
1946
|
+
}).strict();
|
|
1947
|
+
const BlockSelectContentSchema = zod.z.object({
|
|
1948
|
+
$id: zod.z.string().describe(
|
|
1949
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
1950
|
+
).optional(),
|
|
1951
|
+
$type: zod.z.literal("Block.SelectContent"),
|
|
1952
|
+
$visible: zod.z.boolean().describe(
|
|
1953
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
1954
|
+
).optional(),
|
|
1955
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
1956
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
1957
|
+
animation: animationSprinkleSchema.optional(),
|
|
1958
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
1959
|
+
bg: bgSprinkleSchema.optional(),
|
|
1960
|
+
border: borderSprinkleSchema.optional(),
|
|
1961
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
1962
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
1963
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
1964
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
1965
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
1966
|
+
color: colorSprinkleSchema.optional(),
|
|
1967
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
1968
|
+
display: displaySprinkleSchema.optional(),
|
|
1969
|
+
flex: flexSprinkleSchema.optional(),
|
|
1970
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
1971
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
1972
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
1973
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
1974
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
1975
|
+
gap: gapSprinkleSchema.optional(),
|
|
1976
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
1977
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
1978
|
+
h: hSprinkleSchema.optional(),
|
|
1979
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
1980
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
1981
|
+
m: mSprinkleSchema.optional(),
|
|
1982
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
1983
|
+
mb: mbSprinkleSchema.optional(),
|
|
1984
|
+
ml: mlSprinkleSchema.optional(),
|
|
1985
|
+
mr: mrSprinkleSchema.optional(),
|
|
1986
|
+
mt: mtSprinkleSchema.optional(),
|
|
1987
|
+
mx: mxSprinkleSchema.optional(),
|
|
1988
|
+
my: mySprinkleSchema.optional(),
|
|
1989
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
1990
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
1991
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
1992
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
1993
|
+
p: pSprinkleSchema.optional(),
|
|
1994
|
+
pb: pbSprinkleSchema.optional(),
|
|
1995
|
+
pl: plSprinkleSchema.optional(),
|
|
1996
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
1997
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
1998
|
+
pr: prSprinkleSchema.optional(),
|
|
1999
|
+
pt: ptSprinkleSchema.optional(),
|
|
2000
|
+
px: pxSprinkleSchema.optional(),
|
|
2001
|
+
py: pySprinkleSchema.optional(),
|
|
2002
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
2003
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
2004
|
+
size: sizeSprinkleSchema.optional(),
|
|
2005
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
2006
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
2007
|
+
transition: transitionSprinkleSchema.optional(),
|
|
2008
|
+
w: wSprinkleSchema.optional(),
|
|
2009
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
2010
|
+
z: zSprinkleSchema.optional()
|
|
2011
|
+
}).strict();
|
|
2012
|
+
const BlockSelectTriggerSchema = zod.z.object({
|
|
2013
|
+
$id: zod.z.string().describe(
|
|
2014
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
2015
|
+
).optional(),
|
|
2016
|
+
$type: zod.z.literal("Block.SelectTrigger"),
|
|
2017
|
+
$visible: zod.z.boolean().describe(
|
|
2018
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
2019
|
+
).optional(),
|
|
2020
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
2021
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
2022
|
+
animation: animationSprinkleSchema.optional(),
|
|
2023
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
2024
|
+
bg: bgSprinkleSchema.optional(),
|
|
2025
|
+
border: borderSprinkleSchema.optional(),
|
|
2026
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
2027
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
2028
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
2029
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
2030
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
2031
|
+
children: zod.z.any().optional(),
|
|
2032
|
+
color: colorSprinkleSchema.optional(),
|
|
2033
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
2034
|
+
display: displaySprinkleSchema.optional(),
|
|
2035
|
+
flex: flexSprinkleSchema.optional(),
|
|
2036
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
2037
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
2038
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
2039
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
2040
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
2041
|
+
gap: gapSprinkleSchema.optional(),
|
|
2042
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
2043
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
2044
|
+
h: hSprinkleSchema.optional(),
|
|
2045
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
2046
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
2047
|
+
m: mSprinkleSchema.optional(),
|
|
2048
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
2049
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
2050
|
+
mb: mbSprinkleSchema.optional(),
|
|
2051
|
+
ml: mlSprinkleSchema.optional(),
|
|
2052
|
+
mr: mrSprinkleSchema.optional(),
|
|
2053
|
+
mt: mtSprinkleSchema.optional(),
|
|
2054
|
+
mx: mxSprinkleSchema.optional(),
|
|
2055
|
+
my: mySprinkleSchema.optional(),
|
|
2056
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
2057
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
2058
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
2059
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
2060
|
+
p: pSprinkleSchema.optional(),
|
|
2061
|
+
pb: pbSprinkleSchema.optional(),
|
|
2062
|
+
pl: plSprinkleSchema.optional(),
|
|
2063
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
2064
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
2065
|
+
pr: prSprinkleSchema.optional(),
|
|
2066
|
+
pt: ptSprinkleSchema.optional(),
|
|
2067
|
+
px: pxSprinkleSchema.optional(),
|
|
2068
|
+
py: pySprinkleSchema.optional(),
|
|
2069
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
2070
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
2071
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
2072
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
2073
|
+
transition: transitionSprinkleSchema.optional(),
|
|
2074
|
+
w: wSprinkleSchema.optional(),
|
|
2075
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
2076
|
+
z: zSprinkleSchema.optional()
|
|
2077
|
+
}).strict();
|
|
2078
|
+
const BlockSeparatorSchema = zod.z.object({
|
|
2079
|
+
$id: zod.z.string().describe(
|
|
2080
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
2081
|
+
).optional(),
|
|
2082
|
+
$type: zod.z.literal("Block.Separator"),
|
|
2083
|
+
$visible: zod.z.boolean().describe(
|
|
2084
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
2085
|
+
).optional(),
|
|
2086
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
2087
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
2088
|
+
animation: animationSprinkleSchema.optional(),
|
|
2089
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
2090
|
+
bg: bgSprinkleSchema.optional(),
|
|
2091
|
+
border: borderSprinkleSchema.optional(),
|
|
2092
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
2093
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
2094
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
2095
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
2096
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
2097
|
+
color: colorSprinkleSchema.optional(),
|
|
2098
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
2099
|
+
display: displaySprinkleSchema.optional(),
|
|
2100
|
+
flex: flexSprinkleSchema.optional(),
|
|
2101
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
2102
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
2103
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
2104
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
2105
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
2106
|
+
gap: gapSprinkleSchema.optional(),
|
|
2107
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
2108
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
2109
|
+
h: hSprinkleSchema.optional(),
|
|
2110
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
2111
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
2112
|
+
m: mSprinkleSchema.optional(),
|
|
2113
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
2114
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
2115
|
+
mb: mbSprinkleSchema.optional(),
|
|
2116
|
+
ml: mlSprinkleSchema.optional(),
|
|
2117
|
+
mr: mrSprinkleSchema.optional(),
|
|
2118
|
+
mt: mtSprinkleSchema.optional(),
|
|
2119
|
+
mx: mxSprinkleSchema.optional(),
|
|
2120
|
+
my: mySprinkleSchema.optional(),
|
|
2121
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
2122
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
2123
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
2124
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
2125
|
+
p: pSprinkleSchema.optional(),
|
|
2126
|
+
pb: pbSprinkleSchema.optional(),
|
|
2127
|
+
pl: plSprinkleSchema.optional(),
|
|
2128
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
2129
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
2130
|
+
pr: prSprinkleSchema.optional(),
|
|
2131
|
+
pt: ptSprinkleSchema.optional(),
|
|
2132
|
+
px: pxSprinkleSchema.optional(),
|
|
2133
|
+
py: pySprinkleSchema.optional(),
|
|
2134
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
2135
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
2136
|
+
size: sizeSprinkleSchema.optional(),
|
|
2137
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
2138
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
2139
|
+
transition: transitionSprinkleSchema.optional(),
|
|
2140
|
+
w: wSprinkleSchema.optional(),
|
|
2141
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
2142
|
+
z: zSprinkleSchema.optional()
|
|
2143
|
+
}).strict();
|
|
2144
|
+
const BlockTextSchema = zod.z.object({
|
|
2145
|
+
$id: zod.z.string().describe(
|
|
2146
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
2147
|
+
).optional(),
|
|
2148
|
+
$type: zod.z.literal("Block.Text"),
|
|
2149
|
+
$visible: zod.z.boolean().describe(
|
|
2150
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
2151
|
+
).optional(),
|
|
2152
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
2153
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
2154
|
+
animation: animationSprinkleSchema.optional(),
|
|
2155
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
2156
|
+
bg: bgSprinkleSchema.optional(),
|
|
2157
|
+
border: borderSprinkleSchema.optional(),
|
|
2158
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
2159
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
2160
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
2161
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
2162
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
2163
|
+
children: zod.z.any().optional(),
|
|
2164
|
+
color: colorSprinkleSchema.optional(),
|
|
2165
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
2166
|
+
display: displaySprinkleSchema.optional(),
|
|
2167
|
+
flex: flexSprinkleSchema.optional(),
|
|
2168
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
2169
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
2170
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
2171
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
2172
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
2173
|
+
gap: gapSprinkleSchema.optional(),
|
|
2174
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
2175
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
2176
|
+
h: hSprinkleSchema.optional(),
|
|
2177
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
2178
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
2179
|
+
m: mSprinkleSchema.optional(),
|
|
2180
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
2181
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
2182
|
+
mb: mbSprinkleSchema.optional(),
|
|
2183
|
+
ml: mlSprinkleSchema.optional(),
|
|
2184
|
+
mr: mrSprinkleSchema.optional(),
|
|
2185
|
+
mt: mtSprinkleSchema.optional(),
|
|
2186
|
+
mx: mxSprinkleSchema.optional(),
|
|
2187
|
+
my: mySprinkleSchema.optional(),
|
|
2188
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
2189
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
2190
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
2191
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
2192
|
+
p: pSprinkleSchema.optional(),
|
|
2193
|
+
pb: pbSprinkleSchema.optional(),
|
|
2194
|
+
pl: plSprinkleSchema.optional(),
|
|
2195
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
2196
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
2197
|
+
pr: prSprinkleSchema.optional(),
|
|
2198
|
+
pt: ptSprinkleSchema.optional(),
|
|
2199
|
+
px: pxSprinkleSchema.optional(),
|
|
2200
|
+
py: pySprinkleSchema.optional(),
|
|
2201
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
2202
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
2203
|
+
size: sizeSprinkleSchema.optional(),
|
|
2204
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
2205
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
2206
|
+
transition: transitionSprinkleSchema.optional(),
|
|
2207
|
+
w: wSprinkleSchema.optional(),
|
|
2208
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
2209
|
+
z: zSprinkleSchema.optional()
|
|
2210
|
+
}).strict();
|
|
2211
|
+
const BlockTextareaSchema = zod.z.object({
|
|
2212
|
+
$id: zod.z.string().describe(
|
|
2213
|
+
"Unique identifier for targeting by actions (e.g., setVisibility)"
|
|
2214
|
+
).optional(),
|
|
2215
|
+
$type: zod.z.literal("Block.Textarea"),
|
|
2216
|
+
$visible: zod.z.boolean().describe(
|
|
2217
|
+
"Whether element is visible (default: true). Elements with $visible: false are hidden until shown by an action."
|
|
2218
|
+
).optional(),
|
|
2219
|
+
alignItems: alignItemsSprinkleSchema.optional(),
|
|
2220
|
+
alignSelf: alignSelfSprinkleSchema.optional(),
|
|
2221
|
+
animation: animationSprinkleSchema.optional(),
|
|
2222
|
+
backgroundImage: backgroundImageSprinkleSchema.optional(),
|
|
2223
|
+
bg: bgSprinkleSchema.optional(),
|
|
2224
|
+
border: borderSprinkleSchema.optional(),
|
|
2225
|
+
borderB: borderBSprinkleSchema.optional(),
|
|
2226
|
+
borderColor: borderColorSprinkleSchema.optional(),
|
|
2227
|
+
borderL: borderLSprinkleSchema.optional(),
|
|
2228
|
+
borderR: borderRSprinkleSchema.optional(),
|
|
2229
|
+
borderT: borderTSprinkleSchema.optional(),
|
|
2230
|
+
color: colorSprinkleSchema.optional(),
|
|
2231
|
+
cursor: cursorSprinkleSchema.optional(),
|
|
2232
|
+
display: displaySprinkleSchema.optional(),
|
|
2233
|
+
flex: flexSprinkleSchema.optional(),
|
|
2234
|
+
flexDirection: flexDirectionSprinkleSchema.optional(),
|
|
2235
|
+
flexWrap: flexWrapSprinkleSchema.optional(),
|
|
2236
|
+
fontFamily: fontFamilySprinkleSchema.optional(),
|
|
2237
|
+
fontSize: fontSizeSprinkleSchema.optional(),
|
|
2238
|
+
fontWeight: fontWeightSprinkleSchema.optional(),
|
|
2239
|
+
gap: gapSprinkleSchema.optional(),
|
|
2240
|
+
gridColumn: gridColumnSprinkleSchema.optional(),
|
|
2241
|
+
gridTemplateColumns: gridTemplateColumnsSprinkleSchema.optional(),
|
|
2242
|
+
h: hSprinkleSchema.optional(),
|
|
2243
|
+
justifyContent: justifyContentSprinkleSchema.optional(),
|
|
2244
|
+
justifyItems: justifyItemsSprinkleSchema.optional(),
|
|
2245
|
+
m: mSprinkleSchema.optional(),
|
|
2246
|
+
maxH: maxHSprinkleSchema.optional(),
|
|
2247
|
+
maxRows: zod.z.union([
|
|
2248
|
+
zod.z.literal(1),
|
|
2249
|
+
zod.z.literal(2),
|
|
2250
|
+
zod.z.literal(3),
|
|
2251
|
+
zod.z.literal(4),
|
|
2252
|
+
zod.z.literal(5)
|
|
2253
|
+
]).describe("Limits the height of the textarea when `resize=auto` is used.").optional(),
|
|
2254
|
+
maxW: maxWSprinkleSchema.optional(),
|
|
2255
|
+
mb: mbSprinkleSchema.optional(),
|
|
2256
|
+
ml: mlSprinkleSchema.optional(),
|
|
2257
|
+
mr: mrSprinkleSchema.optional(),
|
|
2258
|
+
mt: mtSprinkleSchema.optional(),
|
|
2259
|
+
mx: mxSprinkleSchema.optional(),
|
|
2260
|
+
my: mySprinkleSchema.optional(),
|
|
2261
|
+
name: zod.z.string().describe("The name of the form control element.").optional(),
|
|
2262
|
+
objectFit: objectFitSprinkleSchema.optional(),
|
|
2263
|
+
onValueChange: zod.z.union([
|
|
2264
|
+
zod.z.object({
|
|
2265
|
+
tool: zod.z.string().describe("Name of registered tool to call")
|
|
2266
|
+
}).strict().describe("Server-side tool call"),
|
|
2267
|
+
zod.z.object({
|
|
2268
|
+
action: zod.z.literal("setVisibility").describe("Set visibility of target elements"),
|
|
2269
|
+
params: zod.z.record(zod.z.boolean()).describe(
|
|
2270
|
+
"Map of element IDs to visibility state (e.g., { 'step-2': true, 'step-1': false })"
|
|
2271
|
+
),
|
|
2272
|
+
when: zod.z.string().describe(
|
|
2273
|
+
"Optional regex pattern - action only executes if value matches"
|
|
2274
|
+
).optional()
|
|
2275
|
+
}).strict().describe("Client-side setVisibility action")
|
|
2276
|
+
]).describe(
|
|
2277
|
+
"Handler for user interactions - either a tool call or client-side action"
|
|
2278
|
+
).optional(),
|
|
2279
|
+
overflow: overflowSprinkleSchema.optional(),
|
|
2280
|
+
overflowX: overflowXSprinkleSchema.optional(),
|
|
2281
|
+
overflowY: overflowYSprinkleSchema.optional(),
|
|
2282
|
+
p: pSprinkleSchema.optional(),
|
|
2283
|
+
pb: pbSprinkleSchema.optional(),
|
|
2284
|
+
pl: plSprinkleSchema.optional(),
|
|
2285
|
+
placeholder: zod.z.string().describe("The placeholder text to use when control has no value.").optional(),
|
|
2286
|
+
placeItems: placeItemsSprinkleSchema.optional(),
|
|
2287
|
+
pointerEvents: pointerEventsSprinkleSchema.optional(),
|
|
2288
|
+
pr: prSprinkleSchema.optional(),
|
|
2289
|
+
pt: ptSprinkleSchema.optional(),
|
|
2290
|
+
px: pxSprinkleSchema.optional(),
|
|
2291
|
+
py: pySprinkleSchema.optional(),
|
|
2292
|
+
resize: zod.z.union([zod.z.literal("none"), zod.z.literal("auto"), zod.z.literal("vertical")]).describe(
|
|
2293
|
+
"Control whether resizing mode is manual, automatic, or disabled."
|
|
2294
|
+
).optional(),
|
|
2295
|
+
rounded: roundedSprinkleSchema.optional(),
|
|
2296
|
+
rows: zod.z.number().describe("The number of rows to display.").optional(),
|
|
2297
|
+
shadow: shadowSprinkleSchema.optional(),
|
|
2298
|
+
textAlign: textAlignSprinkleSchema.optional(),
|
|
2299
|
+
textTransform: textTransformSprinkleSchema.optional(),
|
|
2300
|
+
transition: transitionSprinkleSchema.optional(),
|
|
2301
|
+
w: wSprinkleSchema.optional(),
|
|
2302
|
+
whiteSpace: whiteSpaceSprinkleSchema.optional(),
|
|
2303
|
+
z: zSprinkleSchema.optional()
|
|
2304
|
+
}).strict();
|
|
2305
|
+
const BlockElementSchema = zod.z.discriminatedUnion("$type", [
|
|
2306
|
+
BlockActionSchema,
|
|
2307
|
+
BlockCancelActionSchema,
|
|
2308
|
+
BlockFieldSchema,
|
|
2309
|
+
BlockGroupSchema,
|
|
2310
|
+
BlockHeadingSchema,
|
|
2311
|
+
BlockInputSchema,
|
|
2312
|
+
BlockLinkSchema,
|
|
2313
|
+
BlockRangeSchema,
|
|
2314
|
+
BlockSelectSchema,
|
|
2315
|
+
BlockSelectContentSchema,
|
|
2316
|
+
BlockSelectTriggerSchema,
|
|
2317
|
+
BlockSeparatorSchema,
|
|
2318
|
+
BlockTextSchema,
|
|
2319
|
+
BlockTextareaSchema
|
|
2320
|
+
]);
|
|
2321
|
+
|
|
2322
|
+
const BlockElement = ({ element: elementProp }) => {
|
|
2323
|
+
const { visibility } = useBlockDocumentContext(
|
|
2324
|
+
"@optiaxiom/react/BlockElement"
|
|
2325
|
+
);
|
|
2326
|
+
if (!elementProp) {
|
|
2327
|
+
return null;
|
|
2328
|
+
} else if (typeof elementProp === "string" || typeof elementProp === "number") {
|
|
2329
|
+
return elementProp;
|
|
2330
|
+
} else if (Array.isArray(elementProp)) {
|
|
2331
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: elementProp.map((element2, index) => /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: element2 }, index)) });
|
|
2332
|
+
}
|
|
2333
|
+
const result = BlockElementSchema.safeParse(elementProp);
|
|
2334
|
+
if (!result.success) {
|
|
2335
|
+
return null;
|
|
2336
|
+
}
|
|
2337
|
+
const { $id, $visible, ...element } = result.data;
|
|
2338
|
+
if (!($id && $id in visibility ? visibility[$id] : $visible !== false)) {
|
|
2339
|
+
return null;
|
|
2340
|
+
}
|
|
2341
|
+
switch (element.$type) {
|
|
2342
|
+
case "Block.Action":
|
|
2343
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockAction, { ...omitType(element) });
|
|
2344
|
+
case "Block.CancelAction":
|
|
2345
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockCancelAction, { ...omitType(element) });
|
|
2346
|
+
case "Block.Field":
|
|
2347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockField, { ...omitType(element) });
|
|
2348
|
+
case "Block.Group":
|
|
2349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockGroup, { ...omitType(element) });
|
|
2350
|
+
case "Block.Heading":
|
|
2351
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockHeading, { ...omitType(element) });
|
|
2352
|
+
case "Block.Input":
|
|
2353
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockInput, { ...omitType(element) });
|
|
2354
|
+
case "Block.Link":
|
|
2355
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockLink, { ...omitType(element) });
|
|
2356
|
+
case "Block.Range":
|
|
2357
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockRange, { ...omitType(element) });
|
|
2358
|
+
case "Block.Select":
|
|
2359
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockSelect, { ...omitType(element) });
|
|
2360
|
+
case "Block.SelectContent":
|
|
2361
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockSelectContent, { ...omitType(element) });
|
|
2362
|
+
case "Block.SelectTrigger":
|
|
2363
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockSelectTrigger, { ...omitType(element) });
|
|
2364
|
+
case "Block.Separator":
|
|
2365
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockSeparator, { ...omitType(element) });
|
|
2366
|
+
case "Block.Text":
|
|
2367
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockText, { ...omitType(element) });
|
|
2368
|
+
case "Block.Textarea":
|
|
2369
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockTextarea, { ...omitType(element) });
|
|
2370
|
+
default:
|
|
2371
|
+
return null;
|
|
2372
|
+
}
|
|
2373
|
+
};
|
|
2374
|
+
BlockElement.displayName = "@optiaxiom/react/BlockElement";
|
|
2375
|
+
const omitType = (obj) => {
|
|
2376
|
+
const { $type: _$type, ...rest } = obj;
|
|
2377
|
+
return rest;
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
function BlockDocumentRenderer({
|
|
2381
|
+
data = {},
|
|
2382
|
+
element: elementProp,
|
|
2383
|
+
onCancelAction,
|
|
2384
|
+
onDataChange,
|
|
2385
|
+
onToolCall,
|
|
2386
|
+
readOnly = false
|
|
2387
|
+
}) {
|
|
2388
|
+
const [visibility, setVisibility] = React.useState({});
|
|
2389
|
+
const result = BlockDocumentSchema.safeParse(elementProp);
|
|
2390
|
+
if (!result.success) ;
|
|
2391
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2392
|
+
BlockDocumentProvider,
|
|
2393
|
+
{
|
|
2394
|
+
data,
|
|
2395
|
+
onCancelAction,
|
|
2396
|
+
onDataChange: Textarea.useEffectEvent((name, value) => {
|
|
2397
|
+
onDataChange?.({ ...data, [name]: value });
|
|
2398
|
+
}),
|
|
2399
|
+
onEvent: Textarea.useEffectEvent(
|
|
2400
|
+
(event, value) => {
|
|
2401
|
+
if ("tool" in event) {
|
|
2402
|
+
onToolCall?.(event.tool);
|
|
2403
|
+
} else if (event.action === "setVisibility") {
|
|
2404
|
+
if (event.when && !(value || "").match(new RegExp(event.when))) {
|
|
2405
|
+
return;
|
|
2406
|
+
}
|
|
2407
|
+
setVisibility(event.params);
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
),
|
|
2411
|
+
readOnly,
|
|
2412
|
+
visibility,
|
|
2413
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Card, { alignItems: "stretch", flexDirection: "column", gap: "16", w: "full", children: result.success && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2414
|
+
/* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: result.data.children }),
|
|
2415
|
+
result.data.actions && result.data.actions.length > 0 && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(Textarea.Flex, { gap: "16", w: "full", children: /* @__PURE__ */ jsxRuntime.jsx(BlockElement, { element: result.data.actions }) })
|
|
2416
|
+
] }) })
|
|
2417
|
+
}
|
|
2418
|
+
);
|
|
2419
|
+
}
|
|
2420
|
+
BlockDocumentRenderer.displayName = "@optiaxiom/react/BlockDocumentRenderer";
|
|
2421
|
+
|
|
246
2422
|
function DataTableExpandableCell({
|
|
247
2423
|
children,
|
|
248
2424
|
getValue,
|
|
249
2425
|
row
|
|
250
2426
|
}) {
|
|
251
2427
|
const labelPrefixId = reactId.useId();
|
|
252
|
-
const { labelId } =
|
|
2428
|
+
const { labelId } = Textarea.useDataTableRowContext(
|
|
253
2429
|
"@optiaxiom/react/DataTableExpandableCell"
|
|
254
2430
|
);
|
|
255
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
256
|
-
Array.from({ length: row.depth }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2431
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Textarea.Group, { alignItems: "start", gap: "8", children: [
|
|
2432
|
+
Array.from({ length: row.depth }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { flex: "none", w: "sm" }, index)),
|
|
257
2433
|
row.getCanExpand() ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
-
|
|
2434
|
+
Textarea.Button,
|
|
259
2435
|
{
|
|
260
2436
|
appearance: "subtle",
|
|
261
2437
|
"aria-expanded": row.getIsExpanded(),
|
|
262
2438
|
"aria-label": "Toggle row",
|
|
263
2439
|
"aria-labelledby": clsx(labelPrefixId, labelId),
|
|
264
2440
|
flex: "none",
|
|
265
|
-
icon: row.getIsExpanded() ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2441
|
+
icon: row.getIsExpanded() ? /* @__PURE__ */ jsxRuntime.jsx(Textarea.IconAngleDown, {}) : /* @__PURE__ */ jsxRuntime.jsx(Textarea.IconAngleRight, {}),
|
|
266
2442
|
id: labelPrefixId,
|
|
267
2443
|
onClick: row.getToggleExpandedHandler(),
|
|
268
2444
|
size: "sm",
|
|
269
2445
|
style: { marginBlock: -2 },
|
|
270
2446
|
type: "button"
|
|
271
2447
|
}
|
|
272
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2448
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { flex: "none", w: "sm" }),
|
|
273
2449
|
children ?? getValue()
|
|
274
2450
|
] });
|
|
275
2451
|
}
|
|
@@ -278,11 +2454,11 @@ DataTableExpandableCell.displayName = "@optiaxiom/react/DataTableExpandableCell"
|
|
|
278
2454
|
function DataTableExpandableHeader({
|
|
279
2455
|
children
|
|
280
2456
|
}) {
|
|
281
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ml: "32", children });
|
|
282
2458
|
}
|
|
283
2459
|
DataTableExpandableHeader.displayName = "@optiaxiom/react/DataTableExpandableHeader";
|
|
284
2460
|
|
|
285
|
-
var root$
|
|
2461
|
+
var root$2 = Textarea.recipeRuntime({base:[{bg:'bg.default',borderColor:'border.secondary',borderL:'1',color:'fg.default',display:'flex',flexDirection:'column',h:'full',overflow:'auto'},'_15l3llw']});
|
|
286
2462
|
|
|
287
2463
|
const [DetailsPanelProvider, useDetailsPanelContext] = reactContext.createContext("@optiaxiom/react/DetailsPanel");
|
|
288
2464
|
|
|
@@ -293,13 +2469,13 @@ const DetailsPanel = React.forwardRef(
|
|
|
293
2469
|
const labelId = reactId.useId();
|
|
294
2470
|
const descriptionId = reactId.useId();
|
|
295
2471
|
return /* @__PURE__ */ jsxRuntime.jsx(DetailsPanelProvider, { descriptionId, labelId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
296
|
-
|
|
2472
|
+
Textarea.Box,
|
|
297
2473
|
{
|
|
298
2474
|
"aria-describedby": descriptionId,
|
|
299
2475
|
"aria-labelledby": labelId,
|
|
300
2476
|
asChild: true,
|
|
301
2477
|
tabIndex: 0,
|
|
302
|
-
...root$
|
|
2478
|
+
...root$2({}, className),
|
|
303
2479
|
...props,
|
|
304
2480
|
children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { ref, children })
|
|
305
2481
|
}
|
|
@@ -310,7 +2486,7 @@ DetailsPanel.displayName = "@optiaxiom/react/DetailsPanel";
|
|
|
310
2486
|
|
|
311
2487
|
const DetailsPanelBody = React.forwardRef(({ children, ...props }, ref) => {
|
|
312
2488
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
313
|
-
|
|
2489
|
+
Textarea.Group,
|
|
314
2490
|
{
|
|
315
2491
|
flex: "1",
|
|
316
2492
|
flexDirection: "column",
|
|
@@ -325,24 +2501,24 @@ const DetailsPanelBody = React.forwardRef(({ children, ...props }, ref) => {
|
|
|
325
2501
|
});
|
|
326
2502
|
DetailsPanelBody.displayName = "@optiaxiom/react/DetailsPanelBody";
|
|
327
2503
|
|
|
328
|
-
var footer =
|
|
2504
|
+
var footer = Textarea.recipeRuntime({base:[{bg:'bg.default',gap:'8',p:'16',pt:'8'},'ev9hih']});
|
|
329
2505
|
|
|
330
2506
|
const DetailsPanelFooter = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
331
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2507
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.ButtonProvider, { size: "lg", children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { ref, ...footer({}, className), ...props, children }) });
|
|
332
2508
|
});
|
|
333
2509
|
DetailsPanelFooter.displayName = "@optiaxiom/react/DetailsPanelFooter";
|
|
334
2510
|
|
|
335
|
-
var header =
|
|
2511
|
+
var header = Textarea.recipeRuntime({base:[{bg:'bg.default',display:'flex',flexWrap:'wrap',p:'16',pb:'8'},'_1qw1yib']});
|
|
336
2512
|
|
|
337
2513
|
const DetailsPanelHeader = React.forwardRef(
|
|
338
2514
|
({ addonAfter, addonBefore, children, className, description, ...props }, ref) => {
|
|
339
2515
|
const { descriptionId, labelId } = useDetailsPanelContext(
|
|
340
2516
|
"@optiaxiom/react/DetailsPanelHeader"
|
|
341
2517
|
);
|
|
342
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
343
|
-
addonBefore && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2518
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.ButtonProvider, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsxs(Textarea.Box, { ref, ...header({}, className), ...props, children: [
|
|
2519
|
+
addonBefore && /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { gap: "8", children: addonBefore }),
|
|
344
2520
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
345
|
-
|
|
2521
|
+
Textarea.Heading,
|
|
346
2522
|
{
|
|
347
2523
|
flex: "1",
|
|
348
2524
|
fontSize: "lg",
|
|
@@ -352,16 +2528,16 @@ const DetailsPanelHeader = React.forwardRef(
|
|
|
352
2528
|
children
|
|
353
2529
|
}
|
|
354
2530
|
),
|
|
355
|
-
addonAfter && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2531
|
+
addonAfter && /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { gap: "8", children: addonAfter }),
|
|
356
2532
|
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
357
|
-
|
|
2533
|
+
Textarea.Text,
|
|
358
2534
|
{
|
|
359
2535
|
asChild: true,
|
|
360
2536
|
color: "fg.secondary",
|
|
361
2537
|
fontSize: "sm",
|
|
362
2538
|
id: descriptionId,
|
|
363
2539
|
w: "full",
|
|
364
|
-
children:
|
|
2540
|
+
children: Textarea.fallbackSpan(description)
|
|
365
2541
|
}
|
|
366
2542
|
)
|
|
367
2543
|
] }) });
|
|
@@ -369,7 +2545,7 @@ const DetailsPanelHeader = React.forwardRef(
|
|
|
369
2545
|
);
|
|
370
2546
|
DetailsPanelHeader.displayName = "@optiaxiom/react/DetailsPanelHeader";
|
|
371
2547
|
|
|
372
|
-
var upload =
|
|
2548
|
+
var upload = Textarea.recipeRuntime({base:[{color:'fg.default',display:'flex',flexDirection:'column'},'_89kkok']});
|
|
373
2549
|
|
|
374
2550
|
const [FileUploadProvider, useFileUploadContext] = reactContext.createContext("@optiaxiom/react/FileUpload");
|
|
375
2551
|
|
|
@@ -386,14 +2562,14 @@ const FileUpload = React.forwardRef(
|
|
|
386
2562
|
inputRef,
|
|
387
2563
|
onFilesDrop,
|
|
388
2564
|
rootRef: innerRef,
|
|
389
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2565
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ref, ...upload({}, className), ...props, children })
|
|
390
2566
|
}
|
|
391
2567
|
);
|
|
392
2568
|
}
|
|
393
2569
|
);
|
|
394
2570
|
FileUpload.displayName = "@optiaxiom/react/FileUpload";
|
|
395
2571
|
|
|
396
|
-
const IconFileImport =
|
|
2572
|
+
const IconFileImport = Textarea.withIcon(
|
|
397
2573
|
{
|
|
398
2574
|
name: "IconFileImport"
|
|
399
2575
|
},
|
|
@@ -406,8 +2582,8 @@ const IconFileImport = Calendar.withIcon(
|
|
|
406
2582
|
)
|
|
407
2583
|
);
|
|
408
2584
|
|
|
409
|
-
var dropzone =
|
|
410
|
-
var label =
|
|
2585
|
+
var dropzone = Textarea.recipeRuntime({base:[{alignItems:'center',bg:'bg.secondary',flexDirection:'column',gap:'16',justifyContent:'center',p:'32',rounded:'md',textAlign:'center',transition:'colors'},'_1h5xchb'],variants:{drag:{false:{},true:['rs3a9j']},hidden:{false:'_1nd9qtt',true:'_1gw5r4g'},overlay:{false:{flex:'1'},true:[{z:'10'},'_1qr3vi8']}}});
|
|
2586
|
+
var label = Textarea.recipeRuntime({base:[{alignItems:'center',flexDirection:'column',gap:'8'}],variants:{disabled:{false:{},true:'_17sirew'}}});
|
|
411
2587
|
|
|
412
2588
|
const useFileUploadTrigger = () => {
|
|
413
2589
|
const { inputRef } = useFileUploadContext(
|
|
@@ -420,13 +2596,13 @@ const useFileUploadTrigger = () => {
|
|
|
420
2596
|
|
|
421
2597
|
const Slot$3 = reactSlot.createSlot("@optiaxiom/react/FileUploadTrigger");
|
|
422
2598
|
const FileUploadTrigger = React.forwardRef(({ asChild, children, onClick, ...props }, ref) => {
|
|
423
|
-
const { boxProps, restProps } =
|
|
424
|
-
const Comp = asChild ? Slot$3 :
|
|
2599
|
+
const { boxProps, restProps } = Textarea.extractBoxProps(props);
|
|
2600
|
+
const Comp = asChild ? Slot$3 : Textarea.Button;
|
|
425
2601
|
const { disabled } = useFileUploadContext(
|
|
426
2602
|
"@optiaxiom/react/FileUploadTrigger"
|
|
427
2603
|
);
|
|
428
2604
|
const open = useFileUploadTrigger();
|
|
429
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2605
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
430
2606
|
Comp,
|
|
431
2607
|
{
|
|
432
2608
|
disabled,
|
|
@@ -549,7 +2725,7 @@ const useFileUploadDrop = ({
|
|
|
549
2725
|
const { accept, disabled, onFilesDrop } = useFileUploadContext(
|
|
550
2726
|
"@optiaxiom/react/useFileUploadDrop"
|
|
551
2727
|
);
|
|
552
|
-
const auth =
|
|
2728
|
+
const auth = Textarea.useAuthContext();
|
|
553
2729
|
return {
|
|
554
2730
|
...props,
|
|
555
2731
|
onDragOver: (event) => {
|
|
@@ -711,7 +2887,7 @@ const FileUploadDropzone = React.forwardRef(
|
|
|
711
2887
|
useStickyPosition(innerRef, overlay && isDraggingOverBody);
|
|
712
2888
|
const size = useContainerSize(innerRef) ?? 0;
|
|
713
2889
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
714
|
-
|
|
2890
|
+
Textarea.Group,
|
|
715
2891
|
{
|
|
716
2892
|
fontSize: size > 448 ? "lg" : "md",
|
|
717
2893
|
ref: reactComposeRefs.useComposedRefs(innerRef, outerRef),
|
|
@@ -725,7 +2901,7 @@ const FileUploadDropzone = React.forwardRef(
|
|
|
725
2901
|
),
|
|
726
2902
|
...useFileUploadDrop(useFileUploadDragging(props, setIsDragging)),
|
|
727
2903
|
children: [
|
|
728
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2904
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
729
2905
|
"input",
|
|
730
2906
|
{
|
|
731
2907
|
accept,
|
|
@@ -741,10 +2917,10 @@ const FileUploadDropzone = React.forwardRef(
|
|
|
741
2917
|
type: "file"
|
|
742
2918
|
}
|
|
743
2919
|
) }),
|
|
744
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
745
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
746
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
747
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2920
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Textarea.Group, { ...label({ disabled }), children: [
|
|
2921
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Icon, { asChild: true, color: "fg.secondary", h: size > 448 ? "lg" : "sm", children: /* @__PURE__ */ jsxRuntime.jsx(IconFileImport, {}) }),
|
|
2922
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Text, { children: label$1 }),
|
|
2923
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(Textarea.Text, { color: "fg.tertiary", children: description })
|
|
748
2924
|
] }),
|
|
749
2925
|
!overlay && (children ?? /* @__PURE__ */ jsxRuntime.jsx(FileUploadTrigger, {}))
|
|
750
2926
|
]
|
|
@@ -754,7 +2930,7 @@ const FileUploadDropzone = React.forwardRef(
|
|
|
754
2930
|
);
|
|
755
2931
|
FileUploadDropzone.displayName = "@optiaxiom/react/FileUploadDropzone";
|
|
756
2932
|
|
|
757
|
-
var mark
|
|
2933
|
+
var mark = Textarea.recipeRuntime({base:'vo6ga0'});
|
|
758
2934
|
|
|
759
2935
|
const useHighlightedChunks = (content, query) => {
|
|
760
2936
|
const terms = React.useMemo(
|
|
@@ -779,8 +2955,8 @@ function escapeRegExp(string) {
|
|
|
779
2955
|
const Highlight = React.forwardRef(
|
|
780
2956
|
({ children = (chunk) => chunk, content, query, ...props }, ref) => {
|
|
781
2957
|
const chunks = useHighlightedChunks(content || "", query);
|
|
782
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
783
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2958
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ref, ...props, children: chunks.map(({ chunk, highlighted }, index) => /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: highlighted ? children(
|
|
2959
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, ...mark(), children: /* @__PURE__ */ jsxRuntime.jsx("mark", { children: chunk }) })
|
|
784
2960
|
) : chunk }, index)) });
|
|
785
2961
|
}
|
|
786
2962
|
);
|
|
@@ -832,13 +3008,13 @@ const HoverCardContent = React.forwardRef(
|
|
|
832
3008
|
"@optiaxiom/react/HoverCardContent"
|
|
833
3009
|
);
|
|
834
3010
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
835
|
-
|
|
3011
|
+
Textarea.TransitionGroup,
|
|
836
3012
|
{
|
|
837
3013
|
onPresenceChange: setPresence,
|
|
838
3014
|
open,
|
|
839
3015
|
presence,
|
|
840
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
841
|
-
|
|
3016
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Portal, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Transition, { duration: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3017
|
+
Textarea.Paper,
|
|
842
3018
|
{
|
|
843
3019
|
asChild: true,
|
|
844
3020
|
display: "flex",
|
|
@@ -868,16 +3044,16 @@ const HoverCardContent = React.forwardRef(
|
|
|
868
3044
|
);
|
|
869
3045
|
HoverCardContent.displayName = "@optiaxiom/react/HoverCardContent";
|
|
870
3046
|
|
|
871
|
-
var trigger$1 =
|
|
3047
|
+
var trigger$1 = Textarea.recipeRuntime({base:'_1s1wvnk'});
|
|
872
3048
|
|
|
873
3049
|
const HoverCardTrigger = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
874
|
-
const { boxProps, restProps } =
|
|
875
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3050
|
+
const { boxProps, restProps } = Textarea.extractBoxProps(props);
|
|
3051
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, ...trigger$1({}, className), ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsx(RadixHoverCard__namespace.Trigger, { ref, ...restProps, children }) });
|
|
876
3052
|
});
|
|
877
3053
|
HoverCardTrigger.displayName = "@optiaxiom/react/HoverCardTrigger";
|
|
878
3054
|
|
|
879
|
-
var editor =
|
|
880
|
-
var input =
|
|
3055
|
+
var editor = Textarea.recipeRuntime({base:'_1kjarpm',variants:{empty:{false:{},true:'_1nnmyn3'}}});
|
|
3056
|
+
var input = Textarea.recipeRuntime({base:'wm8n2n'});
|
|
881
3057
|
|
|
882
3058
|
const InlineInput = React.forwardRef(
|
|
883
3059
|
({
|
|
@@ -916,8 +3092,8 @@ const InlineInput = React.forwardRef(
|
|
|
916
3092
|
}
|
|
917
3093
|
}
|
|
918
3094
|
}, [multiline, value]);
|
|
919
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
920
|
-
|
|
3095
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ref, ...input({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3096
|
+
Textarea.Box,
|
|
921
3097
|
{
|
|
922
3098
|
"aria-multiline": multiline,
|
|
923
3099
|
"aria-readonly": disabled,
|
|
@@ -959,15 +3135,15 @@ function getText(element) {
|
|
|
959
3135
|
}
|
|
960
3136
|
|
|
961
3137
|
const Resizable = ({ ...props }) => {
|
|
962
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ResizablePrimitive__namespace.PanelGroup, { ...props });
|
|
3138
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ResizablePrimitive__namespace.PanelGroup, { direction: "horizontal", ...props });
|
|
963
3139
|
};
|
|
964
3140
|
Resizable.displayName = "@optiaxiom/react/Resizable";
|
|
965
3141
|
|
|
966
|
-
var handle$1 =
|
|
967
|
-
var root$
|
|
3142
|
+
var handle$1 = Textarea.recipeRuntime({base:[{border:'1',h:'56',rounded:'sm',w:'12'},'h6v535']});
|
|
3143
|
+
var root$1 = Textarea.recipeRuntime({base:[{flexDirection:'column',gap:'16',justifyContent:'center',rounded:'sm',z:'10'},'jps054']});
|
|
968
3144
|
|
|
969
3145
|
const ResizableHandle = (props) => {
|
|
970
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3146
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { asChild: true, ...root$1(), children: /* @__PURE__ */ jsxRuntime.jsx(ResizablePrimitive__namespace.PanelResizeHandle, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { ...handle$1() }) }) });
|
|
971
3147
|
};
|
|
972
3148
|
ResizableHandle.displayName = "@optiaxiom/react/ResizableHandle";
|
|
973
3149
|
|
|
@@ -976,7 +3152,7 @@ const ResizablePanel = ({ ...props }) => {
|
|
|
976
3152
|
};
|
|
977
3153
|
ResizablePanel.displayName = "@optiaxiom/react/ResizablePanel";
|
|
978
3154
|
|
|
979
|
-
var layout =
|
|
3155
|
+
var layout = Textarea.recipeRuntime({base:[{bg:'bg.page',display:'flex',flexDirection:'column',fontSize:'md'},'_1bq2wp1'],variants:{size:{full:'y4cr5i',screen:'_1f5ymen'}}});
|
|
980
3156
|
|
|
981
3157
|
const Layout = React.forwardRef(
|
|
982
3158
|
({
|
|
@@ -989,19 +3165,19 @@ const Layout = React.forwardRef(
|
|
|
989
3165
|
size = "screen",
|
|
990
3166
|
...props
|
|
991
3167
|
}, ref) => {
|
|
992
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3168
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Textarea.Box, { ref, ...layout({ size }, className), ...props, children: [
|
|
993
3169
|
header,
|
|
994
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3170
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Textarea.Box, { display: "flex", flex: "1", overflow: "auto", children: [
|
|
995
3171
|
sidebar,
|
|
996
|
-
resizable ? /* @__PURE__ */ jsxRuntime.jsxs(Resizable, {
|
|
997
|
-
/* @__PURE__ */ jsxRuntime.jsx(ResizablePanel, { minSize: 33, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3172
|
+
resizable ? /* @__PURE__ */ jsxRuntime.jsxs(Resizable, { children: [
|
|
3173
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResizablePanel, { minSize: 33, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, h: "full", children }) }),
|
|
998
3174
|
detailsPanel && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
999
3175
|
/* @__PURE__ */ jsxRuntime.jsx(ResizableHandle, {}),
|
|
1000
3176
|
/* @__PURE__ */ jsxRuntime.jsx(ResizablePanel, { defaultSize: 33, minSize: 33, children: detailsPanel })
|
|
1001
3177
|
] })
|
|
1002
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1003
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1004
|
-
detailsPanel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3178
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(Textarea.Box, { display: "flex", flex: "1", children: [
|
|
3179
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, w: detailsPanel ? "2/3" : "full", children }),
|
|
3180
|
+
detailsPanel && /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { w: "1/3", children: detailsPanel })
|
|
1005
3181
|
] })
|
|
1006
3182
|
] })
|
|
1007
3183
|
] });
|
|
@@ -1009,12 +3185,12 @@ const Layout = React.forwardRef(
|
|
|
1009
3185
|
);
|
|
1010
3186
|
Layout.displayName = "@optiaxiom/react/Layout";
|
|
1011
3187
|
|
|
1012
|
-
var content =
|
|
3188
|
+
var content = Textarea.recipeRuntime({base:[{flexDirection:'column',gap:'16',overflow:'auto',px:'32',py:'24'},'_1x3hwhz']});
|
|
1013
3189
|
|
|
1014
3190
|
const LayoutContent = React.forwardRef(
|
|
1015
3191
|
({ children, className, ...props }, ref) => {
|
|
1016
3192
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1017
|
-
|
|
3193
|
+
Textarea.Group,
|
|
1018
3194
|
{
|
|
1019
3195
|
ref,
|
|
1020
3196
|
tabIndex: 0,
|
|
@@ -1027,7 +3203,7 @@ const LayoutContent = React.forwardRef(
|
|
|
1027
3203
|
);
|
|
1028
3204
|
LayoutContent.displayName = "@optiaxiom/react/LayoutContent";
|
|
1029
3205
|
|
|
1030
|
-
var pill =
|
|
3206
|
+
var pill = Textarea.recipeRuntime({base:[{alignItems:'center',color:'fg.default',display:'flex',fontSize:'sm',gap:'4',px:'6',rounded:'md',transition:'colors',whiteSpace:'nowrap'},'frg3a5'],variants:{interactive:{false:{},true:'_1m2ji47'},size:{xs:{h:'xs'},sm:{h:'sm'}}}});
|
|
1031
3207
|
|
|
1032
3208
|
const Slot$2 = reactSlot.createSlot("@optiaxiom/react/Pill");
|
|
1033
3209
|
const Pill = React.forwardRef(
|
|
@@ -1043,9 +3219,9 @@ const Pill = React.forwardRef(
|
|
|
1043
3219
|
...props
|
|
1044
3220
|
}, ref) => {
|
|
1045
3221
|
const Comp = asChild ? Slot$2 : readOnly ? "span" : "button";
|
|
1046
|
-
const { boxProps, restProps } =
|
|
3222
|
+
const { boxProps, restProps } = Textarea.extractBoxProps(props);
|
|
1047
3223
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1048
|
-
|
|
3224
|
+
Textarea.Box,
|
|
1049
3225
|
{
|
|
1050
3226
|
asChild: true,
|
|
1051
3227
|
"data-disabled": disabled ? "" : void 0,
|
|
@@ -1074,8 +3250,8 @@ const Pill = React.forwardRef(
|
|
|
1074
3250
|
ref,
|
|
1075
3251
|
...restProps,
|
|
1076
3252
|
children: [
|
|
1077
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1078
|
-
onDismiss && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3253
|
+
/* @__PURE__ */ jsxRuntime.jsx(Textarea.Text, { truncate: true, children }),
|
|
3254
|
+
onDismiss && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(Textarea.Icon, { asChild: true, h: "12", ml: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.IconX, {}) })
|
|
1079
3255
|
]
|
|
1080
3256
|
}
|
|
1081
3257
|
)
|
|
@@ -1087,7 +3263,7 @@ Pill.displayName = "@optiaxiom/react/Pill";
|
|
|
1087
3263
|
|
|
1088
3264
|
const PillGroup = React.forwardRef(
|
|
1089
3265
|
({ children, ...props }, ref) => {
|
|
1090
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3266
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { flexWrap: "wrap", gap: "8", ref, ...props, children });
|
|
1091
3267
|
}
|
|
1092
3268
|
);
|
|
1093
3269
|
PillGroup.displayName = "@optiaxiom/react/PillGroup";
|
|
@@ -1118,9 +3294,9 @@ const PillMenu = React.forwardRef(
|
|
|
1118
3294
|
const [optionIndexes, setOptionIndexes] = React.useState(
|
|
1119
3295
|
() => groupOptions(options)
|
|
1120
3296
|
);
|
|
1121
|
-
const value = options.filter((item) =>
|
|
3297
|
+
const value = options.filter((item) => Textarea.resolveItemProperty(item.selected));
|
|
1122
3298
|
return /* @__PURE__ */ jsxRuntime.jsx(PillMenuProvider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1123
|
-
|
|
3299
|
+
Textarea.Menu,
|
|
1124
3300
|
{
|
|
1125
3301
|
empty,
|
|
1126
3302
|
inputValue,
|
|
@@ -1149,7 +3325,7 @@ const PillMenu = React.forwardRef(
|
|
|
1149
3325
|
),
|
|
1150
3326
|
placeholder,
|
|
1151
3327
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1152
|
-
|
|
3328
|
+
Textarea.Box,
|
|
1153
3329
|
{
|
|
1154
3330
|
alignItems: value.length ? void 0 : "start",
|
|
1155
3331
|
display: "flex",
|
|
@@ -1168,15 +3344,15 @@ const groupOptions = (options) => options.map((option, index) => ({
|
|
|
1168
3344
|
index,
|
|
1169
3345
|
option
|
|
1170
3346
|
})).sort(({ index: aIndex, option: a }, { index: bIndex, option: b }) => {
|
|
1171
|
-
if (
|
|
3347
|
+
if (Textarea.resolveItemProperty(a.selected) === Textarea.resolveItemProperty(b.selected)) {
|
|
1172
3348
|
return aIndex - bIndex;
|
|
1173
|
-
} else if (
|
|
3349
|
+
} else if (Textarea.resolveItemProperty(a.selected)) {
|
|
1174
3350
|
return -1;
|
|
1175
3351
|
} else {
|
|
1176
3352
|
return 1;
|
|
1177
3353
|
}
|
|
1178
3354
|
}).map(({ index, option }) => ({
|
|
1179
|
-
group:
|
|
3355
|
+
group: Textarea.resolveItemProperty(option.selected) ? "selected" : void 0,
|
|
1180
3356
|
index
|
|
1181
3357
|
}));
|
|
1182
3358
|
|
|
@@ -1184,7 +3360,7 @@ const PillMenuContent = React.forwardRef(
|
|
|
1184
3360
|
(props, ref) => {
|
|
1185
3361
|
const lastFocusRef = React.useRef();
|
|
1186
3362
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1187
|
-
|
|
3363
|
+
Textarea.MenuContent,
|
|
1188
3364
|
{
|
|
1189
3365
|
onCloseAutoFocus: (event) => {
|
|
1190
3366
|
if (lastFocusRef.current instanceof HTMLElement && lastFocusRef.current !== document.body && document.body.contains(lastFocusRef.current)) {
|
|
@@ -1204,7 +3380,7 @@ const PillMenuContent = React.forwardRef(
|
|
|
1204
3380
|
);
|
|
1205
3381
|
PillMenuContent.displayName = "@optiaxiom/react/PillMenuContent";
|
|
1206
3382
|
|
|
1207
|
-
const IconPlus =
|
|
3383
|
+
const IconPlus = Textarea.withIcon(
|
|
1208
3384
|
{
|
|
1209
3385
|
name: "IconPlus"
|
|
1210
3386
|
},
|
|
@@ -1222,9 +3398,9 @@ const [RovingFocusProvider, useRovingFocusContext] = reactContext.createContext(
|
|
|
1222
3398
|
const Slot$1 = reactSlot.createSlot("@optiaxiom/react/RovingFocus");
|
|
1223
3399
|
const RovingFocus = React.forwardRef(
|
|
1224
3400
|
({ asChild, children, disabled, loop, orientation, ...props }, ref) => {
|
|
1225
|
-
const FocusComp = disabled ?
|
|
3401
|
+
const FocusComp = disabled ? Textarea.Box : RadixRovingFocus__namespace.Root;
|
|
1226
3402
|
const Comp = asChild ? Slot$1 : "div";
|
|
1227
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RovingFocusProvider, { disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3403
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RovingFocusProvider, { disabled, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(FocusComp, { asChild: true, ...!disabled && { loop, orientation }, children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { children }) }) }) });
|
|
1228
3404
|
}
|
|
1229
3405
|
);
|
|
1230
3406
|
RovingFocus.displayName = "@optiaxiom/react/RovingFocus";
|
|
@@ -1235,9 +3411,9 @@ const RovingFocusItem = React.forwardRef(
|
|
|
1235
3411
|
const { disabled } = useRovingFocusContext(
|
|
1236
3412
|
"@optiaxiom/react/RovingFocusItem"
|
|
1237
3413
|
);
|
|
1238
|
-
const FocusComp = disabled ?
|
|
3414
|
+
const FocusComp = disabled ? Textarea.Box : RadixRovingFocus__namespace.Item;
|
|
1239
3415
|
const Comp = asChild ? Slot : "div";
|
|
1240
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3416
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(FocusComp, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { children }) }) });
|
|
1241
3417
|
}
|
|
1242
3418
|
);
|
|
1243
3419
|
RovingFocusItem.displayName = "@optiaxiom/react/RovingFocusItem";
|
|
@@ -1247,11 +3423,11 @@ const PillMenuPill = React.forwardRef(
|
|
|
1247
3423
|
const { value: options } = usePillMenuContext(
|
|
1248
3424
|
"@optiaxiom/react/PillMenuPill"
|
|
1249
3425
|
);
|
|
1250
|
-
const { open, setOpen } =
|
|
1251
|
-
const { inputValue } =
|
|
3426
|
+
const { open, setOpen } = Textarea.useMenuContext("@optiaxiom/react/PillMenuPill");
|
|
3427
|
+
const { inputValue } = Textarea.useCommandContext("@optiaxiom/react/PillMenuPill");
|
|
1252
3428
|
const index = options.indexOf(item);
|
|
1253
3429
|
const hasInteractedInsideRef = React.useRef(false);
|
|
1254
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3430
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Tooltip, { content: Textarea.resolveItemProperty(item.disabledReason), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1255
3431
|
Pill,
|
|
1256
3432
|
{
|
|
1257
3433
|
onClick: () => {
|
|
@@ -1263,7 +3439,7 @@ const PillMenuPill = React.forwardRef(
|
|
|
1263
3439
|
},
|
|
1264
3440
|
onKeyDown: (event) => {
|
|
1265
3441
|
if (event.key === "Backspace") {
|
|
1266
|
-
if (
|
|
3442
|
+
if (Textarea.resolveItemProperty(item.disabledReason)) {
|
|
1267
3443
|
return;
|
|
1268
3444
|
}
|
|
1269
3445
|
if (index === 0 || index !== options.length - 1) {
|
|
@@ -1281,16 +3457,16 @@ const PillMenuPill = React.forwardRef(
|
|
|
1281
3457
|
readOnly,
|
|
1282
3458
|
ref,
|
|
1283
3459
|
...props,
|
|
1284
|
-
children:
|
|
3460
|
+
children: Textarea.resolveItemProperty(item.label, { inputValue })
|
|
1285
3461
|
}
|
|
1286
3462
|
) });
|
|
1287
3463
|
}
|
|
1288
3464
|
);
|
|
1289
3465
|
PillMenuPill.displayName = "@optiaxiom/react/PillMenuPill";
|
|
1290
3466
|
|
|
1291
|
-
var root
|
|
1292
|
-
var trigger =
|
|
1293
|
-
var wrapper =
|
|
3467
|
+
var root = Textarea.recipeRuntime({base:[{border:'1',rounded:'md',transition:'colors'},'_1rwwsz2'],variants:{size:{md:'q079qv',lg:'_1ikepgs'}}});
|
|
3468
|
+
var trigger = Textarea.recipeRuntime({base:[{display:'grid',placeItems:'center',rounded:'md'},'_102x3ex']});
|
|
3469
|
+
var wrapper = Textarea.recipeRuntime({base:'_4un4n9'});
|
|
1294
3470
|
|
|
1295
3471
|
const remapSize = {
|
|
1296
3472
|
md: "xs",
|
|
@@ -1299,15 +3475,15 @@ const remapSize = {
|
|
|
1299
3475
|
const PillMenuTrigger = React.forwardRef(
|
|
1300
3476
|
({ children, className, readOnly, size = "md", ...props }, outerRef) => {
|
|
1301
3477
|
const { value } = usePillMenuContext("@optiaxiom/react/PillMenuTrigger");
|
|
1302
|
-
const { size: menuSize } =
|
|
3478
|
+
const { size: menuSize } = Textarea.useMenuContext(
|
|
1303
3479
|
"@optiaxiom/react/PillMenuTrigger"
|
|
1304
3480
|
);
|
|
1305
|
-
const { inputValue } =
|
|
3481
|
+
const { inputValue } = Textarea.useCommandContext(
|
|
1306
3482
|
"@optiaxiom/react/PillMenuTrigger"
|
|
1307
3483
|
);
|
|
1308
3484
|
const innerRef = React.useRef(null);
|
|
1309
3485
|
const ref = reactComposeRefs.useComposedRefs(innerRef, outerRef);
|
|
1310
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3486
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Textarea.Box, { ...wrapper(), children: [
|
|
1311
3487
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1312
3488
|
PillGroup,
|
|
1313
3489
|
{
|
|
@@ -1315,7 +3491,7 @@ const PillMenuTrigger = React.forwardRef(
|
|
|
1315
3491
|
"data-readonly": readOnly,
|
|
1316
3492
|
ref,
|
|
1317
3493
|
role: "toolbar",
|
|
1318
|
-
...root
|
|
3494
|
+
...root({ size }, className),
|
|
1319
3495
|
...props,
|
|
1320
3496
|
children: /* @__PURE__ */ jsxRuntime.jsxs(RovingFocus, { disabled: readOnly, loop: true, orientation: "horizontal", children: [
|
|
1321
3497
|
value.slice(0, -1).map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1331,7 +3507,7 @@ const PillMenuTrigger = React.forwardRef(
|
|
|
1331
3507
|
}
|
|
1332
3508
|
)
|
|
1333
3509
|
},
|
|
1334
|
-
item.key ??
|
|
3510
|
+
item.key ?? Textarea.resolveItemProperty(item.label, { inputValue })
|
|
1335
3511
|
)),
|
|
1336
3512
|
/* @__PURE__ */ jsxRuntime.jsxs(PillGroup, { children: [
|
|
1337
3513
|
value.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(RovingFocusItem, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1343,7 +3519,7 @@ const PillMenuTrigger = React.forwardRef(
|
|
|
1343
3519
|
}
|
|
1344
3520
|
) }, "pill"),
|
|
1345
3521
|
!readOnly && /* @__PURE__ */ jsxRuntime.jsx(RovingFocusItem, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1346
|
-
|
|
3522
|
+
Textarea.MenuTrigger,
|
|
1347
3523
|
{
|
|
1348
3524
|
"aria-label": props["aria-label"] ?? (typeof children === "string" ? children : void 0),
|
|
1349
3525
|
asChild: true,
|
|
@@ -1354,7 +3530,7 @@ const PillMenuTrigger = React.forwardRef(
|
|
|
1354
3530
|
if (event.key === "Backspace") {
|
|
1355
3531
|
if (value.length) {
|
|
1356
3532
|
const last = value.length - 1;
|
|
1357
|
-
if (!
|
|
3533
|
+
if (!Textarea.resolveItemProperty(value[last].disabledReason)) {
|
|
1358
3534
|
value[last].execute?.({
|
|
1359
3535
|
dismiss: false,
|
|
1360
3536
|
inputValue
|
|
@@ -1363,186 +3539,19 @@ const PillMenuTrigger = React.forwardRef(
|
|
|
1363
3539
|
}
|
|
1364
3540
|
}
|
|
1365
3541
|
},
|
|
1366
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3542
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Cover, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { asChild: true, size: remapSize[size], ...trigger(), children: /* @__PURE__ */ jsxRuntime.jsx("button", { children: /* @__PURE__ */ jsxRuntime.jsx(IconPlus, {}) }) }) })
|
|
1367
3543
|
}
|
|
1368
3544
|
) }, "trigger")
|
|
1369
3545
|
] })
|
|
1370
3546
|
] })
|
|
1371
3547
|
}
|
|
1372
3548
|
),
|
|
1373
|
-
menuSize === "sm" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3549
|
+
menuSize === "sm" && /* @__PURE__ */ jsxRuntime.jsx(Textarea.PopoverAnchor, { staticRef: innerRef })
|
|
1374
3550
|
] });
|
|
1375
3551
|
}
|
|
1376
3552
|
);
|
|
1377
3553
|
PillMenuTrigger.displayName = "@optiaxiom/react/PillMenuTrigger";
|
|
1378
3554
|
|
|
1379
|
-
var control = Calendar.recipeRuntime({base:[{bg:'transparent'},'eef2es']});
|
|
1380
|
-
var fillValue = 'var(--pivkq6)';
|
|
1381
|
-
var mark = Calendar.recipeRuntime({base:[{transition:'colors'},'sn9b9y'],variants:{active:{false:{color:'fg.secondary'},true:{}}}});
|
|
1382
|
-
var markValue = 'var(--_14mc13)';
|
|
1383
|
-
var range = Calendar.recipeRuntime({base:[{h:'full',rounded:'inherit'},'_1f4afsd']});
|
|
1384
|
-
var root = Calendar.recipeRuntime({base:['_99ntn3',{alignItems:'center',color:'fg.default',display:'flex',fontSize:'md',w:'full'},'trdwzb'],variants:{marks:{false:{},true:{mb:'24'}},size:{md:{h:'md'},lg:{h:'lg'}}}});
|
|
1385
|
-
var thumb = Calendar.recipeRuntime({base:[{border:'1',rounded:'full',shadow:'sm',size:'xs'},'tuutio']});
|
|
1386
|
-
var track = Calendar.recipeRuntime({base:[{display:'flex',flex:'1',rounded:'full'},'g588je']});
|
|
1387
|
-
|
|
1388
|
-
const useTooltipState = () => {
|
|
1389
|
-
const [tooltipOpen, setTooltipOpen] = React.useState(false);
|
|
1390
|
-
const timerRef = React.useRef();
|
|
1391
|
-
return [
|
|
1392
|
-
tooltipOpen,
|
|
1393
|
-
(flag, delayed = false) => {
|
|
1394
|
-
if (delayed) {
|
|
1395
|
-
window.clearTimeout(timerRef.current);
|
|
1396
|
-
timerRef.current = window.setTimeout(() => {
|
|
1397
|
-
setTooltipOpen(flag);
|
|
1398
|
-
}, 50);
|
|
1399
|
-
} else {
|
|
1400
|
-
window.clearTimeout(timerRef.current);
|
|
1401
|
-
setTooltipOpen(flag);
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
];
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
const Range = React.forwardRef(
|
|
1408
|
-
({
|
|
1409
|
-
className,
|
|
1410
|
-
defaultValue = 0,
|
|
1411
|
-
disabled,
|
|
1412
|
-
getLabel = (value) => value,
|
|
1413
|
-
marks,
|
|
1414
|
-
max = 100,
|
|
1415
|
-
min = 0,
|
|
1416
|
-
onChange,
|
|
1417
|
-
onValueChange,
|
|
1418
|
-
showTooltip = false,
|
|
1419
|
-
size = "md",
|
|
1420
|
-
step = 1,
|
|
1421
|
-
value: valueProp,
|
|
1422
|
-
...props
|
|
1423
|
-
}, ref) => {
|
|
1424
|
-
const { boxProps, restProps } = Calendar.extractBoxProps(props);
|
|
1425
|
-
const { descriptionId, error, errorId, inputId } = Calendar.useFieldContext(
|
|
1426
|
-
"@optiaxiom/react/Range"
|
|
1427
|
-
);
|
|
1428
|
-
const [value, setValue] = reactUseControllableState.useControllableState({
|
|
1429
|
-
caller: "@optiaxiom/react/Range",
|
|
1430
|
-
defaultProp: defaultValue,
|
|
1431
|
-
onChange: onValueChange,
|
|
1432
|
-
prop: valueProp
|
|
1433
|
-
});
|
|
1434
|
-
const fillValue$1 = `${(value - min) / (max - min)}`;
|
|
1435
|
-
const [tooltipOpen, setTooltipOpen] = useTooltipState();
|
|
1436
|
-
const isPointerInsideRef = React.useRef(false);
|
|
1437
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1438
|
-
Calendar.Box,
|
|
1439
|
-
{
|
|
1440
|
-
"data-disabled": disabled ? "" : void 0,
|
|
1441
|
-
...root({ marks: !!marks, size }, className),
|
|
1442
|
-
...boxProps,
|
|
1443
|
-
children: [
|
|
1444
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1445
|
-
Calendar.Box,
|
|
1446
|
-
{
|
|
1447
|
-
style: dynamic.assignInlineVars({
|
|
1448
|
-
[fillValue]: fillValue$1
|
|
1449
|
-
}),
|
|
1450
|
-
...track(),
|
|
1451
|
-
children: [
|
|
1452
|
-
/* @__PURE__ */ jsxRuntime.jsx(Calendar.Box, { ...range() }),
|
|
1453
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1454
|
-
Calendar.Tooltip,
|
|
1455
|
-
{
|
|
1456
|
-
content: getLabel(value),
|
|
1457
|
-
disabled: disabled || !showTooltip,
|
|
1458
|
-
disableHoverableContent: true,
|
|
1459
|
-
open: tooltipOpen,
|
|
1460
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Calendar.Box, { ...thumb() })
|
|
1461
|
-
}
|
|
1462
|
-
),
|
|
1463
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1464
|
-
Calendar.Box,
|
|
1465
|
-
{
|
|
1466
|
-
"aria-describedby": errorId || descriptionId ? clsx(errorId, descriptionId) : void 0,
|
|
1467
|
-
"aria-disabled": disabled,
|
|
1468
|
-
"aria-invalid": error ? true : void 0,
|
|
1469
|
-
asChild: true,
|
|
1470
|
-
id: inputId,
|
|
1471
|
-
ref,
|
|
1472
|
-
...control(),
|
|
1473
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1474
|
-
"input",
|
|
1475
|
-
{
|
|
1476
|
-
disabled,
|
|
1477
|
-
max,
|
|
1478
|
-
min,
|
|
1479
|
-
onBlur: () => {
|
|
1480
|
-
if (isPointerInsideRef.current) {
|
|
1481
|
-
return;
|
|
1482
|
-
}
|
|
1483
|
-
setTooltipOpen(false);
|
|
1484
|
-
},
|
|
1485
|
-
onChange: (event) => {
|
|
1486
|
-
setValue(Number(event.currentTarget.value));
|
|
1487
|
-
onChange?.(event);
|
|
1488
|
-
},
|
|
1489
|
-
onFocus: (event) => {
|
|
1490
|
-
if (event.currentTarget.matches(":focus-visible")) {
|
|
1491
|
-
setTooltipOpen(true);
|
|
1492
|
-
}
|
|
1493
|
-
},
|
|
1494
|
-
onKeyDown: () => {
|
|
1495
|
-
setTooltipOpen(true);
|
|
1496
|
-
},
|
|
1497
|
-
onPointerLeave: (event) => {
|
|
1498
|
-
isPointerInsideRef.current = false;
|
|
1499
|
-
if (!event.currentTarget.matches(":focus-visible")) {
|
|
1500
|
-
setTooltipOpen(false);
|
|
1501
|
-
}
|
|
1502
|
-
},
|
|
1503
|
-
onPointerMove: () => {
|
|
1504
|
-
isPointerInsideRef.current = true;
|
|
1505
|
-
setTooltipOpen(true, true);
|
|
1506
|
-
},
|
|
1507
|
-
step,
|
|
1508
|
-
type: "range",
|
|
1509
|
-
value,
|
|
1510
|
-
...restProps
|
|
1511
|
-
}
|
|
1512
|
-
)
|
|
1513
|
-
}
|
|
1514
|
-
)
|
|
1515
|
-
]
|
|
1516
|
-
}
|
|
1517
|
-
),
|
|
1518
|
-
marks?.map(
|
|
1519
|
-
(mark) => typeof mark === "number" ? {
|
|
1520
|
-
label: getLabel(mark),
|
|
1521
|
-
value: mark
|
|
1522
|
-
} : mark
|
|
1523
|
-
).map((mark$1) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1524
|
-
Calendar.Box,
|
|
1525
|
-
{
|
|
1526
|
-
onClick: () => {
|
|
1527
|
-
if (!disabled) {
|
|
1528
|
-
setValue(mark$1.value);
|
|
1529
|
-
}
|
|
1530
|
-
},
|
|
1531
|
-
style: dynamic.assignInlineVars({
|
|
1532
|
-
[markValue]: `${(mark$1.value - min) / (max - min)}`
|
|
1533
|
-
}),
|
|
1534
|
-
...mark({ active: value >= mark$1.value }),
|
|
1535
|
-
children: mark$1.label
|
|
1536
|
-
},
|
|
1537
|
-
mark$1.value
|
|
1538
|
-
))
|
|
1539
|
-
]
|
|
1540
|
-
}
|
|
1541
|
-
);
|
|
1542
|
-
}
|
|
1543
|
-
);
|
|
1544
|
-
Range.displayName = "@optiaxiom/react/Range";
|
|
1545
|
-
|
|
1546
3555
|
const [SortableProvider, useSortableContext] = reactContext.createContext("@optiaxiom/react/Sortable");
|
|
1547
3556
|
|
|
1548
3557
|
const Sortable = React.forwardRef(
|
|
@@ -1577,7 +3586,7 @@ const Sortable = React.forwardRef(
|
|
|
1577
3586
|
onDragStart: () => {
|
|
1578
3587
|
setItemsState(itemsProp ?? []);
|
|
1579
3588
|
},
|
|
1580
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SortableProvider, { cacheRef, isSorting: itemsState !== null, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3589
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SortableProvider, { cacheRef, isSorting: itemsState !== null, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { flexDirection: "column", gap: "16", ...props, ref, children: children?.(items) }) })
|
|
1581
3590
|
}
|
|
1582
3591
|
);
|
|
1583
3592
|
}
|
|
@@ -1600,12 +3609,12 @@ const SortableGroup = React.forwardRef(
|
|
|
1600
3609
|
type: "group"
|
|
1601
3610
|
});
|
|
1602
3611
|
const ref = reactComposeRefs.useComposedRefs(innerRef, outerRef);
|
|
1603
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SortableGroupProvider, { id, setHasDropTarget, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3612
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SortableGroupProvider, { id, setHasDropTarget, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Group, { flexDirection: "column", gap: "16", ref, ...props, children: typeof children === "function" ? children(isDropTarget || hasDropTarget) : children }) });
|
|
1604
3613
|
}
|
|
1605
3614
|
);
|
|
1606
3615
|
SortableGroup.displayName = "@optiaxiom/react/SortableGroup";
|
|
1607
3616
|
|
|
1608
|
-
var handle =
|
|
3617
|
+
var handle = Textarea.recipeRuntime({base:'cnii56'});
|
|
1609
3618
|
|
|
1610
3619
|
const [SortableItemProvider, useSortableItemContext] = reactContext.createContext("@optiaxiom/react/SortableItem");
|
|
1611
3620
|
|
|
@@ -1616,7 +3625,7 @@ const SortableHandle = React.forwardRef(
|
|
|
1616
3625
|
);
|
|
1617
3626
|
const ref = reactComposeRefs.useComposedRefs(handleRef, outerRef);
|
|
1618
3627
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1619
|
-
|
|
3628
|
+
Textarea.Box,
|
|
1620
3629
|
{
|
|
1621
3630
|
"aria-label": "draggable",
|
|
1622
3631
|
"data-state": isDragging ? "active" : void 0,
|
|
@@ -1630,7 +3639,7 @@ const SortableHandle = React.forwardRef(
|
|
|
1630
3639
|
);
|
|
1631
3640
|
SortableHandle.displayName = "@optiaxiom/react/SortableHandle";
|
|
1632
3641
|
|
|
1633
|
-
var item =
|
|
3642
|
+
var item = Textarea.recipeRuntime({base:'_1iam9n',variants:{handle:{false:{},true:'_12hb8wf'}}});
|
|
1634
3643
|
|
|
1635
3644
|
const SortableItem = React.forwardRef(
|
|
1636
3645
|
({ children, className, index, item: id, ...props }, outerRef) => {
|
|
@@ -1666,7 +3675,7 @@ const SortableItem = React.forwardRef(
|
|
|
1666
3675
|
cacheRef.current.set(id, children);
|
|
1667
3676
|
}
|
|
1668
3677
|
return /* @__PURE__ */ jsxRuntime.jsx(SortableItemProvider, { handleRef, isDragging, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1669
|
-
|
|
3678
|
+
Textarea.Box,
|
|
1670
3679
|
{
|
|
1671
3680
|
"data-sortable-dragging": isDragging ? "" : void 0,
|
|
1672
3681
|
ref,
|
|
@@ -1680,34 +3689,35 @@ const SortableItem = React.forwardRef(
|
|
|
1680
3689
|
SortableItem.displayName = "@optiaxiom/react/SortableItem";
|
|
1681
3690
|
|
|
1682
3691
|
function Spotlight({ children, ...props }) {
|
|
1683
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3692
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.Menu, { inputVisible: "always", size: "lg", ...props, children });
|
|
1684
3693
|
}
|
|
1685
3694
|
Spotlight.displayName = "@optiaxiom/react/Spotlight";
|
|
1686
3695
|
|
|
1687
3696
|
const SpotlightContent = React.forwardRef((props, ref) => {
|
|
1688
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3697
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.MenuContent, { "aria-label": "Quick search", ref, ...props });
|
|
1689
3698
|
});
|
|
1690
3699
|
SpotlightContent.displayName = "@optiaxiom/react/SpotlightContent";
|
|
1691
3700
|
|
|
1692
3701
|
const DEFAULT_HOTKEY = "mod+K";
|
|
1693
3702
|
const SpotlightTrigger = React.forwardRef(({ children, ...props }, ref) => {
|
|
1694
|
-
const { open, setOpen } =
|
|
3703
|
+
const { open, setOpen } = Textarea.useMenuContext("@optiaxiom/react/SpotlightTrigger");
|
|
1695
3704
|
useHotkeys([[DEFAULT_HOTKEY, () => setOpen(!open)]]);
|
|
1696
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3705
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Textarea.MenuTrigger, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Button, { icon: /* @__PURE__ */ jsxRuntime.jsx(Textarea.IconMagnifyingGlass, {}), children: /* @__PURE__ */ jsxRuntime.jsx(Textarea.Box, { color: "fg.tertiary", children }) }) });
|
|
1697
3706
|
});
|
|
1698
3707
|
SpotlightTrigger.displayName = "@optiaxiom/react/SpotlightTrigger";
|
|
1699
3708
|
|
|
1700
|
-
exports.Calendar =
|
|
1701
|
-
exports.DataTableHeaderCell =
|
|
1702
|
-
exports.SuggestionAlert =
|
|
1703
|
-
exports.SuggestionPopover =
|
|
1704
|
-
exports.createDialogKit =
|
|
1705
|
-
exports.dialogkit =
|
|
1706
|
-
exports.useSurface =
|
|
3709
|
+
exports.Calendar = Textarea.Calendar;
|
|
3710
|
+
exports.DataTableHeaderCell = Textarea.DataTableHeaderCell;
|
|
3711
|
+
exports.SuggestionAlert = Textarea.SuggestionAlert;
|
|
3712
|
+
exports.SuggestionPopover = Textarea.SuggestionPopover;
|
|
3713
|
+
exports.createDialogKit = Textarea.createDialogKit;
|
|
3714
|
+
exports.dialogkit = Textarea.dialogkit;
|
|
3715
|
+
exports.useSurface = Textarea.useSurface;
|
|
1707
3716
|
Object.defineProperty(exports, "SurfaceProvider", {
|
|
1708
3717
|
enumerable: true,
|
|
1709
3718
|
get: function () { return globals.unstable_SurfaceProvider; }
|
|
1710
3719
|
});
|
|
3720
|
+
exports.BlockDocumentRenderer = BlockDocumentRenderer;
|
|
1711
3721
|
exports.DataTableExpandableCell = DataTableExpandableCell;
|
|
1712
3722
|
exports.DataTableExpandableHeader = DataTableExpandableHeader;
|
|
1713
3723
|
exports.DetailsPanel = DetailsPanel;
|