@12-apps/ui 6.36.0 → 6.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +3 -3
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +36 -36
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +48 -48
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -3
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +4 -4
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +9 -9
- package/dist/_internal/components/data-display/DataViews/base-card.js +2 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +7 -7
- package/dist/_internal/components/data-display/DataViews/base-list-card-gutters.js +2 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +6 -6
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +10 -10
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +11 -11
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +9 -9
- package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +12 -12
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +10 -10
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +33 -33
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +15 -15
- package/dist/_internal/components/data-display/DataViews/data-views-layout-context.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +13 -13
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +12 -12
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +12 -12
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +3 -3
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +5 -5
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +5 -5
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +2 -2
- package/dist/_internal/components/data-display/index.js +2 -2
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +3 -3
- package/dist/_internal/components/feedback/index.js +4 -4
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +6 -6
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +4 -4
- package/dist/_internal/components/form/AddressAutocomplete/AddressFallbackField.js +3 -2
- package/dist/_internal/components/form/AddressAutocomplete/AddressInputField.js +3 -2
- package/dist/_internal/components/form/AddressAutocomplete/AddressSuggestionsPaper.js +2 -1
- package/dist/_internal/components/form/AddressAutocomplete/AddressTextField.js +2 -1
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +3 -2
- package/dist/_internal/components/form/Autocomplete/Autocomplete.parts.js +2 -1
- package/dist/_internal/components/form/Button/Button.js +2 -2
- package/dist/_internal/components/form/Button/Button.styles.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +6 -6
- package/dist/_internal/components/form/CategorySelect/CategoryPanelFoot.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategoryPanelHead.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryPanelSurface.js +2 -1
- package/dist/_internal/components/form/CategorySelect/CategoryRows.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategorySelect.js +10 -10
- package/dist/_internal/components/form/CategorySelect/CategorySelect.styles.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryTrigger.js +2 -2
- package/dist/_internal/components/form/CepField/CepField.js +4 -4
- package/dist/_internal/components/form/Checkbox/Checkbox.js +1 -1
- package/dist/_internal/components/form/CodeEditor/CodeEditor.helpers.js +1 -1
- package/dist/_internal/components/form/CodeEditor/CodeEditor.js +2 -2
- package/dist/_internal/components/form/Command/Command.hooks.js +1 -1
- package/dist/_internal/components/form/Command/Command.js +4 -4
- package/dist/_internal/components/form/Command/Command.parts.js +2 -1
- package/dist/_internal/components/form/Command/Command.styles.js +1 -1
- package/dist/_internal/components/form/CreatableSelect/CreatableSelect.js +2 -2
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +2 -2
- package/dist/_internal/components/form/DateRangePicker/DateRangePickerQuickList.js +1 -1
- package/dist/_internal/components/form/Form/Form.js +1 -1
- package/dist/_internal/components/form/HeaderActions/HeaderActions.js +1 -1
- package/dist/_internal/components/form/Input/Input.js +3 -2
- package/dist/_internal/components/form/Input/Input.styles.js +2 -1
- package/dist/_internal/components/form/InputOTP/InputOTP.js +2 -2
- package/dist/_internal/components/form/InputOTP/InputOTP.styles.js +1 -1
- package/dist/_internal/components/form/Label/Label.js +2 -2
- package/dist/_internal/components/form/Label/Label.styles.js +1 -1
- package/dist/_internal/components/form/Menubar/Menubar.item.js +2 -2
- package/dist/_internal/components/form/Menubar/Menubar.js +4 -4
- package/dist/_internal/components/form/Menubar/Menubar.styles.js +1 -1
- package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +3 -3
- package/dist/_internal/components/form/PasswordStrength/PasswordStrength.js +1 -1
- package/dist/_internal/components/form/PhoneInput/PhoneInput.js +1 -1
- package/dist/_internal/components/form/RadioGroup/RadioGroup.animations.js +2 -1
- package/dist/_internal/components/form/RadioGroup/RadioGroup.js +4 -4
- package/dist/_internal/components/form/RadioGroup/RadioGroup.styles.js +2 -2
- package/dist/_internal/components/form/RadioGroup/RadioGroup.variants.js +3 -3
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +2 -2
- package/dist/_internal/components/form/RichTextEditor/RichTextEditorToolbar.js +2 -1
- package/dist/_internal/components/form/SearchPalette/SearchPalette.js +2 -2
- package/dist/_internal/components/form/SearchPalette/SearchPalette.parts.js +1 -1
- package/dist/_internal/components/form/Select/Select.js +2 -1
- package/dist/_internal/components/form/Slider/Slider.animations.js +2 -1
- package/dist/_internal/components/form/Slider/Slider.js +3 -3
- package/dist/_internal/components/form/Slider/Slider.styles.js +2 -2
- package/dist/_internal/components/form/Switch/Switch.animations.js +2 -1
- package/dist/_internal/components/form/Switch/Switch.js +4 -4
- package/dist/_internal/components/form/Switch/Switch.parts.js +3 -3
- package/dist/_internal/components/form/Switch/Switch.styles.js +2 -2
- package/dist/_internal/components/form/Textarea/Textarea.js +2 -2
- package/dist/_internal/components/form/Textarea/Textarea.styles.js +2 -1
- package/dist/_internal/components/form/Textarea/TextareaRichEditor.js +12 -11
- package/dist/_internal/components/form/Textarea/TextareaRichEditor.js.map +1 -1
- package/dist/_internal/components/form/Toggle/Toggle.js +2 -2
- package/dist/_internal/components/form/Toggle/Toggle.styles.js +1 -1
- package/dist/_internal/components/form/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/_internal/components/form/UploadButton/UploadButton.js +2 -2
- package/dist/_internal/components/form/UploadButton/UploadButton.parts.js +1 -1
- package/dist/_internal/components/form/index.js +56 -56
- package/dist/_internal/components/form/total-form/Fields/CategoryField.js +11 -11
- package/dist/_internal/components/form/total-form/Fields/CepField.js +5 -5
- package/dist/_internal/components/form/total-form/Fields/SelectField.js +3 -3
- package/dist/_internal/components/form/total-form/Fields/TextField.js +4 -4
- package/dist/_internal/components/form/total-form/Fields/ToggleField.js +3 -3
- package/dist/_internal/components/form/total-form/Fields/index.js +21 -21
- package/dist/_internal/components/form/total-form/FormContainer.js +2 -2
- package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
- package/dist/_internal/components/index.js +63 -63
- package/dist/_internal/components/layout/Dashboard/Dashboard.js +3 -3
- package/dist/_internal/components/layout/Dashboard/DashboardParts.js +2 -2
- package/dist/_internal/components/layout/index.js +3 -3
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +3 -3
- package/dist/_internal/components/navigation/index.js +3 -3
- package/dist/_internal/social-login-button/social-login-button.js +3 -3
- package/dist/_internal/user-avatar/user-avatar.js +3 -3
- package/dist/{chunk-343OLRFT.js → chunk-2BIVCYTO.js} +4 -4
- package/dist/{chunk-KH25WUSX.js → chunk-2EAAWOZ2.js} +4 -4
- package/dist/chunk-2EAAWOZ2.js.map +1 -0
- package/dist/{chunk-PNLM35GU.js → chunk-2JNHWKQK.js} +5 -5
- package/dist/{chunk-IWOVENC3.js → chunk-2XX45PC5.js} +2 -2
- package/dist/{chunk-RZ2C5CAW.js → chunk-2ZIHZLF5.js} +2 -2
- package/dist/{chunk-ZW5K4XCQ.js → chunk-34BZXJGT.js} +6 -6
- package/dist/{chunk-CHFHILTM.js → chunk-35S6QI5G.js} +2 -2
- package/dist/{chunk-KCAW6HRO.js → chunk-3AOQBR7N.js} +2 -2
- package/dist/{chunk-GVLZZCSX.js → chunk-4B5XUQQS.js} +3 -3
- package/dist/{chunk-ADHMNIWS.js → chunk-4CXEWFKO.js} +2 -2
- package/dist/{chunk-J4NXTSJY.js → chunk-4JFL62K3.js} +4 -4
- package/dist/chunk-4JFL62K3.js.map +1 -0
- package/dist/{chunk-XLYFOBBT.js → chunk-4PRZLII7.js} +19 -16
- package/dist/chunk-4PRZLII7.js.map +1 -0
- package/dist/{chunk-AMTFP7QA.js → chunk-4RDJMIWL.js} +16 -13
- package/dist/chunk-4RDJMIWL.js.map +1 -0
- package/dist/{chunk-PYIASGI7.js → chunk-4RWPGWJW.js} +39 -39
- package/dist/chunk-4RWPGWJW.js.map +1 -0
- package/dist/chunk-4T6UIYJB.js +77 -0
- package/dist/chunk-4T6UIYJB.js.map +1 -0
- package/dist/{chunk-HBICO6AX.js → chunk-4WNFOBTH.js} +26 -24
- package/dist/chunk-4WNFOBTH.js.map +1 -0
- package/dist/{chunk-JJSZP3TW.js → chunk-57JLS55D.js} +5 -5
- package/dist/{chunk-ZZM3DOEK.js → chunk-5HDYTTE7.js} +2 -2
- package/dist/{chunk-GEXM6DNR.js → chunk-5KGABAQB.js} +2 -2
- package/dist/{chunk-3A22SBIU.js → chunk-67O4GPJJ.js} +8 -4
- package/dist/chunk-67O4GPJJ.js.map +1 -0
- package/dist/{chunk-D5X4FRYX.js → chunk-6JNQLW5L.js} +2 -2
- package/dist/{chunk-NSJVQ5YJ.js → chunk-6KKQHJE7.js} +9 -4
- package/dist/chunk-6KKQHJE7.js.map +1 -0
- package/dist/{chunk-D2HKCPEH.js → chunk-6LOGBWLG.js} +9 -5
- package/dist/chunk-6LOGBWLG.js.map +1 -0
- package/dist/{chunk-TOXTJ7MU.js → chunk-6RLCBNDV.js} +8 -5
- package/dist/chunk-6RLCBNDV.js.map +1 -0
- package/dist/{chunk-K7WSPGI7.js → chunk-6WLHEZXI.js} +7 -7
- package/dist/chunk-6WLHEZXI.js.map +1 -0
- package/dist/{chunk-KJK2Q35C.js → chunk-75LOTMSN.js} +2 -2
- package/dist/{chunk-A6AKFPIQ.js → chunk-7EH4D6FU.js} +2 -2
- package/dist/{chunk-6SKXV236.js → chunk-7EM4THID.js} +9 -8
- package/dist/chunk-7EM4THID.js.map +1 -0
- package/dist/{chunk-7ZG7T2YN.js → chunk-7GHYCQCJ.js} +3 -3
- package/dist/{chunk-U4H6MGVE.js → chunk-A5UYPUS2.js} +7 -5
- package/dist/chunk-A5UYPUS2.js.map +1 -0
- package/dist/{chunk-QIKPGMMO.js → chunk-AER4245J.js} +2 -2
- package/dist/{chunk-2PBT2HQH.js → chunk-AUSUCZYR.js} +25 -24
- package/dist/chunk-AUSUCZYR.js.map +1 -0
- package/dist/{chunk-4CTLEUK3.js → chunk-AYLEZM6T.js} +2 -2
- package/dist/{chunk-JFBEZXNL.js → chunk-BAQBUKDU.js} +2 -2
- package/dist/{chunk-RQ5HZDBV.js → chunk-BN742L2M.js} +14 -8
- package/dist/chunk-BN742L2M.js.map +1 -0
- package/dist/{chunk-RKI3MRKX.js → chunk-BW62QQAG.js} +2 -2
- package/dist/{chunk-7EQCZO56.js → chunk-C3LZ3OGJ.js} +11 -11
- package/dist/chunk-C3LZ3OGJ.js.map +1 -0
- package/dist/{chunk-UL7L6MFT.js → chunk-C55AWF3U.js} +4 -4
- package/dist/{chunk-ST4YYVUK.js → chunk-C5RQBTRZ.js} +7 -3
- package/dist/chunk-C5RQBTRZ.js.map +1 -0
- package/dist/{chunk-GGWICBJD.js → chunk-CPAJYJUD.js} +2 -2
- package/dist/{chunk-5TJRJSJY.js → chunk-CQLPDY2J.js} +3 -3
- package/dist/{chunk-5UTAEHSB.js → chunk-CQPFSEJB.js} +2 -2
- package/dist/{chunk-SN2YMCTL.js → chunk-CS3KOKL3.js} +2 -2
- package/dist/{chunk-2HVNPWFV.js → chunk-D6KL74KI.js} +4 -10
- package/dist/chunk-D6KL74KI.js.map +1 -0
- package/dist/{chunk-TTAP5XFX.js → chunk-DJYL2LC6.js} +8 -3
- package/dist/chunk-DJYL2LC6.js.map +1 -0
- package/dist/{chunk-TQ2557I5.js → chunk-DUNG7D4B.js} +23 -25
- package/dist/chunk-DUNG7D4B.js.map +1 -0
- package/dist/{chunk-LWRI6HGT.js → chunk-ECNJGROX.js} +21 -19
- package/dist/chunk-ECNJGROX.js.map +1 -0
- package/dist/{chunk-FXNYV5Z6.js → chunk-F6D6HXZU.js} +3 -3
- package/dist/{chunk-7DN4UXJ3.js → chunk-FERUQ7OB.js} +14 -14
- package/dist/chunk-FERUQ7OB.js.map +1 -0
- package/dist/{chunk-TQBRWZA4.js → chunk-FFOQZRFC.js} +2 -2
- package/dist/{chunk-GXCOXJS3.js → chunk-FNG33MKA.js} +3 -3
- package/dist/{chunk-YH37X6JT.js → chunk-FNRPQE2D.js} +26 -25
- package/dist/chunk-FNRPQE2D.js.map +1 -0
- package/dist/{chunk-5SJWDABY.js → chunk-G3XLFQ2Z.js} +44 -43
- package/dist/chunk-G3XLFQ2Z.js.map +1 -0
- package/dist/{chunk-GW64UQXI.js → chunk-GHXFCMFP.js} +2 -2
- package/dist/{chunk-L3B36HA5.js → chunk-GRDPGHQJ.js} +2 -2
- package/dist/{chunk-6SS5C74Q.js → chunk-GS3RP2QE.js} +2 -2
- package/dist/{chunk-B2VXP2B2.js → chunk-GZT7MLLO.js} +2 -2
- package/dist/{chunk-AK2HOD6B.js → chunk-H5BEWPEY.js} +2 -2
- package/dist/{chunk-DY4BP5WA.js → chunk-HNPWZ3W2.js} +4 -4
- package/dist/{chunk-SYVNWXVW.js → chunk-HU7TX7RB.js} +3 -3
- package/dist/{chunk-WNUZK7NS.js → chunk-HVXIOIM5.js} +10 -8
- package/dist/chunk-HVXIOIM5.js.map +1 -0
- package/dist/{chunk-WPA26LXA.js → chunk-IKLOIONQ.js} +3 -3
- package/dist/{chunk-BXAL7OIS.js → chunk-JC22FNFA.js} +89 -88
- package/dist/chunk-JC22FNFA.js.map +1 -0
- package/dist/{chunk-DMWSXWCZ.js → chunk-JL75FJRG.js} +4 -4
- package/dist/{chunk-ZAFFKQQU.js → chunk-JLQGRZMN.js} +2 -2
- package/dist/{chunk-ZMC3N23A.js → chunk-JSD5TFDK.js} +6 -6
- package/dist/{chunk-NE6XUN5Z.js → chunk-JU4MSYYH.js} +2 -2
- package/dist/{chunk-OWA7GPWR.js → chunk-KN5J3NEZ.js} +6 -5
- package/dist/chunk-KN5J3NEZ.js.map +1 -0
- package/dist/{chunk-4GYEIWQP.js → chunk-LNHYBA4B.js} +11 -10
- package/dist/chunk-LNHYBA4B.js.map +1 -0
- package/dist/{chunk-QY4XNTNG.js → chunk-LP3JCXER.js} +4 -4
- package/dist/chunk-LP3JCXER.js.map +1 -0
- package/dist/{chunk-YBTC4XNO.js → chunk-LT4NEKXB.js} +3 -3
- package/dist/{chunk-WVC3BG6J.js → chunk-LXT3X33C.js} +11 -6
- package/dist/chunk-LXT3X33C.js.map +1 -0
- package/dist/{chunk-6KL2CJBO.js → chunk-MNHIK2OR.js} +2 -2
- package/dist/{chunk-CWDV64TD.js → chunk-N5GVW6RO.js} +5 -4
- package/dist/chunk-N5GVW6RO.js.map +1 -0
- package/dist/{chunk-JFEEV3XI.js → chunk-NB3FGWU4.js} +2 -2
- package/dist/{chunk-2UCLUDEB.js → chunk-NCPWLHZT.js} +2 -2
- package/dist/{chunk-DZNMS2SH.js → chunk-NDNYD4FG.js} +5 -5
- package/dist/{chunk-5IXHJXJX.js → chunk-NIF4IXQU.js} +5 -2
- package/dist/chunk-NIF4IXQU.js.map +1 -0
- package/dist/{chunk-EFV5QJNM.js → chunk-ORRI6FMN.js} +17 -14
- package/dist/chunk-ORRI6FMN.js.map +1 -0
- package/dist/{chunk-UFLTL2RJ.js → chunk-PH36XEB3.js} +2 -2
- package/dist/{chunk-4LQZH4PU.js → chunk-PMOEG36E.js} +2 -2
- package/dist/{chunk-EXZSHZRS.js → chunk-PWZHCBG3.js} +3 -3
- package/dist/{chunk-EFVOT3G5.js → chunk-PZ7PU4AP.js} +2 -2
- package/dist/{chunk-I62ALI7F.js → chunk-Q73PTVNO.js} +2 -2
- package/dist/{chunk-V74PXUQN.js → chunk-QEG3P5D4.js} +9 -9
- package/dist/{chunk-7LIXQZBG.js → chunk-QI5CRSOW.js} +3 -3
- package/dist/{chunk-V3LOHY4N.js → chunk-QKPD322X.js} +2 -2
- package/dist/{chunk-HAQMKV5P.js → chunk-QXSW3CNN.js} +15 -9
- package/dist/chunk-QXSW3CNN.js.map +1 -0
- package/dist/{chunk-LMXWI3DD.js → chunk-QYY37ECA.js} +5 -2
- package/dist/chunk-QYY37ECA.js.map +1 -0
- package/dist/{chunk-VECWMANF.js → chunk-RDCHT2WN.js} +7 -4
- package/dist/chunk-RDCHT2WN.js.map +1 -0
- package/dist/{chunk-35ETD7ML.js → chunk-RIEV4VXF.js} +9 -5
- package/dist/chunk-RIEV4VXF.js.map +1 -0
- package/dist/{chunk-PWF32ILG.js → chunk-SJO3K7SB.js} +3 -3
- package/dist/{chunk-TU3EGIKB.js → chunk-SSS64KYB.js} +3 -3
- package/dist/{chunk-SQYC57ZN.js → chunk-SYN46YL6.js} +2 -2
- package/dist/{chunk-DHBYO7AO.js → chunk-TCV3N44E.js} +2 -2
- package/dist/{chunk-E6RYO4QZ.js → chunk-THMT3G3L.js} +21 -15
- package/dist/chunk-THMT3G3L.js.map +1 -0
- package/dist/{chunk-JCBIPBGZ.js → chunk-TU5A2CV7.js} +19 -12
- package/dist/chunk-TU5A2CV7.js.map +1 -0
- package/dist/{chunk-YESTO24O.js → chunk-TXEN3QJ4.js} +8 -3
- package/dist/chunk-TXEN3QJ4.js.map +1 -0
- package/dist/{chunk-DVGBFT6O.js → chunk-UAVSBSV5.js} +2 -2
- package/dist/{chunk-B7BNNSM2.js → chunk-UZ6AUTE6.js} +4 -4
- package/dist/{chunk-4WQ3YXQL.js → chunk-VT5HQ2AD.js} +2 -2
- package/dist/{chunk-IBGX6H4J.js → chunk-VURQZBFH.js} +8 -4
- package/dist/chunk-VURQZBFH.js.map +1 -0
- package/dist/{chunk-7BZTZ2WG.js → chunk-VY2BMSHN.js} +8 -7
- package/dist/chunk-VY2BMSHN.js.map +1 -0
- package/dist/{chunk-SX3MEC3Q.js → chunk-VZIB5W5L.js} +2 -2
- package/dist/{chunk-HC5ZSCRG.js → chunk-W5TI46QN.js} +18 -14
- package/dist/chunk-W5TI46QN.js.map +1 -0
- package/dist/{chunk-X2AKLDPW.js → chunk-WE3LJPRN.js} +2 -2
- package/dist/{chunk-SE6ERQY5.js → chunk-WVZBYTIK.js} +6 -2
- package/dist/chunk-WVZBYTIK.js.map +1 -0
- package/dist/{chunk-CSSCGM27.js → chunk-X3OWMTLO.js} +1 -2
- package/dist/chunk-X3OWMTLO.js.map +1 -0
- package/dist/{chunk-CMK4DJDR.js → chunk-XLTHZI5W.js} +28 -20
- package/dist/chunk-XLTHZI5W.js.map +1 -0
- package/dist/{chunk-FZ4YTEP2.js → chunk-XR46FSOH.js} +2 -2
- package/dist/{chunk-CJHP6E34.js → chunk-YAFBUYVW.js} +9 -6
- package/dist/chunk-YAFBUYVW.js.map +1 -0
- package/dist/{chunk-6DN4ZULV.js → chunk-YOKUDQIJ.js} +1 -2
- package/dist/chunk-YOKUDQIJ.js.map +1 -0
- package/dist/{chunk-GE2EKMDT.js → chunk-YZ2DMP23.js} +4 -4
- package/dist/{chunk-GE2EKMDT.js.map → chunk-YZ2DMP23.js.map} +1 -1
- package/dist/{chunk-65CEXQ4L.js → chunk-Z6WSW6B4.js} +11 -7
- package/dist/chunk-Z6WSW6B4.js.map +1 -0
- package/dist/{chunk-XWWFBH2G.js → chunk-ZXSWXE6U.js} +8 -5
- package/dist/chunk-ZXSWXE6U.js.map +1 -0
- package/dist/data-display/CardKit.js +4 -4
- package/dist/data-display/DataViews.js +54 -54
- package/dist/data-display/FleetMap.js +2 -2
- package/dist/feedback/ConfirmAction.js +3 -3
- package/dist/feedback/NotificationStatusNotice.js +3 -3
- package/dist/form/AddressAutocomplete.js +6 -6
- package/dist/form/Autocomplete.js +3 -2
- package/dist/form/Button.js +2 -2
- package/dist/form/CategorySelect.js +10 -10
- package/dist/form/CepField.js +4 -4
- package/dist/form/Checkbox.js +1 -1
- package/dist/form/CodeEditor.js +2 -2
- package/dist/form/Command.js +4 -4
- package/dist/form/CreatableSelect.js +2 -2
- package/dist/form/DateRangePicker.js +2 -2
- package/dist/form/Form.js +1 -1
- package/dist/form/HeaderActions.js +1 -1
- package/dist/form/Input.js +3 -2
- package/dist/form/InputOTP.js +2 -2
- package/dist/form/Label.js +2 -2
- package/dist/form/Menubar.js +4 -4
- package/dist/form/PasswordStrength.js +1 -1
- package/dist/form/PhoneInput.js +1 -1
- package/dist/form/RadioGroup.js +4 -4
- package/dist/form/RichTextEditor.js +2 -2
- package/dist/form/SearchPalette.js +2 -2
- package/dist/form/Select.js +2 -1
- package/dist/form/Slider.js +3 -3
- package/dist/form/Switch.js +4 -4
- package/dist/form/Textarea.js +2 -2
- package/dist/form/Toggle.js +2 -2
- package/dist/form/ToggleGroup.js +1 -1
- package/dist/form/UploadButton.js +2 -2
- package/dist/form/total-form.js +25 -25
- package/dist/layout/Dashboard.js +3 -3
- package/dist/navigation/AppHeader.js +3 -3
- package/dist/social-login-button.js +3 -3
- package/dist/types/components/form/AddressAutocomplete/AddressFallbackField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressInputField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressTextField.d.ts.map +1 -1
- package/dist/types/components/form/Autocomplete/Autocomplete.parts.d.ts.map +1 -1
- package/dist/types/components/form/Button/Button.styles.d.ts +1 -1
- package/dist/types/components/form/Button/Button.styles.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategoryPanelFoot.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategoryPanelHead.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategoryPanelList.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategoryPanelSurface.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategoryRows.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategorySelect.styles.d.ts +26 -24
- package/dist/types/components/form/CategorySelect/CategorySelect.styles.d.ts.map +1 -1
- package/dist/types/components/form/CategorySelect/CategoryTrigger.d.ts.map +1 -1
- package/dist/types/components/form/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditor.helpers.d.ts +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditor.helpers.d.ts.map +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditor.types.d.ts +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/types/components/form/Command/Command.d.ts.map +1 -1
- package/dist/types/components/form/Command/Command.hooks.d.ts +1 -1
- package/dist/types/components/form/Command/Command.hooks.d.ts.map +1 -1
- package/dist/types/components/form/Command/Command.parts.d.ts.map +1 -1
- package/dist/types/components/form/CreatableSelect/CreatableSelect.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePickerQuickList.d.ts.map +1 -1
- package/dist/types/components/form/Form/Form.d.ts.map +1 -1
- package/dist/types/components/form/HeaderActions/HeaderActions.d.ts.map +1 -1
- package/dist/types/components/form/Input/Input.d.ts.map +1 -1
- package/dist/types/components/form/Input/Input.styles.d.ts.map +1 -1
- package/dist/types/components/form/Label/Label.styles.d.ts +2 -2
- package/dist/types/components/form/Label/Label.styles.d.ts.map +1 -1
- package/dist/types/components/form/Menubar/Menubar.toolbar.d.ts +1 -1
- package/dist/types/components/form/Menubar/Menubar.toolbar.d.ts.map +1 -1
- package/dist/types/components/form/PasswordStrength/PasswordStrength.d.ts.map +1 -1
- package/dist/types/components/form/RadioGroup/RadioGroup.animations.d.ts +3 -2
- package/dist/types/components/form/RadioGroup/RadioGroup.animations.d.ts.map +1 -1
- package/dist/types/components/form/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
- package/dist/types/components/form/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/components/form/RichTextEditor/RichTextEditorToolbar.d.ts.map +1 -1
- package/dist/types/components/form/SearchPalette/SearchPalette.parts.d.ts +1 -1
- package/dist/types/components/form/SearchPalette/SearchPalette.parts.d.ts.map +1 -1
- package/dist/types/components/form/Select/Select.d.ts.map +1 -1
- package/dist/types/components/form/Slider/Slider.animations.d.ts +2 -1
- package/dist/types/components/form/Slider/Slider.animations.d.ts.map +1 -1
- package/dist/types/components/form/Slider/Slider.styles.d.ts.map +1 -1
- package/dist/types/components/form/Switch/Switch.animations.d.ts +2 -1
- package/dist/types/components/form/Switch/Switch.animations.d.ts.map +1 -1
- package/dist/types/components/form/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/Textarea.styles.d.ts +1 -1
- package/dist/types/components/form/Textarea/Textarea.styles.d.ts.map +1 -1
- package/dist/types/components/form/Toggle/Toggle.d.ts.map +1 -1
- package/dist/types/components/form/Toggle/Toggle.styles.d.ts.map +1 -1
- package/dist/types/components/form/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/types/components/form/UploadButton/UploadButton.parts.d.ts.map +1 -1
- package/dist/user-avatar.js +3 -3
- package/package.json +1 -1
- package/src/components/form/AddressAutocomplete/AddressFallbackField.tsx +5 -1
- package/src/components/form/AddressAutocomplete/AddressInputField.tsx +36 -29
- package/src/components/form/AddressAutocomplete/AddressSuggestionsPaper.tsx +4 -2
- package/src/components/form/AddressAutocomplete/AddressTextField.tsx +4 -3
- package/src/components/form/Autocomplete/Autocomplete.parts.tsx +10 -7
- package/src/components/form/Button/Button.styles.ts +28 -25
- package/src/components/form/Button/Button.tsx +2 -2
- package/src/components/form/CategorySelect/CategoryPanelFoot.tsx +5 -4
- package/src/components/form/CategorySelect/CategoryPanelHead.tsx +13 -12
- package/src/components/form/CategorySelect/CategoryPanelList.tsx +3 -2
- package/src/components/form/CategorySelect/CategoryPanelSurface.tsx +2 -1
- package/src/components/form/CategorySelect/CategoryRows.tsx +4 -3
- package/src/components/form/CategorySelect/CategorySelect.styles.ts +98 -96
- package/src/components/form/CategorySelect/CategoryTrigger.tsx +5 -2
- package/src/components/form/Checkbox/Checkbox.tsx +21 -15
- package/src/components/form/CodeEditor/CodeEditor.helpers.ts +0 -2
- package/src/components/form/CodeEditor/CodeEditor.md +1 -1
- package/src/components/form/CodeEditor/CodeEditor.tsx +5 -5
- package/src/components/form/CodeEditor/CodeEditor.types.ts +1 -1
- package/src/components/form/Command/Command.hooks.ts +0 -2
- package/src/components/form/Command/Command.parts.tsx +7 -2
- package/src/components/form/Command/Command.styles.ts +11 -11
- package/src/components/form/Command/Command.tsx +14 -5
- package/src/components/form/CreatableSelect/CreatableSelect.tsx +12 -8
- package/src/components/form/DateRangePicker/DateRangePicker.tsx +10 -8
- package/src/components/form/DateRangePicker/DateRangePickerQuickList.tsx +8 -4
- package/src/components/form/Form/Form.tsx +6 -10
- package/src/components/form/HeaderActions/HeaderActions.tsx +2 -1
- package/src/components/form/Input/Input.styles.ts +17 -16
- package/src/components/form/Input/Input.tsx +4 -2
- package/src/components/form/InputOTP/InputOTP.styles.ts +3 -3
- package/src/components/form/Label/Label.styles.ts +8 -8
- package/src/components/form/Menubar/Menubar.item.tsx +2 -2
- package/src/components/form/Menubar/Menubar.styles.ts +13 -13
- package/src/components/form/Menubar/Menubar.toolbar.tsx +4 -2
- package/src/components/form/PasswordStrength/PasswordStrength.tsx +19 -18
- package/src/components/form/PhoneInput/PhoneInput.tsx +9 -9
- package/src/components/form/RadioGroup/RadioGroup.animations.ts +9 -6
- package/src/components/form/RadioGroup/RadioGroup.styles.ts +45 -43
- package/src/components/form/RichTextEditor/RichTextEditor.tsx +7 -6
- package/src/components/form/RichTextEditor/RichTextEditorToolbar.tsx +3 -1
- package/src/components/form/SearchPalette/SearchPalette.parts.tsx +8 -6
- package/src/components/form/Select/Select.tsx +14 -12
- package/src/components/form/Slider/Slider.animations.ts +7 -4
- package/src/components/form/Slider/Slider.styles.ts +43 -42
- package/src/components/form/Switch/Switch.animations.ts +7 -4
- package/src/components/form/Switch/Switch.parts.tsx +2 -2
- package/src/components/form/Switch/Switch.styles.ts +26 -22
- package/src/components/form/Textarea/Textarea.styles.ts +13 -12
- package/src/components/form/Textarea/Textarea.tsx +28 -22
- package/src/components/form/Textarea/TextareaRichEditor.tsx +10 -10
- package/src/components/form/Toggle/Toggle.styles.ts +29 -26
- package/src/components/form/Toggle/Toggle.tsx +5 -2
- package/src/components/form/ToggleGroup/ToggleGroup.tsx +18 -15
- package/src/components/form/UploadButton/UploadButton.parts.tsx +6 -5
- package/dist/chunk-2HVNPWFV.js.map +0 -1
- package/dist/chunk-2PBT2HQH.js.map +0 -1
- package/dist/chunk-35ETD7ML.js.map +0 -1
- package/dist/chunk-3A22SBIU.js.map +0 -1
- package/dist/chunk-4GYEIWQP.js.map +0 -1
- package/dist/chunk-5IXHJXJX.js.map +0 -1
- package/dist/chunk-5SJWDABY.js.map +0 -1
- package/dist/chunk-65CEXQ4L.js.map +0 -1
- package/dist/chunk-6DN4ZULV.js.map +0 -1
- package/dist/chunk-6M33XQLZ.js +0 -70
- package/dist/chunk-6M33XQLZ.js.map +0 -1
- package/dist/chunk-6SKXV236.js.map +0 -1
- package/dist/chunk-7BZTZ2WG.js.map +0 -1
- package/dist/chunk-7DN4UXJ3.js.map +0 -1
- package/dist/chunk-7EQCZO56.js.map +0 -1
- package/dist/chunk-AMTFP7QA.js.map +0 -1
- package/dist/chunk-BXAL7OIS.js.map +0 -1
- package/dist/chunk-CJHP6E34.js.map +0 -1
- package/dist/chunk-CMK4DJDR.js.map +0 -1
- package/dist/chunk-CSSCGM27.js.map +0 -1
- package/dist/chunk-CWDV64TD.js.map +0 -1
- package/dist/chunk-D2HKCPEH.js.map +0 -1
- package/dist/chunk-E6RYO4QZ.js.map +0 -1
- package/dist/chunk-EFV5QJNM.js.map +0 -1
- package/dist/chunk-HAQMKV5P.js.map +0 -1
- package/dist/chunk-HBICO6AX.js.map +0 -1
- package/dist/chunk-HC5ZSCRG.js.map +0 -1
- package/dist/chunk-IBGX6H4J.js.map +0 -1
- package/dist/chunk-J4NXTSJY.js.map +0 -1
- package/dist/chunk-JCBIPBGZ.js.map +0 -1
- package/dist/chunk-K7WSPGI7.js.map +0 -1
- package/dist/chunk-KH25WUSX.js.map +0 -1
- package/dist/chunk-LMXWI3DD.js.map +0 -1
- package/dist/chunk-LWRI6HGT.js.map +0 -1
- package/dist/chunk-NSJVQ5YJ.js.map +0 -1
- package/dist/chunk-OWA7GPWR.js.map +0 -1
- package/dist/chunk-PYIASGI7.js.map +0 -1
- package/dist/chunk-QY4XNTNG.js.map +0 -1
- package/dist/chunk-RQ5HZDBV.js.map +0 -1
- package/dist/chunk-SE6ERQY5.js.map +0 -1
- package/dist/chunk-ST4YYVUK.js.map +0 -1
- package/dist/chunk-TOXTJ7MU.js.map +0 -1
- package/dist/chunk-TQ2557I5.js.map +0 -1
- package/dist/chunk-TTAP5XFX.js.map +0 -1
- package/dist/chunk-U4H6MGVE.js.map +0 -1
- package/dist/chunk-VECWMANF.js.map +0 -1
- package/dist/chunk-WNUZK7NS.js.map +0 -1
- package/dist/chunk-WVC3BG6J.js.map +0 -1
- package/dist/chunk-XLYFOBBT.js.map +0 -1
- package/dist/chunk-XWWFBH2G.js.map +0 -1
- package/dist/chunk-YESTO24O.js.map +0 -1
- package/dist/chunk-YH37X6JT.js.map +0 -1
- /package/dist/{chunk-343OLRFT.js.map → chunk-2BIVCYTO.js.map} +0 -0
- /package/dist/{chunk-PNLM35GU.js.map → chunk-2JNHWKQK.js.map} +0 -0
- /package/dist/{chunk-IWOVENC3.js.map → chunk-2XX45PC5.js.map} +0 -0
- /package/dist/{chunk-RZ2C5CAW.js.map → chunk-2ZIHZLF5.js.map} +0 -0
- /package/dist/{chunk-ZW5K4XCQ.js.map → chunk-34BZXJGT.js.map} +0 -0
- /package/dist/{chunk-CHFHILTM.js.map → chunk-35S6QI5G.js.map} +0 -0
- /package/dist/{chunk-KCAW6HRO.js.map → chunk-3AOQBR7N.js.map} +0 -0
- /package/dist/{chunk-GVLZZCSX.js.map → chunk-4B5XUQQS.js.map} +0 -0
- /package/dist/{chunk-ADHMNIWS.js.map → chunk-4CXEWFKO.js.map} +0 -0
- /package/dist/{chunk-JJSZP3TW.js.map → chunk-57JLS55D.js.map} +0 -0
- /package/dist/{chunk-ZZM3DOEK.js.map → chunk-5HDYTTE7.js.map} +0 -0
- /package/dist/{chunk-GEXM6DNR.js.map → chunk-5KGABAQB.js.map} +0 -0
- /package/dist/{chunk-D5X4FRYX.js.map → chunk-6JNQLW5L.js.map} +0 -0
- /package/dist/{chunk-KJK2Q35C.js.map → chunk-75LOTMSN.js.map} +0 -0
- /package/dist/{chunk-A6AKFPIQ.js.map → chunk-7EH4D6FU.js.map} +0 -0
- /package/dist/{chunk-7ZG7T2YN.js.map → chunk-7GHYCQCJ.js.map} +0 -0
- /package/dist/{chunk-QIKPGMMO.js.map → chunk-AER4245J.js.map} +0 -0
- /package/dist/{chunk-4CTLEUK3.js.map → chunk-AYLEZM6T.js.map} +0 -0
- /package/dist/{chunk-JFBEZXNL.js.map → chunk-BAQBUKDU.js.map} +0 -0
- /package/dist/{chunk-RKI3MRKX.js.map → chunk-BW62QQAG.js.map} +0 -0
- /package/dist/{chunk-UL7L6MFT.js.map → chunk-C55AWF3U.js.map} +0 -0
- /package/dist/{chunk-GGWICBJD.js.map → chunk-CPAJYJUD.js.map} +0 -0
- /package/dist/{chunk-5TJRJSJY.js.map → chunk-CQLPDY2J.js.map} +0 -0
- /package/dist/{chunk-5UTAEHSB.js.map → chunk-CQPFSEJB.js.map} +0 -0
- /package/dist/{chunk-SN2YMCTL.js.map → chunk-CS3KOKL3.js.map} +0 -0
- /package/dist/{chunk-FXNYV5Z6.js.map → chunk-F6D6HXZU.js.map} +0 -0
- /package/dist/{chunk-TQBRWZA4.js.map → chunk-FFOQZRFC.js.map} +0 -0
- /package/dist/{chunk-GXCOXJS3.js.map → chunk-FNG33MKA.js.map} +0 -0
- /package/dist/{chunk-GW64UQXI.js.map → chunk-GHXFCMFP.js.map} +0 -0
- /package/dist/{chunk-L3B36HA5.js.map → chunk-GRDPGHQJ.js.map} +0 -0
- /package/dist/{chunk-6SS5C74Q.js.map → chunk-GS3RP2QE.js.map} +0 -0
- /package/dist/{chunk-B2VXP2B2.js.map → chunk-GZT7MLLO.js.map} +0 -0
- /package/dist/{chunk-AK2HOD6B.js.map → chunk-H5BEWPEY.js.map} +0 -0
- /package/dist/{chunk-DY4BP5WA.js.map → chunk-HNPWZ3W2.js.map} +0 -0
- /package/dist/{chunk-SYVNWXVW.js.map → chunk-HU7TX7RB.js.map} +0 -0
- /package/dist/{chunk-WPA26LXA.js.map → chunk-IKLOIONQ.js.map} +0 -0
- /package/dist/{chunk-DMWSXWCZ.js.map → chunk-JL75FJRG.js.map} +0 -0
- /package/dist/{chunk-ZAFFKQQU.js.map → chunk-JLQGRZMN.js.map} +0 -0
- /package/dist/{chunk-ZMC3N23A.js.map → chunk-JSD5TFDK.js.map} +0 -0
- /package/dist/{chunk-NE6XUN5Z.js.map → chunk-JU4MSYYH.js.map} +0 -0
- /package/dist/{chunk-YBTC4XNO.js.map → chunk-LT4NEKXB.js.map} +0 -0
- /package/dist/{chunk-6KL2CJBO.js.map → chunk-MNHIK2OR.js.map} +0 -0
- /package/dist/{chunk-JFEEV3XI.js.map → chunk-NB3FGWU4.js.map} +0 -0
- /package/dist/{chunk-2UCLUDEB.js.map → chunk-NCPWLHZT.js.map} +0 -0
- /package/dist/{chunk-DZNMS2SH.js.map → chunk-NDNYD4FG.js.map} +0 -0
- /package/dist/{chunk-UFLTL2RJ.js.map → chunk-PH36XEB3.js.map} +0 -0
- /package/dist/{chunk-4LQZH4PU.js.map → chunk-PMOEG36E.js.map} +0 -0
- /package/dist/{chunk-EXZSHZRS.js.map → chunk-PWZHCBG3.js.map} +0 -0
- /package/dist/{chunk-EFVOT3G5.js.map → chunk-PZ7PU4AP.js.map} +0 -0
- /package/dist/{chunk-I62ALI7F.js.map → chunk-Q73PTVNO.js.map} +0 -0
- /package/dist/{chunk-V74PXUQN.js.map → chunk-QEG3P5D4.js.map} +0 -0
- /package/dist/{chunk-7LIXQZBG.js.map → chunk-QI5CRSOW.js.map} +0 -0
- /package/dist/{chunk-V3LOHY4N.js.map → chunk-QKPD322X.js.map} +0 -0
- /package/dist/{chunk-PWF32ILG.js.map → chunk-SJO3K7SB.js.map} +0 -0
- /package/dist/{chunk-TU3EGIKB.js.map → chunk-SSS64KYB.js.map} +0 -0
- /package/dist/{chunk-SQYC57ZN.js.map → chunk-SYN46YL6.js.map} +0 -0
- /package/dist/{chunk-DHBYO7AO.js.map → chunk-TCV3N44E.js.map} +0 -0
- /package/dist/{chunk-DVGBFT6O.js.map → chunk-UAVSBSV5.js.map} +0 -0
- /package/dist/{chunk-B7BNNSM2.js.map → chunk-UZ6AUTE6.js.map} +0 -0
- /package/dist/{chunk-4WQ3YXQL.js.map → chunk-VT5HQ2AD.js.map} +0 -0
- /package/dist/{chunk-SX3MEC3Q.js.map → chunk-VZIB5W5L.js.map} +0 -0
- /package/dist/{chunk-X2AKLDPW.js.map → chunk-WE3LJPRN.js.map} +0 -0
- /package/dist/{chunk-FZ4YTEP2.js.map → chunk-XR46FSOH.js.map} +0 -0
|
@@ -2,7 +2,8 @@ import MuiCheckbox from '@mui/material/Checkbox/index.js';
|
|
|
2
2
|
import CircularProgress from '@mui/material/CircularProgress/index.js';
|
|
3
3
|
import FormControlLabel from '@mui/material/FormControlLabel/index.js';
|
|
4
4
|
import FormHelperText from '@mui/material/FormHelperText/index.js';
|
|
5
|
-
import { alpha, keyframes, styled } from '@mui/material/styles/index.js';
|
|
5
|
+
import { alpha, keyframes, styled, useTheme } from '@mui/material/styles/index.js';
|
|
6
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
|
|
8
9
|
import { makeTestId, resolveCheckboxProps } from './Checkbox.helpers';
|
|
@@ -19,29 +20,33 @@ import {
|
|
|
19
20
|
} from './Checkbox.metrics';
|
|
20
21
|
import type { CheckboxProps } from './Checkbox.types';
|
|
21
22
|
import { splitTestId } from '../../../platform/test-id';
|
|
22
|
-
import { rem } from '../../../tokens/relative';
|
|
23
|
+
import { rem, sxRem } from '../../../tokens/relative';
|
|
23
24
|
|
|
24
|
-
const pulse = keyframes`
|
|
25
|
+
const pulse = (theme: Theme) => keyframes`
|
|
25
26
|
0% {
|
|
26
27
|
box-shadow: 0 0 0 0 ${effectInk(CHECKBOX_PULSE.alpha)};
|
|
27
28
|
}
|
|
28
29
|
70% {
|
|
29
|
-
box-shadow: 0 0 0 ${CHECKBOX_PULSE.spread}
|
|
30
|
+
box-shadow: 0 0 0 ${rem(theme, CHECKBOX_PULSE.spread)} ${effectInk(0)};
|
|
30
31
|
}
|
|
31
32
|
100% {
|
|
32
33
|
box-shadow: 0 0 0 0 ${effectInk(0)};
|
|
33
34
|
}
|
|
34
35
|
`;
|
|
35
36
|
|
|
36
|
-
const glow = keyframes`
|
|
37
|
+
const glow = (theme: Theme) => keyframes`
|
|
37
38
|
0%, 100% {
|
|
38
|
-
box-shadow: 0 0 ${CHECKBOX_GLOW.blur.from}
|
|
39
|
+
box-shadow: 0 0 ${rem(theme, CHECKBOX_GLOW.blur.from)} ${effectInk(CHECKBOX_GLOW.alpha.from)};
|
|
39
40
|
}
|
|
40
41
|
50% {
|
|
41
|
-
box-shadow: 0 0 ${CHECKBOX_GLOW.blur.to}
|
|
42
|
+
box-shadow: 0 0 ${rem(theme, CHECKBOX_GLOW.blur.to)} ${effectInk(CHECKBOX_GLOW.alpha.to)};
|
|
42
43
|
}
|
|
43
44
|
`;
|
|
44
45
|
|
|
46
|
+
/** A variant's corner: a design-px number through the type scale, a percentage as it is. */
|
|
47
|
+
const cornerOf = (theme: Theme, radius: number | string | undefined): string | undefined =>
|
|
48
|
+
typeof radius === 'number' ? rem(theme, radius) : radius;
|
|
49
|
+
|
|
45
50
|
const StyledCheckbox = styled(MuiCheckbox, {
|
|
46
51
|
shouldForwardProp: (prop) => !['customVariant', 'ripple', 'glow', 'pulse'].includes(prop as string),
|
|
47
52
|
})<{
|
|
@@ -53,13 +58,13 @@ const StyledCheckbox = styled(MuiCheckbox, {
|
|
|
53
58
|
({ theme, customVariant, ripple, glow: glowProp, pulse: pulseProp }) => ({
|
|
54
59
|
...(customVariant === 'rounded' && {
|
|
55
60
|
'& .MuiSvgIcon-root': {
|
|
56
|
-
borderRadius: CHECKBOX_VARIANT.rounded.radius,
|
|
61
|
+
borderRadius: cornerOf(theme, CHECKBOX_VARIANT.rounded.radius),
|
|
57
62
|
},
|
|
58
63
|
}),
|
|
59
64
|
|
|
60
65
|
...(customVariant === 'toggle' && {
|
|
61
66
|
'& .MuiSvgIcon-root': {
|
|
62
|
-
borderRadius:
|
|
67
|
+
borderRadius: cornerOf(theme, CHECKBOX_VARIANT.toggle.radius),
|
|
63
68
|
transform: `scale(${CHECKBOX_VARIANT.toggle.scale})`,
|
|
64
69
|
},
|
|
65
70
|
}),
|
|
@@ -72,10 +77,10 @@ const StyledCheckbox = styled(MuiCheckbox, {
|
|
|
72
77
|
},
|
|
73
78
|
}),
|
|
74
79
|
...(glowProp && {
|
|
75
|
-
animation: `${glow} ${CHECKBOX_GLOW.ms / 1000}s ease-in-out infinite`,
|
|
80
|
+
animation: `${glow(theme)} ${CHECKBOX_GLOW.ms / 1000}s ease-in-out infinite`,
|
|
76
81
|
}),
|
|
77
82
|
...(pulseProp && {
|
|
78
|
-
animation: `${pulse} ${CHECKBOX_PULSE.ms / 1000}s infinite`,
|
|
83
|
+
animation: `${pulse(theme)} ${CHECKBOX_PULSE.ms / 1000}s infinite`,
|
|
79
84
|
}),
|
|
80
85
|
'&:hover': {
|
|
81
86
|
backgroundColor: alpha(theme.palette.primary.main, CHECKBOX_HOVER_ALPHA),
|
|
@@ -96,7 +101,7 @@ const StyledFormControlLabel = styled(FormControlLabel, {
|
|
|
96
101
|
shouldForwardProp: (prop) => prop !== 'error',
|
|
97
102
|
})<{ error?: boolean }>(
|
|
98
103
|
({ theme, error }) => ({
|
|
99
|
-
marginLeft: CHECKBOX_LABEL.marginLeft,
|
|
104
|
+
marginLeft: rem(theme, CHECKBOX_LABEL.marginLeft),
|
|
100
105
|
'& .MuiFormControlLabel-label': {
|
|
101
106
|
color: error ? theme.palette.error.main : theme.palette.text.primary,
|
|
102
107
|
fontSize: rem(theme, CHECKBOX_LABEL.fontSize),
|
|
@@ -123,6 +128,7 @@ export const Checkbox = React.forwardRef<HTMLButtonElement, CheckboxProps>(
|
|
|
123
128
|
disabled,
|
|
124
129
|
...others
|
|
125
130
|
} = resolveCheckboxProps(rawProps);
|
|
131
|
+
const theme = useTheme();
|
|
126
132
|
const isDisabled = disabled || loading;
|
|
127
133
|
const { testId: dataTestId, rest: props } = splitTestId(others);
|
|
128
134
|
const testId = makeTestId(dataTestId);
|
|
@@ -141,13 +147,13 @@ export const Checkbox = React.forwardRef<HTMLButtonElement, CheckboxProps>(
|
|
|
141
147
|
/>
|
|
142
148
|
{loading && (
|
|
143
149
|
<CircularProgress
|
|
144
|
-
size={CHECKBOX_SPINNER.size}
|
|
150
|
+
size={rem(theme, CHECKBOX_SPINNER.size)}
|
|
145
151
|
sx={{
|
|
146
152
|
position: 'absolute',
|
|
147
153
|
top: '50%',
|
|
148
154
|
left: '50%',
|
|
149
|
-
marginTop:
|
|
150
|
-
marginLeft:
|
|
155
|
+
marginTop: sxRem(CHECKBOX_SPINNER.offset),
|
|
156
|
+
marginLeft: sxRem(CHECKBOX_SPINNER.offset),
|
|
151
157
|
color: 'primary.main',
|
|
152
158
|
}}
|
|
153
159
|
/>
|
|
@@ -7,7 +7,6 @@ export const makeTestId =
|
|
|
7
7
|
dataTestId ? `${dataTestId}-${suffix}` : `code-editor-${suffix}`;
|
|
8
8
|
|
|
9
9
|
type CodeEditorDefaultedKeys =
|
|
10
|
-
| 'height'
|
|
11
10
|
| 'theme'
|
|
12
11
|
| 'readOnly'
|
|
13
12
|
| 'lineNumbers'
|
|
@@ -21,7 +20,6 @@ type ResolvedCodeEditorProps = CodeEditorProps &
|
|
|
21
20
|
Required<Pick<CodeEditorProps, CodeEditorDefaultedKeys>>;
|
|
22
21
|
|
|
23
22
|
const CODE_EDITOR_DEFAULTS: Pick<CodeEditorProps, CodeEditorDefaultedKeys> = {
|
|
24
|
-
height: '400px',
|
|
25
23
|
theme: 'auto',
|
|
26
24
|
readOnly: false,
|
|
27
25
|
lineNumbers: true,
|
|
@@ -74,7 +74,7 @@ function EditorWithSave() {
|
|
|
74
74
|
|
|
75
75
|
### Optional Props
|
|
76
76
|
|
|
77
|
-
- **`height`** (`string`): Editor height (default:
|
|
77
|
+
- **`height`** (`string`): Editor height (default: the design's 400px through the type scale — `25rem` at MUI's defaults)
|
|
78
78
|
- **`theme`** (`EditorTheme`): Color theme (default: `'auto'`)
|
|
79
79
|
- Options: `'light' | 'dark' | 'auto'`
|
|
80
80
|
- **`onChange`** (`(value: string) => void`): Callback when content changes
|
|
@@ -21,8 +21,8 @@ const EditorContainer = styled(Paper)(({ theme }) => ({
|
|
|
21
21
|
display: 'flex',
|
|
22
22
|
flexDirection: 'column',
|
|
23
23
|
background: `linear-gradient(135deg, ${alpha(theme.palette.background.paper, 0.98)} 0%, ${alpha(theme.palette.background.paper, 0.95)} 100%)`,
|
|
24
|
-
backdropFilter:
|
|
25
|
-
WebkitBackdropFilter:
|
|
24
|
+
backdropFilter: `blur(${rem(theme, 10)})`,
|
|
25
|
+
WebkitBackdropFilter: `blur(${rem(theme, 10)})`,
|
|
26
26
|
border: `1px solid ${fieldEdge(theme)}`,
|
|
27
27
|
borderRadius: fieldRadius(theme),
|
|
28
28
|
overflow: 'hidden' }));
|
|
@@ -31,7 +31,7 @@ const EditorWrapper = styled(Box, {
|
|
|
31
31
|
shouldForwardProp: (prop) => prop !== 'fullscreen' })<{ fullscreen: boolean }>(({ theme, fullscreen }) => ({
|
|
32
32
|
position: 'relative',
|
|
33
33
|
flex: 1,
|
|
34
|
-
minHeight: 200,
|
|
34
|
+
minHeight: rem(theme, 200),
|
|
35
35
|
...(fullscreen && {
|
|
36
36
|
position: 'fixed',
|
|
37
37
|
top: 0,
|
|
@@ -102,7 +102,7 @@ const buildEditorOptions = ({
|
|
|
102
102
|
renderLineHighlight: 'all',
|
|
103
103
|
selectOnLineNumbers: true,
|
|
104
104
|
roundedSelection: true,
|
|
105
|
-
padding: { top: 16, bottom: 16 },
|
|
105
|
+
padding: { top: remPx(theme, 16), bottom: remPx(theme, 16) },
|
|
106
106
|
fontFamily: 'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',
|
|
107
107
|
fontLigatures: true });
|
|
108
108
|
|
|
@@ -161,7 +161,7 @@ export const CodeEditor: FC<CodeEditorProps> = (componentProps) => {
|
|
|
161
161
|
)}
|
|
162
162
|
|
|
163
163
|
<Editor
|
|
164
|
-
height={editor.isFullscreen ? '100vh' : height}
|
|
164
|
+
height={editor.isFullscreen ? '100vh' : (height ?? rem(muiTheme, 400))}
|
|
165
165
|
language={language}
|
|
166
166
|
value={value}
|
|
167
167
|
onChange={(newValue) => onChange?.(newValue || '')}
|
|
@@ -14,7 +14,7 @@ export interface CodeEditorProps {
|
|
|
14
14
|
copy: CodeEditorCopy;
|
|
15
15
|
/** Programming language for syntax highlighting */
|
|
16
16
|
language: EditorLanguage;
|
|
17
|
-
/** Editor height (default: '400px') */
|
|
17
|
+
/** Editor height (default: the design's 400px through the type scale — `25rem` at MUI's defaults) */
|
|
18
18
|
height?: string;
|
|
19
19
|
/** Editor color theme (default: 'auto') */
|
|
20
20
|
theme?: EditorTheme;
|
|
@@ -14,7 +14,6 @@ type CommandDefaultedKeys =
|
|
|
14
14
|
| 'pulse'
|
|
15
15
|
| 'loading'
|
|
16
16
|
| 'disabled'
|
|
17
|
-
| 'maxHeight'
|
|
18
17
|
| 'emptyMessage'
|
|
19
18
|
| 'showCategories'
|
|
20
19
|
| 'showShortcuts'
|
|
@@ -37,7 +36,6 @@ const COMMAND_DEFAULTS: Pick<CommandProps, CommandDefaultedKeys> = {
|
|
|
37
36
|
pulse: false,
|
|
38
37
|
loading: false,
|
|
39
38
|
disabled: false,
|
|
40
|
-
maxHeight: 400,
|
|
41
39
|
emptyMessage: 'No results found',
|
|
42
40
|
showCategories: true,
|
|
43
41
|
showShortcuts: true,
|
|
@@ -2,6 +2,7 @@ import Box from '@mui/material/Box/index.js';
|
|
|
2
2
|
import CircularProgress from '@mui/material/CircularProgress/index.js';
|
|
3
3
|
import Divider from '@mui/material/Divider/index.js';
|
|
4
4
|
import Typography from '@mui/material/Typography/index.js';
|
|
5
|
+
import { useTheme } from '@mui/material/styles/index.js';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
|
|
7
8
|
import type {
|
|
@@ -9,6 +10,7 @@ import type {
|
|
|
9
10
|
CommandLoadingProps,
|
|
10
11
|
CommandSeparatorProps,
|
|
11
12
|
} from './Command.types';
|
|
13
|
+
import { rem } from '../../../tokens/relative';
|
|
12
14
|
|
|
13
15
|
export const CommandEmpty: React.FC<CommandEmptyProps> = ({
|
|
14
16
|
message = 'No results found',
|
|
@@ -35,7 +37,9 @@ export const CommandLoading: React.FC<CommandLoadingProps> = ({
|
|
|
35
37
|
className,
|
|
36
38
|
style,
|
|
37
39
|
dataTestId,
|
|
38
|
-
}) =>
|
|
40
|
+
}) => {
|
|
41
|
+
const theme = useTheme();
|
|
42
|
+
return (
|
|
39
43
|
<Box
|
|
40
44
|
className={className}
|
|
41
45
|
data-testid={dataTestId}
|
|
@@ -48,12 +52,13 @@ export const CommandLoading: React.FC<CommandLoadingProps> = ({
|
|
|
48
52
|
...style,
|
|
49
53
|
}}
|
|
50
54
|
>
|
|
51
|
-
<CircularProgress size={24} />
|
|
55
|
+
<CircularProgress size={rem(theme, 24)} />
|
|
52
56
|
<Typography variant="body2" color="text.secondary">
|
|
53
57
|
{message}
|
|
54
58
|
</Typography>
|
|
55
59
|
</Box>
|
|
56
60
|
);
|
|
61
|
+
};
|
|
57
62
|
|
|
58
63
|
export const CommandSeparator: React.FC<CommandSeparatorProps> = ({
|
|
59
64
|
className,
|
|
@@ -8,18 +8,18 @@ type CommandVariant = NonNullable<CommandProps['variant']>;
|
|
|
8
8
|
type CommandColor = NonNullable<CommandProps['color']>;
|
|
9
9
|
type CommandSize = NonNullable<CommandProps['size']>;
|
|
10
10
|
|
|
11
|
-
const SIZE_MAP: Record<CommandSize, {
|
|
12
|
-
xs: {
|
|
13
|
-
sm: {
|
|
14
|
-
md: {
|
|
15
|
-
lg: {
|
|
16
|
-
xl: {
|
|
11
|
+
const SIZE_MAP: Record<CommandSize, { widthPx: number; fontPx: number }> = {
|
|
12
|
+
xs: { widthPx: 400, fontPx: 12 },
|
|
13
|
+
sm: { widthPx: 450, fontPx: 14 },
|
|
14
|
+
md: { widthPx: 500, fontPx: 16 },
|
|
15
|
+
lg: { widthPx: 550, fontPx: 18 },
|
|
16
|
+
xl: { widthPx: 600, fontPx: 20 },
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** The paper's width and type for a size, both design px read through the type scale. */
|
|
20
20
|
export const commandSizeStyles = (theme: Theme, size: CommandSize) => {
|
|
21
|
-
const {
|
|
22
|
-
return { width: rem(theme,
|
|
21
|
+
const { widthPx, fontPx } = SIZE_MAP[size] || SIZE_MAP.md;
|
|
22
|
+
return { width: rem(theme, widthPx), fontSize: rem(theme, fontPx) };
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const emphasisStyles = (
|
|
@@ -29,13 +29,13 @@ const emphasisStyles = (
|
|
|
29
29
|
pulse: boolean,
|
|
30
30
|
): CSSObject => ({
|
|
31
31
|
...(glow && {
|
|
32
|
-
boxShadow: `0 0
|
|
32
|
+
boxShadow: `0 0 ${rem(theme, 20)} ${alpha(accentFor(theme, color).main, 0.4)}`,
|
|
33
33
|
}),
|
|
34
34
|
...(pulse && {
|
|
35
35
|
animation: 'pulse 2s infinite',
|
|
36
36
|
'@keyframes pulse': {
|
|
37
37
|
'0%': { boxShadow: `0 0 0 0 ${alpha(accentFor(theme, color).main, 0.4)}` },
|
|
38
|
-
'70%': { boxShadow: `0 0 0
|
|
38
|
+
'70%': { boxShadow: `0 0 0 ${rem(theme, 10)} ${alpha(accentFor(theme, color).main, 0)}` },
|
|
39
39
|
'100%': { boxShadow: `0 0 0 0 ${alpha(accentFor(theme, color).main, 0)}` },
|
|
40
40
|
},
|
|
41
41
|
}),
|
|
@@ -50,7 +50,7 @@ const surfaceStyles = (
|
|
|
50
50
|
case 'glass':
|
|
51
51
|
return {
|
|
52
52
|
backgroundColor: alpha(theme.palette.background.paper, 0.1),
|
|
53
|
-
backdropFilter:
|
|
53
|
+
backdropFilter: `blur(${rem(theme, 20)})`,
|
|
54
54
|
border: `1px solid ${alpha(accentFor(theme, color).main, 0.2)}`,
|
|
55
55
|
};
|
|
56
56
|
case 'gradient':
|
|
@@ -15,7 +15,7 @@ import ListItemIcon from '@mui/material/ListItemIcon/index.js';
|
|
|
15
15
|
import ListItemText from '@mui/material/ListItemText/index.js';
|
|
16
16
|
import TextField from '@mui/material/TextField/index.js';
|
|
17
17
|
import Typography from '@mui/material/Typography/index.js';
|
|
18
|
-
import { alpha, useTheme } from '@mui/material/styles/index.js';
|
|
18
|
+
import { alpha, useTheme, type Theme } from '@mui/material/styles/index.js';
|
|
19
19
|
import React, { useMemo } from 'react';
|
|
20
20
|
|
|
21
21
|
import { resolveCommandProps, useCommandPalette } from './Command.hooks';
|
|
@@ -29,10 +29,19 @@ import type {
|
|
|
29
29
|
CommandListProps,
|
|
30
30
|
CommandProps,
|
|
31
31
|
} from './Command.types';
|
|
32
|
-
import { rem } from '../../../tokens/relative';
|
|
32
|
+
import { rem, sxRem } from '../../../tokens/relative';
|
|
33
33
|
|
|
34
34
|
export { CommandEmpty, CommandLoading, CommandSeparator } from './Command.parts';
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* The list's `maxHeight`: a number is design px (400 when unset), read through
|
|
38
|
+
* the type scale; a string is any CSS length, and a number ≤ 1 stays the
|
|
39
|
+
* fraction `sx` reads it as (an `sx` callback's result still goes through the
|
|
40
|
+
* sizing transform).
|
|
41
|
+
*/
|
|
42
|
+
const contentMaxHeight = (theme: Theme, value: number | string = 400): number | string =>
|
|
43
|
+
typeof value === 'number' && value > 1 ? rem(theme, value) : value;
|
|
44
|
+
|
|
36
45
|
const makeTestId = (dataTestId?: string) => (suffix: string) =>
|
|
37
46
|
dataTestId ? `${dataTestId}-${suffix}` : undefined;
|
|
38
47
|
|
|
@@ -78,7 +87,7 @@ export const Command: React.FC<CommandProps> = (rawProps) => {
|
|
|
78
87
|
|
|
79
88
|
<Divider />
|
|
80
89
|
|
|
81
|
-
<DialogContent sx={{ p: 0, maxHeight: props.maxHeight, overflow: 'auto' }}>
|
|
90
|
+
<DialogContent sx={{ p: 0, maxHeight: (t: Theme) => contentMaxHeight(t, props.maxHeight), overflow: 'auto' }}>
|
|
82
91
|
<CommandBody
|
|
83
92
|
loading={props.loading}
|
|
84
93
|
items={filteredItems}
|
|
@@ -300,7 +309,7 @@ const CommandItemComponent: React.FC<CommandItemProps> = ({
|
|
|
300
309
|
}}
|
|
301
310
|
>
|
|
302
311
|
{icon && (
|
|
303
|
-
<ListItemIcon sx={{ minWidth: 40 }}>
|
|
312
|
+
<ListItemIcon sx={{ minWidth: sxRem(40) }}>
|
|
304
313
|
{icon}
|
|
305
314
|
</ListItemIcon>
|
|
306
315
|
)}
|
|
@@ -323,7 +332,7 @@ const CommandItemComponent: React.FC<CommandItemProps> = ({
|
|
|
323
332
|
size="small"
|
|
324
333
|
variant="outlined"
|
|
325
334
|
sx={{
|
|
326
|
-
height: 20,
|
|
335
|
+
height: sxRem(20),
|
|
327
336
|
fontSize: rem(theme, 11.2),
|
|
328
337
|
ml: 1,
|
|
329
338
|
}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import { useTheme, type Theme } from '@mui/material/styles/index.js';
|
|
4
4
|
import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete/index.js';
|
|
5
5
|
import type { AutocompleteRenderInputParams } from '@mui/material/Autocomplete/index.js';
|
|
6
6
|
import CircularProgress from '@mui/material/CircularProgress/index.js';
|
|
@@ -15,6 +15,7 @@ import type { SizeValue } from '../../../tokens/scales';
|
|
|
15
15
|
import { fieldEdge } from '../../../tokens/field-edge';
|
|
16
16
|
import { fieldRadiusPx } from '../../../tokens/field-radius';
|
|
17
17
|
import { fieldControlStyles } from '../../../tokens/field-height';
|
|
18
|
+
import { rem, sxRem } from '../../../tokens/relative';
|
|
18
19
|
|
|
19
20
|
/** Internal option shape: a real option, or the synthetic "create new" row. */
|
|
20
21
|
interface InternalOption extends CreatableSelectOption {
|
|
@@ -27,8 +28,8 @@ const CREATE_PREFIX = ' create:';
|
|
|
27
28
|
|
|
28
29
|
const filterOptions = createFilterOptions<InternalOption>();
|
|
29
30
|
|
|
30
|
-
/**
|
|
31
|
-
const
|
|
31
|
+
/** A dropdown row's left inset at `depth`: one 16px step per level, plus the first, through the type scale. */
|
|
32
|
+
const rowInset = (theme: Theme, depth: number): string => rem(theme, 16 * (1 + depth));
|
|
32
33
|
|
|
33
34
|
/** `sm`/`md` → MUI's own scale, the same mapping {@link Input} uses. */
|
|
34
35
|
// All five house stops onto MUI's two. `xs`/`sm` draw small; `md` and up draw
|
|
@@ -43,7 +44,7 @@ const fieldSx = {
|
|
|
43
44
|
borderColor: (theme: Theme) => fieldEdge(theme),
|
|
44
45
|
},
|
|
45
46
|
'&:hover fieldset': { borderColor: 'primary.main' },
|
|
46
|
-
'&.Mui-focused fieldset': { borderColor: 'primary.main', borderWidth: 2 },
|
|
47
|
+
'&.Mui-focused fieldset': { borderColor: 'primary.main', borderWidth: sxRem(2) },
|
|
47
48
|
'&.Mui-error fieldset': { borderColor: 'error.main' },
|
|
48
49
|
},
|
|
49
50
|
} as const;
|
|
@@ -80,13 +81,14 @@ function buildFilter(
|
|
|
80
81
|
function renderIndentedOption(
|
|
81
82
|
props: React.HTMLAttributes<HTMLLIElement>,
|
|
82
83
|
option: InternalOption,
|
|
84
|
+
theme: Theme,
|
|
83
85
|
): React.JSX.Element {
|
|
84
86
|
const { key, ...rest } = props as typeof props & { key?: string };
|
|
85
87
|
return (
|
|
86
88
|
<li
|
|
87
89
|
key={key ?? option.value}
|
|
88
90
|
{...rest}
|
|
89
|
-
style={{ paddingLeft:
|
|
91
|
+
style={{ paddingLeft: rowInset(theme, option.depth ?? 0) }}
|
|
90
92
|
>
|
|
91
93
|
{option.label}
|
|
92
94
|
</li>
|
|
@@ -103,6 +105,7 @@ function renderField(
|
|
|
103
105
|
loading: boolean;
|
|
104
106
|
size: SizeValue;
|
|
105
107
|
dataTestId: string;
|
|
108
|
+
theme: Theme;
|
|
106
109
|
},
|
|
107
110
|
): React.JSX.Element {
|
|
108
111
|
return (
|
|
@@ -119,7 +122,7 @@ function renderField(
|
|
|
119
122
|
...params.InputProps,
|
|
120
123
|
endAdornment: (
|
|
121
124
|
<>
|
|
122
|
-
{field.loading ? <CircularProgress color="inherit" size={18} /> : null}
|
|
125
|
+
{field.loading ? <CircularProgress color="inherit" size={rem(field.theme, 18)} /> : null}
|
|
123
126
|
{params.InputProps.endAdornment}
|
|
124
127
|
</>
|
|
125
128
|
),
|
|
@@ -199,6 +202,7 @@ export function CreatableSelect({
|
|
|
199
202
|
dataTestId = 'creatable-select',
|
|
200
203
|
}: CreatableSelectProps): React.JSX.Element {
|
|
201
204
|
const inputId = useId();
|
|
205
|
+
const theme = useTheme();
|
|
202
206
|
const { items, selected } = useInternalOptions(options, value);
|
|
203
207
|
|
|
204
208
|
return (
|
|
@@ -228,11 +232,11 @@ export function CreatableSelect({
|
|
|
228
232
|
slotProps={{ popper: { sx: { zIndex: stackedOverlayZIndex } } }}
|
|
229
233
|
getOptionLabel={(option) => (typeof option === 'string' ? option : option.label)}
|
|
230
234
|
isOptionEqualToValue={(option, current) => option.value === current.value}
|
|
231
|
-
renderOption={renderIndentedOption}
|
|
235
|
+
renderOption={(props, option) => renderIndentedOption(props, option, theme)}
|
|
232
236
|
filterOptions={buildFilter(onCreate, createOptionLabel)}
|
|
233
237
|
onChange={(_event, next) => handlePick(next, onChange, onCreate)}
|
|
234
238
|
renderInput={(params) =>
|
|
235
|
-
renderField(params, { inputId, placeholder, error, loading, size, dataTestId })
|
|
239
|
+
renderField(params, { inputId, placeholder, error, loading, size, dataTestId, theme })
|
|
236
240
|
}
|
|
237
241
|
/>
|
|
238
242
|
{error && <FormMessage error dataTestId={`${dataTestId}-message`}>{error}</FormMessage>}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
import Box from '@mui/material/Box/index.js';
|
|
26
26
|
import Paper from '@mui/material/Paper/index.js';
|
|
27
27
|
import useMediaQuery from '@mui/material/useMediaQuery/index.js';
|
|
28
|
+
import { useTheme } from '@mui/material/styles/index.js';
|
|
28
29
|
import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
29
30
|
import React from 'react';
|
|
30
31
|
|
|
@@ -39,9 +40,6 @@ import { DateRangeQuickList } from './DateRangePickerQuickList';
|
|
|
39
40
|
|
|
40
41
|
const CALENDAR_CLASS = 'date-range-picker__calendar';
|
|
41
42
|
|
|
42
|
-
/** Below this the picker is a phone layout. MUI's own `md`, written out. */
|
|
43
|
-
const NARROW_QUERY = '(max-width:899.95px)';
|
|
44
|
-
|
|
45
43
|
const ROOT_SX: SxProps<Theme> = {
|
|
46
44
|
display: 'inline-flex',
|
|
47
45
|
flexDirection: 'column',
|
|
@@ -119,13 +117,17 @@ type Picker = ReturnType<typeof useDateRangePicker>;
|
|
|
119
117
|
* A media query rather than an `sx` breakpoint: this decides what to RENDER,
|
|
120
118
|
* and CSS cannot un-render a second month.
|
|
121
119
|
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
120
|
+
* Below the theme's `md` the picker is a phone layout — the same breakpoint the
|
|
121
|
+
* `sx` blocks here switch on. The query is a STRING built from `useTheme()`,
|
|
122
|
+
* not `useMediaQuery`'s callback form: the callback reads the theme from
|
|
123
|
+
* context and throws on a null one, so a consumer that mounts this outside a
|
|
124
|
+
* `ThemeProvider` would crash — which the unit tests here do, and which is a
|
|
125
|
+
* fair thing for a consumer to do. `useTheme()` falls back to MUI's default
|
|
126
|
+
* theme there, whose `md` is the `(max-width:899.95px)` this used to spell out.
|
|
126
127
|
*/
|
|
127
128
|
function useMonthCount(requested: number | undefined): number | undefined {
|
|
128
|
-
const
|
|
129
|
+
const theme = useTheme();
|
|
130
|
+
const narrow = useMediaQuery(theme.breakpoints.down('md'));
|
|
129
131
|
return narrow ? 1 : requested;
|
|
130
132
|
}
|
|
131
133
|
|
|
@@ -17,7 +17,7 @@ import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
|
17
17
|
import React, { useId } from 'react';
|
|
18
18
|
|
|
19
19
|
import type { ResolvedQuickRange } from './DateRangePicker.types';
|
|
20
|
-
import { sxRem } from '../../../tokens/relative';
|
|
20
|
+
import { rem, sxRem } from '../../../tokens/relative';
|
|
21
21
|
|
|
22
22
|
const optionSx = (active: boolean, overMax: boolean): SxProps<Theme> => ({
|
|
23
23
|
display: 'block',
|
|
@@ -46,7 +46,11 @@ const optionSx = (active: boolean, overMax: boolean): SxProps<Theme> => ({
|
|
|
46
46
|
color: overMax ? 'text.disabled' : active ? 'primary.main' : 'text.primary',
|
|
47
47
|
backgroundColor: active ? 'action.selected' : 'transparent',
|
|
48
48
|
'&:hover': { backgroundColor: overMax ? 'transparent' : 'action.hover' },
|
|
49
|
-
'&:focus-visible': {
|
|
49
|
+
'&:focus-visible': {
|
|
50
|
+
outline: (theme: Theme) => `${rem(theme, 2)} solid`,
|
|
51
|
+
outlineColor: 'primary.main',
|
|
52
|
+
outlineOffset: sxRem(1),
|
|
53
|
+
},
|
|
50
54
|
});
|
|
51
55
|
|
|
52
56
|
const REASON_SX: SxProps<Theme> = {
|
|
@@ -107,8 +111,8 @@ export function DateRangeQuickList({
|
|
|
107
111
|
'&::-webkit-scrollbar': { display: 'none' },
|
|
108
112
|
alignContent: 'flex-start',
|
|
109
113
|
gap: 0.5,
|
|
110
|
-
minWidth: { md: 168 },
|
|
111
|
-
maxWidth: { md: 200 },
|
|
114
|
+
minWidth: (theme: Theme) => ({ md: rem(theme, 168) }),
|
|
115
|
+
maxWidth: (theme: Theme) => ({ md: rem(theme, 200) }),
|
|
112
116
|
}}
|
|
113
117
|
>
|
|
114
118
|
{options.map((option) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Box from '@mui/material/Box/index.js';
|
|
2
2
|
import Stack from '@mui/material/Stack/index.js';
|
|
3
|
-
import { styled } from '@mui/material/styles/index.js';
|
|
3
|
+
import { styled, type Theme } from '@mui/material/styles/index.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import type {
|
|
@@ -31,18 +31,14 @@ const spacingMap = {
|
|
|
31
31
|
xl: 5,
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
lg: '1200px',
|
|
38
|
-
xl: '1536px',
|
|
39
|
-
full: '100%',
|
|
40
|
-
};
|
|
34
|
+
/** A form's width cap: the theme's breakpoint of that name, through the type scale; `full` is uncapped. */
|
|
35
|
+
const formMaxWidth = (theme: Theme, maxWidth: NonNullable<FormProps['maxWidth']>): string =>
|
|
36
|
+
maxWidth === 'full' ? '100%' : rem(theme, theme.breakpoints.values[maxWidth]);
|
|
41
37
|
|
|
42
38
|
export const Form = React.forwardRef<HTMLFormElement, FormProps>(
|
|
43
39
|
({ variant = 'vertical', maxWidth = 'full', spacing = 'md', children, dataTestId, ...props }, ref) => (
|
|
44
40
|
<StyledForm ref={ref} variant={variant} role="form" data-testid={dataTestId} {...props}>
|
|
45
|
-
<Box sx={{ maxWidth:
|
|
41
|
+
<Box sx={{ maxWidth: (theme) => formMaxWidth(theme, maxWidth), width: '100%' }}>
|
|
46
42
|
{variant === 'inline' ? (
|
|
47
43
|
children
|
|
48
44
|
) : (
|
|
@@ -100,7 +96,7 @@ const StyledFormField = styled(Box, {
|
|
|
100
96
|
({ theme, variant }) => ({
|
|
101
97
|
display: variant === 'horizontal' ? 'grid' : 'flex',
|
|
102
98
|
flexDirection: variant === 'horizontal' ? undefined : 'column',
|
|
103
|
-
gridTemplateColumns: variant === 'horizontal' ?
|
|
99
|
+
gridTemplateColumns: variant === 'horizontal' ? `${rem(theme, 200)} 1fr` : undefined,
|
|
104
100
|
columnGap: variant === 'horizontal' ? theme.spacing(1) : undefined,
|
|
105
101
|
alignItems: variant === 'horizontal' ? 'center' : undefined,
|
|
106
102
|
}),
|
|
@@ -11,6 +11,7 @@ import React, { useState } from 'react';
|
|
|
11
11
|
|
|
12
12
|
import { HeaderButton } from '../HeaderButton';
|
|
13
13
|
import type { HeaderActionItem, HeaderActionsProps } from './HeaderActions.types';
|
|
14
|
+
import { sxRem } from '../../../tokens/relative';
|
|
14
15
|
|
|
15
16
|
/** Drop the gated-away entries, so everything below can count what is left. */
|
|
16
17
|
function present(
|
|
@@ -122,7 +123,7 @@ export function HeaderActions({
|
|
|
122
123
|
}}
|
|
123
124
|
data-testid={action.dataTestId ?? action.id}
|
|
124
125
|
>
|
|
125
|
-
<ListItemIcon sx={{ minWidth: 32 }}>{action.icon}</ListItemIcon>
|
|
126
|
+
<ListItemIcon sx={{ minWidth: sxRem(32) }}>{action.icon}</ListItemIcon>
|
|
126
127
|
<ListItemText>{action.text}</ListItemText>
|
|
127
128
|
</MenuItem>
|
|
128
129
|
))}
|