@czi-sds/components 15.2.0 → 15.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.d.ts +134 -82
- package/dist/index.cjs.js +946 -738
- package/dist/index.esm.d.ts +134 -82
- package/dist/index.esm.js +948 -741
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/common/helpers/scrollStop.d.ts +0 -8
- package/dist/src/common/helpers/scrollStop.js +0 -54
- package/dist/src/common/storybookConstants.d.ts +0 -3
- package/dist/src/common/storybookConstants.js +0 -2
- package/dist/src/common/utils.d.ts +0 -2
- package/dist/src/common/utils.js +0 -9
- package/dist/src/common/warnings.d.ts +0 -10
- package/dist/src/common/warnings.js +0 -60
- package/dist/src/common/warnings.test.d.ts +0 -1
- package/dist/src/common/warnings.test.js +0 -19
- package/dist/src/core/Accordion/Accordion.namespace-test.d.ts +0 -1
- package/dist/src/core/Accordion/Accordion.namespace-test.js +0 -18
- package/dist/src/core/Accordion/__snapshots__/index.test.js.snap +0 -64
- package/dist/src/core/Accordion/components/AccordionDetails/index.d.ts +0 -3
- package/dist/src/core/Accordion/components/AccordionDetails/index.js +0 -9
- package/dist/src/core/Accordion/components/AccordionDetails/style.d.ts +0 -2
- package/dist/src/core/Accordion/components/AccordionDetails/style.js +0 -16
- package/dist/src/core/Accordion/components/AccordionHeader/index.d.ts +0 -7
- package/dist/src/core/Accordion/components/AccordionHeader/index.js +0 -13
- package/dist/src/core/Accordion/components/AccordionHeader/style.d.ts +0 -27
- package/dist/src/core/Accordion/components/AccordionHeader/style.js +0 -21
- package/dist/src/core/Accordion/index.d.ts +0 -12
- package/dist/src/core/Accordion/index.js +0 -38
- package/dist/src/core/Accordion/index.stories.d.ts +0 -28
- package/dist/src/core/Accordion/index.stories.js +0 -82
- package/dist/src/core/Accordion/index.test.d.ts +0 -1
- package/dist/src/core/Accordion/index.test.js +0 -58
- package/dist/src/core/Accordion/style.d.ts +0 -30
- package/dist/src/core/Accordion/style.js +0 -28
- package/dist/src/core/Alert/index.d.ts +0 -7
- package/dist/src/core/Alert/index.js +0 -22
- package/dist/src/core/Alert/index.stories.d.ts +0 -19
- package/dist/src/core/Alert/index.stories.js +0 -70
- package/dist/src/core/Alert/style.d.ts +0 -1
- package/dist/src/core/Alert/style.js +0 -23
- package/dist/src/core/Banner/Banner.namespace-test.d.ts +0 -1
- package/dist/src/core/Banner/Banner.namespace-test.js +0 -18
- package/dist/src/core/Banner/banner.test.d.ts +0 -1
- package/dist/src/core/Banner/banner.test.js +0 -126
- package/dist/src/core/Banner/index.d.ts +0 -11
- package/dist/src/core/Banner/index.js +0 -47
- package/dist/src/core/Banner/index.stories.d.ts +0 -46
- package/dist/src/core/Banner/index.stories.js +0 -106
- package/dist/src/core/Banner/style.d.ts +0 -13
- package/dist/src/core/Banner/style.js +0 -55
- package/dist/src/core/Button/Button.namespace-test.d.ts +0 -1
- package/dist/src/core/Button/Button.namespace-test.js +0 -18
- package/dist/src/core/Button/index.d.ts +0 -18
- package/dist/src/core/Button/index.js +0 -54
- package/dist/src/core/Button/index.stories.d.ts +0 -72
- package/dist/src/core/Button/index.stories.js +0 -215
- package/dist/src/core/Button/index.test.d.ts +0 -1
- package/dist/src/core/Button/index.test.js +0 -40
- package/dist/src/core/Button/style.d.ts +0 -180
- package/dist/src/core/Button/style.js +0 -59
- package/dist/src/core/ButtonDropdown/ButtonDropdown.namespace-test.d.ts +0 -1
- package/dist/src/core/ButtonDropdown/ButtonDropdown.namespace-test.js +0 -18
- package/dist/src/core/ButtonDropdown/index.d.ts +0 -18
- package/dist/src/core/ButtonDropdown/index.js +0 -30
- package/dist/src/core/ButtonDropdown/index.stories.d.ts +0 -35
- package/dist/src/core/ButtonDropdown/index.stories.js +0 -79
- package/dist/src/core/ButtonDropdown/index.test.d.ts +0 -1
- package/dist/src/core/ButtonDropdown/index.test.js +0 -41
- package/dist/src/core/ButtonIcon/ButtonIcon.namespace-test.d.ts +0 -1
- package/dist/src/core/ButtonIcon/ButtonIcon.namespace-test.js +0 -18
- package/dist/src/core/ButtonIcon/index.d.ts +0 -15
- package/dist/src/core/ButtonIcon/index.js +0 -34
- package/dist/src/core/ButtonIcon/index.stories.d.ts +0 -39
- package/dist/src/core/ButtonIcon/index.stories.js +0 -239
- package/dist/src/core/ButtonIcon/index.test.d.ts +0 -1
- package/dist/src/core/ButtonIcon/index.test.js +0 -41
- package/dist/src/core/ButtonIcon/style.d.ts +0 -41
- package/dist/src/core/ButtonIcon/style.js +0 -68
- package/dist/src/core/Callout/Callout.namespace-test.d.ts +0 -1
- package/dist/src/core/Callout/Callout.namespace-test.js +0 -18
- package/dist/src/core/Callout/components/CalloutTitle/index.d.ts +0 -3
- package/dist/src/core/Callout/components/CalloutTitle/index.js +0 -9
- package/dist/src/core/Callout/components/CalloutTitle/style.d.ts +0 -1
- package/dist/src/core/Callout/components/CalloutTitle/style.js +0 -16
- package/dist/src/core/Callout/index.d.ts +0 -18
- package/dist/src/core/Callout/index.js +0 -89
- package/dist/src/core/Callout/index.stories.d.ts +0 -14
- package/dist/src/core/Callout/index.stories.js +0 -80
- package/dist/src/core/Callout/style.d.ts +0 -7
- package/dist/src/core/Callout/style.js +0 -31
- package/dist/src/core/CellBasic/CellBasic.namespace-test.d.ts +0 -1
- package/dist/src/core/CellBasic/CellBasic.namespace-test.js +0 -7
- package/dist/src/core/CellBasic/index.d.ts +0 -21
- package/dist/src/core/CellBasic/index.js +0 -32
- package/dist/src/core/CellBasic/index.stories.d.ts +0 -33
- package/dist/src/core/CellBasic/index.stories.js +0 -143
- package/dist/src/core/CellBasic/index.test.d.ts +0 -1
- package/dist/src/core/CellBasic/index.test.js +0 -124
- package/dist/src/core/CellBasic/style.d.ts +0 -18
- package/dist/src/core/CellBasic/style.js +0 -86
- package/dist/src/core/CellComponent/CellComponent.namespace-test.d.ts +0 -1
- package/dist/src/core/CellComponent/CellComponent.namespace-test.js +0 -7
- package/dist/src/core/CellComponent/index.d.ts +0 -8
- package/dist/src/core/CellComponent/index.js +0 -21
- package/dist/src/core/CellComponent/index.stories.d.ts +0 -21
- package/dist/src/core/CellComponent/index.stories.js +0 -92
- package/dist/src/core/CellComponent/index.test.d.ts +0 -1
- package/dist/src/core/CellComponent/index.test.js +0 -110
- package/dist/src/core/CellComponent/style.d.ts +0 -9
- package/dist/src/core/CellComponent/style.js +0 -32
- package/dist/src/core/CellHeader/CellHeader.namespace-test.d.ts +0 -1
- package/dist/src/core/CellHeader/CellHeader.namespace-test.js +0 -8
- package/dist/src/core/CellHeader/index.d.ts +0 -20
- package/dist/src/core/CellHeader/index.js +0 -47
- package/dist/src/core/CellHeader/index.stories.d.ts +0 -26
- package/dist/src/core/CellHeader/index.stories.js +0 -128
- package/dist/src/core/CellHeader/index.test.d.ts +0 -1
- package/dist/src/core/CellHeader/index.test.js +0 -112
- package/dist/src/core/CellHeader/style.d.ts +0 -9
- package/dist/src/core/CellHeader/style.js +0 -50
- package/dist/src/core/Chip/index.d.ts +0 -9
- package/dist/src/core/Chip/index.js +0 -29
- package/dist/src/core/Chip/index.stories.d.ts +0 -58
- package/dist/src/core/Chip/index.stories.js +0 -90
- package/dist/src/core/Chip/style.d.ts +0 -26
- package/dist/src/core/Chip/style.js +0 -95
- package/dist/src/core/ComplexFilter/ComplexFilter.namespace-test.d.ts +0 -1
- package/dist/src/core/ComplexFilter/ComplexFilter.namespace-test.js +0 -20
- package/dist/src/core/ComplexFilter/components/Chips/index.d.ts +0 -8
- package/dist/src/core/ComplexFilter/components/Chips/index.js +0 -21
- package/dist/src/core/ComplexFilter/index.d.ts +0 -23
- package/dist/src/core/ComplexFilter/index.js +0 -119
- package/dist/src/core/ComplexFilter/index.stories.d.ts +0 -33
- package/dist/src/core/ComplexFilter/index.stories.js +0 -126
- package/dist/src/core/ComplexFilter/index.test.d.ts +0 -1
- package/dist/src/core/ComplexFilter/index.test.js +0 -51
- package/dist/src/core/ComplexFilter/style.d.ts +0 -3
- package/dist/src/core/ComplexFilter/style.js +0 -15
- package/dist/src/core/Dialog/Dialog.namespace-test.d.ts +0 -1
- package/dist/src/core/Dialog/Dialog.namespace-test.js +0 -8
- package/dist/src/core/Dialog/__snapshots__/index.test.js.snap +0 -382
- package/dist/src/core/Dialog/components/common.d.ts +0 -6
- package/dist/src/core/Dialog/components/common.js +0 -5
- package/dist/src/core/Dialog/index.d.ts +0 -18
- package/dist/src/core/Dialog/index.js +0 -50
- package/dist/src/core/Dialog/index.stories.d.ts +0 -46
- package/dist/src/core/Dialog/index.stories.js +0 -147
- package/dist/src/core/Dialog/index.test.d.ts +0 -1
- package/dist/src/core/Dialog/index.test.js +0 -62
- package/dist/src/core/DialogActions/index.d.ts +0 -9
- package/dist/src/core/DialogActions/index.js +0 -23
- package/dist/src/core/DialogActions/style.d.ts +0 -5
- package/dist/src/core/DialogActions/style.js +0 -20
- package/dist/src/core/DialogContent/index.d.ts +0 -5
- package/dist/src/core/DialogContent/index.js +0 -23
- package/dist/src/core/DialogContent/style.d.ts +0 -1
- package/dist/src/core/DialogContent/style.js +0 -11
- package/dist/src/core/DialogPaper/index.d.ts +0 -8
- package/dist/src/core/DialogPaper/index.js +0 -27
- package/dist/src/core/DialogPaper/style.d.ts +0 -16
- package/dist/src/core/DialogPaper/style.js +0 -44
- package/dist/src/core/DialogTitle/components/CloseButton/index.d.ts +0 -5
- package/dist/src/core/DialogTitle/components/CloseButton/index.js +0 -31
- package/dist/src/core/DialogTitle/components/CloseButton/style.d.ts +0 -2
- package/dist/src/core/DialogTitle/components/CloseButton/style.js +0 -18
- package/dist/src/core/DialogTitle/index.d.ts +0 -14
- package/dist/src/core/DialogTitle/index.js +0 -42
- package/dist/src/core/DialogTitle/style.d.ts +0 -46
- package/dist/src/core/DialogTitle/style.js +0 -20
- package/dist/src/core/Dropdown/Dropdown.namespace-test.d.ts +0 -1
- package/dist/src/core/Dropdown/Dropdown.namespace-test.js +0 -20
- package/dist/src/core/Dropdown/index.d.ts +0 -31
- package/dist/src/core/Dropdown/index.js +0 -160
- package/dist/src/core/Dropdown/index.stories.d.ts +0 -68
- package/dist/src/core/Dropdown/index.stories.js +0 -215
- package/dist/src/core/Dropdown/index.test.d.ts +0 -1
- package/dist/src/core/Dropdown/index.test.js +0 -229
- package/dist/src/core/Dropdown/style.d.ts +0 -5
- package/dist/src/core/Dropdown/style.js +0 -19
- package/dist/src/core/DropdownMenu/DropdownMenu.namespace-test.d.ts +0 -1
- package/dist/src/core/DropdownMenu/DropdownMenu.namespace-test.js +0 -20
- package/dist/src/core/DropdownMenu/GITHUB_LABELS.d.ts +0 -2
- package/dist/src/core/DropdownMenu/GITHUB_LABELS.js +0 -83
- package/dist/src/core/DropdownMenu/index.d.ts +0 -42
- package/dist/src/core/DropdownMenu/index.js +0 -83
- package/dist/src/core/DropdownMenu/index.stories.d.ts +0 -55
- package/dist/src/core/DropdownMenu/index.stories.js +0 -438
- package/dist/src/core/DropdownMenu/index.test.d.ts +0 -1
- package/dist/src/core/DropdownMenu/index.test.js +0 -51
- package/dist/src/core/DropdownMenu/style.d.ts +0 -40
- package/dist/src/core/DropdownMenu/style.js +0 -85
- package/dist/src/core/Icon/Icon.namespace-test.d.ts +0 -1
- package/dist/src/core/Icon/Icon.namespace-test.js +0 -7
- package/dist/src/core/Icon/index.d.ts +0 -14
- package/dist/src/core/Icon/index.js +0 -25
- package/dist/src/core/Icon/index.stories.d.ts +0 -34
- package/dist/src/core/Icon/index.stories.js +0 -171
- package/dist/src/core/Icon/map.d.ts +0 -98
- package/dist/src/core/Icon/map.js +0 -476
- package/dist/src/core/Icon/style.d.ts +0 -36
- package/dist/src/core/Icon/style.js +0 -42
- package/dist/src/core/InputCheckbox/InputCheckbox.namespace-test.d.ts +0 -1
- package/dist/src/core/InputCheckbox/InputCheckbox.namespace-test.js +0 -9
- package/dist/src/core/InputCheckbox/index.d.ts +0 -13
- package/dist/src/core/InputCheckbox/index.js +0 -55
- package/dist/src/core/InputCheckbox/index.stories.d.ts +0 -35
- package/dist/src/core/InputCheckbox/index.stories.js +0 -119
- package/dist/src/core/InputCheckbox/index.test.d.ts +0 -1
- package/dist/src/core/InputCheckbox/index.test.js +0 -62
- package/dist/src/core/InputCheckbox/styles.d.ts +0 -6
- package/dist/src/core/InputCheckbox/styles.js +0 -24
- package/dist/src/core/InputDropdown/InputDropdown.namespace-test.d.ts +0 -1
- package/dist/src/core/InputDropdown/InputDropdown.namespace-test.js +0 -8
- package/dist/src/core/InputDropdown/index.d.ts +0 -8
- package/dist/src/core/InputDropdown/index.js +0 -83
- package/dist/src/core/InputDropdown/index.stories.d.ts +0 -59
- package/dist/src/core/InputDropdown/index.stories.js +0 -264
- package/dist/src/core/InputDropdown/index.test.d.ts +0 -1
- package/dist/src/core/InputDropdown/index.test.js +0 -58
- package/dist/src/core/InputDropdown/style.d.ts +0 -38
- package/dist/src/core/InputDropdown/style.js +0 -130
- package/dist/src/core/InputRadio/InputRadio.namespace-test.d.ts +0 -1
- package/dist/src/core/InputRadio/InputRadio.namespace-test.js +0 -8
- package/dist/src/core/InputRadio/index.d.ts +0 -14
- package/dist/src/core/InputRadio/index.js +0 -40
- package/dist/src/core/InputRadio/index.stories.d.ts +0 -32
- package/dist/src/core/InputRadio/index.stories.js +0 -64
- package/dist/src/core/InputRadio/index.test.d.ts +0 -1
- package/dist/src/core/InputRadio/index.test.js +0 -92
- package/dist/src/core/InputRadio/style.d.ts +0 -6
- package/dist/src/core/InputRadio/style.js +0 -24
- package/dist/src/core/InputSearch/InputSearch.namespace-test.d.ts +0 -1
- package/dist/src/core/InputSearch/InputSearch.namespace-test.js +0 -8
- package/dist/src/core/InputSearch/index.d.ts +0 -16
- package/dist/src/core/InputSearch/index.js +0 -75
- package/dist/src/core/InputSearch/index.stories.d.ts +0 -35
- package/dist/src/core/InputSearch/index.stories.js +0 -104
- package/dist/src/core/InputSearch/index.test.d.ts +0 -1
- package/dist/src/core/InputSearch/index.test.js +0 -70
- package/dist/src/core/InputSearch/style.d.ts +0 -12
- package/dist/src/core/InputSearch/style.js +0 -47
- package/dist/src/core/InputSlider/InputSlider.namespace-test.d.ts +0 -1
- package/dist/src/core/InputSlider/InputSlider.namespace-test.js +0 -7
- package/dist/src/core/InputSlider/__snapshots__/index.test.js.snap +0 -124
- package/dist/src/core/InputSlider/index.d.ts +0 -8
- package/dist/src/core/InputSlider/index.js +0 -23
- package/dist/src/core/InputSlider/index.stories.d.ts +0 -43
- package/dist/src/core/InputSlider/index.stories.js +0 -160
- package/dist/src/core/InputSlider/index.test.d.ts +0 -1
- package/dist/src/core/InputSlider/index.test.js +0 -52
- package/dist/src/core/InputSlider/style.d.ts +0 -76
- package/dist/src/core/InputSlider/style.js +0 -34
- package/dist/src/core/InputText/InputText.namespace-test.d.ts +0 -1
- package/dist/src/core/InputText/InputText.namespace-test.js +0 -7
- package/dist/src/core/InputText/__snapshots__/index.test.js.snap +0 -10
- package/dist/src/core/InputText/index.d.ts +0 -14
- package/dist/src/core/InputText/index.js +0 -52
- package/dist/src/core/InputText/index.stories.d.ts +0 -29
- package/dist/src/core/InputText/index.stories.js +0 -100
- package/dist/src/core/InputText/index.test.d.ts +0 -1
- package/dist/src/core/InputText/index.test.js +0 -67
- package/dist/src/core/InputText/style.d.ts +0 -13
- package/dist/src/core/InputText/style.js +0 -45
- package/dist/src/core/InputToggle/InputToggle.namespace-test.d.ts +0 -1
- package/dist/src/core/InputToggle/InputToggle.namespace-test.js +0 -7
- package/dist/src/core/InputToggle/__snapshots__/index.test.js.snap +0 -26
- package/dist/src/core/InputToggle/index.d.ts +0 -7
- package/dist/src/core/InputToggle/index.js +0 -42
- package/dist/src/core/InputToggle/index.stories.d.ts +0 -20
- package/dist/src/core/InputToggle/index.stories.js +0 -63
- package/dist/src/core/InputToggle/index.test.d.ts +0 -1
- package/dist/src/core/InputToggle/index.test.js +0 -52
- package/dist/src/core/InputToggle/style.d.ts +0 -9
- package/dist/src/core/InputToggle/style.js +0 -38
- package/dist/src/core/Link/Link.namespace-test.d.ts +0 -1
- package/dist/src/core/Link/Link.namespace-test.js +0 -7
- package/dist/src/core/Link/index.d.ts +0 -8
- package/dist/src/core/Link/index.js +0 -28
- package/dist/src/core/Link/index.stories.d.ts +0 -27
- package/dist/src/core/Link/index.stories.js +0 -99
- package/dist/src/core/Link/style.d.ts +0 -9
- package/dist/src/core/Link/style.js +0 -30
- package/dist/src/core/List/List.namespace-test.d.ts +0 -1
- package/dist/src/core/List/List.namespace-test.js +0 -7
- package/dist/src/core/List/index.d.ts +0 -8
- package/dist/src/core/List/index.js +0 -23
- package/dist/src/core/List/index.stories.d.ts +0 -4
- package/dist/src/core/List/index.stories.js +0 -30
- package/dist/src/core/List/style.d.ts +0 -17
- package/dist/src/core/List/style.js +0 -33
- package/dist/src/core/ListItem/ListItem.namespace-test.d.ts +0 -1
- package/dist/src/core/ListItem/ListItem.namespace-test.js +0 -7
- package/dist/src/core/ListItem/index.d.ts +0 -9
- package/dist/src/core/ListItem/index.js +0 -24
- package/dist/src/core/ListItem/style.d.ts +0 -26
- package/dist/src/core/ListItem/style.js +0 -56
- package/dist/src/core/ListSubheader/ListSubheader.namespace-test.d.ts +0 -1
- package/dist/src/core/ListSubheader/ListSubheader.namespace-test.js +0 -7
- package/dist/src/core/ListSubheader/index.d.ts +0 -7
- package/dist/src/core/ListSubheader/index.js +0 -22
- package/dist/src/core/ListSubheader/style.d.ts +0 -12
- package/dist/src/core/ListSubheader/style.js +0 -16
- package/dist/src/core/LoadingIndicator/LoadingIndicator.namespace-test.d.ts +0 -1
- package/dist/src/core/LoadingIndicator/LoadingIndicator.namespace-test.js +0 -7
- package/dist/src/core/LoadingIndicator/index.d.ts +0 -4
- package/dist/src/core/LoadingIndicator/index.js +0 -13
- package/dist/src/core/LoadingIndicator/index.stories.d.ts +0 -24
- package/dist/src/core/LoadingIndicator/index.stories.js +0 -77
- package/dist/src/core/LoadingIndicator/index.test.d.ts +0 -1
- package/dist/src/core/LoadingIndicator/index.test.js +0 -41
- package/dist/src/core/LoadingIndicator/style.d.ts +0 -7
- package/dist/src/core/LoadingIndicator/style.js +0 -36
- package/dist/src/core/Menu/Menu.namespace-test.d.ts +0 -1
- package/dist/src/core/Menu/Menu.namespace-test.js +0 -8
- package/dist/src/core/Menu/index.d.ts +0 -7
- package/dist/src/core/Menu/index.js +0 -30
- package/dist/src/core/Menu/index.stories.d.ts +0 -17
- package/dist/src/core/Menu/index.stories.js +0 -55
- package/dist/src/core/Menu/style.d.ts +0 -1
- package/dist/src/core/Menu/style.js +0 -15
- package/dist/src/core/MenuItem/MenuItem.namespace-test.d.ts +0 -1
- package/dist/src/core/MenuItem/MenuItem.namespace-test.js +0 -8
- package/dist/src/core/MenuItem/index.d.ts +0 -21
- package/dist/src/core/MenuItem/index.js +0 -42
- package/dist/src/core/MenuItem/index.stories.d.ts +0 -35
- package/dist/src/core/MenuItem/index.stories.js +0 -188
- package/dist/src/core/MenuItem/index.test.d.ts +0 -1
- package/dist/src/core/MenuItem/index.test.js +0 -41
- package/dist/src/core/MenuItem/style.d.ts +0 -65
- package/dist/src/core/MenuItem/style.js +0 -58
- package/dist/src/core/MenuSelect/index.d.ts +0 -19
- package/dist/src/core/MenuSelect/index.js +0 -70
- package/dist/src/core/MenuSelect/index.stories.d.ts +0 -34
- package/dist/src/core/MenuSelect/index.stories.js +0 -154
- package/dist/src/core/MenuSelect/style.d.ts +0 -12
- package/dist/src/core/MenuSelect/style.js +0 -45
- package/dist/src/core/NavigationJumpTo/NavigationJumpTo.namespace-test.d.ts +0 -1
- package/dist/src/core/NavigationJumpTo/NavigationJumpTo.namespace-test.js +0 -13
- package/dist/src/core/NavigationJumpTo/__snapshots__/index.test.js.snap +0 -319
- package/dist/src/core/NavigationJumpTo/index.d.ts +0 -13
- package/dist/src/core/NavigationJumpTo/index.js +0 -111
- package/dist/src/core/NavigationJumpTo/index.stories.d.ts +0 -56
- package/dist/src/core/NavigationJumpTo/index.stories.js +0 -216
- package/dist/src/core/NavigationJumpTo/index.test.d.ts +0 -1
- package/dist/src/core/NavigationJumpTo/index.test.js +0 -87
- package/dist/src/core/NavigationJumpTo/style.d.ts +0 -106
- package/dist/src/core/NavigationJumpTo/style.js +0 -27
- package/dist/src/core/NavigationJumpTo/useIntersection.d.ts +0 -19
- package/dist/src/core/NavigationJumpTo/useIntersection.js +0 -67
- package/dist/src/core/Notification/Notification.namespace-test.d.ts +0 -1
- package/dist/src/core/Notification/Notification.namespace-test.js +0 -8
- package/dist/src/core/Notification/index.d.ts +0 -17
- package/dist/src/core/Notification/index.js +0 -70
- package/dist/src/core/Notification/index.stories.d.ts +0 -43
- package/dist/src/core/Notification/index.stories.js +0 -186
- package/dist/src/core/Notification/index.test.d.ts +0 -1
- package/dist/src/core/Notification/index.test.js +0 -115
- package/dist/src/core/Notification/style.d.ts +0 -1
- package/dist/src/core/Notification/style.js +0 -26
- package/dist/src/core/Pagination/Pagination.namespace-test.d.ts +0 -1
- package/dist/src/core/Pagination/Pagination.namespace-test.js +0 -8
- package/dist/src/core/Pagination/components/PageListDropdown/index.d.ts +0 -7
- package/dist/src/core/Pagination/components/PageListDropdown/index.js +0 -27
- package/dist/src/core/Pagination/components/PageListDropdown/style.d.ts +0 -1
- package/dist/src/core/Pagination/components/PageListDropdown/style.js +0 -14
- package/dist/src/core/Pagination/index.d.ts +0 -15
- package/dist/src/core/Pagination/index.js +0 -47
- package/dist/src/core/Pagination/index.stories.d.ts +0 -21
- package/dist/src/core/Pagination/index.stories.js +0 -99
- package/dist/src/core/Pagination/index.test.d.ts +0 -1
- package/dist/src/core/Pagination/index.test.js +0 -128
- package/dist/src/core/Pagination/style.d.ts +0 -13
- package/dist/src/core/Pagination/style.js +0 -62
- package/dist/src/core/Pagination/usePagination.d.ts +0 -9
- package/dist/src/core/Pagination/usePagination.js +0 -69
- package/dist/src/core/SegmentedControl/SegmentedControl.namespace-test.d.ts +0 -1
- package/dist/src/core/SegmentedControl/SegmentedControl.namespace-test.js +0 -12
- package/dist/src/core/SegmentedControl/index.d.ts +0 -15
- package/dist/src/core/SegmentedControl/index.js +0 -38
- package/dist/src/core/SegmentedControl/index.stories.d.ts +0 -49
- package/dist/src/core/SegmentedControl/index.stories.js +0 -128
- package/dist/src/core/SegmentedControl/index.test.d.ts +0 -1
- package/dist/src/core/SegmentedControl/index.test.js +0 -41
- package/dist/src/core/SegmentedControl/style.d.ts +0 -2
- package/dist/src/core/SegmentedControl/style.js +0 -23
- package/dist/src/core/Table/Table.namespace-test.d.ts +0 -1
- package/dist/src/core/Table/Table.namespace-test.js +0 -7
- package/dist/src/core/Table/components/common.d.ts +0 -6
- package/dist/src/core/Table/components/common.js +0 -5
- package/dist/src/core/Table/index.d.ts +0 -7
- package/dist/src/core/Table/index.js +0 -21
- package/dist/src/core/Table/index.stories.d.ts +0 -18
- package/dist/src/core/Table/index.stories.js +0 -64
- package/dist/src/core/Table/index.test.d.ts +0 -1
- package/dist/src/core/Table/index.test.js +0 -89
- package/dist/src/core/Table/style.d.ts +0 -2
- package/dist/src/core/Table/style.js +0 -10
- package/dist/src/core/TableHeader/TableHeader.namespace-test.d.ts +0 -1
- package/dist/src/core/TableHeader/TableHeader.namespace-test.js +0 -7
- package/dist/src/core/TableHeader/index.d.ts +0 -6
- package/dist/src/core/TableHeader/index.js +0 -25
- package/dist/src/core/TableHeader/index.stories.d.ts +0 -12
- package/dist/src/core/TableHeader/index.stories.js +0 -38
- package/dist/src/core/TableHeader/index.test.d.ts +0 -1
- package/dist/src/core/TableHeader/index.test.js +0 -41
- package/dist/src/core/TableHeader/style.d.ts +0 -2
- package/dist/src/core/TableHeader/style.js +0 -14
- package/dist/src/core/TableRow/TableRow.namespace-test.d.ts +0 -1
- package/dist/src/core/TableRow/TableRow.namespace-test.js +0 -7
- package/dist/src/core/TableRow/__snapshots__/index.test.js.snap +0 -100
- package/dist/src/core/TableRow/index.d.ts +0 -13
- package/dist/src/core/TableRow/index.js +0 -28
- package/dist/src/core/TableRow/index.stories.d.ts +0 -24
- package/dist/src/core/TableRow/index.stories.js +0 -77
- package/dist/src/core/TableRow/index.test.d.ts +0 -1
- package/dist/src/core/TableRow/index.test.js +0 -92
- package/dist/src/core/TableRow/style.d.ts +0 -10
- package/dist/src/core/TableRow/style.js +0 -34
- package/dist/src/core/Tabs/Tabs.namespace-test.d.ts +0 -1
- package/dist/src/core/Tabs/Tabs.namespace-test.js +0 -8
- package/dist/src/core/Tabs/__snapshots__/index.test.js.snap +0 -46
- package/dist/src/core/Tabs/components/LabelWithCount/index.d.ts +0 -7
- package/dist/src/core/Tabs/components/LabelWithCount/index.js +0 -11
- package/dist/src/core/Tabs/components/LabelWithCount/style.d.ts +0 -10
- package/dist/src/core/Tabs/components/LabelWithCount/style.js +0 -43
- package/dist/src/core/Tabs/components/common.d.ts +0 -5
- package/dist/src/core/Tabs/components/common.js +0 -5
- package/dist/src/core/Tabs/index.d.ts +0 -13
- package/dist/src/core/Tabs/index.js +0 -89
- package/dist/src/core/Tabs/index.stories.d.ts +0 -38
- package/dist/src/core/Tabs/index.stories.js +0 -154
- package/dist/src/core/Tabs/index.test.d.ts +0 -1
- package/dist/src/core/Tabs/index.test.js +0 -48
- package/dist/src/core/Tabs/style.d.ts +0 -115
- package/dist/src/core/Tabs/style.js +0 -53
- package/dist/src/core/Tag/Tag.namespace-test.d.ts +0 -1
- package/dist/src/core/Tag/Tag.namespace-test.js +0 -7
- package/dist/src/core/Tag/index.d.ts +0 -17
- package/dist/src/core/Tag/index.js +0 -27
- package/dist/src/core/Tag/index.stories.d.ts +0 -98
- package/dist/src/core/Tag/index.stories.js +0 -238
- package/dist/src/core/Tag/index.test.d.ts +0 -1
- package/dist/src/core/Tag/index.test.js +0 -40
- package/dist/src/core/Tag/index.testUtils.d.ts +0 -8
- package/dist/src/core/Tag/index.testUtils.js +0 -108
- package/dist/src/core/Tag/style.d.ts +0 -29
- package/dist/src/core/Tag/style.js +0 -100
- package/dist/src/core/TagFilter/TagFilter.namespace-test.d.ts +0 -1
- package/dist/src/core/TagFilter/TagFilter.namespace-test.js +0 -8
- package/dist/src/core/TagFilter/__snapshots__/index.test.js.snap +0 -46
- package/dist/src/core/TagFilter/index.d.ts +0 -12
- package/dist/src/core/TagFilter/index.js +0 -23
- package/dist/src/core/TagFilter/index.stories.d.ts +0 -44
- package/dist/src/core/TagFilter/index.stories.js +0 -121
- package/dist/src/core/TagFilter/index.test.d.ts +0 -1
- package/dist/src/core/TagFilter/index.test.js +0 -40
- package/dist/src/core/TagFilter/style.d.ts +0 -7
- package/dist/src/core/TagFilter/style.js +0 -19
- package/dist/src/core/Tooltip/Tooltip.namespace-test.d.ts +0 -1
- package/dist/src/core/Tooltip/Tooltip.namespace-test.js +0 -7
- package/dist/src/core/Tooltip/index.d.ts +0 -14
- package/dist/src/core/Tooltip/index.js +0 -87
- package/dist/src/core/Tooltip/index.stories.d.ts +0 -48
- package/dist/src/core/Tooltip/index.stories.js +0 -257
- package/dist/src/core/Tooltip/index.test.d.ts +0 -1
- package/dist/src/core/Tooltip/index.test.js +0 -102
- package/dist/src/core/Tooltip/style.d.ts +0 -23
- package/dist/src/core/Tooltip/style.js +0 -47
- package/dist/src/core/TooltipCondensed/TooltipCondensed.namespace-test.d.ts +0 -1
- package/dist/src/core/TooltipCondensed/TooltipCondensed.namespace-test.js +0 -7
- package/dist/src/core/TooltipCondensed/index.d.ts +0 -13
- package/dist/src/core/TooltipCondensed/index.js +0 -43
- package/dist/src/core/TooltipCondensed/index.stories.d.ts +0 -27
- package/dist/src/core/TooltipCondensed/index.stories.js +0 -72
- package/dist/src/core/TooltipCondensed/index.test.d.ts +0 -1
- package/dist/src/core/TooltipCondensed/index.test.js +0 -85
- package/dist/src/core/TooltipCondensed/style.d.ts +0 -6
- package/dist/src/core/TooltipCondensed/style.js +0 -22
- package/dist/src/core/TooltipTable/TooltipTable.namespace-test.d.ts +0 -1
- package/dist/src/core/TooltipTable/TooltipTable.namespace-test.js +0 -23
- package/dist/src/core/TooltipTable/__snapshots__/index.test.js.snap +0 -272
- package/dist/src/core/TooltipTable/index.d.ts +0 -8
- package/dist/src/core/TooltipTable/index.js +0 -35
- package/dist/src/core/TooltipTable/index.stories.d.ts +0 -32
- package/dist/src/core/TooltipTable/index.stories.js +0 -128
- package/dist/src/core/TooltipTable/index.test.d.ts +0 -1
- package/dist/src/core/TooltipTable/index.test.js +0 -109
- package/dist/src/core/TooltipTable/style.d.ts +0 -25
- package/dist/src/core/TooltipTable/style.js +0 -46
- package/dist/src/core/styles/common/constants/black.d.ts +0 -3
- package/dist/src/core/styles/common/constants/black.js +0 -7
- package/dist/src/core/styles/common/constants/boxShadows.d.ts +0 -5
- package/dist/src/core/styles/common/constants/boxShadows.js +0 -9
- package/dist/src/core/styles/common/constants/fontWeights.d.ts +0 -7
- package/dist/src/core/styles/common/constants/fontWeights.js +0 -11
- package/dist/src/core/styles/common/constants/gray.d.ts +0 -8
- package/dist/src/core/styles/common/constants/gray.js +0 -12
- package/dist/src/core/styles/common/constants/spaces.d.ts +0 -11
- package/dist/src/core/styles/common/constants/spaces.js +0 -15
- package/dist/src/core/styles/common/constants/white.d.ts +0 -3
- package/dist/src/core/styles/common/constants/white.js +0 -7
- package/dist/src/core/styles/common/defaultTheme.d.ts +0 -129
- package/dist/src/core/styles/common/defaultTheme.js +0 -414
- package/dist/src/core/styles/common/mixins/fonts.d.ts +0 -27
- package/dist/src/core/styles/common/mixins/fonts.js +0 -60
- package/dist/src/core/styles/common/selectors/theme.d.ts +0 -15
- package/dist/src/core/styles/common/selectors/theme.js +0 -63
- package/dist/src/core/styles/index.d.ts +0 -3
- package/dist/src/core/styles/index.js +0 -19
- package/dist/src/index.d.ts +0 -100
- package/dist/src/index.js +0 -170
- package/dist/tsconfig-namespace-check.tsbuildinfo +0 -1
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<Dialog /> Default story renders snapshot 1`] = `
|
|
4
|
-
<button
|
|
5
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium css-gsef57-MuiButtonBase-root-MuiButton-root"
|
|
6
|
-
tabindex="0"
|
|
7
|
-
type="button"
|
|
8
|
-
>
|
|
9
|
-
Open
|
|
10
|
-
m
|
|
11
|
-
<span
|
|
12
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
13
|
-
/>
|
|
14
|
-
</button>
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 1`] = `
|
|
18
|
-
<h2
|
|
19
|
-
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-uq0kkp-MuiTypography-root-MuiDialogTitle-root"
|
|
20
|
-
data-testid="dialog-title"
|
|
21
|
-
id="mui-2"
|
|
22
|
-
>
|
|
23
|
-
<button
|
|
24
|
-
aria-label="Close"
|
|
25
|
-
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-zrciyy-MuiButtonBase-root-MuiIconButton-root"
|
|
26
|
-
tabindex="0"
|
|
27
|
-
type="button"
|
|
28
|
-
>
|
|
29
|
-
<div
|
|
30
|
-
class="css-1ft6wgl"
|
|
31
|
-
>
|
|
32
|
-
<svg
|
|
33
|
-
aria-hidden="true"
|
|
34
|
-
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1q6hio5-MuiSvgIcon-root"
|
|
35
|
-
data-jest-file-name="IconXMarkLarge.svg"
|
|
36
|
-
data-jest-svg-name="IconXMarkLarge"
|
|
37
|
-
data-testid="IconXMarkLarge"
|
|
38
|
-
fillcontrast="white"
|
|
39
|
-
focusable="false"
|
|
40
|
-
viewBox="0 0 22 22"
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
<span
|
|
44
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
45
|
-
/>
|
|
46
|
-
</button>
|
|
47
|
-
<p
|
|
48
|
-
class="MuiTypography-root MuiTypography-body1 css-1c15p3u-MuiTypography-root"
|
|
49
|
-
>
|
|
50
|
-
Title
|
|
51
|
-
</p>
|
|
52
|
-
<p
|
|
53
|
-
class="MuiTypography-root MuiTypography-body1 css-l7o1a2-MuiTypography-root"
|
|
54
|
-
>
|
|
55
|
-
Optional subtitle
|
|
56
|
-
</p>
|
|
57
|
-
</h2>
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 2`] = `
|
|
61
|
-
<div
|
|
62
|
-
class="MuiDialogContent-root css-1sec6bs-MuiDialogContent-root"
|
|
63
|
-
data-testid="dialog-content"
|
|
64
|
-
>
|
|
65
|
-
Content Module
|
|
66
|
-
</div>
|
|
67
|
-
`;
|
|
68
|
-
|
|
69
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 3`] = `
|
|
70
|
-
<div
|
|
71
|
-
class="MuiDialogActions-root MuiDialogActions-spacing css-z3x4od-MuiDialogActions-root"
|
|
72
|
-
data-testid="dialog-actions"
|
|
73
|
-
>
|
|
74
|
-
<button
|
|
75
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-39o5u-MuiButtonBase-root-MuiButton-root"
|
|
76
|
-
tabindex="0"
|
|
77
|
-
type="button"
|
|
78
|
-
>
|
|
79
|
-
Secondary Action
|
|
80
|
-
<span
|
|
81
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
82
|
-
/>
|
|
83
|
-
</button>
|
|
84
|
-
<button
|
|
85
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-4j8oia-MuiButtonBase-root-MuiButton-root"
|
|
86
|
-
tabindex="0"
|
|
87
|
-
type="button"
|
|
88
|
-
>
|
|
89
|
-
Primary Action
|
|
90
|
-
<span
|
|
91
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
92
|
-
/>
|
|
93
|
-
</button>
|
|
94
|
-
</div>
|
|
95
|
-
`;
|
|
96
|
-
|
|
97
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 4`] = `
|
|
98
|
-
<h2
|
|
99
|
-
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-uq0kkp-MuiTypography-root-MuiDialogTitle-root"
|
|
100
|
-
data-testid="dialog-title"
|
|
101
|
-
id="mui-3"
|
|
102
|
-
>
|
|
103
|
-
<button
|
|
104
|
-
aria-label="Close"
|
|
105
|
-
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-zrciyy-MuiButtonBase-root-MuiIconButton-root"
|
|
106
|
-
tabindex="0"
|
|
107
|
-
type="button"
|
|
108
|
-
>
|
|
109
|
-
<div
|
|
110
|
-
class="css-1ft6wgl"
|
|
111
|
-
>
|
|
112
|
-
<svg
|
|
113
|
-
aria-hidden="true"
|
|
114
|
-
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1q6hio5-MuiSvgIcon-root"
|
|
115
|
-
data-jest-file-name="IconXMarkLarge.svg"
|
|
116
|
-
data-jest-svg-name="IconXMarkLarge"
|
|
117
|
-
data-testid="IconXMarkLarge"
|
|
118
|
-
fillcontrast="white"
|
|
119
|
-
focusable="false"
|
|
120
|
-
viewBox="0 0 22 22"
|
|
121
|
-
/>
|
|
122
|
-
</div>
|
|
123
|
-
<span
|
|
124
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
125
|
-
/>
|
|
126
|
-
</button>
|
|
127
|
-
<p
|
|
128
|
-
class="MuiTypography-root MuiTypography-body1 css-1c15p3u-MuiTypography-root"
|
|
129
|
-
>
|
|
130
|
-
Title
|
|
131
|
-
</p>
|
|
132
|
-
<p
|
|
133
|
-
class="MuiTypography-root MuiTypography-body1 css-l7o1a2-MuiTypography-root"
|
|
134
|
-
>
|
|
135
|
-
Optional subtitle
|
|
136
|
-
</p>
|
|
137
|
-
</h2>
|
|
138
|
-
`;
|
|
139
|
-
|
|
140
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 5`] = `
|
|
141
|
-
<div
|
|
142
|
-
class="MuiDialogContent-root css-1sec6bs-MuiDialogContent-root"
|
|
143
|
-
data-testid="dialog-content"
|
|
144
|
-
>
|
|
145
|
-
Content Module
|
|
146
|
-
</div>
|
|
147
|
-
`;
|
|
148
|
-
|
|
149
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 6`] = `
|
|
150
|
-
<div
|
|
151
|
-
class="MuiDialogActions-root MuiDialogActions-spacing css-z3x4od-MuiDialogActions-root"
|
|
152
|
-
data-testid="dialog-actions"
|
|
153
|
-
>
|
|
154
|
-
<button
|
|
155
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-39o5u-MuiButtonBase-root-MuiButton-root"
|
|
156
|
-
tabindex="0"
|
|
157
|
-
type="button"
|
|
158
|
-
>
|
|
159
|
-
Secondary Action
|
|
160
|
-
<span
|
|
161
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
162
|
-
/>
|
|
163
|
-
</button>
|
|
164
|
-
<button
|
|
165
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-4j8oia-MuiButtonBase-root-MuiButton-root"
|
|
166
|
-
tabindex="0"
|
|
167
|
-
type="button"
|
|
168
|
-
>
|
|
169
|
-
Primary Action
|
|
170
|
-
<span
|
|
171
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
172
|
-
/>
|
|
173
|
-
</button>
|
|
174
|
-
</div>
|
|
175
|
-
`;
|
|
176
|
-
|
|
177
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 7`] = `
|
|
178
|
-
<h2
|
|
179
|
-
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-uq0kkp-MuiTypography-root-MuiDialogTitle-root"
|
|
180
|
-
data-testid="dialog-title"
|
|
181
|
-
id="mui-4"
|
|
182
|
-
>
|
|
183
|
-
<button
|
|
184
|
-
aria-label="Close"
|
|
185
|
-
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-zrciyy-MuiButtonBase-root-MuiIconButton-root"
|
|
186
|
-
tabindex="0"
|
|
187
|
-
type="button"
|
|
188
|
-
>
|
|
189
|
-
<div
|
|
190
|
-
class="css-1ft6wgl"
|
|
191
|
-
>
|
|
192
|
-
<svg
|
|
193
|
-
aria-hidden="true"
|
|
194
|
-
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1q6hio5-MuiSvgIcon-root"
|
|
195
|
-
data-jest-file-name="IconXMarkLarge.svg"
|
|
196
|
-
data-jest-svg-name="IconXMarkLarge"
|
|
197
|
-
data-testid="IconXMarkLarge"
|
|
198
|
-
fillcontrast="white"
|
|
199
|
-
focusable="false"
|
|
200
|
-
viewBox="0 0 22 22"
|
|
201
|
-
/>
|
|
202
|
-
</div>
|
|
203
|
-
<span
|
|
204
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
205
|
-
/>
|
|
206
|
-
</button>
|
|
207
|
-
<p
|
|
208
|
-
class="MuiTypography-root MuiTypography-body1 css-1c15p3u-MuiTypography-root"
|
|
209
|
-
>
|
|
210
|
-
Title
|
|
211
|
-
</p>
|
|
212
|
-
<p
|
|
213
|
-
class="MuiTypography-root MuiTypography-body1 css-l7o1a2-MuiTypography-root"
|
|
214
|
-
>
|
|
215
|
-
Optional subtitle
|
|
216
|
-
</p>
|
|
217
|
-
</h2>
|
|
218
|
-
`;
|
|
219
|
-
|
|
220
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 8`] = `
|
|
221
|
-
<div
|
|
222
|
-
class="MuiDialogContent-root css-1sec6bs-MuiDialogContent-root"
|
|
223
|
-
data-testid="dialog-content"
|
|
224
|
-
>
|
|
225
|
-
Content Module
|
|
226
|
-
</div>
|
|
227
|
-
`;
|
|
228
|
-
|
|
229
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 9`] = `
|
|
230
|
-
<div
|
|
231
|
-
class="MuiDialogActions-root MuiDialogActions-spacing css-z3x4od-MuiDialogActions-root"
|
|
232
|
-
data-testid="dialog-actions"
|
|
233
|
-
>
|
|
234
|
-
<button
|
|
235
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-39o5u-MuiButtonBase-root-MuiButton-root"
|
|
236
|
-
tabindex="0"
|
|
237
|
-
type="button"
|
|
238
|
-
>
|
|
239
|
-
Secondary Action
|
|
240
|
-
<span
|
|
241
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
242
|
-
/>
|
|
243
|
-
</button>
|
|
244
|
-
<button
|
|
245
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-4j8oia-MuiButtonBase-root-MuiButton-root"
|
|
246
|
-
tabindex="0"
|
|
247
|
-
type="button"
|
|
248
|
-
>
|
|
249
|
-
Primary Action
|
|
250
|
-
<span
|
|
251
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
252
|
-
/>
|
|
253
|
-
</button>
|
|
254
|
-
</div>
|
|
255
|
-
`;
|
|
256
|
-
|
|
257
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 10`] = `
|
|
258
|
-
<h2
|
|
259
|
-
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-uq0kkp-MuiTypography-root-MuiDialogTitle-root"
|
|
260
|
-
data-testid="dialog-title"
|
|
261
|
-
id="mui-5"
|
|
262
|
-
>
|
|
263
|
-
<button
|
|
264
|
-
aria-label="Close"
|
|
265
|
-
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-zrciyy-MuiButtonBase-root-MuiIconButton-root"
|
|
266
|
-
tabindex="0"
|
|
267
|
-
type="button"
|
|
268
|
-
>
|
|
269
|
-
<div
|
|
270
|
-
class="css-1ft6wgl"
|
|
271
|
-
>
|
|
272
|
-
<svg
|
|
273
|
-
aria-hidden="true"
|
|
274
|
-
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1q6hio5-MuiSvgIcon-root"
|
|
275
|
-
data-jest-file-name="IconXMarkLarge.svg"
|
|
276
|
-
data-jest-svg-name="IconXMarkLarge"
|
|
277
|
-
data-testid="IconXMarkLarge"
|
|
278
|
-
fillcontrast="white"
|
|
279
|
-
focusable="false"
|
|
280
|
-
viewBox="0 0 22 22"
|
|
281
|
-
/>
|
|
282
|
-
</div>
|
|
283
|
-
<span
|
|
284
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
285
|
-
/>
|
|
286
|
-
</button>
|
|
287
|
-
<p
|
|
288
|
-
class="MuiTypography-root MuiTypography-body1 css-1c15p3u-MuiTypography-root"
|
|
289
|
-
>
|
|
290
|
-
Title
|
|
291
|
-
</p>
|
|
292
|
-
<p
|
|
293
|
-
class="MuiTypography-root MuiTypography-body1 css-l7o1a2-MuiTypography-root"
|
|
294
|
-
>
|
|
295
|
-
Optional subtitle
|
|
296
|
-
</p>
|
|
297
|
-
</h2>
|
|
298
|
-
`;
|
|
299
|
-
|
|
300
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 11`] = `
|
|
301
|
-
<div
|
|
302
|
-
class="MuiDialogContent-root css-1sec6bs-MuiDialogContent-root"
|
|
303
|
-
data-testid="dialog-content"
|
|
304
|
-
>
|
|
305
|
-
Content Module
|
|
306
|
-
</div>
|
|
307
|
-
`;
|
|
308
|
-
|
|
309
|
-
exports[`<Dialog /> Dialog all sizes match the snapshots 12`] = `
|
|
310
|
-
<div
|
|
311
|
-
class="MuiDialogActions-root MuiDialogActions-spacing css-z3x4od-MuiDialogActions-root"
|
|
312
|
-
data-testid="dialog-actions"
|
|
313
|
-
>
|
|
314
|
-
<button
|
|
315
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-39o5u-MuiButtonBase-root-MuiButton-root"
|
|
316
|
-
tabindex="0"
|
|
317
|
-
type="button"
|
|
318
|
-
>
|
|
319
|
-
Secondary Action
|
|
320
|
-
<span
|
|
321
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
322
|
-
/>
|
|
323
|
-
</button>
|
|
324
|
-
<button
|
|
325
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-4j8oia-MuiButtonBase-root-MuiButton-root"
|
|
326
|
-
tabindex="0"
|
|
327
|
-
type="button"
|
|
328
|
-
>
|
|
329
|
-
Primary Action
|
|
330
|
-
<span
|
|
331
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
332
|
-
/>
|
|
333
|
-
</button>
|
|
334
|
-
</div>
|
|
335
|
-
`;
|
|
336
|
-
|
|
337
|
-
exports[`<Dialog /> renders Dialog left positioned buttons 1`] = `
|
|
338
|
-
<div
|
|
339
|
-
class="MuiDialogActions-root MuiDialogActions-spacing css-1ordac3-MuiDialogActions-root"
|
|
340
|
-
data-testid="dialog-actions"
|
|
341
|
-
>
|
|
342
|
-
<button
|
|
343
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-4j8oia-MuiButtonBase-root-MuiButton-root"
|
|
344
|
-
tabindex="0"
|
|
345
|
-
type="button"
|
|
346
|
-
>
|
|
347
|
-
Primary Action
|
|
348
|
-
<span
|
|
349
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
350
|
-
/>
|
|
351
|
-
</button>
|
|
352
|
-
<button
|
|
353
|
-
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-39o5u-MuiButtonBase-root-MuiButton-root"
|
|
354
|
-
tabindex="0"
|
|
355
|
-
type="button"
|
|
356
|
-
>
|
|
357
|
-
Secondary Action
|
|
358
|
-
<span
|
|
359
|
-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
360
|
-
/>
|
|
361
|
-
</button>
|
|
362
|
-
</div>
|
|
363
|
-
`;
|
|
364
|
-
|
|
365
|
-
exports[`<Dialog /> renders Dialog without title X button 1`] = `
|
|
366
|
-
<h2
|
|
367
|
-
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-uq0kkp-MuiTypography-root-MuiDialogTitle-root"
|
|
368
|
-
data-testid="dialog-title"
|
|
369
|
-
id="mui-6"
|
|
370
|
-
>
|
|
371
|
-
<p
|
|
372
|
-
class="MuiTypography-root MuiTypography-body1 css-1c15p3u-MuiTypography-root"
|
|
373
|
-
>
|
|
374
|
-
Title
|
|
375
|
-
</p>
|
|
376
|
-
<p
|
|
377
|
-
class="MuiTypography-root MuiTypography-body1 css-l7o1a2-MuiTypography-root"
|
|
378
|
-
>
|
|
379
|
-
Optional subtitle
|
|
380
|
-
</p>
|
|
381
|
-
</h2>
|
|
382
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DialogProps as RawDialogProps } from "@mui/material";
|
|
2
|
-
import React, { ComponentType } from "react";
|
|
3
|
-
import { DialogPaperProps } from "../DialogPaper";
|
|
4
|
-
import { DialogContext } from "./components/common";
|
|
5
|
-
export { DialogContext };
|
|
6
|
-
interface DialogExtraProps {
|
|
7
|
-
canClickOutsideClose?: boolean;
|
|
8
|
-
onClose?: (event: object, reason: string) => void;
|
|
9
|
-
sdsSize?: "xs" | "s" | "m" | "l";
|
|
10
|
-
PaperComponent?: ComponentType<DialogPaperProps>;
|
|
11
|
-
DialogComponent?: ComponentType<RawDialogProps>;
|
|
12
|
-
}
|
|
13
|
-
export type DialogProps = Omit<RawDialogProps, "nonce" | "rev" | "rel" | "autoFocus" | "content"> & DialogExtraProps;
|
|
14
|
-
/**
|
|
15
|
-
* @see https://mui.com/material-ui/react-dialog/
|
|
16
|
-
*/
|
|
17
|
-
declare const Dialog: React.ForwardRefExoticComponent<Pick<DialogProps, "className" | "style" | "classes" | "onChange" | "children" | "sx" | "color" | "maxWidth" | "transitionDuration" | "translate" | "container" | "TransitionComponent" | "TransitionProps" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "fullWidth" | "open" | "components" | "componentsProps" | "slotProps" | "slots" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "BackdropComponent" | "BackdropProps" | "fullScreen" | "PaperProps" | "scroll" | keyof DialogExtraProps> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export default Dialog;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DialogContext = void 0;
|
|
29
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
var material_1 = require("@mui/material");
|
|
31
|
-
var react_1 = require("react");
|
|
32
|
-
var DialogPaper_1 = __importDefault(require("../DialogPaper"));
|
|
33
|
-
var common_1 = require("./components/common");
|
|
34
|
-
Object.defineProperty(exports, "DialogContext", { enumerable: true, get: function () { return common_1.DialogContext; } });
|
|
35
|
-
/**
|
|
36
|
-
* @see https://mui.com/material-ui/react-dialog/
|
|
37
|
-
*/
|
|
38
|
-
var Dialog = (0, react_1.forwardRef)(function Dialog(props, ref) {
|
|
39
|
-
var _a = props.canClickOutsideClose, canClickOutsideClose = _a === void 0 ? true : _a, onClose = props.onClose, _b = props.sdsSize, sdsSize = _b === void 0 ? "m" : _b, _c = props.PaperComponent, PaperComponent = _c === void 0 ? DialogPaper_1.default : _c, rest = __rest(props, ["canClickOutsideClose", "onClose", "sdsSize", "PaperComponent"]);
|
|
40
|
-
var contextValue = (0, react_1.useMemo)(function () { return ({ sdsSize: sdsSize }); }, [sdsSize]);
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(common_1.DialogContext.Provider, { value: contextValue, children: (0, jsx_runtime_1.jsx)(material_1.Dialog, __assign({ ref: ref, PaperComponent: PaperComponent }, rest, { onClose: function (event, reason) {
|
|
42
|
-
if (!canClickOutsideClose &&
|
|
43
|
-
reason &&
|
|
44
|
-
(reason === "backdropClick" || reason === "escapeKeyDown"))
|
|
45
|
-
return;
|
|
46
|
-
if (onClose)
|
|
47
|
-
onClose(event, reason);
|
|
48
|
-
} })) }));
|
|
49
|
-
});
|
|
50
|
-
exports.default = Dialog;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Args } from "@storybook/react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Args>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Default: {
|
|
5
|
-
args: {
|
|
6
|
-
buttonPosition: string;
|
|
7
|
-
longContent: boolean;
|
|
8
|
-
sdsSize: string;
|
|
9
|
-
titleOnClose: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const LivePreview: {
|
|
13
|
-
args: {
|
|
14
|
-
titleOnClose: boolean;
|
|
15
|
-
};
|
|
16
|
-
parameters: {
|
|
17
|
-
snapshot: {
|
|
18
|
-
skip: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
render: (args: Args) => JSX.Element;
|
|
22
|
-
};
|
|
23
|
-
export declare const Test: {
|
|
24
|
-
parameters: {
|
|
25
|
-
snapshot: {
|
|
26
|
-
skip: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
render: (args: Args) => JSX.Element;
|
|
30
|
-
};
|
|
31
|
-
export declare const TestNoTitleOnClose: {
|
|
32
|
-
parameters: {
|
|
33
|
-
snapshot: {
|
|
34
|
-
skip: boolean;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
render: (args: Args) => JSX.Element;
|
|
38
|
-
};
|
|
39
|
-
export declare const TestButtonPositionLeft: {
|
|
40
|
-
parameters: {
|
|
41
|
-
snapshot: {
|
|
42
|
-
skip: boolean;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
render: (args: Args) => JSX.Element;
|
|
46
|
-
};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.TestButtonPositionLeft = exports.TestNoTitleOnClose = exports.Test = exports.LivePreview = exports.Default = void 0;
|
|
29
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
var react_1 = require("react");
|
|
31
|
-
var Button_1 = __importDefault(require("../Button"));
|
|
32
|
-
var DialogActions_1 = __importDefault(require("../DialogActions"));
|
|
33
|
-
var DialogContent_1 = __importDefault(require("../DialogContent"));
|
|
34
|
-
var DialogTitle_1 = __importDefault(require("../DialogTitle"));
|
|
35
|
-
var index_1 = __importDefault(require("./index"));
|
|
36
|
-
var LONG_TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus feugiat turpis vitae odio posuere mattis. Duis tincidunt felis nibh, eget posuere diam sagittis ut. Mauris eleifend neque nec lacinia efficitur. Donec vitae diam ac massa tempus facilisis nec in mauris. Etiam id dignissim odio. Nam risus nibh, tempor ut sem quis, consequat condimentum diam. In risus leo, lacinia eget porttitor eget, viverra vel nulla. Vivamus et nibh sit amet tellus pharetra dictum ut nec ante. Nunc malesuada consequat quam, non fringilla nunc convallis et. Curabitur facilisis tristique est. Curabitur auctor pulvinar diam, ut pretium ante. Etiam a finibus elit. Cras in augue malesuada, cursus turpis posuere, volutpat ex. Sed sagittis suscipit congue. Aliquam et erat nec lacus vulputate mattis. Sed commodo purus ac dignissim sagittis. Donec nisi erat, gravida eget malesuada non, gravida quis nisl. In iaculis ipsum et varius finibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pulvinar enim a eros condimentum, ac viverra magna volutpat. Proin sed cursus mauris. Curabitur condimentum lobortis placerat. Proin semper mauris id velit elementum, sed pellentesque arcu pulvinar. Curabitur hendrerit enim sit amet ante imperdiet porta. Ut semper neque et faucibus lacinia. Sed auctor ut ex ut ullamcorper. Integer nunc eros, efficitur vitae sapien at, imperdiet dictum magna. Mauris eget bibendum libero, in bibendum sem. Nulla convallis eu eros ac efficitur. Fusce porttitor, ante scelerisque dignissim sollicitudin, tortor lectus volutpat sapien, nec viverra lectus ipsum non libero. Donec aliquet quam sit amet turpis sodales condimentum. Nunc vehicula iaculis nulla. Etiam tempor dui non ullamcorper facilisis. Nam ut fermentum arcu. Etiam porttitor elementum leo a tempus. Sed posuere feugiat est sollicitudin lacinia. Vivamus vel lectus laoreet, rutrum sem sed, blandit libero. Sed pulvinar urna consectetur risus eleifend, in iaculis purus eleifend. Donec quis maximus dui. Suspendisse sit amet ultricies mi. Etiam malesuada odio eget felis posuere pulvinar. Aliquam nec pellentesque risus, in scelerisque sapien. Vivamus vel lobortis mi, id consequat diam. Quisque aliquam dignissim sem.";
|
|
37
|
-
var Dialog = function (props) {
|
|
38
|
-
var buttonPosition = props.buttonPosition, _a = props.longContent, longContent = _a === void 0 ? false : _a, _b = props.isOpen, propsIsOpen = _b === void 0 ? false : _b, titleOnClose = props.titleOnClose, rest = __rest(props, ["buttonPosition", "longContent", "isOpen", "titleOnClose"]);
|
|
39
|
-
var _c = (0, react_1.useState)(propsIsOpen), isOpen = _c[0], setIsOpen = _c[1];
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Button_1.default, { sdsStyle: "minimal", sdsType: "primary", onClick: handleClick, children: ["Open ", rest.sdsSize] }), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ onClose: handleClose, open: isOpen }, rest, { children: [(0, jsx_runtime_1.jsx)(DialogTitle_1.default, { title: "Title", subtitle: "Optional subtitle", onClose: titleOnClose ? handleClose : undefined, "data-testid": "dialog-title" }), (0, jsx_runtime_1.jsx)(DialogContent_1.default, { "data-testid": "dialog-content", children: longContent ? LONG_TEXT : "Content Module" }), (0, jsx_runtime_1.jsx)(DialogActions_1.default, { "data-testid": "dialog-actions", buttonPosition: buttonPosition, children: (0, jsx_runtime_1.jsx)(Buttons, {}) })] }))] }));
|
|
41
|
-
function Buttons() {
|
|
42
|
-
if (buttonPosition === "left") {
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, { sdsStyle: "square", sdsType: "primary", onClick: handleClose, children: "Primary Action" }), (0, jsx_runtime_1.jsx)(Button_1.default, { sdsStyle: "square", sdsType: "secondary", onClick: handleClose, children: "Secondary Action" })] }));
|
|
44
|
-
}
|
|
45
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, { sdsStyle: "square", sdsType: "secondary", onClick: handleClose, children: "Secondary Action" }), (0, jsx_runtime_1.jsx)(Button_1.default, { sdsStyle: "square", sdsType: "primary", onClick: handleClose, children: "Primary Action" })] }));
|
|
46
|
-
}
|
|
47
|
-
function handleClick() {
|
|
48
|
-
setIsOpen(true);
|
|
49
|
-
}
|
|
50
|
-
function handleClose() {
|
|
51
|
-
setIsOpen(false);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.default = {
|
|
55
|
-
argTypes: {
|
|
56
|
-
buttonPosition: {
|
|
57
|
-
control: {
|
|
58
|
-
type: "radio",
|
|
59
|
-
},
|
|
60
|
-
options: ["left", "right"],
|
|
61
|
-
},
|
|
62
|
-
canClickOutsideClose: {
|
|
63
|
-
control: {
|
|
64
|
-
type: "boolean",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
longContent: {
|
|
68
|
-
control: {
|
|
69
|
-
type: "boolean",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
sdsSize: {
|
|
73
|
-
control: {
|
|
74
|
-
type: "radio",
|
|
75
|
-
},
|
|
76
|
-
options: ["xs", "s", "m", "l"],
|
|
77
|
-
},
|
|
78
|
-
titleOnClose: {
|
|
79
|
-
control: {
|
|
80
|
-
type: "boolean",
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
component: Dialog,
|
|
85
|
-
title: "Dialog",
|
|
86
|
-
};
|
|
87
|
-
// Default
|
|
88
|
-
exports.Default = {
|
|
89
|
-
args: {
|
|
90
|
-
buttonPosition: "right",
|
|
91
|
-
longContent: true,
|
|
92
|
-
sdsSize: "m",
|
|
93
|
-
titleOnClose: false,
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
// LivePreview
|
|
97
|
-
function LivePreviewDemo(props) {
|
|
98
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "xs" }, props)), (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "s" }, props)), (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "m" }, props)), (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "l" }, props))] }));
|
|
99
|
-
}
|
|
100
|
-
exports.LivePreview = {
|
|
101
|
-
args: {
|
|
102
|
-
titleOnClose: false,
|
|
103
|
-
},
|
|
104
|
-
parameters: {
|
|
105
|
-
snapshot: {
|
|
106
|
-
skip: true,
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(LivePreviewDemo, __assign({}, args)); },
|
|
110
|
-
};
|
|
111
|
-
// Test
|
|
112
|
-
function TestDemo(props) {
|
|
113
|
-
var defaultProps = __assign(__assign({}, props), { isOpen: true, titleOnClose: true });
|
|
114
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "xs" }, defaultProps)), (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "s" }, defaultProps)), (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "m" }, defaultProps)), (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "l" }, defaultProps))] }));
|
|
115
|
-
}
|
|
116
|
-
exports.Test = {
|
|
117
|
-
parameters: {
|
|
118
|
-
snapshot: {
|
|
119
|
-
skip: true,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(TestDemo, __assign({}, args)); },
|
|
123
|
-
};
|
|
124
|
-
// Test No Title On Close
|
|
125
|
-
function TestNoTitleOnCloseDemo(props) {
|
|
126
|
-
return (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "xs" }, props, { isOpen: true }));
|
|
127
|
-
}
|
|
128
|
-
exports.TestNoTitleOnClose = {
|
|
129
|
-
parameters: {
|
|
130
|
-
snapshot: {
|
|
131
|
-
skip: true,
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(TestNoTitleOnCloseDemo, __assign({}, args)); },
|
|
135
|
-
};
|
|
136
|
-
// Test Button Position Left
|
|
137
|
-
function TestButtonPositionLeftDemo(props) {
|
|
138
|
-
return (0, jsx_runtime_1.jsx)(Dialog, __assign({ sdsSize: "xs" }, props, { isOpen: true, buttonPosition: "left" }));
|
|
139
|
-
}
|
|
140
|
-
exports.TestButtonPositionLeft = {
|
|
141
|
-
parameters: {
|
|
142
|
-
snapshot: {
|
|
143
|
-
skip: true,
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(TestButtonPositionLeftDemo, __assign({}, args)); },
|
|
147
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|