@12-apps/ui 6.20.0 → 6.21.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/NATIVE.md +5 -1
- package/dist/_internal/components/data-display/Alert/Alert.js +4 -4
- package/dist/_internal/components/data-display/Alert/Alert.styles.js +2 -2
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +7 -7
- package/dist/_internal/components/data-display/Avatar/Avatar.js +2 -2
- package/dist/_internal/components/data-display/Badge/Badge.js +3 -3
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +4 -4
- package/dist/_internal/components/data-display/CardKit/card-actions-context.js +5 -5
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +10 -10
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +5 -5
- package/dist/_internal/components/data-display/Carousel/Carousel.js +3 -3
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +7 -7
- package/dist/_internal/components/data-display/Chart/chart-context.js +2 -2
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +3 -3
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +3 -3
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +52 -51
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +73 -69
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +5 -5
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +7 -7
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +16 -12
- package/dist/_internal/components/data-display/DataViews/base-card.js +7 -5
- 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 +10 -3
- 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 +14 -13
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +17 -15
- package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +21 -19
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +12 -12
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +47 -46
- package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +27 -26
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +11 -11
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +14 -14
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +25 -21
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +13 -13
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +5 -5
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +2 -2
- package/dist/_internal/components/data-display/DataViews/save-view-preview.js +3 -3
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +8 -8
- package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
- package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +3 -3
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +3 -3
- package/dist/_internal/components/data-display/ErrorState/ErrorState.js +2 -2
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +1 -1
- package/dist/_internal/components/data-display/LazyImage/LazyImage.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +5 -5
- package/dist/_internal/components/data-display/LoadingState/LoadingState.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +11 -11
- package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
- package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
- package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +4 -4
- package/dist/_internal/components/data-display/Sheet/Sheet.js +2 -2
- package/dist/_internal/components/data-display/StatCard/StatCard.js +3 -3
- package/dist/_internal/components/data-display/Table/Table.js +3 -3
- package/dist/_internal/components/data-display/index.js +59 -59
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +4 -4
- package/dist/_internal/components/feedback/TutorialOverlay/TutorialOverlay.js +2 -2
- package/dist/_internal/components/feedback/index.js +9 -9
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +3 -3
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +12 -10
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +7 -5
- package/dist/_internal/components/form/AddressAutocomplete/AddressFallbackField.js +5 -3
- package/dist/_internal/components/form/AddressAutocomplete/AddressInputField.js +5 -3
- package/dist/_internal/components/form/AddressAutocomplete/AddressTextField.js +4 -2
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +2 -2
- package/dist/_internal/components/form/Button/Button.js +3 -3
- package/dist/_internal/components/form/Calendar/Calendar.js +4 -4
- package/dist/_internal/components/form/Calendar/CalendarDayCell.js +2 -2
- package/dist/_internal/components/form/Calendar/CalendarMonth.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +10 -8
- package/dist/_internal/components/form/CategorySelect/CategoryPanelFoot.js +5 -3
- package/dist/_internal/components/form/CategorySelect/CategoryPanelHead.js +5 -3
- package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +7 -5
- package/dist/_internal/components/form/CategorySelect/CategoryRows.js +6 -4
- package/dist/_internal/components/form/CategorySelect/CategorySelect.js +14 -12
- package/dist/_internal/components/form/CategorySelect/CategorySelect.styles.js +4 -2
- package/dist/_internal/components/form/CategorySelect/CategoryTrigger.js +5 -3
- package/dist/_internal/components/form/CepField/CepField.js +10 -4
- package/dist/_internal/components/form/Checkbox/Checkbox.base.js +1 -0
- package/dist/_internal/components/form/Checkbox/Checkbox.base.js.map +1 -0
- package/dist/_internal/components/form/Checkbox/Checkbox.helpers.js +2 -1
- package/dist/_internal/components/form/Checkbox/Checkbox.js +9 -2
- package/dist/_internal/components/form/Checkbox/Checkbox.metrics.js +34 -0
- package/dist/_internal/components/form/Checkbox/Checkbox.metrics.js.map +1 -0
- package/dist/_internal/components/form/CodeEditor/CodeEditor.js +6 -4
- package/dist/_internal/components/form/CreatableSelect/CreatableSelect.js +4 -2
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +5 -5
- package/dist/_internal/components/form/Input/Input.base.js +1 -0
- package/dist/_internal/components/form/Input/Input.base.js.map +1 -0
- package/dist/_internal/components/form/Input/Input.helpers.js +23 -0
- package/dist/_internal/components/form/Input/Input.helpers.js.map +1 -0
- package/dist/_internal/components/form/Input/Input.js +9 -3
- package/dist/_internal/components/form/Input/Input.metrics.js +53 -0
- package/dist/_internal/components/form/Input/Input.metrics.js.map +1 -0
- package/dist/_internal/components/form/Input/Input.styles.js +10 -4
- package/dist/_internal/components/form/InputOTP/InputOTP.js +5 -3
- package/dist/_internal/components/form/InputOTP/InputOTP.styles.js +4 -2
- package/dist/_internal/components/form/Menubar/Menubar.js +4 -4
- package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +2 -2
- package/dist/_internal/components/form/PhoneInput/PhoneInput.js +4 -2
- package/dist/_internal/components/form/RadioGroup/RadioGroup.js +6 -4
- package/dist/_internal/components/form/RadioGroup/RadioGroup.styles.js +4 -2
- package/dist/_internal/components/form/RadioGroup/RadioGroup.variants.js +5 -3
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +4 -2
- package/dist/_internal/components/form/Select/Select.base.js +1 -0
- package/dist/_internal/components/form/Select/Select.base.js.map +1 -0
- package/dist/_internal/components/form/Select/Select.helpers.js +48 -0
- package/dist/_internal/components/form/Select/Select.helpers.js.map +1 -0
- package/dist/_internal/components/form/Select/Select.js +10 -2
- package/dist/_internal/components/form/Select/Select.metrics.js +38 -0
- package/dist/_internal/components/form/Select/Select.metrics.js.map +1 -0
- package/dist/_internal/components/form/Switch/Switch.base.js +1 -0
- package/dist/_internal/components/form/Switch/Switch.base.js.map +1 -0
- package/dist/_internal/components/form/Switch/Switch.helpers.js +59 -0
- package/dist/_internal/components/form/Switch/Switch.helpers.js.map +1 -0
- package/dist/_internal/components/form/Switch/Switch.js +9 -3
- package/dist/_internal/components/form/Switch/Switch.metrics.js +83 -0
- package/dist/_internal/components/form/Switch/Switch.metrics.js.map +1 -0
- package/dist/_internal/components/form/Switch/Switch.parts.js +7 -2
- package/dist/_internal/components/form/Switch/Switch.styles.js +6 -1
- package/dist/_internal/components/form/Textarea/Textarea.js +5 -3
- package/dist/_internal/components/form/Textarea/Textarea.styles.js +4 -2
- package/dist/_internal/components/form/Textarea/TextareaRichEditor.js +4 -2
- package/dist/_internal/components/form/Textarea/TextareaRichEditor.js.map +1 -1
- package/dist/_internal/components/form/Toggle/Toggle.js +5 -3
- package/dist/_internal/components/form/Toggle/Toggle.styles.js +4 -2
- package/dist/_internal/components/form/index.js +53 -47
- package/dist/_internal/components/form/total-form/Fields/CategoryField.js +15 -13
- package/dist/_internal/components/form/total-form/Fields/CepField.js +11 -5
- package/dist/_internal/components/form/total-form/Fields/SelectField.js +11 -3
- package/dist/_internal/components/form/total-form/Fields/TextField.js +10 -4
- package/dist/_internal/components/form/total-form/Fields/index.js +29 -21
- package/dist/_internal/components/form/total-form/SubmitButton.js +4 -4
- package/dist/_internal/components/index.js +140 -134
- package/dist/_internal/components/layout/Box/Box.js +2 -2
- package/dist/_internal/components/layout/Container/Container.js +2 -2
- package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +3 -3
- package/dist/_internal/components/layout/Skeleton/Skeleton.js +2 -2
- package/dist/_internal/components/layout/Spacer/Spacer.js +2 -2
- package/dist/_internal/components/layout/Stack/Stack.js +3 -3
- package/dist/_internal/components/layout/index.js +13 -13
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +6 -6
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +3 -3
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +5 -5
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenuItem.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +3 -3
- package/dist/_internal/components/navigation/index.js +13 -13
- package/dist/_internal/components/typography/Heading/Heading.js +2 -2
- package/dist/_internal/components/typography/Paragraph/Paragraph.js +2 -2
- package/dist/_internal/components/typography/Text/Text.js +2 -2
- package/dist/_internal/components/typography/index.js +4 -4
- package/dist/_internal/components/utility/InfiniteScroll/InfiniteScroll.js +2 -2
- package/dist/_internal/components/utility/index.js +2 -2
- package/dist/_internal/icons/Icon.js +3 -3
- package/dist/_internal/icons/paths.generated.js +1 -1
- package/dist/_internal/platform/aria.js +17 -1
- package/dist/_internal/platform/aria.js.map +1 -1
- package/dist/_internal/platform/test-id.js +3 -1
- package/dist/_internal/social-login-button/social-login-button.js +6 -6
- package/dist/_internal/tokens/field-edge.core.js +11 -0
- package/dist/_internal/tokens/field-edge.core.js.map +1 -0
- package/dist/_internal/tokens/field-edge.js +5 -2
- package/dist/_internal/user-avatar/user-avatar.js +7 -7
- package/dist/charts.js +13 -13
- package/dist/{chunk-2PCOC3PT.js → chunk-26Z7QWID.js} +2 -2
- package/dist/chunk-2ECT4IY2.js +250 -0
- package/dist/chunk-2ECT4IY2.js.map +1 -0
- package/dist/{chunk-IJIT5HQP.js → chunk-2QFTAGDH.js} +3 -3
- package/dist/{chunk-ENNW5SKT.js → chunk-2QLVUVVR.js} +2 -2
- package/dist/{chunk-W3FAKT3D.js → chunk-2SWQ6HIK.js} +4 -4
- package/dist/{chunk-7P2HZLEG.js → chunk-3UOHKHOT.js} +3 -3
- package/dist/{chunk-URWGRPL7.js → chunk-3W7IEWEL.js} +2 -2
- package/dist/{chunk-Z7JNCB5Q.js → chunk-426FTCMF.js} +2 -2
- package/dist/{chunk-46UPILLK.js → chunk-4ETQRBZC.js} +4 -4
- package/dist/{chunk-NQC6H7GY.js → chunk-4HYXEMBP.js} +2 -2
- package/dist/{chunk-43NEBUV3.js → chunk-4K7FDVAB.js} +2 -2
- package/dist/{chunk-LMJBINWN.js → chunk-4MLDWACO.js} +13 -13
- package/dist/{chunk-GGE7Y53F.js → chunk-4TXIZ5WI.js} +2 -2
- package/dist/{chunk-J6UFAMIC.js → chunk-5RQ7N63M.js} +2 -2
- package/dist/chunk-5ZNU2U4D.js +41 -0
- package/dist/chunk-5ZNU2U4D.js.map +1 -0
- package/dist/{chunk-AVGTTWTE.js → chunk-65DLYC4S.js} +4 -4
- package/dist/{chunk-QLWBQQW7.js → chunk-6F5IKY32.js} +5 -1
- package/dist/chunk-6F5IKY32.js.map +1 -0
- package/dist/{chunk-B2A4DG77.js → chunk-6RGWDKUL.js} +6 -6
- package/dist/{chunk-DCEMUZJQ.js → chunk-6WIDZGXE.js} +2 -2
- package/dist/{chunk-R7MX5KPJ.js → chunk-6YLAVHV4.js} +4 -4
- package/dist/{chunk-E27Y7FF2.js → chunk-6Z4H2Y77.js} +4 -4
- package/dist/{chunk-PNYXXLPU.js → chunk-736HP6BL.js} +2 -2
- package/dist/{chunk-C52BELLW.js → chunk-77F36LQQ.js} +3 -3
- package/dist/chunk-7FDU3FIN.js +13 -0
- package/dist/chunk-7FDU3FIN.js.map +1 -0
- package/dist/{chunk-RXSGHPCR.js → chunk-7FOOLP5H.js} +4 -4
- package/dist/{chunk-74OZ5KVR.js → chunk-7KTU6YMQ.js} +6 -6
- package/dist/{chunk-X5D3PTWI.js → chunk-7MAOQIWA.js} +2 -2
- package/dist/{chunk-5ZF3VASA.js → chunk-7ZH7ZB33.js} +7 -7
- package/dist/{chunk-FX5DY6VR.js → chunk-AD776JPA.js} +7 -4
- package/dist/chunk-AD776JPA.js.map +1 -0
- package/dist/{chunk-PQECNGDE.js → chunk-AGYGNNOM.js} +2 -2
- package/dist/{chunk-PU3AAKRR.js → chunk-AJ6XEO4E.js} +2 -2
- package/dist/{chunk-WX7VWW3W.js → chunk-B3BK2SNS.js} +2 -2
- package/dist/{chunk-VJK5FBNK.js → chunk-B5PYBEXO.js} +2 -2
- package/dist/{chunk-47UD6DZ4.js → chunk-BDVNAU2C.js} +4 -4
- package/dist/{chunk-FGLV6BXQ.js → chunk-BEGWE5O4.js} +5 -5
- package/dist/{chunk-6IUTT6BK.js → chunk-BEH4DN63.js} +4 -4
- package/dist/{chunk-HKV4MQ2W.js → chunk-BLBOYCOV.js} +5 -5
- package/dist/{chunk-24BUCMQA.js → chunk-BNNSO4MC.js} +5 -5
- package/dist/{chunk-CZJLWCEG.js → chunk-BPYPUEM5.js} +2 -2
- package/dist/{chunk-NHSMLVNC.js → chunk-BQQONDW5.js} +7 -7
- package/dist/{chunk-DQHC5P64.js → chunk-BRSF5NRT.js} +4 -4
- package/dist/{chunk-M7OHXNLF.js → chunk-CXVMD6FE.js} +3 -3
- package/dist/{chunk-LYSSO6WC.js → chunk-CZPU5TW3.js} +4 -4
- package/dist/{chunk-DOADQW7I.js → chunk-D4T646G4.js} +2 -2
- package/dist/{chunk-2W4CIWTW.js → chunk-DBYFC6CF.js} +3 -3
- package/dist/{chunk-76GZ55IC.js → chunk-DF2FFYZ7.js} +7 -7
- package/dist/chunk-DFK6QCXX.js +150 -0
- package/dist/chunk-DFK6QCXX.js.map +1 -0
- package/dist/{chunk-BILE3A7F.js → chunk-DH75UNF3.js} +2 -2
- package/dist/{chunk-MLOWPVVW.js → chunk-EPEJMTCQ.js} +16 -13
- package/dist/chunk-EPEJMTCQ.js.map +1 -0
- package/dist/{chunk-6D5WEZ2L.js → chunk-FB36IHCE.js} +8 -8
- package/dist/{chunk-OI3HOI74.js → chunk-FGUESLDX.js} +2 -2
- package/dist/{chunk-PC5FFEIY.js → chunk-FINCVAAR.js} +4 -4
- package/dist/{chunk-YK2PETUP.js → chunk-FRQ4HNGF.js} +2 -2
- package/dist/{chunk-WO52KYSU.js → chunk-G2IPK2XE.js} +10 -10
- package/dist/{chunk-E4FGKZID.js → chunk-GBNOYRLP.js} +8 -8
- package/dist/{chunk-UNF65XZW.js → chunk-GBRKP5GZ.js} +2 -2
- package/dist/{chunk-VLHGBFR6.js → chunk-GCXYCDOA.js} +2 -2
- package/dist/{chunk-EX3PSZLV.js → chunk-GDEXYUPF.js} +3 -3
- package/dist/{chunk-4N4ENTF7.js → chunk-GO4MVQGC.js} +2 -2
- package/dist/{chunk-HDNK7BAX.js → chunk-GT7C6TSM.js} +3 -3
- package/dist/chunk-GY6KNVMI.js +39 -0
- package/dist/chunk-GY6KNVMI.js.map +1 -0
- package/dist/{chunk-HBAPVB7T.js → chunk-HKKSZ7HG.js} +2 -2
- package/dist/{chunk-3AOOI2NR.js → chunk-HR7YTBR7.js} +4 -4
- package/dist/{chunk-AEGX66N7.js → chunk-I3MDKPGG.js} +2 -2
- package/dist/{chunk-7BYFC2MR.js → chunk-I7HYGIEJ.js} +6 -6
- package/dist/{chunk-D7FJ2GAD.js → chunk-IFNK5TPI.js} +2 -2
- package/dist/{chunk-PODGTNXS.js → chunk-IH4RSRQA.js} +4 -4
- package/dist/{chunk-UF27D35R.js → chunk-IIROZKW5.js} +2 -2
- package/dist/{chunk-PUBPZOQJ.js → chunk-IPE5FFFD.js} +2 -2
- package/dist/{chunk-37YPZHAG.js → chunk-JDMYD6QC.js} +2 -2
- package/dist/{chunk-HSAH5QUQ.js → chunk-JIINGMEB.js} +6 -6
- package/dist/{chunk-NRUYYGDZ.js → chunk-JXAYT6LX.js} +2 -2
- package/dist/{chunk-VMNSGE2G.js → chunk-KEVPUBOE.js} +5 -1
- package/dist/chunk-KEVPUBOE.js.map +1 -0
- package/dist/{chunk-ZBNTFWTG.js → chunk-KIHQE5YA.js} +2 -2
- package/dist/{chunk-DVUPIVI2.js → chunk-KT6HWAEN.js} +4 -4
- package/dist/{chunk-MY5VNNSP.js → chunk-MCRIT46W.js} +4 -4
- package/dist/chunk-MLCFODJO.js +135 -0
- package/dist/chunk-MLCFODJO.js.map +1 -0
- package/dist/{chunk-Q5EQC7NL.js → chunk-N5IVVLTH.js} +8 -5
- package/dist/chunk-N5IVVLTH.js.map +1 -0
- package/dist/{chunk-6XPNJLXE.js → chunk-NARIG5FL.js} +2 -2
- package/dist/{chunk-MBYO2F4Y.js → chunk-NUE774AN.js} +6 -6
- package/dist/{chunk-ZEBJT5JZ.js → chunk-OCXCH2ZW.js} +12 -12
- package/dist/{chunk-7TZ6OC5T.js → chunk-OH3YGJT5.js} +2 -2
- package/dist/{chunk-SM3NRN7L.js → chunk-ON2CMKTI.js} +2 -2
- package/dist/{chunk-VCTKJHXD.js → chunk-OOGEYCJH.js} +2 -2
- package/dist/{chunk-J54WH74M.js → chunk-P6IPJYCS.js} +6 -6
- package/dist/{chunk-23FCBIUN.js → chunk-P7FQUGED.js} +8 -8
- package/dist/{chunk-THBT56JE.js → chunk-PANMJFDS.js} +2 -2
- package/dist/{chunk-LZRURORY.js → chunk-PF5HDFYY.js} +3 -3
- package/dist/{chunk-YVW7VPK4.js → chunk-PFLKPNBU.js} +2 -2
- package/dist/{chunk-7EESF76V.js → chunk-PWXL3QQ6.js} +2 -2
- package/dist/{chunk-7DNQHMDO.js → chunk-PXH24VIP.js} +4 -4
- package/dist/{chunk-HBZIN6IQ.js → chunk-PZEC5CQA.js} +2 -2
- package/dist/{chunk-LAHDFBDE.js → chunk-QFHH2NU5.js} +3 -3
- package/dist/{chunk-GBB6XQ56.js → chunk-QGBMCB76.js} +2 -2
- package/dist/{chunk-SOCKK67R.js → chunk-QRX5BYUQ.js} +7 -7
- package/dist/{chunk-QZWKC3AP.js → chunk-QS7ZGRNS.js} +2 -2
- package/dist/{chunk-IH4CX43Q.js → chunk-QZDBWXZG.js} +2 -2
- package/dist/{chunk-PHCSPHDH.js → chunk-R6RVBYTU.js} +3 -3
- package/dist/{chunk-KZSKI2R3.js → chunk-RPQ3W2C6.js} +2 -2
- package/dist/{chunk-HEG7JIBM.js → chunk-RPWEXIAW.js} +5 -5
- package/dist/{chunk-JB67KPGM.js → chunk-RRO2EOJB.js} +4 -4
- package/dist/{chunk-BLT5ZBVL.js → chunk-RRX6ZTNX.js} +2 -2
- package/dist/{chunk-7RZ4WOQW.js → chunk-RRZBATXK.js} +3 -3
- package/dist/{chunk-RMSH2I3O.js → chunk-S6YY2WWK.js} +40 -50
- package/dist/chunk-S6YY2WWK.js.map +1 -0
- package/dist/{chunk-7JWXLDRH.js → chunk-SAHQLXNN.js} +4 -4
- package/dist/{chunk-LUMF63BM.js → chunk-SFAP5EH5.js} +4 -4
- package/dist/{chunk-EGRFMPGD.js → chunk-SHDIZSN5.js} +6 -6
- package/dist/{chunk-GJQYM3PM.js → chunk-SHQWIDD5.js} +4 -4
- package/dist/{chunk-BJ3J6FTN.js → chunk-STH66VLA.js} +40 -23
- package/dist/chunk-STH66VLA.js.map +1 -0
- package/dist/{chunk-FCOEJCUP.js → chunk-TFO6GBW7.js} +2 -2
- package/dist/{chunk-2ZDTGI5V.js → chunk-THZ2NAA4.js} +7 -7
- package/dist/{chunk-OQXOYHIV.js → chunk-TLX66HCW.js} +45 -37
- package/dist/chunk-TLX66HCW.js.map +1 -0
- package/dist/{chunk-VJFH2AXT.js → chunk-TP4N3X2Q.js} +2 -2
- package/dist/{chunk-B7BZAIHL.js → chunk-TPIBJP4S.js} +2 -2
- package/dist/{chunk-Q4NOI2CR.js → chunk-TVO5STZB.js} +5 -5
- package/dist/{chunk-JB7JE4QZ.js → chunk-TZ4SFX3M.js} +3 -3
- package/dist/{chunk-JD364H3Y.js → chunk-TZ633UZA.js} +6 -5
- package/dist/chunk-TZ633UZA.js.map +1 -0
- package/dist/{chunk-HEK4LQT6.js → chunk-UB76PBDF.js} +2 -2
- package/dist/{chunk-NFAKRI4S.js → chunk-UEIVXFUC.js} +2 -2
- package/dist/{chunk-DX527XPL.js → chunk-UOPQOBQZ.js} +3 -3
- package/dist/{chunk-X24P3ZYW.js → chunk-V5P5Q6HM.js} +10 -10
- package/dist/{chunk-7DBFEZRC.js → chunk-VIK3HAUQ.js} +2 -2
- package/dist/{chunk-74EZ565M.js → chunk-VPHOSIPB.js} +5 -5
- package/dist/{chunk-SX3V2DLV.js → chunk-VWBWKLXX.js} +4 -4
- package/dist/{chunk-VEFDL77X.js → chunk-VWGR5XUP.js} +2 -2
- package/dist/{chunk-SEH7KOVG.js → chunk-VXTYVJDK.js} +2 -2
- package/dist/{chunk-QYNCPS5W.js → chunk-WBKWIFXA.js} +6 -6
- package/dist/{chunk-YFHIESMD.js → chunk-WPZT2JD4.js} +2 -2
- package/dist/{chunk-GSFNH4C5.js → chunk-WROCSDVL.js} +5 -5
- package/dist/{chunk-VSLUFBMT.js → chunk-WTIOCG4M.js} +41 -27
- package/dist/chunk-WTIOCG4M.js.map +1 -0
- package/dist/{chunk-QZBUGUOY.js → chunk-XEE7PLDR.js} +6 -6
- package/dist/{chunk-Z4GWXTZV.js → chunk-XFU2S6XT.js} +7 -7
- package/dist/{chunk-RQDN4BN5.js → chunk-XLJJ2ZAP.js} +16 -16
- package/dist/{chunk-ACDYA5WC.js → chunk-XZTOIEKI.js} +2 -2
- package/dist/{chunk-LKVIZNUM.js → chunk-Y46RBFBV.js} +8 -8
- package/dist/{chunk-WBVHRLIS.js → chunk-YCCKY5VW.js} +5 -5
- package/dist/{chunk-SKZHOWTS.js → chunk-YDI6IJ6F.js} +2 -2
- package/dist/{chunk-V3SBJ3PB.js → chunk-Z5ABJLTM.js} +2 -2
- package/dist/{chunk-KQ74QU55.js → chunk-Z6UEOSL7.js} +3 -3
- package/dist/{chunk-G5ZVD5IJ.js → chunk-ZDWU52DJ.js} +2 -2
- package/dist/{chunk-2EKALM6P.js → chunk-ZFPJBKVZ.js} +4 -4
- package/dist/{chunk-FP4R47TM.js → chunk-ZGHIHEND.js} +2 -2
- package/dist/{chunk-F2DOTCF3.js → chunk-ZKFYBC6G.js} +2 -2
- package/dist/{chunk-4MGFUPQT.js → chunk-ZOUWHGV3.js} +4 -4
- package/dist/{chunk-4WK2RTVY.js → chunk-ZXLIWOXC.js} +5 -5
- package/dist/{chunk-UMDXGIRZ.js → chunk-ZZOOSKSV.js} +2 -2
- package/dist/data-display/Alert.js +4 -4
- package/dist/data-display/AsyncStateContainer.js +7 -7
- package/dist/data-display/Avatar.js +2 -2
- package/dist/data-display/Badge.js +3 -3
- package/dist/data-display/CardKit.js +18 -18
- package/dist/data-display/Carousel.js +3 -3
- package/dist/data-display/Chart.js +13 -13
- package/dist/data-display/DataGrid.js +2 -2
- package/dist/data-display/DataViews.js +89 -84
- package/dist/data-display/DescriptionItem.js +3 -3
- package/dist/data-display/EmptyState.js +3 -3
- package/dist/data-display/ErrorState.js +2 -2
- package/dist/data-display/HoverCard.js +1 -1
- package/dist/data-display/LazyImage.js +3 -3
- package/dist/data-display/Lightbox.js +5 -5
- package/dist/data-display/LoadingState.js +3 -3
- package/dist/data-display/MapPreview.js +11 -11
- package/dist/data-display/SectionOnboarding.js +4 -4
- package/dist/data-display/Sheet.js +2 -2
- package/dist/data-display/StatCard.js +3 -3
- package/dist/data-display/Table.js +3 -3
- package/dist/feedback/ConfirmAction.js +7 -7
- package/dist/feedback/TutorialOverlay.js +2 -2
- package/dist/form/AddressAutocomplete.js +12 -10
- package/dist/form/Autocomplete.js +2 -2
- package/dist/form/Button.js +3 -3
- package/dist/form/Calendar.js +4 -4
- package/dist/form/CategorySelect.js +14 -12
- package/dist/form/CepField.js +10 -4
- package/dist/form/Checkbox.js +9 -2
- package/dist/form/CodeEditor.js +6 -4
- package/dist/form/CreatableSelect.js +4 -2
- package/dist/form/DateRangePicker.js +5 -5
- package/dist/form/Input.js +9 -3
- package/dist/form/InputOTP.js +5 -3
- package/dist/form/Menubar.js +4 -4
- package/dist/form/PhoneInput.js +4 -2
- package/dist/form/RadioGroup.js +6 -4
- package/dist/form/RichTextEditor.js +4 -2
- package/dist/form/Select.js +10 -2
- package/dist/form/Switch.js +9 -3
- package/dist/form/Textarea.js +5 -3
- package/dist/form/Toggle.js +5 -3
- package/dist/form/total-form.js +33 -28
- package/dist/icons.js +3 -3
- package/dist/layout/Box.js +2 -2
- package/dist/layout/Container.js +2 -2
- package/dist/layout/ContentToolbar.js +6 -6
- package/dist/layout/ScrollArea.js +3 -3
- package/dist/layout/Skeleton.js +2 -2
- package/dist/layout/Spacer.js +2 -2
- package/dist/layout/Stack.js +3 -3
- package/dist/native/chunks/{chunk-Q52IDAF2.js → chunk-D4EYAXNG.js} +6 -2
- package/dist/native/chunks/chunk-D4EYAXNG.js.map +1 -0
- package/dist/native/chunks/{chunk-EKKNUEA6.js → chunk-OGWPPQL4.js} +2 -2
- package/dist/native/chunks/chunk-OXHZDFJZ.js +15 -0
- package/dist/native/chunks/chunk-OXHZDFJZ.js.map +1 -0
- package/dist/native/chunks/{chunk-M4DTJDWU.js → chunk-QZAUOHDQ.js} +1 -1
- package/dist/native/chunks/chunk-QZAUOHDQ.js.map +1 -0
- package/dist/native/chunks/{chunk-UKCCYP52.js → chunk-RJVM5YDE.js} +2 -2
- package/dist/native/chunks/chunk-T6BJPP3E.js +26 -0
- package/dist/native/chunks/chunk-T6BJPP3E.js.map +1 -0
- package/dist/native/chunks/chunk-WKMDCNIN.js +351 -0
- package/dist/native/chunks/chunk-WKMDCNIN.js.map +1 -0
- package/dist/native/data-display/Alert.js +3 -3
- package/dist/native/data-display/Avatar.js +2 -2
- package/dist/native/data-display/Badge.js +3 -3
- package/dist/native/data-display/Chip.js +2 -2
- package/dist/native/data-display/EmptyState.js +4 -4
- package/dist/native/data-display/ErrorState.js +4 -4
- package/dist/native/data-display/LoadingState.js +1 -1
- package/dist/native/form/Button.js +2 -2
- package/dist/native/form/Checkbox.js +233 -0
- package/dist/native/form/Checkbox.js.map +1 -0
- package/dist/native/form/Input.js +233 -0
- package/dist/native/form/Input.js.map +1 -0
- package/dist/native/form/Select.js +348 -0
- package/dist/native/form/Select.js.map +1 -0
- package/dist/native/form/Switch.js +511 -0
- package/dist/native/form/Switch.js.map +1 -0
- package/dist/native/icons.js +2 -2
- package/dist/native/layout/Box.js +2 -2
- package/dist/native/layout/Container.js +1 -1
- package/dist/native/layout/Skeleton.js +1 -1
- package/dist/native/layout/Spacer.js +1 -1
- package/dist/native/layout/Stack.js +2 -2
- package/dist/native/typography/Heading.js +1 -1
- package/dist/native/typography/Paragraph.js +1 -1
- package/dist/native/typography/Text.js +1 -1
- package/dist/navigation/AppHeader.js +6 -6
- package/dist/navigation/CommandPalette.js +2 -2
- package/dist/navigation/NavigationMenu.js +5 -5
- package/dist/social-login-button.js +6 -6
- package/dist/types/components/form/Checkbox/Checkbox.base.d.ts +36 -0
- package/dist/types/components/form/Checkbox/Checkbox.base.d.ts.map +1 -0
- package/dist/types/components/form/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/form/Checkbox/Checkbox.helpers.d.ts +9 -3
- package/dist/types/components/form/Checkbox/Checkbox.helpers.d.ts.map +1 -1
- package/dist/types/components/form/Checkbox/Checkbox.metrics.d.ts +92 -0
- package/dist/types/components/form/Checkbox/Checkbox.metrics.d.ts.map +1 -0
- package/dist/types/components/form/Checkbox/Checkbox.types.d.ts +8 -10
- package/dist/types/components/form/Checkbox/Checkbox.types.d.ts.map +1 -1
- package/dist/types/components/form/Checkbox/index.d.ts +1 -1
- package/dist/types/components/form/Checkbox/index.d.ts.map +1 -1
- package/dist/types/components/form/Input/Input.base.d.ts +62 -0
- package/dist/types/components/form/Input/Input.base.d.ts.map +1 -0
- package/dist/types/components/form/Input/Input.d.ts.map +1 -1
- package/dist/types/components/form/Input/Input.helpers.d.ts +11 -0
- package/dist/types/components/form/Input/Input.helpers.d.ts.map +1 -0
- package/dist/types/components/form/Input/Input.metrics.d.ts +186 -0
- package/dist/types/components/form/Input/Input.metrics.d.ts.map +1 -0
- package/dist/types/components/form/Input/Input.styles.d.ts +1 -35
- package/dist/types/components/form/Input/Input.styles.d.ts.map +1 -1
- package/dist/types/components/form/Input/Input.types.d.ts +12 -17
- package/dist/types/components/form/Input/Input.types.d.ts.map +1 -1
- package/dist/types/components/form/Input/index.d.ts +1 -1
- package/dist/types/components/form/Input/index.d.ts.map +1 -1
- package/dist/types/components/form/Select/Select.base.d.ts +75 -0
- package/dist/types/components/form/Select/Select.base.d.ts.map +1 -0
- package/dist/types/components/form/Select/Select.d.ts.map +1 -1
- package/dist/types/components/form/Select/Select.helpers.d.ts +36 -0
- package/dist/types/components/form/Select/Select.helpers.d.ts.map +1 -0
- package/dist/types/components/form/Select/Select.metrics.d.ts +72 -0
- package/dist/types/components/form/Select/Select.metrics.d.ts.map +1 -0
- package/dist/types/components/form/Select/Select.types.d.ts +12 -49
- package/dist/types/components/form/Select/Select.types.d.ts.map +1 -1
- package/dist/types/components/form/Select/index.d.ts +1 -1
- package/dist/types/components/form/Select/index.d.ts.map +1 -1
- package/dist/types/components/form/Switch/Switch.base.d.ts +111 -0
- package/dist/types/components/form/Switch/Switch.base.d.ts.map +1 -0
- package/dist/types/components/form/Switch/Switch.d.ts.map +1 -1
- package/dist/types/components/form/Switch/Switch.helpers.d.ts +17 -0
- package/dist/types/components/form/Switch/Switch.helpers.d.ts.map +1 -0
- package/dist/types/components/form/Switch/Switch.metrics.d.ts +194 -0
- package/dist/types/components/form/Switch/Switch.metrics.d.ts.map +1 -0
- package/dist/types/components/form/Switch/Switch.parts.d.ts.map +1 -1
- package/dist/types/components/form/Switch/Switch.styles.d.ts +5 -3
- package/dist/types/components/form/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/types/components/form/Switch/Switch.types.d.ts +9 -91
- package/dist/types/components/form/Switch/Switch.types.d.ts.map +1 -1
- package/dist/types/components/form/Switch/index.d.ts +1 -1
- package/dist/types/components/form/Switch/index.d.ts.map +1 -1
- package/dist/types/icons/paths.generated.d.ts +4 -0
- package/dist/types/icons/paths.generated.d.ts.map +1 -1
- package/dist/types/platform/aria.d.ts +59 -1
- package/dist/types/platform/aria.d.ts.map +1 -1
- package/dist/types/platform/test-id.d.ts +10 -0
- package/dist/types/platform/test-id.d.ts.map +1 -1
- package/dist/types/tokens/field-edge.core.d.ts +27 -0
- package/dist/types/tokens/field-edge.core.d.ts.map +1 -0
- package/dist/types/tokens/field-edge.d.ts +8 -9
- package/dist/types/tokens/field-edge.d.ts.map +1 -1
- package/dist/types-native/components/form/Checkbox/Checkbox.base.d.ts +36 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.base.d.ts.map +1 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.helpers.d.ts +13 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.helpers.d.ts.map +1 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.metrics.d.ts +92 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.metrics.d.ts.map +1 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.native.d.ts +21 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.types.native.d.ts +27 -0
- package/dist/types-native/components/form/Checkbox/Checkbox.types.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Checkbox/index.native.d.ts +3 -0
- package/dist/types-native/components/form/Checkbox/index.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/Input.base.d.ts +62 -0
- package/dist/types-native/components/form/Input/Input.base.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/Input.helpers.d.ts +11 -0
- package/dist/types-native/components/form/Input/Input.helpers.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/Input.look.native.d.ts +61 -0
- package/dist/types-native/components/form/Input/Input.look.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/Input.metrics.d.ts +186 -0
- package/dist/types-native/components/form/Input/Input.metrics.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/Input.native.d.ts +22 -0
- package/dist/types-native/components/form/Input/Input.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/Input.types.native.d.ts +20 -0
- package/dist/types-native/components/form/Input/Input.types.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Input/index.native.d.ts +3 -0
- package/dist/types-native/components/form/Input/index.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/Select.base.d.ts +75 -0
- package/dist/types-native/components/form/Select/Select.base.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/Select.helpers.d.ts +36 -0
- package/dist/types-native/components/form/Select/Select.helpers.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/Select.look.native.d.ts +26 -0
- package/dist/types-native/components/form/Select/Select.look.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/Select.metrics.d.ts +72 -0
- package/dist/types-native/components/form/Select/Select.metrics.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/Select.native.d.ts +21 -0
- package/dist/types-native/components/form/Select/Select.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/Select.types.native.d.ts +29 -0
- package/dist/types-native/components/form/Select/Select.types.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Select/index.native.d.ts +3 -0
- package/dist/types-native/components/form/Select/index.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/Switch.base.d.ts +111 -0
- package/dist/types-native/components/form/Switch/Switch.base.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/Switch.helpers.d.ts +17 -0
- package/dist/types-native/components/form/Switch/Switch.helpers.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/Switch.look.native.d.ts +43 -0
- package/dist/types-native/components/form/Switch/Switch.look.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/Switch.metrics.d.ts +194 -0
- package/dist/types-native/components/form/Switch/Switch.metrics.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/Switch.native.d.ts +20 -0
- package/dist/types-native/components/form/Switch/Switch.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/Switch.types.native.d.ts +27 -0
- package/dist/types-native/components/form/Switch/Switch.types.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Switch/index.native.d.ts +3 -0
- package/dist/types-native/components/form/Switch/index.native.d.ts.map +1 -0
- package/dist/types-native/components/form/field-pulse.native.d.ts +18 -0
- package/dist/types-native/components/form/field-pulse.native.d.ts.map +1 -0
- package/dist/types-native/icons/paths.generated.d.ts +4 -0
- package/dist/types-native/icons/paths.generated.d.ts.map +1 -1
- package/dist/types-native/platform/aria.d.ts +59 -1
- package/dist/types-native/platform/aria.d.ts.map +1 -1
- package/dist/types-native/platform/test-id.d.ts +10 -0
- package/dist/types-native/platform/test-id.d.ts.map +1 -1
- package/dist/types-native/tokens/field-edge.core.d.ts +27 -0
- package/dist/types-native/tokens/field-edge.core.d.ts.map +1 -0
- package/dist/types-native/utils/withDefaults.d.ts +13 -0
- package/dist/types-native/utils/withDefaults.d.ts.map +1 -0
- package/dist/typography/Heading.js +2 -2
- package/dist/typography/Paragraph.js +2 -2
- package/dist/typography/Text.js +2 -2
- package/dist/user-avatar.js +7 -7
- package/dist/utility/InfiniteScroll.js +2 -2
- package/package.json +17 -1
- package/src/components/form/Checkbox/Checkbox.base.ts +36 -0
- package/src/components/form/Checkbox/Checkbox.helpers.ts +13 -13
- package/src/components/form/Checkbox/Checkbox.metrics.ts +73 -0
- package/src/components/form/Checkbox/Checkbox.native.tsx +246 -0
- package/src/components/form/Checkbox/Checkbox.tsx +34 -21
- package/src/components/form/Checkbox/Checkbox.types.native.ts +29 -0
- package/src/components/form/Checkbox/Checkbox.types.ts +12 -11
- package/src/components/form/Checkbox/NATIVE-NOTES.md +11 -0
- package/src/components/form/Checkbox/index.native.ts +8 -0
- package/src/components/form/Checkbox/index.ts +1 -1
- package/src/components/form/Input/Input.base.ts +84 -0
- package/src/components/form/Input/Input.helpers.ts +43 -0
- package/src/components/form/Input/Input.look.native.ts +246 -0
- package/src/components/form/Input/Input.metrics.ts +229 -0
- package/src/components/form/Input/Input.native.tsx +240 -0
- package/src/components/form/Input/Input.styles.ts +45 -51
- package/src/components/form/Input/Input.tsx +46 -42
- package/src/components/form/Input/Input.types.native.ts +29 -0
- package/src/components/form/Input/Input.types.ts +15 -17
- package/src/components/form/Input/NATIVE-NOTES.md +14 -0
- package/src/components/form/Input/index.native.ts +2 -0
- package/src/components/form/Input/index.ts +1 -1
- package/src/components/form/Select/NATIVE-NOTES.md +12 -0
- package/src/components/form/Select/Select.base.ts +78 -0
- package/src/components/form/Select/Select.helpers.ts +82 -0
- package/src/components/form/Select/Select.look.native.ts +99 -0
- package/src/components/form/Select/Select.metrics.ts +90 -0
- package/src/components/form/Select/Select.native.tsx +264 -0
- package/src/components/form/Select/Select.tsx +37 -25
- package/src/components/form/Select/Select.types.native.ts +30 -0
- package/src/components/form/Select/Select.types.ts +14 -51
- package/src/components/form/Select/index.native.ts +9 -0
- package/src/components/form/Select/index.ts +7 -1
- package/src/components/form/Switch/NATIVE-NOTES.md +12 -0
- package/src/components/form/Switch/Switch.base.ts +136 -0
- package/src/components/form/Switch/Switch.helpers.ts +61 -0
- package/src/components/form/Switch/Switch.look.native.ts +187 -0
- package/src/components/form/Switch/Switch.metrics.ts +191 -0
- package/src/components/form/Switch/Switch.native.tsx +360 -0
- package/src/components/form/Switch/Switch.parts.tsx +4 -4
- package/src/components/form/Switch/Switch.styles.ts +109 -147
- package/src/components/form/Switch/Switch.tsx +4 -2
- package/src/components/form/Switch/Switch.types.native.ts +34 -0
- package/src/components/form/Switch/Switch.types.ts +16 -117
- package/src/components/form/Switch/index.native.ts +8 -0
- package/src/components/form/Switch/index.ts +6 -1
- package/src/components/form/field-pulse.native.tsx +78 -0
- package/src/icons/glyphs.json +4 -0
- package/src/icons/paths.generated.ts +4 -0
- package/src/platform/aria.ts +72 -1
- package/src/platform/test-id.ts +13 -0
- package/src/tokens/field-edge.core.ts +87 -0
- package/src/tokens/field-edge.ts +10 -66
- package/dist/chunk-BJ3J6FTN.js.map +0 -1
- package/dist/chunk-FX5DY6VR.js.map +0 -1
- package/dist/chunk-JD364H3Y.js.map +0 -1
- package/dist/chunk-MLOWPVVW.js.map +0 -1
- package/dist/chunk-OQXOYHIV.js.map +0 -1
- package/dist/chunk-Q5EQC7NL.js.map +0 -1
- package/dist/chunk-QLWBQQW7.js.map +0 -1
- package/dist/chunk-RMSH2I3O.js.map +0 -1
- package/dist/chunk-TBWEIQUR.js +0 -263
- package/dist/chunk-TBWEIQUR.js.map +0 -1
- package/dist/chunk-VMNSGE2G.js.map +0 -1
- package/dist/chunk-VSLUFBMT.js.map +0 -1
- package/dist/native/chunks/chunk-4NK5ZQZ3.js +0 -10
- package/dist/native/chunks/chunk-4NK5ZQZ3.js.map +0 -1
- package/dist/native/chunks/chunk-M4DTJDWU.js.map +0 -1
- package/dist/native/chunks/chunk-Q52IDAF2.js.map +0 -1
- /package/dist/{chunk-2PCOC3PT.js.map → chunk-26Z7QWID.js.map} +0 -0
- /package/dist/{chunk-IJIT5HQP.js.map → chunk-2QFTAGDH.js.map} +0 -0
- /package/dist/{chunk-ENNW5SKT.js.map → chunk-2QLVUVVR.js.map} +0 -0
- /package/dist/{chunk-W3FAKT3D.js.map → chunk-2SWQ6HIK.js.map} +0 -0
- /package/dist/{chunk-7P2HZLEG.js.map → chunk-3UOHKHOT.js.map} +0 -0
- /package/dist/{chunk-URWGRPL7.js.map → chunk-3W7IEWEL.js.map} +0 -0
- /package/dist/{chunk-Z7JNCB5Q.js.map → chunk-426FTCMF.js.map} +0 -0
- /package/dist/{chunk-46UPILLK.js.map → chunk-4ETQRBZC.js.map} +0 -0
- /package/dist/{chunk-NQC6H7GY.js.map → chunk-4HYXEMBP.js.map} +0 -0
- /package/dist/{chunk-43NEBUV3.js.map → chunk-4K7FDVAB.js.map} +0 -0
- /package/dist/{chunk-LMJBINWN.js.map → chunk-4MLDWACO.js.map} +0 -0
- /package/dist/{chunk-GGE7Y53F.js.map → chunk-4TXIZ5WI.js.map} +0 -0
- /package/dist/{chunk-J6UFAMIC.js.map → chunk-5RQ7N63M.js.map} +0 -0
- /package/dist/{chunk-AVGTTWTE.js.map → chunk-65DLYC4S.js.map} +0 -0
- /package/dist/{chunk-B2A4DG77.js.map → chunk-6RGWDKUL.js.map} +0 -0
- /package/dist/{chunk-DCEMUZJQ.js.map → chunk-6WIDZGXE.js.map} +0 -0
- /package/dist/{chunk-R7MX5KPJ.js.map → chunk-6YLAVHV4.js.map} +0 -0
- /package/dist/{chunk-E27Y7FF2.js.map → chunk-6Z4H2Y77.js.map} +0 -0
- /package/dist/{chunk-PNYXXLPU.js.map → chunk-736HP6BL.js.map} +0 -0
- /package/dist/{chunk-C52BELLW.js.map → chunk-77F36LQQ.js.map} +0 -0
- /package/dist/{chunk-RXSGHPCR.js.map → chunk-7FOOLP5H.js.map} +0 -0
- /package/dist/{chunk-74OZ5KVR.js.map → chunk-7KTU6YMQ.js.map} +0 -0
- /package/dist/{chunk-X5D3PTWI.js.map → chunk-7MAOQIWA.js.map} +0 -0
- /package/dist/{chunk-5ZF3VASA.js.map → chunk-7ZH7ZB33.js.map} +0 -0
- /package/dist/{chunk-PQECNGDE.js.map → chunk-AGYGNNOM.js.map} +0 -0
- /package/dist/{chunk-PU3AAKRR.js.map → chunk-AJ6XEO4E.js.map} +0 -0
- /package/dist/{chunk-WX7VWW3W.js.map → chunk-B3BK2SNS.js.map} +0 -0
- /package/dist/{chunk-VJK5FBNK.js.map → chunk-B5PYBEXO.js.map} +0 -0
- /package/dist/{chunk-47UD6DZ4.js.map → chunk-BDVNAU2C.js.map} +0 -0
- /package/dist/{chunk-FGLV6BXQ.js.map → chunk-BEGWE5O4.js.map} +0 -0
- /package/dist/{chunk-6IUTT6BK.js.map → chunk-BEH4DN63.js.map} +0 -0
- /package/dist/{chunk-HKV4MQ2W.js.map → chunk-BLBOYCOV.js.map} +0 -0
- /package/dist/{chunk-24BUCMQA.js.map → chunk-BNNSO4MC.js.map} +0 -0
- /package/dist/{chunk-CZJLWCEG.js.map → chunk-BPYPUEM5.js.map} +0 -0
- /package/dist/{chunk-NHSMLVNC.js.map → chunk-BQQONDW5.js.map} +0 -0
- /package/dist/{chunk-DQHC5P64.js.map → chunk-BRSF5NRT.js.map} +0 -0
- /package/dist/{chunk-M7OHXNLF.js.map → chunk-CXVMD6FE.js.map} +0 -0
- /package/dist/{chunk-LYSSO6WC.js.map → chunk-CZPU5TW3.js.map} +0 -0
- /package/dist/{chunk-DOADQW7I.js.map → chunk-D4T646G4.js.map} +0 -0
- /package/dist/{chunk-2W4CIWTW.js.map → chunk-DBYFC6CF.js.map} +0 -0
- /package/dist/{chunk-76GZ55IC.js.map → chunk-DF2FFYZ7.js.map} +0 -0
- /package/dist/{chunk-BILE3A7F.js.map → chunk-DH75UNF3.js.map} +0 -0
- /package/dist/{chunk-6D5WEZ2L.js.map → chunk-FB36IHCE.js.map} +0 -0
- /package/dist/{chunk-OI3HOI74.js.map → chunk-FGUESLDX.js.map} +0 -0
- /package/dist/{chunk-PC5FFEIY.js.map → chunk-FINCVAAR.js.map} +0 -0
- /package/dist/{chunk-YK2PETUP.js.map → chunk-FRQ4HNGF.js.map} +0 -0
- /package/dist/{chunk-WO52KYSU.js.map → chunk-G2IPK2XE.js.map} +0 -0
- /package/dist/{chunk-E4FGKZID.js.map → chunk-GBNOYRLP.js.map} +0 -0
- /package/dist/{chunk-UNF65XZW.js.map → chunk-GBRKP5GZ.js.map} +0 -0
- /package/dist/{chunk-VLHGBFR6.js.map → chunk-GCXYCDOA.js.map} +0 -0
- /package/dist/{chunk-EX3PSZLV.js.map → chunk-GDEXYUPF.js.map} +0 -0
- /package/dist/{chunk-4N4ENTF7.js.map → chunk-GO4MVQGC.js.map} +0 -0
- /package/dist/{chunk-HDNK7BAX.js.map → chunk-GT7C6TSM.js.map} +0 -0
- /package/dist/{chunk-HBAPVB7T.js.map → chunk-HKKSZ7HG.js.map} +0 -0
- /package/dist/{chunk-3AOOI2NR.js.map → chunk-HR7YTBR7.js.map} +0 -0
- /package/dist/{chunk-AEGX66N7.js.map → chunk-I3MDKPGG.js.map} +0 -0
- /package/dist/{chunk-7BYFC2MR.js.map → chunk-I7HYGIEJ.js.map} +0 -0
- /package/dist/{chunk-D7FJ2GAD.js.map → chunk-IFNK5TPI.js.map} +0 -0
- /package/dist/{chunk-PODGTNXS.js.map → chunk-IH4RSRQA.js.map} +0 -0
- /package/dist/{chunk-UF27D35R.js.map → chunk-IIROZKW5.js.map} +0 -0
- /package/dist/{chunk-PUBPZOQJ.js.map → chunk-IPE5FFFD.js.map} +0 -0
- /package/dist/{chunk-37YPZHAG.js.map → chunk-JDMYD6QC.js.map} +0 -0
- /package/dist/{chunk-HSAH5QUQ.js.map → chunk-JIINGMEB.js.map} +0 -0
- /package/dist/{chunk-NRUYYGDZ.js.map → chunk-JXAYT6LX.js.map} +0 -0
- /package/dist/{chunk-ZBNTFWTG.js.map → chunk-KIHQE5YA.js.map} +0 -0
- /package/dist/{chunk-DVUPIVI2.js.map → chunk-KT6HWAEN.js.map} +0 -0
- /package/dist/{chunk-MY5VNNSP.js.map → chunk-MCRIT46W.js.map} +0 -0
- /package/dist/{chunk-6XPNJLXE.js.map → chunk-NARIG5FL.js.map} +0 -0
- /package/dist/{chunk-MBYO2F4Y.js.map → chunk-NUE774AN.js.map} +0 -0
- /package/dist/{chunk-ZEBJT5JZ.js.map → chunk-OCXCH2ZW.js.map} +0 -0
- /package/dist/{chunk-7TZ6OC5T.js.map → chunk-OH3YGJT5.js.map} +0 -0
- /package/dist/{chunk-SM3NRN7L.js.map → chunk-ON2CMKTI.js.map} +0 -0
- /package/dist/{chunk-VCTKJHXD.js.map → chunk-OOGEYCJH.js.map} +0 -0
- /package/dist/{chunk-J54WH74M.js.map → chunk-P6IPJYCS.js.map} +0 -0
- /package/dist/{chunk-23FCBIUN.js.map → chunk-P7FQUGED.js.map} +0 -0
- /package/dist/{chunk-THBT56JE.js.map → chunk-PANMJFDS.js.map} +0 -0
- /package/dist/{chunk-LZRURORY.js.map → chunk-PF5HDFYY.js.map} +0 -0
- /package/dist/{chunk-YVW7VPK4.js.map → chunk-PFLKPNBU.js.map} +0 -0
- /package/dist/{chunk-7EESF76V.js.map → chunk-PWXL3QQ6.js.map} +0 -0
- /package/dist/{chunk-7DNQHMDO.js.map → chunk-PXH24VIP.js.map} +0 -0
- /package/dist/{chunk-HBZIN6IQ.js.map → chunk-PZEC5CQA.js.map} +0 -0
- /package/dist/{chunk-LAHDFBDE.js.map → chunk-QFHH2NU5.js.map} +0 -0
- /package/dist/{chunk-GBB6XQ56.js.map → chunk-QGBMCB76.js.map} +0 -0
- /package/dist/{chunk-SOCKK67R.js.map → chunk-QRX5BYUQ.js.map} +0 -0
- /package/dist/{chunk-QZWKC3AP.js.map → chunk-QS7ZGRNS.js.map} +0 -0
- /package/dist/{chunk-IH4CX43Q.js.map → chunk-QZDBWXZG.js.map} +0 -0
- /package/dist/{chunk-PHCSPHDH.js.map → chunk-R6RVBYTU.js.map} +0 -0
- /package/dist/{chunk-KZSKI2R3.js.map → chunk-RPQ3W2C6.js.map} +0 -0
- /package/dist/{chunk-HEG7JIBM.js.map → chunk-RPWEXIAW.js.map} +0 -0
- /package/dist/{chunk-JB67KPGM.js.map → chunk-RRO2EOJB.js.map} +0 -0
- /package/dist/{chunk-BLT5ZBVL.js.map → chunk-RRX6ZTNX.js.map} +0 -0
- /package/dist/{chunk-7RZ4WOQW.js.map → chunk-RRZBATXK.js.map} +0 -0
- /package/dist/{chunk-7JWXLDRH.js.map → chunk-SAHQLXNN.js.map} +0 -0
- /package/dist/{chunk-LUMF63BM.js.map → chunk-SFAP5EH5.js.map} +0 -0
- /package/dist/{chunk-EGRFMPGD.js.map → chunk-SHDIZSN5.js.map} +0 -0
- /package/dist/{chunk-GJQYM3PM.js.map → chunk-SHQWIDD5.js.map} +0 -0
- /package/dist/{chunk-FCOEJCUP.js.map → chunk-TFO6GBW7.js.map} +0 -0
- /package/dist/{chunk-2ZDTGI5V.js.map → chunk-THZ2NAA4.js.map} +0 -0
- /package/dist/{chunk-VJFH2AXT.js.map → chunk-TP4N3X2Q.js.map} +0 -0
- /package/dist/{chunk-B7BZAIHL.js.map → chunk-TPIBJP4S.js.map} +0 -0
- /package/dist/{chunk-Q4NOI2CR.js.map → chunk-TVO5STZB.js.map} +0 -0
- /package/dist/{chunk-JB7JE4QZ.js.map → chunk-TZ4SFX3M.js.map} +0 -0
- /package/dist/{chunk-HEK4LQT6.js.map → chunk-UB76PBDF.js.map} +0 -0
- /package/dist/{chunk-NFAKRI4S.js.map → chunk-UEIVXFUC.js.map} +0 -0
- /package/dist/{chunk-DX527XPL.js.map → chunk-UOPQOBQZ.js.map} +0 -0
- /package/dist/{chunk-X24P3ZYW.js.map → chunk-V5P5Q6HM.js.map} +0 -0
- /package/dist/{chunk-7DBFEZRC.js.map → chunk-VIK3HAUQ.js.map} +0 -0
- /package/dist/{chunk-74EZ565M.js.map → chunk-VPHOSIPB.js.map} +0 -0
- /package/dist/{chunk-SX3V2DLV.js.map → chunk-VWBWKLXX.js.map} +0 -0
- /package/dist/{chunk-VEFDL77X.js.map → chunk-VWGR5XUP.js.map} +0 -0
- /package/dist/{chunk-SEH7KOVG.js.map → chunk-VXTYVJDK.js.map} +0 -0
- /package/dist/{chunk-QYNCPS5W.js.map → chunk-WBKWIFXA.js.map} +0 -0
- /package/dist/{chunk-YFHIESMD.js.map → chunk-WPZT2JD4.js.map} +0 -0
- /package/dist/{chunk-GSFNH4C5.js.map → chunk-WROCSDVL.js.map} +0 -0
- /package/dist/{chunk-QZBUGUOY.js.map → chunk-XEE7PLDR.js.map} +0 -0
- /package/dist/{chunk-Z4GWXTZV.js.map → chunk-XFU2S6XT.js.map} +0 -0
- /package/dist/{chunk-RQDN4BN5.js.map → chunk-XLJJ2ZAP.js.map} +0 -0
- /package/dist/{chunk-ACDYA5WC.js.map → chunk-XZTOIEKI.js.map} +0 -0
- /package/dist/{chunk-LKVIZNUM.js.map → chunk-Y46RBFBV.js.map} +0 -0
- /package/dist/{chunk-WBVHRLIS.js.map → chunk-YCCKY5VW.js.map} +0 -0
- /package/dist/{chunk-SKZHOWTS.js.map → chunk-YDI6IJ6F.js.map} +0 -0
- /package/dist/{chunk-V3SBJ3PB.js.map → chunk-Z5ABJLTM.js.map} +0 -0
- /package/dist/{chunk-KQ74QU55.js.map → chunk-Z6UEOSL7.js.map} +0 -0
- /package/dist/{chunk-G5ZVD5IJ.js.map → chunk-ZDWU52DJ.js.map} +0 -0
- /package/dist/{chunk-2EKALM6P.js.map → chunk-ZFPJBKVZ.js.map} +0 -0
- /package/dist/{chunk-FP4R47TM.js.map → chunk-ZGHIHEND.js.map} +0 -0
- /package/dist/{chunk-F2DOTCF3.js.map → chunk-ZKFYBC6G.js.map} +0 -0
- /package/dist/{chunk-4MGFUPQT.js.map → chunk-ZOUWHGV3.js.map} +0 -0
- /package/dist/{chunk-4WK2RTVY.js.map → chunk-ZXLIWOXC.js.map} +0 -0
- /package/dist/{chunk-UMDXGIRZ.js.map → chunk-ZZOOSKSV.js.map} +0 -0
- /package/dist/native/chunks/{chunk-EKKNUEA6.js.map → chunk-OGWPPQL4.js.map} +0 -0
- /package/dist/native/chunks/{chunk-UKCCYP52.js.map → chunk-RJVM5YDE.js.map} +0 -0
package/dist/layout/Box.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Box
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7MAOQIWA.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveBoxLayout
|
|
6
6
|
} from "../chunk-7V6ZRQYW.js";
|
|
7
7
|
import "../chunk-OCUVKI63.js";
|
|
8
8
|
import "../chunk-KLREH4X6.js";
|
|
9
9
|
import "../chunk-YMRI5QKG.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-6F5IKY32.js";
|
|
11
11
|
import "../chunk-V5IOLAIS.js";
|
|
12
12
|
import "../chunk-7ZPUN7TV.js";
|
|
13
13
|
import "../chunk-PT6TCWIW.js";
|
package/dist/layout/Container.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-DTKYXNCE.js";
|
|
2
2
|
import {
|
|
3
3
|
Container
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-UB76PBDF.js";
|
|
5
5
|
import "../chunk-YBVKLJAL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6F5IKY32.js";
|
|
7
7
|
import "../chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
Container
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-MOLQGQEQ.js";
|
|
2
|
+
import {
|
|
3
|
+
ColumnsMenu
|
|
4
|
+
} from "../chunk-JMVIIKII.js";
|
|
5
|
+
import {
|
|
6
|
+
ViewSelector
|
|
7
|
+
} from "../chunk-WXD7MGBT.js";
|
|
2
8
|
import {
|
|
3
9
|
SortByDropdown
|
|
4
10
|
} from "../chunk-WQFIV5WD.js";
|
|
@@ -15,12 +21,6 @@ import {
|
|
|
15
21
|
import {
|
|
16
22
|
ContentToolbar
|
|
17
23
|
} from "../chunk-TSPHRZ4U.js";
|
|
18
|
-
import {
|
|
19
|
-
ColumnsMenu
|
|
20
|
-
} from "../chunk-JMVIIKII.js";
|
|
21
|
-
import {
|
|
22
|
-
ViewSelector
|
|
23
|
-
} from "../chunk-WXD7MGBT.js";
|
|
24
24
|
import "../chunk-PZ5AY32C.js";
|
|
25
25
|
export {
|
|
26
26
|
ColumnsMenu,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-KAK5SAEA.js";
|
|
2
2
|
import {
|
|
3
3
|
ScrollArea
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-4OEKIFBC.js";
|
|
6
|
-
import "../chunk-RHIDWUK7.js";
|
|
4
|
+
} from "../chunk-6YLAVHV4.js";
|
|
7
5
|
import "../chunk-C53C7C2X.js";
|
|
6
|
+
import "../chunk-4OEKIFBC.js";
|
|
8
7
|
import "../chunk-ZADOIITM.js";
|
|
8
|
+
import "../chunk-RHIDWUK7.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
export {
|
|
11
11
|
ScrollArea
|
package/dist/layout/Skeleton.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-724ZONOL.js";
|
|
2
2
|
import {
|
|
3
3
|
Skeleton
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QS7ZGRNS.js";
|
|
5
5
|
import "../chunk-ZOW2CCMO.js";
|
|
6
6
|
import "../chunk-BRMGHMYB.js";
|
|
7
7
|
import "../chunk-7WDPC46N.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6F5IKY32.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
export {
|
|
11
11
|
Skeleton
|
package/dist/layout/Spacer.js
CHANGED
package/dist/layout/Stack.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Stack
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5RQ7N63M.js";
|
|
4
4
|
import "../chunk-4GGH6ZQ7.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-7MAOQIWA.js";
|
|
6
6
|
import "../chunk-7V6ZRQYW.js";
|
|
7
7
|
import "../chunk-OCUVKI63.js";
|
|
8
8
|
import "../chunk-KLREH4X6.js";
|
|
9
9
|
import "../chunk-YMRI5QKG.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-6F5IKY32.js";
|
|
11
11
|
import "../chunk-V5IOLAIS.js";
|
|
12
12
|
import "../chunk-7ZPUN7TV.js";
|
|
13
13
|
import "../chunk-PT6TCWIW.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveTestId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QZAUOHDQ.js";
|
|
4
4
|
import {
|
|
5
5
|
COLOR_VALUES
|
|
6
6
|
} from "./chunk-5WLOVHKK.js";
|
|
@@ -23,11 +23,14 @@ var ICON_PATHS = {
|
|
|
23
23
|
Add: ["M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"],
|
|
24
24
|
ArrowBack: ["M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"],
|
|
25
25
|
ArrowDownward: ["m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"],
|
|
26
|
+
ArrowDropDown: ["m7 10 5 5 5-5z"],
|
|
26
27
|
ArrowForward: ["m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"],
|
|
27
28
|
ArrowUpward: ["m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"],
|
|
28
29
|
BrokenImage: ["M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"],
|
|
29
30
|
Cancel: ["M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"],
|
|
30
31
|
Check: ["M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"],
|
|
32
|
+
CheckBox: ["M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"],
|
|
33
|
+
CheckBoxOutlineBlank: ["M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"],
|
|
31
34
|
CheckCircle: ["M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"],
|
|
32
35
|
ChevronLeft: ["M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"],
|
|
33
36
|
ChevronRight: ["M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],
|
|
@@ -40,6 +43,7 @@ var ICON_PATHS = {
|
|
|
40
43
|
ExpandLess: ["m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"],
|
|
41
44
|
ExpandMore: ["M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"],
|
|
42
45
|
FilterList: ["M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"],
|
|
46
|
+
IndeterminateCheckBox: ["M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10H7v-2h10z"],
|
|
43
47
|
Info: ["M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"],
|
|
44
48
|
InfoOutlined: ["M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"],
|
|
45
49
|
KeyboardArrowDown: ["M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"],
|
|
@@ -107,4 +111,4 @@ export {
|
|
|
107
111
|
ICON_NAMES,
|
|
108
112
|
Icon
|
|
109
113
|
};
|
|
110
|
-
//# sourceMappingURL=chunk-
|
|
114
|
+
//# sourceMappingURL=chunk-D4EYAXNG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/icons/Icon.types.ts","../../../src/icons/paths.generated.ts","../../../src/icons/Icon.native.tsx","../../../src/icons/icon-color.ts"],"sourcesContent":["import type { IconName } from './paths.generated';\nimport type { ColorValue, SizeValue } from '../tokens/vocabulary';\n\nexport type { IconName };\n\n/**\n * The glyph sizes, in px. `md` is MUI's `SvgIcon` default (24) and `sm` its\n * `small` (20); the rest continue the house scale in 4px steps either side.\n */\nexport const ICON_SIZES: Record<SizeValue, number> = {\n xs: 16,\n sm: 20,\n md: 24,\n lg: 32,\n xl: 40,\n};\n\nexport interface IconBaseProps {\n /** Which glyph. The list is `src/icons/glyphs.json`; both renderers draw the same paths. */\n name: IconName;\n /** A step of the house scale, or an exact px size. */\n size?: SizeValue | number;\n /**\n * A house colour, `inherit` (the surrounding text's colour on the web, the\n * theme's primary text on native, which has no `currentColor`), or any CSS\n * colour string.\n */\n color?: ColorValue | 'inherit' | string;\n /**\n * The name a screen reader gives the glyph. Omit for a decorative icon: it\n * is then hidden from assistive technology on both renderers.\n */\n label?: string;\n testID?: string;\n dataTestId?: string;\n}\n\n/** The px size for either spelling of `size`. */\nexport const iconSize = (size: SizeValue | number | undefined): number =>\n typeof size === 'number' ? size : ICON_SIZES[size ?? 'md'];\n","// GENERATED by scripts/generate-icon-paths.mjs from src/icons/glyphs.json.\n// Do not edit: run `pnpm icons:generate`; `pnpm icons:check` fails CI on drift.\n//\n// Each entry is the `d` of every <path> in the matching @mui/icons-material\n// module, in a 24x24 viewBox — the SAME geometry the web renders through\n// SvgIcon, so the native Icon draws the identical glyph.\n\n/** Path data per glyph, in a 0 0 24 24 viewBox. */\nexport const ICON_PATHS = {\n Add: [\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"],\n ArrowBack: [\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z\"],\n ArrowDownward: [\"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z\"],\n ArrowDropDown: [\"m7 10 5 5 5-5z\"],\n ArrowForward: [\"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"],\n ArrowUpward: [\"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z\"],\n BrokenImage: [\"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z\"],\n Cancel: [\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z\"],\n Check: [\"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"],\n CheckBox: [\"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z\"],\n CheckBoxOutlineBlank: [\"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2\"],\n CheckCircle: [\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z\"],\n ChevronLeft: [\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"],\n ChevronRight: [\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"],\n Close: [\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"],\n ContentCopy: [\"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z\"],\n Delete: [\"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z\"],\n Edit: [\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z\"],\n Error: [\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z\"],\n ErrorOutline: [\"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"],\n ExpandLess: [\"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"],\n ExpandMore: [\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"],\n FilterList: [\"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z\"],\n IndeterminateCheckBox: [\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10H7v-2h10z\"],\n Info: [\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z\"],\n InfoOutlined: [\"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"],\n KeyboardArrowDown: [\"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"],\n KeyboardArrowUp: [\"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z\"],\n Menu: [\"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"],\n MoreHoriz: [\"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"],\n MoreVert: [\"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"],\n NavigateBefore: [\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"],\n NavigateNext: [\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"],\n Person: [\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4\"],\n Refresh: [\"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z\"],\n Remove: [\"M19 13H5v-2h14z\"],\n Save: [\"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z\"],\n Search: [\"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"],\n Settings: [\"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6\"],\n Visibility: [\"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3\"],\n VisibilityOff: [\"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z\"],\n Warning: [\"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z\"],\n WarningAmber: [\"M12 5.99 19.53 19H4.47zM12 2 1 21h22z\",\"M13 16h-2v2h2zm0-6h-2v5h2z\"],\n} as const;\n\nexport type IconName = keyof typeof ICON_PATHS;\n\nexport const ICON_NAMES = Object.keys(ICON_PATHS) as readonly IconName[];\n","import * as React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\nimport Svg, { Path } from 'react-native-svg';\n\nimport { iconFill } from './icon-color';\nimport { iconSize, type IconBaseProps } from './Icon.types';\nimport { ICON_PATHS } from './paths.generated';\nimport { resolveTestId } from '../platform/test-id';\nimport { useUiTheme } from '../provider/use-ui-theme.native';\n\nexport interface IconProps extends IconBaseProps {\n style?: StyleProp<ViewStyle>;\n}\n\n/**\n * The native `Icon`: `react-native-svg` drawing the same generated path the web\n * `SvgIcon` draws, in the same 24-unit box, at the same px size.\n */\nexport function Icon({ name, size, color, label, style, ...rest }: IconProps): React.JSX.Element {\n const theme = useUiTheme();\n const px = iconSize(size);\n const fill = iconFill(theme, color, theme.palette.text.primary);\n const testId = resolveTestId(rest, `icon-${name}`);\n\n return (\n <Svg\n width={px}\n height={px}\n viewBox=\"0 0 24 24\"\n fill={fill}\n style={style}\n testID={testId}\n role=\"img\"\n aria-label={label}\n aria-hidden={!label}\n >\n {ICON_PATHS[name].map((d) => (\n <Path key={d} d={d} fill={fill} />\n ))}\n </Svg>\n );\n}\n\nIcon.displayName = 'Icon';\n","import { COLOR_VALUES, type ColorValue } from '../tokens/vocabulary';\nimport type { UiTheme } from '../tokens/theme';\n\nconst isColorValue = (color: string): color is ColorValue =>\n (COLOR_VALUES as readonly string[]).includes(color);\n\n/**\n * The fill for an icon's `color` prop, on either renderer.\n *\n * A house colour resolves to the palette slot's `main`; `inherit` is the\n * caller's problem (the web passes `currentColor`, native the text colour); any\n * other string is taken as a CSS colour and passed through.\n */\nexport function iconFill(theme: UiTheme, color: string | undefined, inherit: string): string {\n if (color === undefined || color === 'inherit') return inherit;\n if (isColorValue(color)) {\n return color === 'neutral' ? theme.palette.text.secondary : theme.palette[color].main;\n }\n return color;\n}\n"],"mappings":";;;;;;;;;;;AASO,IAAM,aAAwC;AAAA,EACnD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAuBO,IAAM,WAAW,CAAC,SACvB,OAAO,SAAS,WAAW,OAAO,WAAW,QAAQ,IAAI;;;AC/BpD,IAAM,aAAa;AAAA,EACxB,KAAK,CAAC,mCAAmC;AAAA,EACzC,WAAW,CAAC,2DAA2D;AAAA,EACvE,eAAe,CAAC,2DAA2D;AAAA,EAC3E,eAAe,CAAC,gBAAgB;AAAA,EAChC,cAAc,CAAC,0DAA0D;AAAA,EACzE,aAAa,CAAC,yDAAyD;AAAA,EACvE,aAAa,CAAC,qJAAqJ;AAAA,EACnK,QAAQ,CAAC,uKAAuK;AAAA,EAChL,OAAO,CAAC,mDAAmD;AAAA,EAC3D,UAAU,CAAC,8HAA8H;AAAA,EACzI,sBAAsB,CAAC,yFAAyF;AAAA,EAChH,aAAa,CAAC,gHAAgH;AAAA,EAC9H,aAAa,CAAC,+CAA+C;AAAA,EAC7D,cAAc,CAAC,gDAAgD;AAAA,EAC/D,OAAO,CAAC,uGAAuG;AAAA,EAC/G,aAAa,CAAC,2HAA2H;AAAA,EACzI,QAAQ,CAAC,0EAA0E;AAAA,EACnF,MAAM,CAAC,kIAAkI;AAAA,EACzI,OAAO,CAAC,6FAA6F;AAAA,EACrG,cAAc,CAAC,uKAAuK;AAAA,EACtL,YAAY,CAAC,+CAA+C;AAAA,EAC5D,YAAY,CAAC,8CAA8C;AAAA,EAC3D,YAAY,CAAC,0CAA0C;AAAA,EACvD,uBAAuB,CAAC,4FAA4F;AAAA,EACpH,MAAM,CAAC,6FAA6F;AAAA,EACpG,cAAc,CAAC,oJAAoJ;AAAA,EACnK,mBAAmB,CAAC,+CAA+C;AAAA,EACnE,iBAAiB,CAAC,gDAAgD;AAAA,EAClE,MAAM,CAAC,yCAAyC;AAAA,EAChD,WAAW,CAAC,kJAAkJ;AAAA,EAC9J,UAAU,CAAC,gJAAgJ;AAAA,EAC3J,gBAAgB,CAAC,+CAA+C;AAAA,EAChE,cAAc,CAAC,gDAAgD;AAAA,EAC/D,QAAQ,CAAC,6GAA6G;AAAA,EACtH,SAAS,CAAC,iMAAiM;AAAA,EAC3M,QAAQ,CAAC,iBAAiB;AAAA,EAC1B,MAAM,CAAC,wIAAwI;AAAA,EAC/I,QAAQ,CAAC,mOAAmO;AAAA,EAC5O,UAAU,CAAC,irBAAirB;AAAA,EAC5rB,YAAY,CAAC,gNAAgN;AAAA,EAC7N,eAAe,CAAC,0eAA0e;AAAA,EAC1f,SAAS,CAAC,2CAA2C;AAAA,EACrD,cAAc,CAAC,yCAAwC,4BAA4B;AACrF;AAIO,IAAM,aAAa,OAAO,KAAK,UAAU;;;ACtDhD,OAAO,OAAO,YAAY;;;ACC1B,IAAM,eAAe,CAAC,UACnB,aAAmC,SAAS,KAAK;AAS7C,SAAS,SAAS,OAAgB,OAA2B,SAAyB;AAC3F,MAAI,UAAU,UAAa,UAAU,UAAW,QAAO;AACvD,MAAI,aAAa,KAAK,GAAG;AACvB,WAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,YAAY,MAAM,QAAQ,KAAK,EAAE;AAAA,EACnF;AACA,SAAO;AACT;;;ADkBQ;AAnBD,SAAS,KAAK,EAAE,MAAM,MAAM,OAAO,OAAO,OAAO,GAAG,KAAK,GAAiC;AAC/F,QAAM,QAAQ,WAAW;AACzB,QAAM,KAAK,SAAS,IAAI;AACxB,QAAM,OAAO,SAAS,OAAO,OAAO,MAAM,QAAQ,KAAK,OAAO;AAC9D,QAAM,SAAS,cAAc,MAAM,QAAQ,IAAI,EAAE;AAEjD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,SAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR,MAAK;AAAA,MACL,cAAY;AAAA,MACZ,eAAa,CAAC;AAAA,MAEb,qBAAW,IAAI,EAAE,IAAI,CAAC,MACrB,oBAAC,QAAa,GAAM,QAAT,CAAqB,CACjC;AAAA;AAAA,EACH;AAEJ;AAEA,KAAK,cAAc;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveTestId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QZAUOHDQ.js";
|
|
4
4
|
import {
|
|
5
5
|
useUiTheme
|
|
6
6
|
} from "./chunk-YTHR4Y5P.js";
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
resolveBoxLayout,
|
|
134
134
|
Box
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
136
|
+
//# sourceMappingURL=chunk-OGWPPQL4.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/utils/withDefaults.ts
|
|
2
|
+
function withDefaults(props, defaults) {
|
|
3
|
+
const resolved = { ...props };
|
|
4
|
+
for (const [key, value] of Object.entries(defaults)) {
|
|
5
|
+
if (resolved[key] === void 0) {
|
|
6
|
+
Object.assign(resolved, { [key]: value });
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return resolved;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
withDefaults
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chunk-OXHZDFJZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/withDefaults.ts"],"sourcesContent":["/**\n * Fills in the defaults for props the caller left `undefined`.\n *\n * A table plus one loop, rather than a `= default` per destructured prop. Each\n * of those defaults is a branch, and a component with fifteen of them is over\n * the cyclomatic bar before it renders anything.\n *\n * Only `undefined` is replaced, so an explicit `prop={undefined}` still falls\n * back to the default exactly as a destructuring default would, while an\n * explicit `null`, `0`, `''` or `false` is preserved as the caller's choice.\n */\nexport function withDefaults<T extends object>(props: T, defaults: Partial<T>): T {\n const resolved = { ...props };\n for (const [key, value] of Object.entries(defaults)) {\n if (resolved[key as keyof T] === undefined) {\n Object.assign(resolved, { [key]: value });\n }\n }\n return resolved;\n}\n"],"mappings":";AAWO,SAAS,aAA+B,OAAU,UAAyB;AAChF,QAAM,WAAW,EAAE,GAAG,MAAM;AAC5B,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,QAAQ,GAAG;AACnD,QAAI,SAAS,GAAc,MAAM,QAAW;AAC1C,aAAO,OAAO,UAAU,EAAE,CAAC,GAAG,GAAG,MAAM,CAAC;AAAA,IAC1C;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/platform/test-id.ts"],"sourcesContent":["/**\n * One test id, three spellings.\n *\n * The web components take `dataTestId` and forward it as `data-testid`; the\n * existing test stories pass `'data-testid'` straight through as an unknown\n * prop; React Native calls the same thing `testID`, and react-native-web turns\n * THAT back into `data-testid`. A native component that honoured only one of\n * the three would pass its own unit tests and fail the shared stories.\n */\nexport interface TestIdProps {\n testID?: string;\n dataTestId?: string;\n 'data-testid'?: string;\n}\n\n/** The id the caller asked for under any of the three names, else `fallback`. */\nexport function resolveTestId(props: TestIdProps, fallback?: string): string | undefined {\n return props.testID ?? props.dataTestId ?? props['data-testid'] ?? fallback;\n}\n\n/**\n * The id under whichever of the three spellings the caller used, together with\n * the props stripped of all three — so a web component can put `data-testid`\n * where the DOM wants it without React seeing `testID` or `dataTestId` and\n * warning that it does not recognise them.\n */\nexport function splitTestId<T extends TestIdProps>(\n props: T,\n fallback?: string,\n): { testId: string | undefined; rest: Omit<T, keyof TestIdProps> } {\n return { testId: resolveTestId(props, fallback), rest: withoutTestIdProps(props) };\n}\n\n/** `${id}-${suffix}` for a sub-element, or `${fallback}-${suffix}` when unnamed. */\nexport function childTestId(\n props: TestIdProps,\n suffix: string,\n fallback: string,\n): string {\n return `${resolveTestId(props, fallback) ?? fallback}-${suffix}`;\n}\n\n/** `props` without any of the three spellings, for spreading onto a native element. */\nexport function withoutTestIdProps<P extends TestIdProps>(props: P): Omit<P, keyof TestIdProps> {\n const { testID: _testID, dataTestId: _dataTestId, 'data-testid': _dataTestid, ...rest } = props;\n return rest;\n}\n"],"mappings":";AAgBO,SAAS,cAAc,OAAoB,UAAuC;AACvF,SAAO,MAAM,UAAU,MAAM,cAAc,MAAM,aAAa,KAAK;AACrE;AAgBO,SAAS,YACd,OACA,QACA,UACQ;AACR,SAAO,GAAG,cAAc,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM;AAChE;AAGO,SAAS,mBAA0C,OAAsC;AAC9F,QAAM,EAAE,QAAQ,SAAS,YAAY,aAAa,eAAe,aAAa,GAAG,KAAK,IAAI;AAC1F,SAAO;AACT;","names":[]}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
childTestId,
|
|
6
6
|
resolveTestId,
|
|
7
7
|
withoutTestIdProps
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QZAUOHDQ.js";
|
|
9
9
|
import {
|
|
10
10
|
useUiTheme
|
|
11
11
|
} from "./chunk-YTHR4Y5P.js";
|
|
@@ -315,4 +315,4 @@ var styles = StyleSheet.create({
|
|
|
315
315
|
export {
|
|
316
316
|
Button
|
|
317
317
|
};
|
|
318
|
-
//# sourceMappingURL=chunk-
|
|
318
|
+
//# sourceMappingURL=chunk-RJVM5YDE.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/platform/aria.ts
|
|
2
|
+
function webAria(attrs) {
|
|
3
|
+
const { "aria-atomic": atomic, ...rest } = attrs;
|
|
4
|
+
return atomic === void 0 ? rest : { ...rest, accessibilityAtomic: atomic };
|
|
5
|
+
}
|
|
6
|
+
function webDisabled(disabled) {
|
|
7
|
+
return disabled ? { disabled: true } : {};
|
|
8
|
+
}
|
|
9
|
+
function webClick(handler) {
|
|
10
|
+
return handler === void 0 ? {} : { onClick: handler };
|
|
11
|
+
}
|
|
12
|
+
function webRole(role) {
|
|
13
|
+
return { role };
|
|
14
|
+
}
|
|
15
|
+
function webKeyDown(handler) {
|
|
16
|
+
return { onKeyDown: handler };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
webAria,
|
|
21
|
+
webDisabled,
|
|
22
|
+
webClick,
|
|
23
|
+
webRole,
|
|
24
|
+
webKeyDown
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=chunk-T6BJPP3E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/platform/aria.ts"],"sourcesContent":["/**\n * WEB ATTRIBUTES REACT NATIVE DOES NOT DECLARE.\n *\n * React Native's `ViewProps` (0.83) type a dozen `aria-*` props and stop:\n * `aria-level`, `aria-atomic` and `aria-describedby` are not among them.\n * react-native-web forwards all three to the DOM — and `aria-level` also\n * picks the heading tag, so a `role=\"heading\"` at level 3 renders an `<h3>`\n * exactly as the MUI half's `component=\"h3\"` does — while a device ignores\n * them. A native component spreads them through here rather than widening\n * the element's props type or casting at every call site.\n */\nexport interface WebAria {\n 'aria-level'?: 1 | 2 | 3 | 4 | 5 | 6;\n 'aria-atomic'?: 'true' | 'false';\n 'aria-describedby'?: string;\n /**\n * A field's validity and whether it must be filled. React Native's\n * `accessibilityState` has neither — its five flags are disabled, selected,\n * checked, busy and expanded — so these are web-only, and a device reads the\n * error text instead. react-native-web forwards both.\n */\n 'aria-invalid'?: boolean;\n 'aria-required'?: boolean;\n /**\n * What a control pops open. React Native has `aria-expanded` and no\n * `aria-haspopup`, so a `combobox` needs this one from here to say the thing\n * it expands is a listbox — which is what the web's own trigger carries.\n */\n 'aria-haspopup'?: 'listbox' | 'menu' | 'dialog' | 'true';\n}\n\n/**\n * `attrs` as something JSX can spread onto a react-native element without\n * that element's props type having to know them.\n *\n * `aria-atomic` travels under react-native-web's own older name. Its\n * `createDOMProps` (0.20.0) reads `aria-activedescendant` where it means\n * `aria-atomic` — `_ariaAtomic = ariaAtomic != null ? ariaActiveDescendant :\n * accessibilityAtomic` — so the modern spelling never reaches the DOM and\n * the legacy one, still accepted and still emitted as `aria-atomic`, does.\n * Neither name exists on a device, so nothing is lost there.\n */\nexport function webAria(attrs: WebAria): object {\n const { 'aria-atomic': atomic, ...rest } = attrs;\n return atomic === undefined ? rest : { ...rest, accessibilityAtomic: atomic };\n}\n\n/**\n * `disabled` for a react-native-web form control.\n *\n * React Native's `TextInput` has `editable` and no `disabled`, because a\n * device has no disabled state to speak of — an uneditable field simply does\n * not take the keyboard. The DOM does: only a real `disabled` attribute takes\n * an `<input>` out of the tab order, and it is what `toBeDisabled()` reads. So\n * a native field spreads this ALONGSIDE `editable={false}` and\n * `aria-disabled`: react-native-web puts the attribute on the input, and a\n * device ignores a prop it does not know.\n */\nexport function webDisabled(disabled: boolean): object {\n return disabled ? { disabled: true } : {};\n}\n\n/**\n * `onClick` for a react-native-web element whose React Native twin has no\n * click of its own.\n *\n * react-native-web's `TextInput` forwards `onClick` to the DOM input and drops\n * `onPressIn`; a device does the opposite. A field that must answer a press on\n * both renderers spreads this ALONGSIDE `onPressIn`, and exactly one of the two\n * fires on each side — never both.\n */\nexport function webClick<E>(handler: ((event: E) => void) | undefined): object {\n return handler === undefined ? {} : { onClick: handler };\n}\n\n/**\n * A `role` React Native's own union does not carry.\n *\n * `Role` (0.83) stops at `list` and `menu`: `listbox`, the role a dropdown's\n * option list owes a screen reader, is not in it. react-native-web forwards\n * whatever string it is given, and a device ignores a role it does not know —\n * the same trade `webAria` makes for the attributes below it.\n */\nexport function webRole(role: string): object {\n return { role };\n}\n\n/** The half of a DOM keyboard event a component needs, without the DOM lib. */\nexport interface WebKeyEvent {\n key: string;\n}\n\n/**\n * `onKeyDown` for a react-native-web element.\n *\n * React Native has no key events on a `View` — a phone has no keyboard to\n * press Escape on — so nothing here is typed by react-native and nothing here\n * fires on a device. react-native-web forwards it to the DOM, which is what\n * lets a native dropdown still answer Escape and the arrow keys in a browser.\n */\nexport function webKeyDown(handler: (event: WebKeyEvent) => void): object {\n return { onKeyDown: handler };\n}\n"],"mappings":";AA0CO,SAAS,QAAQ,OAAwB;AAC9C,QAAM,EAAE,eAAe,QAAQ,GAAG,KAAK,IAAI;AAC3C,SAAO,WAAW,SAAY,OAAO,EAAE,GAAG,MAAM,qBAAqB,OAAO;AAC9E;AAaO,SAAS,YAAY,UAA2B;AACrD,SAAO,WAAW,EAAE,UAAU,KAAK,IAAI,CAAC;AAC1C;AAWO,SAAS,SAAY,SAAmD;AAC7E,SAAO,YAAY,SAAY,CAAC,IAAI,EAAE,SAAS,QAAQ;AACzD;AAUO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,EAAE,KAAK;AAChB;AAeO,SAAS,WAAW,SAA+C;AACxE,SAAO,EAAE,WAAW,QAAQ;AAC9B;","names":[]}
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SIZE_VALUES
|
|
3
|
+
} from "./chunk-5WLOVHKK.js";
|
|
4
|
+
import {
|
|
5
|
+
alpha,
|
|
6
|
+
darken,
|
|
7
|
+
decomposeColor,
|
|
8
|
+
getContrastRatio,
|
|
9
|
+
getLuminance,
|
|
10
|
+
hslToRgb,
|
|
11
|
+
lighten,
|
|
12
|
+
recomposeColor
|
|
13
|
+
} from "./chunk-P3PL4WBO.js";
|
|
14
|
+
|
|
15
|
+
// src/components/form/Input/Input.metrics.ts
|
|
16
|
+
var muiVariantFor = (variant) => {
|
|
17
|
+
switch (variant) {
|
|
18
|
+
case "underline":
|
|
19
|
+
return "standard";
|
|
20
|
+
case "glass":
|
|
21
|
+
case "gradient":
|
|
22
|
+
return "outlined";
|
|
23
|
+
default:
|
|
24
|
+
return variant;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var INPUT_MUI_SIZE = {
|
|
28
|
+
xs: "small",
|
|
29
|
+
sm: "small",
|
|
30
|
+
md: "medium",
|
|
31
|
+
lg: "medium",
|
|
32
|
+
xl: "medium"
|
|
33
|
+
};
|
|
34
|
+
var INPUT_SIZE_OVERRIDES = {
|
|
35
|
+
xs: { vertical: 6, horizontal: 10 },
|
|
36
|
+
lg: { vertical: 16, horizontal: 14 },
|
|
37
|
+
xl: { vertical: 20, horizontal: 16 }
|
|
38
|
+
};
|
|
39
|
+
var MUI_INPUT_PADDING = {
|
|
40
|
+
outlined: {
|
|
41
|
+
small: { top: 8.5, right: 14, bottom: 8.5, left: 14 },
|
|
42
|
+
medium: { top: 16.5, right: 14, bottom: 16.5, left: 14 }
|
|
43
|
+
},
|
|
44
|
+
filled: {
|
|
45
|
+
small: { top: 21, right: 12, bottom: 4, left: 12 },
|
|
46
|
+
medium: { top: 25, right: 12, bottom: 8, left: 12 }
|
|
47
|
+
},
|
|
48
|
+
standard: {
|
|
49
|
+
small: { top: 1, right: 0, bottom: 5, left: 0 },
|
|
50
|
+
medium: { top: 4, right: 0, bottom: 5, left: 0 }
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
function inputPadding(variant, size) {
|
|
54
|
+
const override = INPUT_SIZE_OVERRIDES[size];
|
|
55
|
+
if (override) {
|
|
56
|
+
return {
|
|
57
|
+
top: override.vertical,
|
|
58
|
+
right: override.horizontal,
|
|
59
|
+
bottom: override.vertical,
|
|
60
|
+
left: override.horizontal
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return MUI_INPUT_PADDING[muiVariantFor(variant)][INPUT_MUI_SIZE[size]];
|
|
64
|
+
}
|
|
65
|
+
var INPUT_FONT_SIZE = 16;
|
|
66
|
+
var INPUT_LINE_HEIGHT = 23;
|
|
67
|
+
var PLACEHOLDER_OPACITY = { light: 0.42, dark: 0.5 };
|
|
68
|
+
function placeholderInk(theme) {
|
|
69
|
+
const opacity = theme.mode === "dark" ? PLACEHOLDER_OPACITY.dark : PLACEHOLDER_OPACITY.light;
|
|
70
|
+
const { type, values } = decomposeColor(theme.palette.text.primary);
|
|
71
|
+
const [first = 0, second = 0, third = 0, own = 1] = values;
|
|
72
|
+
return recomposeColor({
|
|
73
|
+
type: type.startsWith("hsl") ? "hsla" : "rgba",
|
|
74
|
+
values: [first, second, third, own * opacity]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
var INPUT_BORDER = { rest: 1, focused: 2 };
|
|
78
|
+
var UNDERLINE_COLOR = {
|
|
79
|
+
light: "rgba(0, 0, 0, 0.42)",
|
|
80
|
+
dark: "rgba(255, 255, 255, 0.7)"
|
|
81
|
+
};
|
|
82
|
+
var INPUT_LABEL = { scale: 0.75, gap: 4 };
|
|
83
|
+
var HELPER_TEXT = {
|
|
84
|
+
fontSize: 12,
|
|
85
|
+
lineHeight: 1.66,
|
|
86
|
+
marginTop: 3,
|
|
87
|
+
marginTopSmall: 4,
|
|
88
|
+
marginHorizontal: 14
|
|
89
|
+
};
|
|
90
|
+
var ADORNMENT_GAP = 8;
|
|
91
|
+
var INPUT_LOADING = { opacity: 0.7, spinnerSize: 20 };
|
|
92
|
+
var INPUT_GLOW = {
|
|
93
|
+
rest: { blur: 15, alpha: 0.3 },
|
|
94
|
+
focused: { blur: 20, alpha: 0.5 }
|
|
95
|
+
};
|
|
96
|
+
var INPUT_PULSE = {
|
|
97
|
+
height: 56,
|
|
98
|
+
radiusUnits: 0.5,
|
|
99
|
+
opacity: 0.3,
|
|
100
|
+
ms: 2e3,
|
|
101
|
+
spread: 10
|
|
102
|
+
};
|
|
103
|
+
var INPUT_GLASS = {
|
|
104
|
+
background: { rest: 0.1, hover: 0.15, focused: 0.2 },
|
|
105
|
+
blur: 20,
|
|
106
|
+
hoverBorderAlpha: 0.3,
|
|
107
|
+
focusRing: { width: 2, alpha: 0.1 }
|
|
108
|
+
};
|
|
109
|
+
var INPUT_GRADIENT = {
|
|
110
|
+
angleDeg: 135,
|
|
111
|
+
fill: { rest: 0.1, hover: 0.15, focused: 0.2 },
|
|
112
|
+
borderWidth: 2
|
|
113
|
+
};
|
|
114
|
+
var FILLED_WASH = { rest: 0.04, hover: 0.08, focused: 0.12 };
|
|
115
|
+
var sizeProps = (size) => {
|
|
116
|
+
const override = INPUT_SIZE_OVERRIDES[size];
|
|
117
|
+
return {
|
|
118
|
+
size: INPUT_MUI_SIZE[size],
|
|
119
|
+
...override ? { sx: { "& .MuiInputBase-input": { padding: `${override.vertical}px ${override.horizontal}px` } } } : {}
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
var SIZE_MAP = Object.fromEntries(
|
|
123
|
+
SIZE_VALUES.map((size) => [size, sizeProps(size)])
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
// src/components/form/field-pulse.native.tsx
|
|
127
|
+
import * as React from "react";
|
|
128
|
+
import { Animated, Easing, Platform, StyleSheet } from "react-native";
|
|
129
|
+
import { jsx } from "react/jsx-runtime";
|
|
130
|
+
function FieldPulse({
|
|
131
|
+
color,
|
|
132
|
+
radius,
|
|
133
|
+
testID
|
|
134
|
+
}) {
|
|
135
|
+
const progress = React.useRef(new Animated.Value(0)).current;
|
|
136
|
+
React.useEffect(() => {
|
|
137
|
+
const loop = Animated.loop(
|
|
138
|
+
Animated.timing(progress, {
|
|
139
|
+
toValue: 1,
|
|
140
|
+
duration: INPUT_PULSE.ms,
|
|
141
|
+
easing: Easing.out(Easing.ease),
|
|
142
|
+
useNativeDriver: Platform.OS !== "web"
|
|
143
|
+
})
|
|
144
|
+
);
|
|
145
|
+
loop.start();
|
|
146
|
+
return () => loop.stop();
|
|
147
|
+
}, [progress]);
|
|
148
|
+
return /* @__PURE__ */ jsx(
|
|
149
|
+
Animated.View,
|
|
150
|
+
{
|
|
151
|
+
testID,
|
|
152
|
+
"aria-hidden": true,
|
|
153
|
+
style: [
|
|
154
|
+
styles.pulse,
|
|
155
|
+
{
|
|
156
|
+
borderRadius: radius,
|
|
157
|
+
backgroundColor: color,
|
|
158
|
+
opacity: progress.interpolate({
|
|
159
|
+
inputRange: [0, 0.7, 1],
|
|
160
|
+
outputRange: [INPUT_PULSE.opacity, 0, 0]
|
|
161
|
+
}),
|
|
162
|
+
transform: [
|
|
163
|
+
{ translateY: -INPUT_PULSE.height / 2 },
|
|
164
|
+
{
|
|
165
|
+
scale: progress.interpolate({
|
|
166
|
+
inputRange: [0, 0.7, 1],
|
|
167
|
+
outputRange: [1, 1 + INPUT_PULSE.spread / INPUT_PULSE.height, 1]
|
|
168
|
+
})
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
var styles = StyleSheet.create({
|
|
177
|
+
pulse: {
|
|
178
|
+
position: "absolute",
|
|
179
|
+
top: "50%",
|
|
180
|
+
left: 0,
|
|
181
|
+
right: 0,
|
|
182
|
+
height: INPUT_PULSE.height,
|
|
183
|
+
pointerEvents: "none"
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
// src/tokens/field-edge.core.ts
|
|
188
|
+
var MIN_UI_CONTRAST = 3;
|
|
189
|
+
var STEP = 0.05;
|
|
190
|
+
var MAX_STEPS = 20;
|
|
191
|
+
function channels(colour) {
|
|
192
|
+
const decomposed = decomposeColor(colour);
|
|
193
|
+
const rgb = decomposed.type.startsWith("hsl") ? decomposeColor(hslToRgb(colour)) : decomposed;
|
|
194
|
+
const [r, g, b, a] = rgb.values;
|
|
195
|
+
return [r ?? 0, g ?? 0, b ?? 0, a ?? 1];
|
|
196
|
+
}
|
|
197
|
+
function flatten(colour, surface) {
|
|
198
|
+
const [r, g, b, alpha2] = channels(colour);
|
|
199
|
+
if (alpha2 >= 1) return recomposeColor({ type: "rgb", values: [r, g, b] });
|
|
200
|
+
const [baseR, baseG, baseB] = channels(surface);
|
|
201
|
+
const blend = (fg, bg) => Math.round(alpha2 * fg + (1 - alpha2) * bg);
|
|
202
|
+
return recomposeColor({
|
|
203
|
+
type: "rgb",
|
|
204
|
+
values: [blend(r, baseR), blend(g, baseG), blend(b, baseB)]
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function resolveFieldEdge(divider, surface) {
|
|
208
|
+
const ground = flatten(surface, "#FFFFFF");
|
|
209
|
+
const seed = flatten(divider, ground);
|
|
210
|
+
if (getContrastRatio(seed, ground) >= MIN_UI_CONTRAST) return seed;
|
|
211
|
+
const away = getLuminance(ground) > 0.5 ? darken : lighten;
|
|
212
|
+
for (let step = 1; step <= MAX_STEPS; step += 1) {
|
|
213
|
+
const candidate = away(seed, step * STEP);
|
|
214
|
+
if (getContrastRatio(candidate, ground) >= MIN_UI_CONTRAST) return candidate;
|
|
215
|
+
}
|
|
216
|
+
return getLuminance(ground) > 0.5 ? "#000000" : "#FFFFFF";
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// src/components/form/Input/Input.look.native.ts
|
|
220
|
+
var BORDER_SIDES = {
|
|
221
|
+
outlined: "all",
|
|
222
|
+
glass: "all",
|
|
223
|
+
gradient: "all",
|
|
224
|
+
filled: "bottom",
|
|
225
|
+
underline: "bottom"
|
|
226
|
+
};
|
|
227
|
+
var BORDER_IS_FREE = {
|
|
228
|
+
outlined: true,
|
|
229
|
+
filled: true,
|
|
230
|
+
underline: true,
|
|
231
|
+
glass: false,
|
|
232
|
+
gradient: false
|
|
233
|
+
};
|
|
234
|
+
function borderWidthFor(variant, focused) {
|
|
235
|
+
if (variant === "gradient") return INPUT_GRADIENT.borderWidth;
|
|
236
|
+
if (variant === "glass") return INPUT_BORDER.rest;
|
|
237
|
+
return focused ? INPUT_BORDER.focused : INPUT_BORDER.rest;
|
|
238
|
+
}
|
|
239
|
+
function horizontalBorderInset(variant, focused) {
|
|
240
|
+
if (BORDER_SIDES[variant] !== "all" || !BORDER_IS_FREE[variant]) return 0;
|
|
241
|
+
return borderWidthFor(variant, focused);
|
|
242
|
+
}
|
|
243
|
+
function borderColorFor(theme, variant, state) {
|
|
244
|
+
if (state.disabled) return theme.palette.action.disabled;
|
|
245
|
+
if (state.error) return theme.palette.danger.main;
|
|
246
|
+
if (variant === "gradient") {
|
|
247
|
+
return state.focused ? theme.palette.primary.dark : theme.palette.primary.main;
|
|
248
|
+
}
|
|
249
|
+
if (state.focused) return theme.palette.primary.main;
|
|
250
|
+
if (variant === "filled") {
|
|
251
|
+
return theme.mode === "dark" ? UNDERLINE_COLOR.dark : UNDERLINE_COLOR.light;
|
|
252
|
+
}
|
|
253
|
+
return resolveFieldEdge(theme.palette.divider, theme.palette.background.paper);
|
|
254
|
+
}
|
|
255
|
+
function backgroundFor(theme, variant, state) {
|
|
256
|
+
switch (variant) {
|
|
257
|
+
case "filled":
|
|
258
|
+
return alpha(theme.palette.action.hover, state.focused ? FILLED_WASH.focused : FILLED_WASH.rest);
|
|
259
|
+
case "glass":
|
|
260
|
+
return alpha(
|
|
261
|
+
theme.palette.background.paper,
|
|
262
|
+
state.focused ? INPUT_GLASS.background.focused : INPUT_GLASS.background.rest
|
|
263
|
+
);
|
|
264
|
+
case "gradient":
|
|
265
|
+
return alpha(
|
|
266
|
+
theme.palette.primary.main,
|
|
267
|
+
state.focused ? INPUT_GRADIENT.fill.focused : INPUT_GRADIENT.fill.rest
|
|
268
|
+
);
|
|
269
|
+
default:
|
|
270
|
+
return void 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function radiusFor(theme, variant) {
|
|
274
|
+
if (variant === "underline") return {};
|
|
275
|
+
if (variant === "filled") {
|
|
276
|
+
return { borderTopLeftRadius: theme.radius.md, borderTopRightRadius: theme.radius.md };
|
|
277
|
+
}
|
|
278
|
+
return { borderRadius: theme.radius.md };
|
|
279
|
+
}
|
|
280
|
+
function borderStyle(variant, width, color, state) {
|
|
281
|
+
const style = state.disabled && BORDER_SIDES[variant] === "bottom" ? "dotted" : "solid";
|
|
282
|
+
const sides = BORDER_SIDES[variant] === "bottom" ? { borderBottomWidth: width } : { borderWidth: width };
|
|
283
|
+
return { ...sides, borderColor: color, borderStyle: style };
|
|
284
|
+
}
|
|
285
|
+
function fieldLook(theme, variant, size, state) {
|
|
286
|
+
const padding = inputPadding(variant, size);
|
|
287
|
+
const width = borderWidthFor(variant, state.focused);
|
|
288
|
+
const inset = BORDER_IS_FREE[variant] ? width : 0;
|
|
289
|
+
const sides = BORDER_SIDES[variant];
|
|
290
|
+
const horizontal = sides === "all" ? inset : 0;
|
|
291
|
+
return {
|
|
292
|
+
box: {
|
|
293
|
+
flexDirection: "row",
|
|
294
|
+
alignItems: "center",
|
|
295
|
+
paddingLeft: padding.left - horizontal,
|
|
296
|
+
paddingRight: padding.right - horizontal,
|
|
297
|
+
backgroundColor: backgroundFor(theme, variant, state),
|
|
298
|
+
...radiusFor(theme, variant),
|
|
299
|
+
...borderStyle(variant, width, borderColorFor(theme, variant, state), state)
|
|
300
|
+
},
|
|
301
|
+
value: {
|
|
302
|
+
flex: 1,
|
|
303
|
+
minWidth: 0,
|
|
304
|
+
fontFamily: theme.typography.fontFamily,
|
|
305
|
+
fontSize: INPUT_FONT_SIZE,
|
|
306
|
+
lineHeight: INPUT_LINE_HEIGHT,
|
|
307
|
+
color: state.disabled ? theme.palette.text.disabled : theme.palette.text.primary,
|
|
308
|
+
paddingTop: padding.top - (sides === "all" ? inset : 0),
|
|
309
|
+
paddingBottom: padding.bottom - inset,
|
|
310
|
+
paddingHorizontal: 0
|
|
311
|
+
},
|
|
312
|
+
placeholder: placeholderInk(theme)
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function labelStyle(theme, variant, size, state) {
|
|
316
|
+
const ink = state.disabled ? theme.palette.text.disabled : state.error ? theme.palette.danger.main : state.focused ? theme.palette.primary.main : theme.palette.text.secondary;
|
|
317
|
+
return {
|
|
318
|
+
color: ink,
|
|
319
|
+
fontFamily: theme.typography.fontFamily,
|
|
320
|
+
fontSize: INPUT_FONT_SIZE * INPUT_LABEL.scale,
|
|
321
|
+
marginBottom: INPUT_LABEL.gap,
|
|
322
|
+
// Aligned with the value it names: the web's floating label and the input
|
|
323
|
+
// share one left inset (14px outlined, 12px filled, 0 standard).
|
|
324
|
+
marginLeft: inputPadding(variant, size).left
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
function helperStyle(theme, variant, size, state) {
|
|
328
|
+
return {
|
|
329
|
+
color: state.disabled ? theme.palette.text.disabled : state.error ? theme.palette.danger.main : theme.palette.text.secondary,
|
|
330
|
+
fontFamily: theme.typography.fontFamily,
|
|
331
|
+
fontSize: HELPER_TEXT.fontSize,
|
|
332
|
+
lineHeight: HELPER_TEXT.fontSize * HELPER_TEXT.lineHeight,
|
|
333
|
+
marginTop: INPUT_MUI_SIZE[size] === "small" ? HELPER_TEXT.marginTopSmall : HELPER_TEXT.marginTop,
|
|
334
|
+
marginHorizontal: variant === "underline" ? 0 : HELPER_TEXT.marginHorizontal
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export {
|
|
339
|
+
INPUT_FONT_SIZE,
|
|
340
|
+
INPUT_LINE_HEIGHT,
|
|
341
|
+
ADORNMENT_GAP,
|
|
342
|
+
INPUT_LOADING,
|
|
343
|
+
INPUT_GLOW,
|
|
344
|
+
INPUT_PULSE,
|
|
345
|
+
FieldPulse,
|
|
346
|
+
horizontalBorderInset,
|
|
347
|
+
fieldLook,
|
|
348
|
+
labelStyle,
|
|
349
|
+
helperStyle
|
|
350
|
+
};
|
|
351
|
+
//# sourceMappingURL=chunk-WKMDCNIN.js.map
|