@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
|
@@ -7,11 +7,13 @@ import { fieldEdge } from '../../../tokens/field-edge';
|
|
|
7
7
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
8
8
|
import { asFieldSize, FIELD_BORDER_WIDTH, fieldHeight } from '../../../tokens/field-height';
|
|
9
9
|
import { absoluteInk, controlNeutral } from '../../../tokens/ink';
|
|
10
|
-
import { rem } from '../../../tokens/relative';
|
|
10
|
+
import { rem, remPx, rems } from '../../../tokens/relative';
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The segment track's padding (4px at the design scale); its border is the
|
|
14
|
+
* field hairline. Its corner is the segments' radius plus both.
|
|
15
|
+
*/
|
|
16
|
+
const segmentTrackPadding = (theme: Theme): string => rem(theme, 4);
|
|
15
17
|
|
|
16
18
|
interface ColorPalette {
|
|
17
19
|
main: string;
|
|
@@ -65,28 +67,28 @@ type SizeKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
65
67
|
|
|
66
68
|
const pickSize = <T,>(map: Record<SizeKey, T>, size: string): T => map[size as SizeKey] ?? map.md;
|
|
67
69
|
|
|
68
|
-
const CARD_SIZES: Record<SizeKey, CSSObject> = {
|
|
69
|
-
xs: { padding:
|
|
70
|
-
sm: { padding:
|
|
71
|
-
md: { padding:
|
|
72
|
-
lg: { padding:
|
|
73
|
-
xl: { padding:
|
|
70
|
+
const CARD_SIZES: Record<SizeKey, (theme: Theme) => CSSObject> = {
|
|
71
|
+
xs: (theme) => ({ padding: rem(theme, 8), minHeight: rem(theme, 60) }),
|
|
72
|
+
sm: (theme) => ({ padding: rem(theme, 12), minHeight: rem(theme, 70) }),
|
|
73
|
+
md: (theme) => ({ padding: rem(theme, 16), minHeight: rem(theme, 80) }),
|
|
74
|
+
lg: (theme) => ({ padding: rem(theme, 20), minHeight: rem(theme, 90) }),
|
|
75
|
+
xl: (theme) => ({ padding: rem(theme, 24), minHeight: rem(theme, 100) }),
|
|
74
76
|
};
|
|
75
77
|
|
|
76
78
|
const BUTTON_SIZES: Record<SizeKey, (theme: Theme) => CSSObject> = {
|
|
77
|
-
xs: (theme) => ({ padding:
|
|
78
|
-
sm: (theme) => ({ padding:
|
|
79
|
-
md: (theme) => ({ padding:
|
|
80
|
-
lg: (theme) => ({ padding:
|
|
81
|
-
xl: (theme) => ({ padding:
|
|
79
|
+
xs: (theme) => ({ padding: rems(theme, 6, 12), fontSize: rem(theme, 12), minHeight: rem(theme, 32) }),
|
|
80
|
+
sm: (theme) => ({ padding: rems(theme, 8, 16), fontSize: rem(theme, 14), minHeight: rem(theme, 36) }),
|
|
81
|
+
md: (theme) => ({ padding: rems(theme, 10, 20), fontSize: rem(theme, 16), minHeight: rem(theme, 40) }),
|
|
82
|
+
lg: (theme) => ({ padding: rems(theme, 12, 24), fontSize: rem(theme, 18), minHeight: rem(theme, 44) }),
|
|
83
|
+
xl: (theme) => ({ padding: rems(theme, 14, 28), fontSize: rem(theme, 20), minHeight: rem(theme, 48) }),
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
const SEGMENT_SIZES: Record<SizeKey, (theme: Theme) => CSSObject> = {
|
|
85
|
-
xs: (theme) => ({ padding:
|
|
86
|
-
sm: (theme) => ({ padding:
|
|
87
|
-
md: (theme) => ({ padding:
|
|
88
|
-
lg: (theme) => ({ padding:
|
|
89
|
-
xl: (theme) => ({ padding:
|
|
87
|
+
xs: (theme) => ({ padding: rems(theme, 4, 8), fontSize: rem(theme, 12) }),
|
|
88
|
+
sm: (theme) => ({ padding: rems(theme, 6, 12), fontSize: rem(theme, 14) }),
|
|
89
|
+
md: (theme) => ({ padding: rems(theme, 8, 16), fontSize: rem(theme, 16) }),
|
|
90
|
+
lg: (theme) => ({ padding: rems(theme, 10, 20), fontSize: rem(theme, 18) }),
|
|
91
|
+
xl: (theme) => ({ padding: rems(theme, 12, 24), fontSize: rem(theme, 20) }),
|
|
90
92
|
};
|
|
91
93
|
|
|
92
94
|
export interface SurfaceFlags {
|
|
@@ -105,9 +107,9 @@ export const formLabelSx = (theme: Theme, glass?: boolean, error?: boolean): CSS
|
|
|
105
107
|
color: error ? theme.palette.error.main : theme.palette.text.primary,
|
|
106
108
|
...(glass && {
|
|
107
109
|
backgroundColor: alpha(theme.palette.background.paper, 0.1),
|
|
108
|
-
backdropFilter:
|
|
109
|
-
padding:
|
|
110
|
-
borderRadius:
|
|
110
|
+
backdropFilter: `blur(${rem(theme, 10)})`,
|
|
111
|
+
padding: rems(theme, 8, 12),
|
|
112
|
+
borderRadius: rem(theme, 8),
|
|
111
113
|
border: `1px solid ${alpha(theme.palette.divider, 0.2)}`,
|
|
112
114
|
display: 'inline-block',
|
|
113
115
|
}),
|
|
@@ -120,11 +122,11 @@ const cardBase = (theme: Theme, flags: SurfaceFlags, palette: ColorPalette): CSS
|
|
|
120
122
|
return {
|
|
121
123
|
cursor: 'pointer',
|
|
122
124
|
transition: 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
123
|
-
border:
|
|
125
|
+
border: `${rem(theme, 2)} solid ${selected ? palette.main : fieldEdge(theme)}`,
|
|
124
126
|
backgroundColor: selected ? alpha(palette.main, 0.05) : theme.palette.background.paper,
|
|
125
127
|
position: 'relative' as const,
|
|
126
128
|
overflow: 'hidden' as const,
|
|
127
|
-
...(animated && { animation: `${slideAnimation} 0.4s ease-out` }),
|
|
129
|
+
...(animated && { animation: `${slideAnimation(theme)} 0.4s ease-out` }),
|
|
128
130
|
// A radial wash that grows from the centre as the card is selected or hovered.
|
|
129
131
|
'&::before': {
|
|
130
132
|
content: '""',
|
|
@@ -141,12 +143,12 @@ const cardBase = (theme: Theme, flags: SurfaceFlags, palette: ColorPalette): CSS
|
|
|
141
143
|
'&:hover': {
|
|
142
144
|
borderColor: palette.main,
|
|
143
145
|
backgroundColor: alpha(palette.main, 0.02),
|
|
144
|
-
transform:
|
|
145
|
-
boxShadow: `${theme.shadows[4]}, 0
|
|
146
|
+
transform: `translateY(${rem(theme, -2)}) scale(1.02)`,
|
|
147
|
+
boxShadow: `${theme.shadows[4]}, 0 ${rems(theme, 10, 30, -5)} ${alpha(palette.main, 0.2)}`,
|
|
146
148
|
'&::before': { width: '120%', height: '120%' },
|
|
147
149
|
},
|
|
148
150
|
'&:active': { transform: 'scale(0.98)' },
|
|
149
|
-
...pickSize(CARD_SIZES, customSize),
|
|
151
|
+
...pickSize(CARD_SIZES, customSize)(theme),
|
|
150
152
|
};
|
|
151
153
|
};
|
|
152
154
|
|
|
@@ -160,7 +162,7 @@ export const radioCardSx = (theme: Theme, flags: SurfaceFlags): CSSObject => {
|
|
|
160
162
|
backgroundColor: selected
|
|
161
163
|
? alpha(palette.main, 0.1)
|
|
162
164
|
: alpha(theme.palette.background.paper, 0.1),
|
|
163
|
-
backdropFilter:
|
|
165
|
+
backdropFilter: `blur(${rem(theme, 20)})`,
|
|
164
166
|
border: `1px solid ${alpha(theme.palette.divider, 0.2)}`,
|
|
165
167
|
}),
|
|
166
168
|
...(gradient &&
|
|
@@ -170,8 +172,8 @@ export const radioCardSx = (theme: Theme, flags: SurfaceFlags): CSSObject => {
|
|
|
170
172
|
}),
|
|
171
173
|
...(glow &&
|
|
172
174
|
selected && {
|
|
173
|
-
animation: `${glowAnimation} 2s ease-in-out infinite`,
|
|
174
|
-
boxShadow: `0 0
|
|
175
|
+
animation: `${glowAnimation(theme)} 2s ease-in-out infinite`,
|
|
176
|
+
boxShadow: `0 0 ${rem(theme, 15)} ${alpha(palette.main, 0.4)}`,
|
|
175
177
|
}),
|
|
176
178
|
};
|
|
177
179
|
};
|
|
@@ -211,8 +213,8 @@ const buttonBase = (theme: Theme, flags: SurfaceFlags, palette: ColorPalette): C
|
|
|
211
213
|
'&:hover': {
|
|
212
214
|
borderColor: palette.main,
|
|
213
215
|
backgroundColor: selected ? palette.dark : alpha(palette.main, 0.1),
|
|
214
|
-
transform:
|
|
215
|
-
boxShadow: `0
|
|
216
|
+
transform: `translateY(${rem(theme, -1)}) scale(1.02)`,
|
|
217
|
+
boxShadow: `0 ${rems(theme, 4, 12)} ${alpha(palette.main, 0.2)}`,
|
|
216
218
|
},
|
|
217
219
|
'&:active': { transform: 'scale(0.98)' },
|
|
218
220
|
...pickSize(BUTTON_SIZES, customSize)(theme),
|
|
@@ -233,7 +235,7 @@ export const buttonRadioSx = (theme: Theme, flags: SurfaceFlags): CSSObject => {
|
|
|
233
235
|
backgroundColor: selected
|
|
234
236
|
? alpha(palette.main, 0.8)
|
|
235
237
|
: alpha(theme.palette.background.paper, 0.1),
|
|
236
|
-
backdropFilter:
|
|
238
|
+
backdropFilter: `blur(${rem(theme, 20)})`,
|
|
237
239
|
border: `1px solid ${alpha(theme.palette.divider, 0.2)}`,
|
|
238
240
|
}),
|
|
239
241
|
...(gradient &&
|
|
@@ -252,16 +254,16 @@ export const segmentContainerSx = (
|
|
|
252
254
|
const palette = getColorFromTheme(theme, customColor);
|
|
253
255
|
|
|
254
256
|
return {
|
|
255
|
-
padding:
|
|
257
|
+
padding: segmentTrackPadding(theme),
|
|
256
258
|
// Concentric with the segments inside it, which take the field radius.
|
|
257
|
-
borderRadius: fieldRadius(theme) +
|
|
259
|
+
borderRadius: fieldRadius(theme) + remPx(theme, 4) + FIELD_BORDER_WIDTH,
|
|
258
260
|
backgroundColor: glass
|
|
259
261
|
? alpha(theme.palette.background.paper, 0.1)
|
|
260
262
|
: alpha(palette.main, 0.05),
|
|
261
|
-
backdropFilter: glass ?
|
|
262
|
-
border: `${
|
|
263
|
+
backdropFilter: glass ? `blur(${rem(theme, 20)})` : 'none',
|
|
264
|
+
border: `${FIELD_BORDER_WIDTH}px solid ${alpha(theme.palette.divider, 0.2)}`,
|
|
263
265
|
display: 'flex',
|
|
264
|
-
gap:
|
|
266
|
+
gap: rem(theme, 2),
|
|
265
267
|
};
|
|
266
268
|
};
|
|
267
269
|
|
|
@@ -269,13 +271,13 @@ export const segmentContainerSx = (
|
|
|
269
271
|
* An underline that grows from the centre outwards, and is already full width
|
|
270
272
|
* when the segment is the selected one.
|
|
271
273
|
*/
|
|
272
|
-
const segmentUnderline = (color: string, selected: boolean): CSSObject => ({
|
|
274
|
+
const segmentUnderline = (theme: Theme, color: string, selected: boolean): CSSObject => ({
|
|
273
275
|
content: '""',
|
|
274
276
|
position: 'absolute',
|
|
275
277
|
bottom: 0,
|
|
276
278
|
left: selected ? 0 : '50%',
|
|
277
279
|
width: selected ? '100%' : 0,
|
|
278
|
-
height:
|
|
280
|
+
height: rem(theme, 2),
|
|
279
281
|
backgroundColor: color,
|
|
280
282
|
transition: 'all 0.3s ease',
|
|
281
283
|
transform: selected ? 'translateX(0)' : 'translateX(-50%)',
|
|
@@ -293,12 +295,12 @@ export const segmentButtonSx = (theme: Theme, flags: SurfaceFlags): CSSObject =>
|
|
|
293
295
|
backgroundColor: selected ? theme.palette.background.paper : 'transparent',
|
|
294
296
|
color: selected ? palette.main : theme.palette.text.secondary,
|
|
295
297
|
boxShadow: selected
|
|
296
|
-
? `${theme.shadows[2]}, inset 0
|
|
298
|
+
? `${theme.shadows[2]}, inset 0 ${rems(theme, 1, 3)} ${alpha(palette.main, 0.1)}`
|
|
297
299
|
: 'none',
|
|
298
300
|
position: 'relative' as const,
|
|
299
301
|
overflow: 'hidden' as const,
|
|
300
302
|
...(animated && selected && { animation: `${scaleAnimation} 0.3s ease-out` }),
|
|
301
|
-
'&::before': segmentUnderline(palette.main, Boolean(selected)),
|
|
303
|
+
'&::before': segmentUnderline(theme, palette.main, Boolean(selected)),
|
|
302
304
|
'&:hover': {
|
|
303
305
|
backgroundColor: selected
|
|
304
306
|
? theme.palette.background.paper
|
|
@@ -30,8 +30,7 @@ const RICH_TEXT_DEFAULTS: Partial<RichTextEditorProps> = {
|
|
|
30
30
|
placeholder: 'Start typing...',
|
|
31
31
|
disabled: false,
|
|
32
32
|
readOnly: false,
|
|
33
|
-
toolbar: {}
|
|
34
|
-
height: 300 };
|
|
33
|
+
toolbar: {} };
|
|
35
34
|
|
|
36
35
|
// Strips explicitly-undefined props before the merge, so `prop={undefined}`
|
|
37
36
|
// still falls back to the default as a destructuring default would.
|
|
@@ -43,7 +42,9 @@ const definedProps = (props: RichTextEditorProps): Partial<RichTextEditorProps>
|
|
|
43
42
|
// Simple inline formats are a tag swap; lists and the value-carrying formats
|
|
44
43
|
// need their own handling. This was one nine-case switch.
|
|
45
44
|
const editorContentSx = (theme: Theme, disabled: boolean, placeholder?: string, height?: string | number) => ({
|
|
46
|
-
|
|
45
|
+
// A number is design px, converted here where it is read (300 when the
|
|
46
|
+
// caller gives none); a string is any CSS length, used as-is.
|
|
47
|
+
minHeight: typeof height === 'string' ? height : rem(theme, height ?? 300),
|
|
47
48
|
p: 2,
|
|
48
49
|
outline: 'none',
|
|
49
50
|
cursor: disabled ? 'not-allowed' : 'text',
|
|
@@ -52,12 +53,12 @@ const editorContentSx = (theme: Theme, disabled: boolean, placeholder?: string,
|
|
|
52
53
|
color: theme.palette.text.disabled,
|
|
53
54
|
pointerEvents: 'none' },
|
|
54
55
|
'& p': {
|
|
55
|
-
margin:
|
|
56
|
+
margin: `${rem(theme, 8)} 0`,
|
|
56
57
|
'&:first-of-type': { marginTop: 0 },
|
|
57
58
|
'&:last-of-type': { marginBottom: 0 } },
|
|
58
59
|
'& ul, & ol': { marginLeft: theme.spacing(2) },
|
|
59
60
|
'& blockquote': {
|
|
60
|
-
borderLeft:
|
|
61
|
+
borderLeft: `${rem(theme, 4)} solid ${theme.palette.primary.main}`,
|
|
61
62
|
paddingLeft: theme.spacing(2),
|
|
62
63
|
margin: `${theme.spacing(1)} 0`,
|
|
63
64
|
fontStyle: 'italic',
|
|
@@ -78,7 +79,7 @@ const shellSx = (theme: Theme, isFocused: boolean, disabled: boolean) => ({
|
|
|
78
79
|
transition: 'border-color 0.2s ease-in-out',
|
|
79
80
|
...(isFocused && {
|
|
80
81
|
borderColor: theme.palette.primary.main,
|
|
81
|
-
boxShadow: `0 0 0
|
|
82
|
+
boxShadow: `0 0 0 ${rem(theme, 2)} ${alpha(theme.palette.primary.main, 0.2)}` }),
|
|
82
83
|
...(disabled && {
|
|
83
84
|
backgroundColor: theme.palette.action.disabledBackground,
|
|
84
85
|
color: theme.palette.text.disabled }) });
|
|
@@ -20,6 +20,8 @@ import React from 'react';
|
|
|
20
20
|
|
|
21
21
|
import type { ToolbarConfig } from './RichTextEditor.types';
|
|
22
22
|
|
|
23
|
+
import { sxRem } from '../../../tokens/relative';
|
|
24
|
+
|
|
23
25
|
type ResolvedToolbar = Required<Omit<ToolbarConfig, 'customItems'>> &
|
|
24
26
|
Pick<ToolbarConfig, 'customItems'>;
|
|
25
27
|
|
|
@@ -148,7 +150,7 @@ export const RichTextEditorToolbar: FC<RichTextEditorToolbarProps> = ({
|
|
|
148
150
|
variant="dense"
|
|
149
151
|
data-testid="editor-toolbar"
|
|
150
152
|
sx={{
|
|
151
|
-
minHeight: 48,
|
|
153
|
+
minHeight: sxRem(48),
|
|
152
154
|
px: 1,
|
|
153
155
|
borderBottom: (theme) => `1px solid ${theme.palette.divider}`,
|
|
154
156
|
backgroundColor: (theme) => alpha(theme.palette.background.paper, 0.8),
|
|
@@ -9,10 +9,11 @@ import List from '@mui/material/List/index.js';
|
|
|
9
9
|
import ListItemButton from '@mui/material/ListItemButton/index.js';
|
|
10
10
|
import Paper from '@mui/material/Paper/index.js';
|
|
11
11
|
import Typography from '@mui/material/Typography/index.js';
|
|
12
|
+
import { useTheme } from '@mui/material/styles/index.js';
|
|
12
13
|
import React from 'react';
|
|
13
14
|
|
|
14
15
|
import type { SearchFilterChip, SearchResultLead } from './SearchPalette.types';
|
|
15
|
-
import { sxRem } from '../../../tokens/relative';
|
|
16
|
+
import { rem, sxRem } from '../../../tokens/relative';
|
|
16
17
|
|
|
17
18
|
/** Bold the first case-insensitive occurrence of `query` within `text`. */
|
|
18
19
|
export function highlight(text: string, query: string): React.ReactNode {
|
|
@@ -39,19 +40,19 @@ export function Lead({ lead }: { lead: SearchResultLead | undefined }): React.JS
|
|
|
39
40
|
component="img"
|
|
40
41
|
src={lead.src}
|
|
41
42
|
alt={lead.alt ?? ''}
|
|
42
|
-
sx={{ width: 32, height: 32, borderRadius: 1, objectFit: 'cover', flexShrink: 0 }}
|
|
43
|
+
sx={{ width: sxRem(32), height: sxRem(32), borderRadius: 1, objectFit: 'cover', flexShrink: 0 }}
|
|
43
44
|
/>
|
|
44
45
|
);
|
|
45
46
|
}
|
|
46
47
|
if (lead.kind === 'avatar') {
|
|
47
48
|
return (
|
|
48
|
-
<Avatar src={lead.src} alt={lead.alt ?? ''} sx={{ width: 32, height: 32, fontSize: sxRem(13.6) }}>
|
|
49
|
+
<Avatar src={lead.src} alt={lead.alt ?? ''} sx={{ width: sxRem(32), height: sxRem(32), fontSize: sxRem(13.6) }}>
|
|
49
50
|
{lead.fallback}
|
|
50
51
|
</Avatar>
|
|
51
52
|
);
|
|
52
53
|
}
|
|
53
54
|
return (
|
|
54
|
-
<Box sx={{ display: 'flex', width: 32, justifyContent: 'center', flexShrink: 0, color: 'text.secondary' }}>
|
|
55
|
+
<Box sx={{ display: 'flex', width: sxRem(32), justifyContent: 'center', flexShrink: 0, color: 'text.secondary' }}>
|
|
55
56
|
{lead.node}
|
|
56
57
|
</Box>
|
|
57
58
|
);
|
|
@@ -77,6 +78,7 @@ export function PaletteInput(props: {
|
|
|
77
78
|
onChange: (v: string) => void;
|
|
78
79
|
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
79
80
|
}): React.JSX.Element {
|
|
81
|
+
const theme = useTheme();
|
|
80
82
|
return (
|
|
81
83
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1.25, px: 2, py: 1.5 }}>
|
|
82
84
|
<SearchIcon fontSize="small" sx={{ color: 'text.secondary', flexShrink: 0 }} />
|
|
@@ -119,7 +121,7 @@ export function PaletteInput(props: {
|
|
|
119
121
|
sx={{ fontSize: sxRem(16) }}
|
|
120
122
|
/>
|
|
121
123
|
</Box>
|
|
122
|
-
{props.isLoading && <CircularProgress size={18} sx={{ flexShrink: 0 }} />}
|
|
124
|
+
{props.isLoading && <CircularProgress size={rem(theme, 18)} sx={{ flexShrink: 0 }} />}
|
|
123
125
|
</Box>
|
|
124
126
|
);
|
|
125
127
|
}
|
|
@@ -311,7 +313,7 @@ export function PaletteBody<T>(view: BodyView<T>): React.JSX.Element | null {
|
|
|
311
313
|
*/
|
|
312
314
|
export const PALETTE_CARD_SX = {
|
|
313
315
|
width: '100%',
|
|
314
|
-
maxWidth: 640,
|
|
316
|
+
maxWidth: sxRem(640),
|
|
315
317
|
maxHeight: '100%',
|
|
316
318
|
borderRadius: 2,
|
|
317
319
|
overflow: 'hidden',
|
|
@@ -18,19 +18,20 @@ import type { SelectProps } from './Select.types';
|
|
|
18
18
|
|
|
19
19
|
import { splitTestId } from '../../../platform/test-id';
|
|
20
20
|
import { fieldEdge } from '../../../tokens/field-edge';
|
|
21
|
-
import { asFieldSize, fieldControlStyles, fieldHeight } from '../../../tokens/field-height';
|
|
21
|
+
import { asFieldSize, FIELD_BORDER_WIDTH, fieldControlStyles, fieldHeight } from '../../../tokens/field-height';
|
|
22
22
|
import type { SizeValue } from '../../../tokens/vocabulary';
|
|
23
23
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
24
24
|
import { absoluteInk } from '../../../tokens/ink';
|
|
25
|
+
import { rem } from '../../../tokens/relative';
|
|
25
26
|
|
|
26
27
|
// Define pulse animation
|
|
27
|
-
const pulseAnimation = keyframes`
|
|
28
|
+
const pulseAnimation = (theme: Theme) => keyframes`
|
|
28
29
|
0% {
|
|
29
30
|
box-shadow: 0 0 0 0 currentColor;
|
|
30
31
|
opacity: 1;
|
|
31
32
|
}
|
|
32
33
|
70% {
|
|
33
|
-
box-shadow: 0 0 0 ${SELECT_PULSE.spread}
|
|
34
|
+
box-shadow: 0 0 0 ${rem(theme, SELECT_PULSE.spread)} currentColor;
|
|
34
35
|
opacity: 0;
|
|
35
36
|
}
|
|
36
37
|
100% {
|
|
@@ -42,9 +43,9 @@ const pulseAnimation = keyframes`
|
|
|
42
43
|
/** Glow ring on the outlined input, keyed off the `glow` prop. */
|
|
43
44
|
const glowStyles = (theme: Theme): CSSObject => ({
|
|
44
45
|
'& .MuiOutlinedInput-root': {
|
|
45
|
-
boxShadow: `0 0 ${SELECT_GLOW.rest.blur}
|
|
46
|
+
boxShadow: `0 0 ${rem(theme, SELECT_GLOW.rest.blur)} ${alpha(theme.palette.primary.main, SELECT_GLOW.rest.alpha)}`,
|
|
46
47
|
'&.Mui-focused': {
|
|
47
|
-
boxShadow: `0 0 ${SELECT_GLOW.focused.blur}
|
|
48
|
+
boxShadow: `0 0 ${rem(theme, SELECT_GLOW.focused.blur)} ${alpha(theme.palette.primary.main, SELECT_GLOW.focused.alpha)}`,
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
});
|
|
@@ -62,7 +63,7 @@ const pulseStyles = (theme: Theme, size: SizeValue): CSSObject => ({
|
|
|
62
63
|
borderRadius: fieldRadius(theme),
|
|
63
64
|
backgroundColor: theme.palette.primary.main,
|
|
64
65
|
opacity: SELECT_PULSE.opacity,
|
|
65
|
-
animation: `${pulseAnimation} ${SELECT_PULSE.ms / 1000}s infinite`,
|
|
66
|
+
animation: `${pulseAnimation(theme)} ${SELECT_PULSE.ms / 1000}s infinite`,
|
|
66
67
|
pointerEvents: 'none',
|
|
67
68
|
zIndex: -1,
|
|
68
69
|
},
|
|
@@ -71,8 +72,9 @@ const pulseStyles = (theme: Theme, size: SizeValue): CSSObject => ({
|
|
|
71
72
|
/** `glass` variant: translucent, blurred background. */
|
|
72
73
|
const glassVariant = (theme: Theme): CSSObject => ({
|
|
73
74
|
backgroundColor: alpha(theme.palette.background.paper, SELECT_GLASS.background.rest),
|
|
74
|
-
backdropFilter: `blur(${SELECT_GLASS.blur}
|
|
75
|
-
|
|
75
|
+
backdropFilter: `blur(${rem(theme, SELECT_GLASS.blur)})`,
|
|
76
|
+
// `SELECT_BORDER.rest` is the field hairline.
|
|
77
|
+
border: `${FIELD_BORDER_WIDTH}px solid ${fieldEdge(theme)}`,
|
|
76
78
|
'& fieldset': { border: 'none' },
|
|
77
79
|
'&:hover': {
|
|
78
80
|
backgroundColor: alpha(theme.palette.background.paper, SELECT_GLASS.background.hover),
|
|
@@ -81,7 +83,7 @@ const glassVariant = (theme: Theme): CSSObject => ({
|
|
|
81
83
|
'&.Mui-focused': {
|
|
82
84
|
backgroundColor: alpha(theme.palette.background.paper, SELECT_GLASS.background.focused),
|
|
83
85
|
borderColor: theme.palette.primary.main,
|
|
84
|
-
boxShadow: `0 0 0 ${SELECT_GLASS.focusRing.width}
|
|
86
|
+
boxShadow: `0 0 0 ${rem(theme, SELECT_GLASS.focusRing.width)} ${alpha(theme.palette.primary.main, SELECT_GLASS.focusRing.alpha)}`,
|
|
85
87
|
},
|
|
86
88
|
});
|
|
87
89
|
|
|
@@ -91,7 +93,7 @@ const gradientFill = (theme: Theme, strength: number): string =>
|
|
|
91
93
|
|
|
92
94
|
const gradientVariant = (theme: Theme): CSSObject => ({
|
|
93
95
|
background: gradientFill(theme, SELECT_GRADIENT.fill.rest),
|
|
94
|
-
border: `${SELECT_GRADIENT.borderWidth}
|
|
96
|
+
border: `${rem(theme, SELECT_GRADIENT.borderWidth)} solid transparent`,
|
|
95
97
|
backgroundOrigin: 'border-box',
|
|
96
98
|
backgroundClip: 'padding-box, border-box',
|
|
97
99
|
position: 'relative',
|
|
@@ -107,7 +109,7 @@ const gradientVariant = (theme: Theme): CSSObject => ({
|
|
|
107
109
|
background: `linear-gradient(${SELECT_GRADIENT.angleDeg}deg, ${theme.palette.primary.main}, ${theme.palette.secondary.main})`,
|
|
108
110
|
mask: `linear-gradient(${absoluteInk(theme).white} 0 0) content-box, linear-gradient(${absoluteInk(theme).white} 0 0)`,
|
|
109
111
|
maskComposite: 'exclude',
|
|
110
|
-
padding:
|
|
112
|
+
padding: rem(theme, SELECT_GRADIENT.borderWidth),
|
|
111
113
|
zIndex: -1,
|
|
112
114
|
},
|
|
113
115
|
'&:hover': {
|
|
@@ -125,7 +127,7 @@ const gradientVariant = (theme: Theme): CSSObject => ({
|
|
|
125
127
|
const defaultVariant = (theme: Theme): CSSObject => ({
|
|
126
128
|
'& fieldset': { borderColor: fieldEdge(theme) },
|
|
127
129
|
'&:hover fieldset': { borderColor: theme.palette.primary.main },
|
|
128
|
-
'&.Mui-focused fieldset': { borderColor: theme.palette.primary.main, borderWidth: SELECT_BORDER.focused },
|
|
130
|
+
'&.Mui-focused fieldset': { borderColor: theme.palette.primary.main, borderWidth: rem(theme, SELECT_BORDER.focused) },
|
|
129
131
|
'&.Mui-error fieldset': { borderColor: theme.palette.error.main },
|
|
130
132
|
});
|
|
131
133
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { keyframes } from '@mui/material/styles/index.js';
|
|
2
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
import { rem } from '../../../tokens/relative';
|
|
5
|
+
|
|
6
|
+
export const glowAnimation = (theme: Theme) => keyframes`
|
|
4
7
|
0% {
|
|
5
|
-
box-shadow: 0 0
|
|
8
|
+
box-shadow: 0 0 ${rem(theme, 5)} currentColor;
|
|
6
9
|
}
|
|
7
10
|
50% {
|
|
8
|
-
box-shadow: 0 0
|
|
11
|
+
box-shadow: 0 0 ${rem(theme, 15)} currentColor, 0 0 ${rem(theme, 25)} currentColor;
|
|
9
12
|
}
|
|
10
13
|
100% {
|
|
11
|
-
box-shadow: 0 0
|
|
14
|
+
box-shadow: 0 0 ${rem(theme, 5)} currentColor;
|
|
12
15
|
}
|
|
13
16
|
`;
|
|
14
17
|
|
|
@@ -48,29 +48,30 @@ const getColorFromTheme = (theme: Theme, color: string): ColorPalette => {
|
|
|
48
48
|
|
|
49
49
|
type SizeKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
50
50
|
|
|
51
|
+
/** Design px, converted through the type scale where each is read. */
|
|
51
52
|
interface Geometry {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
heightPx: number;
|
|
54
|
+
thumbSizePx: number;
|
|
55
|
+
markHeightPx: number;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
const SIZES: Record<SizeKey, Geometry> = {
|
|
58
|
-
xs: {
|
|
59
|
-
sm: {
|
|
60
|
-
md: {
|
|
61
|
-
lg: {
|
|
62
|
-
xl: {
|
|
59
|
+
xs: { heightPx: 4, thumbSizePx: 16, markHeightPx: 8 },
|
|
60
|
+
sm: { heightPx: 6, thumbSizePx: 18, markHeightPx: 10 },
|
|
61
|
+
md: { heightPx: 8, thumbSizePx: 20, markHeightPx: 12 },
|
|
62
|
+
lg: { heightPx: 10, thumbSizePx: 24, markHeightPx: 14 },
|
|
63
|
+
xl: { heightPx: 12, thumbSizePx: 28, markHeightPx: 16 },
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
/**
|
|
66
67
|
* The value bubble and mark labels shrink at the two smallest sizes only. The
|
|
67
68
|
* two fonts are design px, read through the type scale.
|
|
68
69
|
*/
|
|
69
|
-
const LABEL_SCALE: Record<string, { fontPx: number;
|
|
70
|
-
xs: { fontPx: 10,
|
|
71
|
-
sm: { fontPx: 11,
|
|
70
|
+
const LABEL_SCALE: Record<string, { fontPx: number; boxPx: number; markFont: number }> = {
|
|
71
|
+
xs: { fontPx: 10, boxPx: 28, markFont: 10.4 },
|
|
72
|
+
sm: { fontPx: 11, boxPx: 30, markFont: 11.2 },
|
|
72
73
|
};
|
|
73
|
-
const LABEL_DEFAULT = { fontPx: 12,
|
|
74
|
+
const LABEL_DEFAULT = { fontPx: 12, boxPx: 32, markFont: 12 };
|
|
74
75
|
|
|
75
76
|
export interface SliderFlags {
|
|
76
77
|
customColor?: string;
|
|
@@ -94,8 +95,8 @@ const trackPart = ({ theme, flags, palette, geometry }: PartInput): CSSObject =>
|
|
|
94
95
|
|
|
95
96
|
return {
|
|
96
97
|
border: 'none',
|
|
97
|
-
height: geometry.
|
|
98
|
-
borderRadius: geometry.
|
|
98
|
+
height: rem(theme, geometry.heightPx),
|
|
99
|
+
borderRadius: rem(theme, geometry.heightPx / 2),
|
|
99
100
|
transition: 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
100
101
|
position: 'relative',
|
|
101
102
|
overflow: 'hidden',
|
|
@@ -121,12 +122,12 @@ const trackPart = ({ theme, flags, palette, geometry }: PartInput): CSSObject =>
|
|
|
121
122
|
},
|
|
122
123
|
}),
|
|
123
124
|
...(glow && {
|
|
124
|
-
animation: `${glowAnimation} 2s ease-in-out infinite`,
|
|
125
|
-
boxShadow: `0 0
|
|
125
|
+
animation: `${glowAnimation(theme)} 2s ease-in-out infinite`,
|
|
126
|
+
boxShadow: `0 0 ${rem(theme, 10)} ${alpha(palette.main, 0.6)}, inset 0 0 ${rem(theme, 10)} ${alpha(palette.main, 0.2)}`,
|
|
126
127
|
}),
|
|
127
128
|
...(glass && {
|
|
128
129
|
backgroundColor: alpha(palette.main, 0.8),
|
|
129
|
-
backdropFilter:
|
|
130
|
+
backdropFilter: `blur(${rem(theme, 10)})`,
|
|
130
131
|
border: `1px solid ${alpha(palette.light || palette.main, 0.3)}`,
|
|
131
132
|
}),
|
|
132
133
|
};
|
|
@@ -135,12 +136,12 @@ const trackPart = ({ theme, flags, palette, geometry }: PartInput): CSSObject =>
|
|
|
135
136
|
const railPart = ({ theme, flags, geometry }: PartInput): CSSObject => ({
|
|
136
137
|
color: alpha(theme.palette.action.disabled, 0.3),
|
|
137
138
|
opacity: 1,
|
|
138
|
-
height: geometry.
|
|
139
|
-
borderRadius: geometry.
|
|
139
|
+
height: rem(theme, geometry.heightPx),
|
|
140
|
+
borderRadius: rem(theme, geometry.heightPx / 2),
|
|
140
141
|
transition: 'all 0.3s ease',
|
|
141
142
|
...(flags.glass && {
|
|
142
143
|
backgroundColor: alpha(theme.palette.background.paper, 0.1),
|
|
143
|
-
backdropFilter:
|
|
144
|
+
backdropFilter: `blur(${rem(theme, 20)})`,
|
|
144
145
|
border: `1px solid ${alpha(theme.palette.divider, 0.2)}`,
|
|
145
146
|
}),
|
|
146
147
|
...(flags.customVariant === 'gradient' && {
|
|
@@ -155,10 +156,10 @@ const thumbPart = ({ theme, flags, palette, geometry }: PartInput): CSSObject =>
|
|
|
155
156
|
const { gradient, glow, glass } = flags;
|
|
156
157
|
|
|
157
158
|
return {
|
|
158
|
-
height: geometry.
|
|
159
|
-
width: geometry.
|
|
159
|
+
height: rem(theme, geometry.thumbSizePx),
|
|
160
|
+
width: rem(theme, geometry.thumbSizePx),
|
|
160
161
|
backgroundColor: gradient ? palette.main : absoluteInk(theme).white,
|
|
161
|
-
border:
|
|
162
|
+
border: `${rem(theme, 2)} solid ${palette.main}`,
|
|
162
163
|
boxShadow: `${theme.shadows[2]}, 0 0 0 0 ${alpha(palette.main, 0.2)}`,
|
|
163
164
|
transition: 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
164
165
|
position: 'relative',
|
|
@@ -177,16 +178,16 @@ const thumbPart = ({ theme, flags, palette, geometry }: PartInput): CSSObject =>
|
|
|
177
178
|
},
|
|
178
179
|
'&:focus, &:hover, &.Mui-active, &.Mui-focusVisible': {
|
|
179
180
|
boxShadow: glow
|
|
180
|
-
? `${theme.shadows[4]}, 0 0
|
|
181
|
-
: `${theme.shadows[4]}, 0 0 0
|
|
181
|
+
? `${theme.shadows[4]}, 0 0 ${rem(theme, 20)} ${alpha(palette.main, 0.6)}, 0 0 0 ${rem(theme, 8)} ${alpha(palette.main, 0.15)}`
|
|
182
|
+
: `${theme.shadows[4]}, 0 0 0 ${rem(theme, 8)} ${alpha(palette.main, 0.15)}`,
|
|
182
183
|
transform: 'scale(1.15)',
|
|
183
184
|
'&::before': { animation: `${pulseAnimation} 0.6s ease-out` },
|
|
184
185
|
},
|
|
185
186
|
'&:active': { transform: 'scale(1.05)' },
|
|
186
187
|
...(glass && {
|
|
187
188
|
backgroundColor: alpha(theme.palette.background.paper, 0.9),
|
|
188
|
-
backdropFilter:
|
|
189
|
-
border:
|
|
189
|
+
backdropFilter: `blur(${rem(theme, 10)})`,
|
|
190
|
+
border: `${rem(theme, 2)} solid ${alpha(palette.main, 0.8)}`,
|
|
190
191
|
}),
|
|
191
192
|
...(gradient && {
|
|
192
193
|
background: `linear-gradient(135deg, ${palette.light}, ${palette.main})`,
|
|
@@ -222,18 +223,18 @@ const valueLabelPart = ({ theme, flags, palette }: PartInput): CSSObject => {
|
|
|
222
223
|
lineHeight: 1.2,
|
|
223
224
|
fontSize: rem(theme, scale.fontPx),
|
|
224
225
|
padding: 0,
|
|
225
|
-
width: scale.
|
|
226
|
-
height: scale.
|
|
227
|
-
borderRadius: gradient ?
|
|
226
|
+
width: rem(theme, scale.boxPx),
|
|
227
|
+
height: rem(theme, scale.boxPx),
|
|
228
|
+
borderRadius: gradient ? rem(theme, 8) : '50% 50% 50% 0',
|
|
228
229
|
backgroundColor: bubbleBackground(palette, Boolean(gradient), Boolean(glass)),
|
|
229
230
|
background: gradient
|
|
230
231
|
? `linear-gradient(135deg, ${palette.light}, ${palette.main})`
|
|
231
232
|
: 'unset',
|
|
232
|
-
backdropFilter: glass ?
|
|
233
|
+
backdropFilter: glass ? `blur(${rem(theme, 10)})` : 'none',
|
|
233
234
|
transformOrigin: 'bottom left',
|
|
234
235
|
transform: bubbleTransform.hidden,
|
|
235
236
|
transition: 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
236
|
-
boxShadow: `${theme.shadows[2]}, 0 0
|
|
237
|
+
boxShadow: `${theme.shadows[2]}, 0 0 ${rem(theme, 10)} ${alpha(palette.main, 0.2)}`,
|
|
237
238
|
'&:before': { display: 'none' },
|
|
238
239
|
'&.MuiSlider-valueLabelOpen': { transform: bubbleTransform.shown },
|
|
239
240
|
'& > *': { transform: gradient ? 'none' : 'rotate(45deg)', fontWeight: 600 },
|
|
@@ -243,22 +244,22 @@ const valueLabelPart = ({ theme, flags, palette }: PartInput): CSSObject => {
|
|
|
243
244
|
const markPart = ({ theme, flags, palette, geometry }: PartInput): CSSObject => {
|
|
244
245
|
const { gradient, glow, customVariant } = flags;
|
|
245
246
|
const isMarksVariant = customVariant === 'marks';
|
|
246
|
-
const {
|
|
247
|
+
const { markHeightPx, heightPx } = geometry;
|
|
247
248
|
|
|
248
249
|
return {
|
|
249
250
|
backgroundColor: alpha(theme.palette.action.disabled, 0.5),
|
|
250
|
-
height:
|
|
251
|
-
width: isMarksVariant ? 3 : 2,
|
|
251
|
+
height: rem(theme, markHeightPx),
|
|
252
|
+
width: rem(theme, isMarksVariant ? 3 : 2),
|
|
252
253
|
// Centred on the rail rather than hanging below it.
|
|
253
|
-
marginTop: -(
|
|
254
|
-
borderRadius: 1,
|
|
254
|
+
marginTop: rem(theme, -(markHeightPx - heightPx) / 2),
|
|
255
|
+
borderRadius: rem(theme, 1),
|
|
255
256
|
transition: 'all 0.3s ease',
|
|
256
257
|
'&.MuiSlider-markActive': {
|
|
257
258
|
backgroundColor: gradient ? palette.light : palette.main,
|
|
258
|
-
width: isMarksVariant ? 4 : 2,
|
|
259
|
-
height:
|
|
260
|
-
marginTop: -(
|
|
261
|
-
...(glow && { boxShadow: `0 0
|
|
259
|
+
width: rem(theme, isMarksVariant ? 4 : 2),
|
|
260
|
+
height: rem(theme, markHeightPx + 2),
|
|
261
|
+
marginTop: rem(theme, -(markHeightPx + 2 - heightPx) / 2),
|
|
262
|
+
...(glow && { boxShadow: `0 0 ${rem(theme, 8)} ${alpha(palette.main, 0.5)}` }),
|
|
262
263
|
},
|
|
263
264
|
};
|
|
264
265
|
};
|
|
@@ -283,7 +284,7 @@ export const sliderSx = (theme: Theme, flags: SliderFlags): CSSObject => {
|
|
|
283
284
|
|
|
284
285
|
return {
|
|
285
286
|
color: palette.main,
|
|
286
|
-
height: geometry.
|
|
287
|
+
height: rem(theme, geometry.heightPx),
|
|
287
288
|
'& .MuiSlider-track': trackPart(input),
|
|
288
289
|
'& .MuiSlider-rail': railPart(input),
|
|
289
290
|
'& .MuiSlider-thumb': thumbPart(input),
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { keyframes } from '@mui/material/styles/index.js';
|
|
2
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
import { rem } from '../../../tokens/relative';
|
|
5
|
+
|
|
6
|
+
export const glowAnimation = (theme: Theme) => keyframes`
|
|
4
7
|
0% {
|
|
5
|
-
box-shadow: 0 0
|
|
8
|
+
box-shadow: 0 0 ${rem(theme, 5)} currentColor;
|
|
6
9
|
}
|
|
7
10
|
50% {
|
|
8
|
-
box-shadow: 0 0
|
|
11
|
+
box-shadow: 0 0 ${rem(theme, 15)} currentColor, 0 0 ${rem(theme, 25)} currentColor;
|
|
9
12
|
}
|
|
10
13
|
100% {
|
|
11
|
-
box-shadow: 0 0
|
|
14
|
+
box-shadow: 0 0 ${rem(theme, 5)} currentColor;
|
|
12
15
|
}
|
|
13
16
|
`;
|
|
14
17
|
|