@czi-sds/components 15.3.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 +132 -80
- package/dist/index.cjs.js +926 -734
- package/dist/index.esm.d.ts +132 -80
- package/dist/index.esm.js +928 -737
- 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 -122
- package/dist/src/core/NavigationJumpTo/index.stories.d.ts +0 -56
- package/dist/src/core/NavigationJumpTo/index.stories.js +0 -218
- 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,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonIconExtraProps, ButtonIconSizeToTypes } from "../ButtonIcon/style";
|
|
3
|
-
import { CommonThemeProps } from "../styles";
|
|
4
|
-
export interface BannerExtraProps<ButtonIconSize extends keyof ButtonIconSizeToTypes> extends CommonThemeProps {
|
|
5
|
-
sdsType: ButtonIconSizeToTypes[ButtonIconSize];
|
|
6
|
-
}
|
|
7
|
-
export declare const Centered: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
-
export declare const IconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & ButtonIconExtraProps<keyof ButtonIconSizeToTypes>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const StyledButtonIcon: import("@emotion/styled").StyledComponent<Pick<ButtonIconExtraProps<keyof ButtonIconSizeToTypes> & Omit<import("@mui/material").IconButtonProps, "content" | "autoFocus" | "nonce" | "rel" | "rev"> & import("../ButtonIcon").ButtonIconInternalProps<keyof import("../Icon").IconNameToSizes>, keyof import("@mui/material/OverridableComponent").CommonProps | "onChange" | "children" | "sx" | "color" | "translate" | "form" | "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" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "name" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "edge" | keyof ButtonIconExtraProps<keyof ButtonIconSizeToTypes> | keyof import("../ButtonIcon").ButtonIconInternalProps<keyof import("../Icon").IconNameToSizes>> & import("react").RefAttributes<HTMLButtonElement | null> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & ButtonIconExtraProps<keyof ButtonIconSizeToTypes> & {
|
|
10
|
-
bannerType: string;
|
|
11
|
-
}, {}, {}>;
|
|
12
|
-
export declare const Text: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & CommonThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const StyledBanner: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & BannerExtraProps<keyof ButtonIconSizeToTypes>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.StyledBanner = exports.Text = exports.StyledButtonIcon = exports.IconWrapper = exports.Centered = void 0;
|
|
11
|
-
var styles_1 = require("@mui/material/styles");
|
|
12
|
-
var ButtonIcon_1 = __importDefault(require("../ButtonIcon"));
|
|
13
|
-
var styles_2 = require("../styles");
|
|
14
|
-
exports.Centered = (0, styles_1.styled)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1 1 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n flex: 1 1 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
15
|
-
exports.IconWrapper = (0, styles_1.styled)("div")(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
16
|
-
var iconSizes = (0, styles_2.getIconSizes)(props);
|
|
17
|
-
var spaces = (0, styles_2.getSpaces)(props);
|
|
18
|
-
return "\n height: ".concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.height, "px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n ");
|
|
19
|
-
});
|
|
20
|
-
var doNotForwardPropsButtonIcon = ["bannerType", "textChild"];
|
|
21
|
-
exports.StyledButtonIcon = (0, styles_1.styled)(ButtonIcon_1.default, {
|
|
22
|
-
shouldForwardProp: function (prop) {
|
|
23
|
-
return !doNotForwardPropsButtonIcon.includes(prop);
|
|
24
|
-
},
|
|
25
|
-
})(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), function (props) {
|
|
26
|
-
var spaces = (0, styles_2.getSpaces)(props);
|
|
27
|
-
return "\n flex: 0 0 auto;\n margin: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n ");
|
|
28
|
-
}, function (props) {
|
|
29
|
-
var bannerType = props.bannerType;
|
|
30
|
-
var colors = (0, styles_2.getColors)(props);
|
|
31
|
-
if (bannerType !== "primary")
|
|
32
|
-
return "";
|
|
33
|
-
return "\n svg:hover {\n fill: ".concat(colors === null || colors === void 0 ? void 0 : colors.primary[300], ";\n }\n ");
|
|
34
|
-
});
|
|
35
|
-
exports.Text = (0, styles_1.styled)("div")(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), styles_2.fontBodyS, function (props) {
|
|
36
|
-
var typography = (0, styles_2.getTypography)(props);
|
|
37
|
-
return "\n font-family: ".concat(typography === null || typography === void 0 ? void 0 : typography.fontFamily, ";\n ");
|
|
38
|
-
});
|
|
39
|
-
var primary = function (props) {
|
|
40
|
-
var colors = (0, styles_2.getColors)(props);
|
|
41
|
-
return "\n background-color: ".concat(colors === null || colors === void 0 ? void 0 : colors.info[400], ";\n color: white;\n svg {\n fill: white;\n }\n ");
|
|
42
|
-
};
|
|
43
|
-
var secondary = function (props) {
|
|
44
|
-
var colors = (0, styles_2.getColors)(props);
|
|
45
|
-
return "\n background-color: ".concat(colors === null || colors === void 0 ? void 0 : colors.info[100], ";\n color: black;\n ");
|
|
46
|
-
};
|
|
47
|
-
var doNotForwardProps = ["sdsType", "textChild"];
|
|
48
|
-
exports.StyledBanner = (0, styles_1.styled)("div", {
|
|
49
|
-
shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
|
|
50
|
-
})(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n height: 40px;\n width: 100%;\n\n ", "\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n height: 40px;\n width: 100%;\n\n ", "\n\n ", "\n"])), styles_2.fontBodyS, function (props) {
|
|
51
|
-
var sdsType = props.sdsType;
|
|
52
|
-
var typography = (0, styles_2.getTypography)(props);
|
|
53
|
-
return "\n ".concat(sdsType === "primary" ? primary(props) : "", "\n ").concat(sdsType === "secondary" ? secondary(props) : "", "\n font-family: ").concat(typography === null || typography === void 0 ? void 0 : typography.fontFamily, ";\n ");
|
|
54
|
-
});
|
|
55
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
var components_1 = require("@czi-sds/components");
|
|
16
|
-
var ButtonNameSpaceTest = function (props) {
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(components_1.Button, __assign({ sdsType: "primary", sdsStyle: "rounded" }, props, { children: "Button" })));
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonProps as RawButtonProps } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface SdsProps {
|
|
4
|
-
isAllCaps?: boolean;
|
|
5
|
-
isRounded?: boolean;
|
|
6
|
-
sdsStyle?: "minimal" | "rounded" | "square";
|
|
7
|
-
sdsType?: "primary" | "secondary";
|
|
8
|
-
}
|
|
9
|
-
export type ButtonProps<C extends React.ElementType = "button"> = Omit<RawButtonProps<C, {
|
|
10
|
-
component?: C;
|
|
11
|
-
}>, "nonce" | "rev" | "rel" | "autoFocus" | "content"> & SdsProps;
|
|
12
|
-
/**
|
|
13
|
-
* @see https://mui.com/material-ui/react-button/
|
|
14
|
-
*/
|
|
15
|
-
declare const Button: React.ForwardRefExoticComponent<Pick<Omit<RawButtonProps<React.ElementType<any>, {
|
|
16
|
-
component?: React.ElementType<any> | undefined;
|
|
17
|
-
}>, "content" | "autoFocus" | "nonce" | "rel" | "rev"> & SdsProps, string | number | symbol> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
export default Button;
|
|
@@ -1,54 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var warnings_1 = require("src/common/warnings");
|
|
20
|
-
var style_1 = require("./style");
|
|
21
|
-
/**
|
|
22
|
-
* @see https://mui.com/material-ui/react-button/
|
|
23
|
-
*/
|
|
24
|
-
var Button = react_1.default.forwardRef(function (props, ref) {
|
|
25
|
-
var sdsStyle = props === null || props === void 0 ? void 0 : props.sdsStyle;
|
|
26
|
-
var sdsType = props === null || props === void 0 ? void 0 : props.sdsType;
|
|
27
|
-
if (!sdsStyle || !sdsType) {
|
|
28
|
-
(0, warnings_1.showWarningIfFirstOccurence)(warnings_1.SDSWarningTypes.ButtonMissingSDSProps);
|
|
29
|
-
}
|
|
30
|
-
if (typeof (props === null || props === void 0 ? void 0 : props.isAllCaps) === "boolean" && sdsStyle !== "minimal") {
|
|
31
|
-
// eslint-disable-next-line no-console
|
|
32
|
-
console.warn("Warning: isAllCaps is only applied to buttons with sdsStyle='minimal'.");
|
|
33
|
-
}
|
|
34
|
-
// isAllCaps is only used for the Minimal Button. It defaults to true.
|
|
35
|
-
var isAllCaps = typeof (props === null || props === void 0 ? void 0 : props.isAllCaps) === "boolean" ? props === null || props === void 0 ? void 0 : props.isAllCaps : true;
|
|
36
|
-
var propsWithDefault = __assign(__assign({}, props), { isAllCaps: isAllCaps });
|
|
37
|
-
switch (true) {
|
|
38
|
-
case sdsStyle === "rounded" && sdsType === "primary":
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(style_1.RoundedButton, __assign({ color: "primary", ref: ref, variant: "contained" }, propsWithDefault)));
|
|
40
|
-
case sdsStyle === "rounded" && sdsType === "secondary":
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(style_1.RoundedButton, __assign({ color: "primary", ref: ref, variant: "outlined" }, propsWithDefault)));
|
|
42
|
-
case sdsStyle === "square" && sdsType === "primary":
|
|
43
|
-
return ((0, jsx_runtime_1.jsx)(style_1.SquareButton, __assign({ color: "primary", ref: ref, variant: "contained" }, propsWithDefault)));
|
|
44
|
-
case sdsStyle === "square" && sdsType === "secondary":
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(style_1.SquareButton, __assign({ color: "primary", ref: ref, variant: "outlined" }, propsWithDefault)));
|
|
46
|
-
case sdsStyle === "minimal" && sdsType === "primary":
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(style_1.PrimaryMinimalButton, __assign({ color: "primary", ref: ref, variant: "text" }, propsWithDefault)));
|
|
48
|
-
case sdsStyle === "minimal" && sdsType === "secondary":
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)(style_1.SecondaryMinimalButton, __assign({ color: "primary", ref: ref, variant: "text" }, propsWithDefault)));
|
|
50
|
-
default:
|
|
51
|
-
return (0, jsx_runtime_1.jsx)(style_1.StyledButton, __assign({}, propsWithDefault, { ref: ref }));
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
exports.default = Button;
|
|
@@ -1,72 +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
|
-
disabled: boolean;
|
|
7
|
-
sdsStyle: string;
|
|
8
|
-
sdsType: string;
|
|
9
|
-
text: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const RoundedLivePreview: {
|
|
13
|
-
args: {
|
|
14
|
-
label: string;
|
|
15
|
-
};
|
|
16
|
-
parameters: {
|
|
17
|
-
snapshot: {
|
|
18
|
-
skip: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
render: (args: Args) => JSX.Element;
|
|
22
|
-
};
|
|
23
|
-
export declare const SquareLivePreview: {
|
|
24
|
-
args: {
|
|
25
|
-
label: string;
|
|
26
|
-
};
|
|
27
|
-
parameters: {
|
|
28
|
-
snapshot: {
|
|
29
|
-
skip: boolean;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
render: (args: Args) => JSX.Element;
|
|
33
|
-
};
|
|
34
|
-
export declare const MinimalLivePreview: {
|
|
35
|
-
args: {
|
|
36
|
-
label: string;
|
|
37
|
-
};
|
|
38
|
-
parameters: {
|
|
39
|
-
snapshot: {
|
|
40
|
-
skip: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
render: (args: Args) => JSX.Element;
|
|
44
|
-
};
|
|
45
|
-
export declare const ScreenshotTest: {
|
|
46
|
-
args: {
|
|
47
|
-
label: string;
|
|
48
|
-
};
|
|
49
|
-
parameters: {
|
|
50
|
-
controls: {
|
|
51
|
-
exclude: string[];
|
|
52
|
-
};
|
|
53
|
-
snapshot: {
|
|
54
|
-
skip: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
render: (args: Args) => JSX.Element;
|
|
58
|
-
};
|
|
59
|
-
export declare const Test: {
|
|
60
|
-
args: {
|
|
61
|
-
disabled: boolean;
|
|
62
|
-
sdsStyle: string;
|
|
63
|
-
sdsType: string;
|
|
64
|
-
text: string;
|
|
65
|
-
};
|
|
66
|
-
parameters: {
|
|
67
|
-
snapshot: {
|
|
68
|
-
skip: boolean;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
render: (props: Args) => JSX.Element;
|
|
72
|
-
};
|
|
@@ -1,215 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Test = exports.ScreenshotTest = exports.MinimalLivePreview = exports.SquareLivePreview = exports.RoundedLivePreview = exports.Default = void 0;
|
|
18
|
-
var react_1 = require("react");
|
|
19
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
20
|
-
var addon_actions_1 = require("@storybook/addon-actions");
|
|
21
|
-
var Icon_1 = __importDefault(require("../Icon"));
|
|
22
|
-
var index_1 = __importDefault(require("./index"));
|
|
23
|
-
var SDS_STYLES = ["rounded", "square", "minimal"];
|
|
24
|
-
var SDS_TYPES = ["primary", "secondary"];
|
|
25
|
-
var ICON_OPTIONS = [
|
|
26
|
-
undefined,
|
|
27
|
-
(0, jsx_runtime_1.jsx)(Icon_1.default, { sdsSize: "l", sdsIcon: "download", sdsType: "button" }, "download"),
|
|
28
|
-
];
|
|
29
|
-
var DISABLED_OPTIONS = [false, true];
|
|
30
|
-
var PSEUDO_STATES = ["default", "hover", "active", "focus-visible"];
|
|
31
|
-
var TEXT = "Label";
|
|
32
|
-
var actions = {
|
|
33
|
-
onClick: (0, addon_actions_1.action)("onClick"),
|
|
34
|
-
};
|
|
35
|
-
var Button = function (props) {
|
|
36
|
-
var sdsType = props.sdsType, sdsStyle = props.sdsStyle;
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(index_1.default, __assign({ sdsType: sdsType, sdsStyle: sdsStyle }, props, { children: TEXT })));
|
|
38
|
-
};
|
|
39
|
-
exports.default = {
|
|
40
|
-
argTypes: {
|
|
41
|
-
// https://storybook.js.org/docs/react/essentials/actions#action-argtype-annotation
|
|
42
|
-
onClick: { action: actions.onClick },
|
|
43
|
-
sdsStyle: {
|
|
44
|
-
control: { type: "select" },
|
|
45
|
-
options: SDS_STYLES,
|
|
46
|
-
},
|
|
47
|
-
sdsType: {
|
|
48
|
-
control: { type: "select" },
|
|
49
|
-
options: SDS_TYPES,
|
|
50
|
-
},
|
|
51
|
-
text: {
|
|
52
|
-
control: {
|
|
53
|
-
type: "text",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
component: Button,
|
|
58
|
-
title: "Button",
|
|
59
|
-
};
|
|
60
|
-
// Default
|
|
61
|
-
exports.Default = {
|
|
62
|
-
args: {
|
|
63
|
-
disabled: false,
|
|
64
|
-
sdsStyle: "rounded",
|
|
65
|
-
sdsType: "primary",
|
|
66
|
-
text: "Label",
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
// Rounded Live Preview
|
|
70
|
-
var placementStyles = {
|
|
71
|
-
display: "grid",
|
|
72
|
-
gridColumnGap: "10px",
|
|
73
|
-
gridRowGap: "0px",
|
|
74
|
-
gridTemplateColumns: "repeat(6, 120px)",
|
|
75
|
-
gridTemplateRows: "1fr",
|
|
76
|
-
};
|
|
77
|
-
var RoundedLivePreviewDemo = function (props) {
|
|
78
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: placementStyles, children: [(0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { sdsStyle: "rounded", sdsType: "primary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { sdsIcon: "download", sdsSize: "s", sdsType: "button" }), sdsStyle: "rounded", sdsType: "primary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { sdsStyle: "rounded", sdsType: "secondary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { sdsIcon: "download", sdsSize: "s", sdsType: "button" }), sdsStyle: "rounded", sdsType: "secondary", children: TEXT }))] }));
|
|
79
|
-
};
|
|
80
|
-
exports.RoundedLivePreview = {
|
|
81
|
-
args: {
|
|
82
|
-
label: "Label",
|
|
83
|
-
},
|
|
84
|
-
parameters: {
|
|
85
|
-
snapshot: {
|
|
86
|
-
skip: true,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(RoundedLivePreviewDemo, __assign({}, args)); },
|
|
90
|
-
};
|
|
91
|
-
// Square Live Preview
|
|
92
|
-
var SquareLivePreviewDemo = function (props) {
|
|
93
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: placementStyles, children: [(0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { sdsStyle: "square", sdsType: "primary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { sdsIcon: "download", sdsSize: "s", sdsType: "button" }), sdsStyle: "square", sdsType: "primary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { sdsStyle: "square", sdsType: "secondary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { sdsIcon: "download", sdsSize: "s", sdsType: "button" }), sdsStyle: "square", sdsType: "secondary", children: TEXT }))] }));
|
|
94
|
-
};
|
|
95
|
-
exports.SquareLivePreview = {
|
|
96
|
-
args: {
|
|
97
|
-
label: "Label",
|
|
98
|
-
},
|
|
99
|
-
parameters: {
|
|
100
|
-
snapshot: {
|
|
101
|
-
skip: true,
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(SquareLivePreviewDemo, __assign({}, args)); },
|
|
105
|
-
};
|
|
106
|
-
// Minimal Live Preview
|
|
107
|
-
var MinimalLivePreviewDemo = function (props) {
|
|
108
|
-
var minimalPlacementStyles = {
|
|
109
|
-
display: "grid",
|
|
110
|
-
gridColumnGap: "24px",
|
|
111
|
-
gridRowGap: "0px",
|
|
112
|
-
gridTemplateColumns: "repeat(3, min-content)",
|
|
113
|
-
gridTemplateRows: "1fr",
|
|
114
|
-
};
|
|
115
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: minimalPlacementStyles, children: [(0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { sdsStyle: "minimal", sdsType: "primary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { sdsIcon: "download", sdsSize: "s", sdsType: "button" }), sdsStyle: "minimal", sdsType: "primary", children: TEXT })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({}, props, { sdsStyle: "minimal", sdsType: "secondary", children: TEXT }))] }));
|
|
116
|
-
};
|
|
117
|
-
exports.MinimalLivePreview = {
|
|
118
|
-
args: {
|
|
119
|
-
label: "Label",
|
|
120
|
-
},
|
|
121
|
-
parameters: {
|
|
122
|
-
snapshot: {
|
|
123
|
-
skip: true,
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(MinimalLivePreviewDemo, __assign({}, args)); },
|
|
127
|
-
};
|
|
128
|
-
// Screenshot Test
|
|
129
|
-
var ScreenshotTestDemo = function (props) {
|
|
130
|
-
var topLevel = {
|
|
131
|
-
columnGap: "20px",
|
|
132
|
-
display: "inline-grid",
|
|
133
|
-
fontFamily: "sans-serif",
|
|
134
|
-
marginRight: "50px",
|
|
135
|
-
};
|
|
136
|
-
var displayContents = {
|
|
137
|
-
display: "contents",
|
|
138
|
-
};
|
|
139
|
-
var penultimateLevel = {
|
|
140
|
-
display: "contents",
|
|
141
|
-
};
|
|
142
|
-
var bottomLevel = {
|
|
143
|
-
marginBottom: 10,
|
|
144
|
-
};
|
|
145
|
-
var fontWeightNormal = {
|
|
146
|
-
fontWeight: "normal",
|
|
147
|
-
};
|
|
148
|
-
var topLabel = __assign(__assign({}, fontWeightNormal), { fontSize: "2em", gridColumn: "1 / 6", marginBottom: 0 });
|
|
149
|
-
var midLabel = __assign(__assign({}, fontWeightNormal), { borderStyle: "solid none none none", gridColumn: "1 / 6", justifySelf: "stretch", paddingTop: 10 });
|
|
150
|
-
var secondLabel = __assign(__assign({}, midLabel), { borderWidth: "2px", fontSize: "1.17em", margin: "20px 0" });
|
|
151
|
-
var thirdLabel = __assign(__assign({}, midLabel), { alignSelf: "end", borderWidth: "1px", fontWeight: "normal", margin: "0 0 5px 0" });
|
|
152
|
-
var bottomLabel = __assign(__assign({}, fontWeightNormal), { margin: "10px 0" });
|
|
153
|
-
// loop through all SDS_STYLES
|
|
154
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: SDS_STYLES.map(function (sdsStyle) {
|
|
155
|
-
return (0, jsx_runtime_1.jsx)(ButtonStyleOption, { sdsStyle: sdsStyle }, sdsStyle);
|
|
156
|
-
}) }));
|
|
157
|
-
// loop through all SDS_TYPES + create headers for SDS_STYLES
|
|
158
|
-
function ButtonStyleOption(_a) {
|
|
159
|
-
var sdsStyle = _a.sdsStyle;
|
|
160
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: topLevel, children: [(0, jsx_runtime_1.jsxs)("h3", { style: topLabel, children: ["Style: ", (0, jsx_runtime_1.jsx)("b", { children: sdsStyle })] }), SDS_TYPES.map(function (type) {
|
|
161
|
-
return ((0, jsx_runtime_1.jsx)(ButtonTypeOption, { sdsStyle: sdsStyle, type: type }, type));
|
|
162
|
-
})] }));
|
|
163
|
-
}
|
|
164
|
-
// loop through all ICON_OPTIONS + create headers for SDS_TYPES
|
|
165
|
-
function ButtonTypeOption(_a) {
|
|
166
|
-
var sdsStyle = _a.sdsStyle, type = _a.type;
|
|
167
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: displayContents, children: [(0, jsx_runtime_1.jsxs)("h4", { style: secondLabel, children: ["Type: ", (0, jsx_runtime_1.jsx)("b", { children: type })] }), sdsStyle === "minimal" && type === "secondary" ? ((0, jsx_runtime_1.jsx)(ButtonIconOption, { sdsStyle: sdsStyle, type: type, icon: ICON_OPTIONS[0] }, String(ICON_OPTIONS[0]))) : (ICON_OPTIONS.map(function (icon) {
|
|
168
|
-
return ((0, jsx_runtime_1.jsx)(ButtonIconOption, { sdsStyle: sdsStyle, type: type, icon: icon }, String(icon)));
|
|
169
|
-
}))] }));
|
|
170
|
-
}
|
|
171
|
-
// loop through all DISABLED_OPTIONS + create headers for ICON_OPTIONS
|
|
172
|
-
function ButtonIconOption(_a) {
|
|
173
|
-
var sdsStyle = _a.sdsStyle, type = _a.type, icon = _a.icon;
|
|
174
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: displayContents, children: [(0, jsx_runtime_1.jsxs)("h5", { style: thirdLabel, children: ["Icon: ", (0, jsx_runtime_1.jsx)("b", { children: icon ? "yes" : "no" })] }), DISABLED_OPTIONS.map(function (disabled) {
|
|
175
|
-
return ((0, jsx_runtime_1.jsx)(ButtonDisabledOption, { sdsStyle: sdsStyle, type: type, icon: icon, disabled: disabled }, String(disabled)));
|
|
176
|
-
})] }));
|
|
177
|
-
}
|
|
178
|
-
// loop through all PSEUDO_STATES + create headers for DISABLED_OPTIONS, PSEUDO_STATES
|
|
179
|
-
function ButtonDisabledOption(_a) {
|
|
180
|
-
var sdsStyle = _a.sdsStyle, type = _a.type, icon = _a.icon, disabled = _a.disabled;
|
|
181
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: penultimateLevel, children: PSEUDO_STATES.map(function (state) {
|
|
182
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: bottomLevel, children: (disabled === false ||
|
|
183
|
-
(disabled === true && state === "default")) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("h6", { style: bottomLabel, children: [disabled === false ? "State: " : "Disabled: ", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("b", { children: disabled === false ? state : "true" })] }), (0, react_1.createElement)(index_1.default, __assign({}, props, { "data-testid": "button", sdsStyle: sdsStyle, sdsType: type, startIcon: icon, disabled: disabled, className: "pseudo-".concat(state), key: state }), TEXT)] })) }, state));
|
|
184
|
-
}) }));
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
exports.ScreenshotTest = {
|
|
188
|
-
args: {
|
|
189
|
-
label: "Label",
|
|
190
|
-
},
|
|
191
|
-
parameters: {
|
|
192
|
-
controls: {
|
|
193
|
-
exclude: ["onClick", "sdsStyle", "sdsType", "text"],
|
|
194
|
-
},
|
|
195
|
-
snapshot: {
|
|
196
|
-
skip: true,
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(ScreenshotTestDemo, __assign({}, args)); },
|
|
200
|
-
};
|
|
201
|
-
// Test
|
|
202
|
-
exports.Test = {
|
|
203
|
-
args: {
|
|
204
|
-
disabled: false,
|
|
205
|
-
sdsStyle: "rounded",
|
|
206
|
-
sdsType: "primary",
|
|
207
|
-
text: "Label",
|
|
208
|
-
},
|
|
209
|
-
parameters: {
|
|
210
|
-
snapshot: {
|
|
211
|
-
skip: true,
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
render: function (props) { return (0, jsx_runtime_1.jsx)(Button, __assign({}, props, { "data-testid": "button" })); },
|
|
215
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
-
var story_utils_1 = require("@chanzuckerberg/story-utils");
|
|
28
|
-
var react_1 = require("@storybook/react");
|
|
29
|
-
var react_2 = require("@testing-library/react");
|
|
30
|
-
var snapshotTestStoryFile = __importStar(require("./index.stories"));
|
|
31
|
-
var index_stories_1 = __importStar(require("./index.stories"));
|
|
32
|
-
var Test = (0, react_1.composeStory)(index_stories_1.Test, index_stories_1.default);
|
|
33
|
-
describe("<button />", function () {
|
|
34
|
-
(0, story_utils_1.generateSnapshots)(snapshotTestStoryFile);
|
|
35
|
-
it("renders Button component", function () {
|
|
36
|
-
(0, react_2.render)((0, jsx_runtime_1.jsx)(Test, {}));
|
|
37
|
-
var elements = react_2.screen.getAllByTestId("button");
|
|
38
|
-
expect(elements.length).toBeTruthy();
|
|
39
|
-
});
|
|
40
|
-
});
|