@povio/ui 4.0.3 → 5.0.0-rc.10
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/.rulesync/rules/ui-buttons-and-content.md +56 -0
- package/.rulesync/rules/ui-inputs-and-forms.md +62 -0
- package/.rulesync/rules/ui-overlays-navigation-and-styling.md +49 -0
- package/.rulesync/rules/ui-overview.md +33 -0
- package/README.md +128 -10
- package/dist/{Accordion-CB1F5YAY.js → Accordion-BzwO4_ml.js} +22 -140
- package/dist/{Alert-BALBsBrP.js → Alert-CnvEb1D_.js} +34 -30
- package/dist/{Alert-CbEhRaU5.d.ts → Alert-DfiJbKH0.d.ts} +4 -3
- package/dist/{AlertDialog-PjYM6lDo.d.ts → AlertDialog-OWTbR4km.d.ts} +3 -3
- package/dist/AppCanvasPage-BEER5hHp.js +2421 -0
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +80 -0
- package/dist/{Autocomplete-DE2lQi5o.d.ts → Autocomplete-C6RRxImn.d.ts} +1 -1
- package/dist/{Badge-CjPpYa50.d.ts → Badge-CBNpj823.d.ts} +8 -6
- package/dist/BadgeButton-Ccgt3oGO.d.ts +15 -0
- package/dist/{BottomSheet-CVTF1wQe.js → BottomSheet-BXLE3161.js} +15 -14
- package/dist/{BottomSheet-CT0zuola.d.ts → BottomSheet-DbQuzfAB.d.ts} +1 -1
- package/dist/{BottomSheet.lazy-7AwnB4vS.d.ts → BottomSheet.lazy-D9LCEo7s.d.ts} +1 -1
- package/dist/{Breadcrumbs-D-3YEuem.d.ts → Breadcrumbs-CUV6CU8Q.d.ts} +1 -1
- package/dist/{Breadcrumbs-C-mZtdCc.js → Breadcrumbs-FF8hMfXd.js} +26 -42
- package/dist/Button-C5rv4Cr2.js +506 -0
- package/dist/{Button-DTNjsGx5.d.ts → Button-D-4qb0IR.d.ts} +3 -3
- package/dist/{ButtonContent-CohuJJzG.js → ButtonContent-c7lJayVQ.js} +12 -10
- package/dist/{Calendar-BYcN64W5.js → Calendar-DRHruqr_.js} +28 -20
- package/dist/{CheckContent-DzWpxKGq.js → CheckContent-D7sZPmzx.js} +4 -5
- package/dist/{Checkbox-DBV_Nxtq.js → Checkbox-D3f2Plbc.js} +6 -6
- package/dist/{Checkbox-CBybJbLm.d.ts → Checkbox-x2MuL477.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-DJue5Aej.js → CheckboxCheckmark-FwKjPVbV.js} +34 -55
- package/dist/{CheckboxGroup-4xoWgmxr.d.ts → CheckboxGroup-Dio2rvF5.d.ts} +3 -3
- package/dist/ComponentGallery-CMFrbwEN.js +3513 -0
- package/dist/{DatePicker-CjmXaZ9T.d.ts → DatePicker-1LJ2LqST.d.ts} +3 -3
- package/dist/{DatePicker-DGlMtlvy.js → DatePicker-xDEqzNJv.js} +12 -11
- package/dist/{DatePickerInput-Nj_rVUyU.js → DatePickerInput-B0fEeCOf.js} +27 -40
- package/dist/{DatePickerInput-CdCtVE9z.d.ts → DatePickerInput-ai4apf8B.d.ts} +3 -3
- package/dist/{DateRangePicker-D1kjkFfS.d.ts → DateRangePicker-Dfptit_Z.d.ts} +3 -3
- package/dist/{DateRangePicker-CE9XvAy9.js → DateRangePicker-DxuVhRaf.js} +25 -22
- package/dist/{DateTimePicker-CtUPjVp1.js → DateTimePicker-4N1Pka07.js} +11 -10
- package/dist/{DateTimePicker-CT_Pm3KB.d.ts → DateTimePicker-DpsfukpQ.d.ts} +3 -3
- package/dist/{Dialog-BE9BSDDl.js → Dialog-9manOgMA.js} +4 -4
- package/dist/{Dialog-CXoVeIkU.js → Dialog-CKLkS00H.js} +10 -2
- package/dist/{Dialog-DEbI_9S-.d.ts → Dialog-CW93T9X1.d.ts} +3 -2
- package/dist/{DropdownMenu-tuf1W-IL.js → DropdownMenu-5jmtgLXd.js} +8 -6
- package/dist/{DropdownMenu-CZQRzOBb.d.ts → DropdownMenu-JNpYT4-3.d.ts} +4 -3
- package/dist/{DropdownMenuDesktop-C9ttysuk.js → DropdownMenuDesktop-Cl9gZVq0.js} +9 -38
- package/dist/{FileInput-BUs7wL0_.js → FileInput-DUyc_sVu.js} +20 -22
- package/dist/{FileInput-CI8D_wf_.d.ts → FileInput-Dt3UDg2s.d.ts} +7 -6
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-BrnJdN3M.d.ts → FileUpload-BXlKtQ4L.d.ts} +1 -1
- package/dist/{FileUpload-C3HzeFeb.js → FileUpload-Cx98L1jz.js} +76 -173
- package/dist/{FileUploadContainer-CkBENy6n.d.ts → FileUploadContainer-BURZAS2M.d.ts} +1 -1
- package/dist/{Form-mzpVGNjX.d.ts → Form-DmcByQts.d.ts} +1 -1
- package/dist/{FormField-DTO2cbXC.js → FormField-9h3JAhaY.js} +40 -38
- package/dist/{FormField-DTDj3F0A.d.ts → FormField-C8_T6by9.d.ts} +1 -1
- package/dist/{FormFieldError-CFg0Wn3i.js → FormFieldError-DeOHHLo2.js} +3 -3
- package/dist/FormFieldHeaderTooltip-BV2Ju4oB.js +17 -0
- package/dist/{IconButton-CYazzM7I.d.ts → IconButton-D4thBurp.d.ts} +2 -2
- package/dist/IconSlot-DSK7qNxc.js +79 -0
- package/dist/{InlineIconButton-Rp5bXWcQ.d.ts → InlineIconButton-BeJCjl-q.d.ts} +2 -2
- package/dist/{InlineTooltipWrapper-Ct6zi24f.js → InlineTooltipWrapper-BpApaGXV.js} +3 -3
- package/dist/{Input-DSHFNEVl.d.ts → Input-CHD67H4o.d.ts} +3 -3
- package/dist/{InputContent-CvWm6GAv.d.ts → InputContent-B6CIQNnE.d.ts} +3 -3
- package/dist/{InputItem-DAunP0iy.js → InputItem-Cv19Hwnx.js} +11 -11
- package/dist/{Inputs-CHEDcuP0.d.ts → Inputs-C0sUmuPv.d.ts} +1 -1
- package/dist/{Inputs-_IqA6JRE.js → Inputs-D1aE_J9f.js} +1 -1
- package/dist/{Link-DS9-0Ijl.d.ts → Link-Ow9H7kNv.d.ts} +3 -2
- package/dist/{ListBox-B7DW1S7n.js → ListBox-CL8Ar4Q_.js} +5 -4
- package/dist/{MenuItem-CROWrE2A.d.ts → MenuItem-DHyqOqln.d.ts} +1 -1
- package/dist/{Modal-CoFt5PGP.js → Modal-w60dVQcb.js} +1 -1
- package/dist/{NumberField-BICDQ2gN.d.ts → NumberField-4SX3R6IR.d.ts} +3 -3
- package/dist/{NumberRangeInput-Bu-3Y0zf.js → NumberRangeInput-Bzfe-RlV.js} +8 -8
- package/dist/{NumberRangeInput-BlGXChNR.d.ts → NumberRangeInput-CKmLfgVD.d.ts} +2 -2
- package/dist/{Pagination-CumQED8X.d.ts → Pagination-CwQu5Py8.d.ts} +1 -1
- package/dist/{PaginationList-D79ApWLm.d.ts → PaginationList-DMRUGtf8.d.ts} +2 -2
- package/dist/{PaginationList-CmOJo2r2.js → PaginationList-DtvuP63b.js} +13 -21
- package/dist/{PasswordInput-BdrYD1D3.d.ts → PasswordInput-tLGcHS6H.d.ts} +1 -1
- package/dist/{Popover-C0_-TLl_.d.ts → Popover-BTHPteIh.d.ts} +2 -2
- package/dist/{Progress-_jkt2pQw.js → Progress-B3mY9rIP.js} +6 -7
- package/dist/{Progress-CYfDXJKs.d.ts → Progress-CjWOR38H.d.ts} +3 -2
- package/dist/{QuerySelect-Bpz-qI9h.d.ts → QuerySelect-CgfnA3d-.d.ts} +2 -2
- package/dist/{RadioGroup-WHWosz7K.d.ts → RadioGroup-CvmI9i_U.d.ts} +3 -3
- package/dist/{RadioGroup-DiF7ILto.js → RadioGroup-efBKgTYA.js} +21 -24
- package/dist/{RichTextEditor-eM9d2umr.js → RichTextEditor-Bd7F5D8f.js} +68 -141
- package/dist/{RichTextEditor-CbgjRfiU.d.ts → RichTextEditor-CsDZcgyf.d.ts} +1 -1
- package/dist/{Select-CyBtGHk9.js → Select-CgIhoWgk.js} +10 -15
- package/dist/{Select-wzB2aQ_X.d.ts → Select-DKBPfNUe.d.ts} +1 -1
- package/dist/{SelectBase-DefgAEzh.d.ts → SelectBase-BkIhS9Dg.d.ts} +3 -3
- package/dist/{Slider-CZMNmk6P.d.ts → Slider-BtUXzztJ.d.ts} +1 -1
- package/dist/{Slider-KkWtEm09.js → Slider-CMg0BXJO.js} +12 -12
- package/dist/{Spinner-owSXOEzg.js → Spinner-BeVTUzzx.js} +2 -2
- package/dist/{Spinner-BOgO9bS6.d.ts → Spinner-DbXeDOa2.d.ts} +3 -2
- package/dist/{SplitButton-BPZbQeYC.d.ts → SplitButton-D9ngY1rJ.d.ts} +3 -3
- package/dist/{Stepper-BbO9TlOM.js → Stepper-Cp5vbL5g.js} +9 -125
- package/dist/{Stepper-PcHlxDD5.d.ts → Stepper-TATlHZhQ.d.ts} +13 -12
- package/dist/{Switch-Cylpjatb.js → Switch-CqnGEdeD.js} +17 -25
- package/dist/{Switch-C0S5Juhf.d.ts → Switch-s_EPn0Jz.d.ts} +1 -1
- package/dist/Table-BN2_J_Ne.js +636 -0
- package/dist/Tag-AHfV_XSf.d.ts +44 -0
- package/dist/Tag-DPg5sL1Z.js +146 -0
- package/dist/{TextArea-CBWJ7w-p.d.ts → TextArea-D6kcAwGn.d.ts} +2 -2
- package/dist/{TextArea-DvqDGp4M.js → TextArea-uPffb457.js} +9 -9
- package/dist/{TextButton-D7e_YBLe.d.ts → TextButton-XUhV_1s0.d.ts} +4 -4
- package/dist/{TimePicker-WirUMDrH.js → TimePicker-DN-i98z5.js} +12 -12
- package/dist/{TimePicker-BZ4WrI5Z.d.ts → TimePicker-Dex9aU7D.d.ts} +2 -2
- package/dist/Toast-DtG3pA61.js +53 -0
- package/dist/{Toast-DIlYlUQk.d.ts → Toast-ruXqONDA.d.ts} +1 -1
- package/dist/{ToastContainer-8X5jGBe7.js → ToastContainer-qgpzMFD4.js} +4 -3
- package/dist/{ToggleButton-D4y2fLmN.d.ts → ToggleButton-7aP8Jb11.d.ts} +2 -2
- package/dist/{ToggleGroup-D9CFdM5-.d.ts → ToggleGroup-CRFDIPGZ.d.ts} +1 -1
- package/dist/{ToggleGroup-BK6Ka7WA.js → ToggleGroup-DmVPNWok.js} +27 -55
- package/dist/{Tooltip--PSxkQA3.js → Tooltip-CpG1nz7Y.js} +7 -49
- package/dist/{Tooltip-B-2AxyjP.d.ts → Tooltip-DHv6vAqW.d.ts} +10 -9
- package/dist/{TooltipWrapper-BVc_Aln-.js → TooltipWrapper-CDHFaUKZ.js} +5 -5
- package/dist/{Typography-AcUd9df8.js → Typography-LU4z2pR1.js} +2 -2
- package/dist/{Typography-BWmZd20e.d.ts → Typography-XljT9s02.d.ts} +1 -1
- package/dist/UIConfigurator-CTlq-hrG.js +6704 -0
- package/dist/accordion.cva-CL1bVscW.js +129 -0
- package/dist/{autocomplete-CaQSVRrw.d.ts → autocomplete-B-JuxTYN.d.ts} +2 -2
- package/dist/badgeButton.cva-B2bgCQP6.d.ts +41 -0
- package/dist/badgeButton.cva-CvN4CTx5.js +300 -0
- package/dist/breadcrumbs.cva-7zzdDhVR.js +27 -0
- package/dist/{button.cva-ChabF4Am.d.ts → button.cva-C7kEhgoA.d.ts} +15 -32
- package/dist/{buttonContent.cva-CP857foM.d.ts → buttonContent.cva-DPIlROA9.d.ts} +2 -2
- package/dist/{checkbox-D8CPWRlM.d.ts → checkbox-CRP4QRfP.d.ts} +1 -1
- package/dist/{checkbox-group-BuPUA_Qj.d.ts → checkbox-group-BI_RwIJ4.d.ts} +1 -1
- package/dist/{checkbox.cva-DwnPS5df.d.ts → checkbox.cva-DBqfmYHY.d.ts} +6 -7
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +7 -7
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +6 -5
- package/dist/components/badge-button.d.ts +2 -0
- package/dist/components/{pill-button.js → badge-button.js} +13 -12
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +56 -40
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +6 -6
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +4 -4
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-slot.d.ts +2 -0
- package/dist/components/icon-slot.js +2 -0
- package/dist/components/inline-icon-button.d.ts +1 -1
- package/dist/components/inline-icon-button.js +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +7 -7
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +32 -1
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +7 -7
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.d.ts +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +36 -33
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +6 -5
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/query-autocomplete.d.ts +2 -2
- package/dist/components/query-autocomplete.js +10 -5
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +3 -3
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.d.ts +1 -1
- package/dist/components/text-button.js +1 -2
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/app-canvas-tanstack.d.ts +23 -0
- package/dist/config/app-canvas-tanstack.js +62 -0
- package/dist/config/app-canvas.d.ts +12 -0
- package/dist/config/app-canvas.js +2 -0
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-configurator-theme.d.ts +2 -0
- package/dist/config/ui-configurator-theme.js +2 -0
- package/dist/config/ui-configurator-vite.d.ts +10 -0
- package/dist/config/ui-configurator-vite.js +174 -0
- package/dist/config/ui-configurator.d.ts +15 -0
- package/dist/config/ui-configurator.js +3 -0
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/configuration.context-DP4p1cIe.d.ts +926 -0
- package/dist/{confirmation.context-fKfUTsLF.d.ts → confirmation.context-BOeEVczb.d.ts} +1 -1
- package/dist/{date-picker-MXt02b7Z.d.ts → date-picker-BhIA01qs.d.ts} +1 -1
- package/dist/{date-range-picker-BjT0t21q.d.ts → date-range-picker-BsuZ2h_3.d.ts} +1 -1
- package/dist/{date-time-picker-CMmIuZtT.d.ts → date-time-picker-Bi-qW6vO.d.ts} +1 -1
- package/dist/datePickerInput.cva-Cd7UUN61.js +14 -0
- package/dist/{datePickerValue.utils-1z4mwZZs.js → datePickerValue.utils-QWR2q5Vv.js} +9 -11
- package/dist/{dialog.cva-5qNq9YfM.js → dialog.cva-COhDZaVl.js} +4 -4
- package/dist/{dist-C6GfeeEC.js → dist-CAdwxJbe.js} +1 -256
- package/dist/{dom.utils-D3mELNBA.js → dom.utils-D1AopHx9.js} +1 -1
- package/dist/dropdownMenu.cva-DvEmX0bs.js +34 -0
- package/dist/{dynamicInputs-CQMTixlW.d.ts → dynamicInputs-DdcsSoYu.d.ts} +112 -111
- package/dist/{fieldAdapter-BYVPxvYi.js → fieldAdapter-DjYls12j.js} +1 -1
- package/dist/{file-input-D-46wS5j.d.ts → file-input-BTYsGgr7.d.ts} +1 -1
- package/dist/{file-upload-BG20Bhrn.d.ts → file-upload-CqGdt1Ue.d.ts} +2 -2
- package/dist/fileUpload.cva-ujmStxB1.js +42 -0
- package/dist/{fileUpload.types-xFzuCT_m.d.ts → fileUpload.types-rIGu4MgY.d.ts} +2 -2
- package/dist/iconSlot.cva-CnpFzAOR.d.ts +21 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +2 -1
- package/dist/index.d.ts +87 -86
- package/dist/index.js +55 -44
- package/dist/info-iUmX3uDk.js +32 -0
- package/dist/{input-CKGPYwfB.d.ts → input-CqNMORk8.d.ts} +1 -1
- package/dist/{input.cva-ByFuAEIS.d.ts → input.cva-CQPV5gW7.d.ts} +6 -9
- package/dist/input.cva-CbMTwuQU.js +227 -0
- package/dist/{link.context-C5ZgwVM5.d.ts → link.context-D5qyz9Rf.d.ts} +1 -1
- package/dist/link.cva-DMTHZiJG.js +12 -0
- package/dist/{number-field-CyP6XgJh.d.ts → number-field-BcMnahI8.d.ts} +1 -1
- package/dist/{number-range-input-DMmlk7Bl.d.ts → number-range-input-CLfuacKv.d.ts} +1 -1
- package/dist/{password-input-BWpfQe0G.d.ts → password-input-BV1Amdc8.d.ts} +1 -1
- package/dist/popover.cva-Bhud1wnp.js +5 -0
- package/dist/popoverAnimation-DEZSvKP8.js +4 -0
- package/dist/{query-autocomplete-DV8fEkK2.d.ts → query-autocomplete-CJSJeSXW.d.ts} +2 -2
- package/dist/{query-select-BZ3-5WTu.d.ts → query-select-B-VLz1PW.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-Dm8Ttx4v.d.ts → queryAutocomplete.types-D2w1_hau.d.ts} +2 -2
- package/dist/{radio-group-CmUtsjqP.d.ts → radio-group-DZZdQMub.d.ts} +1 -1
- package/dist/{radio.cva-DAq2M13H.d.ts → radio.cva-DN9VQ3Kb.d.ts} +4 -3
- package/dist/rhf/autocomplete.d.ts +2 -2
- package/dist/rhf/autocomplete.js +1 -1
- package/dist/rhf/checkbox-group.d.ts +2 -2
- package/dist/rhf/checkbox-group.js +1 -1
- package/dist/rhf/checkbox.d.ts +2 -2
- package/dist/rhf/checkbox.js +2 -2
- package/dist/rhf/date-picker.d.ts +2 -2
- package/dist/rhf/date-picker.js +2 -2
- package/dist/rhf/date-range-picker.d.ts +2 -2
- package/dist/rhf/date-range-picker.js +2 -2
- package/dist/rhf/date-time-picker.d.ts +2 -2
- package/dist/rhf/date-time-picker.js +2 -2
- package/dist/rhf/file-input.d.ts +2 -2
- package/dist/rhf/file-input.js +2 -2
- package/dist/rhf/file-upload.d.ts +2 -2
- package/dist/rhf/file-upload.js +2 -2
- package/dist/rhf/input.d.ts +2 -2
- package/dist/rhf/input.js +1 -1
- package/dist/rhf/inputs.d.ts +2 -2
- package/dist/rhf/number-field.d.ts +2 -2
- package/dist/rhf/number-field.js +1 -1
- package/dist/rhf/number-range-input.d.ts +2 -2
- package/dist/rhf/number-range-input.js +2 -2
- package/dist/rhf/password-input.d.ts +2 -2
- package/dist/rhf/password-input.js +1 -1
- package/dist/rhf/query-autocomplete.d.ts +1 -1
- package/dist/rhf/query-autocomplete.js +1 -1
- package/dist/rhf/query-select.d.ts +1 -1
- package/dist/rhf/query-select.js +1 -1
- package/dist/rhf/radio-group.d.ts +2 -2
- package/dist/rhf/radio-group.js +2 -2
- package/dist/rhf/rich-text-editor.d.ts +2 -2
- package/dist/rhf/rich-text-editor.js +2 -2
- package/dist/rhf/select.d.ts +2 -2
- package/dist/rhf/select.js +2 -2
- package/dist/rhf/slider.d.ts +2 -2
- package/dist/rhf/slider.js +2 -2
- package/dist/rhf/switch.d.ts +2 -2
- package/dist/rhf/switch.js +2 -2
- package/dist/rhf/text-area.d.ts +2 -2
- package/dist/rhf/text-area.js +2 -2
- package/dist/rhf/time-picker.d.ts +2 -2
- package/dist/rhf/time-picker.js +2 -2
- package/dist/rhf/toggle-group.d.ts +2 -2
- package/dist/rhf/toggle-group.js +2 -2
- package/dist/{rhf-1_ZO8GhU.js → rhf-t348TCCL.js} +1 -1
- package/dist/rhf.d.ts +87 -86
- package/dist/rhf.js +55 -44
- package/dist/{rich-text-editor-Db3XWWFo.d.ts → rich-text-editor-Cp5dYHQI.d.ts} +1 -1
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{select-DXGbGkZM.d.ts → select-FjDx5oe4.d.ts} +2 -2
- package/dist/selectDesktop.cva-CHAMxhfO.js +69 -0
- package/dist/{slider-JQh0ypfU.d.ts → slider-BVJiBswZ.d.ts} +1 -1
- package/dist/{staticDateTimeSegments-vP2f1woD.js → staticDateTimeSegments-BWea3HAt.js} +34 -33
- package/dist/{staticSelect.utils-DOt6f-ck.js → staticSelect.utils-BfTCi26B.js} +41 -92
- package/dist/stepper.cva-CZ0Kj-s7.js +116 -0
- package/dist/style-merge.util-zLimKwt6.d.ts +40 -0
- package/dist/styles/app-canvas.css +740 -0
- package/dist/styles/color-utilities.css +20 -0
- package/dist/styles/configurator.css +3280 -0
- package/dist/styles/editor.css +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/{switch-Lm3xl1rQ.d.ts → switch-C--iWnY8.d.ts} +1 -1
- package/dist/switch.cva-CWNzmdRc.d.ts +16 -0
- package/dist/table.cva-D5oQ-QvA.js +101 -0
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox-group.d.ts +1 -1
- package/dist/tanstack/checkbox.d.ts +1 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +2 -2
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +3 -3
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-field.d.ts +1 -1
- package/dist/tanstack/number-range-input.d.ts +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.d.ts +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.d.ts +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +1 -1
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +2 -1
- package/dist/tanstack/text-area.d.ts +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +2 -2
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.d.ts +71 -70
- package/dist/tanstack.js +66 -53
- package/dist/{text-area-I5MNcGp_.d.ts → text-area-DhSVRB6X.d.ts} +1 -1
- package/dist/theme-model-DtYPxNvH.js +406 -0
- package/dist/theme-model-T1zIdBg8.d.ts +12 -0
- package/dist/{time-picker-DdhW8GmD.d.ts → time-picker-DhnDKh97.d.ts} +1 -1
- package/dist/{toast.cva-LU7TGprV.d.ts → toast.cva-By5lvAfr.d.ts} +10 -9
- package/dist/toast.cva-C_L_RffH.js +163 -0
- package/dist/{toast.runtime-QMYrNvoQ.js → toast.runtime-cxex9e4E.js} +2 -1
- package/dist/{toggle-group-CPkKHm1t.d.ts → toggle-group-C1nMDOwz.d.ts} +1 -1
- package/dist/toggleGroup.cva-MbpaEBg1.js +35 -0
- package/dist/{toggleGroup.types-DD6uRI5G.d.ts → toggleGroup.types-Bp43zbSQ.d.ts} +2 -1
- package/dist/tooltip.cva-BIzlOXHH.js +48 -0
- package/dist/{tooltipWrapper.cva-CUu8pI-a.js → tooltipWrapper.cva-BBQ4ic3D.js} +1 -1
- package/dist/typography.cva-D1JOEYl-.d.ts +36 -0
- package/dist/typography.cva-iD15k56p.js +51 -0
- package/dist/{uiConfig.context-RFvaQYzD.js → uiConfig.context-BS3r_kTS.js} +12 -21
- package/dist/{uiConfig.context-CIoMqe1_.d.ts → uiConfig.context-BqKWd_MO.d.ts} +11 -12
- package/dist/{uiOverrides.context-Bfm2n-n8.js → uiOverrides.context-BTCH9y5a.js} +2 -2
- package/dist/{uiOverrides.context-C3xb4Ttq.d.ts → uiOverrides.context-DEp139He.d.ts} +11 -44
- package/dist/underline-66hmELxa.js +81 -0
- package/dist/upload-CXU83BJ4.js +30 -0
- package/dist/{useBreakpoint-3kpqzjoC.js → useBreakpoint-DQoMN-BG.js} +1 -1
- package/dist/{useFieldAccessibility-BTs_WC_5.js → useFieldAccessibility-B-bjtrNw.js} +18 -12
- package/dist/{useFormAutosave-BRlM0nmq.js → useFormAutosave-pmh35PXp.js} +2 -2
- package/dist/{useStaticInputHandoff-_stbpoX4.js → useStaticInputHandoff-B7DEm75m.js} +18 -16
- package/dist/useTableColumnConfig-6zn3zKl3.js +892 -0
- package/dist/{useTableNav-Tu8UZxHA.d.ts → useTableNav-Ckj5PBRk.d.ts} +9 -8
- package/dist/{useToast-NBGlVeFP.d.ts → useToast-yreVCUer.d.ts} +1 -1
- package/package.json +54 -6
- package/rulesync.jsonc +11 -0
- package/scripts/generate-rules.mjs +34 -0
- package/src/configurator/README.md +77 -0
- package/dist/Button-CcZBqoQp.js +0 -761
- package/dist/FormFieldHeaderTooltip-h6e5hq9V.js +0 -45
- package/dist/Link-C5YsZ4pr.js +0 -42
- package/dist/PillButton-CihEPQye.d.ts +0 -15
- package/dist/Tag-CgPeLVXM.d.ts +0 -44
- package/dist/Tag-DNuHvt6J.js +0 -148
- package/dist/components/pill-button.d.ts +0 -2
- package/dist/input.cva-KYGD4Bdz.js +0 -324
- package/dist/pillButton.cva-6tjADUQ6.js +0 -265
- package/dist/pillButton.cva-BVsxGnqF.d.ts +0 -36
- package/dist/popover.cva-CXha_UMQ.js +0 -5
- package/dist/switch.cva-BIioyegR.d.ts +0 -15
- package/dist/typography.cva-BI0FyIqm.js +0 -129
- package/dist/typography.cva-YaO6JLqU.d.ts +0 -51
- package/dist/useTableColumnConfig-CiAr7Dbi.js +0 -1627
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
+
import { t as X } from "./x-B6vfz8Ps.js";
|
|
3
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
6
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
7
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
8
|
+
import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
9
|
+
import "./i18n-CX2EjhJI.js";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
13
|
+
//#region src/components/text/Tag/tag.cva.ts
|
|
14
|
+
const tagDefinition = UIOverrides.defineConfig({
|
|
15
|
+
base: [
|
|
16
|
+
uiOutlineClass,
|
|
17
|
+
"inline-flex items-center gap-list-gap-icon-to-label",
|
|
18
|
+
"p-badge-height-s px-1.5",
|
|
19
|
+
"rounded-badge-rounding-default",
|
|
20
|
+
"overflow-hidden",
|
|
21
|
+
"disabled:cursor-default"
|
|
22
|
+
],
|
|
23
|
+
config: {
|
|
24
|
+
variants: { color: {
|
|
25
|
+
primary: [
|
|
26
|
+
"bg-interactive-subtle-primary-background text-interactive-subtle-primary-foreground",
|
|
27
|
+
"not-disabled:not-pressed:hover:bg-state-interactive-subtle-primary-background/hover not-disabled:not-pressed:hover:text-state-interactive-subtle-primary-foreground/hover",
|
|
28
|
+
"not-disabled:pressed:bg-state-interactive-subtle-primary-background/pressed not-disabled:pressed:text-state-interactive-subtle-primary-foreground/pressed",
|
|
29
|
+
"disabled:bg-state-interactive-subtle-primary-background/disabled disabled:text-state-interactive-subtle-primary-foreground/disabled",
|
|
30
|
+
"focus-visible:outline-interactive-ring"
|
|
31
|
+
],
|
|
32
|
+
secondary: [
|
|
33
|
+
"bg-interactive-subtle-secondary-background text-interactive-subtle-secondary-foreground",
|
|
34
|
+
"not-disabled:not-pressed:hover:bg-state-interactive-subtle-secondary-background/hover not-disabled:not-pressed:hover:text-state-interactive-subtle-secondary-foreground/hover",
|
|
35
|
+
"not-disabled:pressed:bg-state-interactive-subtle-secondary-background/pressed not-disabled:pressed:text-state-interactive-subtle-secondary-foreground/pressed",
|
|
36
|
+
"disabled:bg-state-interactive-subtle-secondary-background/disabled disabled:text-state-interactive-subtle-secondary-foreground/disabled",
|
|
37
|
+
"focus-visible:outline-interactive-ring"
|
|
38
|
+
],
|
|
39
|
+
success: [
|
|
40
|
+
"bg-surface-success-inverted-base text-surface-success-base",
|
|
41
|
+
"not-disabled:not-pressed:hover:bg-state-surface-success-inverted-base/hover not-disabled:not-pressed:hover:text-state-surface-success-base/hover",
|
|
42
|
+
"not-disabled:pressed:bg-state-surface-success-inverted-base/pressed not-disabled:pressed:text-state-surface-success-base/pressed",
|
|
43
|
+
"disabled:bg-state-surface-success-inverted-base/disabled disabled:text-state-surface-success-base/disabled",
|
|
44
|
+
"focus-visible:outline-interactive-ring"
|
|
45
|
+
],
|
|
46
|
+
warning: [
|
|
47
|
+
"bg-surface-warning-inverted-base text-surface-warning-base",
|
|
48
|
+
"not-disabled:not-pressed:hover:bg-state-surface-warning-inverted-base/hover not-disabled:not-pressed:hover:text-state-surface-warning-base/hover",
|
|
49
|
+
"not-disabled:pressed:bg-state-surface-warning-inverted-base/pressed not-disabled:pressed:text-state-surface-warning-base/pressed",
|
|
50
|
+
"disabled:bg-state-surface-warning-inverted-base/disabled disabled:text-state-surface-warning-base/disabled",
|
|
51
|
+
"focus-visible:outline-interactive-ring"
|
|
52
|
+
],
|
|
53
|
+
error: [
|
|
54
|
+
"bg-interactive-subtle-destructive-background text-interactive-subtle-destructive-foreground",
|
|
55
|
+
"not-disabled:not-pressed:hover:bg-state-interactive-subtle-destructive-background/hover not-disabled:not-pressed:hover:text-state-interactive-subtle-destructive-foreground/hover",
|
|
56
|
+
"not-disabled:pressed:bg-state-interactive-subtle-destructive-background/pressed not-disabled:pressed:text-state-interactive-subtle-destructive-foreground/pressed",
|
|
57
|
+
"disabled:bg-state-interactive-subtle-destructive-background/disabled disabled:text-state-interactive-subtle-destructive-foreground/disabled",
|
|
58
|
+
"focus-visible:outline-interactive-ring"
|
|
59
|
+
]
|
|
60
|
+
} },
|
|
61
|
+
defaultVariants: { color: "primary" }
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/text/Tag/Tag.tsx
|
|
66
|
+
const Tag = (t0) => {
|
|
67
|
+
const $ = c(19);
|
|
68
|
+
const { className, children, dismissible, dismissable, isDisabled, disabled, onRemove, onDismiss, dismissButtonProps, excludeFromTabOrder, onPress, contentRef, textSize: textSizeProp, ...appearanceProps } = t0;
|
|
69
|
+
const uiConfig = UIConfig.useConfig();
|
|
70
|
+
const textSize = textSizeProp ?? uiConfig.tag.textSize;
|
|
71
|
+
const isDismissible = dismissible ?? dismissable ?? false;
|
|
72
|
+
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
73
|
+
const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
|
|
74
|
+
const { t } = useTranslation("ui");
|
|
75
|
+
const t1 = onRemove ?? onDismiss ?? onPress;
|
|
76
|
+
let t2;
|
|
77
|
+
if ($[0] !== t) {
|
|
78
|
+
t2 = t(_temp);
|
|
79
|
+
$[0] = t;
|
|
80
|
+
$[1] = t2;
|
|
81
|
+
} else t2 = $[1];
|
|
82
|
+
let t3;
|
|
83
|
+
if ($[2] !== dismissButtonProps || $[3] !== excludeFromTabOrder || $[4] !== resolvedIsDisabled || $[5] !== t1 || $[6] !== t2) {
|
|
84
|
+
t3 = {
|
|
85
|
+
...dismissButtonProps,
|
|
86
|
+
excludeFromTabOrder,
|
|
87
|
+
isDisabled: resolvedIsDisabled,
|
|
88
|
+
onPress: t1,
|
|
89
|
+
"aria-label": t2
|
|
90
|
+
};
|
|
91
|
+
$[2] = dismissButtonProps;
|
|
92
|
+
$[3] = excludeFromTabOrder;
|
|
93
|
+
$[4] = resolvedIsDisabled;
|
|
94
|
+
$[5] = t1;
|
|
95
|
+
$[6] = t2;
|
|
96
|
+
$[7] = t3;
|
|
97
|
+
} else t3 = $[7];
|
|
98
|
+
const buttonProps = t3;
|
|
99
|
+
const t4 = tagCva({
|
|
100
|
+
...appearanceProps,
|
|
101
|
+
className: clsx("pointer-events-none", className)
|
|
102
|
+
});
|
|
103
|
+
const t5 = contentRef;
|
|
104
|
+
let t6;
|
|
105
|
+
if ($[8] !== children || $[9] !== t5 || $[10] !== textSize) {
|
|
106
|
+
t6 = /* @__PURE__ */ jsx(Typography, {
|
|
107
|
+
ref: t5,
|
|
108
|
+
size: textSize,
|
|
109
|
+
as: "span",
|
|
110
|
+
className: "truncate",
|
|
111
|
+
children
|
|
112
|
+
});
|
|
113
|
+
$[8] = children;
|
|
114
|
+
$[9] = t5;
|
|
115
|
+
$[10] = textSize;
|
|
116
|
+
$[11] = t6;
|
|
117
|
+
} else t6 = $[11];
|
|
118
|
+
let t7;
|
|
119
|
+
if ($[12] !== buttonProps || $[13] !== isDismissible) {
|
|
120
|
+
t7 = isDismissible && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
121
|
+
...buttonProps,
|
|
122
|
+
className: "pointer-events-auto shrink-0",
|
|
123
|
+
children: /* @__PURE__ */ jsx(IconSlot, { icon: X })
|
|
124
|
+
});
|
|
125
|
+
$[12] = buttonProps;
|
|
126
|
+
$[13] = isDismissible;
|
|
127
|
+
$[14] = t7;
|
|
128
|
+
} else t7 = $[14];
|
|
129
|
+
let t8;
|
|
130
|
+
if ($[15] !== t4 || $[16] !== t6 || $[17] !== t7) {
|
|
131
|
+
t8 = /* @__PURE__ */ jsxs("div", {
|
|
132
|
+
className: t4,
|
|
133
|
+
children: [t6, t7]
|
|
134
|
+
});
|
|
135
|
+
$[15] = t4;
|
|
136
|
+
$[16] = t6;
|
|
137
|
+
$[17] = t7;
|
|
138
|
+
$[18] = t8;
|
|
139
|
+
} else t8 = $[18];
|
|
140
|
+
return t8;
|
|
141
|
+
};
|
|
142
|
+
function _temp($) {
|
|
143
|
+
return $.ui.tag.dismiss;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
export { tagDefinition as n, Tag as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-CecYaerF.js";
|
|
3
|
-
import { n as FormFieldProps } from "./FormField-
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
3
|
+
import { n as FormFieldProps } from "./FormField-C8_T6by9.js";
|
|
4
|
+
import { n as InputVariantProps } from "./input.cva-CQPV5gW7.js";
|
|
5
5
|
import { Ref } from "react";
|
|
6
6
|
import { TextAreaProps } from "react-aria-components";
|
|
7
7
|
import { AriaTextFieldProps } from "@react-aria/textfield";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
4
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Czcqspm7.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
8
|
-
import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-
|
|
9
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
7
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-9h3JAhaY.js";
|
|
8
|
+
import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-CbMTwuQU.js";
|
|
9
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-CDHFaUKZ.js";
|
|
10
10
|
import $ahdqC$react, { createContext, forwardRef, memo, useRef } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { mergeProps } from "react-aria/mergeProps";
|
|
12
13
|
import { useFocusRing } from "react-aria/useFocusRing";
|
|
13
14
|
import { useHover } from "react-aria/useHover";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { useTextField } from "@react-aria/textfield";
|
|
16
16
|
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/TextArea.mjs
|
|
17
17
|
const $bd263d78e9bf3c56$export$2dc6166a7e65358c = /*#__PURE__*/ createContext({});
|
|
@@ -123,7 +123,7 @@ const TextAreaBase = (props) => {
|
|
|
123
123
|
as,
|
|
124
124
|
...headerProps,
|
|
125
125
|
className: clsx(headerProps.className, inputSideCva({
|
|
126
|
-
size:
|
|
126
|
+
size: rest.size,
|
|
127
127
|
type: "left"
|
|
128
128
|
}))
|
|
129
129
|
}),
|
|
@@ -137,12 +137,12 @@ const TextAreaBase = (props) => {
|
|
|
137
137
|
variant,
|
|
138
138
|
as,
|
|
139
139
|
...rest,
|
|
140
|
-
className: clsx("block h-full min-h-8", inputClassName)
|
|
140
|
+
className: clsx("block h-full min-h-8", as !== "inline" && "[textarea&]:rounded-[min(var(--radius-input-rounding-default),1rem)]", inputClassName)
|
|
141
141
|
}),
|
|
142
142
|
ref
|
|
143
143
|
}),
|
|
144
144
|
showClear && /* @__PURE__ */ jsx("span", {
|
|
145
|
-
className: clsx("absolute top-0 right-0", inputSizeCva({ size:
|
|
145
|
+
className: clsx("absolute top-0 right-0", inputSizeCva({ size: rest.size })),
|
|
146
146
|
children: /* @__PURE__ */ jsx(InputClear, {
|
|
147
147
|
onClear: () => {
|
|
148
148
|
onChange?.("");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "./Link-
|
|
2
|
-
import { n as ButtonVariantProps } from "./button.cva-
|
|
3
|
-
import { t as ButtonContentVariantProps } from "./buttonContent.cva-
|
|
4
|
-
import { r as ButtonIconProps } from "./Button-
|
|
1
|
+
import { n as LinkNavigationProps } from "./Link-Ow9H7kNv.js";
|
|
2
|
+
import { n as ButtonVariantProps } from "./button.cva-C7kEhgoA.js";
|
|
3
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-DPIlROA9.js";
|
|
4
|
+
import { r as ButtonIconProps } from "./Button-D-4qb0IR.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { ButtonProps } from "react-aria-components";
|
|
7
7
|
//#region src/components/buttons/TextButton/TextButton.d.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
4
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
5
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
6
6
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
7
7
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
8
8
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
9
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
10
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-
|
|
11
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
9
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-9h3JAhaY.js";
|
|
10
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-CbMTwuQU.js";
|
|
11
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-CDHFaUKZ.js";
|
|
12
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-B7DEm75m.js";
|
|
13
13
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
14
|
-
import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-
|
|
15
|
-
import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-
|
|
14
|
+
import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-BWea3HAt.js";
|
|
15
|
+
import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-QWR2q5Vv.js";
|
|
16
16
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
17
17
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
18
|
-
import { GregorianCalendar, Time, getLocalTimeZone, now, toCalendarDateTime, toTime, toZoned, today } from "@internationalized/date";
|
|
19
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { GregorianCalendar, Time, getLocalTimeZone, now, toCalendarDateTime, toTime, toZoned, today } from "@internationalized/date";
|
|
20
20
|
import { useLocale, useTimeField } from "react-aria";
|
|
21
21
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
22
22
|
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/datepicker/useTimeFieldState.mjs
|
|
@@ -133,8 +133,8 @@ const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isRe
|
|
|
133
133
|
...headerProps
|
|
134
134
|
}),
|
|
135
135
|
/* @__PURE__ */ jsx("div", { children: disableManualEntry && placeholder && !state.value ? /* @__PURE__ */ jsx(Typography, {
|
|
136
|
-
size: "
|
|
137
|
-
className: "text-
|
|
136
|
+
size: "large",
|
|
137
|
+
className: "text-surface-default-popover-foreground",
|
|
138
138
|
children: placeholder
|
|
139
139
|
}) : /* @__PURE__ */ jsx(TimeField, {
|
|
140
140
|
fieldProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-CecYaerF.js";
|
|
3
|
-
import { n as FormFieldProps } from "./FormField-
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
3
|
+
import { n as FormFieldProps } from "./FormField-C8_T6by9.js";
|
|
4
|
+
import { n as InputVariantProps } from "./input.cva-CQPV5gW7.js";
|
|
5
5
|
import { FocusEvent, Ref } from "react";
|
|
6
6
|
import { AriaTimeFieldProps, TimeValue } from "react-aria";
|
|
7
7
|
//#region src/components/inputs/DateTime/TimePicker/TimePicker.d.ts
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
4
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
5
|
+
import { t as Spinner } from "./Spinner-BeVTUzzx.js";
|
|
6
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
7
|
+
import { a as toastDefinition, n as statusIconDefinition, r as statusSeparatorDefinition, t as buttonColorVariant } from "./toast.cva-C_L_RffH.js";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/status/Toast/Toast.tsx
|
|
10
|
+
const Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
|
|
11
|
+
const uiConfig = UIConfig.useConfig();
|
|
12
|
+
const { variant = uiConfig.toast.variant, ...restProps } = props;
|
|
13
|
+
const toastCva = UIOverrides.useCva("toast.cva", toastDefinition);
|
|
14
|
+
const buttonColor = UIOverrides.useMapper("toast.buttonColor", buttonColorVariant);
|
|
15
|
+
const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
|
|
16
|
+
const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
|
|
17
|
+
const variantProps = {
|
|
18
|
+
variant,
|
|
19
|
+
...restProps
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: toastCva(variantProps),
|
|
23
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "flex items-start gap-toast-gap-icon-to-text px-toast-side-default py-toast-height-content",
|
|
25
|
+
children: [
|
|
26
|
+
isLoading && /* @__PURE__ */ jsx(Spinner, {
|
|
27
|
+
size: "default",
|
|
28
|
+
className: "shrink-0"
|
|
29
|
+
}),
|
|
30
|
+
!isLoading && Icon && /* @__PURE__ */ jsx(IconSlot, {
|
|
31
|
+
icon: Icon,
|
|
32
|
+
className: iconCva(variantProps)
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
35
|
+
size: "large",
|
|
36
|
+
children: text
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
}), actions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", { className: separatorCva(variantProps) }), /* @__PURE__ */ jsx("div", {
|
|
40
|
+
className: "flex w-full shrink-0 flex-wrap items-center justify-end gap-toast-gap-action px-toast-side-default py-toast-height-actions-mobile md:w-auto md:justify-center md:py-toast-height-actions-desktop",
|
|
41
|
+
children: actions.map(({ text: buttonText, onPress }) => /* @__PURE__ */ jsx(Button, {
|
|
42
|
+
onPress,
|
|
43
|
+
...buttonColor(variantProps),
|
|
44
|
+
variant: "text",
|
|
45
|
+
size: "none",
|
|
46
|
+
width: "hug",
|
|
47
|
+
children: buttonText
|
|
48
|
+
}, buttonText))
|
|
49
|
+
})] })]
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { Toast as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
2
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
3
|
-
import {
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
+
import { i as toastContainerDefinition, o as toastWrapper } from "./toast.cva-C_L_RffH.js";
|
|
4
4
|
import { i as subscribeToToastActivation, n as isToastRendererActive, r as isToastRendererInactive } from "./toastActivation.store-BELtcr76.js";
|
|
5
|
+
import { t as xo } from "./dist-CAdwxJbe.js";
|
|
5
6
|
import { useSyncExternalStore } from "react";
|
|
6
7
|
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ButtonContentVariantProps } from "./buttonContent.cva-
|
|
2
|
-
import { n as ButtonAppearanceProps, r as ButtonIconProps } from "./Button-
|
|
1
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-DPIlROA9.js";
|
|
2
|
+
import { n as ButtonAppearanceProps, r as ButtonIconProps } from "./Button-D-4qb0IR.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { ToggleButtonProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/buttons/ToggleButton/ToggleButton.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
|
-
import { t as ControlledToggleGroupProps } from "./toggleGroup.types-
|
|
2
|
+
import { t as ControlledToggleGroupProps } from "./toggleGroup.types-Bp43zbSQ.js";
|
|
3
3
|
import { Key } from "react-aria-components";
|
|
4
4
|
//#region src/components/ToggleGroup/ToggleGroup.d.ts
|
|
5
5
|
declare const ToggleGroup: <TFieldValues extends FieldValues, TKey extends Key = Key>(props: ControlledToggleGroupProps<TFieldValues, TKey>) => import("react").JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
2
4
|
import { n as $bc25b811ec97a172$export$40258cc1d95ff477, t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-BW1ensey.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
5
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
5
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
7
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import { t as FormField } from "./FormField-
|
|
8
|
+
import { t as FormField } from "./FormField-9h3JAhaY.js";
|
|
8
9
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
10
|
+
import { n as toggleGroupItemDefinition, t as toggleGroupDefinition } from "./toggleGroup.cva-MbpaEBg1.js";
|
|
9
11
|
import { Fragment, useMemo, useRef } from "react";
|
|
10
12
|
import { c } from "react/compiler-runtime";
|
|
11
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -34,37 +36,9 @@ function $3d8ad31c4c1725e9$export$8deac67f4addf270(props) {
|
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
//#endregion
|
|
37
|
-
//#region src/components/ToggleGroup/toggleGroup.cva.ts
|
|
38
|
-
const toggleGroupDefinition = UIOverrides.defineConfig({ base: [
|
|
39
|
-
"group/segment grid w-fit items-center gap-segmented-control-side-segmented-control p-segmented-control-side-segmented-control",
|
|
40
|
-
"bg-elevation-fill-default-3",
|
|
41
|
-
"rounded-segmented-control-rounding-segmented-control"
|
|
42
|
-
] });
|
|
43
|
-
const toggleGroupItemDefinition = UIOverrides.defineConfig({
|
|
44
|
-
base: [
|
|
45
|
-
"flex items-center justify-center gap-segmented-control-gap-content-icon-to-text transition-all duration-200",
|
|
46
|
-
"border border-support-transparent-outline",
|
|
47
|
-
"py-segmented-control-height-segment",
|
|
48
|
-
"rounded-segmented-control-rounding-segment",
|
|
49
|
-
"text-interactive-subtle-secondary-on-idle",
|
|
50
|
-
"hover:border-interactive-subtle-secondary-hover hover:bg-interactive-subtle-secondary-hover hover:text-interactive-subtle-secondary-on-hover",
|
|
51
|
-
"pressed:border-interactive-subtle-secondary-pressed pressed:bg-interactive-subtle-secondary-pressed pressed:text-interactive-subtle-secondary-on-pressed",
|
|
52
|
-
"disabled:border-support-transparent-outline disabled:text-interactive-subtle-secondary-on-disabled",
|
|
53
|
-
"selected:border-interactive-subtle-secondary-toggled-idle selected:bg-interactive-subtle-secondary-toggled-idle selected:text-interactive-subtle-secondary-on-toggled-idle",
|
|
54
|
-
"selected:disabled:border-interactive-subtle-secondary-toggled-disabled selected:disabled:bg-interactive-subtle-secondary-toggled-disabled selected:disabled:text-interactive-subtle-secondary-on-toggled-disabled"
|
|
55
|
-
],
|
|
56
|
-
config: {
|
|
57
|
-
variants: { iconOnly: {
|
|
58
|
-
true: "px-segmented-control-height-segment",
|
|
59
|
-
false: "px-segmented-control-side-segment"
|
|
60
|
-
} },
|
|
61
|
-
defaultVariants: { iconOnly: false }
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
//#endregion
|
|
65
39
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
66
40
|
const ToggleGroupItem = (t0) => {
|
|
67
|
-
const $ = c(
|
|
41
|
+
const $ = c(22);
|
|
68
42
|
let className;
|
|
69
43
|
let icon;
|
|
70
44
|
let id;
|
|
@@ -88,7 +62,6 @@ const ToggleGroupItem = (t0) => {
|
|
|
88
62
|
label = $[5];
|
|
89
63
|
props = $[6];
|
|
90
64
|
}
|
|
91
|
-
const IconComponent = icon;
|
|
92
65
|
const iconOnly = !!(icon && !label);
|
|
93
66
|
const toggleGroupItemCva = UIOverrides.useCva("toggleGroup.itemCva", toggleGroupItemDefinition);
|
|
94
67
|
let t1;
|
|
@@ -103,25 +76,24 @@ const ToggleGroupItem = (t0) => {
|
|
|
103
76
|
$[10] = t1;
|
|
104
77
|
} else t1 = $[10];
|
|
105
78
|
let t2;
|
|
106
|
-
if ($[11] !==
|
|
107
|
-
t2 = icon && /* @__PURE__ */ jsx(
|
|
108
|
-
$[11] =
|
|
109
|
-
$[12] =
|
|
110
|
-
|
|
111
|
-
} else t2 = $[13];
|
|
79
|
+
if ($[11] !== icon) {
|
|
80
|
+
t2 = icon && /* @__PURE__ */ jsx(IconSlot, { icon });
|
|
81
|
+
$[11] = icon;
|
|
82
|
+
$[12] = t2;
|
|
83
|
+
} else t2 = $[12];
|
|
112
84
|
let t3;
|
|
113
|
-
if ($[
|
|
85
|
+
if ($[13] !== label) {
|
|
114
86
|
t3 = label && /* @__PURE__ */ jsx(Typography, {
|
|
115
|
-
size: "
|
|
87
|
+
size: "small",
|
|
116
88
|
as: "span",
|
|
117
89
|
className: "overflow-hidden text-ellipsis text-center",
|
|
118
90
|
children: label
|
|
119
91
|
});
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
} else t3 = $[
|
|
92
|
+
$[13] = label;
|
|
93
|
+
$[14] = t3;
|
|
94
|
+
} else t3 = $[14];
|
|
123
95
|
let t4;
|
|
124
|
-
if ($[
|
|
96
|
+
if ($[15] !== id || $[16] !== isDisabled || $[17] !== props || $[18] !== t1 || $[19] !== t2 || $[20] !== t3) {
|
|
125
97
|
t4 = /* @__PURE__ */ jsxs($75afe627ae0cc0fa$export$d2b052e7b4be1756, {
|
|
126
98
|
...props,
|
|
127
99
|
id,
|
|
@@ -129,14 +101,14 @@ const ToggleGroupItem = (t0) => {
|
|
|
129
101
|
isDisabled,
|
|
130
102
|
children: [t2, t3]
|
|
131
103
|
});
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
} else t4 = $[
|
|
104
|
+
$[15] = id;
|
|
105
|
+
$[16] = isDisabled;
|
|
106
|
+
$[17] = props;
|
|
107
|
+
$[18] = t1;
|
|
108
|
+
$[19] = t2;
|
|
109
|
+
$[20] = t3;
|
|
110
|
+
$[21] = t4;
|
|
111
|
+
} else t4 = $[21];
|
|
140
112
|
return t4;
|
|
141
113
|
};
|
|
142
114
|
//#endregion
|
|
@@ -266,7 +238,7 @@ const ToggleGroupBase = (t0) => {
|
|
|
266
238
|
state.toggleKey(item.id);
|
|
267
239
|
}
|
|
268
240
|
}), index !== items.length - 1 && items.length > 2 && /* @__PURE__ */ jsx("div", {
|
|
269
|
-
className: clsx("h-5 w-px rounded-2xl", !state.selectedKeys.has(item.id) && !state.selectedKeys.has(items[index + 1].id) && "bg-
|
|
241
|
+
className: clsx("h-5 w-px rounded-2xl", !state.selectedKeys.has(item.id) && !state.selectedKeys.has(items[index + 1].id) && "bg-border-default-subtle"),
|
|
270
242
|
children: /* @__PURE__ */ jsx("span", { className: "flex h-full w-px" })
|
|
271
243
|
})] }, item.id));
|
|
272
244
|
$[33] = items;
|
|
@@ -371,4 +343,4 @@ function _temp(_, i) {
|
|
|
371
343
|
return i % 2 === 0 ? "1fr" : "auto";
|
|
372
344
|
}
|
|
373
345
|
//#endregion
|
|
374
|
-
export {
|
|
346
|
+
export { ToggleGroup as t };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
2
2
|
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
4
5
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
5
6
|
import { n as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-D8z7cCsw.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as Typography } from "./Typography-
|
|
7
|
+
import { i as tooltipTextDefinition, n as tooltipPointerHorizontalDefinition, r as tooltipPointerVerticalDefinition, t as tooltipDefinition } from "./tooltip.cva-BIzlOXHH.js";
|
|
8
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
8
9
|
import $ahdqC$react, { Fragment, createContext, forwardRef, useContext, useRef } from "react";
|
|
9
10
|
import { c } from "react/compiler-runtime";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
12
|
import { mergeProps } from "react-aria/mergeProps";
|
|
11
13
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
12
14
|
import { useEnterAnimation, useExitAnimation } from "react-aria/private/utils/animation";
|
|
@@ -15,7 +17,6 @@ import { useTooltipTriggerState } from "react-stately/useTooltipTriggerState";
|
|
|
15
17
|
import { useOverlayPosition } from "react-aria/useOverlayPosition";
|
|
16
18
|
import { OverlayContainer } from "react-aria/private/overlays/useModal";
|
|
17
19
|
import { useTooltip, useTooltipTrigger } from "react-aria/useTooltipTrigger";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
20
|
import { useFocusable } from "react-aria";
|
|
20
21
|
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Tooltip.mjs
|
|
21
22
|
const $05a50f7d78b03ad9$export$7a7623236eec67fa = /*#__PURE__*/ createContext(null);
|
|
@@ -95,48 +96,6 @@ function $05a50f7d78b03ad9$var$TooltipInner(props) {
|
|
|
95
96
|
} }, renderProps.children));
|
|
96
97
|
}
|
|
97
98
|
//#endregion
|
|
98
|
-
//#region src/components/overlays/Tooltip/tooltip.cva.ts
|
|
99
|
-
const tooltipDefinition = UIOverrides.defineConfig({
|
|
100
|
-
base: ["group max-w-64 rounded-tooltip-rounding-default px-tooltip-side-default py-tooltip-height-default shadow-2"],
|
|
101
|
-
config: {
|
|
102
|
-
variants: { color: {
|
|
103
|
-
default: ["bg-interactive-contained-secondary-idle"],
|
|
104
|
-
error: ["w-max bg-elevation-fill-error-1"]
|
|
105
|
-
} },
|
|
106
|
-
defaultVariants: { color: "default" }
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
const tooltipPointerHorizontalDefinition = UIOverrides.defineConfig({
|
|
110
|
-
base: ["h-5 group-placement-left:hidden group-placement-right:hidden group-placement-top:rotate-180 group-placement-bottom:translate-y-2 group-placement-top:-translate-y-2"],
|
|
111
|
-
config: {
|
|
112
|
-
variants: { color: {
|
|
113
|
-
default: ["text-interactive-contained-secondary-idle"],
|
|
114
|
-
error: ["text-elevation-fill-error-1"]
|
|
115
|
-
} },
|
|
116
|
-
defaultVariants: { color: "default" }
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
const tooltipPointerVerticalDefinition = UIOverrides.defineConfig({
|
|
120
|
-
base: ["w-5 group-placement-bottom:hidden group-placement-top:hidden group-placement-left:rotate-180 group-placement-left:-translate-x-2 group-placement-right:translate-x-2"],
|
|
121
|
-
config: {
|
|
122
|
-
variants: { color: {
|
|
123
|
-
default: ["text-interactive-contained-secondary-idle"],
|
|
124
|
-
error: ["text-elevation-fill-error-1"]
|
|
125
|
-
} },
|
|
126
|
-
defaultVariants: { color: "default" }
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
const tooltipTextDefinition = UIOverrides.defineConfig({
|
|
130
|
-
base: [],
|
|
131
|
-
config: {
|
|
132
|
-
variants: { color: {
|
|
133
|
-
default: ["text-interactive-contained-secondary-on-idle"],
|
|
134
|
-
error: ["text-text-error-inverted-1"]
|
|
135
|
-
} },
|
|
136
|
-
defaultVariants: { color: "default" }
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
//#endregion
|
|
140
99
|
//#region src/components/overlays/Tooltip/Tooltip.tsx
|
|
141
100
|
const CustomTrigger = (t0) => {
|
|
142
101
|
const $ = c(8);
|
|
@@ -245,7 +204,7 @@ const Tooltip = (t0) => {
|
|
|
245
204
|
} else t9 = $[18];
|
|
246
205
|
let t10;
|
|
247
206
|
if ($[19] !== color || $[20] !== tooltipTextCva) {
|
|
248
|
-
t10 = tooltipTextCva({ color });
|
|
207
|
+
t10 = clsx(tooltipTextCva({ color }), "font-bold");
|
|
249
208
|
$[19] = color;
|
|
250
209
|
$[20] = tooltipTextCva;
|
|
251
210
|
$[21] = t10;
|
|
@@ -253,8 +212,7 @@ const Tooltip = (t0) => {
|
|
|
253
212
|
let t11;
|
|
254
213
|
if ($[22] !== t10 || $[23] !== text) {
|
|
255
214
|
t11 = /* @__PURE__ */ jsx(Typography, {
|
|
256
|
-
size: "
|
|
257
|
-
variant: "prominent-1",
|
|
215
|
+
size: "large",
|
|
258
216
|
className: t10,
|
|
259
217
|
children: text
|
|
260
218
|
});
|
|
@@ -296,4 +254,4 @@ const Tooltip = (t0) => {
|
|
|
296
254
|
return t13;
|
|
297
255
|
};
|
|
298
256
|
//#endregion
|
|
299
|
-
export {
|
|
257
|
+
export { Tooltip as t };
|