@procore/core-react 12.24.0 → 12.25.1
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/CHANGELOG.md +23 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.d.ts +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +7 -7
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js.map +1 -1
- package/dist/Form/stories/util.js +3 -0
- package/dist/Form/stories/util.js.map +1 -1
- package/dist/GhostPlaceholder/GhostPlaceholder.js +9 -0
- package/dist/GhostPlaceholder/GhostPlaceholder.js.map +1 -1
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +1 -0
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/Modal/storyHelpers.d.ts +1 -0
- package/dist/Modal/storyHelpers.js +160 -85
- package/dist/Modal/storyHelpers.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.js +29 -4
- package/dist/NextTile/NextTile.js.map +1 -1
- package/dist/NextTile/NextTile.types.d.ts +15 -0
- package/dist/NextTile/NextTile.types.js.map +1 -1
- package/dist/NextTile/index.d.ts +2 -0
- package/dist/NextTile/index.js +2 -0
- package/dist/NextTile/index.js.map +1 -0
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.js +5 -2
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +1 -1
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Pagination/PaginationSelect.js +1 -0
- package/dist/Pagination/PaginationSelect.js.map +1 -1
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.d.ts +5 -0
- package/dist/SegmentedController/SegmentedController.js +49 -30
- package/dist/SegmentedController/SegmentedController.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/SettingsPage/SettingsPage.d.ts +1 -1
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.components.d.ts +3 -1
- package/dist/SuperSelect/SuperSelect.components.js +5 -1
- package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/SuperSelect/SuperSelect.types.d.ts +2 -0
- package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
- package/dist/SuperSelect/useSuperSelect.js +28 -1
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.d.ts +2 -2
- package/dist/Table/Table.styles.js +28 -28
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +15 -15
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +4 -4
- package/dist/TextArea/TextArea.styles.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/TextEditorOutput/index.d.ts +1 -0
- package/dist/TextEditorOutput/index.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/index.d.ts +1 -1
- package/dist/Thumbnail/index.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +7 -7
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.d.ts +1 -0
- package/dist/Tile/Tile.styles.js +19 -12
- package/dist/Tile/Tile.styles.js.map +1 -1
- package/dist/Tile/index.d.ts +1 -1
- package/dist/Tile/index.js.map +1 -1
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +4 -4
- package/dist/Token/Token.styles.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +13 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +741 -741
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/NextTile/NextTile.types.json +363 -0
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
- package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +60 -60
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +101 -101
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +8 -263
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_utils/propsTypedoc.d.ts +1 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/_utils/types.d.ts +35 -0
- package/dist/_utils/types.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storyHelpers.js","names":["React","Box","Dropdown","DropdownFlyout","MultiSelect","PillSelect","Search","Select","SuperSelect","TieredSelect","Typeahead","Field","_ref","label","children","props","_objectWithoutProperties","_excluded","createElement","idLabelOptions","id","EscapefulFieldSet","_React$useState","useState","_React$useState2","_slicedToArray","typeaheadV","setTyeahead","Fragment","value","onChange","margin","display","map","_ref2","Option","onSearch","console","log","_ref3","options","_ref4","Item","item","_ref5","restoreFocusOnHide","_ref6","_ref7","style","groupId","nextGroupId","disabled","selectableTiers","emptyMessage"],"sources":["../../src/Modal/storyHelpers.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../Box/Box'\nimport { Dropdown } from '../Dropdown/Dropdown'\nimport { DropdownFlyout } from '../DropdownFlyout/DropdownFlyout'\nimport { MultiSelect } from '../MultiSelect/MultiSelect'\nimport { PillSelect } from '../PillSelect/PillSelect'\n\nimport { Search } from '../Search/Search'\nimport { Select } from '../Select/Select'\nimport { SuperSelect } from '../SuperSelect/SuperSelect'\nimport { TieredSelect } from '../TieredSelect/TieredSelect'\nimport { Typeahead } from '../Typeahead'\n\nfunction Field({ label, children, ...props }: any) {\n return (\n <div>\n <div>\n <b>\n <label>{label}</label>\n </b>\n </div>\n {children}\n </div>\n )\n}\n\nconst idLabelOptions = [\n { id: 1, label: 'One' },\n { id: 2, label: 'Two' },\n { id: 3, label: 'Three' },\n]\n\nexport function EscapefulFieldSet() {\n const [typeaheadV, setTyeahead] = React.useState('')\n return (\n <>\n <b>Things with Esc key:</b>\n <Field label=\"Search\">\n <Search />\n </Field>\n <Field label=\"Typeahead\">\n <Typeahead value={typeaheadV} onChange={setTyeahead} />\n </Field>\n <Field label=\"Select\">\n <Box margin=\"none xs none none\" display=\"inline-block\">\n Default\n </Box>\n <Select>\n {idLabelOptions.map(({ id, label }) => (\n <Select.Option value={id}>{label}</Select.Option>\n ))}\n </Select>\n <Box margin=\"none xs none md\" display=\"inline-block\">\n Search\n </Box>\n <Select onSearch={console.log}>\n {idLabelOptions.map(({ id, label }) => (\n <Select.Option value={id}>{label}</Select.Option>\n ))}{' '}\n </Select>\n </Field>\n <Field label=\"PillSelect\">\n <Box margin=\"none xs none none\" display=\"inline-block\">\n Default\n </Box>\n <PillSelect\n options={idLabelOptions}\n onChange={console.log}\n value={null}\n />\n <Box margin=\"none xs none md\" display=\"inline-block\">\n Search\n </Box>\n <PillSelect\n options={idLabelOptions}\n onChange={console.log}\n onSearch={console.log}\n value={null}\n />\n </Field>\n <Field label=\"MultiSelect\">\n <MultiSelect options={idLabelOptions} />\n </Field>\n <Field label=\"Dropdown\">\n <Box margin=\"none xs none none\" display=\"inline-block\">\n Default\n </Box>\n <Dropdown>\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item item={id}>{label}</Dropdown.Item>\n ))}\n </Dropdown>\n <Box margin=\"none xs none md\" display=\"inline-block\">\n Search\n </Box>\n <Dropdown onSearch={console.log}>\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item item={id}>{label}</Dropdown.Item>\n ))}\n </Dropdown>\n <Box margin=\"none xs none md\" display=\"inline-block\">\n Restore\n </Box>\n <Dropdown restoreFocusOnHide>\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item item={id}>{label}</Dropdown.Item>\n ))}\n </Dropdown>\n <Box margin=\"none xs none md\" display=\"inline-block\">\n Restore w/ search\n </Box>\n <Dropdown onSearch={console.log} restoreFocusOnHide>\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item item={id}>{label}</Dropdown.Item>\n ))}\n </Dropdown>\n <Box margin=\"none xs none md\" display=\"inline-block\">\n DropdownFlyout\n </Box>\n\n <DropdownFlyout\n style={{ display: 'inline-block' }}\n options={[\n { value: 1, label: 'wow' },\n {\n value: 'Animals',\n label: 'Long complicated label that takes space',\n children: [\n {\n value: 'Amphibians',\n label: 'Amphibians',\n children: [\n { value: 1, label: 'Frogs' },\n { value: 2, label: 'Salamanders' },\n ],\n },\n {\n value: 'Birds',\n label: 'Long complicated label that takes space',\n children: [\n { value: 3, label: 'Chickens' },\n { value: 4, label: 'Falcons' },\n { value: 5, label: 'Owls' },\n { value: 6, label: 'Parrots' },\n ],\n },\n ],\n },\n ]}\n />\n </Field>\n <Field label=\"Tiered\">\n <TieredSelect\n options={[\n {\n id: 1,\n groupId: null,\n nextGroupId: 10,\n label: 'Apple Farm',\n disabled: true,\n },\n {\n id: 17,\n groupId: 10,\n nextGroupId: 100,\n label: 'Granny Smith',\n },\n {\n id: 2,\n groupId: null,\n nextGroupId: 20,\n label: \"Tim's Trees\",\n },\n ]}\n />\n </Field>\n <Field label=\"Tiered leaf only\">\n <TieredSelect\n selectableTiers={false}\n options={[\n {\n id: 1,\n groupId: null,\n nextGroupId: 10,\n label: 'Apple Farm',\n disabled: true,\n },\n {\n id: 17,\n groupId: 10,\n nextGroupId: 100,\n label: 'Granny Smith',\n },\n {\n id: 2,\n groupId: null,\n nextGroupId: 20,\n label: \"Tim's Trees\",\n },\n ]}\n />\n </Field>\n <Field label=\"SuperSelect\">\n <SuperSelect\n onChange={console.log}\n options={[\n { value: '1', label: 'some label one' },\n { value: '2', label: 'two 2' },\n { value: '3', label: 'three three three' },\n ]}\n emptyMessage=\"E m p t y\"\n />\n </Field>\n </>\n )\n}\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,UAAU,QAAQ,0BAA0B;AAErD,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,YAAY,QAAQ,8BAA8B;AAC3D,SAASC,SAAS,QAAQ,cAAc;AAExC,SAASC,KAAKA,CAAAC,IAAA,EAAqC;EAAA,IAAlCC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAKC,KAAK,GAAAC,wBAAA,CAAA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AK;IAACE,KAAK,EAAC;EAAkB,gBAC7Bb,KAAA,CAAAkB,aAAA,CAACT,YAAY;IACX2C,eAAe,EAAE,KAAM;IACvBZ,OAAO,EAAE,CACP;MACEpB,EAAE,EAAE,CAAC;MACL6B,OAAO,EAAE,IAAI;MACbC,WAAW,EAAE,EAAE;MACfrC,KAAK,EAAE,YAAY;MACnBsC,QAAQ,EAAE;IACZ,CAAC,EACD;MACE/B,EAAE,EAAE,EAAE;MACN6B,OAAO,EAAE,EAAE;MACXC,WAAW,EAAE,GAAG;MAChBrC,KAAK,EAAE;IACT,CAAC,EACD;MACEO,EAAE,EAAE,CAAC;MACL6B,OAAO,EAAE,IAAI;MACbC,WAAW,EAAE,EAAE;MACfrC,KAAK,EAAE;IACT,CAAC;EACD,CACH,CACI,CAAC,eACRb,KAAA,CAAAkB,aAAA,CAACP,KAAK;IAACE,KAAK,EAAC;EAAa,gBACxBb,KAAA,CAAAkB,aAAA,CAACV,WAAW;IACVsB,QAAQ,EAAEO,OAAO,CAACC,GAAI;IACtBE,OAAO,EAAE,CACP;MAAEX,KAAK,EAAE,GAAG;MAAEhB,KAAK,EAAE;IAAiB,CAAC,EACvC;MAAEgB,KAAK,EAAE,GAAG;MAAEhB,KAAK,EAAE;IAAQ,CAAC,EAC9B;MAAEgB,KAAK,EAAE,GAAG;MAAEhB,KAAK,EAAE;IAAoB,CAAC,CAC1C;IACFwC,YAAY,EAAC;EAAW,CACzB,CACI,CACP,CAAC;AAEP"}
|
|
1
|
+
{"version":3,"file":"storyHelpers.js","names":["React","Box","Dropdown","DropdownFlyout","MultiSelect","PillSelect","useId","Button","Content","Actions","Field","Flex","Form","Link","Popover","Search","Select","H3","Label","SuperSelect","TieredSelect","Tooltip","Typeahead","idLabelOptions","id","label","EscapefulFieldSet","_React$useState","useState","_React$useState2","_slicedToArray","typeaheadV","setTyeahead","baseId","createElement","concat","value","onChange","gap","map","_ref","Option","key","onSearch","console","log","_ref2","options","wrap","_ref3","Item","item","_ref4","restoreFocusOnHide","_ref5","_ref6","style","display","children","groupId","nextGroupId","disabled","selectableTiers","emptyMessage","PopupSet","_ref7","_ref7$alignLeft","alignLeft","pop1","pop2","justifyContent","undefined","alignItems","overlay","role","trigger","variant","onClick","alert","bind","href","padding","UserInteractionSet","enableConfirmNavigation","initialValues","rtf","Row","DateSelect","colWidth","description","name","tooltip"],"sources":["../../src/Modal/storyHelpers.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../Box/Box'\nimport { Dropdown } from '../Dropdown/Dropdown'\nimport { DropdownFlyout } from '../DropdownFlyout/DropdownFlyout'\nimport { MultiSelect } from '../MultiSelect/MultiSelect'\nimport { PillSelect } from '../PillSelect/PillSelect'\n\nimport { useId } from '@react-aria/utils'\nimport { Button } from '../Button'\nimport { Content } from '../Content'\nimport { Actions } from '../Content/Content'\nimport { Field } from '../Field'\nimport { Flex } from '../Flex'\nimport { Form } from '../Form'\nimport { Link } from '../Link'\nimport { Popover } from '../Popover'\nimport { Search } from '../Search/Search'\nimport { Select } from '../Select/Select'\nimport { H3, Label } from '../Semantic'\nimport { SuperSelect } from '../SuperSelect/SuperSelect'\nimport { TieredSelect } from '../TieredSelect/TieredSelect'\nimport { Tooltip } from '../Tooltip'\nimport { Typeahead } from '../Typeahead'\n\nconst idLabelOptions = [\n { id: 1, label: 'One' },\n { id: 2, label: 'Two' },\n { id: 3, label: 'Three' },\n]\n\nexport function EscapefulFieldSet() {\n const [typeaheadV, setTyeahead] = React.useState('')\n const baseId = useId()\n\n return (\n <Content>\n <H3>Things with Esc key:</H3>\n <Field>\n <Label id={`${baseId}-search`}>Search</Label>\n <Search aria-labelledby={`${baseId}-search`} />\n </Field>\n <Field>\n <Label id={`${baseId}-typeahead`}>Typeahead</Label>\n <Typeahead\n value={typeaheadV}\n onChange={setTyeahead}\n aria-labelledby={`${baseId}-typeahead`}\n />\n </Field>\n <Field>\n <Label id={`${baseId}-select`}>Select</Label>\n <Flex gap=\"sm\">\n <Box id=\"s-default\">Default</Box>\n <Select aria-labelledby={`${baseId}-select s-default`}>\n {idLabelOptions.map(({ id, label }) => (\n <Select.Option key={id} value={id}>\n {label}\n </Select.Option>\n ))}\n </Select>\n <Box id=\"s-search\">Search</Box>\n <Select\n onSearch={console.log}\n aria-labelledby={`${baseId}-select s-search`}\n >\n {idLabelOptions.map(({ id, label }) => (\n <Select.Option key={id} value={id}>\n {label}\n </Select.Option>\n ))}{' '}\n </Select>\n </Flex>\n </Field>\n <Field>\n <Label id={`${baseId}-pillselect`}>PillSelect</Label>\n <Flex gap=\"sm\">\n <Box id=\"p-default\">Default</Box>\n <PillSelect\n options={idLabelOptions}\n onChange={console.log}\n value={null}\n aria-labelledby={`${baseId}-pillselect p-default`}\n />\n <Box id=\"p-search\">Search</Box>\n <PillSelect\n options={idLabelOptions}\n onChange={console.log}\n onSearch={console.log}\n value={null}\n aria-labelledby={`${baseId}-pillselect p-search`}\n />\n </Flex>\n </Field>\n <Field>\n <Label id={`${baseId}-multiselect`}>MultiSelect</Label>\n <MultiSelect\n options={idLabelOptions}\n aria-labelledby={`${baseId}-multiselect`}\n />\n </Field>\n <Field>\n <Label id={`${baseId}-dropdown`}>Dropdown</Label>\n <Flex gap=\"sm\" wrap=\"wrap\">\n <Box>Default</Box>\n <Dropdown aria-labelledby={`${baseId}-dropdown`}>\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item key={id} item={id}>\n {label}\n </Dropdown.Item>\n ))}\n </Dropdown>\n <Box>Search</Box>\n <Dropdown\n onSearch={console.log}\n aria-labelledby={`${baseId}-dropdown`}\n >\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item key={id} item={id}>\n {label}\n </Dropdown.Item>\n ))}\n </Dropdown>\n <Box>Restore</Box>\n <Dropdown restoreFocusOnHide aria-labelledby={`${baseId}-dropdown`}>\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item key={id} item={id}>\n {label}\n </Dropdown.Item>\n ))}\n </Dropdown>\n <Box>Restore w/ search</Box>\n <Dropdown\n onSearch={console.log}\n restoreFocusOnHide\n aria-labelledby={`${baseId}-dropdown`}\n >\n {idLabelOptions.map(({ id, label }) => (\n <Dropdown.Item key={id} item={id}>\n {label}\n </Dropdown.Item>\n ))}\n </Dropdown>\n <Box>DropdownFlyout</Box>\n <DropdownFlyout\n style={{ display: 'inline-block' }}\n options={[\n { value: 1, label: 'wow' },\n {\n value: 'Animals',\n label: 'Long complicated label that takes space',\n children: [\n {\n value: 'Amphibians',\n label: 'Amphibians',\n children: [\n { value: 1, label: 'Frogs' },\n { value: 2, label: 'Salamanders' },\n ],\n },\n {\n value: 'Birds',\n label: 'Long complicated label that takes space',\n children: [\n { value: 3, label: 'Chickens' },\n { value: 4, label: 'Falcons' },\n { value: 5, label: 'Owls' },\n { value: 6, label: 'Parrots' },\n ],\n },\n ],\n },\n ]}\n aria-labelledby={`${baseId}-dropdown`}\n />\n </Flex>\n </Field>\n <Field>\n <Label id={`${baseId}-tiered`}>Tiered</Label>\n <TieredSelect\n options={[\n {\n id: 1,\n groupId: null,\n nextGroupId: 10,\n label: 'Apple Farm',\n disabled: true,\n },\n {\n id: 17,\n groupId: 10,\n nextGroupId: 100,\n label: 'Granny Smith',\n },\n {\n id: 2,\n groupId: null,\n nextGroupId: 20,\n label: \"Tim's Trees\",\n },\n ]}\n aria-labelledby={`${baseId}-tiered`}\n />\n </Field>\n <Field>\n <Label id={`${baseId}-tiered-leaf`}>Tiered leaf only</Label>\n <TieredSelect\n selectableTiers={false}\n options={[\n {\n id: 1,\n groupId: null,\n nextGroupId: 10,\n label: 'Apple Farm',\n disabled: true,\n },\n {\n id: 17,\n groupId: 10,\n nextGroupId: 100,\n label: 'Granny Smith',\n },\n {\n id: 2,\n groupId: null,\n nextGroupId: 20,\n label: \"Tim's Trees\",\n },\n ]}\n aria-labelledby={`${baseId}-tiered-leaf`}\n />\n </Field>\n <Field>\n <Label id={`${baseId}-superselect`}>SuperSelect</Label>\n <SuperSelect\n onChange={console.log}\n options={[\n { value: '1', label: 'some label one' },\n { value: '2', label: 'two 2' },\n { value: '3', label: 'three three three' },\n ]}\n emptyMessage=\"E m p t y\"\n aria-labelledby={`${baseId}-superselect`}\n />\n </Field>\n </Content>\n )\n}\n\nfunction PopupSet({ alignLeft = true }) {\n const baseId = useId()\n const id = {\n pop1: baseId + 'pop1',\n pop2: baseId + 'pop2',\n }\n return (\n <Actions\n style={{\n // TODO new prop. sometimes left actions could make sense\n justifyContent: alignLeft ? 'flex-start' : undefined,\n // why not, different sizes (Switch) just align them\n alignItems: 'center',\n }}\n >\n <Tooltip\n overlay=\"Tooltip popup here, checks out.\"\n role=\"tooltip\"\n trigger={['focus', 'hover']}\n >\n <Button variant=\"secondary\" onClick={alert.bind(null, 'CORE')}>\n Tooltip!\n </Button>\n </Tooltip>\n <Tooltip\n overlay=\"Long name never gonna give you up.mp4\"\n role=\"tooltip\"\n trigger={['focus', 'hover']}\n >\n <Link href=\"#\">Long name....up.mp4</Link>\n </Tooltip>\n <Popover\n aria-labelledby={id.pop1}\n restoreFocusOnHide\n role=\"dialog\"\n overlay={\n <Popover.Content>\n <Box padding=\"sm\">\n Popover popup here, check out this{' '}\n <Link href=\"https://app.procore.com\">app link</Link> and{' '}\n <Link href=\"https://login.procore.com\">login link</Link>.\n </Box>\n </Popover.Content>\n }\n trigger={['click']}\n >\n <Button aria-haspopup=\"dialog\" id={id.pop1} variant=\"secondary\">\n Click to Popup!\n </Button>\n </Popover>\n {/* <Popover\n aria-labelledby={id.pop2}\n restoreFocusOnHide\n role=\"dialog\"\n overlay={\n <Popover.Content>\n <Box padding=\"sm\">\n Popover popup here, check out this{' '}\n <Link href=\"app.procore.com\">app link</Link> and{' '}\n <Link href=\"login.procore.com\">login link</Link>.\n </Box>\n </Popover.Content>\n }\n trigger={['hover', 'focus']}\n >\n <Link aria-haspopup=\"dialog\" id={id.pop2} href=\"#\">\n Hover Popup\n </Link>\n </Popover> */}\n </Actions>\n )\n}\n\nexport function UserInteractionSet() {\n return (\n <Content>\n <PopupSet />\n <Form\n enableConfirmNavigation\n initialValues={{\n rtf: '<b>Clicking the TinyMCE option to add a link should open a modal, and that modal should be able to receive focus.</b>',\n }}\n >\n <Form.Row>\n <Form.DateSelect\n colWidth={12}\n description=\"Form Field with misc interactions\"\n label=\"Form Component Field\"\n name=\"f_1\"\n tooltip=\"Tooltip popup here, checks out.\"\n />\n </Form.Row>\n {/* <Form.Row>\n <Form.RichText\n colWidth={12}\n description=\"Has links tinymce modal. This destroys contained focus :(\"\n label=\"Form Rich Text\"\n name=\"rtf\"\n plugins={['link', 'image']}\n />\n </Form.Row> */}\n </Form>\n <EscapefulFieldSet />\n </Content>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,UAAU,QAAQ,0BAA0B;AAErD,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,EAAE,EAAEC,KAAK,QAAQ,aAAa;AACvC,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,YAAY,QAAQ,8BAA8B;AAC3D,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,SAAS,QAAQ,cAAc;AAExC,IAAMC,cAAc,GAAG,CACrB;EAAEC,EAAE,EAAE,CAAC;EAAEC,KAAK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C4C,IAAK;IAACQ,OAAO,EAAC;EAAW,GAAC,iBAExD,CACD,CAoBF,CAAC;AAEd;AAEA,OAAO,SAASM,kBAAkBA,CAAA,EAAG;EACnC,oBACElF,KAAA,CAAAkC,aAAA,CAAC1B,OAAO,qBACNR,KAAA,CAAAkC,aAAA,CAAC8B,QAAQ,MAAE,CAAC,eACZhE,KAAA,CAAAkC,aAAA,CAACtB,IAAI;IACHuE,uBAAuB;IACvBC,aAAa,EAAE;MACbC,GAAG,EAAE;IACP;EAAE,gBAEFrF,KAAA,CAAAkC,aAAA,CAACtB,IAAI,CAAC0E,GAAG,qBACPtF,KAAA,CAAAkC,aAAA,CAACtB,IAAI,CAAC2E,UAAU;IACdC,QAAQ,EAAE,EAAG;IACbC,WAAW,EAAC,mCAAmC;IAC/ChE,KAAK,EAAC,sBAAsB;IAC5BiE,IAAI,EAAC,KAAK;IACVC,OAAO,EAAC;EAAiC,CAC1C,CACO,CAUN,CAAC,eACP3F,KAAA,CAAAkC,aAAA,CAACR,iBAAiB,MAAE,CACb,CAAC;AAEd"}
|
|
@@ -6,26 +6,26 @@ import { getFocus } from '../_styles/mixins';
|
|
|
6
6
|
import { spacing } from '../_styles/spacing';
|
|
7
7
|
export var StyledMultiSelectValues = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledMultiSelectValues",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_25_1__sc-s9ym9q-0"
|
|
10
10
|
})(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-left:", "px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.md, spacing.xs);
|
|
11
11
|
export var StyledMultiSelectToken = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledMultiSelectToken",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_25_1__sc-s9ym9q-1"
|
|
14
14
|
})(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
|
|
15
15
|
export var StyledMultiSelectSearchInput = /*#__PURE__*/styled.input.withConfig({
|
|
16
16
|
displayName: "StyledMultiSelectSearchInput",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_25_1__sc-s9ym9q-2"
|
|
18
18
|
})(["background-color:transparent;border-width:0;font-family:inherit;padding:0;height:24px;width:100%;", " ", " &::-ms-clear{display:none;}&:focus{box-shadow:none;outline:none;}&::placeholder{color:", ";}"], getTypographyIntent('body'), function (_ref) {
|
|
19
19
|
var $isNavigatingTokens = _ref.$isNavigatingTokens;
|
|
20
20
|
return $isNavigatingTokens && css(["color:transparent;"]);
|
|
21
21
|
}, colors.gray45);
|
|
22
22
|
export var StyledMultiSelectSearch = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledMultiSelectSearch",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_25_1__sc-s9ym9q-3"
|
|
25
25
|
})(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
|
|
26
26
|
export var StyledMultiSelectSearchIcon = /*#__PURE__*/styled.div.withConfig({
|
|
27
27
|
displayName: "StyledMultiSelectSearchIcon",
|
|
28
|
-
componentId: "core-
|
|
28
|
+
componentId: "core-12_25_1__sc-s9ym9q-4"
|
|
29
29
|
})(["align-items:center;align-self:flex-start;display:flex;height:34px;justify-content:flex-end;margin-left:", "px;margin-right:", "px;min-width:40px;width:40px;"], spacing.xs, spacing.md);
|
|
30
30
|
export var StyledMultiSelectClearIcon = StyledSelectClearIcon;
|
|
31
31
|
export var StyledMultiSelectArrowContainer = StyledSelectArrowContainer;
|
|
@@ -33,7 +33,7 @@ export var StyledMultiSelectArrow = StyledSelectArrow;
|
|
|
33
33
|
export var StyledMultiSelectMenu = StyledSelectMenu;
|
|
34
34
|
export var StyledMultiSelectButton = /*#__PURE__*/styled(StyledSelectButton).withConfig({
|
|
35
35
|
displayName: "StyledMultiSelectButton",
|
|
36
|
-
componentId: "core-
|
|
36
|
+
componentId: "core-12_25_1__sc-s9ym9q-5"
|
|
37
37
|
})(["height:auto;padding:0;white-space:normal;&:focus-within{", "}", ""], getFocus(), function (_ref2) {
|
|
38
38
|
var $emptyValue = _ref2.$emptyValue;
|
|
39
39
|
return $emptyValue && css(["", "{cursor:pointer;}"], StyledMultiSelectSearchInput);
|
|
@@ -6,14 +6,14 @@ export var optionMinHeight = 32;
|
|
|
6
6
|
export var defaultMenuHeight = 64;
|
|
7
7
|
export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledOptions",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_25_1__sc-3o6zya-0"
|
|
10
10
|
})([""]);
|
|
11
11
|
export var StyledItem = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledItem",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_25_1__sc-3o6zya-1"
|
|
14
14
|
})(["", ";padding:", "px ", "px;cursor:pointer;list-style-type:none;"], getTypographyIntent('body'), spacing.xs, spacing.md);
|
|
15
15
|
export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
|
|
16
16
|
displayName: "StyledGroup",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_25_1__sc-3o6zya-2"
|
|
18
18
|
})(["", ";padding:", "px ", "px ", "px;font-weight:", ";background:white;list-style-type:none;"], getTypographyIntent('body'), spacing.md, spacing.md, spacing.xs, typographyWeights.semibold);
|
|
19
19
|
//# sourceMappingURL=NextMenu.styles.js.map
|
|
@@ -17,7 +17,7 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
17
17
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
18
18
|
import { useCheckbox, useCheckboxGroupItem } from '@react-aria/checkbox';
|
|
19
19
|
import { useFocusRing } from '@react-aria/focus';
|
|
20
|
-
import { mergeProps } from '@react-aria/utils';
|
|
20
|
+
import { mergeProps, useId } from '@react-aria/utils';
|
|
21
21
|
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import { useToggleState } from 'react-stately';
|
|
@@ -116,6 +116,7 @@ export var LinkTile = /*#__PURE__*/React.forwardRef(function LinkTile(_ref6, ref
|
|
|
116
116
|
});
|
|
117
117
|
function noop() {}
|
|
118
118
|
var CheckboxTile_ = /*#__PURE__*/React.forwardRef(function CheckboxTile(_ref7, ref) {
|
|
119
|
+
var _props$role;
|
|
119
120
|
var _ref7$disabled = _ref7.disabled,
|
|
120
121
|
disabled = _ref7$disabled === void 0 ? false : _ref7$disabled,
|
|
121
122
|
checked = _ref7.checked,
|
|
@@ -147,21 +148,45 @@ var CheckboxTile_ = /*#__PURE__*/React.forwardRef(function CheckboxTile(_ref7, r
|
|
|
147
148
|
isFocusVisible = _useFocusRing.isFocusVisible;
|
|
148
149
|
var isDisabled = isGroup ? groupState.isDisabled || disabled : disabled;
|
|
149
150
|
var isSelected = isGroup ? groupState.isSelected(props.value) : state.isSelected;
|
|
151
|
+
var labelId = props['aria-labelledby'];
|
|
152
|
+
var fallbackId = useId();
|
|
150
153
|
return /*#__PURE__*/React.createElement(StyledSelectableTile, {
|
|
151
154
|
$disabled: isDisabled,
|
|
152
155
|
$selected: isSelected,
|
|
153
156
|
$focused: isFocusVisible,
|
|
154
157
|
$orientation: orientation,
|
|
155
|
-
|
|
158
|
+
$layoutless: true,
|
|
156
159
|
className: className,
|
|
157
160
|
style: style
|
|
161
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
162
|
+
role: (_props$role = props.role) !== null && _props$role !== void 0 ? _props$role : 'checkbox',
|
|
163
|
+
"aria-labelledby": labelId !== null && labelId !== void 0 ? labelId : fallbackId,
|
|
164
|
+
"aria-checked": isSelected,
|
|
165
|
+
"aria-disabled": isDisabled,
|
|
166
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
167
|
+
onClick: function onClick() {
|
|
168
|
+
if (!isDisabled) {
|
|
169
|
+
var _inputRef$current;
|
|
170
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
onKeyDown: function onKeyDown(e) {
|
|
174
|
+
if (e.code === 'Space' || e.code === 'Enter') {
|
|
175
|
+
e.preventDefault();
|
|
176
|
+
if (!isDisabled) {
|
|
177
|
+
var _inputRef$current2;
|
|
178
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.click();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
158
182
|
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("input", _extends({}, mergeProps(isGroup ? inputGroupItemProps : inputProps, focusProps), {
|
|
159
|
-
ref: mergeRefs(inputRef, ref)
|
|
183
|
+
ref: mergeRefs(inputRef, ref),
|
|
184
|
+
tabIndex: -1
|
|
160
185
|
}))), /*#__PURE__*/React.createElement(TileContext.Provider, {
|
|
161
186
|
value: {
|
|
162
187
|
orientation: orientation
|
|
163
188
|
}
|
|
164
|
-
}, props.children));
|
|
189
|
+
}, props.children)));
|
|
165
190
|
});
|
|
166
191
|
function TileInner(_ref8, ref) {
|
|
167
192
|
var _ref8$role = _ref8.role,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextTile.js","names":["useCheckbox","useCheckboxGroupItem","useFocusRing","mergeProps","VisuallyHidden","React","useToggleState","CheckboxGroupContext","StyledActions","StyledFooter","StyledHeroMedia","StyledHeroOverlay","StyledHeroText","StyledInteractableTile","StyledLinkTile","StyledSelectableTile","StyledTileContent","addSubcomponents","mergeRefs","heroTextGridTemplateColumns","TileContext","createContext","orientation","HeroMedia","forwardRef","_ref","ref","children","_ref$overlay","overlay","onOverlayClick","props","_objectWithoutProperties","_excluded","_React$useContext","useContext","heroRef","useRef","useLayoutEffect","_heroRef$current","_heroRef$current$pare","current","parentElement","style","removeProperty","createElement","_extends","$orientation","onClick","HeroText","_ref2","_excluded2","_React$useContext2","_heroRef$current2","_heroRef$current2$par","setProperty","Content","Footer","_ref3","_excluded3","Actions","_ref4","_excluded4","InteractableTile","_ref5","_excluded5","Provider","value","LinkTile","_ref6","_excluded6","noop","CheckboxTile_","CheckboxTile","_ref7","_ref7$disabled","disabled","checked","defaultChecked","className","props_","_excluded7","_objectSpread","isDisabled","isSelected","defaultSelected","inputRef","groupState","isGroup","Boolean","_useCheckboxGroupItem","inputGroupItemProps","inputProps","state","_useCheckbox","_useFocusRing","focusProps","isFocusVisible","$disabled","$selected","$focused","as","TileInner","_ref8","_ref8$role","role","_excluded8","Tile_","NextTile"],"sources":["../../src/NextTile/NextTile.tsx"],"sourcesContent":["import { useCheckbox, useCheckboxGroupItem } from '@react-aria/checkbox'\nimport { useFocusRing } from '@react-aria/focus'\nimport { mergeProps } from '@react-aria/utils'\nimport { VisuallyHidden } from '@react-aria/visually-hidden'\nimport React from 'react'\nimport type { CheckboxGroupState } from 'react-stately'\nimport { useToggleState } from 'react-stately'\nimport { CheckboxGroupContext } from '../CheckboxGroup/CheckboxGroup'\nimport { StyledActions } from '../Content/Content.styles'\nimport {\n StyledFooter,\n StyledHeroMedia,\n StyledHeroOverlay,\n StyledHeroText,\n StyledInteractableTile,\n StyledLinkTile,\n StyledSelectableTile,\n StyledTileContent,\n} from '../Tile/Tile.styles'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport type {\n CheckboxTileProps,\n HeroMediaProps,\n HeroTextProps,\n InteractableTileProps,\n LinkTileProps,\n Roles,\n TileCommonProps,\n TileProps,\n TileRef,\n} from './NextTile.types'\n\nconst heroTextGridTemplateColumns = 'auto 1fr'\n\nconst TileContext = React.createContext<\n Pick<TileCommonProps<'none'>, 'orientation'>\n>({\n orientation: 'portrait',\n})\n\nconst HeroMedia = React.forwardRef<HTMLDivElement, HeroMediaProps>(\n function HeroMedia(\n { children, overlay = false, onOverlayClick, ...props },\n ref\n ) {\n const { orientation } = React.useContext(TileContext)\n const heroRef = React.useRef<HTMLDivElement>(null)\n\n React.useLayoutEffect(() => {\n if (orientation === 'landscape') {\n heroRef.current?.parentElement?.style.removeProperty(\n '--core-tile-grid-template-columns'\n )\n }\n }, [orientation])\n\n return (\n <StyledHeroMedia\n ref={mergeRefs(heroRef, ref)}\n $orientation={orientation}\n {...props}\n >\n {overlay && <StyledHeroOverlay onClick={onOverlayClick} />}\n {children}\n </StyledHeroMedia>\n )\n }\n)\n\nconst HeroText = React.forwardRef<HTMLDivElement, HeroTextProps>(\n function HeroText({ children, ...props }, ref) {\n const { orientation } = React.useContext(TileContext)\n const heroRef = React.useRef<HTMLDivElement>(null)\n\n React.useLayoutEffect(() => {\n if (orientation === 'landscape') {\n heroRef.current?.parentElement?.style.setProperty(\n '--core-tile-grid-template-columns',\n heroTextGridTemplateColumns\n )\n }\n }, [orientation])\n\n return (\n <StyledHeroText\n ref={mergeRefs(heroRef, ref)}\n $orientation={orientation}\n {...props}\n >\n {children}\n </StyledHeroText>\n )\n }\n)\n\nconst Content = React.forwardRef<HTMLDivElement, HeroTextProps>(\n function Content(props, ref) {\n return <StyledTileContent ref={ref} {...props} />\n }\n)\n\nconst Footer = React.forwardRef<HTMLDivElement, Props>(function Footer(\n { children, ...props },\n ref\n) {\n return (\n <StyledFooter ref={ref} {...props}>\n {children}\n </StyledFooter>\n )\n})\n\nconst Actions = React.forwardRef<HTMLDivElement, Props>(function Actions(\n { children, ...props },\n ref\n) {\n return (\n <StyledActions ref={ref} {...props}>\n {children}\n </StyledActions>\n )\n})\n\nexport const InteractableTile = React.forwardRef<\n HTMLDivElement,\n Omit<InteractableTileProps, 'role'>\n>(function InteractableTile({ orientation, children, ...props }, ref) {\n return (\n <StyledInteractableTile ref={ref} $orientation={orientation} {...props}>\n <TileContext.Provider value={{ orientation }}>\n {children}\n </TileContext.Provider>\n </StyledInteractableTile>\n )\n})\n\nexport const LinkTile = React.forwardRef<\n HTMLAnchorElement,\n Omit<LinkTileProps, 'role'>\n>(function LinkTile({ orientation, children, ...props }, ref) {\n return (\n <StyledLinkTile ref={ref} $orientation={orientation} {...props}>\n <TileContext.Provider value={{ orientation }}>\n {children}\n </TileContext.Provider>\n </StyledLinkTile>\n )\n})\nfunction noop() {}\n\nconst CheckboxTile_ = React.forwardRef<HTMLInputElement, CheckboxTileProps>(\n function CheckboxTile(\n {\n disabled = false,\n checked,\n defaultChecked,\n orientation,\n style,\n className,\n ...props_\n },\n ref\n ) {\n const props = {\n ...props_,\n isDisabled: disabled,\n isSelected: checked,\n defaultSelected: defaultChecked,\n }\n const inputRef = React.useRef<HTMLInputElement>(null)\n // Group hooks\n const groupState = React.useContext(\n CheckboxGroupContext\n ) as CheckboxGroupState\n const isGroup = Boolean(groupState)\n const { inputProps: inputGroupItemProps } = useCheckboxGroupItem(\n props,\n groupState ?? { isSelected: noop },\n inputRef\n )\n // Single hooks\n const state = useToggleState(props)\n const { inputProps } = useCheckbox(props, state, inputRef)\n // common hooks\n const { focusProps, isFocusVisible } = useFocusRing()\n\n const isDisabled = isGroup ? groupState.isDisabled || disabled : disabled\n const isSelected = isGroup\n ? groupState.isSelected(props.value)\n : state.isSelected\n\n return (\n <StyledSelectableTile\n $disabled={isDisabled}\n $selected={isSelected}\n $focused={isFocusVisible}\n $orientation={orientation}\n as=\"label\"\n className={className}\n style={style}\n >\n <VisuallyHidden>\n <input\n {...mergeProps(\n isGroup ? inputGroupItemProps : inputProps,\n focusProps\n )}\n ref={mergeRefs(inputRef, ref)}\n />\n </VisuallyHidden>\n <TileContext.Provider value={{ orientation }}>\n {props.children}\n </TileContext.Provider>\n </StyledSelectableTile>\n )\n }\n)\n\nfunction TileInner<Role extends Roles = 'none'>(\n { role = 'none', ...props }: TileProps<Role>,\n ref: TileRef<Role>\n) {\n switch (role) {\n case 'none':\n return (\n <InteractableTile\n ref={ref as React.Ref<HTMLDivElement>}\n {...(props as Omit<InteractableTileProps, 'role'>)}\n />\n )\n case 'link':\n return (\n <LinkTile\n ref={ref as React.Ref<HTMLAnchorElement>}\n {...(props as Omit<LinkTileProps, 'role'>)}\n />\n )\n case 'checkbox':\n return (\n <CheckboxTile_\n ref={ref as React.Ref<HTMLInputElement>}\n {...(props as Omit<CheckboxTileProps, 'role'>)}\n />\n )\n default:\n return null\n }\n}\n\nconst Tile_ = React.forwardRef(TileInner) as <Role extends Roles = 'none'>(\n props: TileProps<Role> & { ref?: TileRef<Role> }\n) => ReturnType<typeof TileInner>\n\n/**\n * <NextTile role={checkbox}/> can be used as single checkbox as well as in group.\n *\n * Single\n * ```\n * <NextTile role={checkbox} value=\"ThomasAnderson\" onChange=((value) => console.log(value) />\n * <NextTile role={checkbox} value=\"WhiteRabbit\" onChange=((value) => console.log(value) />\n * ```\n *\n * Group\n * ```\n * <CheckboxGroup label=\"Matrix\" onChange=((value) => console.log(value)>\n * <NextTile role={checkbox} value=\"ThomasAnderson\"/>\n * <NextTile role={checkbox} value=\"WhiteRabbit\"/>\n * </CheckboxGroup>\n * ```\n *\n * @since 11.6.0\n */\nexport const NextTile = addSubcomponents(\n { Actions, Content, Footer, HeroText, HeroMedia },\n Tile_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,oBAAoB,QAAQ,sBAAsB;AACxE,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SACEC,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AAC8E,SAAS,CAEP;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMM,QAAQ,GAAG3F,gBAAgB,CACtC;EAAE2C,OAAO,EAAPA,OAAO;EAAEJ,OAAO,EAAPA,OAAO;EAAEC,MAAM,EAANA,MAAM;EAAER,QAAQ,EAARA,QAAQ;EAAE1B,SAAS,EAATA;AAAU,CAAC,EACjDoF,KACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"NextTile.js","names":["useCheckbox","useCheckboxGroupItem","useFocusRing","mergeProps","useId","VisuallyHidden","React","useToggleState","CheckboxGroupContext","StyledActions","StyledFooter","StyledHeroMedia","StyledHeroOverlay","StyledHeroText","StyledInteractableTile","StyledLinkTile","StyledSelectableTile","StyledTileContent","addSubcomponents","mergeRefs","heroTextGridTemplateColumns","TileContext","createContext","orientation","HeroMedia","forwardRef","_ref","ref","children","_ref$overlay","overlay","onOverlayClick","props","_objectWithoutProperties","_excluded","_React$useContext","useContext","heroRef","useRef","useLayoutEffect","_heroRef$current","_heroRef$current$pare","current","parentElement","style","removeProperty","createElement","_extends","$orientation","onClick","HeroText","_ref2","_excluded2","_React$useContext2","_heroRef$current2","_heroRef$current2$par","setProperty","Content","Footer","_ref3","_excluded3","Actions","_ref4","_excluded4","InteractableTile","_ref5","_excluded5","Provider","value","LinkTile","_ref6","_excluded6","noop","CheckboxTile_","CheckboxTile","_ref7","_props$role","_ref7$disabled","disabled","checked","defaultChecked","className","props_","_excluded7","_objectSpread","isDisabled","isSelected","defaultSelected","inputRef","groupState","isGroup","Boolean","_useCheckboxGroupItem","inputGroupItemProps","inputProps","state","_useCheckbox","_useFocusRing","focusProps","isFocusVisible","labelId","fallbackId","$disabled","$selected","$focused","$layoutless","role","tabIndex","_inputRef$current","click","onKeyDown","e","code","preventDefault","_inputRef$current2","TileInner","_ref8","_ref8$role","_excluded8","Tile_","NextTile"],"sources":["../../src/NextTile/NextTile.tsx"],"sourcesContent":["import { useCheckbox, useCheckboxGroupItem } from '@react-aria/checkbox'\nimport { useFocusRing } from '@react-aria/focus'\nimport { mergeProps, useId } from '@react-aria/utils'\nimport { VisuallyHidden } from '@react-aria/visually-hidden'\nimport React from 'react'\nimport type { CheckboxGroupState } from 'react-stately'\nimport { useToggleState } from 'react-stately'\nimport { CheckboxGroupContext } from '../CheckboxGroup/CheckboxGroup'\nimport { StyledActions } from '../Content/Content.styles'\nimport {\n StyledFooter,\n StyledHeroMedia,\n StyledHeroOverlay,\n StyledHeroText,\n StyledInteractableTile,\n StyledLinkTile,\n StyledSelectableTile,\n StyledTileContent,\n} from '../Tile/Tile.styles'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport type {\n CheckboxTileProps,\n HeroMediaProps,\n HeroTextProps,\n InteractableTileProps,\n LinkTileProps,\n Roles,\n TileCommonProps,\n TileProps,\n TileRef,\n} from './NextTile.types'\n\nconst heroTextGridTemplateColumns = 'auto 1fr'\n\nconst TileContext = React.createContext<\n Pick<TileCommonProps<'none'>, 'orientation'>\n>({\n orientation: 'portrait',\n})\n\nconst HeroMedia = React.forwardRef<HTMLDivElement, HeroMediaProps>(\n function HeroMedia(\n { children, overlay = false, onOverlayClick, ...props },\n ref\n ) {\n const { orientation } = React.useContext(TileContext)\n const heroRef = React.useRef<HTMLDivElement>(null)\n\n React.useLayoutEffect(() => {\n if (orientation === 'landscape') {\n heroRef.current?.parentElement?.style.removeProperty(\n '--core-tile-grid-template-columns'\n )\n }\n }, [orientation])\n\n return (\n <StyledHeroMedia\n ref={mergeRefs(heroRef, ref)}\n $orientation={orientation}\n {...props}\n >\n {overlay && <StyledHeroOverlay onClick={onOverlayClick} />}\n {children}\n </StyledHeroMedia>\n )\n }\n)\n\nconst HeroText = React.forwardRef<HTMLDivElement, HeroTextProps>(\n function HeroText({ children, ...props }, ref) {\n const { orientation } = React.useContext(TileContext)\n const heroRef = React.useRef<HTMLDivElement>(null)\n\n React.useLayoutEffect(() => {\n if (orientation === 'landscape') {\n heroRef.current?.parentElement?.style.setProperty(\n '--core-tile-grid-template-columns',\n heroTextGridTemplateColumns\n )\n }\n }, [orientation])\n\n return (\n <StyledHeroText\n ref={mergeRefs(heroRef, ref)}\n $orientation={orientation}\n {...props}\n >\n {children}\n </StyledHeroText>\n )\n }\n)\n\nconst Content = React.forwardRef<HTMLDivElement, HeroTextProps>(\n function Content(props, ref) {\n return <StyledTileContent ref={ref} {...props} />\n }\n)\n\nconst Footer = React.forwardRef<HTMLDivElement, Props>(function Footer(\n { children, ...props },\n ref\n) {\n return (\n <StyledFooter ref={ref} {...props}>\n {children}\n </StyledFooter>\n )\n})\n\nconst Actions = React.forwardRef<HTMLDivElement, Props>(function Actions(\n { children, ...props },\n ref\n) {\n return (\n <StyledActions ref={ref} {...props}>\n {children}\n </StyledActions>\n )\n})\n\nexport const InteractableTile = React.forwardRef<\n HTMLDivElement,\n Omit<InteractableTileProps, 'role'>\n>(function InteractableTile({ orientation, children, ...props }, ref) {\n return (\n <StyledInteractableTile ref={ref} $orientation={orientation} {...props}>\n <TileContext.Provider value={{ orientation }}>\n {children}\n </TileContext.Provider>\n </StyledInteractableTile>\n )\n})\n\nexport const LinkTile = React.forwardRef<\n HTMLAnchorElement,\n Omit<LinkTileProps, 'role'>\n>(function LinkTile({ orientation, children, ...props }, ref) {\n return (\n <StyledLinkTile ref={ref} $orientation={orientation} {...props}>\n <TileContext.Provider value={{ orientation }}>\n {children}\n </TileContext.Provider>\n </StyledLinkTile>\n )\n})\nfunction noop() {}\n\nconst CheckboxTile_ = React.forwardRef<HTMLInputElement, CheckboxTileProps>(\n function CheckboxTile(\n {\n disabled = false,\n checked,\n defaultChecked,\n orientation,\n style,\n className,\n ...props_\n },\n ref\n ) {\n const props = {\n ...props_,\n isDisabled: disabled,\n isSelected: checked,\n defaultSelected: defaultChecked,\n }\n const inputRef = React.useRef<HTMLInputElement>(null)\n // Group hooks\n const groupState = React.useContext(\n CheckboxGroupContext\n ) as CheckboxGroupState\n const isGroup = Boolean(groupState)\n const { inputProps: inputGroupItemProps } = useCheckboxGroupItem(\n props,\n groupState ?? { isSelected: noop },\n inputRef\n )\n // Single hooks\n const state = useToggleState(props)\n const { inputProps } = useCheckbox(props, state, inputRef)\n // common hooks\n const { focusProps, isFocusVisible } = useFocusRing()\n\n const isDisabled = isGroup ? groupState.isDisabled || disabled : disabled\n const isSelected = isGroup\n ? groupState.isSelected(props.value)\n : state.isSelected\n\n const labelId = props['aria-labelledby']\n const fallbackId = useId()\n\n return (\n <StyledSelectableTile\n $disabled={isDisabled}\n $selected={isSelected}\n $focused={isFocusVisible}\n $orientation={orientation}\n $layoutless\n className={className}\n style={style}\n >\n <div\n role={props.role ?? 'checkbox'}\n aria-labelledby={labelId ?? fallbackId}\n aria-checked={isSelected}\n aria-disabled={isDisabled}\n tabIndex={isDisabled ? -1 : 0}\n onClick={() => {\n if (!isDisabled) {\n inputRef.current?.click()\n }\n }}\n onKeyDown={(e) => {\n if (e.code === 'Space' || e.code === 'Enter') {\n e.preventDefault()\n if (!isDisabled) {\n inputRef.current?.click()\n }\n }\n }}\n >\n <VisuallyHidden>\n <input\n {...mergeProps(\n isGroup ? inputGroupItemProps : inputProps,\n focusProps\n )}\n ref={mergeRefs(inputRef, ref)}\n tabIndex={-1}\n />\n </VisuallyHidden>\n <TileContext.Provider\n value={{\n orientation,\n }}\n >\n {props.children}\n </TileContext.Provider>\n </div>\n </StyledSelectableTile>\n )\n }\n)\n\nfunction TileInner<Role extends Roles = 'none'>(\n { role = 'none', ...props }: TileProps<Role>,\n ref: TileRef<Role>\n) {\n switch (role) {\n case 'none':\n return (\n <InteractableTile\n ref={ref as React.Ref<HTMLDivElement>}\n {...(props as Omit<InteractableTileProps, 'role'>)}\n />\n )\n case 'link':\n return (\n <LinkTile\n ref={ref as React.Ref<HTMLAnchorElement>}\n {...(props as Omit<LinkTileProps, 'role'>)}\n />\n )\n case 'checkbox':\n return (\n <CheckboxTile_\n ref={ref as React.Ref<HTMLInputElement>}\n {...(props as Omit<CheckboxTileProps, 'role'>)}\n />\n )\n default:\n return null\n }\n}\n\nconst Tile_ = React.forwardRef(TileInner) as <Role extends Roles = 'none'>(\n props: TileProps<Role> & { ref?: TileRef<Role> }\n) => ReturnType<typeof TileInner>\n\n/**\n * <NextTile role={checkbox}/> can be used as single checkbox as well as in group.\n *\n * Single\n * ```\n * <NextTile role={checkbox} value=\"ThomasAnderson\" onChange=((value) => console.log(value) />\n * <NextTile role={checkbox} value=\"WhiteRabbit\" onChange=((value) => console.log(value) />\n * ```\n *\n * Group\n * ```\n * <CheckboxGroup label=\"Matrix\" onChange=((value) => console.log(value)>\n * <NextTile role={checkbox} value=\"ThomasAnderson\"/>\n * <NextTile role={checkbox} value=\"WhiteRabbit\"/>\n * </CheckboxGroup>\n * ```\n *\n * @since 11.6.0\n */\nexport const NextTile = addSubcomponents(\n { Actions, Content, Footer, HeroText, HeroMedia },\n Tile_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,oBAAoB,QAAQ,sBAAsB;AACxE,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,UAAU,EAAEC,KAAK,QAAQ,mBAAmB;AACrD,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SACEC,YAAY,EACZC,eAAe,EACfC,iBAAiB,EACjBC,cAAc,EACdC,sBAAsB,EACtBC,cAAc,EACdC,oBAAoB,EACpBC,iBAAiB,QACZ,qBAAqB;AAC5B,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,SAAS,QAAQ,qBAAqB;AAc/C,IAAMC,2BAA2B,GAAG,UAAU;AAE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,WAAW,EAAXA;IACF;EAAE,GAEDS,KAAK,CAACJ,QACa,CACnB,CACe,CAAC;AAE3B,CACF,CAAC;AAED,SAASuF,SAASA,CAAAC,KAAA,EAEhBzF,GAAkB,EAClB;EAAA,IAAA0F,UAAA,GAAAD,KAAA,CAFEV,IAAI;IAAJA,IAAI,GAAAW,UAAA,cAAG,MAAM,GAAAA,UAAA;IAAKrF,KAAK,GAAAC,wBAAA,CAAAmF,KAAA,EAAAE,UAAA;EAGzB,QAAQZ,IAAI;IACV,KAAK,MAAM;MACT,oBACEpG,KAAA,CAAAwC,aAAA,CAACkB,gBAAgB,EAAAjB,QAAA;QACfpB,GAAG,EAAEA;MAAiC,GACjCK,KAAK,CACX,CAAC;IAEN,KAAK,MAAM;MACT,oBACE1B,KAAA,CAAAwC,aAAA,CAACuB,QAAQ,EAAAtB,QAAA;QACPpB,GAAG,EAAEA;MAAoC,GACpCK,KAAK,CACX,CAAC;IAEN,KAAK,UAAU;MACb,oBACE1B,KAAA,CAAAwC,aAAA,CAAC2B,aAAa,EAAA1B,QAAA;QACZpB,GAAG,EAAEA;MAAmC,GACnCK,KAAK,CACX,CAAC;IAEN;MACE,OAAO,IAAI;EACf;AACF;AAEA,IAAMuF,KAAK,gBAAGjH,KAAK,CAACmB,UAAU,CAAC0F,SAAS,CAEP;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMK,QAAQ,GAAGtG,gBAAgB,CACtC;EAAE2C,OAAO,EAAPA,OAAO;EAAEJ,OAAO,EAAPA,OAAO;EAAEC,MAAM,EAANA,MAAM;EAAER,QAAQ,EAARA,QAAQ;EAAE1B,SAAS,EAATA;AAAU,CAAC,EACjD+F,KACF,CAAC"}
|
|
@@ -19,6 +19,11 @@ export interface TileCommonProps<Role extends Roles> extends Props {
|
|
|
19
19
|
role?: Role;
|
|
20
20
|
}
|
|
21
21
|
export interface CheckboxTileProps extends Omit<AriaCheckboxProps, 'isDisabled' | 'children' | 'defaultSelected' | 'isSelected'>, TileCommonProps<'checkbox'> {
|
|
22
|
+
/**
|
|
23
|
+
* For tiles acting as checkboxes.
|
|
24
|
+
* @since 11.6.0
|
|
25
|
+
*/
|
|
26
|
+
role?: 'checkbox';
|
|
22
27
|
/**
|
|
23
28
|
* Whether the element should be selected (uncontrolled).
|
|
24
29
|
* Only for single checkbox, doesn't work in CheckboxGroup.
|
|
@@ -43,8 +48,18 @@ export interface CheckboxTileProps extends Omit<AriaCheckboxProps, 'isDisabled'
|
|
|
43
48
|
value: string;
|
|
44
49
|
}
|
|
45
50
|
export interface InteractableTileProps extends TileCommonProps<'none'>, Omit<DivAttributes, 'role'> {
|
|
51
|
+
/**
|
|
52
|
+
* For a neutral tile with no special interactive behavior.
|
|
53
|
+
* @since 11.6.0
|
|
54
|
+
*/
|
|
55
|
+
role?: 'none';
|
|
46
56
|
}
|
|
47
57
|
export interface LinkTileProps extends TileCommonProps<'link'>, Omit<AnchorAttributes, 'role'> {
|
|
58
|
+
/**
|
|
59
|
+
* For tiles acting as links.
|
|
60
|
+
* @since 11.6.0
|
|
61
|
+
*/
|
|
62
|
+
role?: 'link';
|
|
48
63
|
}
|
|
49
64
|
export declare type TileProps<Role extends Roles = 'none'> = Role extends 'link' ? LinkTileProps : Role extends 'checkbox' ? CheckboxTileProps : Role extends 'none' ? InteractableTileProps : TileCommonProps<Role>;
|
|
50
65
|
export interface RefMap extends Record<Roles, React.ElementType> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextTile.types.js","names":[],"sources":["../../src/NextTile/NextTile.types.ts"],"sourcesContent":["import type { AriaCheckboxProps } from '@react-types/checkbox'\nimport type React from 'react'\nimport type { AnchorAttributes, DivAttributes, Props } from '../_utils/types'\n\nexport interface HeroTextProps extends Props {}\nexport interface HeroMediaProps extends Props {\n overlay?: boolean\n onOverlayClick?: React.MouseEventHandler<HTMLDivElement>\n}\n\nexport type Roles = 'none' | 'link' | 'checkbox'\n\nexport interface TileCommonProps<Role extends Roles> extends Props {\n /**\n * @since 11.6.0\n */\n orientation: 'portrait' | 'landscape'\n /**\n * @since 11.6.0\n */\n role?: Role\n}\n\nexport interface CheckboxTileProps\n extends Omit<\n AriaCheckboxProps,\n 'isDisabled' | 'children' | 'defaultSelected' | 'isSelected'\n >,\n TileCommonProps<'checkbox'> {\n /**\n * Whether the element should be selected (uncontrolled).\n * Only for single checkbox, doesn't work in CheckboxGroup.\n *\n * @since 11.6.0\n */\n defaultChecked?: boolean\n /**\n * Whether the element should be selected (controlled).\n * Only for single checkbox, doesn't work in CheckboxGroup.\n *\n * @since 11.6.0\n */\n checked?: boolean\n /**\n * @since 11.6.0\n */\n disabled?: boolean\n /**\n * @since 11.6.0\n */\n value: string\n}\n\nexport interface InteractableTileProps\n extends TileCommonProps<'none'>,\n Omit<DivAttributes, 'role'> {}\n\nexport interface LinkTileProps\n extends TileCommonProps<'link'>,\n Omit<AnchorAttributes, 'role'> {}\n\nexport type TileProps<Role extends Roles = 'none'> = Role extends 'link'\n ? LinkTileProps\n : Role extends 'checkbox'\n ? CheckboxTileProps\n : Role extends 'none'\n ? InteractableTileProps\n : TileCommonProps<Role>\n\nexport interface RefMap extends Record<Roles, React.ElementType> {\n none: 'div'\n link: 'a'\n checkbox: 'input'\n}\n\nexport type TileRef<C extends Roles> = React.ComponentPropsWithRef<\n RefMap[C]\n>['ref']\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"NextTile.types.js","names":[],"sources":["../../src/NextTile/NextTile.types.ts"],"sourcesContent":["import type { AriaCheckboxProps } from '@react-types/checkbox'\nimport type React from 'react'\nimport type { AnchorAttributes, DivAttributes, Props } from '../_utils/types'\n\nexport interface HeroTextProps extends Props {}\nexport interface HeroMediaProps extends Props {\n overlay?: boolean\n onOverlayClick?: React.MouseEventHandler<HTMLDivElement>\n}\n\nexport type Roles = 'none' | 'link' | 'checkbox'\n\nexport interface TileCommonProps<Role extends Roles> extends Props {\n /**\n * @since 11.6.0\n */\n orientation: 'portrait' | 'landscape'\n /**\n * @since 11.6.0\n */\n role?: Role\n}\n\nexport interface CheckboxTileProps\n extends Omit<\n AriaCheckboxProps,\n 'isDisabled' | 'children' | 'defaultSelected' | 'isSelected'\n >,\n TileCommonProps<'checkbox'> {\n /**\n * For tiles acting as checkboxes.\n * @since 11.6.0\n */\n role?: 'checkbox'\n /**\n * Whether the element should be selected (uncontrolled).\n * Only for single checkbox, doesn't work in CheckboxGroup.\n *\n * @since 11.6.0\n */\n defaultChecked?: boolean\n /**\n * Whether the element should be selected (controlled).\n * Only for single checkbox, doesn't work in CheckboxGroup.\n *\n * @since 11.6.0\n */\n checked?: boolean\n /**\n * @since 11.6.0\n */\n disabled?: boolean\n /**\n * @since 11.6.0\n */\n value: string\n}\n\nexport interface InteractableTileProps\n extends TileCommonProps<'none'>,\n Omit<DivAttributes, 'role'> {\n /**\n * For a neutral tile with no special interactive behavior.\n * @since 11.6.0\n */\n role?: 'none'\n}\n\nexport interface LinkTileProps\n extends TileCommonProps<'link'>,\n Omit<AnchorAttributes, 'role'> {\n /**\n * For tiles acting as links.\n * @since 11.6.0\n */\n role?: 'link'\n}\n\nexport type TileProps<Role extends Roles = 'none'> = Role extends 'link'\n ? LinkTileProps\n : Role extends 'checkbox'\n ? CheckboxTileProps\n : Role extends 'none'\n ? InteractableTileProps\n : TileCommonProps<Role>\n\nexport interface RefMap extends Record<Roles, React.ElementType> {\n none: 'div'\n link: 'a'\n checkbox: 'input'\n}\n\nexport type TileRef<C extends Roles> = React.ComponentPropsWithRef<\n RefMap[C]\n>['ref']\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["InteractableTile","LinkTile","NextTile"],"sources":["../../src/NextTile/index.ts"],"sourcesContent":["export { InteractableTile, LinkTile, NextTile } from './NextTile'\nexport type {\n CheckboxTileProps,\n HeroMediaProps,\n HeroTextProps,\n InteractableTileProps,\n LinkTileProps,\n TileCommonProps,\n TileProps,\n} from './NextTile.types'\n"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,YAAY"}
|
|
@@ -14,7 +14,7 @@ var variantColorMap = {
|
|
|
14
14
|
};
|
|
15
15
|
var StyledNotation = /*#__PURE__*/styled.i.withConfig({
|
|
16
16
|
displayName: "StyledNotation",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_25_1__sc-160q1m6-0"
|
|
18
18
|
})(["", " color:", ";font-style:italic;"], getTypographyIntent('small'), function (_ref) {
|
|
19
19
|
var $variant = _ref.$variant;
|
|
20
20
|
return $variant ? colors[variantColorMap[$variant]] : colors.gray15;
|
|
@@ -393,8 +393,11 @@ export var NumberInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
393
393
|
onKeyDown: internalOnKeyDown,
|
|
394
394
|
onChange: internalOnChange,
|
|
395
395
|
onBlur: internalOnBlur,
|
|
396
|
-
inputMode: "numeric"
|
|
397
|
-
|
|
396
|
+
inputMode: "numeric"
|
|
397
|
+
// Chrome- InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.
|
|
398
|
+
// Firefox- Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable
|
|
399
|
+
// type={hasIncrementer ? 'number' : undefined}
|
|
400
|
+
,
|
|
398
401
|
lang: contextLocale,
|
|
399
402
|
readOnly: readOnly,
|
|
400
403
|
style: _objectSpread(_objectSpread({}, style), {
|