@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
|
@@ -97,7 +97,7 @@ export const SwitchIcon: React.FC<SwitchIconProps> = ({
|
|
|
97
97
|
sx={{
|
|
98
98
|
position: 'absolute',
|
|
99
99
|
top: '50%',
|
|
100
|
-
...(isOn ? { left: shown ? 4 : '50%' } : { right: shown ? 4 : '50%' }),
|
|
100
|
+
...(isOn ? { left: shown ? sxRem(4) : '50%' } : { right: shown ? sxRem(4) : '50%' }),
|
|
101
101
|
transition: 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
102
102
|
opacity: shown ? 1 : 0,
|
|
103
103
|
transform: `${translate} scale(${shown && animated ? 1 : 0.8})`,
|
|
@@ -278,7 +278,7 @@ const SwitchLabel: React.FC<{
|
|
|
278
278
|
// The floor applies to the row the label shares with the control. A
|
|
279
279
|
// description already makes the row taller than 40px, so forcing it
|
|
280
280
|
// there would only add blank space.
|
|
281
|
-
...(description ? {} : { minHeight: TAP_TARGET_MIN }),
|
|
281
|
+
...(description ? {} : { minHeight: sxRem(TAP_TARGET_MIN) }),
|
|
282
282
|
// A disabled control's label toggles nothing, so it must not wear the
|
|
283
283
|
// cursor that says it does.
|
|
284
284
|
...(htmlFor && !disabled ? { cursor: 'pointer' } : {}),
|
|
@@ -103,6 +103,10 @@ export interface SwitchFlags {
|
|
|
103
103
|
pulse?: boolean;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
/** A metrics radius on the web: its px through the type scale, a percentage as-is. */
|
|
107
|
+
const lengthOrPercent = (theme: Theme, value: number | string): string =>
|
|
108
|
+
typeof value === 'number' ? rem(theme, value) : value;
|
|
109
|
+
|
|
106
110
|
const thumbShadow = (theme: Theme, look: SwitchLook): string =>
|
|
107
111
|
look === 'ios' ? IOS_THUMB_SHADOW : (theme.shadows[THUMB_ELEVATION[look]] ?? 'none');
|
|
108
112
|
|
|
@@ -148,15 +152,15 @@ const checkedInk = (flags: SwitchFlags, palette: ColorPalette): string => {
|
|
|
148
152
|
};
|
|
149
153
|
|
|
150
154
|
/** The checked track: the filled bar behind the thumb once the switch is on. */
|
|
151
|
-
const checkedTrack = (flags: SwitchFlags, palette: ColorPalette): CSSObject => ({
|
|
155
|
+
const checkedTrack = (theme: Theme, flags: SwitchFlags, palette: ColorPalette): CSSObject => ({
|
|
152
156
|
backgroundColor: palette.main,
|
|
153
157
|
opacity: 1,
|
|
154
158
|
border: 0,
|
|
155
159
|
position: 'relative',
|
|
156
160
|
overflow: 'hidden',
|
|
157
161
|
...(flags.glow && {
|
|
158
|
-
animation: `${glowAnimation} ${seconds(SWITCH_GLOW.ms)} ease-in-out infinite`,
|
|
159
|
-
boxShadow: `0 0 ${SWITCH_GLOW.blur}
|
|
162
|
+
animation: `${glowAnimation(theme)} ${seconds(SWITCH_GLOW.ms)} ease-in-out infinite`,
|
|
163
|
+
boxShadow: `0 0 ${rem(theme, SWITCH_GLOW.blur)} ${alpha(palette.main, SWITCH_GLOW.alpha)}, inset 0 0 ${rem(theme, SWITCH_GLOW.insetBlur)} ${alpha(palette.main, SWITCH_GLOW.insetAlpha)}`,
|
|
160
164
|
}),
|
|
161
165
|
...(flags.gradient && {
|
|
162
166
|
background: `linear-gradient(${SWITCH_GRADIENT.checked.angleDeg}deg, ${palette.light || palette.main} ${SWITCH_GRADIENT.checked.stops[0]}%, ${palette.main} ${SWITCH_GRADIENT.checked.stops[1]}%, ${palette.dark || palette.main} ${SWITCH_GRADIENT.checked.stops[2]}%)`,
|
|
@@ -176,22 +180,22 @@ const switchBaseSx = (
|
|
|
176
180
|
const isIos = look === 'ios';
|
|
177
181
|
|
|
178
182
|
return {
|
|
179
|
-
padding,
|
|
183
|
+
padding: rem(theme, padding),
|
|
180
184
|
margin: 0,
|
|
181
185
|
transitionDuration: `${SWITCH_TRANSITION.ms}ms`,
|
|
182
186
|
transitionTimingFunction: SWITCH_TRANSITION.easing,
|
|
183
|
-
...(isIos && { transform: `translateX(${IOS_BASE_OFFSET}
|
|
187
|
+
...(isIos && { transform: `translateX(${rem(theme, IOS_BASE_OFFSET)})` }),
|
|
184
188
|
'&:hover': {
|
|
185
189
|
'& .MuiSwitch-thumb': {
|
|
186
190
|
transform: flags.loading ? 'none' : `scale(${SWITCH_HOVER.thumbScale})`,
|
|
187
|
-
boxShadow: `${theme.shadows[SWITCH_HOVER.elevation]}, 0 0 ${SWITCH_HOVER.blur}
|
|
191
|
+
boxShadow: `${theme.shadows[SWITCH_HOVER.elevation]}, 0 0 ${rem(theme, SWITCH_HOVER.blur)} ${alpha(palette.main, SWITCH_HOVER.alpha)}`,
|
|
188
192
|
},
|
|
189
193
|
...(flags.ripple && { '&::after': rippleOverlay(palette) }),
|
|
190
194
|
},
|
|
191
195
|
'&.Mui-checked': {
|
|
192
196
|
// The thumb travels the track minus its own width and both paddings; the
|
|
193
197
|
// iOS look insets differently, so it gets its own distance.
|
|
194
|
-
transform: `translateX(${width - thumbSize - padding * 2}
|
|
198
|
+
transform: `translateX(${rem(theme, width - thumbSize - padding * 2)})`,
|
|
195
199
|
color: checkedInk(flags, palette),
|
|
196
200
|
'& .MuiSwitch-thumb': {
|
|
197
201
|
animation: flags.loading ? 'none' : `${bounceAnimation} ${seconds(SWITCH_TRANSITION.ms)} ease-out`,
|
|
@@ -225,13 +229,13 @@ const switchBaseSx = (
|
|
|
225
229
|
? { borderColor: checkedInk(flags, palette) }
|
|
226
230
|
: { backgroundColor: checkedInk(flags, palette) }),
|
|
227
231
|
},
|
|
228
|
-
'& + .MuiSwitch-track': checkedTrack(flags, palette),
|
|
232
|
+
'& + .MuiSwitch-track': checkedTrack(theme, flags, palette),
|
|
229
233
|
'&.Mui-disabled + .MuiSwitch-track': { opacity: DISABLED.checkedTrackOpacity },
|
|
230
|
-
...(isIos && { transform: `translateX(${width - thumbSize - IOS_TRAVEL_INSET}
|
|
234
|
+
...(isIos && { transform: `translateX(${rem(theme, width - thumbSize - IOS_TRAVEL_INSET)})` }),
|
|
231
235
|
},
|
|
232
236
|
'&.Mui-focusVisible .MuiSwitch-thumb': {
|
|
233
237
|
color: palette.main,
|
|
234
|
-
border: `${SWITCH_FOCUS_RING.width}
|
|
238
|
+
border: `${rem(theme, SWITCH_FOCUS_RING.width)} solid ${alpha(palette.main, SWITCH_FOCUS_RING.alpha)}`,
|
|
235
239
|
},
|
|
236
240
|
'&.Mui-disabled .MuiSwitch-thumb': { color: neutralTones(theme).surface },
|
|
237
241
|
'&.Mui-disabled + .MuiSwitch-track': { opacity: DISABLED.trackOpacity },
|
|
@@ -245,9 +249,9 @@ const thumbSx = (
|
|
|
245
249
|
thumbSize: number,
|
|
246
250
|
look: SwitchLook,
|
|
247
251
|
): CSSObject => ({
|
|
248
|
-
width: thumbSize,
|
|
249
|
-
height: thumbSize,
|
|
250
|
-
borderRadius: THUMB_RADIUS[look](thumbSize),
|
|
252
|
+
width: rem(theme, thumbSize),
|
|
253
|
+
height: rem(theme, thumbSize),
|
|
254
|
+
borderRadius: lengthOrPercent(theme, THUMB_RADIUS[look](thumbSize)),
|
|
251
255
|
// `.Mui-checked` above replaces this for the brand-filled track; see
|
|
252
256
|
// {@link RESTING_THUMB} for why the resting one stays white.
|
|
253
257
|
backgroundColor: RESTING_THUMB,
|
|
@@ -259,7 +263,7 @@ const thumbSx = (
|
|
|
259
263
|
justifyContent: 'center',
|
|
260
264
|
...(flags.glass && {
|
|
261
265
|
backgroundColor: alpha(theme.palette.background.paper, SWITCH_GLASS.thumbAlpha),
|
|
262
|
-
backdropFilter: `blur(${SWITCH_GLASS.thumbBlur}
|
|
266
|
+
backdropFilter: `blur(${rem(theme, SWITCH_GLASS.thumbBlur)})`,
|
|
263
267
|
border: `1px solid ${alpha(theme.palette.divider, SWITCH_GLASS.borderAlpha)}`,
|
|
264
268
|
}),
|
|
265
269
|
...(flags.pulse && { animation: `${pulseAnimation} ${seconds(SWITCH_PULSE.ms)} ease-in-out infinite` }),
|
|
@@ -268,10 +272,10 @@ const thumbSx = (
|
|
|
268
272
|
'&::after': {
|
|
269
273
|
content: '""',
|
|
270
274
|
position: 'absolute',
|
|
271
|
-
width: thumbSize * SWITCH_SPINNER.sizeRatio,
|
|
272
|
-
height: thumbSize * SWITCH_SPINNER.sizeRatio,
|
|
273
|
-
border: `${SWITCH_SPINNER.borderWidth}
|
|
274
|
-
borderTop: `${SWITCH_SPINNER.borderWidth}
|
|
275
|
+
width: rem(theme, thumbSize * SWITCH_SPINNER.sizeRatio),
|
|
276
|
+
height: rem(theme, thumbSize * SWITCH_SPINNER.sizeRatio),
|
|
277
|
+
border: `${rem(theme, SWITCH_SPINNER.borderWidth)} solid ${palette.main}`,
|
|
278
|
+
borderTop: `${rem(theme, SWITCH_SPINNER.borderWidth)} solid transparent`,
|
|
275
279
|
borderRadius: '50%',
|
|
276
280
|
animation: `${spinAnimation} ${seconds(SWITCH_SPINNER.ms)} linear infinite`,
|
|
277
281
|
},
|
|
@@ -344,7 +348,7 @@ const trackSx = (
|
|
|
344
348
|
const { glass, gradient, onText, offText, customVariant } = flags;
|
|
345
349
|
|
|
346
350
|
return {
|
|
347
|
-
borderRadius: TRACK_RADIUS[look](height),
|
|
351
|
+
borderRadius: rem(theme, TRACK_RADIUS[look](height)),
|
|
348
352
|
backgroundColor: trackColor(
|
|
349
353
|
{ black: absoluteInk(theme).black, disabled: theme.palette.action.disabled },
|
|
350
354
|
look,
|
|
@@ -355,7 +359,7 @@ const trackSx = (
|
|
|
355
359
|
boxShadow: look === 'ios' ? iosTrackShadow() : 'none',
|
|
356
360
|
...(glass && {
|
|
357
361
|
backgroundColor: alpha(theme.palette.background.paper, SWITCH_GLASS.trackAlpha),
|
|
358
|
-
backdropFilter: `blur(${SWITCH_GLASS.trackBlur}
|
|
362
|
+
backdropFilter: `blur(${rem(theme, SWITCH_GLASS.trackBlur)})`,
|
|
359
363
|
border: `1px solid ${alpha(theme.palette.divider, SWITCH_GLASS.borderAlpha)}`,
|
|
360
364
|
}),
|
|
361
365
|
...(gradient &&
|
|
@@ -381,8 +385,8 @@ export const switchSx = (theme: Theme, flags: SwitchFlags): CSSObject => {
|
|
|
381
385
|
const look = lookOf(flags.customVariant);
|
|
382
386
|
|
|
383
387
|
return {
|
|
384
|
-
width: geometry.width,
|
|
385
|
-
height: geometry.height,
|
|
388
|
+
width: rem(theme, geometry.width),
|
|
389
|
+
height: rem(theme, geometry.height),
|
|
386
390
|
padding: 0,
|
|
387
391
|
overflow: 'visible',
|
|
388
392
|
'& .MuiSwitch-switchBase': switchBaseSx(theme, flags, palette, geometry, look),
|
|
@@ -3,16 +3,17 @@ import type { CSSObject, Theme } from '@mui/material/styles/index.js';
|
|
|
3
3
|
|
|
4
4
|
import { fieldEdge } from '../../../tokens/field-edge';
|
|
5
5
|
import { absoluteInk, controlNeutral } from '../../../tokens/ink';
|
|
6
|
+
import { rem } from '../../../tokens/relative';
|
|
6
7
|
|
|
7
|
-
const glowAnimation = keyframes`
|
|
8
|
+
const glowAnimation = (theme: Theme) => keyframes`
|
|
8
9
|
0% {
|
|
9
|
-
box-shadow: 0 0
|
|
10
|
+
box-shadow: 0 0 ${rem(theme, 5)} currentColor;
|
|
10
11
|
}
|
|
11
12
|
50% {
|
|
12
|
-
box-shadow: 0 0
|
|
13
|
+
box-shadow: 0 0 ${rem(theme, 20)} currentColor, 0 0 ${rem(theme, 30)} currentColor;
|
|
13
14
|
}
|
|
14
15
|
100% {
|
|
15
|
-
box-shadow: 0 0
|
|
16
|
+
box-shadow: 0 0 ${rem(theme, 5)} currentColor;
|
|
16
17
|
}
|
|
17
18
|
`;
|
|
18
19
|
|
|
@@ -29,12 +30,12 @@ const glowAnimation = keyframes`
|
|
|
29
30
|
// `;
|
|
30
31
|
|
|
31
32
|
// Float animation for rich text toolbar
|
|
32
|
-
export const floatAnimation = keyframes`
|
|
33
|
+
export const floatAnimation = (theme: Theme) => keyframes`
|
|
33
34
|
0% {
|
|
34
35
|
transform: translateY(0px);
|
|
35
36
|
}
|
|
36
37
|
50% {
|
|
37
|
-
transform: translateY(-
|
|
38
|
+
transform: translateY(${rem(theme, -3)});
|
|
38
39
|
}
|
|
39
40
|
100% {
|
|
40
41
|
transform: translateY(0px);
|
|
@@ -99,15 +100,15 @@ export const textareaEmphasisStyles = ({
|
|
|
99
100
|
const glassStyles = glass
|
|
100
101
|
? {
|
|
101
102
|
backgroundColor: alpha(theme.palette.background.paper, 0.1),
|
|
102
|
-
backdropFilter:
|
|
103
|
+
backdropFilter: `blur(${rem(theme, 20)})`,
|
|
103
104
|
border: `1px solid ${fieldEdge(theme)}`,
|
|
104
105
|
'&:hover': {
|
|
105
106
|
backgroundColor: alpha(theme.palette.background.paper, 0.15),
|
|
106
|
-
backdropFilter:
|
|
107
|
+
backdropFilter: `blur(${rem(theme, 25)})`,
|
|
107
108
|
},
|
|
108
109
|
'&:focus': {
|
|
109
110
|
backgroundColor: alpha(theme.palette.background.paper, 0.2),
|
|
110
|
-
backdropFilter:
|
|
111
|
+
backdropFilter: `blur(${rem(theme, 30)})`,
|
|
111
112
|
},
|
|
112
113
|
}
|
|
113
114
|
: {};
|
|
@@ -117,7 +118,7 @@ const gradientStyles = gradient
|
|
|
117
118
|
? {
|
|
118
119
|
background: `linear-gradient(${theme.palette.background.paper}, ${theme.palette.background.paper}) padding-box,
|
|
119
120
|
linear-gradient(135deg, ${colorPalette.main}, ${colorPalette.light}) border-box`,
|
|
120
|
-
border:
|
|
121
|
+
border: `${rem(theme, 2)} solid transparent`,
|
|
121
122
|
'&:focus': {
|
|
122
123
|
background: `linear-gradient(${theme.palette.background.paper}, ${theme.palette.background.paper}) padding-box,
|
|
123
124
|
linear-gradient(135deg, ${colorPalette.main}, ${colorPalette.dark}) border-box`,
|
|
@@ -128,8 +129,8 @@ const gradientStyles = gradient
|
|
|
128
129
|
// Glow effect
|
|
129
130
|
const glowStyles = glow
|
|
130
131
|
? {
|
|
131
|
-
animation: `${glowAnimation} 2s ease-in-out infinite`,
|
|
132
|
-
boxShadow: `0 0
|
|
132
|
+
animation: `${glowAnimation(theme)} 2s ease-in-out infinite`,
|
|
133
|
+
boxShadow: `0 0 ${rem(theme, 10)} ${alpha(colorPalette.main, 0.3)}`,
|
|
133
134
|
}
|
|
134
135
|
: {};
|
|
135
136
|
|
|
@@ -2,7 +2,7 @@ import Box from '@mui/material/Box/index.js';
|
|
|
2
2
|
import FormHelperText from '@mui/material/FormHelperText/index.js';
|
|
3
3
|
import InputLabel from '@mui/material/InputLabel/index.js';
|
|
4
4
|
import TextareaAutosize from '@mui/material/TextareaAutosize/index.js';
|
|
5
|
-
import { alpha, styled } from '@mui/material/styles/index.js';
|
|
5
|
+
import { alpha, styled, useTheme } from '@mui/material/styles/index.js';
|
|
6
6
|
import type { Theme } from '@mui/material/styles/index.js';
|
|
7
7
|
import React, { lazy, Suspense, useState } from 'react';
|
|
8
8
|
|
|
@@ -33,7 +33,7 @@ import type { TextareaProps } from './Textarea.types';
|
|
|
33
33
|
import { fieldEdge } from '../../../tokens/field-edge';
|
|
34
34
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
35
35
|
import { FIELD_BORDER_WIDTH, fieldBorder } from '../../../tokens/field-height';
|
|
36
|
-
import { rem } from '../../../tokens/relative';
|
|
36
|
+
import { rem, rems, sxRem } from '../../../tokens/relative';
|
|
37
37
|
|
|
38
38
|
// Interface for styled component props
|
|
39
39
|
interface StyledTextareaProps {
|
|
@@ -66,11 +66,11 @@ const StyledTextarea = styled(TextareaAutosize, {
|
|
|
66
66
|
const errorColor = theme.palette.error;
|
|
67
67
|
|
|
68
68
|
const sizeMap = {
|
|
69
|
-
xs: { padding:
|
|
70
|
-
sm: { padding:
|
|
71
|
-
md: { padding:
|
|
72
|
-
lg: { padding:
|
|
73
|
-
xl: { padding:
|
|
69
|
+
xs: { padding: rems(theme, 6, 8), fontSize: rem(theme, 12), minHeight: rem(theme, 60) },
|
|
70
|
+
sm: { padding: rems(theme, 8, 10), fontSize: rem(theme, 14), minHeight: rem(theme, 80) },
|
|
71
|
+
md: { padding: rems(theme, 10, 12), fontSize: rem(theme, 16), minHeight: rem(theme, 100) },
|
|
72
|
+
lg: { padding: rems(theme, 12, 14), fontSize: rem(theme, 18), minHeight: rem(theme, 120) },
|
|
73
|
+
xl: { padding: rems(theme, 14, 16), fontSize: rem(theme, 20), minHeight: rem(theme, 140) } };
|
|
74
74
|
|
|
75
75
|
const baseStyles = {
|
|
76
76
|
width: '100%',
|
|
@@ -97,7 +97,7 @@ const StyledTextarea = styled(TextareaAutosize, {
|
|
|
97
97
|
'&:focus': {
|
|
98
98
|
borderColor: error ? errorColor.main : colorPalette.main,
|
|
99
99
|
backgroundColor: theme.palette.background.paper,
|
|
100
|
-
boxShadow: `inset 0 0 0
|
|
100
|
+
boxShadow: `inset 0 0 0 ${FIELD_BORDER_WIDTH}px ${error ? errorColor.main : colorPalette.main}, 0 0 0 ${rem(theme, 3)} ${alpha(error ? errorColor.main : colorPalette.main, 0.1)}` } };
|
|
101
101
|
|
|
102
102
|
// Glass morphism effect
|
|
103
103
|
return {
|
|
@@ -112,9 +112,9 @@ const StyledLabel = styled(InputLabel, {
|
|
|
112
112
|
color: error ? theme.palette.error.main : theme.palette.text.primary,
|
|
113
113
|
...(glass && {
|
|
114
114
|
backgroundColor: alpha(theme.palette.background.paper, 0.1),
|
|
115
|
-
backdropFilter:
|
|
116
|
-
padding:
|
|
117
|
-
borderRadius:
|
|
115
|
+
backdropFilter: `blur(${rem(theme, 10)})`,
|
|
116
|
+
padding: rems(theme, 4, 8),
|
|
117
|
+
borderRadius: rem(theme, 4),
|
|
118
118
|
border: `1px solid ${fieldEdge(theme)}`,
|
|
119
119
|
display: 'inline-block' }) }));
|
|
120
120
|
|
|
@@ -133,8 +133,6 @@ const StyledLabel = styled(InputLabel, {
|
|
|
133
133
|
|
|
134
134
|
// Rich text toolbar styling
|
|
135
135
|
|
|
136
|
-
const ICON_GUTTER = '40px';
|
|
137
|
-
|
|
138
136
|
const TEXTAREA_DEFAULTS = {
|
|
139
137
|
variant: 'default',
|
|
140
138
|
color: 'primary',
|
|
@@ -191,8 +189,8 @@ const TextareaIcon: React.FC<{
|
|
|
191
189
|
<Box
|
|
192
190
|
sx={{
|
|
193
191
|
position: 'absolute',
|
|
194
|
-
top:
|
|
195
|
-
...(iconPosition === 'start' ? { left:
|
|
192
|
+
top: sxRem(12),
|
|
193
|
+
...(iconPosition === 'start' ? { left: sxRem(12) } : { right: sxRem(12) }),
|
|
196
194
|
color: 'text.secondary',
|
|
197
195
|
pointerEvents: 'none',
|
|
198
196
|
zIndex: 1 }}
|
|
@@ -229,6 +227,19 @@ function RichVariant({
|
|
|
229
227
|
);
|
|
230
228
|
}
|
|
231
229
|
|
|
230
|
+
// Same gap either side; only which side it applies to changes. The previous
|
|
231
|
+
// version had `iconPosition === 'start' ? '40px' : '40px'`, a ternary whose
|
|
232
|
+
// two branches were identical. The icon's gutter is 40px at the design scale.
|
|
233
|
+
function withIconGutter(
|
|
234
|
+
theme: Theme,
|
|
235
|
+
style: React.CSSProperties | undefined,
|
|
236
|
+
hasIcon: boolean,
|
|
237
|
+
iconPosition: TextareaProps['iconPosition'],
|
|
238
|
+
): React.CSSProperties {
|
|
239
|
+
if (!hasIcon) return { ...style };
|
|
240
|
+
return { ...style, [iconPosition === 'start' ? 'paddingLeft' : 'paddingRight']: rem(theme, 40) };
|
|
241
|
+
}
|
|
242
|
+
|
|
232
243
|
export const Textarea: React.FC<TextareaProps> = (textareaProps) => {
|
|
233
244
|
const {
|
|
234
245
|
variant,
|
|
@@ -255,17 +266,12 @@ export const Textarea: React.FC<TextareaProps> = (textareaProps) => {
|
|
|
255
266
|
// key to optional, which would lose what the variant union already proved.
|
|
256
267
|
const { richEditorCopy } = textareaProps;
|
|
257
268
|
|
|
269
|
+
const theme = useTheme();
|
|
258
270
|
const [richTextValue, setRichTextValue] = useState('');
|
|
259
271
|
const hasIcon = Boolean(icon);
|
|
260
272
|
const testId = dataTestId || dataTestIdCamelCase;
|
|
261
273
|
|
|
262
|
-
const textareaStyle =
|
|
263
|
-
...style,
|
|
264
|
-
// Same gap either side; only which side it applies to changes. The previous
|
|
265
|
-
// version had `iconPosition === 'start' ? '40px' : '40px'`, a ternary whose
|
|
266
|
-
// two branches were identical.
|
|
267
|
-
...(hasIcon && {
|
|
268
|
-
[iconPosition === 'start' ? 'paddingLeft' : 'paddingRight']: ICON_GUTTER }) };
|
|
274
|
+
const textareaStyle = withIconGutter(theme, style, hasIcon, iconPosition);
|
|
269
275
|
|
|
270
276
|
// If rich text variant, use the rich text editor
|
|
271
277
|
if (variant === 'rich' && richEditorCopy) {
|
|
@@ -22,7 +22,7 @@ import type { RichEditorToolbarCopy } from '../../../copy';
|
|
|
22
22
|
import { fieldEdge } from '../../../tokens/field-edge';
|
|
23
23
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
24
24
|
import { FIELD_BORDER_WIDTH } from '../../../tokens/field-height';
|
|
25
|
-
import { rem } from '../../../tokens/relative';
|
|
25
|
+
import { rem, rems } from '../../../tokens/relative';
|
|
26
26
|
|
|
27
27
|
const RichToolbar = styled(Box)<{ glass?: boolean }>(({ theme, glass }) => ({
|
|
28
28
|
display: 'flex',
|
|
@@ -33,9 +33,9 @@ const RichToolbar = styled(Box)<{ glass?: boolean }>(({ theme, glass }) => ({
|
|
|
33
33
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
34
34
|
background: glass ? alpha(theme.palette.background.paper, 0.1) : theme.palette.background.paper,
|
|
35
35
|
...(glass && {
|
|
36
|
-
backdropFilter:
|
|
36
|
+
backdropFilter: `blur(${rem(theme, 15)})` }),
|
|
37
37
|
'& .MuiDivider-root': {
|
|
38
|
-
height: 24,
|
|
38
|
+
height: rem(theme, 24),
|
|
39
39
|
margin: `0 ${theme.spacing(1)}` } }));
|
|
40
40
|
|
|
41
41
|
const ToolbarButton = styled(IconButton, {
|
|
@@ -63,8 +63,8 @@ const ToolbarButton = styled(IconButton, {
|
|
|
63
63
|
'&:hover': {
|
|
64
64
|
color: theme.palette.primary.main,
|
|
65
65
|
backgroundColor: alpha(theme.palette.primary.main, 0.15),
|
|
66
|
-
transform:
|
|
67
|
-
animation: `${floatAnimation} 1.5s ease-in-out infinite`,
|
|
66
|
+
transform: `translateY(${rem(theme, -1)})`,
|
|
67
|
+
animation: `${floatAnimation(theme)} 1.5s ease-in-out infinite`,
|
|
68
68
|
|
|
69
69
|
'&::before': {
|
|
70
70
|
width: '100%',
|
|
@@ -87,10 +87,10 @@ const CharacterCount = styled(Box)<{ limit?: number; count: number }>(({ theme,
|
|
|
87
87
|
: isWarning
|
|
88
88
|
? theme.palette.warning.main
|
|
89
89
|
: theme.palette.text.secondary,
|
|
90
|
-
padding:
|
|
90
|
+
padding: rems(theme, 2, 6),
|
|
91
91
|
borderRadius: theme.spacing(0.5),
|
|
92
92
|
backgroundColor: alpha(theme.palette.background.paper, 0.8),
|
|
93
|
-
backdropFilter:
|
|
93
|
+
backdropFilter: `blur(${rem(theme, 10)})`,
|
|
94
94
|
transition: 'all 0.3s ease' };
|
|
95
95
|
});
|
|
96
96
|
|
|
@@ -108,7 +108,7 @@ const ContentEditableDiv = styled('div')<{
|
|
|
108
108
|
const engaged = error ? errorColor.main : colorPalette.main;
|
|
109
109
|
|
|
110
110
|
return {
|
|
111
|
-
minHeight:
|
|
111
|
+
minHeight: rem(theme, 120),
|
|
112
112
|
padding: theme.spacing(1.5),
|
|
113
113
|
borderRadius: `0 0 ${fieldRadius(theme)}px ${fieldRadius(theme)}px`,
|
|
114
114
|
border: `${FIELD_BORDER_WIDTH}px solid ${error || focused ? engaged : fieldEdge(theme)}`,
|
|
@@ -125,7 +125,7 @@ const ContentEditableDiv = styled('div')<{
|
|
|
125
125
|
cursor: 'text',
|
|
126
126
|
|
|
127
127
|
...(glass && {
|
|
128
|
-
backdropFilter:
|
|
128
|
+
backdropFilter: `blur(${rem(theme, 20)})` }),
|
|
129
129
|
|
|
130
130
|
'&:hover': {
|
|
131
131
|
backgroundColor: glass
|
|
@@ -136,7 +136,7 @@ const ContentEditableDiv = styled('div')<{
|
|
|
136
136
|
// moves), as every other field's does, under the halo.
|
|
137
137
|
'&:focus': {
|
|
138
138
|
borderColor: engaged,
|
|
139
|
-
boxShadow: `inset 0 0 0
|
|
139
|
+
boxShadow: `inset 0 0 0 ${FIELD_BORDER_WIDTH}px ${engaged}, 0 0 0 ${rem(theme, 3)} ${alpha(engaged, 0.1)}` },
|
|
140
140
|
|
|
141
141
|
'& > *': {
|
|
142
142
|
margin: '0.5em 0' },
|
|
@@ -4,17 +4,17 @@ import type { CSSObject, PaletteColor, Theme } from '@mui/material/styles/index.
|
|
|
4
4
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
5
5
|
import { asFieldSize, fieldBorder, fieldHeight } from '../../../tokens/field-height';
|
|
6
6
|
import { absoluteInk, controlNeutral, sheen } from '../../../tokens/ink';
|
|
7
|
-
import { rem } from '../../../tokens/relative';
|
|
7
|
+
import { rem, rems } from '../../../tokens/relative';
|
|
8
8
|
|
|
9
|
-
const glowAnimation = keyframes`
|
|
10
|
-
0% { box-shadow: 0 0
|
|
11
|
-
50% { box-shadow: 0 0
|
|
12
|
-
100% { box-shadow: 0 0
|
|
9
|
+
const glowAnimation = (theme: Theme) => keyframes`
|
|
10
|
+
0% { box-shadow: 0 0 ${rem(theme, 5)} currentColor; }
|
|
11
|
+
50% { box-shadow: 0 0 ${rem(theme, 15)} currentColor, 0 0 ${rem(theme, 25)} currentColor; }
|
|
12
|
+
100% { box-shadow: 0 0 ${rem(theme, 5)} currentColor; }
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
|
-
const floatAnimation = keyframes`
|
|
15
|
+
const floatAnimation = (theme: Theme) => keyframes`
|
|
16
16
|
0%, 100% { transform: translateY(0px); }
|
|
17
|
-
50% { transform: translateY(-
|
|
17
|
+
50% { transform: translateY(${rem(theme, -2)}); }
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
interface TogglePalette {
|
|
@@ -57,18 +57,21 @@ export const getColorFromTheme = (theme: Theme, color: string): TogglePalette =>
|
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Each size's padding (vertical, horizontal) and type, in design px, read
|
|
62
|
+
* through the type scale.
|
|
63
|
+
*/
|
|
64
|
+
const SIZE_MAP: Record<string, { paddingPx: readonly [number, number]; fontPx: number }> = {
|
|
65
|
+
xs: { paddingPx: [4, 8], fontPx: 12 },
|
|
66
|
+
sm: { paddingPx: [6, 12], fontPx: 14 },
|
|
67
|
+
md: { paddingPx: [8, 16], fontPx: 16 },
|
|
68
|
+
lg: { paddingPx: [10, 20], fontPx: 18 },
|
|
69
|
+
xl: { paddingPx: [12, 24], fontPx: 20 },
|
|
67
70
|
};
|
|
68
71
|
|
|
69
72
|
const sizeStyles = (theme: Theme, customSize: string): CSSObject => {
|
|
70
73
|
const size = SIZE_MAP[customSize];
|
|
71
|
-
return size ? { padding: size.
|
|
74
|
+
return size ? { padding: rems(theme, ...size.paddingPx), fontSize: rem(theme, size.fontPx) } : {};
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
export const baseStyles = (
|
|
@@ -103,9 +106,9 @@ export const baseStyles = (
|
|
|
103
106
|
'&:hover': {
|
|
104
107
|
backgroundColor: alpha(colorPalette.main, 0.08),
|
|
105
108
|
borderColor: colorPalette.main,
|
|
106
|
-
transform:
|
|
107
|
-
boxShadow: `0
|
|
108
|
-
animation: `${floatAnimation} 2s ease-in-out infinite`,
|
|
109
|
+
transform: `translateY(${rem(theme, -1)})`,
|
|
110
|
+
boxShadow: `0 ${rems(theme, 4, 8)} ${alpha(colorPalette.main, 0.15)}`,
|
|
111
|
+
animation: `${floatAnimation(theme)} 2s ease-in-out infinite`,
|
|
109
112
|
|
|
110
113
|
'&::before': {
|
|
111
114
|
width: '100%',
|
|
@@ -121,7 +124,7 @@ export const baseStyles = (
|
|
|
121
124
|
backgroundColor: colorPalette.main,
|
|
122
125
|
color: colorPalette.contrastText || absoluteInk(theme).white,
|
|
123
126
|
borderColor: colorPalette.main,
|
|
124
|
-
boxShadow: `0
|
|
127
|
+
boxShadow: `0 ${rems(theme, 2, 8)} ${alpha(colorPalette.main, 0.3)}`,
|
|
125
128
|
|
|
126
129
|
'&::after': {
|
|
127
130
|
content: '""',
|
|
@@ -136,8 +139,8 @@ export const baseStyles = (
|
|
|
136
139
|
|
|
137
140
|
'&:hover': {
|
|
138
141
|
backgroundColor: colorPalette.dark,
|
|
139
|
-
transform:
|
|
140
|
-
boxShadow: `0
|
|
142
|
+
transform: `translateY(${rem(theme, -2)}) scale(1.02)`,
|
|
143
|
+
boxShadow: `0 ${rems(theme, 6, 20)} ${alpha(colorPalette.main, 0.4)}`,
|
|
141
144
|
},
|
|
142
145
|
},
|
|
143
146
|
|
|
@@ -158,7 +161,7 @@ export const variantStyles = (
|
|
|
158
161
|
case 'outline':
|
|
159
162
|
return {
|
|
160
163
|
backgroundColor: 'transparent',
|
|
161
|
-
border:
|
|
164
|
+
border: `${rem(theme, 2)} solid ${colorPalette.main}`,
|
|
162
165
|
color: colorPalette.main,
|
|
163
166
|
|
|
164
167
|
'&.Mui-selected': {
|
|
@@ -197,7 +200,7 @@ export const effectStyles = (
|
|
|
197
200
|
): CSSObject => ({
|
|
198
201
|
...(glass && {
|
|
199
202
|
backgroundColor: alpha(theme.palette.background.paper, 0.1),
|
|
200
|
-
backdropFilter:
|
|
203
|
+
backdropFilter: `blur(${rem(theme, 20)})`,
|
|
201
204
|
border: `1px solid ${alpha(theme.palette.divider, 0.2)}`,
|
|
202
205
|
}),
|
|
203
206
|
|
|
@@ -205,7 +208,7 @@ export const effectStyles = (
|
|
|
205
208
|
'&.Mui-selected': {
|
|
206
209
|
background: `linear-gradient(135deg, ${colorPalette.light}, ${colorPalette.main}, ${colorPalette.dark})`,
|
|
207
210
|
backgroundSize: '200% 200%',
|
|
208
|
-
animation: `${floatAnimation} 3s ease-in-out infinite`,
|
|
211
|
+
animation: `${floatAnimation(theme)} 3s ease-in-out infinite`,
|
|
209
212
|
border: 'none',
|
|
210
213
|
|
|
211
214
|
'&:hover': {
|
|
@@ -216,8 +219,8 @@ export const effectStyles = (
|
|
|
216
219
|
|
|
217
220
|
...(glow && {
|
|
218
221
|
'&.Mui-selected': {
|
|
219
|
-
animation: `${glowAnimation} 2s ease-in-out infinite`,
|
|
220
|
-
boxShadow: `0 0
|
|
222
|
+
animation: `${glowAnimation(theme)} 2s ease-in-out infinite`,
|
|
223
|
+
boxShadow: `0 0 ${rem(theme, 15)} ${alpha(colorPalette.main, 0.6)}`,
|
|
221
224
|
},
|
|
222
225
|
}),
|
|
223
226
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ToggleButton from '@mui/material/ToggleButton/index.js';
|
|
2
|
-
import { styled } from '@mui/material/styles/index.js';
|
|
2
|
+
import { styled, useTheme } from '@mui/material/styles/index.js';
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
4
|
|
|
5
5
|
import {
|
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
} from './Toggle.styles';
|
|
11
11
|
import type { ToggleProps } from './Toggle.types';
|
|
12
12
|
|
|
13
|
+
import { rem } from '../../../tokens/relative';
|
|
14
|
+
|
|
13
15
|
const StyledToggle = styled(ToggleButton, {
|
|
14
16
|
shouldForwardProp: (prop) =>
|
|
15
17
|
!['customVariant', 'customColor', 'customSize', 'glow', 'glass', 'gradient'].includes(
|
|
@@ -56,6 +58,7 @@ export const Toggle = forwardRef<HTMLButtonElement, ToggleProps>(
|
|
|
56
58
|
},
|
|
57
59
|
ref,
|
|
58
60
|
) => {
|
|
61
|
+
const theme = useTheme();
|
|
59
62
|
const testIds = {
|
|
60
63
|
container: dataTestId,
|
|
61
64
|
icon: dataTestId ? `${dataTestId}-icon` : undefined,
|
|
@@ -75,7 +78,7 @@ export const Toggle = forwardRef<HTMLButtonElement, ToggleProps>(
|
|
|
75
78
|
>
|
|
76
79
|
{icon && (
|
|
77
80
|
<span
|
|
78
|
-
style={{ marginRight: children ?
|
|
81
|
+
style={{ marginRight: children ? rem(theme, 8) : '0' }}
|
|
79
82
|
data-testid={testIds.icon}
|
|
80
83
|
>
|
|
81
84
|
{icon}
|
|
@@ -6,14 +6,14 @@ import type { Theme } from '@mui/material/styles/index.js';
|
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
7
|
|
|
8
8
|
import type { ToggleGroupProps } from './ToggleGroup.types';
|
|
9
|
-
import {
|
|
10
|
-
import { asFieldSize, fieldHeight } from '../../../tokens/field-height';
|
|
9
|
+
import { asFieldSize, FIELD_BORDER_WIDTH, fieldHeight } from '../../../tokens/field-height';
|
|
11
10
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
12
11
|
import { controlNeutral } from '../../../tokens/ink';
|
|
13
|
-
import { rem } from '../../../tokens/relative';
|
|
12
|
+
import { rem, remPx, rems } from '../../../tokens/relative';
|
|
13
|
+
import { cssLengthToPx } from '../../../tokens/css-units';
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
/** The glass frame's padding (4px at the design scale); its border is the field hairline. */
|
|
16
|
+
const glassPadding = (theme: Theme): string => rem(theme, 4);
|
|
17
17
|
|
|
18
18
|
const getColorFromTheme = (theme: Theme, color: string) => {
|
|
19
19
|
if (color === 'neutral') {
|
|
@@ -41,6 +41,10 @@ const getColorFromTheme = (theme: Theme, color: string) => {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
/** The glass frame's radius: the field radius plus its padding, the buttons' margin and its border. */
|
|
45
|
+
const glassFrameRadius = (theme: Theme): number =>
|
|
46
|
+
fieldRadius(theme) + remPx(theme, 4) + cssLengthToPx(theme.spacing(0.5), 4) + FIELD_BORDER_WIDTH;
|
|
47
|
+
|
|
44
48
|
const StyledToggleGroup = styled(ToggleButtonGroup, {
|
|
45
49
|
shouldForwardProp: (prop) => !['customColor', 'customSize', 'glass'].includes(prop as string),
|
|
46
50
|
})<{
|
|
@@ -52,13 +56,12 @@ const StyledToggleGroup = styled(ToggleButtonGroup, {
|
|
|
52
56
|
// around them is inset by its padding, the buttons' margin and its border,
|
|
53
57
|
// and rounds by that much more so the two corners stay concentric.
|
|
54
58
|
const radius = fieldRadius(theme);
|
|
55
|
-
const inset = GLASS_PADDING + cssLengthToPx(theme.spacing(0.5), 4) + GLASS_BORDER;
|
|
56
59
|
return {
|
|
57
60
|
backgroundColor: glass ? alpha(theme.palette.background.paper, 0.1) : 'transparent',
|
|
58
|
-
backdropFilter: glass ?
|
|
59
|
-
borderRadius: glass ?
|
|
60
|
-
padding: glass ?
|
|
61
|
-
border: glass ? `${
|
|
61
|
+
backdropFilter: glass ? `blur(${rem(theme, 20)})` : 'none',
|
|
62
|
+
borderRadius: glass ? glassFrameRadius(theme) : radius,
|
|
63
|
+
padding: glass ? glassPadding(theme) : 0,
|
|
64
|
+
border: glass ? `${FIELD_BORDER_WIDTH}px solid ${alpha(theme.palette.divider, 0.2)}` : 'none',
|
|
62
65
|
|
|
63
66
|
'& .MuiToggleButtonGroup-grouped': {
|
|
64
67
|
margin: theme.spacing(0.5),
|
|
@@ -88,11 +91,11 @@ export const ToggleGroup = forwardRef<HTMLDivElement, ToggleGroupProps>(
|
|
|
88
91
|
const colorPalette = getColorFromTheme(theme, color);
|
|
89
92
|
|
|
90
93
|
const sizeMap = {
|
|
91
|
-
xs: { padding:
|
|
92
|
-
sm: { padding:
|
|
93
|
-
md: { padding:
|
|
94
|
-
lg: { padding:
|
|
95
|
-
xl: { padding:
|
|
94
|
+
xs: { padding: rems(theme, 4, 8), fontSize: rem(theme, 12) },
|
|
95
|
+
sm: { padding: rems(theme, 6, 12), fontSize: rem(theme, 14) },
|
|
96
|
+
md: { padding: rems(theme, 8, 16), fontSize: rem(theme, 16) },
|
|
97
|
+
lg: { padding: rems(theme, 10, 20), fontSize: rem(theme, 18) },
|
|
98
|
+
xl: { padding: rems(theme, 12, 24), fontSize: rem(theme, 20) },
|
|
96
99
|
};
|
|
97
100
|
|
|
98
101
|
return (
|