@czi-sds/components 15.3.0 → 15.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,28 +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 react_1 = require("react");
|
|
16
|
-
var style_1 = require("./style");
|
|
17
|
-
/**
|
|
18
|
-
* @see https://mui.com/material-ui/react-link/
|
|
19
|
-
*/
|
|
20
|
-
var Link = (0, react_1.forwardRef)(function (props, ref) {
|
|
21
|
-
var sdsStyle = props.sdsStyle;
|
|
22
|
-
var underline;
|
|
23
|
-
if (sdsStyle === "default") {
|
|
24
|
-
underline = "none";
|
|
25
|
-
}
|
|
26
|
-
return (0, jsx_runtime_1.jsx)(style_1.StyledLink, __assign({}, props, { underline: underline, ref: ref }));
|
|
27
|
-
});
|
|
28
|
-
exports.default = Link;
|
|
@@ -1,27 +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
|
-
sdsStyle: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const LivePreview: {
|
|
10
|
-
parameters: {
|
|
11
|
-
snapshot: {
|
|
12
|
-
skip: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
render: (args: Args) => JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export declare const ScreenshotTest: {
|
|
18
|
-
parameters: {
|
|
19
|
-
controls: {
|
|
20
|
-
exclude: string[];
|
|
21
|
-
};
|
|
22
|
-
snapshot: {
|
|
23
|
-
skip: boolean;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
render: (args: Args) => JSX.Element;
|
|
27
|
-
};
|
|
@@ -1,99 +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.ScreenshotTest = exports.LivePreview = exports.Default = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var index_1 = __importDefault(require("./index"));
|
|
20
|
-
var Link = function (props) {
|
|
21
|
-
var sdsStyle = props.sdsStyle;
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(index_1.default, __assign({ href: "/", sdsStyle: sdsStyle }, props, { children: "Test Link" })));
|
|
23
|
-
};
|
|
24
|
-
exports.default = {
|
|
25
|
-
argTypes: {
|
|
26
|
-
sdsStyle: {
|
|
27
|
-
control: { type: "select" },
|
|
28
|
-
options: ["default", "dashed"],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
component: Link,
|
|
32
|
-
title: "Link",
|
|
33
|
-
};
|
|
34
|
-
// Default
|
|
35
|
-
exports.Default = {
|
|
36
|
-
args: {
|
|
37
|
-
sdsStyle: "default",
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
// Live Preview
|
|
41
|
-
var livePreviewStyles = {
|
|
42
|
-
display: "grid",
|
|
43
|
-
fontFamily: "Open Sans",
|
|
44
|
-
gridColumnGap: "24px",
|
|
45
|
-
gridTemplateColumns: "repeat(2, 250px)",
|
|
46
|
-
};
|
|
47
|
-
var LivePreviewDemo = function (props) {
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: livePreviewStyles, children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("p", { children: "Lorem ipsum, dolor sit amet consectetur adipisicing elit." }), (0, jsx_runtime_1.jsx)(index_1.default, __assign({ href: "/", sdsStyle: "default" }, props, { children: "Learn More" }))] }), (0, jsx_runtime_1.jsxs)("p", { style: { backgroundColor: "#EFF2FC", padding: "10px" }, children: ["Lorem ipsum", " ", (0, jsx_runtime_1.jsx)(index_1.default, __assign({ href: "/", sdsStyle: "dashed" }, props, { children: "dolor sit apsidy" })), " ", "consectetur, adipisicing elit."] }), (0, jsx_runtime_1.jsxs)("p", { style: { backgroundColor: "#EFF2FC", padding: "10px" }, children: ["Lorem ipsum", " ", (0, jsx_runtime_1.jsx)(index_1.default, __assign({ href: "/", sdsStyle: "dashed", component: "button" }, props, { children: "button element" })), " ", "consectetur, adipisicing elit."] })] }));
|
|
49
|
-
};
|
|
50
|
-
exports.LivePreview = {
|
|
51
|
-
parameters: {
|
|
52
|
-
snapshot: {
|
|
53
|
-
skip: true,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(LivePreviewDemo, __assign({}, args)); },
|
|
57
|
-
};
|
|
58
|
-
// Screenshot test
|
|
59
|
-
var ScreenshotTestDemo = function () {
|
|
60
|
-
var SDS_STYLES = ["default", "dashed"];
|
|
61
|
-
var PSEUDO_STATES = ["default", "hover", "active", "focus"];
|
|
62
|
-
// loop through all SDS_STYLES
|
|
63
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: SDS_STYLES.map(function (sdsStyle) {
|
|
64
|
-
return (0, jsx_runtime_1.jsx)(LinkStyle, { sdsStyle: sdsStyle }, sdsStyle);
|
|
65
|
-
}) }));
|
|
66
|
-
// loop through all PSEUDO_STATES + create headers for SDS_STYLES, PSEUDO_STATES
|
|
67
|
-
function LinkStyle(_a) {
|
|
68
|
-
var sdsStyle = _a.sdsStyle;
|
|
69
|
-
var STYLE_LEVEL = {
|
|
70
|
-
columnGap: "20px",
|
|
71
|
-
display: "inline-grid",
|
|
72
|
-
fontFamily: "sans-serif",
|
|
73
|
-
marginRight: 50,
|
|
74
|
-
};
|
|
75
|
-
var STYLE_LABEL = {
|
|
76
|
-
fontSize: "2em",
|
|
77
|
-
gridColumn: "1 / 5",
|
|
78
|
-
marginBottom: 10,
|
|
79
|
-
};
|
|
80
|
-
var PSEUDO_STATE_LABEL = {
|
|
81
|
-
fontSize: "0.67em",
|
|
82
|
-
marginBottom: 15,
|
|
83
|
-
};
|
|
84
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: STYLE_LEVEL, children: [(0, jsx_runtime_1.jsxs)("p", { style: STYLE_LABEL, children: ["Style: ", (0, jsx_runtime_1.jsx)("b", { children: sdsStyle })] }), PSEUDO_STATES.map(function (state) {
|
|
85
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("p", { style: PSEUDO_STATE_LABEL, children: ["State: ", (0, jsx_runtime_1.jsx)("b", { children: state })] }), (0, jsx_runtime_1.jsx)(index_1.default, { href: "/", sdsStyle: sdsStyle, className: "pseudo-".concat(state), children: "Link text" }, state)] }, "div-".concat(state)));
|
|
86
|
-
})] }));
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
exports.ScreenshotTest = {
|
|
90
|
-
parameters: {
|
|
91
|
-
controls: {
|
|
92
|
-
exclude: ["sdsStyle"],
|
|
93
|
-
},
|
|
94
|
-
snapshot: {
|
|
95
|
-
skip: true,
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(ScreenshotTestDemo, __assign({}, args)); },
|
|
99
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LinkProps as RawLinkProps } from "@mui/material";
|
|
3
|
-
import { CommonThemeProps as StyleProps } from "../styles";
|
|
4
|
-
export type LinkProps<C extends React.ElementType = "a"> = RawLinkProps<C, {
|
|
5
|
-
component?: C;
|
|
6
|
-
}> & StyleProps & {
|
|
7
|
-
sdsStyle?: "default" | "dashed";
|
|
8
|
-
};
|
|
9
|
-
export declare const StyledLink: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").LinkTypeMap<{}, "a">>;
|
|
@@ -1,30 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StyledLink = void 0;
|
|
8
|
-
var react_1 = require("@emotion/react");
|
|
9
|
-
var material_1 = require("@mui/material");
|
|
10
|
-
var styles_1 = require("@mui/material/styles");
|
|
11
|
-
var styles_2 = require("../styles");
|
|
12
|
-
var sdsPropNames = ["sdsStyle"];
|
|
13
|
-
var defaultStyle = function (props) {
|
|
14
|
-
var _a, _b;
|
|
15
|
-
var theme = props.theme;
|
|
16
|
-
return (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n &:hover,\n &:focus {\n color: ", ";\n }\n "], ["\n color: ", ";\n\n &:hover,\n &:focus {\n color: ", ";\n }\n "])), (_a = theme === null || theme === void 0 ? void 0 : theme.app) === null || _a === void 0 ? void 0 : _a.colors.primary[400], (_b = theme === null || theme === void 0 ? void 0 : theme.app) === null || _b === void 0 ? void 0 : _b.colors.primary[500]);
|
|
17
|
-
};
|
|
18
|
-
var dashedStyle = function (props) {
|
|
19
|
-
var border = (0, styles_2.getBorders)(props);
|
|
20
|
-
return (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: inherit;\n border-bottom: ", ";\n\n &:hover,\n &:focus {\n text-decoration: none;\n border-bottom: ", ";\n }\n "], ["\n color: inherit;\n border-bottom: ", ";\n\n &:hover,\n &:focus {\n text-decoration: none;\n border-bottom: ", ";\n }\n "])), border === null || border === void 0 ? void 0 : border.link.dashed, border === null || border === void 0 ? void 0 : border.link.solid);
|
|
21
|
-
};
|
|
22
|
-
exports.StyledLink = (0, styles_1.styled)(material_1.Link, {
|
|
23
|
-
shouldForwardProp: function (prop) {
|
|
24
|
-
return !sdsPropNames.includes(prop.toString());
|
|
25
|
-
},
|
|
26
|
-
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
27
|
-
var sdsStyle = props.sdsStyle;
|
|
28
|
-
return (0, react_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), sdsStyle === "default" && defaultStyle(props), sdsStyle === "dashed" && dashedStyle(props));
|
|
29
|
-
});
|
|
30
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var components_1 = require("@czi-sds/components");
|
|
5
|
-
var ListSpaceTest = function (props) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)(components_1.List, { subheader: (0, jsx_runtime_1.jsx)(components_1.ListSubheader, { disableSticky: true, children: "Font sizes and spacing for an unordered list" }), children: (0, jsx_runtime_1.jsx)(components_1.ListItem, { fontSize: "l", marginBottom: "s", children: "fontSize=l marginBottom=s" }) }));
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ListProps as RawListProps } from "@mui/material";
|
|
2
|
-
import { ListExtraProps } from "./style";
|
|
3
|
-
export type ListProps = ListExtraProps & Omit<RawListProps, "nonce" | "rev" | "rel" | "autoFocus" | "content">;
|
|
4
|
-
/**
|
|
5
|
-
* @see https://mui.com/material-ui/react-list/
|
|
6
|
-
*/
|
|
7
|
-
declare const List: (props: ListProps) => JSX.Element;
|
|
8
|
-
export default List;
|
|
@@ -1,23 +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 style_1 = require("./style");
|
|
16
|
-
/**
|
|
17
|
-
* @see https://mui.com/material-ui/react-list/
|
|
18
|
-
*/
|
|
19
|
-
var List = function (props) {
|
|
20
|
-
var ordered = props.ordered;
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(style_1.StyledList, __assign({ component: ordered ? "ol" : "ul", disablePadding: true }, props)));
|
|
22
|
-
};
|
|
23
|
-
exports.default = List;
|
|
@@ -1,30 +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.Default = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var ListItem_1 = __importDefault(require("../ListItem"));
|
|
20
|
-
var ListSubheader_1 = __importDefault(require("../ListSubheader"));
|
|
21
|
-
var index_1 = __importDefault(require("./index"));
|
|
22
|
-
var List = function (props) {
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(index_1.default, __assign({ subheader: (0, jsx_runtime_1.jsx)(ListSubheader_1.default, { disableSticky: true, children: "Font sizes and spacing for an unordered list" }) }, props, { children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "l", marginBottom: "s", children: "fontSize=l marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "m", marginBottom: "s", children: "fontSize=m marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "s", marginBottom: "xs", children: "fontSize=s marginBottom=xs" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "xs", marginBottom: "xs", children: "fontSize=xs marginBottom=xs" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "xxs", marginBottom: "xs", children: "fontSize=xxs marginBottom=xs" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "xxxs", marginBottom: "xxs", children: "fontSize=xxxs marginBottom=xxs" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { fontSize: "m", children: (0, jsx_runtime_1.jsx)("div", { style: { width: "200px" }, children: "Really long list item here to make it wrap, so we can see if the bullet is top aligned" }) })] })), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ ordered: true, subheader: (0, jsx_runtime_1.jsx)(ListSubheader_1.default, { disableSticky: true, children: "Font sizes and spacing for a nested ordered list" }) }, props, { children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 1", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "l", marginBottom: "s", children: "fontSize=l marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "m", marginBottom: "s", children: "fontSize=m marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "s", marginBottom: "xs", children: "fontSize=s marginBottom=xs" })] })] }) }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 2", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "l", children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 2", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "l", marginBottom: "s", children: "fontSize=l marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "m", marginBottom: "s", children: "fontSize=m marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "s", marginBottom: "xs", children: "fontSize=s marginBottom=xs" })] })] }) }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "m", marginBottom: "s", children: "fontSize=m marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "s", marginBottom: "xs", children: "fontSize=s marginBottom=xs" })] })] }) }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 3", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "l", marginBottom: "s", children: "fontSize=l marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "m", marginBottom: "s", children: "fontSize=m marginBottom=s" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, fontSize: "s", marginBottom: "xs", children: "fontSize=s marginBottom=xs" })] })] }) })] })), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ ordered: true, subheader: (0, jsx_runtime_1.jsx)(ListSubheader_1.default, { disableSticky: true, children: "This is an ordered list" }) }, props, { children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 1." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 2." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 3." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 4." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 5." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 6." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 7." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 8." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 9." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 10." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "This is an ordered list item 11." })] })), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ ordered: true, subheader: (0, jsx_runtime_1.jsx)(ListSubheader_1.default, { disableSticky: true, children: "This is an unordered list" }) }, props, { children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 1." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 2." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 3." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 4." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 5." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 6." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 7." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 8." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 9." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 10." }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: "This is an unordered list item 11." })] })), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ ordered: true, subheader: (0, jsx_runtime_1.jsx)(ListSubheader_1.default, { disableSticky: true, children: "Font sizes and spacing for a nested ordered list" }) }, props, { children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 1", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" })] })] }) }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 2", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 2", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" })] })] }) }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" })] })] }) }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Nested List 3", (0, jsx_runtime_1.jsxs)(index_1.default, { ordered: true, children: [(0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" }), (0, jsx_runtime_1.jsx)(ListItem_1.default, { ordered: true, children: "Nested List item" })] })] }) })] }))] }));
|
|
24
|
-
};
|
|
25
|
-
exports.default = {
|
|
26
|
-
component: List,
|
|
27
|
-
title: "List",
|
|
28
|
-
};
|
|
29
|
-
// Default
|
|
30
|
-
exports.Default = {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonThemeProps } from "../styles";
|
|
3
|
-
export interface ListExtraProps extends CommonThemeProps {
|
|
4
|
-
component?: unknown;
|
|
5
|
-
marginBottom?: "xxxs" | "xxs" | "xs" | "s" | "m" | "l";
|
|
6
|
-
ordered?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const StyledList: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
classes?: Partial<import("@mui/material").ListClasses> | undefined;
|
|
11
|
-
dense?: boolean | undefined;
|
|
12
|
-
disablePadding?: boolean | undefined;
|
|
13
|
-
subheader?: import("react").ReactNode;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
|
|
16
|
-
ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
|
|
17
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ListExtraProps, {}, {}>;
|
|
@@ -1,33 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StyledList = void 0;
|
|
8
|
-
var material_1 = require("@mui/material");
|
|
9
|
-
var styles_1 = require("@mui/material/styles");
|
|
10
|
-
var styles_2 = require("../styles");
|
|
11
|
-
// (thuang): Please keep this in sync with the props used in `ListExtraProps`
|
|
12
|
-
var doNotForwardProps = ["marginBotton", "ordered"];
|
|
13
|
-
exports.StyledList = (0, styles_1.styled)(material_1.List, {
|
|
14
|
-
shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
|
|
15
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiListSubheader-root {\n ", "\n }\n\n ", "\n"], ["\n .MuiListSubheader-root {\n ", "\n }\n\n ", "\n"])), propsToMarginBottom, function (props) {
|
|
16
|
-
if (!props.ordered)
|
|
17
|
-
return "";
|
|
18
|
-
return "\n counter-reset: section;\n ";
|
|
19
|
-
});
|
|
20
|
-
function propsToMarginBottom(props) {
|
|
21
|
-
var spacings = (0, styles_2.getSpaces)(props);
|
|
22
|
-
var propsToMarginBottomMap = {
|
|
23
|
-
l: spacings === null || spacings === void 0 ? void 0 : spacings.l,
|
|
24
|
-
m: spacings === null || spacings === void 0 ? void 0 : spacings.l,
|
|
25
|
-
s: spacings === null || spacings === void 0 ? void 0 : spacings.m,
|
|
26
|
-
xs: spacings === null || spacings === void 0 ? void 0 : spacings.m,
|
|
27
|
-
xxs: spacings === null || spacings === void 0 ? void 0 : spacings.m,
|
|
28
|
-
xxxs: spacings === null || spacings === void 0 ? void 0 : spacings.s,
|
|
29
|
-
};
|
|
30
|
-
var marginBottom = props.marginBottom;
|
|
31
|
-
return "\n margin-bottom: ".concat(propsToMarginBottomMap[marginBottom || "s"], "px;\n ");
|
|
32
|
-
}
|
|
33
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var components_1 = require("@czi-sds/components");
|
|
5
|
-
var ListItemSpaceTest = function (props) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)(components_1.ListItem, { fontSize: "l", marginBottom: "s", children: "fontSize=l marginBottom=s" }));
|
|
7
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ListItemProps as RawListItemProps } from "@mui/material";
|
|
2
|
-
import { ListItemExtraProps, ListItemLabel } from "./style";
|
|
3
|
-
export { ListItemLabel };
|
|
4
|
-
export type ListItemProps = Omit<RawListItemProps, "nonce" | "rev" | "rel" | "autoFocus" | "content"> & ListItemExtraProps;
|
|
5
|
-
/**
|
|
6
|
-
* @see https://mui.com/material-ui/react-list/
|
|
7
|
-
*/
|
|
8
|
-
declare const ListItem: (props: ListItemProps) => JSX.Element;
|
|
9
|
-
export default ListItem;
|
|
@@ -1,24 +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
|
-
exports.ListItemLabel = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var style_1 = require("./style");
|
|
17
|
-
Object.defineProperty(exports, "ListItemLabel", { enumerable: true, get: function () { return style_1.ListItemLabel; } });
|
|
18
|
-
/**
|
|
19
|
-
* @see https://mui.com/material-ui/react-list/
|
|
20
|
-
*/
|
|
21
|
-
var ListItem = function (props) {
|
|
22
|
-
return (0, jsx_runtime_1.jsx)(style_1.StyledListItem, __assign({ disableGutters: true }, props));
|
|
23
|
-
};
|
|
24
|
-
exports.default = ListItem;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonThemeProps } from "../styles";
|
|
3
|
-
export interface ListItemExtraProps extends CommonThemeProps {
|
|
4
|
-
marginBottom?: "s" | "xs" | "xxs";
|
|
5
|
-
fontSize?: "xxxs" | "xxs" | "xs" | "s" | "m" | "l";
|
|
6
|
-
ordered?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const StyledListItem: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
button?: false | undefined;
|
|
10
|
-
} & import("@mui/material").ListItemBaseProps & {
|
|
11
|
-
components?: {
|
|
12
|
-
Root?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} | undefined;
|
|
14
|
-
componentsProps?: {
|
|
15
|
-
root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
|
|
16
|
-
} | undefined;
|
|
17
|
-
slotProps?: {
|
|
18
|
-
root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
|
|
19
|
-
} | undefined;
|
|
20
|
-
slots?: {
|
|
21
|
-
root?: import("react").ElementType<any> | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
24
|
-
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
25
|
-
}, "className" | "style" | "classes" | "children" | "sx" | "alignItems" | "disabled" | "disableGutters" | "button" | "autoFocus" | "selected" | "components" | "componentsProps" | "slotProps" | "slots" | "dense" | "disablePadding" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ListItemExtraProps, {}, {}>;
|
|
26
|
-
export declare const ListItemLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,56 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ListItemLabel = exports.StyledListItem = void 0;
|
|
8
|
-
var material_1 = require("@mui/material");
|
|
9
|
-
var styles_1 = require("@mui/material/styles");
|
|
10
|
-
var styles_2 = require("../styles");
|
|
11
|
-
var fontBodyL = (0, styles_2.fontBody)("l");
|
|
12
|
-
var fontBodyM = (0, styles_2.fontBody)("m");
|
|
13
|
-
var fontBodyS = (0, styles_2.fontBody)("s");
|
|
14
|
-
var fontBodyXs = (0, styles_2.fontBody)("xs");
|
|
15
|
-
var fontBodyXxs = (0, styles_2.fontBody)("xxs");
|
|
16
|
-
var fontBodyXxxs = (0, styles_2.fontBody)("xxxs");
|
|
17
|
-
// (thuang): Please keep this in sync with the props used in `ListItemExtraProps`
|
|
18
|
-
var doNotForwardProps = ["marginBottom", "fontSize", "ordered"];
|
|
19
|
-
exports.StyledListItem = (0, styles_1.styled)(material_1.ListItem, {
|
|
20
|
-
shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
|
|
21
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n\n padding: 0;\n\n ", "\n\n &:before {\n display: inline-block;\n font-weight: 600;\n\n ", "\n }\n"], ["\n ", "\n ", "\n\n padding: 0;\n\n ", "\n\n &:before {\n display: inline-block;\n font-weight: 600;\n\n ", "\n }\n"])), propsToMarginBottom, propsToFontBody, function (props) {
|
|
22
|
-
var ordered = props.ordered;
|
|
23
|
-
var typography = props.theme.typography;
|
|
24
|
-
return "\n align-items: flex-start;\n font-family: ".concat(typography === null || typography === void 0 ? void 0 : typography.fontFamily, ";\n ").concat(ordered ? "counter-increment: section;" : "", "\n ");
|
|
25
|
-
}, function (props) {
|
|
26
|
-
var spacings = (0, styles_2.getSpaces)(props);
|
|
27
|
-
var ordered = props.ordered;
|
|
28
|
-
return "\n content: ".concat(ordered ? "counters(section, \".\")\".\"" : "\"\u2022\"", ";\n margin-right: ").concat(ordered ? spacings === null || spacings === void 0 ? void 0 : spacings.xs : spacings === null || spacings === void 0 ? void 0 : spacings.s, "px;\n ");
|
|
29
|
-
});
|
|
30
|
-
function propsToFontBody(props) {
|
|
31
|
-
var propsToFontBodyMap = {
|
|
32
|
-
l: fontBodyL,
|
|
33
|
-
m: fontBodyM,
|
|
34
|
-
s: fontBodyS,
|
|
35
|
-
xs: fontBodyXs,
|
|
36
|
-
xxs: fontBodyXxs,
|
|
37
|
-
xxxs: fontBodyXxxs,
|
|
38
|
-
};
|
|
39
|
-
var fontSize = props.fontSize;
|
|
40
|
-
return propsToFontBodyMap[fontSize || "s"];
|
|
41
|
-
}
|
|
42
|
-
function propsToMarginBottom(props) {
|
|
43
|
-
var spacings = (0, styles_2.getSpaces)(props);
|
|
44
|
-
var propsToMarginBottomMap = {
|
|
45
|
-
s: spacings === null || spacings === void 0 ? void 0 : spacings.s,
|
|
46
|
-
xs: spacings === null || spacings === void 0 ? void 0 : spacings.xs,
|
|
47
|
-
xxs: spacings === null || spacings === void 0 ? void 0 : spacings.xxs,
|
|
48
|
-
};
|
|
49
|
-
var marginBottom = props.marginBottom;
|
|
50
|
-
return "\n margin-bottom: ".concat(propsToMarginBottomMap[marginBottom || "xs"], "px;\n ");
|
|
51
|
-
}
|
|
52
|
-
exports.ListItemLabel = (0, styles_1.styled)("span")(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-right: 5px;\n\n ", "\n"], ["\n margin-right: 5px;\n\n ", "\n"])), function (props) {
|
|
53
|
-
var fontWeights = (0, styles_2.getFontWeights)(props);
|
|
54
|
-
return "\n font-weight: ".concat(fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.semibold, ";\n ");
|
|
55
|
-
});
|
|
56
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var components_1 = require("@czi-sds/components");
|
|
5
|
-
var ListSubheaderNameSpaceTest = function (props) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)(components_1.ListSubheader, { disableSticky: true, children: "Font sizes and spacing for an unordered list" }));
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ListSubheaderProps as RawListSubheaderProps } from "@mui/material";
|
|
2
|
-
export type ListSubheaderProps = Omit<RawListSubheaderProps, "nonce" | "rev" | "rel" | "autoFocus" | "content">;
|
|
3
|
-
/**
|
|
4
|
-
* @see https://mui.com/material-ui/react-list/
|
|
5
|
-
*/
|
|
6
|
-
declare const ListSubheader: (props: ListSubheaderProps) => JSX.Element;
|
|
7
|
-
export default ListSubheader;
|
|
@@ -1,22 +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 style_1 = require("./style");
|
|
16
|
-
/**
|
|
17
|
-
* @see https://mui.com/material-ui/react-list/
|
|
18
|
-
*/
|
|
19
|
-
var ListSubheader = function (props) {
|
|
20
|
-
return (0, jsx_runtime_1.jsx)(style_1.StyledListSubheader, __assign({ disableGutters: true }, props));
|
|
21
|
-
};
|
|
22
|
-
exports.default = ListSubheader;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledListSubheader: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ListSubheaderClasses> | undefined;
|
|
5
|
-
color?: "inherit" | "primary" | "default" | undefined;
|
|
6
|
-
disableGutters?: boolean | undefined;
|
|
7
|
-
disableSticky?: boolean | undefined;
|
|
8
|
-
inset?: boolean | undefined;
|
|
9
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
11
|
-
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
12
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "color" | "inset" | "disableGutters" | "disableSticky"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../styles").CommonThemeProps, {}, {}>;
|
|
@@ -1,16 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StyledListSubheader = void 0;
|
|
8
|
-
var material_1 = require("@mui/material");
|
|
9
|
-
var styles_1 = require("@mui/material/styles");
|
|
10
|
-
var styles_2 = require("../styles");
|
|
11
|
-
var fontHeaderM = (0, styles_2.fontHeader)("m");
|
|
12
|
-
exports.StyledListSubheader = (0, styles_1.styled)(material_1.ListSubheader)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiListSubheader-root {\n ", "\n\n line-height: unset;\n color: unset;\n\n ", "\n }\n"], ["\n &.MuiListSubheader-root {\n ", "\n\n line-height: unset;\n color: unset;\n\n ", "\n }\n"])), fontHeaderM, function (props) {
|
|
13
|
-
var spacings = (0, styles_2.getSpaces)(props);
|
|
14
|
-
return "\n margin-bottom: ".concat(spacings === null || spacings === void 0 ? void 0 : spacings.l, "px;\n ");
|
|
15
|
-
});
|
|
16
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var components_1 = require("@czi-sds/components");
|
|
5
|
-
var LoadingIndicatorNameSpaceTest = function (props) {
|
|
6
|
-
return (0, jsx_runtime_1.jsx)(components_1.LoadingIndicator, { sdsStyle: "minimal" });
|
|
7
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { LoadingIndicatorProps as RawLoadingIndicatorProps } from "./style";
|
|
2
|
-
export type LoadingIndicatorProps = Omit<RawLoadingIndicatorProps, "nonce" | "rev" | "rel" | "autoFocus" | "content">;
|
|
3
|
-
declare const LoadingIndicator: ({ sdsStyle }: LoadingIndicatorProps) => JSX.Element;
|
|
4
|
-
export default LoadingIndicator;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
var Icon_1 = __importDefault(require("../Icon"));
|
|
8
|
-
var style_1 = require("./style");
|
|
9
|
-
var LoadingIndicator = function (_a) {
|
|
10
|
-
var sdsStyle = _a.sdsStyle;
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(style_1.StyledLoadingIndicator, { sdsStyle: sdsStyle, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { sdsIcon: "loading", sdsSize: "l", sdsType: "static" }), (0, jsx_runtime_1.jsx)(style_1.StyledText, { children: "Loading" })] }));
|
|
12
|
-
};
|
|
13
|
-
exports.default = LoadingIndicator;
|
|
@@ -1,24 +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
|
-
sdsStyle: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const LivePreview: {
|
|
10
|
-
parameters: {
|
|
11
|
-
snapshot: {
|
|
12
|
-
skip: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
render: (args: Args) => JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export declare const Test: {
|
|
18
|
-
parameters: {
|
|
19
|
-
snapshot: {
|
|
20
|
-
skip: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
render: (args: Args) => JSX.Element;
|
|
24
|
-
};
|