@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,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import Box from '@mui/material/Box/index.js';
|
|
4
4
|
import Button from '@mui/material/Button/index.js';
|
|
5
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
5
6
|
|
|
6
7
|
import type { CategorySelectCopy } from '../../../copy';
|
|
7
8
|
import { footerSx, METRICS } from './CategorySelect.styles';
|
|
8
9
|
import { fieldRadiusPx } from '../../../tokens/field-radius';
|
|
9
|
-
import { sxRem } from '../../../tokens/relative';
|
|
10
|
+
import { rems, sxRem } from '../../../tokens/relative';
|
|
10
11
|
|
|
11
12
|
const buttonSx = (sheet: boolean) =>
|
|
12
13
|
({
|
|
13
|
-
height: sheet ? METRICS.
|
|
14
|
-
padding:
|
|
14
|
+
height: sxRem(sheet ? METRICS.sheetFooterButtonPx : METRICS.footerButtonPx),
|
|
15
|
+
padding: (theme: Theme) => rems(theme, 0, 13),
|
|
15
16
|
borderRadius: fieldRadiusPx,
|
|
16
17
|
fontSize: sxRem(12.5),
|
|
17
18
|
fontWeight: 600,
|
|
@@ -49,7 +50,7 @@ export function CategoryMultiFoot({
|
|
|
49
50
|
<Box component="span" sx={{ fontSize: sxRem(12), color: 'text.secondary' }}>
|
|
50
51
|
{copy.footer.selectedCount(count)}
|
|
51
52
|
</Box>
|
|
52
|
-
<Box sx={{ display: 'flex', gap:
|
|
53
|
+
<Box sx={{ display: 'flex', gap: sxRem(6) }}>
|
|
53
54
|
<Button
|
|
54
55
|
variant="outlined"
|
|
55
56
|
disabled={count === 0}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { CategorySelectCopy } from '../../../copy';
|
|
4
4
|
import Box from '@mui/material/Box/index.js';
|
|
5
5
|
import InputBase from '@mui/material/InputBase/index.js';
|
|
6
|
-
import { alpha, type Theme } from '@mui/material/styles/index.js';
|
|
6
|
+
import { alpha, useTheme, type Theme } from '@mui/material/styles/index.js';
|
|
7
7
|
|
|
8
8
|
import { SearchGlyph } from './CategoryIcons';
|
|
9
9
|
import {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import type { CategorySelectionChip } from './CategorySelect.types';
|
|
17
17
|
import { fieldBorder, fieldHeight } from '../../../tokens/field-height';
|
|
18
18
|
import { fieldRadiusPx } from '../../../tokens/field-radius';
|
|
19
|
-
import { sxRem } from '../../../tokens/relative';
|
|
19
|
+
import { rem, rems, sxRem } from '../../../tokens/relative';
|
|
20
20
|
|
|
21
21
|
interface PanelHeadProps {
|
|
22
22
|
query: string;
|
|
@@ -37,7 +37,7 @@ const searchFieldSx = {
|
|
|
37
37
|
'& input': {
|
|
38
38
|
width: '100%',
|
|
39
39
|
height: fieldHeight,
|
|
40
|
-
padding:
|
|
40
|
+
padding: (theme: Theme) => rems(theme, 0, 30, 0, 32),
|
|
41
41
|
fontSize: sxRem(13),
|
|
42
42
|
border: fieldBorder,
|
|
43
43
|
borderRadius: fieldRadiusPx,
|
|
@@ -47,16 +47,16 @@ const searchFieldSx = {
|
|
|
47
47
|
outline: 'none',
|
|
48
48
|
borderColor: 'primary.main',
|
|
49
49
|
// 0x26 of 0xFF: the ring's old hex-alpha suffix, kept exact.
|
|
50
|
-
boxShadow: (theme: Theme) => `0 0 0
|
|
50
|
+
boxShadow: (theme: Theme) => `0 0 0 ${rem(theme, 3)} ${alpha(theme.palette.primary.main, 0x26 / 0xff)}`,
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
53
|
} as const;
|
|
54
54
|
|
|
55
55
|
const clearButtonSx = {
|
|
56
56
|
position: 'absolute',
|
|
57
|
-
right: 7,
|
|
58
|
-
width: 20,
|
|
59
|
-
height: 20,
|
|
57
|
+
right: sxRem(7),
|
|
58
|
+
width: sxRem(20),
|
|
59
|
+
height: sxRem(20),
|
|
60
60
|
border: 0,
|
|
61
61
|
background: 'action.selected',
|
|
62
62
|
color: 'text.secondary',
|
|
@@ -80,15 +80,16 @@ export function CategoryPanelHead({
|
|
|
80
80
|
dataTestId,
|
|
81
81
|
copy,
|
|
82
82
|
}: PanelHeadProps): React.JSX.Element {
|
|
83
|
+
const theme = useTheme();
|
|
83
84
|
return (
|
|
84
85
|
<Box sx={(theme) => panelHeadSx(theme, sheet)}>
|
|
85
86
|
<Box sx={searchFieldSx}>
|
|
86
87
|
<SearchGlyph
|
|
87
88
|
style={{
|
|
88
89
|
position: 'absolute',
|
|
89
|
-
left: 10,
|
|
90
|
-
width: 15,
|
|
91
|
-
height: 15,
|
|
90
|
+
left: rem(theme, 10),
|
|
91
|
+
width: rem(theme, 15),
|
|
92
|
+
height: rem(theme, 15),
|
|
92
93
|
opacity: 0.55,
|
|
93
94
|
pointerEvents: 'none',
|
|
94
95
|
}}
|
|
@@ -120,8 +121,8 @@ export function CategoryPanelHead({
|
|
|
120
121
|
sx={{
|
|
121
122
|
display: 'flex',
|
|
122
123
|
alignItems: 'center',
|
|
123
|
-
gap:
|
|
124
|
-
marginTop:
|
|
124
|
+
gap: sxRem(10),
|
|
125
|
+
marginTop: sxRem(8),
|
|
125
126
|
fontSize: sxRem(12),
|
|
126
127
|
}}
|
|
127
128
|
>
|
|
@@ -9,6 +9,7 @@ import { categoryCheckState, isLeafCategory, leavesOf } from './category-tree';
|
|
|
9
9
|
import { CategorySectionHeading, CategoryTreeRow } from './CategoryRows';
|
|
10
10
|
import { emptySx, listSx, skeletonSx } from './CategorySelect.styles';
|
|
11
11
|
import type { CategoryGroup } from './CategorySelect.types';
|
|
12
|
+
import { sxRem } from '../../../tokens/relative';
|
|
12
13
|
|
|
13
14
|
/** The design sets these labels in sentence case, not MUI's default caps. */
|
|
14
15
|
const SENTENCE_CASE = { textTransform: 'none' } as const;
|
|
@@ -96,7 +97,7 @@ function NoResults({
|
|
|
96
97
|
<Box sx={emptySx} data-testid={`${dataTestId}-no-results`}>
|
|
97
98
|
<strong>{copy.noResults.title(query)}</strong>
|
|
98
99
|
<p>{copy.noResults.hint}</p>
|
|
99
|
-
<Box sx={{ display: 'flex', gap:
|
|
100
|
+
<Box sx={{ display: 'flex', gap: sxRem(6), justifyContent: 'center' }}>
|
|
100
101
|
<Button variant="outlined" size="small" sx={SENTENCE_CASE} onClick={onClearQuery}>
|
|
101
102
|
{copy.noResults.clearSearch}
|
|
102
103
|
</Button>
|
|
@@ -221,7 +222,7 @@ export function CategoryPanelList(props: PanelListProps): React.JSX.Element {
|
|
|
221
222
|
aria-multiselectable={props.single ? undefined : true}
|
|
222
223
|
tabIndex={-1}
|
|
223
224
|
data-testid={`${dataTestId}-list`}
|
|
224
|
-
sx={listSx(sheet)}
|
|
225
|
+
sx={(theme) => listSx(theme, sheet)}
|
|
225
226
|
>
|
|
226
227
|
{body()}
|
|
227
228
|
</Box>
|
|
@@ -4,6 +4,7 @@ import Drawer from '@mui/material/Drawer/index.js';
|
|
|
4
4
|
import Popover from '@mui/material/Popover/index.js';
|
|
5
5
|
|
|
6
6
|
import { stackedOverlayZIndex } from '../../../tokens/layers';
|
|
7
|
+
import { sxRem } from '../../../tokens/relative';
|
|
7
8
|
|
|
8
9
|
/** Chrome-free surface props: the panel draws its own border and shadow. */
|
|
9
10
|
const BARE_PAPER = { background: 'transparent', boxShadow: 'none' } as const;
|
|
@@ -64,7 +65,7 @@ export function CategoryPanelSurface({
|
|
|
64
65
|
transformOrigin={{ vertical: 'top', horizontal: 'left' }}
|
|
65
66
|
marginThreshold={8}
|
|
66
67
|
sx={ABOVE_SHEETS}
|
|
67
|
-
slotProps={{ paper: { sx: { ...BARE_PAPER, marginTop:
|
|
68
|
+
slotProps={{ paper: { sx: { ...BARE_PAPER, marginTop: sxRem(6), overflow: 'visible' } } }}
|
|
68
69
|
>
|
|
69
70
|
{children}
|
|
70
71
|
</Popover>
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
sectionHeadSx,
|
|
20
20
|
} from './CategorySelect.styles';
|
|
21
21
|
import type { CategorySelectOption } from './CategorySelect.types';
|
|
22
|
+
import { sxRem } from '../../../tokens/relative';
|
|
22
23
|
|
|
23
24
|
/** A label with the search hit marked. */
|
|
24
25
|
export function HighlightedName({
|
|
@@ -104,7 +105,7 @@ function RowDisclosure({
|
|
|
104
105
|
'option' | 'expanded' | 'branch' | 'onToggleExpanded' | 'dataTestId' | 'copy'
|
|
105
106
|
>): React.JSX.Element {
|
|
106
107
|
if (!branch) {
|
|
107
|
-
return <Box sx={{ width: METRICS.
|
|
108
|
+
return <Box sx={{ width: sxRem(METRICS.chevronButtonPx), flex: '0 0 auto' }} />;
|
|
108
109
|
}
|
|
109
110
|
return (
|
|
110
111
|
<Box
|
|
@@ -129,7 +130,7 @@ function RowControl({
|
|
|
129
130
|
checkState,
|
|
130
131
|
single,
|
|
131
132
|
}: Pick<CategoryTreeRowProps, 'checkState' | 'single'>): React.JSX.Element {
|
|
132
|
-
if (!checkState) return <Box sx={{ width: METRICS.
|
|
133
|
+
if (!checkState) return <Box sx={{ width: sxRem(METRICS.boxSizePx), flex: '0 0 auto' }} />;
|
|
133
134
|
// Single-select commits the moment a row is chosen, so the control is a radio
|
|
134
135
|
// there: a checkbox would promise the accumulation this mode does not do.
|
|
135
136
|
if (single) return <CategoryRadio on={checkState === 'on'} />;
|
|
@@ -181,7 +182,7 @@ export function CategoryTreeRow({
|
|
|
181
182
|
aria-selected={checkState ? checkState === 'on' : undefined}
|
|
182
183
|
aria-expanded={branch ? expanded : undefined}
|
|
183
184
|
data-testid={rowTestId(dataTestId, depth, option.id)}
|
|
184
|
-
sx={(theme) => ({ ...rowSx(theme, active, sheet), ...rowIndent(depth) })}
|
|
185
|
+
sx={(theme) => ({ ...rowSx(theme, active, sheet), ...rowIndent(theme, depth) })}
|
|
185
186
|
onClick={onActivate}
|
|
186
187
|
>
|
|
187
188
|
<RowDisclosure
|
|
@@ -4,15 +4,17 @@ import { fieldEdge } from '../../../tokens/field-edge';
|
|
|
4
4
|
import { fieldRadiusPx } from '../../../tokens/field-radius';
|
|
5
5
|
import { fieldHeight } from '../../../tokens/field-height';
|
|
6
6
|
import { absoluteInk, uiInk } from '../../../tokens/ink';
|
|
7
|
-
import { rem } from '../../../tokens/relative';
|
|
7
|
+
import { rem, rems } from '../../../tokens/relative';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* The prototype's METRICS, verbatim.
|
|
10
|
+
* The prototype's METRICS, verbatim, in the design's px.
|
|
11
11
|
*
|
|
12
12
|
* Every number here is lifted from the approved design and is intentionally
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* not derived from `theme.spacing`: the design is specified on a half-pixel
|
|
14
|
+
* type scale (13.5px rows, 1.5px checkbox borders) that an 8px spacing grid
|
|
15
|
+
* cannot express without rounding the look away. Each is drawn through
|
|
16
|
+
* `rem()` (the theme's type scale) where it is read, so it follows a density
|
|
17
|
+
* mode exactly — `sheetBreakpoint` excepted, which is a media-query width.
|
|
16
18
|
*
|
|
17
19
|
* The trigger's CORNER and HEIGHT are the other exception: it is a field, so it
|
|
18
20
|
* takes the theme's field radius and field height (`tokens/field-radius`,
|
|
@@ -25,19 +27,19 @@ import { rem } from '../../../tokens/relative';
|
|
|
25
27
|
* prototype's own values.
|
|
26
28
|
*/
|
|
27
29
|
export const METRICS = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
panelWidthPx: 340,
|
|
31
|
+
panelRadiusPx: 14,
|
|
32
|
+
listMaxHeightPx: 290,
|
|
33
|
+
sheetListMaxHeightPx: 340,
|
|
34
|
+
rowHeightPx: 36,
|
|
35
|
+
sheetRowHeightPx: 42,
|
|
36
|
+
rowRadiusPx: 8,
|
|
37
|
+
boxSizePx: 18,
|
|
38
|
+
chevronButtonPx: 22,
|
|
37
39
|
/** Extra left padding per level of nesting. */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
rowIndentStepPx: 14,
|
|
41
|
+
footerButtonPx: 32,
|
|
42
|
+
sheetFooterButtonPx: 38,
|
|
41
43
|
/** Below this width the panel becomes a bottom sheet. */
|
|
42
44
|
sheetBreakpoint: 480,
|
|
43
45
|
} as const;
|
|
@@ -57,9 +59,9 @@ export const triggerSx = (theme: Theme, selected: boolean, open: boolean): CSSOb
|
|
|
57
59
|
return {
|
|
58
60
|
display: 'flex',
|
|
59
61
|
alignItems: 'center',
|
|
60
|
-
gap:
|
|
62
|
+
gap: rem(theme, 8),
|
|
61
63
|
height: fieldHeight(theme),
|
|
62
|
-
padding:
|
|
64
|
+
padding: rems(theme, 0, 10, 0, 12),
|
|
63
65
|
borderRadius: fieldRadiusPx(theme),
|
|
64
66
|
border: `1px solid ${open || selected ? brand.edge : fieldEdge(theme)}`,
|
|
65
67
|
background: selected ? brand.soft : theme.palette.background.paper,
|
|
@@ -69,12 +71,12 @@ export const triggerSx = (theme: Theme, selected: boolean, open: boolean): CSSOb
|
|
|
69
71
|
cursor: 'pointer',
|
|
70
72
|
maxWidth: '100%',
|
|
71
73
|
transition: 'border-color .12s, box-shadow .12s',
|
|
72
|
-
boxShadow: open ? `0 0 0
|
|
74
|
+
boxShadow: open ? `0 0 0 ${rem(theme, 3)} ${brand.ring}` : 'none',
|
|
73
75
|
'&:hover': { borderColor: open || selected ? brand.edge : theme.palette.text.disabled },
|
|
74
76
|
'&:focus-visible': {
|
|
75
77
|
outline: 'none',
|
|
76
78
|
borderColor: brand.main,
|
|
77
|
-
boxShadow: `0 0 0
|
|
79
|
+
boxShadow: `0 0 0 ${rem(theme, 3)} ${alpha(brand.main, 0.18)}`,
|
|
78
80
|
},
|
|
79
81
|
'&:disabled': { opacity: 0.5, cursor: 'default' },
|
|
80
82
|
};
|
|
@@ -87,20 +89,20 @@ export const triggerCountSx = (theme: Theme): CSSObject => ({
|
|
|
87
89
|
lineHeight: 1,
|
|
88
90
|
background: theme.palette.primary.main,
|
|
89
91
|
color: theme.palette.primary.contrastText,
|
|
90
|
-
borderRadius:
|
|
91
|
-
padding:
|
|
92
|
-
minWidth: 18,
|
|
92
|
+
borderRadius: rem(theme, 999),
|
|
93
|
+
padding: rems(theme, 3, 6),
|
|
94
|
+
minWidth: rem(theme, 18),
|
|
93
95
|
textAlign: 'center',
|
|
94
96
|
});
|
|
95
97
|
|
|
96
98
|
/** The trigger's inline clear (×) and the chevron. */
|
|
97
99
|
export const triggerClearSx = (theme: Theme): CSSObject => ({
|
|
98
|
-
width: 20,
|
|
99
|
-
height: 20,
|
|
100
|
+
width: rem(theme, 20),
|
|
101
|
+
height: rem(theme, 20),
|
|
100
102
|
flex: '0 0 auto',
|
|
101
103
|
border: 0,
|
|
102
104
|
background: 'transparent',
|
|
103
|
-
borderRadius:
|
|
105
|
+
borderRadius: rem(theme, 5),
|
|
104
106
|
display: 'grid',
|
|
105
107
|
placeItems: 'center',
|
|
106
108
|
cursor: 'pointer',
|
|
@@ -110,9 +112,9 @@ export const triggerClearSx = (theme: Theme): CSSObject => ({
|
|
|
110
112
|
'&:hover': { background: alpha(absoluteInk(theme).black, 0.08), opacity: 1 },
|
|
111
113
|
});
|
|
112
114
|
|
|
113
|
-
export const triggerChevronSx = (open: boolean): CSSObject => ({
|
|
114
|
-
width: 14,
|
|
115
|
-
height: 14,
|
|
115
|
+
export const triggerChevronSx = (theme: Theme, open: boolean): CSSObject => ({
|
|
116
|
+
width: rem(theme, 14),
|
|
117
|
+
height: rem(theme, 14),
|
|
116
118
|
flex: '0 0 auto',
|
|
117
119
|
opacity: 0.55,
|
|
118
120
|
transition: 'transform .15s',
|
|
@@ -121,12 +123,12 @@ export const triggerChevronSx = (open: boolean): CSSObject => ({
|
|
|
121
123
|
|
|
122
124
|
/** The floating panel. */
|
|
123
125
|
export const panelSx = (theme: Theme): CSSObject => ({
|
|
124
|
-
width: METRICS.
|
|
126
|
+
width: rem(theme, METRICS.panelWidthPx),
|
|
125
127
|
maxWidth: '100%',
|
|
126
128
|
background: theme.palette.background.paper,
|
|
127
129
|
border: `1px solid ${theme.palette.divider}`,
|
|
128
|
-
borderRadius:
|
|
129
|
-
boxShadow:
|
|
130
|
+
borderRadius: rem(theme, METRICS.panelRadiusPx),
|
|
131
|
+
boxShadow: `${rems(theme, 0, 1, 2)} ${alpha(uiInk(theme).panelShadowInk, 0.05)}, ${rems(theme, 0, 18, 40, -12)} ${alpha(uiInk(theme).panelShadowInk, 0.28)}`,
|
|
130
132
|
display: 'flex',
|
|
131
133
|
flexDirection: 'column',
|
|
132
134
|
overflow: 'hidden',
|
|
@@ -136,30 +138,30 @@ export const panelSx = (theme: Theme): CSSObject => ({
|
|
|
136
138
|
export const sheetSx = (theme: Theme): CSSObject => ({
|
|
137
139
|
width: '100%',
|
|
138
140
|
maxWidth: 'none',
|
|
139
|
-
borderRadius:
|
|
141
|
+
borderRadius: rems(theme, 18, 18, 0, 0),
|
|
140
142
|
borderBottom: 0,
|
|
141
143
|
position: 'relative',
|
|
142
|
-
paddingTop:
|
|
144
|
+
paddingTop: rem(theme, 4),
|
|
143
145
|
'&::before': {
|
|
144
146
|
content: '""',
|
|
145
147
|
position: 'absolute',
|
|
146
|
-
top: 7,
|
|
148
|
+
top: rem(theme, 7),
|
|
147
149
|
left: '50%',
|
|
148
150
|
transform: 'translateX(-50%)',
|
|
149
|
-
width: 36,
|
|
150
|
-
height: 4,
|
|
151
|
-
borderRadius:
|
|
151
|
+
width: rem(theme, 36),
|
|
152
|
+
height: rem(theme, 4),
|
|
153
|
+
borderRadius: rem(theme, 2),
|
|
152
154
|
background: theme.palette.divider,
|
|
153
155
|
},
|
|
154
156
|
});
|
|
155
157
|
|
|
156
158
|
export const panelHeadSx = (theme: Theme, sheet: boolean): CSSObject => ({
|
|
157
|
-
padding: sheet ?
|
|
159
|
+
padding: sheet ? rems(theme, 18, 10, 8) : rems(theme, 10, 10, 8),
|
|
158
160
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
159
161
|
});
|
|
160
162
|
|
|
161
163
|
export const pinnedSx = (theme: Theme): CSSObject => ({
|
|
162
|
-
padding:
|
|
164
|
+
padding: rems(theme, 9, 10),
|
|
163
165
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
164
166
|
background: alpha(theme.palette.primary.main, 0.03),
|
|
165
167
|
});
|
|
@@ -171,16 +173,16 @@ export const pinnedLabelSx = (theme: Theme): CSSObject => ({
|
|
|
171
173
|
letterSpacing: '.08em',
|
|
172
174
|
textTransform: 'uppercase',
|
|
173
175
|
color: theme.palette.text.secondary,
|
|
174
|
-
marginBottom:
|
|
176
|
+
marginBottom: rem(theme, 7),
|
|
175
177
|
});
|
|
176
178
|
|
|
177
|
-
export const chipWrapSx: CSSObject
|
|
179
|
+
export const chipWrapSx = (theme: Theme): CSSObject => ({
|
|
178
180
|
display: 'flex',
|
|
179
181
|
flexWrap: 'wrap',
|
|
180
|
-
gap:
|
|
181
|
-
maxHeight: 74,
|
|
182
|
+
gap: rem(theme, 5),
|
|
183
|
+
maxHeight: rem(theme, 74),
|
|
182
184
|
overflow: 'auto',
|
|
183
|
-
};
|
|
185
|
+
});
|
|
184
186
|
|
|
185
187
|
/** A selected-category chip, in the pinned tray and the applied bar alike. */
|
|
186
188
|
export const chipSx = (theme: Theme): CSSObject => {
|
|
@@ -188,22 +190,22 @@ export const chipSx = (theme: Theme): CSSObject => {
|
|
|
188
190
|
return {
|
|
189
191
|
display: 'inline-flex',
|
|
190
192
|
alignItems: 'center',
|
|
191
|
-
gap:
|
|
193
|
+
gap: rem(theme, 5),
|
|
192
194
|
fontSize: rem(theme, 12),
|
|
193
195
|
background: brand.soft,
|
|
194
196
|
color: brand.ink,
|
|
195
197
|
border: `1px solid ${brand.edge}`,
|
|
196
|
-
borderRadius:
|
|
197
|
-
padding:
|
|
198
|
+
borderRadius: rem(theme, 7),
|
|
199
|
+
padding: rems(theme, 3, 4, 3, 8),
|
|
198
200
|
'& button': {
|
|
199
201
|
border: 0,
|
|
200
202
|
background: 'transparent',
|
|
201
203
|
color: 'inherit',
|
|
202
204
|
cursor: 'pointer',
|
|
203
205
|
padding: 0,
|
|
204
|
-
width: 16,
|
|
205
|
-
height: 16,
|
|
206
|
-
borderRadius:
|
|
206
|
+
width: rem(theme, 16),
|
|
207
|
+
height: rem(theme, 16),
|
|
208
|
+
borderRadius: rem(theme, 4),
|
|
207
209
|
display: 'grid',
|
|
208
210
|
placeItems: 'center',
|
|
209
211
|
opacity: 0.65,
|
|
@@ -214,11 +216,11 @@ export const chipSx = (theme: Theme): CSSObject => {
|
|
|
214
216
|
};
|
|
215
217
|
};
|
|
216
218
|
|
|
217
|
-
export const listSx = (sheet: boolean): CSSObject => ({
|
|
219
|
+
export const listSx = (theme: Theme, sheet: boolean): CSSObject => ({
|
|
218
220
|
overflow: 'auto',
|
|
219
|
-
maxHeight: sheet ? METRICS.
|
|
220
|
-
padding:
|
|
221
|
-
scrollPadding:
|
|
221
|
+
maxHeight: rem(theme, sheet ? METRICS.sheetListMaxHeightPx : METRICS.listMaxHeightPx),
|
|
222
|
+
padding: rems(theme, 6, 6, 8),
|
|
223
|
+
scrollPadding: rems(theme, 8, 0),
|
|
222
224
|
overscrollBehavior: 'contain',
|
|
223
225
|
});
|
|
224
226
|
|
|
@@ -226,10 +228,10 @@ export const listSx = (sheet: boolean): CSSObject => ({
|
|
|
226
228
|
export const rowSx = (theme: Theme, active: boolean, sheet: boolean): CSSObject => ({
|
|
227
229
|
display: 'flex',
|
|
228
230
|
alignItems: 'center',
|
|
229
|
-
gap:
|
|
230
|
-
padding:
|
|
231
|
-
height: sheet ? METRICS.
|
|
232
|
-
borderRadius:
|
|
231
|
+
gap: rem(theme, 8),
|
|
232
|
+
padding: rems(theme, 0, 8),
|
|
233
|
+
height: rem(theme, sheet ? METRICS.sheetRowHeightPx : METRICS.rowHeightPx),
|
|
234
|
+
borderRadius: rem(theme, METRICS.rowRadiusPx),
|
|
233
235
|
cursor: 'pointer',
|
|
234
236
|
userSelect: 'none',
|
|
235
237
|
position: 'relative',
|
|
@@ -238,25 +240,25 @@ export const rowSx = (theme: Theme, active: boolean, sheet: boolean): CSSObject
|
|
|
238
240
|
textAlign: 'left',
|
|
239
241
|
font: 'inherit',
|
|
240
242
|
background: active ? alpha(theme.palette.primary.main, 0.08) : 'transparent',
|
|
241
|
-
boxShadow: active ? `inset 0 0 0
|
|
243
|
+
boxShadow: active ? `inset 0 0 0 ${rem(theme, 1)} ${alpha(theme.palette.primary.main, 0.3)}` : 'none',
|
|
242
244
|
'&:hover': {
|
|
243
245
|
background: active
|
|
244
246
|
? alpha(theme.palette.primary.main, 0.08)
|
|
245
247
|
: theme.palette.action.hover,
|
|
246
248
|
},
|
|
247
|
-
'&:focus-visible': { outline:
|
|
249
|
+
'&:focus-visible': { outline: `${rem(theme, 2)} solid ${theme.palette.primary.main}`, outlineOffset: rem(theme, 1) },
|
|
248
250
|
});
|
|
249
251
|
|
|
250
252
|
/**
|
|
251
253
|
* How far a row sits in from the panel edge, by depth.
|
|
252
254
|
*
|
|
253
255
|
* One step per level, on top of {@link rowSx}'s own 8px gutter — depth 0 keeps
|
|
254
|
-
* that gutter, and every level below it adds `METRICS.
|
|
255
|
-
* like the rest of this file: the step is the design's
|
|
256
|
-
* multiple that would round it.
|
|
256
|
+
* that gutter, and every level below it adds `METRICS.rowIndentStepPx`. Read
|
|
257
|
+
* through the type scale like the rest of this file: the step is the design's
|
|
258
|
+
* own 14px, not a spacing multiple that would round it.
|
|
257
259
|
*/
|
|
258
|
-
export const rowIndent = (depth: number): CSSObject =>
|
|
259
|
-
depth === 0 ? {} : { paddingLeft:
|
|
260
|
+
export const rowIndent = (theme: Theme, depth: number): CSSObject =>
|
|
261
|
+
depth === 0 ? {} : { paddingLeft: rem(theme, depth * METRICS.rowIndentStepPx) };
|
|
260
262
|
|
|
261
263
|
export const rowNameSx = (theme: Theme, isCategory: boolean): CSSObject => ({
|
|
262
264
|
flex: 1,
|
|
@@ -280,57 +282,57 @@ export const rowMetaSx = (theme: Theme, selected: boolean): CSSObject => ({
|
|
|
280
282
|
export const markSx = (theme: Theme): CSSObject => ({
|
|
281
283
|
background: uiInk(theme).highlightMark,
|
|
282
284
|
color: 'inherit',
|
|
283
|
-
borderRadius:
|
|
284
|
-
padding:
|
|
285
|
+
borderRadius: rem(theme, 2),
|
|
286
|
+
padding: rems(theme, 0, 1),
|
|
285
287
|
});
|
|
286
288
|
|
|
287
289
|
export const chevronButtonSx = (theme: Theme, open: boolean): CSSObject => ({
|
|
288
|
-
width: METRICS.
|
|
289
|
-
height: METRICS.
|
|
290
|
+
width: rem(theme, METRICS.chevronButtonPx),
|
|
291
|
+
height: rem(theme, METRICS.chevronButtonPx),
|
|
290
292
|
flex: '0 0 auto',
|
|
291
293
|
border: 0,
|
|
292
294
|
background: 'transparent',
|
|
293
|
-
borderRadius:
|
|
295
|
+
borderRadius: rem(theme, 6),
|
|
294
296
|
display: 'grid',
|
|
295
297
|
placeItems: 'center',
|
|
296
298
|
cursor: 'pointer',
|
|
297
299
|
color: theme.palette.text.secondary,
|
|
298
300
|
padding: 0,
|
|
299
301
|
'&:hover': { background: theme.palette.action.hover, color: theme.palette.text.primary },
|
|
300
|
-
'& svg': { width: 12, height: 12, transition: 'transform .15s', transform: open ? 'rotate(90deg)' : 'none' },
|
|
302
|
+
'& svg': { width: rem(theme, 12), height: rem(theme, 12), transition: 'transform .15s', transform: open ? 'rotate(90deg)' : 'none' },
|
|
301
303
|
});
|
|
302
304
|
|
|
303
305
|
/** The tri-state checkbox: unchecked, checked, or the partial bar. */
|
|
304
306
|
export const checkboxSx = (theme: Theme, state: 'off' | 'partial' | 'on'): CSSObject => ({
|
|
305
|
-
width: METRICS.
|
|
306
|
-
height: METRICS.
|
|
307
|
+
width: rem(theme, METRICS.boxSizePx),
|
|
308
|
+
height: rem(theme, METRICS.boxSizePx),
|
|
307
309
|
flex: '0 0 auto',
|
|
308
|
-
border:
|
|
309
|
-
borderRadius:
|
|
310
|
+
border: `${rem(theme, 1.5)} solid ${state === 'off' ? theme.palette.divider : theme.palette.primary.main}`,
|
|
311
|
+
borderRadius: rem(theme, 5),
|
|
310
312
|
background: state === 'off' ? theme.palette.background.paper : theme.palette.primary.main,
|
|
311
313
|
display: 'grid',
|
|
312
314
|
placeItems: 'center',
|
|
313
315
|
transition: 'background .1s, border-color .1s',
|
|
314
|
-
'& svg': { width: 12, height: 12, color: theme.palette.primary.contrastText },
|
|
316
|
+
'& svg': { width: rem(theme, 12), height: rem(theme, 12), color: theme.palette.primary.contrastText },
|
|
315
317
|
});
|
|
316
318
|
|
|
317
319
|
/** The partial bar drawn inside a half-selected checkbox. */
|
|
318
320
|
export const checkboxBarSx = (theme: Theme): CSSObject => ({
|
|
319
|
-
width: 9,
|
|
320
|
-
height: 2,
|
|
321
|
+
width: rem(theme, 9),
|
|
322
|
+
height: rem(theme, 2),
|
|
321
323
|
background: theme.palette.primary.contrastText,
|
|
322
|
-
borderRadius:
|
|
324
|
+
borderRadius: rem(theme, 1),
|
|
323
325
|
});
|
|
324
326
|
|
|
325
327
|
export const radioSx = (theme: Theme, on: boolean): CSSObject => ({
|
|
326
|
-
width: METRICS.
|
|
327
|
-
height: METRICS.
|
|
328
|
+
width: rem(theme, METRICS.boxSizePx),
|
|
329
|
+
height: rem(theme, METRICS.boxSizePx),
|
|
328
330
|
flex: '0 0 auto',
|
|
329
331
|
borderRadius: '50%',
|
|
330
332
|
background: theme.palette.background.paper,
|
|
331
333
|
border: on
|
|
332
|
-
?
|
|
333
|
-
:
|
|
334
|
+
? `${rem(theme, 5.5)} solid ${theme.palette.primary.main}`
|
|
335
|
+
: `${rem(theme, 1.5)} solid ${theme.palette.divider}`,
|
|
334
336
|
boxSizing: 'border-box',
|
|
335
337
|
});
|
|
336
338
|
|
|
@@ -341,35 +343,35 @@ export const sectionHeadSx = (theme: Theme): CSSObject => ({
|
|
|
341
343
|
letterSpacing: '.08em',
|
|
342
344
|
textTransform: 'uppercase',
|
|
343
345
|
color: theme.palette.text.secondary,
|
|
344
|
-
padding:
|
|
346
|
+
padding: rems(theme, 9, 8, 6),
|
|
345
347
|
});
|
|
346
348
|
|
|
347
349
|
export const footerSx = (theme: Theme): CSSObject => ({
|
|
348
350
|
display: 'flex',
|
|
349
351
|
alignItems: 'center',
|
|
350
352
|
justifyContent: 'space-between',
|
|
351
|
-
gap:
|
|
352
|
-
padding:
|
|
353
|
+
gap: rem(theme, 8),
|
|
354
|
+
padding: rems(theme, 9, 10),
|
|
353
355
|
borderTop: `1px solid ${theme.palette.divider}`,
|
|
354
356
|
background: theme.palette.action.hover,
|
|
355
357
|
});
|
|
356
358
|
|
|
357
359
|
export const emptySx = (theme: Theme): CSSObject => ({
|
|
358
|
-
padding:
|
|
360
|
+
padding: rems(theme, 26, 18),
|
|
359
361
|
textAlign: 'center',
|
|
360
362
|
color: theme.palette.text.secondary,
|
|
361
363
|
'& strong': {
|
|
362
364
|
display: 'block',
|
|
363
365
|
color: theme.palette.text.primary,
|
|
364
366
|
fontSize: rem(theme, 13.5),
|
|
365
|
-
marginBottom:
|
|
367
|
+
marginBottom: rem(theme, 4),
|
|
366
368
|
},
|
|
367
|
-
'& p': { margin:
|
|
369
|
+
'& p': { margin: rems(theme, 0, 0, 12), fontSize: rem(theme, 12.5), lineHeight: 1.5 },
|
|
368
370
|
});
|
|
369
371
|
|
|
370
372
|
/** Skeleton row used while the catalogue loads. */
|
|
371
|
-
export const skeletonSx: CSSObject
|
|
372
|
-
height: METRICS.
|
|
373
|
-
margin:
|
|
374
|
-
borderRadius:
|
|
375
|
-
};
|
|
373
|
+
export const skeletonSx = (theme: Theme): CSSObject => ({
|
|
374
|
+
height: rem(theme, METRICS.rowHeightPx),
|
|
375
|
+
margin: rems(theme, 4, 6),
|
|
376
|
+
borderRadius: rem(theme, METRICS.rowRadiusPx),
|
|
377
|
+
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { CategorySelectCopy } from "../../../copy";
|
|
4
4
|
import Box from '@mui/material/Box/index.js';
|
|
5
|
+
import { useTheme } from '@mui/material/styles/index.js';
|
|
5
6
|
|
|
6
7
|
import { CaretGlyph } from './CategoryIcons';
|
|
7
8
|
import {
|
|
@@ -10,6 +11,7 @@ import {
|
|
|
10
11
|
triggerCountSx,
|
|
11
12
|
triggerSx,
|
|
12
13
|
} from './CategorySelect.styles';
|
|
14
|
+
import { sxRem } from '../../../tokens/relative';
|
|
13
15
|
|
|
14
16
|
interface CategoryTriggerProps {
|
|
15
17
|
/** The words this renders. REQUIRED — this package ships no default copy. */
|
|
@@ -51,6 +53,7 @@ export function CategoryTrigger({
|
|
|
51
53
|
dataTestId,
|
|
52
54
|
copy,
|
|
53
55
|
}: CategoryTriggerProps): React.JSX.Element {
|
|
56
|
+
const theme = useTheme();
|
|
54
57
|
const hasSelection = Boolean(selectionLabel) || (count ?? 0) > 0;
|
|
55
58
|
return (
|
|
56
59
|
<Box
|
|
@@ -73,7 +76,7 @@ export function CategoryTrigger({
|
|
|
73
76
|
whiteSpace: 'nowrap',
|
|
74
77
|
overflow: 'hidden',
|
|
75
78
|
textOverflow: 'ellipsis',
|
|
76
|
-
maxWidth: 190,
|
|
79
|
+
maxWidth: sxRem(190),
|
|
77
80
|
flex: fullWidth ? 1 : '0 1 auto',
|
|
78
81
|
textAlign: 'left',
|
|
79
82
|
}}
|
|
@@ -107,7 +110,7 @@ export function CategoryTrigger({
|
|
|
107
110
|
×
|
|
108
111
|
</Box>
|
|
109
112
|
)}
|
|
110
|
-
<CaretGlyph style={triggerChevronSx(open) as React.CSSProperties} />
|
|
113
|
+
<CaretGlyph style={triggerChevronSx(theme, open) as React.CSSProperties} />
|
|
111
114
|
</Box>
|
|
112
115
|
);
|
|
113
116
|
}
|