@keboola/design 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +6 -5
- package/CHANGELOG.md +94 -0
- package/COMPONENT-API.md +62 -61
- package/dist/{AIKit-CaAW4GLx.js → AIKit-Cf5plya2.js} +381 -224
- package/dist/AIKit-Cf5plya2.js.map +1 -0
- package/dist/{Alert-Chz6KZ7e.js → Alert-DziS8n1H.js} +12 -19
- package/dist/{Alert-Chz6KZ7e.js.map → Alert-DziS8n1H.js.map} +1 -1
- package/dist/{AlertModal-D4AtpvLS.js → AlertModal-De04fFoy.js} +16 -26
- package/dist/AlertModal-De04fFoy.js.map +1 -0
- package/dist/{AppShell-C8V1KRr_.js → AppShell-BUa3U7-e.js} +6 -9
- package/dist/{AppShell-C8V1KRr_.js.map → AppShell-BUa3U7-e.js.map} +1 -1
- package/dist/{AutoSaveTextarea-BbMhC5Aq.js → AutoSaveTextarea-CXHOQSun.js} +4 -5
- package/dist/{AutoSaveTextarea-BbMhC5Aq.js.map → AutoSaveTextarea-CXHOQSun.js.map} +1 -1
- package/dist/{Badge-5GHIsgRS.js → Badge-CFRhducL.js} +18 -23
- package/dist/Badge-CFRhducL.js.map +1 -0
- package/dist/{BrandEditor-CTGtQUFZ.js → BrandEditor-hiLBX7az.js} +16 -23
- package/dist/{BrandEditor-CTGtQUFZ.js.map → BrandEditor-hiLBX7az.js.map} +1 -1
- package/dist/{BrandLogo-DkESE19K.js → BrandLogo-Dn7hhp2c.js} +4 -5
- package/dist/{BrandLogo-DkESE19K.js.map → BrandLogo-Dn7hhp2c.js.map} +1 -1
- package/dist/{Breadcrumb-B2YSNON4.js → Breadcrumb-uGFEIjFF.js} +17 -28
- package/dist/{Breadcrumb-B2YSNON4.js.map → Breadcrumb-uGFEIjFF.js.map} +1 -1
- package/dist/{Button-BNkyYU8u.js → Button-DbvGzEDb.js} +24 -20
- package/dist/Button-DbvGzEDb.js.map +1 -0
- package/dist/{Calendar-BnKi1kPu.js → Calendar-lJBTETbk.js} +752 -905
- package/dist/Calendar-lJBTETbk.js.map +1 -0
- package/dist/{Card-DxjGiqH8.js → Card-VIPfOVW5.js} +8 -14
- package/dist/{Card-DxjGiqH8.js.map → Card-VIPfOVW5.js.map} +1 -1
- package/dist/{Checkbox-CHDDJyAA.js → Checkbox-B2jLlyaO.js} +6 -8
- package/dist/{Checkbox-CHDDJyAA.js.map → Checkbox-B2jLlyaO.js.map} +1 -1
- package/dist/{Clipboard-DlwVZS1P.js → Clipboard-fAkDdpEu.js} +4 -5
- package/dist/{Clipboard-DlwVZS1P.js.map → Clipboard-fAkDdpEu.js.map} +1 -1
- package/dist/{ClipboardButton-B1Hr_n_Z.js → ClipboardButton-71Ugbl8c.js} +6 -8
- package/dist/{ClipboardButton-B1Hr_n_Z.js.map → ClipboardButton-71Ugbl8c.js.map} +1 -1
- package/dist/{CodeEditor-DVSPdfdo.js → CodeEditor-D_b-ZCng.js} +19 -31
- package/dist/{CodeEditor-DVSPdfdo.js.map → CodeEditor-D_b-ZCng.js.map} +1 -1
- package/dist/{Collapsible-DD4xTL75.js → Collapsible-zsXk4Vpp.js} +5 -8
- package/dist/{Collapsible-DD4xTL75.js.map → Collapsible-zsXk4Vpp.js.map} +1 -1
- package/dist/{ColorInput-B_eZIu39.js → ColorInput-Cjr1jkvy.js} +9 -12
- package/dist/{ColorInput-B_eZIu39.js.map → ColorInput-Cjr1jkvy.js.map} +1 -1
- package/dist/{ColorModeSwitch-B6UEzG0H.js → ColorModeSwitch-CuPYnJ2V.js} +5 -6
- package/dist/{ColorModeSwitch-B6UEzG0H.js.map → ColorModeSwitch-CuPYnJ2V.js.map} +1 -1
- package/dist/{Combobox-CaKqgstG.js → Combobox-DYjvYgl3.js} +38 -67
- package/dist/Combobox-DYjvYgl3.js.map +1 -0
- package/dist/{Command-DhXmqFLT.js → Command-BcTb6GsR.js} +14 -24
- package/dist/{Command-DhXmqFLT.js.map → Command-BcTb6GsR.js.map} +1 -1
- package/dist/{CopyField-D0Pg4Z0R.js → CopyField-CnwAvQz9.js} +16 -28
- package/dist/{CopyField-D0Pg4Z0R.js.map → CopyField-CnwAvQz9.js.map} +1 -1
- package/dist/{DateInput-BgbMDJkm.js → DateInput-DJNX7Vdx.js} +8 -10
- package/dist/{DateInput-BgbMDJkm.js.map → DateInput-DJNX7Vdx.js.map} +1 -1
- package/dist/{DatePicker-BXpDRo-R.js → DatePicker-CI59gF3S.js} +4 -5
- package/dist/{DatePicker-BXpDRo-R.js.map → DatePicker-CI59gF3S.js.map} +1 -1
- package/dist/{DateRangeInput-BW0-_jV0.js → DateRangeInput-B3g8cyS0.js} +8 -10
- package/dist/{DateRangeInput-BW0-_jV0.js.map → DateRangeInput-B3g8cyS0.js.map} +1 -1
- package/dist/{DateRangePicker-C4-DoWac.js → DateRangePicker-48yOB2qV.js} +9 -10
- package/dist/{DateRangePicker-C4-DoWac.js.map → DateRangePicker-48yOB2qV.js.map} +1 -1
- package/dist/{DiffView-Dy4z-n-1.js → DiffView-DITZdVbh.js} +7 -12
- package/dist/{DiffView-Dy4z-n-1.js.map → DiffView-DITZdVbh.js.map} +1 -1
- package/dist/{DropdownMenu-CcVbZ_5u.js → DropdownMenu-Ba9atqDa.js} +21 -37
- package/dist/DropdownMenu-Ba9atqDa.js.map +1 -0
- package/dist/{FieldBox-BrxLkY9C.js → FieldBox-DdSdJ3ZN.js} +6 -10
- package/dist/{FieldBox-BrxLkY9C.js.map → FieldBox-DdSdJ3ZN.js.map} +1 -1
- package/dist/{FieldItem-BHUqgSO1.js → FieldItem-D7eCMfMB.js} +6 -8
- package/dist/{FieldItem-BHUqgSO1.js.map → FieldItem-D7eCMfMB.js.map} +1 -1
- package/dist/{FieldItem-CPN1xjN5.d.ts → FieldItem-fqm3CNR8.d.ts} +7 -6
- package/dist/{FileUpload-BYFONpEl.js → FileUpload-DskvxhAr.js} +25 -45
- package/dist/{FileUpload-BYFONpEl.js.map → FileUpload-DskvxhAr.js.map} +1 -1
- package/dist/{Form-CAofWyMI.js → Form-BUNW7nlt.js} +24 -38
- package/dist/{Form-CAofWyMI.js.map → Form-BUNW7nlt.js.map} +1 -1
- package/dist/{FormGroup-V5kIgQRN.js → FormGroup-QJB21LKp.js} +12 -20
- package/dist/{FormGroup-V5kIgQRN.js.map → FormGroup-QJB21LKp.js.map} +1 -1
- package/dist/{FullScreenModal-DAvvlGOz.js → FullScreenModal-RzY5XxiG.js} +8 -12
- package/dist/{FullScreenModal-DAvvlGOz.js.map → FullScreenModal-RzY5XxiG.js.map} +1 -1
- package/dist/HoverCard-OGWKRXJ7.js +24 -0
- package/dist/HoverCard-OGWKRXJ7.js.map +1 -0
- package/dist/{InlineEdit-D4P0SvCB.js → InlineEdit-CXL0ZslO.js} +7 -8
- package/dist/{InlineEdit-D4P0SvCB.js.map → InlineEdit-CXL0ZslO.js.map} +1 -1
- package/dist/{InputGroup-CZv_7QlM.js → InputGroup-BWeanEo7.js} +9 -15
- package/dist/{InputGroup-CZv_7QlM.js.map → InputGroup-BWeanEo7.js.map} +1 -1
- package/dist/{Kbd-CflKthfu.js → Kbd-BprYCICe.js} +8 -13
- package/dist/{Kbd-CflKthfu.js.map → Kbd-BprYCICe.js.map} +1 -1
- package/dist/{MarkedText-DlmlJO0u.js → MarkedText-BrganZ_V.js} +4 -6
- package/dist/{MarkedText-DlmlJO0u.js.map → MarkedText-BrganZ_V.js.map} +1 -1
- package/dist/{MermaidDiagram-Te-5gOCU.js → MermaidDiagram-E3azndPk.js} +9 -11
- package/dist/{MermaidDiagram-Te-5gOCU.js.map → MermaidDiagram-E3azndPk.js.map} +1 -1
- package/dist/{Modal-CbUz-5YH.js → Modal-Cf_kPEBW.js} +14 -22
- package/dist/Modal-Cf_kPEBW.js.map +1 -0
- package/dist/{ModalTitle-cy0Ht9VY.js → ModalTitle-7vgpfc6B.js} +6 -9
- package/dist/ModalTitle-7vgpfc6B.js.map +1 -0
- package/dist/{MultiActionButtonGroup-Dzig87s1.js → MultiActionButtonGroup-8WQwL4UQ.js} +6 -8
- package/dist/{MultiActionButtonGroup-Dzig87s1.js.map → MultiActionButtonGroup-8WQwL4UQ.js.map} +1 -1
- package/dist/{Navbar-DHUS7XiU.js → Navbar-CRjxVboE.js} +13 -22
- package/dist/{Navbar-DHUS7XiU.js.map → Navbar-CRjxVboE.js.map} +1 -1
- package/dist/{OtpInput-CY8yCaJk.js → OtpInput-C5plPzGU.js} +7 -11
- package/dist/{OtpInput-CY8yCaJk.js.map → OtpInput-C5plPzGU.js.map} +1 -1
- package/dist/{PageHeader-CL1A6jFM.js → PageHeader-DosMyar2.js} +6 -10
- package/dist/{PageHeader-CL1A6jFM.js.map → PageHeader-DosMyar2.js.map} +1 -1
- package/dist/{PageLayout-C9aXTpqV.js → PageLayout-LcvJccOW.js} +5 -8
- package/dist/{PageLayout-C9aXTpqV.js.map → PageLayout-LcvJccOW.js.map} +1 -1
- package/dist/{PageToolbar-DJ5tdYla.js → PageToolbar-By2HznxO.js} +8 -10
- package/dist/{PageToolbar-DJ5tdYla.js.map → PageToolbar-By2HznxO.js.map} +1 -1
- package/dist/{Pagination-D27x5KmH.js → Pagination-DrXTrvfD.js} +11 -18
- package/dist/{Pagination-D27x5KmH.js.map → Pagination-DrXTrvfD.js.map} +1 -1
- package/dist/{Popconfirm-DwLCYNaF.js → Popconfirm-BJuDOHdv.js} +46 -25
- package/dist/Popconfirm-BJuDOHdv.js.map +1 -0
- package/dist/{Popover-DtUDwUVO.js → Popover-DhOPlWgF.js} +5 -7
- package/dist/Popover-DhOPlWgF.js.map +1 -0
- package/dist/{RadioGroup-B0TwHjBb.js → RadioGroup-B9oC8P15.js} +12 -18
- package/dist/{RadioGroup-B0TwHjBb.js.map → RadioGroup-B9oC8P15.js.map} +1 -1
- package/dist/{Resizable-D8zs0kcq.js → Resizable-Co-L3qg7.js} +4 -6
- package/dist/{Resizable-D8zs0kcq.js.map → Resizable-Co-L3qg7.js.map} +1 -1
- package/dist/{Search-vyZwGKMU.js → Search-OgaNjqQM.js} +26 -21
- package/dist/Search-OgaNjqQM.js.map +1 -0
- package/dist/{SearchInput-DyYXyw3u.js → SearchInput-eLS-uvOn.js} +18 -29
- package/dist/SearchInput-eLS-uvOn.js.map +1 -0
- package/dist/{SectionNav-tLK3iF6c.js → SectionNav-L81iJBo3.js} +11 -14
- package/dist/{SectionNav-tLK3iF6c.js.map → SectionNav-L81iJBo3.js.map} +1 -1
- package/dist/{Select-B22hB_-w.js → Select-DRdkdzBp.js} +29 -26
- package/dist/Select-DRdkdzBp.js.map +1 -0
- package/dist/{Sheet-0TWKTqid.js → Sheet-DVb4XoJ5.js} +13 -20
- package/dist/Sheet-DVb4XoJ5.js.map +1 -0
- package/dist/{Sidebar-C5hdANBU.js → Sidebar-DYvodJWN.js} +43 -75
- package/dist/{Sidebar-C5hdANBU.js.map → Sidebar-DYvodJWN.js.map} +1 -1
- package/dist/{Slider-DrcsM8_G.js → Slider-B9IskDxf.js} +8 -12
- package/dist/{Slider-DrcsM8_G.js.map → Slider-B9IskDxf.js.map} +1 -1
- package/dist/{Stepper-CQrUPVFL.js → Stepper-D7VspVEt.js} +11 -19
- package/dist/{Stepper-CQrUPVFL.js.map → Stepper-D7VspVEt.js.map} +1 -1
- package/dist/{Switch-DccpSpzC.js → Switch-DONWW7ju.js} +4 -6
- package/dist/{Switch-DccpSpzC.js.map → Switch-DONWW7ju.js.map} +1 -1
- package/dist/{Table-CilEvpMq.js → Table-BwgBm3hJ.js} +12 -21
- package/dist/{Table-CilEvpMq.js.map → Table-BwgBm3hJ.js.map} +1 -1
- package/dist/{Tabs-Ck4uWf8U.js → Tabs-DmJB4l_N.js} +9 -14
- package/dist/{Tabs-Ck4uWf8U.js.map → Tabs-DmJB4l_N.js.map} +1 -1
- package/dist/{TextInput-CR0_USaY.js → TextInput--1CfZybC.js} +8 -10
- package/dist/TextInput--1CfZybC.js.map +1 -0
- package/dist/{ThemeProvider-BTK7AL-T.js → ThemeProvider-BCHllN7d.js} +8 -13
- package/dist/{ThemeProvider-BTK7AL-T.js.map → ThemeProvider-BCHllN7d.js.map} +1 -1
- package/dist/{TimePicker-CoRpiEM3.js → TimePicker-CCV3SOw5.js} +4 -6
- package/dist/{TimePicker-CoRpiEM3.js.map → TimePicker-CCV3SOw5.js.map} +1 -1
- package/dist/{Timeline-DUXgByUE.js → Timeline-EMOpTLAT.js} +8 -13
- package/dist/{Timeline-DUXgByUE.js.map → Timeline-EMOpTLAT.js.map} +1 -1
- package/dist/{Toast-937n7n8i.js → Toast-BOTINeTX.js} +4 -6
- package/dist/{Toast-937n7n8i.js.map → Toast-BOTINeTX.js.map} +1 -1
- package/dist/{ToggleAllTooltip-DEjbWFoj.js → ToggleAllTooltip-BFmA6TXf.js} +4 -6
- package/dist/{ToggleAllTooltip-DEjbWFoj.js.map → ToggleAllTooltip-BFmA6TXf.js.map} +1 -1
- package/dist/{ToggleGroup-BOz1yyz6.js → ToggleGroup-DsDS7k70.js} +3 -4
- package/dist/{ToggleGroup-BOz1yyz6.js.map → ToggleGroup-DsDS7k70.js.map} +1 -1
- package/dist/{Workbench-CxgNCs3I.js → Workbench-4s0xP6XU.js} +18 -32
- package/dist/{Workbench-CxgNCs3I.js.map → Workbench-4s0xP6XU.js.map} +1 -1
- package/dist/{ZoomableSvg-DnFXo2L4.js → ZoomableSvg-BRPGgaWJ.js} +9 -11
- package/dist/{ZoomableSvg-DnFXo2L4.js.map → ZoomableSvg-BRPGgaWJ.js.map} +1 -1
- package/dist/charts.d.ts +0 -16
- package/dist/charts.js +10 -19
- package/dist/charts.js.map +1 -1
- package/dist/{classNames-DcGnTh2N.js → classNames-DkX30VJU.js} +2 -3
- package/dist/{classNames-DcGnTh2N.js.map → classNames-DkX30VJU.js.map} +1 -1
- package/dist/editors.d.ts +2 -16
- package/dist/editors.js +16 -26
- package/dist/editors.js.map +1 -1
- package/dist/{findLiteralMatches-DgGLzyG0.js → findLiteralMatches-BaLZTPtx.js} +2 -3
- package/dist/{findLiteralMatches-DgGLzyG0.js.map → findLiteralMatches-BaLZTPtx.js.map} +1 -1
- package/dist/flint.d.ts +0 -2
- package/dist/flint.js +10 -14
- package/dist/flint.js.map +1 -1
- package/dist/{highlightCode-D354tCXO.js → highlightCode-2spZP7ZA.js} +2 -3
- package/dist/{highlightCode-D354tCXO.js.map → highlightCode-2spZP7ZA.js.map} +1 -1
- package/dist/{icons-ZIeZXXS7.js → icons-DDR9dFSr.js} +21 -40
- package/dist/{icons-ZIeZXXS7.js.map → icons-DDR9dFSr.js.map} +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +1 -2
- package/dist/{index-D-itZ3VP.d.ts → index-BljYaTWL.d.ts} +1 -39
- package/dist/index.d.ts +452 -1296
- package/dist/index.js +76 -74
- package/dist/internal/blocks/AIKit.js +1 -2
- package/dist/internal/blocks/AppShell.js +1 -2
- package/dist/internal/blocks/AuthLayout.js +3 -4
- package/dist/internal/blocks/AutoSaveTextarea.js +1 -2
- package/dist/internal/blocks/BrandEditor.js +1 -2
- package/dist/internal/blocks/ChartPanel.js +3 -4
- package/dist/internal/blocks/ChipEditor.js +6 -7
- package/dist/internal/blocks/ClipboardButton.js +1 -2
- package/dist/internal/blocks/ColorInput.js +1 -2
- package/dist/internal/blocks/ColorModeSwitch.js +1 -2
- package/dist/internal/blocks/Command.js +1 -2
- package/dist/internal/blocks/CopyField.js +1 -2
- package/dist/internal/blocks/DashboardHero.js +2 -3
- package/dist/internal/blocks/DateInput.js +1 -2
- package/dist/internal/blocks/DateRangeInput.js +1 -2
- package/dist/internal/blocks/DiagramShared/DiagramSkeleton.js +1 -2
- package/dist/internal/blocks/EmptyConfigurationActionCard.js +2 -3
- package/dist/internal/blocks/EmptyState.js +1 -2
- package/dist/internal/blocks/ErrorState.js +1 -2
- package/dist/internal/blocks/ExportMenu.js +5 -6
- package/dist/internal/blocks/FacebookButton.js +3 -4
- package/dist/internal/blocks/Form/connectors/ComboboxField.js +3 -4
- package/dist/internal/blocks/Form/connectors/MultiComboboxField.js +2 -3
- package/dist/internal/blocks/Form.js +3 -2
- package/dist/internal/blocks/FormGroup.js +1 -2
- package/dist/internal/blocks/GoogleButton.js +3 -4
- package/dist/internal/blocks/InlineEdit.js +1 -2
- package/dist/internal/blocks/MicrosoftButton.js +3 -4
- package/dist/internal/blocks/MultiActionButtonGroup.js +1 -2
- package/dist/internal/blocks/MultiCombobox.js +7 -8
- package/dist/internal/blocks/NumberInput.js +2 -3
- package/dist/internal/blocks/OtpInput.js +1 -2
- package/dist/internal/blocks/PageHeader.js +1 -2
- package/dist/internal/blocks/PageLayout.js +1 -2
- package/dist/internal/blocks/PageToolbar.js +1 -2
- package/dist/internal/blocks/PasswordInput.js +5 -6
- package/dist/internal/blocks/SearchInput.js +1 -2
- package/dist/internal/blocks/SearchInputWithNavigation.js +6 -7
- package/dist/internal/blocks/SectionNav.js +1 -2
- package/dist/internal/blocks/SplitButton.js +4 -5
- package/dist/internal/blocks/StatCard.js +4 -6
- package/dist/internal/blocks/StatCard.js.map +1 -1
- package/dist/internal/blocks/TextInput.js +1 -2
- package/dist/internal/blocks/Textarea.js +3 -4
- package/dist/internal/blocks/TimeInput.js +6 -7
- package/dist/internal/components/Alert.js +1 -2
- package/dist/internal/components/AlertModal.js +1 -2
- package/dist/internal/components/Avatar.js +3 -4
- package/dist/internal/components/Badge.js +1 -2
- package/dist/internal/components/BrandLogo.js +1 -2
- package/dist/internal/components/Breadcrumb.js +1 -2
- package/dist/internal/components/Button.js +1 -2
- package/dist/internal/components/ButtonGroup.js +2 -3
- package/dist/internal/components/Calendar.js +1 -2
- package/dist/internal/components/Card.js +1 -2
- package/dist/internal/components/Checkbox.js +1 -2
- package/dist/internal/components/Clipboard.js +1 -2
- package/dist/internal/components/Collapsible.js +1 -2
- package/dist/internal/components/CollapsiblePanel.js +5 -6
- package/dist/internal/components/Combobox.js +1 -2
- package/dist/internal/components/DatePicker.js +1 -2
- package/dist/internal/components/DateRangePicker.js +1 -2
- package/dist/internal/components/DiffView.js +1 -2
- package/dist/internal/components/DotsLoader.js +2 -3
- package/dist/internal/components/DropdownMenu.js +1 -2
- package/dist/internal/components/EmptySearchContent.js +1 -2
- package/dist/internal/components/FileUpload.js +1 -2
- package/dist/internal/components/FullScreenModal.js +1 -2
- package/dist/internal/components/HelpBlock.js +1 -2
- package/dist/internal/components/HoverCard.js +1 -2
- package/dist/internal/components/InputGroup.js +1 -2
- package/dist/internal/components/Kbd.js +1 -2
- package/dist/internal/components/Label.js +2 -3
- package/dist/internal/components/Link.js +2 -3
- package/dist/internal/components/MarkedText.js +1 -2
- package/dist/internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js +3 -4
- package/dist/internal/components/MergeEditor/PaneHeader.js +1 -2
- package/dist/internal/components/MergeEditor/constants.js +1 -2
- package/dist/internal/components/MergeEditor/useMergeDiff.js +1 -2
- package/dist/internal/components/Modal.js +1 -2
- package/dist/internal/components/Navbar.js +1 -2
- package/dist/internal/components/Pagination.js +1 -2
- package/dist/internal/components/PanelWithDetails.js +4 -5
- package/dist/internal/components/Popconfirm.js +1 -2
- package/dist/internal/components/Popover.js +1 -2
- package/dist/internal/components/Progress.js +2 -3
- package/dist/internal/components/RadioGroup.js +1 -2
- package/dist/internal/components/Resizable.js +1 -2
- package/dist/internal/components/ScrollArea.js +3 -5
- package/dist/internal/components/ScrollArea.js.map +1 -1
- package/dist/internal/components/Search.js +1 -2
- package/dist/internal/components/Select.js +1 -2
- package/dist/internal/components/Separator.js +2 -3
- package/dist/internal/components/Sheet.js +1 -2
- package/dist/internal/components/Sidebar.js +1 -2
- package/dist/internal/components/Skeleton/Skeleton.js +2 -3
- package/dist/internal/components/Skeleton/SkeletonList.js +2 -3
- package/dist/internal/components/Slider.js +1 -2
- package/dist/internal/components/SpotlightBackdrop.js +3 -5
- package/dist/internal/components/SpotlightBackdrop.js.map +1 -1
- package/dist/internal/components/Stepper.js +1 -2
- package/dist/internal/components/Switch.js +1 -2
- package/dist/internal/components/Table.js +1 -2
- package/dist/internal/components/Tabs.js +1 -2
- package/dist/internal/components/ThemeProvider.js +2 -2
- package/dist/internal/components/TimePicker.js +1 -2
- package/dist/internal/components/Timeline.js +1 -2
- package/dist/internal/components/Toast.js +2 -2
- package/dist/internal/components/Toggle.js +2 -3
- package/dist/internal/components/ToggleGroup.js +1 -2
- package/dist/internal/components/Tooltip.js +1 -2
- package/dist/internal/components/Truncated.js +3 -4
- package/dist/internal/components/Workbench.js +1 -2
- package/dist/internal/components/ZoomableSvg.js +1 -2
- package/dist/internal/hooks/useAltDigitHotkey.js +1 -2
- package/dist/internal/hooks/useAutosizeInput.js +1 -2
- package/dist/internal/hooks/useScrollbarPosition.js +2 -3
- package/dist/internal/hooks/useStableCallback.js +1 -2
- package/dist/internal/hooks/useTimeout.js +18 -0
- package/dist/internal/hooks/useTimeout.js.map +1 -0
- package/dist/internal/utils/accessibleName.js +1 -2
- package/dist/internal/utils/mergeRefs.js +1 -2
- package/dist/internal/utils.js +3 -3
- package/dist/markdown-editor.d.ts +0 -4
- package/dist/markdown-editor.js +30 -49
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.d.ts +0 -2
- package/dist/mermaid.js +1 -2
- package/dist/rjsf.d.ts +0 -8
- package/dist/rjsf.js +47 -78
- package/dist/rjsf.js.map +1 -1
- package/dist/{rolldown-runtime-Bdc48AWt.js → rolldown-runtime-BrwM56v-.js} +2 -3
- package/dist/{styles-T8xwr0sR.js → styles-BXXXosW_.js} +2 -3
- package/dist/{styles-T8xwr0sR.js.map → styles-BXXXosW_.js.map} +1 -1
- package/dist/{styles-DxazJ8Mz.js → styles-nwtCRF7y.js} +2 -3
- package/dist/{styles-DxazJ8Mz.js.map → styles-nwtCRF7y.js.map} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{svgCache-Dhmbe-7i.js → svgCache-BzvN_fgr.js} +2 -3
- package/dist/{svgCache-Dhmbe-7i.js.map → svgCache-BzvN_fgr.js.map} +1 -1
- package/dist/{svgTransforms-Hnvev3Vs.js → svgTransforms-BBxxO9T6.js} +4 -6
- package/dist/{svgTransforms-Hnvev3Vs.js.map → svgTransforms-BBxxO9T6.js.map} +1 -1
- package/dist/testing.d.ts +0 -2
- package/dist/testing.js +2 -3
- package/dist/{themeScopeContext-CEVXbYvZ.js → themeScopeContext-BZGPdyG8.js} +6 -11
- package/dist/{themeScopeContext-CEVXbYvZ.js.map → themeScopeContext-BZGPdyG8.js.map} +1 -1
- package/dist/{themeTokens-DCeb62ap.js → themeTokens-B60cQtAY.js} +4 -6
- package/dist/{themeTokens-DCeb62ap.js.map → themeTokens-B60cQtAY.js.map} +1 -1
- package/dist/{toast-Y3cTMBW8.js → toast-Dzj1EFOb.js} +10 -17
- package/dist/{toast-Y3cTMBW8.js.map → toast-Dzj1EFOb.js.map} +1 -1
- package/dist/{types-BPcAjMG0.d.ts → types-CsZuwfxc.d.ts} +1 -3
- package/dist/{useControllableState-CUYXMsfz.js → useControllableState-BCvUOC6G.js} +2 -3
- package/dist/{useControllableState-CUYXMsfz.js.map → useControllableState-BCvUOC6G.js.map} +1 -1
- package/dist/{useElement-D-RjrGa4.js → useElement-Dcoo9Jlr.js} +2 -3
- package/dist/{useElement-D-RjrGa4.js.map → useElement-Dcoo9Jlr.js.map} +1 -1
- package/dist/{useMergeDiff-CvowEXJ1.js → useMergeDiff-DFIATaTw.js} +3 -5
- package/dist/{useMergeDiff-CvowEXJ1.js.map → useMergeDiff-DFIATaTw.js.map} +1 -1
- package/dist/{utils-DwC9u0tM.js → utils-DjFceY3H.js} +18 -34
- package/dist/utils-DjFceY3H.js.map +1 -0
- package/dist/vega.d.ts +1 -5
- package/dist/vega.js +3 -4
- package/dist/{vegaTheme-ISwGXvof.js → vegaTheme-BcTNRmVS.js} +3 -4
- package/dist/{vegaTheme-ISwGXvof.js.map → vegaTheme-BcTNRmVS.js.map} +1 -1
- package/dist/{vegaTokens-DCkvpIVE.js → vegaTokens-DnCcy7JY.js} +3 -4
- package/dist/{vegaTokens-DCkvpIVE.js.map → vegaTokens-DnCcy7JY.js.map} +1 -1
- package/package.json +40 -40
- package/src/styles.css +70 -4
- package/src/theme.css +117 -11
- package/dist/AIKit-CaAW4GLx.js.map +0 -1
- package/dist/AlertModal-D4AtpvLS.js.map +0 -1
- package/dist/Badge-5GHIsgRS.js.map +0 -1
- package/dist/Button-BNkyYU8u.js.map +0 -1
- package/dist/Calendar-BnKi1kPu.js.map +0 -1
- package/dist/Combobox-CaKqgstG.js.map +0 -1
- package/dist/DropdownMenu-CcVbZ_5u.js.map +0 -1
- package/dist/HoverCard-Cv5rmvJq.js +0 -26
- package/dist/HoverCard-Cv5rmvJq.js.map +0 -1
- package/dist/Modal-CbUz-5YH.js.map +0 -1
- package/dist/ModalTitle-cy0Ht9VY.js.map +0 -1
- package/dist/Popconfirm-DwLCYNaF.js.map +0 -1
- package/dist/Popover-DtUDwUVO.js.map +0 -1
- package/dist/Search-vyZwGKMU.js.map +0 -1
- package/dist/SearchInput-DyYXyw3u.js.map +0 -1
- package/dist/Select-B22hB_-w.js.map +0 -1
- package/dist/Sheet-0TWKTqid.js.map +0 -1
- package/dist/TextInput-CR0_USaY.js.map +0 -1
- package/dist/utils-DwC9u0tM.js.map +0 -1
package/dist/rjsf.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { cn } from "./classNames-
|
|
2
|
-
import { Tooltip, debounce } from "./utils-
|
|
3
|
-
import { BookOpen, Info, Trash2 } from "./icons-
|
|
4
|
-
import { Button } from "./Button-
|
|
1
|
+
import { cn } from "./classNames-DkX30VJU.js";
|
|
2
|
+
import { Tooltip, debounce } from "./utils-DjFceY3H.js";
|
|
3
|
+
import { BookOpen, Info, Trash2 } from "./icons-DDR9dFSr.js";
|
|
4
|
+
import { Button } from "./Button-DbvGzEDb.js";
|
|
5
5
|
import { Label } from "./internal/components/Label.js";
|
|
6
6
|
import { Link } from "./internal/components/Link.js";
|
|
7
7
|
import { useStableCallback } from "./internal/hooks/useStableCallback.js";
|
|
8
|
-
import { TextInput } from "./TextInput
|
|
9
|
-
import { RadioGroup } from "./RadioGroup-
|
|
10
|
-
import { Checkbox } from "./Checkbox-
|
|
11
|
-
import { Combobox } from "./Combobox-
|
|
8
|
+
import { TextInput } from "./TextInput--1CfZybC.js";
|
|
9
|
+
import { RadioGroup } from "./RadioGroup-B9oC8P15.js";
|
|
10
|
+
import { Checkbox } from "./Checkbox-B2jLlyaO.js";
|
|
11
|
+
import { Combobox } from "./Combobox-DYjvYgl3.js";
|
|
12
12
|
import { MultiCombobox } from "./internal/blocks/MultiCombobox.js";
|
|
13
|
-
import { FormGroup } from "./FormGroup-
|
|
13
|
+
import { FormGroup } from "./FormGroup-QJB21LKp.js";
|
|
14
14
|
import { NumberInput } from "./internal/blocks/NumberInput.js";
|
|
15
15
|
import { Textarea } from "./internal/blocks/Textarea.js";
|
|
16
|
-
import { DateInput } from "./DateInput-
|
|
16
|
+
import { DateInput } from "./DateInput-DJNX7Vdx.js";
|
|
17
17
|
import { PasswordInput } from "./internal/blocks/PasswordInput.js";
|
|
18
|
-
import { Alert } from "./Alert-
|
|
18
|
+
import { Alert } from "./Alert-DziS8n1H.js";
|
|
19
19
|
import { CollapsiblePanel } from "./internal/components/CollapsiblePanel.js";
|
|
20
|
-
import { Tabs, TabsContent } from "./Tabs-
|
|
21
|
-
import { CodeEditor, isLanguageMode } from "./CodeEditor-
|
|
20
|
+
import { Tabs, TabsContent } from "./Tabs-DmJB4l_N.js";
|
|
21
|
+
import { CodeEditor, isLanguageMode } from "./CodeEditor-D_b-ZCng.js";
|
|
22
22
|
import { createContext, isValidElement, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
23
23
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
24
24
|
import DOMPurify from "dompurify";
|
|
25
25
|
import Form from "@rjsf/core";
|
|
26
26
|
import validator from "@rjsf/validator-ajv8";
|
|
27
27
|
import { enumOptionsDeselectValue, enumOptionsIsSelected, enumOptionsSelectValue, optionId, useDeepCompareMemo } from "@rjsf/utils";
|
|
28
|
-
|
|
28
|
+
// src/blocks/RjsfSchemaEditor/fieldHelpers.ts
|
|
29
29
|
/** No-op function reused as onBlur/onFocus stub in custom fields. */
|
|
30
30
|
const noop = () => {};
|
|
31
31
|
const NullField = () => null;
|
|
@@ -151,14 +151,12 @@ const isContainerSchema = (schema) => {
|
|
|
151
151
|
* schema default that sibling `options.dependencies` resolve against.
|
|
152
152
|
*/
|
|
153
153
|
const isHiddenContainer = (fieldUiSchema, schema) => isHiddenField(fieldUiSchema) && isContainerSchema(schema);
|
|
154
|
-
|
|
155
|
-
//#region src/blocks/RjsfSchemaEditor/markdownContext.ts
|
|
154
|
+
// src/blocks/RjsfSchemaEditor/markdownContext.ts
|
|
156
155
|
/** Falls back to plain text when the host app doesn't provide a markdown renderer. */
|
|
157
156
|
const RenderMarkdownContext = createContext((source) => source);
|
|
158
157
|
const RenderMarkdownProvider = RenderMarkdownContext;
|
|
159
158
|
const useRenderMarkdown = () => use(RenderMarkdownContext);
|
|
160
|
-
|
|
161
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/CodeEditorWidget.tsx
|
|
159
|
+
// src/blocks/RjsfSchemaEditor/widgets/CodeEditorWidget.tsx
|
|
162
160
|
const isValidJson = (raw) => {
|
|
163
161
|
try {
|
|
164
162
|
const parsed = JSON.parse(raw);
|
|
@@ -218,8 +216,7 @@ const CodeEditorWidget = ({ id, value, onChange, disabled, readonly, options })
|
|
|
218
216
|
})
|
|
219
217
|
});
|
|
220
218
|
};
|
|
221
|
-
|
|
222
|
-
//#region src/blocks/RjsfSchemaEditor/fields/CodeEditorField.tsx
|
|
219
|
+
// src/blocks/RjsfSchemaEditor/fields/CodeEditorField.tsx
|
|
223
220
|
/**
|
|
224
221
|
* Field wrapper for CodeEditorWidget when used with type: "object".
|
|
225
222
|
* RJSF only applies ui:widget to primitive types, so object-typed
|
|
@@ -236,8 +233,7 @@ const CodeEditorField = ({ fieldPathId, formData, onChange, disabled, readonly,
|
|
|
236
233
|
options: uiOptions ?? {}
|
|
237
234
|
});
|
|
238
235
|
};
|
|
239
|
-
|
|
240
|
-
//#region src/blocks/RjsfSchemaEditor/SchemaDescription.tsx
|
|
236
|
+
// src/blocks/RjsfSchemaEditor/SchemaDescription.tsx
|
|
241
237
|
/** Renders a schema description with sanitized HTML support (links, formatting, etc.). */
|
|
242
238
|
const SchemaDescription = ({ description }) => {
|
|
243
239
|
if (!description) return null;
|
|
@@ -246,8 +242,7 @@ const SchemaDescription = ({ description }) => {
|
|
|
246
242
|
dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(description) }
|
|
247
243
|
});
|
|
248
244
|
};
|
|
249
|
-
|
|
250
|
-
//#region src/blocks/RjsfSchemaEditor/fields/GridObjectField.tsx
|
|
245
|
+
// src/blocks/RjsfSchemaEditor/fields/GridObjectField.tsx
|
|
251
246
|
/**
|
|
252
247
|
* Custom field that renders an object's properties in a responsive grid layout.
|
|
253
248
|
* Used for schema objects with `format: "grid"` or `"grid-strict"`.
|
|
@@ -323,8 +318,7 @@ const GridObjectField = ({ schema, uiSchema = {}, formData, onChange, disabled,
|
|
|
323
318
|
children: [/* @__PURE__ */ jsx(SchemaDescription, { description: schema.description }), gridContent]
|
|
324
319
|
});
|
|
325
320
|
};
|
|
326
|
-
|
|
327
|
-
//#region src/blocks/RjsfSchemaEditor/fields/InfoField.tsx
|
|
321
|
+
// src/blocks/RjsfSchemaEditor/fields/InfoField.tsx
|
|
328
322
|
const VALID_ALERT_TYPES = /* @__PURE__ */ new Set([
|
|
329
323
|
"info",
|
|
330
324
|
"warning",
|
|
@@ -352,8 +346,7 @@ const InfoField = ({ schema, uiSchema }) => {
|
|
|
352
346
|
})
|
|
353
347
|
});
|
|
354
348
|
};
|
|
355
|
-
|
|
356
|
-
//#region src/blocks/RjsfSchemaEditor/TooltipIcon.tsx
|
|
349
|
+
// src/blocks/RjsfSchemaEditor/TooltipIcon.tsx
|
|
357
350
|
const TooltipIcon = ({ rawHelp }) => {
|
|
358
351
|
const renderMarkdown = useRenderMarkdown();
|
|
359
352
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -367,8 +360,7 @@ const TooltipIcon = ({ rawHelp }) => {
|
|
|
367
360
|
})
|
|
368
361
|
});
|
|
369
362
|
};
|
|
370
|
-
|
|
371
|
-
//#region src/blocks/RjsfSchemaEditor/fields/TableArrayField.tsx
|
|
363
|
+
// src/blocks/RjsfSchemaEditor/fields/TableArrayField.tsx
|
|
372
364
|
/** Default value for a freshly added cell/item, honouring the schema default. */
|
|
373
365
|
const defaultValueFor = (prop) => {
|
|
374
366
|
if (prop.default !== void 0) return prop.default;
|
|
@@ -516,8 +508,7 @@ const TableArrayField = ({ schema, uiSchema = {}, formData, onChange, disabled,
|
|
|
516
508
|
]
|
|
517
509
|
});
|
|
518
510
|
};
|
|
519
|
-
|
|
520
|
-
//#region src/blocks/RjsfSchemaEditor/fields/TabsObjectField.tsx
|
|
511
|
+
// src/blocks/RjsfSchemaEditor/fields/TabsObjectField.tsx
|
|
521
512
|
/**
|
|
522
513
|
* Custom field that renders an object's properties as tabs.
|
|
523
514
|
* Used for schema objects with `format: "tabs"`, `"tabs-top"`, or `"categories"`.
|
|
@@ -578,8 +569,7 @@ const TabsObjectField = ({ schema, uiSchema = {}, formData, onChange, disabled,
|
|
|
578
569
|
]
|
|
579
570
|
});
|
|
580
571
|
};
|
|
581
|
-
|
|
582
|
-
//#region src/blocks/RjsfSchemaEditor/templates/ArrayFieldItemTemplate.tsx
|
|
572
|
+
// src/blocks/RjsfSchemaEditor/templates/ArrayFieldItemTemplate.tsx
|
|
583
573
|
const ArrayFieldItemTemplate = ({ children, index, totalItems, schema, hasToolbar, disabled, readonly, buttonsProps }) => {
|
|
584
574
|
const isObject = schema.type === "object";
|
|
585
575
|
const canRemove = hasToolbar && buttonsProps.hasRemove && !disabled && !readonly;
|
|
@@ -628,8 +618,7 @@ const ArrayFieldItemTemplate = ({ children, index, totalItems, schema, hasToolba
|
|
|
628
618
|
})
|
|
629
619
|
});
|
|
630
620
|
};
|
|
631
|
-
|
|
632
|
-
//#region src/blocks/RjsfSchemaEditor/templates/ArrayFieldTemplate.tsx
|
|
621
|
+
// src/blocks/RjsfSchemaEditor/templates/ArrayFieldTemplate.tsx
|
|
633
622
|
const ArrayFieldTemplate = ({ items, canAdd, onAddClick, title, schema, disabled, readonly }) => {
|
|
634
623
|
const isReadOnly = disabled || readonly;
|
|
635
624
|
const itemLabel = typeof schema.items === "object" && schema.items !== null && !Array.isArray(schema.items) ? schema.items.title || "Item" : "Item";
|
|
@@ -652,8 +641,7 @@ const ArrayFieldTemplate = ({ items, canAdd, onAddClick, title, schema, disabled
|
|
|
652
641
|
]
|
|
653
642
|
});
|
|
654
643
|
};
|
|
655
|
-
|
|
656
|
-
//#region src/blocks/RjsfSchemaEditor/templates/DescriptionFieldTemplate.tsx
|
|
644
|
+
// src/blocks/RjsfSchemaEditor/templates/DescriptionFieldTemplate.tsx
|
|
657
645
|
/**
|
|
658
646
|
* Custom description template that renders HTML in schema descriptions.
|
|
659
647
|
* Uses DOMPurify to sanitize the HTML before rendering.
|
|
@@ -672,8 +660,7 @@ const DescriptionFieldTemplate = ({ description, id }) => {
|
|
|
672
660
|
dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(String(description)) }
|
|
673
661
|
});
|
|
674
662
|
};
|
|
675
|
-
|
|
676
|
-
//#region src/blocks/RjsfSchemaEditor/templates/ErrorListTemplate.tsx
|
|
663
|
+
// src/blocks/RjsfSchemaEditor/templates/ErrorListTemplate.tsx
|
|
677
664
|
const ErrorListTemplate = ({ errors }) => {
|
|
678
665
|
if (!errors.length) return null;
|
|
679
666
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -684,8 +671,7 @@ const ErrorListTemplate = ({ errors }) => {
|
|
|
684
671
|
}, `${error.property}:${error.message}`))
|
|
685
672
|
});
|
|
686
673
|
};
|
|
687
|
-
|
|
688
|
-
//#region src/blocks/RjsfSchemaEditor/RootFormDataContext.ts
|
|
674
|
+
// src/blocks/RjsfSchemaEditor/RootFormDataContext.ts
|
|
689
675
|
const RootFormDataContext = createContext({
|
|
690
676
|
data: {},
|
|
691
677
|
context: {}
|
|
@@ -693,8 +679,7 @@ const RootFormDataContext = createContext({
|
|
|
693
679
|
const RootFormDataProvider = RootFormDataContext;
|
|
694
680
|
const useRootFormData = () => use(RootFormDataContext).data;
|
|
695
681
|
const useRootContext = () => use(RootFormDataContext).context;
|
|
696
|
-
|
|
697
|
-
//#region src/blocks/RjsfSchemaEditor/templates/FieldTemplate.tsx
|
|
682
|
+
// src/blocks/RjsfSchemaEditor/templates/FieldTemplate.tsx
|
|
698
683
|
const resolveByPath$1 = (parts, data) => {
|
|
699
684
|
let current = data;
|
|
700
685
|
for (const part of parts) {
|
|
@@ -812,8 +797,7 @@ const FieldTemplate = (props) => {
|
|
|
812
797
|
});
|
|
813
798
|
return /* @__PURE__ */ jsx(FieldTemplateBody, { ...props });
|
|
814
799
|
};
|
|
815
|
-
|
|
816
|
-
//#region src/blocks/RjsfSchemaEditor/templates/ObjectFieldTemplate.tsx
|
|
800
|
+
// src/blocks/RjsfSchemaEditor/templates/ObjectFieldTemplate.tsx
|
|
817
801
|
const ObjectFieldTemplate = ({ title, description, properties, formData, uiSchema, schema, fieldPathId }) => {
|
|
818
802
|
const isRoot = !fieldPathId?.path?.length;
|
|
819
803
|
const uiOptions = uiSchema?.["ui:options"];
|
|
@@ -865,8 +849,7 @@ const ObjectFieldTemplate = ({ title, description, properties, formData, uiSchem
|
|
|
865
849
|
]
|
|
866
850
|
});
|
|
867
851
|
};
|
|
868
|
-
|
|
869
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/CheckboxesWidget.tsx
|
|
852
|
+
// src/blocks/RjsfSchemaEditor/widgets/CheckboxesWidget.tsx
|
|
870
853
|
/**
|
|
871
854
|
* A group of checkboxes for an array of enum values (`format: 'checkbox'`).
|
|
872
855
|
*
|
|
@@ -888,8 +871,7 @@ const CheckboxesWidget = ({ id, value, onChange, disabled, readonly, options })
|
|
|
888
871
|
}, index))
|
|
889
872
|
});
|
|
890
873
|
};
|
|
891
|
-
|
|
892
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/CheckboxWidget.tsx
|
|
874
|
+
// src/blocks/RjsfSchemaEditor/widgets/CheckboxWidget.tsx
|
|
893
875
|
const CheckboxWidget = ({ id, value, onChange, disabled, readonly, label, hideLabel }) => {
|
|
894
876
|
return /* @__PURE__ */ jsx(Checkbox, {
|
|
895
877
|
id,
|
|
@@ -899,8 +881,7 @@ const CheckboxWidget = ({ id, value, onChange, disabled, readonly, label, hideLa
|
|
|
899
881
|
children: hideLabel ? void 0 : label
|
|
900
882
|
});
|
|
901
883
|
};
|
|
902
|
-
|
|
903
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/DateWidget.tsx
|
|
884
|
+
// src/blocks/RjsfSchemaEditor/widgets/DateWidget.tsx
|
|
904
885
|
const DateWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly, placeholder, rawErrors }) => {
|
|
905
886
|
const dateValue = (() => {
|
|
906
887
|
if (!value) return null;
|
|
@@ -928,8 +909,7 @@ const DateWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly,
|
|
|
928
909
|
state: rawErrors?.length ? "error" : "default"
|
|
929
910
|
});
|
|
930
911
|
};
|
|
931
|
-
|
|
932
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/DynamicSelectWidget.tsx
|
|
912
|
+
// src/blocks/RjsfSchemaEditor/widgets/DynamicSelectWidget.tsx
|
|
933
913
|
/**
|
|
934
914
|
* Widget for fields using json-editor's enumSource/watch pattern.
|
|
935
915
|
* Reads options dynamically from the root form data based on watched paths.
|
|
@@ -959,8 +939,7 @@ const DynamicSelectWidget = ({ id, value, onChange, onBlur, disabled, readonly,
|
|
|
959
939
|
onValueChange: (selected) => onChange(selected?.value ?? "")
|
|
960
940
|
});
|
|
961
941
|
};
|
|
962
|
-
|
|
963
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/MultiSelectWidget.tsx
|
|
942
|
+
// src/blocks/RjsfSchemaEditor/widgets/MultiSelectWidget.tsx
|
|
964
943
|
/**
|
|
965
944
|
* A `MultiCombobox` over the `items.enum` options of a multi-value array.
|
|
966
945
|
*
|
|
@@ -1018,8 +997,7 @@ const MultiSelectWidget = ({ id, value, onChange, onBlur, disabled, readonly, op
|
|
|
1018
997
|
onValueChange: (next) => onChange(next.map((item) => valueOf.get(item)))
|
|
1019
998
|
});
|
|
1020
999
|
};
|
|
1021
|
-
|
|
1022
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/NumberWidget.tsx
|
|
1000
|
+
// src/blocks/RjsfSchemaEditor/widgets/NumberWidget.tsx
|
|
1023
1001
|
const NumberWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly, placeholder, schema, rawErrors }) => {
|
|
1024
1002
|
return /* @__PURE__ */ jsx(NumberInput, {
|
|
1025
1003
|
id,
|
|
@@ -1035,8 +1013,7 @@ const NumberWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly
|
|
|
1035
1013
|
state: rawErrors?.length ? "error" : "default"
|
|
1036
1014
|
});
|
|
1037
1015
|
};
|
|
1038
|
-
|
|
1039
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/PasswordWidget.tsx
|
|
1016
|
+
// src/blocks/RjsfSchemaEditor/widgets/PasswordWidget.tsx
|
|
1040
1017
|
const PasswordWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly, placeholder, rawErrors }) => {
|
|
1041
1018
|
return /* @__PURE__ */ jsx(PasswordInput, {
|
|
1042
1019
|
id,
|
|
@@ -1050,8 +1027,7 @@ const PasswordWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readon
|
|
|
1050
1027
|
state: rawErrors?.length ? "error" : "default"
|
|
1051
1028
|
});
|
|
1052
1029
|
};
|
|
1053
|
-
|
|
1054
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/RadioWidget.tsx
|
|
1030
|
+
// src/blocks/RjsfSchemaEditor/widgets/RadioWidget.tsx
|
|
1055
1031
|
const RadioWidget = ({ id, value, onChange, disabled, readonly, options }) => {
|
|
1056
1032
|
const enumOptions = options.enumOptions ?? [];
|
|
1057
1033
|
return /* @__PURE__ */ jsx(RadioGroup, {
|
|
@@ -1066,8 +1042,7 @@ const RadioWidget = ({ id, value, onChange, disabled, readonly, options }) => {
|
|
|
1066
1042
|
}, opt.value))
|
|
1067
1043
|
});
|
|
1068
1044
|
};
|
|
1069
|
-
|
|
1070
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/SelectWidget.tsx
|
|
1045
|
+
// src/blocks/RjsfSchemaEditor/widgets/SelectWidget.tsx
|
|
1071
1046
|
const SelectWidget = ({ id, value, schema, onChange, onBlur, disabled, readonly, options, placeholder, required, rawErrors }) => {
|
|
1072
1047
|
const enumOptions = options.enumOptions ?? [];
|
|
1073
1048
|
const isBoolean = schema.type === "boolean";
|
|
@@ -1096,8 +1071,7 @@ const SelectWidget = ({ id, value, schema, onChange, onBlur, disabled, readonly,
|
|
|
1096
1071
|
}
|
|
1097
1072
|
});
|
|
1098
1073
|
};
|
|
1099
|
-
|
|
1100
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/TemplateWatchWidget.tsx
|
|
1074
|
+
// src/blocks/RjsfSchemaEditor/widgets/TemplateWatchWidget.tsx
|
|
1101
1075
|
const stringify = (value) => {
|
|
1102
1076
|
if (value == null) return "";
|
|
1103
1077
|
if (typeof value === "object") return JSON.stringify(value);
|
|
@@ -1166,8 +1140,7 @@ const TemplateWatchWidget = ({ id, value, onChange, disabled, readonly, rawError
|
|
|
1166
1140
|
state: rawErrors?.length ? "error" : "default"
|
|
1167
1141
|
});
|
|
1168
1142
|
};
|
|
1169
|
-
|
|
1170
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/TextareaWidget.tsx
|
|
1143
|
+
// src/blocks/RjsfSchemaEditor/widgets/TextareaWidget.tsx
|
|
1171
1144
|
const TextareaWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly, placeholder, options, rawErrors }) => {
|
|
1172
1145
|
const rows = options.rows ?? 5;
|
|
1173
1146
|
return /* @__PURE__ */ jsx(Textarea, {
|
|
@@ -1182,8 +1155,7 @@ const TextareaWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readon
|
|
|
1182
1155
|
state: rawErrors?.length ? "error" : "default"
|
|
1183
1156
|
});
|
|
1184
1157
|
};
|
|
1185
|
-
|
|
1186
|
-
//#region src/blocks/RjsfSchemaEditor/widgets/TextWidget.tsx
|
|
1158
|
+
// src/blocks/RjsfSchemaEditor/widgets/TextWidget.tsx
|
|
1187
1159
|
const TextWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly, placeholder, schema, options, rawErrors }) => {
|
|
1188
1160
|
const stringValue = value == null ? "" : typeof value === "object" ? "" : String(value);
|
|
1189
1161
|
const shouldTrim = !!options.trim;
|
|
@@ -1202,8 +1174,7 @@ const TextWidget = ({ id, value, onChange, onBlur, onFocus, disabled, readonly,
|
|
|
1202
1174
|
state: rawErrors?.length ? "error" : "default"
|
|
1203
1175
|
});
|
|
1204
1176
|
};
|
|
1205
|
-
|
|
1206
|
-
//#region src/blocks/RjsfSchemaEditor/registry.ts
|
|
1177
|
+
// src/blocks/RjsfSchemaEditor/registry.ts
|
|
1207
1178
|
const StubWidget = () => null;
|
|
1208
1179
|
const StubField = () => null;
|
|
1209
1180
|
const defaultFields = {
|
|
@@ -1243,8 +1214,7 @@ const defaultTemplates = {
|
|
|
1243
1214
|
ArrayFieldItemTemplate,
|
|
1244
1215
|
ErrorListTemplate
|
|
1245
1216
|
};
|
|
1246
|
-
|
|
1247
|
-
//#region src/blocks/RjsfSchemaEditor/schemaUtils.ts
|
|
1217
|
+
// src/blocks/RjsfSchemaEditor/schemaUtils.ts
|
|
1248
1218
|
/** Resolves `$ref` against definitions; sibling keys (title, options) override the result. */
|
|
1249
1219
|
const resolveRef = (propSchema, definitions) => {
|
|
1250
1220
|
if (!propSchema.$ref || !definitions) return propSchema;
|
|
@@ -1543,8 +1513,7 @@ const sanitizeSchema = (schema, definitions, isConditionalBranch = false) => {
|
|
|
1543
1513
|
if (cleaned.items && typeof cleaned.items === "object" && !Array.isArray(cleaned.items)) cleaned.items = sanitizeSchema(cleaned.items, defs);
|
|
1544
1514
|
return cleaned;
|
|
1545
1515
|
};
|
|
1546
|
-
|
|
1547
|
-
//#region src/blocks/RjsfSchemaEditor/RjsfSchemaEditor.tsx
|
|
1516
|
+
// src/blocks/RjsfSchemaEditor/RjsfSchemaEditor.tsx
|
|
1548
1517
|
const defaultRenderMarkdown = (source) => source;
|
|
1549
1518
|
/** JSON with keys sorted at every level, so key order never makes two equal objects differ. */
|
|
1550
1519
|
const stableStringify = (obj) => JSON.stringify(obj, (_key, val) => {
|
|
@@ -1588,7 +1557,8 @@ const RjsfSchemaEditor = ({ schema, value, onChange, readOnly, inForm, globalCon
|
|
|
1588
1557
|
const debouncedOnChange = useMemo(() => debounce((data) => {
|
|
1589
1558
|
const dataJson = stableStringify(data);
|
|
1590
1559
|
if (dataJson !== stableStringify(valueRef.current)) {
|
|
1591
|
-
if (
|
|
1560
|
+
if (mountedFormDataJsonRef.current && dataJson === mountedFormDataJsonRef.current) return;
|
|
1561
|
+
mountedFormDataJsonRef.current = null;
|
|
1592
1562
|
lastSentJsonRef.current = dataJson;
|
|
1593
1563
|
handleValueChange(data);
|
|
1594
1564
|
}
|
|
@@ -1689,7 +1659,6 @@ const RjsfSchemaEditor = ({ schema, value, onChange, readOnly, inForm, globalCon
|
|
|
1689
1659
|
})
|
|
1690
1660
|
});
|
|
1691
1661
|
};
|
|
1692
|
-
//#endregion
|
|
1693
1662
|
export { RjsfSchemaEditor, buildDynamicOptions, resolveByPath, useRootFormData };
|
|
1694
1663
|
|
|
1695
1664
|
//# sourceMappingURL=rjsf.js.map
|