@koine/react 1.0.9 → 1.0.10
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/package.json +22 -9
- package/Alert/Alert.d.ts +0 -5
- package/Alert/Alert.js +0 -16
- package/Alert/index.d.ts +0 -1
- package/Alert/index.js +0 -1
- package/Alert/package.json +0 -6
- package/Animations/Reveal.d.ts +0 -4
- package/Animations/Reveal.js +0 -15
- package/Animations/Underline.d.ts +0 -1
- package/Animations/Underline.js +0 -15
- package/Animations/index.d.ts +0 -3
- package/Animations/index.js +0 -3
- package/Animations/package.json +0 -6
- package/Animations/useReveal.d.ts +0 -33
- package/Animations/useReveal.js +0 -70
- package/Autocomplete/AutocompleteDownshift.d.ts +0 -1
- package/Autocomplete/AutocompleteDownshift.js +0 -158
- package/Autocomplete/AutocompleteDownshiftMultiselect.d.ts +0 -1
- package/Autocomplete/AutocompleteDownshiftMultiselect.js +0 -353
- package/Autocomplete/AutocompleteMui.d.ts +0 -47
- package/Autocomplete/AutocompleteMui.js +0 -177
- package/Autocomplete/AutocompleteReach.d.ts +0 -1
- package/Autocomplete/AutocompleteReach.js +0 -112
- package/Autocomplete/components.d.ts +0 -21
- package/Autocomplete/components.js +0 -89
- package/Autocomplete/helpers.d.ts +0 -3
- package/Autocomplete/helpers.js +0 -28
- package/Autocomplete/index.d.ts +0 -2
- package/Autocomplete/index.js +0 -3
- package/Autocomplete/package.json +0 -6
- package/Bg/BgColor.d.ts +0 -36
- package/Bg/BgColor.js +0 -31
- package/Bg/BgPhoto.d.ts +0 -13
- package/Bg/BgPhoto.js +0 -59
- package/Bg/BgSvg.d.ts +0 -7
- package/Bg/BgSvg.js +0 -15
- package/Bg/index.d.ts +0 -3
- package/Bg/index.js +0 -3
- package/Bg/package.json +0 -6
- package/Breadcrumbs/Breadcrumbs.d.ts +0 -13
- package/Breadcrumbs/Breadcrumbs.js +0 -67
- package/Breadcrumbs/index.d.ts +0 -1
- package/Breadcrumbs/index.js +0 -1
- package/Breadcrumbs/package.json +0 -6
- package/Buttons/Button.d.ts +0 -18
- package/Buttons/Button.js +0 -79
- package/Buttons/ButtonComposite.d.ts +0 -23
- package/Buttons/ButtonComposite.js +0 -49
- package/Buttons/ButtonFab.d.ts +0 -7
- package/Buttons/ButtonFab.js +0 -8
- package/Buttons/ButtonLink.d.ts +0 -8
- package/Buttons/ButtonLink.js +0 -10
- package/Buttons/IconButton.d.ts +0 -11
- package/Buttons/IconButton.js +0 -19
- package/Buttons/index.d.ts +0 -5
- package/Buttons/index.js +0 -5
- package/Buttons/package.json +0 -6
- package/Calendar/CalendarDaygridCell.d.ts +0 -36
- package/Calendar/CalendarDaygridCell.js +0 -51
- package/Calendar/CalendarDaygridNav.d.ts +0 -27
- package/Calendar/CalendarDaygridNav.js +0 -22
- package/Calendar/CalendarDaygridTable.d.ts +0 -25
- package/Calendar/CalendarDaygridTable.js +0 -55
- package/Calendar/CalendarLegend.d.ts +0 -19
- package/Calendar/CalendarLegend.js +0 -11
- package/Calendar/calendar-api-google.d.ts +0 -18
- package/Calendar/calendar-api-google.js +0 -94
- package/Calendar/index.d.ts +0 -6
- package/Calendar/index.js +0 -6
- package/Calendar/package.json +0 -6
- package/Calendar/types.d.ts +0 -81
- package/Calendar/types.js +0 -1
- package/Calendar/useCalendar.d.ts +0 -49
- package/Calendar/useCalendar.js +0 -182
- package/Calendar/utils.d.ts +0 -11
- package/Calendar/utils.js +0 -203
- package/Carousel/Carousel.d.ts +0 -1
- package/Carousel/Carousel.js +0 -378
- package/Carousel/CarouselCss.d.ts +0 -47
- package/Carousel/CarouselCss.js +0 -36
- package/Carousel/index.d.ts +0 -1
- package/Carousel/index.js +0 -1
- package/Carousel/package.json +0 -6
- package/Collapsable/Collapsable.d.ts +0 -1
- package/Collapsable/Collapsable.js +0 -1
- package/Collapsable/CollapsableReach.d.ts +0 -66
- package/Collapsable/CollapsableReach.js +0 -135
- package/Collapsable/index.d.ts +0 -1
- package/Collapsable/index.js +0 -1
- package/Collapsable/package.json +0 -6
- package/Debug/Debug.d.ts +0 -4
- package/Debug/Debug.js +0 -21
- package/Debug/index.d.ts +0 -1
- package/Debug/index.js +0 -1
- package/Debug/package.json +0 -6
- package/Dialog/DialogMui.d.ts +0 -139
- package/Dialog/DialogMui.js +0 -78
- package/Dialog/css/bare.d.ts +0 -145
- package/Dialog/css/bare.js +0 -19
- package/Dialog/index.d.ts +0 -2
- package/Dialog/index.js +0 -1
- package/Dialog/m/bare.d.ts +0 -56
- package/Dialog/m/bare.js +0 -48
- package/Dialog/m/basic.d.ts +0 -4
- package/Dialog/m/basic.js +0 -31
- package/Dialog/m/index.d.ts +0 -2
- package/Dialog/m/index.js +0 -4
- package/Dialog/m/package.json +0 -6
- package/Dialog/package.json +0 -6
- package/Dialog/sc/bare.d.ts +0 -105
- package/Dialog/sc/bare.js +0 -61
- package/Dialog/sc/framer.d.ts +0 -80
- package/Dialog/sc/framer.js +0 -16
- package/Dialog/sc/framerMaterial.d.ts +0 -79
- package/Dialog/sc/framerMaterial.js +0 -16
- package/Dialog/sc/material.d.ts +0 -94
- package/Dialog/sc/material.js +0 -41
- package/Dialog/tw/bare.d.ts +0 -196
- package/Dialog/tw/bare.js +0 -36
- package/Dialog/tw/elegant.d.ts +0 -244
- package/Dialog/tw/elegant.js +0 -18
- package/Dialog/tw/framer.d.ts +0 -112
- package/Dialog/tw/framer.js +0 -16
- package/Dialog/tw/framerMaterial.d.ts +0 -167
- package/Dialog/tw/framerMaterial.js +0 -16
- package/Dialog/tw/material.d.ts +0 -244
- package/Dialog/tw/material.js +0 -18
- package/Editor/Editor--tiptap.d.ts +0 -9
- package/Editor/Editor--tiptap.js +0 -23
- package/Editor/components.d.ts +0 -7
- package/Editor/components.js +0 -28
- package/Editor/index.d.ts +0 -1
- package/Editor/index.js +0 -1
- package/Editor/package.json +0 -6
- package/Favicon/FaviconTags.d.ts +0 -18
- package/Favicon/FaviconTags.js +0 -14
- package/Favicon/index.d.ts +0 -1
- package/Favicon/index.js +0 -1
- package/Favicon/package.json +0 -6
- package/Forms/Checkbox/Checkbox.d.ts +0 -11
- package/Forms/Checkbox/Checkbox.js +0 -24
- package/Forms/Checkbox/index.d.ts +0 -1
- package/Forms/Checkbox/index.js +0 -1
- package/Forms/Checkbox/package.json +0 -6
- package/Forms/Feedback/Feedback.d.ts +0 -5
- package/Forms/Feedback/Feedback.js +0 -10
- package/Forms/Feedback/index.d.ts +0 -1
- package/Forms/Feedback/index.js +0 -1
- package/Forms/Feedback/package.json +0 -6
- package/Forms/Field/Field.d.ts +0 -15
- package/Forms/Field/Field.js +0 -59
- package/Forms/Field/FieldControl.d.ts +0 -26
- package/Forms/Field/FieldControl.js +0 -43
- package/Forms/Field/FieldHint.d.ts +0 -1
- package/Forms/Field/FieldHint.js +0 -6
- package/Forms/Field/index.d.ts +0 -2
- package/Forms/Field/index.js +0 -2
- package/Forms/Field/package.json +0 -6
- package/Forms/Form/Form.d.ts +0 -31
- package/Forms/Form/Form.js +0 -62
- package/Forms/Form/index.d.ts +0 -1
- package/Forms/Form/index.js +0 -1
- package/Forms/Form/package.json +0 -6
- package/Forms/Input/Input.d.ts +0 -9
- package/Forms/Input/Input.js +0 -23
- package/Forms/Input/index.d.ts +0 -1
- package/Forms/Input/index.js +0 -1
- package/Forms/Input/package.json +0 -6
- package/Forms/InputGroup/InputGroup.d.ts +0 -13
- package/Forms/InputGroup/InputGroup.js +0 -42
- package/Forms/InputGroup/index.d.ts +0 -1
- package/Forms/InputGroup/index.js +0 -1
- package/Forms/InputGroup/package.json +0 -6
- package/Forms/Label/Label.d.ts +0 -3
- package/Forms/Label/Label.js +0 -24
- package/Forms/Label/index.d.ts +0 -1
- package/Forms/Label/index.js +0 -1
- package/Forms/Label/package.json +0 -6
- package/Forms/Password/Password.d.ts +0 -5
- package/Forms/Password/Password.js +0 -30
- package/Forms/Password/index.d.ts +0 -1
- package/Forms/Password/index.js +0 -1
- package/Forms/Password/package.json +0 -6
- package/Forms/Radio/Radio.d.ts +0 -12
- package/Forms/Radio/Radio.js +0 -28
- package/Forms/Radio/index.d.ts +0 -1
- package/Forms/Radio/index.js +0 -1
- package/Forms/Radio/package.json +0 -6
- package/Forms/Switch/Switch.d.ts +0 -9
- package/Forms/Switch/Switch.js +0 -50
- package/Forms/Switch/index.d.ts +0 -1
- package/Forms/Switch/index.js +0 -1
- package/Forms/Switch/package.json +0 -6
- package/Forms/Textarea/Textarea.d.ts +0 -5
- package/Forms/Textarea/Textarea.js +0 -13
- package/Forms/Textarea/TextareaRich.d.ts +0 -6
- package/Forms/Textarea/TextareaRich.js +0 -42
- package/Forms/Textarea/index.d.ts +0 -2
- package/Forms/Textarea/index.js +0 -2
- package/Forms/Textarea/package.json +0 -6
- package/Forms/Toggle/Toggle.d.ts +0 -19
- package/Forms/Toggle/Toggle.js +0 -79
- package/Forms/Toggle/index.d.ts +0 -1
- package/Forms/Toggle/index.js +0 -1
- package/Forms/Toggle/package.json +0 -6
- package/Forms/Toggle/useToggle.d.ts +0 -46
- package/Forms/Toggle/useToggle.js +0 -145
- package/Forms/antispam.d.ts +0 -24
- package/Forms/antispam.js +0 -56
- package/Forms/helpers.d.ts +0 -26
- package/Forms/helpers.js +0 -44
- package/Forms/index.d.ts +0 -16
- package/Forms/index.js +0 -17
- package/Forms/package.json +0 -6
- package/Forms/styles.d.ts +0 -19
- package/Forms/styles.js +0 -60
- package/Gauge/Gauge.d.ts +0 -5
- package/Gauge/Gauge.js +0 -102
- package/Grid/Grid.d.ts +0 -64
- package/Grid/Grid.js +0 -79
- package/Grid/index.d.ts +0 -1
- package/Grid/index.js +0 -1
- package/Grid/package.json +0 -6
- package/Hamburger/Hamburger.d.ts +0 -6
- package/Hamburger/Hamburger.js +0 -64
- package/Hamburger/index.d.ts +0 -1
- package/Hamburger/index.js +0 -1
- package/Hamburger/package.json +0 -6
- package/Header/index.d.ts +0 -1
- package/Header/index.js +0 -1
- package/Header/package.json +0 -6
- package/Header/useHeader.d.ts +0 -24
- package/Header/useHeader.js +0 -30
- package/Hidden/Hidden.d.ts +0 -6
- package/Hidden/Hidden.js +0 -14
- package/Hidden/index.d.ts +0 -1
- package/Hidden/index.js +0 -1
- package/Hidden/package.json +0 -6
- package/Img/index.d.ts +0 -1
- package/Img/index.js +0 -1
- package/Img/package.json +0 -6
- package/Img/sc/bare.d.ts +0 -2
- package/Img/sc/bare.js +0 -37
- package/Img/types.d.ts +0 -9
- package/Img/types.js +0 -1
- package/Link/Link.d.ts +0 -5
- package/Link/Link.js +0 -2
- package/Link/LinkBlank.d.ts +0 -8
- package/Link/LinkBlank.js +0 -26
- package/Link/index.d.ts +0 -2
- package/Link/index.js +0 -2
- package/Link/package.json +0 -6
- package/Menu/Menu.d.ts +0 -1
- package/Menu/Menu.js +0 -11
- package/Menu/index.d.ts +0 -1
- package/Menu/index.js +0 -1
- package/Menu/package.json +0 -6
- package/MenuItem/MenuItem.d.ts +0 -4
- package/MenuItem/MenuItem.js +0 -20
- package/MenuItem/index.d.ts +0 -1
- package/MenuItem/index.js +0 -1
- package/MenuItem/package.json +0 -6
- package/Meta/Meta.d.ts +0 -14
- package/Meta/Meta.js +0 -4
- package/Meta/index.d.ts +0 -1
- package/Meta/index.js +0 -1
- package/Meta/package.json +0 -6
- package/NoJs/NoJs.d.ts +0 -2
- package/NoJs/NoJs.js +0 -6
- package/NoJs/index.d.ts +0 -1
- package/NoJs/index.js +0 -1
- package/NoJs/package.json +0 -6
- package/Pagination/PaginationNav.d.ts +0 -22
- package/Pagination/PaginationNav.js +0 -83
- package/Pagination/PaginationResults.d.ts +0 -3
- package/Pagination/PaginationResults.js +0 -10
- package/Pagination/index.d.ts +0 -2
- package/Pagination/index.js +0 -2
- package/Pagination/package.json +0 -6
- package/Pill/Pill.d.ts +0 -5
- package/Pill/Pill.js +0 -37
- package/Pill/index.d.ts +0 -1
- package/Pill/index.js +0 -1
- package/Pill/package.json +0 -6
- package/Progress/ProgressCircular.d.ts +0 -19
- package/Progress/ProgressCircular.js +0 -36
- package/Progress/ProgressLinear.d.ts +0 -22
- package/Progress/ProgressLinear.js +0 -32
- package/Progress/ProgressOverlay.d.ts +0 -4
- package/Progress/ProgressOverlay.js +0 -40
- package/Progress/index.d.ts +0 -3
- package/Progress/index.js +0 -3
- package/Progress/package.json +0 -6
- package/Rating/Rating.d.ts +0 -35
- package/Rating/Rating.js +0 -90
- package/Rating/index.d.ts +0 -11
- package/Rating/index.js +0 -45
- package/Rating/package.json +0 -6
- package/Select/SelectDownshift.d.ts +0 -5
- package/Select/SelectDownshift.js +0 -38
- package/Select/components.d.ts +0 -6
- package/Select/components.js +0 -18
- package/Select/index.d.ts +0 -2
- package/Select/index.js +0 -3
- package/Select/package.json +0 -6
- package/Sidebar/Sidebar.d.ts +0 -3
- package/Sidebar/Sidebar.js +0 -48
- package/Sidebar/index.d.ts +0 -1
- package/Sidebar/index.js +0 -1
- package/Sidebar/package.json +0 -6
- package/Spacing/Spacing.d.ts +0 -30
- package/Spacing/Spacing.js +0 -45
- package/Spacing/index.d.ts +0 -1
- package/Spacing/index.js +0 -1
- package/Spacing/package.json +0 -6
- package/Sticky/Sticky.d.ts +0 -2
- package/Sticky/Sticky.js +0 -219
- package/Sticky/StickyCss.d.ts +0 -5
- package/Sticky/StickyCss.js +0 -4
- package/Sticky/index.d.ts +0 -1
- package/Sticky/index.js +0 -1
- package/Sticky/package.json +0 -6
- package/Tabs/Tabs.d.ts +0 -27
- package/Tabs/Tabs.js +0 -62
- package/Tabs/index.d.ts +0 -1
- package/Tabs/index.js +0 -1
- package/Tabs/package.json +0 -6
- package/Typography/CopyPasteVisible.d.ts +0 -1
- package/Typography/CopyPasteVisible.js +0 -6
- package/Typography/Native.d.ts +0 -10
- package/Typography/Native.js +0 -47
- package/Typography/ReadMore.d.ts +0 -12
- package/Typography/ReadMore.js +0 -69
- package/Typography/TextLoop.d.ts +0 -16
- package/Typography/TextLoop.js +0 -49
- package/Typography/TypeStairs.d.ts +0 -6
- package/Typography/TypeStairs.js +0 -46
- package/Typography/index.d.ts +0 -5
- package/Typography/index.js +0 -5
- package/Typography/package.json +0 -6
- package/css/index.d.ts +0 -2
- package/css/index.js +0 -30
- package/css/package.json +0 -6
- package/helpers/classed.d.ts +0 -22
- package/helpers/classed.js +0 -64
- package/helpers/extend-component.d.ts +0 -28
- package/helpers/extend-component.js +0 -12
- package/helpers/index.d.ts +0 -3
- package/helpers/index.js +0 -2
- package/helpers/package.json +0 -6
- package/hooks/index.d.ts +0 -6
- package/hooks/index.js +0 -7
- package/hooks/package.json +0 -6
- package/hooks/useDateLocale.d.ts +0 -7
- package/hooks/useDateLocale.js +0 -29
- package/hooks/useFocus.d.ts +0 -4
- package/hooks/useFocus.js +0 -11
- package/hooks/usePrevious.d.ts +0 -1
- package/hooks/usePrevious.js +0 -8
- package/hooks/useScrollPosition.d.ts +0 -15
- package/hooks/useScrollPosition.js +0 -75
- package/hooks/useScrollTo.d.ts +0 -1
- package/hooks/useScrollTo.js +0 -19
- package/hooks/useTraceUpdate.d.ts +0 -4
- package/hooks/useTraceUpdate.js +0 -20
- package/hooks/useWindowSize.d.ts +0 -1
- package/hooks/useWindowSize.js +0 -13
- package/index.d.ts +0 -1
- package/index.js +0 -5
- package/m/MotionProvider.d.ts +0 -37
- package/m/MotionProvider.js +0 -37
- package/m/index.d.ts +0 -6
- package/m/index.js +0 -6
- package/m/lite.d.ts +0 -2
- package/m/lite.js +0 -2
- package/m/max.d.ts +0 -2
- package/m/max.js +0 -2
- package/m/package.json +0 -6
- package/node/Alert/Alert.js +0 -21
- package/node/Alert/index.js +0 -4
- package/node/Animations/Reveal.js +0 -19
- package/node/Animations/Underline.js +0 -19
- package/node/Animations/index.js +0 -6
- package/node/Animations/useReveal.js +0 -74
- package/node/Autocomplete/AutocompleteDownshift.js +0 -161
- package/node/Autocomplete/AutocompleteDownshiftMultiselect.js +0 -356
- package/node/Autocomplete/AutocompleteMui.js +0 -175
- package/node/Autocomplete/AutocompleteReach.js +0 -115
- package/node/Autocomplete/components.js +0 -93
- package/node/Autocomplete/helpers.js +0 -32
- package/node/Autocomplete/index.js +0 -7
- package/node/Bg/BgColor.js +0 -36
- package/node/Bg/BgPhoto.js +0 -64
- package/node/Bg/BgSvg.js +0 -20
- package/node/Bg/index.js +0 -6
- package/node/Breadcrumbs/Breadcrumbs.js +0 -72
- package/node/Breadcrumbs/index.js +0 -4
- package/node/Buttons/Button.js +0 -83
- package/node/Buttons/ButtonComposite.js +0 -54
- package/node/Buttons/ButtonFab.js +0 -12
- package/node/Buttons/ButtonLink.js +0 -15
- package/node/Buttons/IconButton.js +0 -23
- package/node/Buttons/index.js +0 -8
- package/node/Calendar/CalendarDaygridCell.js +0 -55
- package/node/Calendar/CalendarDaygridNav.js +0 -27
- package/node/Calendar/CalendarDaygridTable.js +0 -60
- package/node/Calendar/CalendarLegend.js +0 -15
- package/node/Calendar/calendar-api-google.js +0 -99
- package/node/Calendar/index.js +0 -9
- package/node/Calendar/types.js +0 -2
- package/node/Calendar/useCalendar.js +0 -186
- package/node/Calendar/utils.js +0 -217
- package/node/Carousel/Carousel.js +0 -381
- package/node/Carousel/CarouselCss.js +0 -41
- package/node/Carousel/index.js +0 -4
- package/node/Collapsable/Collapsable.js +0 -4
- package/node/Collapsable/CollapsableReach.js +0 -141
- package/node/Collapsable/index.js +0 -4
- package/node/Debug/Debug.js +0 -26
- package/node/Debug/index.js +0 -4
- package/node/Dialog/DialogMui.js +0 -82
- package/node/Dialog/css/bare.js +0 -23
- package/node/Dialog/index.js +0 -5
- package/node/Dialog/m/bare.js +0 -51
- package/node/Dialog/m/basic.js +0 -35
- package/node/Dialog/m/index.js +0 -8
- package/node/Dialog/sc/bare.js +0 -65
- package/node/Dialog/sc/framer.js +0 -19
- package/node/Dialog/sc/framerMaterial.js +0 -19
- package/node/Dialog/sc/material.js +0 -45
- package/node/Dialog/tw/bare.js +0 -40
- package/node/Dialog/tw/elegant.js +0 -21
- package/node/Dialog/tw/framer.js +0 -19
- package/node/Dialog/tw/framerMaterial.js +0 -19
- package/node/Dialog/tw/material.js +0 -21
- package/node/Editor/Editor--tiptap.js +0 -29
- package/node/Editor/components.js +0 -34
- package/node/Editor/index.js +0 -4
- package/node/Favicon/FaviconTags.js +0 -18
- package/node/Favicon/index.js +0 -4
- package/node/Forms/Checkbox/Checkbox.js +0 -28
- package/node/Forms/Checkbox/index.js +0 -4
- package/node/Forms/Feedback/Feedback.js +0 -15
- package/node/Forms/Feedback/index.js +0 -4
- package/node/Forms/Field/Field.js +0 -64
- package/node/Forms/Field/FieldControl.js +0 -47
- package/node/Forms/Field/FieldHint.js +0 -10
- package/node/Forms/Field/index.js +0 -5
- package/node/Forms/Form/Form.js +0 -67
- package/node/Forms/Form/index.js +0 -4
- package/node/Forms/Input/Input.js +0 -27
- package/node/Forms/Input/index.js +0 -4
- package/node/Forms/InputGroup/InputGroup.js +0 -47
- package/node/Forms/InputGroup/index.js +0 -4
- package/node/Forms/Label/Label.js +0 -28
- package/node/Forms/Label/index.js +0 -4
- package/node/Forms/Password/Password.js +0 -34
- package/node/Forms/Password/index.js +0 -4
- package/node/Forms/Radio/Radio.js +0 -32
- package/node/Forms/Radio/index.js +0 -4
- package/node/Forms/Switch/Switch.js +0 -54
- package/node/Forms/Switch/index.js +0 -4
- package/node/Forms/Textarea/Textarea.js +0 -17
- package/node/Forms/Textarea/TextareaRich.js +0 -46
- package/node/Forms/Textarea/index.js +0 -5
- package/node/Forms/Toggle/Toggle.js +0 -85
- package/node/Forms/Toggle/index.js +0 -4
- package/node/Forms/Toggle/useToggle.js +0 -149
- package/node/Forms/antispam.js +0 -61
- package/node/Forms/helpers.js +0 -51
- package/node/Forms/index.js +0 -20
- package/node/Forms/styles.js +0 -64
- package/node/Gauge/Gauge.js +0 -106
- package/node/Grid/Grid.js +0 -83
- package/node/Grid/index.js +0 -4
- package/node/Hamburger/Hamburger.js +0 -69
- package/node/Hamburger/index.js +0 -4
- package/node/Header/index.js +0 -4
- package/node/Header/useHeader.js +0 -34
- package/node/Hidden/Hidden.js +0 -18
- package/node/Hidden/index.js +0 -4
- package/node/Img/index.js +0 -4
- package/node/Img/sc/bare.js +0 -41
- package/node/Img/types.js +0 -2
- package/node/Link/Link.js +0 -6
- package/node/Link/LinkBlank.js +0 -31
- package/node/Link/index.js +0 -5
- package/node/Menu/Menu.js +0 -15
- package/node/Menu/index.js +0 -4
- package/node/MenuItem/MenuItem.js +0 -24
- package/node/MenuItem/index.js +0 -4
- package/node/Meta/Meta.js +0 -8
- package/node/Meta/index.js +0 -4
- package/node/NoJs/NoJs.js +0 -10
- package/node/NoJs/index.js +0 -4
- package/node/Pagination/PaginationNav.js +0 -88
- package/node/Pagination/PaginationResults.js +0 -15
- package/node/Pagination/index.js +0 -5
- package/node/Pill/Pill.js +0 -41
- package/node/Pill/index.js +0 -4
- package/node/Progress/ProgressCircular.js +0 -41
- package/node/Progress/ProgressLinear.js +0 -37
- package/node/Progress/ProgressOverlay.js +0 -45
- package/node/Progress/index.js +0 -6
- package/node/Rating/Rating.js +0 -96
- package/node/Rating/index.js +0 -53
- package/node/Select/SelectDownshift.js +0 -41
- package/node/Select/components.js +0 -22
- package/node/Select/index.js +0 -7
- package/node/Sidebar/Sidebar.js +0 -53
- package/node/Sidebar/index.js +0 -4
- package/node/Spacing/Spacing.js +0 -50
- package/node/Spacing/index.js +0 -4
- package/node/Sticky/Sticky.js +0 -222
- package/node/Sticky/StickyCss.js +0 -8
- package/node/Sticky/index.js +0 -4
- package/node/Tabs/Tabs.js +0 -67
- package/node/Tabs/index.js +0 -4
- package/node/Typography/CopyPasteVisible.js +0 -10
- package/node/Typography/Native.js +0 -51
- package/node/Typography/ReadMore.js +0 -74
- package/node/Typography/TextLoop.js +0 -54
- package/node/Typography/TypeStairs.js +0 -49
- package/node/Typography/index.js +0 -8
- package/node/css/index.js +0 -35
- package/node/helpers/classed.js +0 -68
- package/node/helpers/extend-component.js +0 -16
- package/node/helpers/index.js +0 -5
- package/node/hooks/index.js +0 -10
- package/node/hooks/useDateLocale.js +0 -56
- package/node/hooks/useFocus.js +0 -15
- package/node/hooks/usePrevious.js +0 -12
- package/node/hooks/useScrollPosition.js +0 -80
- package/node/hooks/useScrollTo.js +0 -23
- package/node/hooks/useTraceUpdate.js +0 -24
- package/node/hooks/useWindowSize.js +0 -17
- package/node/index.js +0 -8
- package/node/m/MotionProvider.js +0 -41
- package/node/m/index.js +0 -9
- package/node/m/lite.js +0 -4
- package/node/m/max.js +0 -4
- package/node/sc/index.js +0 -35
- package/node/scm/index.js +0 -35
- package/node/shared/index.js +0 -11
- package/node/styles/Body.js +0 -21
- package/node/styles/Global.js +0 -53
- package/node/styles/index.js +0 -10
- package/node/styles/media.js +0 -156
- package/node/styles/spacing.js +0 -53
- package/node/styles/styled.js +0 -31
- package/node/styles/theme--vanilla.js +0 -59
- package/node/styles/theme.js +0 -45
- package/node/tw/index.js +0 -35
- package/node/twm/index.js +0 -35
- package/node/types.js +0 -2
- package/sc/index.d.ts +0 -29
- package/sc/index.js +0 -30
- package/sc/package.json +0 -6
- package/scm/index.d.ts +0 -29
- package/scm/index.js +0 -30
- package/scm/package.json +0 -6
- package/shared/index.d.ts +0 -8
- package/shared/index.js +0 -8
- package/shared/package.json +0 -6
- package/styles/Body.d.ts +0 -10
- package/styles/Body.js +0 -17
- package/styles/Global.d.ts +0 -15
- package/styles/Global.js +0 -50
- package/styles/index.d.ts +0 -7
- package/styles/index.js +0 -7
- package/styles/media.d.ts +0 -67
- package/styles/media.js +0 -150
- package/styles/package.json +0 -6
- package/styles/spacing.d.ts +0 -13
- package/styles/spacing.js +0 -46
- package/styles/styled.d.ts +0 -12
- package/styles/styled.js +0 -27
- package/styles/theme--vanilla.d.ts +0 -18
- package/styles/theme--vanilla.js +0 -53
- package/styles/theme.d.ts +0 -82
- package/styles/theme.js +0 -41
- package/tw/index.d.ts +0 -2
- package/tw/index.js +0 -30
- package/tw/package.json +0 -6
- package/twm/index.d.ts +0 -2
- package/twm/index.js +0 -30
- package/twm/package.json +0 -6
- package/types.d.ts +0 -10
- package/types.js +0 -1
package/Carousel/Carousel.js
DELETED
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
export const KoineCarousel = null;
|
|
2
|
-
// import React, { useEffect, useState, useRef } from 'react';
|
|
3
|
-
// import Slide from './slide';
|
|
4
|
-
// import { getSliderListStyles } from './slider-list';
|
|
5
|
-
// import { CarouselProps, KeyCodeFunction } from './types';
|
|
6
|
-
// import renderControls from './controls';
|
|
7
|
-
// import defaultProps from './default-carousel-props';
|
|
8
|
-
// import { getIndexes, addEvent, removeEvent } from './utils';
|
|
9
|
-
// import AnnounceSlide from './announce-slide';
|
|
10
|
-
// export const Carousel = (props: CarouselProps): React.ReactElement => {
|
|
11
|
-
// const count = React.Children.count(props.children);
|
|
12
|
-
// const [currentSlide, setCurrentSlide] = useState<number>(
|
|
13
|
-
// props.autoplayReverse ? count - props.slidesToShow : props.slideIndex
|
|
14
|
-
// );
|
|
15
|
-
// const [animation, setAnimation] = useState<boolean>(false);
|
|
16
|
-
// const [pause, setPause] = useState<boolean>(false);
|
|
17
|
-
// const [dragging, setDragging] = useState<boolean>(false);
|
|
18
|
-
// const [move, setMove] = useState<number>(0);
|
|
19
|
-
// const [keyboardMove, setKeyboardMove] = useState<KeyCodeFunction>(null);
|
|
20
|
-
// const carouselWidth = useRef<number | null>(null);
|
|
21
|
-
// const focus = useRef<boolean>(false);
|
|
22
|
-
// const prevMove = useRef<number>(0);
|
|
23
|
-
// const carouselEl = useRef<HTMLDivElement>(null);
|
|
24
|
-
// const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
25
|
-
// const isMounted = useRef<boolean>(true);
|
|
26
|
-
// useEffect(
|
|
27
|
-
// () => () => {
|
|
28
|
-
// isMounted.current = false;
|
|
29
|
-
// },
|
|
30
|
-
// []
|
|
31
|
-
// );
|
|
32
|
-
// const slidesToScroll =
|
|
33
|
-
// props.animation === 'fade' ? props.slidesToShow : props.slidesToScroll;
|
|
34
|
-
// const dragThreshold = (carouselWidth.current || 0) / props.slidesToShow / 2;
|
|
35
|
-
// const carouselRef = props.innerRef || carouselEl;
|
|
36
|
-
// const moveSlide = (to?: number) => {
|
|
37
|
-
// const [slide, endSlide] = getIndexes(
|
|
38
|
-
// currentSlide,
|
|
39
|
-
// currentSlide - slidesToScroll,
|
|
40
|
-
// count
|
|
41
|
-
// );
|
|
42
|
-
// to && props.beforeSlide(slide, endSlide);
|
|
43
|
-
// !props.disableAnimation && setAnimation(true);
|
|
44
|
-
// setCurrentSlide(to ?? currentSlide);
|
|
45
|
-
// setTimeout(
|
|
46
|
-
// () => {
|
|
47
|
-
// if (!isMounted.current) return;
|
|
48
|
-
// to && props.afterSlide(currentSlide);
|
|
49
|
-
// !props.disableAnimation && setAnimation(false);
|
|
50
|
-
// },
|
|
51
|
-
// !props.disableAnimation ? props.speed || 500 : 40
|
|
52
|
-
// ); // if animation is disabled decrease the speed to 40
|
|
53
|
-
// };
|
|
54
|
-
// const nextSlide = () => {
|
|
55
|
-
// if (props.wrapAround || currentSlide <= count) {
|
|
56
|
-
// moveSlide(currentSlide + slidesToScroll);
|
|
57
|
-
// } else {
|
|
58
|
-
// moveSlide();
|
|
59
|
-
// }
|
|
60
|
-
// };
|
|
61
|
-
// const prevSlide = () => {
|
|
62
|
-
// // boundary
|
|
63
|
-
// if (props.wrapAround || currentSlide > 0) {
|
|
64
|
-
// moveSlide(currentSlide - slidesToScroll);
|
|
65
|
-
// } else {
|
|
66
|
-
// moveSlide();
|
|
67
|
-
// }
|
|
68
|
-
// };
|
|
69
|
-
// useEffect(() => {
|
|
70
|
-
// if (props.autoplay && !animation && props.wrapAround) {
|
|
71
|
-
// if (currentSlide > count) {
|
|
72
|
-
// setCurrentSlide(currentSlide - count);
|
|
73
|
-
// if (timer?.current) {
|
|
74
|
-
// clearTimeout(timer.current);
|
|
75
|
-
// }
|
|
76
|
-
// } else if (currentSlide < 0) {
|
|
77
|
-
// setCurrentSlide(count - -currentSlide);
|
|
78
|
-
// if (timer?.current) {
|
|
79
|
-
// clearTimeout(timer.current);
|
|
80
|
-
// }
|
|
81
|
-
// }
|
|
82
|
-
// }
|
|
83
|
-
// }, [animation, currentSlide]);
|
|
84
|
-
// useEffect(() => {
|
|
85
|
-
// if (props.autoplay && !pause) {
|
|
86
|
-
// timer.current = setTimeout(() => {
|
|
87
|
-
// if (props.autoplayReverse) {
|
|
88
|
-
// if (!props.wrapAround && currentSlide > 0) {
|
|
89
|
-
// prevSlide();
|
|
90
|
-
// } else if (props.wrapAround) {
|
|
91
|
-
// prevSlide();
|
|
92
|
-
// }
|
|
93
|
-
// } else if (
|
|
94
|
-
// !props.wrapAround &&
|
|
95
|
-
// currentSlide < count - props.slidesToShow
|
|
96
|
-
// ) {
|
|
97
|
-
// nextSlide();
|
|
98
|
-
// } else if (props.wrapAround) {
|
|
99
|
-
// nextSlide();
|
|
100
|
-
// }
|
|
101
|
-
// }, props.autoplayInterval);
|
|
102
|
-
// }
|
|
103
|
-
// // Clear the timeout if user hover on carousel
|
|
104
|
-
// if (props.autoplay && pause && timer?.current) {
|
|
105
|
-
// clearTimeout(timer.current);
|
|
106
|
-
// }
|
|
107
|
-
// return () => {
|
|
108
|
-
// if (timer.current) {
|
|
109
|
-
// clearTimeout(timer.current);
|
|
110
|
-
// }
|
|
111
|
-
// };
|
|
112
|
-
// }, [currentSlide, pause]);
|
|
113
|
-
// useEffect(() => {
|
|
114
|
-
// // makes the loop infinity
|
|
115
|
-
// if (props.wrapAround && !props.autoplay) {
|
|
116
|
-
// // if animation is disabled decrease the speed to 0
|
|
117
|
-
// const speed = !props.disableAnimation ? props.speed || 500 : 0;
|
|
118
|
-
// if (currentSlide <= -props.slidesToShow) {
|
|
119
|
-
// // prev
|
|
120
|
-
// setTimeout(() => {
|
|
121
|
-
// if (!isMounted.current) return;
|
|
122
|
-
// setCurrentSlide(count - -currentSlide);
|
|
123
|
-
// }, speed + 10);
|
|
124
|
-
// } else if (currentSlide >= count) {
|
|
125
|
-
// // next
|
|
126
|
-
// setTimeout(() => {
|
|
127
|
-
// if (!isMounted.current) return;
|
|
128
|
-
// setCurrentSlide(currentSlide - count);
|
|
129
|
-
// }, speed + 10);
|
|
130
|
-
// }
|
|
131
|
-
// }
|
|
132
|
-
// }, [currentSlide]);
|
|
133
|
-
// useEffect(() => {
|
|
134
|
-
// if (props.enableKeyboardControls && keyboardMove && focus.current) {
|
|
135
|
-
// switch (keyboardMove) {
|
|
136
|
-
// case 'nextSlide':
|
|
137
|
-
// nextSlide(); // set boundaries for !wrapAround
|
|
138
|
-
// break;
|
|
139
|
-
// case 'previousSlide':
|
|
140
|
-
// prevSlide(); // set boundaries for !wrapAround
|
|
141
|
-
// break;
|
|
142
|
-
// case 'firstSlide':
|
|
143
|
-
// setCurrentSlide(0);
|
|
144
|
-
// break;
|
|
145
|
-
// case 'lastSlide':
|
|
146
|
-
// setCurrentSlide(count - props.slidesToShow);
|
|
147
|
-
// break;
|
|
148
|
-
// case 'pause':
|
|
149
|
-
// if (pause && props.autoplay) {
|
|
150
|
-
// setPause(false);
|
|
151
|
-
// break;
|
|
152
|
-
// } else if (props.autoplay) {
|
|
153
|
-
// setPause(true);
|
|
154
|
-
// break;
|
|
155
|
-
// }
|
|
156
|
-
// break;
|
|
157
|
-
// }
|
|
158
|
-
// setKeyboardMove(null);
|
|
159
|
-
// }
|
|
160
|
-
// }, [keyboardMove]);
|
|
161
|
-
// const onKeyPress = (e: Event) => {
|
|
162
|
-
// if (
|
|
163
|
-
// props.enableKeyboardControls &&
|
|
164
|
-
// focus.current &&
|
|
165
|
-
// (e as KeyboardEvent).keyCode
|
|
166
|
-
// ) {
|
|
167
|
-
// const keyConfig = props.keyCodeConfig;
|
|
168
|
-
// for (const func in keyConfig) {
|
|
169
|
-
// if (
|
|
170
|
-
// keyConfig[func as keyof typeof keyConfig]?.includes(
|
|
171
|
-
// (e as KeyboardEvent).keyCode
|
|
172
|
-
// )
|
|
173
|
-
// ) {
|
|
174
|
-
// setKeyboardMove(func as KeyCodeFunction);
|
|
175
|
-
// }
|
|
176
|
-
// }
|
|
177
|
-
// }
|
|
178
|
-
// };
|
|
179
|
-
// useEffect(() => {
|
|
180
|
-
// if (carouselEl && carouselEl.current) {
|
|
181
|
-
// carouselWidth.current = carouselEl.current.offsetWidth;
|
|
182
|
-
// } else if (props.innerRef) {
|
|
183
|
-
// carouselWidth.current = props.innerRef.current.offsetWidth;
|
|
184
|
-
// }
|
|
185
|
-
// if (props.enableKeyboardControls) {
|
|
186
|
-
// addEvent(document, 'keydown', onKeyPress);
|
|
187
|
-
// }
|
|
188
|
-
// return () => {
|
|
189
|
-
// removeEvent(document, 'keydown', onKeyPress);
|
|
190
|
-
// };
|
|
191
|
-
// }, []);
|
|
192
|
-
// const handleDragEnd = () => {
|
|
193
|
-
// if (!props.dragging || !dragging) return;
|
|
194
|
-
// setDragging(false);
|
|
195
|
-
// if (Math.abs(move) <= dragThreshold) {
|
|
196
|
-
// moveSlide();
|
|
197
|
-
// setMove(0);
|
|
198
|
-
// prevMove.current = 0;
|
|
199
|
-
// return;
|
|
200
|
-
// }
|
|
201
|
-
// if (move > 0) {
|
|
202
|
-
// nextSlide();
|
|
203
|
-
// } else {
|
|
204
|
-
// prevSlide();
|
|
205
|
-
// }
|
|
206
|
-
// setMove(0);
|
|
207
|
-
// prevMove.current = 0;
|
|
208
|
-
// };
|
|
209
|
-
// const onTouchStart = () => {
|
|
210
|
-
// if (!props.swiping) {
|
|
211
|
-
// return;
|
|
212
|
-
// }
|
|
213
|
-
// setDragging(true);
|
|
214
|
-
// };
|
|
215
|
-
// const handlePointerMove = (m: number) => {
|
|
216
|
-
// if (!props.dragging || !dragging) return;
|
|
217
|
-
// const moveValue = m * 0.75; // Friction
|
|
218
|
-
// const moveState = move + (moveValue - prevMove.current);
|
|
219
|
-
// // Exit drag early if passed threshold
|
|
220
|
-
// if (Math.abs(move) > dragThreshold) {
|
|
221
|
-
// handleDragEnd();
|
|
222
|
-
// return;
|
|
223
|
-
// }
|
|
224
|
-
// if (
|
|
225
|
-
// !props.wrapAround &&
|
|
226
|
-
// props.disableEdgeSwiping &&
|
|
227
|
-
// ((currentSlide <= 0 && moveState <= 0) ||
|
|
228
|
-
// (moveState > 0 && currentSlide >= count - props.slidesToShow))
|
|
229
|
-
// ) {
|
|
230
|
-
// prevMove.current = moveValue;
|
|
231
|
-
// return;
|
|
232
|
-
// }
|
|
233
|
-
// if (prevMove.current !== 0) {
|
|
234
|
-
// setMove(moveState);
|
|
235
|
-
// }
|
|
236
|
-
// prevMove.current = moveValue;
|
|
237
|
-
// };
|
|
238
|
-
// const onTouchMove = (e: React.TouchEvent<HTMLDivElement>) => {
|
|
239
|
-
// if (!props.dragging || !dragging) return;
|
|
240
|
-
// props.onDragStart(e);
|
|
241
|
-
// const moveValue = (carouselWidth?.current || 0) - e.touches[0].pageX;
|
|
242
|
-
// handlePointerMove(moveValue);
|
|
243
|
-
// };
|
|
244
|
-
// const onMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
245
|
-
// e?.preventDefault();
|
|
246
|
-
// carouselRef?.current?.focus();
|
|
247
|
-
// if (!props.dragging) return;
|
|
248
|
-
// setDragging(true);
|
|
249
|
-
// };
|
|
250
|
-
// const onMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
251
|
-
// if (!props.dragging || !dragging) return;
|
|
252
|
-
// props.onDragStart(e);
|
|
253
|
-
// const offsetX =
|
|
254
|
-
// e.clientX - (carouselRef.current?.getBoundingClientRect().left || 0);
|
|
255
|
-
// const moveValue = (carouselWidth?.current || 0) - offsetX;
|
|
256
|
-
// handlePointerMove(moveValue);
|
|
257
|
-
// };
|
|
258
|
-
// const onMouseUp = (e?: React.MouseEvent<HTMLDivElement>) => {
|
|
259
|
-
// e?.preventDefault();
|
|
260
|
-
// handleDragEnd();
|
|
261
|
-
// };
|
|
262
|
-
// const onMouseEnter = () => {
|
|
263
|
-
// if (props.pauseOnHover) {
|
|
264
|
-
// setPause(true);
|
|
265
|
-
// }
|
|
266
|
-
// };
|
|
267
|
-
// const onMouseLeave = () => {
|
|
268
|
-
// if (props.pauseOnHover) {
|
|
269
|
-
// setPause(false);
|
|
270
|
-
// }
|
|
271
|
-
// };
|
|
272
|
-
// const renderSlides = (typeOfSlide?: 'prev-cloned' | 'next-cloned') => {
|
|
273
|
-
// const slides = React.Children.map(props.children, (child, index) => {
|
|
274
|
-
// const isCurrentSlide = props.wrapAround
|
|
275
|
-
// ? currentSlide === index ||
|
|
276
|
-
// currentSlide === index + count ||
|
|
277
|
-
// currentSlide === index - count
|
|
278
|
-
// : currentSlide === index;
|
|
279
|
-
// return (
|
|
280
|
-
// <Slide
|
|
281
|
-
// key={`${typeOfSlide}-${index}`}
|
|
282
|
-
// count={count}
|
|
283
|
-
// currentSlide={currentSlide}
|
|
284
|
-
// index={index}
|
|
285
|
-
// isCurrentSlide={isCurrentSlide}
|
|
286
|
-
// typeOfSlide={typeOfSlide}
|
|
287
|
-
// wrapAround={props.wrapAround}
|
|
288
|
-
// cellSpacing={props.cellSpacing}
|
|
289
|
-
// animation={props.animation}
|
|
290
|
-
// slidesToShow={props.slidesToShow}
|
|
291
|
-
// speed={props.speed}
|
|
292
|
-
// zoomScale={props.zoomScale}
|
|
293
|
-
// cellAlign={props.cellAlign}
|
|
294
|
-
// >
|
|
295
|
-
// {child}
|
|
296
|
-
// </Slide>
|
|
297
|
-
// );
|
|
298
|
-
// });
|
|
299
|
-
// return slides;
|
|
300
|
-
// };
|
|
301
|
-
// const [slide] = getIndexes(
|
|
302
|
-
// currentSlide,
|
|
303
|
-
// currentSlide - slidesToScroll,
|
|
304
|
-
// count
|
|
305
|
-
// );
|
|
306
|
-
// return (
|
|
307
|
-
// <div
|
|
308
|
-
// className={'slider-container'}
|
|
309
|
-
// style={{
|
|
310
|
-
// position: 'relative',
|
|
311
|
-
// padding: props.withoutControls ? 0 : '0 60px 50px'
|
|
312
|
-
// }}
|
|
313
|
-
// onMouseEnter={onMouseEnter}
|
|
314
|
-
// onMouseLeave={onMouseLeave}
|
|
315
|
-
// >
|
|
316
|
-
// <AnnounceSlide
|
|
317
|
-
// ariaLive={props.autoplay && !pause ? 'off' : 'polite'}
|
|
318
|
-
// message={props.renderAnnounceSlideMessage({
|
|
319
|
-
// currentSlide: slide,
|
|
320
|
-
// count
|
|
321
|
-
// })}
|
|
322
|
-
// />
|
|
323
|
-
// <div
|
|
324
|
-
// className={['slider-frame', props.className || ''].join(' ').trim()}
|
|
325
|
-
// style={{
|
|
326
|
-
// overflow: 'hidden',
|
|
327
|
-
// width: '100%',
|
|
328
|
-
// position: 'relative',
|
|
329
|
-
// outline: 'none',
|
|
330
|
-
// ...props.style
|
|
331
|
-
// }}
|
|
332
|
-
// aria-label="carousel-slider"
|
|
333
|
-
// role="region"
|
|
334
|
-
// tabIndex={0}
|
|
335
|
-
// onFocus={() => (focus.current = true)}
|
|
336
|
-
// onBlur={() => (focus.current = false)}
|
|
337
|
-
// ref={props.innerRef || carouselEl}
|
|
338
|
-
// onMouseUp={onMouseUp}
|
|
339
|
-
// onMouseDown={onMouseDown}
|
|
340
|
-
// onMouseMove={onMouseMove}
|
|
341
|
-
// onMouseLeave={onMouseUp}
|
|
342
|
-
// onTouchStart={onTouchStart}
|
|
343
|
-
// onTouchEnd={handleDragEnd}
|
|
344
|
-
// onTouchMove={onTouchMove}
|
|
345
|
-
// >
|
|
346
|
-
// <div
|
|
347
|
-
// className="slider-list"
|
|
348
|
-
// style={getSliderListStyles(
|
|
349
|
-
// props.children,
|
|
350
|
-
// currentSlide,
|
|
351
|
-
// animation,
|
|
352
|
-
// props.slidesToShow,
|
|
353
|
-
// props.cellAlign,
|
|
354
|
-
// props.wrapAround,
|
|
355
|
-
// props.speed,
|
|
356
|
-
// move,
|
|
357
|
-
// props.animation
|
|
358
|
-
// )}
|
|
359
|
-
// >
|
|
360
|
-
// {props.wrapAround ? renderSlides('prev-cloned') : null}
|
|
361
|
-
// {renderSlides()}
|
|
362
|
-
// {props.wrapAround ? renderSlides('next-cloned') : null}
|
|
363
|
-
// </div>
|
|
364
|
-
// </div>
|
|
365
|
-
// {renderControls(
|
|
366
|
-
// props,
|
|
367
|
-
// count,
|
|
368
|
-
// currentSlide,
|
|
369
|
-
// moveSlide,
|
|
370
|
-
// nextSlide,
|
|
371
|
-
// prevSlide,
|
|
372
|
-
// slidesToScroll
|
|
373
|
-
// )}
|
|
374
|
-
// </div>
|
|
375
|
-
// );
|
|
376
|
-
// };
|
|
377
|
-
// Carousel.defaultProps = defaultProps;
|
|
378
|
-
// export default Carousel;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { RowProps, ColProps } from "../Grid";
|
|
3
|
-
export declare const CarouselCssRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Grid").GridProps & {
|
|
4
|
-
$valign?: import("csstype").Property.AlignItems | undefined;
|
|
5
|
-
$reverse?: "max:xs" | "max:sm" | "max:md" | "max:lg" | "max:xl" | "max:xxl" | "min:xs" | "min:sm" | "min:md" | "min:lg" | "min:xl" | "min:xxl" | undefined;
|
|
6
|
-
$noWrap?: boolean | undefined;
|
|
7
|
-
} & import("@koine/utils").Simplify<import("@koine/utils").Except<RowProps, "$gutter"> & Required<Pick<RowProps, "$gutter">>>, never>;
|
|
8
|
-
export declare const CarouselCssCol: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Grid").GridProps & Partial<Record<import("../styles").Breakpoint, number>> & {
|
|
9
|
-
$width?: number | undefined;
|
|
10
|
-
$flex?: boolean | undefined;
|
|
11
|
-
$valign?: import("csstype").Property.AlignItems | undefined;
|
|
12
|
-
$auto?: boolean | undefined;
|
|
13
|
-
$offset?: string | undefined;
|
|
14
|
-
} & Pick<KoineCarouselCssProps, "$snap"> & {
|
|
15
|
-
$width: KoineCarouselCssProps["width"];
|
|
16
|
-
}, never>;
|
|
17
|
-
export declare type KoineCarouselCssProps = ColProps & {
|
|
18
|
-
/**
|
|
19
|
-
* Override the `<Row>` gutter, if not specified `$gutter` prop is used
|
|
20
|
-
*/
|
|
21
|
-
$gutterRow?: RowProps["$gutter"];
|
|
22
|
-
/**
|
|
23
|
-
* Override the `<Col>` gutter, if not specified `$gutter` prop is used
|
|
24
|
-
*/
|
|
25
|
-
$gutterCol?: ColProps["$gutter"];
|
|
26
|
-
/**
|
|
27
|
-
* If items are not passed solely children are used
|
|
28
|
-
*/
|
|
29
|
-
items?: JSX.Element[];
|
|
30
|
-
/**
|
|
31
|
-
* @default undefined (in percentage)
|
|
32
|
-
*/
|
|
33
|
-
$proportion?: number;
|
|
34
|
-
/**
|
|
35
|
-
* @default "start"
|
|
36
|
-
*/
|
|
37
|
-
$snap?: React.CSSProperties["scrollSnapAlign"];
|
|
38
|
-
/**
|
|
39
|
-
* Carousel's slide width
|
|
40
|
-
*/
|
|
41
|
-
width?: number;
|
|
42
|
-
};
|
|
43
|
-
export declare type CarouselCssProps = React.PropsWithChildren<KoineCarouselCssProps>;
|
|
44
|
-
/**
|
|
45
|
-
* For programmatic usage an example here @see https://stackoverflow.com/a/65902068/9122820
|
|
46
|
-
*/
|
|
47
|
-
export declare const KoineCarouselCss: ({ items, $gutterRow, $gutterCol, $gutter, $proportion, $snap, width, children, ...colProps }: CarouselCssProps) => JSX.Element | null;
|
package/Carousel/CarouselCss.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Children, useId } from "react";
|
|
3
|
-
import styled from "styled-components";
|
|
4
|
-
import { Row, Col, GRID_GUTTER_DEFAULT as DF, } from "../Grid";
|
|
5
|
-
export const CarouselCssRow = styled(Row) `
|
|
6
|
-
${({ $gutter: cs, theme: { gutter } }) => `
|
|
7
|
-
margin-left: -${cs === DF ? gutter[DF] : (gutter[DF] - gutter[cs]) * 2}px;
|
|
8
|
-
margin-right: -${cs === DF ? gutter[DF] : (gutter[DF] - gutter[cs]) * 2}px;
|
|
9
|
-
padding-left: ${cs === DF ? gutter[DF] : gutter[DF] - gutter[cs]}px;
|
|
10
|
-
padding-right: ${cs === DF ? gutter[DF] : gutter[DF] - gutter[cs]}px;
|
|
11
|
-
`}
|
|
12
|
-
|
|
13
|
-
scroll-behavior: smooth;
|
|
14
|
-
scroll-snap-type: x;
|
|
15
|
-
-ms-overflow-style: none;
|
|
16
|
-
scrollbar-width: none;
|
|
17
|
-
|
|
18
|
-
&::-webkit-scrollbar {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
export const CarouselCssCol = styled(Col) `
|
|
23
|
-
${(p) => p.$width && `flex-basis: ${p.$width}px; min-width: ${p.$width}px;`}
|
|
24
|
-
position: relative;
|
|
25
|
-
scroll-snap-align: ${(p) => p.$snap};
|
|
26
|
-
`;
|
|
27
|
-
/**
|
|
28
|
-
* For programmatic usage an example here @see https://stackoverflow.com/a/65902068/9122820
|
|
29
|
-
*/
|
|
30
|
-
export const KoineCarouselCss = ({ items, $gutterRow, $gutterCol, $gutter = "quarter", $proportion, $snap = "center", width, children, ...colProps }) => {
|
|
31
|
-
const slides = children ? Children.toArray(children) : items;
|
|
32
|
-
const id = useId();
|
|
33
|
-
if (!slides)
|
|
34
|
-
return null;
|
|
35
|
-
return (_jsx(CarouselCssRow, { "$noWrap": true, "$gutter": $gutterRow || $gutter, children: slides.map((_slide, idx) => (_jsx(CarouselCssCol, { ...colProps, "$gutter": $gutterCol || $gutter, "$width": width, children: slides[idx] }, `CarouselCssCol-${id}-${idx}`))) }));
|
|
36
|
-
};
|
package/Carousel/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CarouselCss";
|
package/Carousel/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CarouselCss";
|
package/Carousel/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Collasable: null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const Collasable = null;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="@reach/utils/dist/declarations/src/polymorphic" />
|
|
3
|
-
import { MotionProps } from "framer-motion";
|
|
4
|
-
export declare type CollapsableStyledProps = {
|
|
5
|
-
$expanded?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* `overflow-anchor: none;` keeps the same scrolling position
|
|
9
|
-
* @see https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Accordion/Accordion.js#L54
|
|
10
|
-
*/
|
|
11
|
-
export declare const CollapsableRoot: import("styled-components").StyledComponent<import("react").FC<import("@reach/disclosure/dist/declarations/src").DisclosureProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
-
export declare const CollapsableHeadRoot: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLLabelElement, import("framer-motion").HTMLMotionProps<"label">>, import("styled-components").DefaultTheme, {
|
|
13
|
-
htmlFor: `${string}-input`;
|
|
14
|
-
} & Pick<CollapsableStyledProps, "$expanded">, "htmlFor">;
|
|
15
|
-
export declare const CollapsableHeadSpace: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const CollapsableHeadAction: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const CollaspableHeadLine: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
-
export declare const collapsableHeadLineMotion: {
|
|
19
|
-
hover: {
|
|
20
|
-
width: string;
|
|
21
|
-
transition: {
|
|
22
|
-
duration: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare const CollapsableHeadText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
27
|
-
export declare const CollapsableHeadIcon: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
|
|
28
|
-
export declare type CollapsableHeadProps = React.PropsWithChildren<Pick<CollapsableStyledProps, "$expanded"> & CollapsableComponents & {
|
|
29
|
-
id: CollapsableProps["id"];
|
|
30
|
-
onClick: (...args: any) => any;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const CollapsableHead: ({ $expanded, id, onClick, HeadRoot, HeadAction, HeadIcon, children, }: CollapsableHeadProps) => JSX.Element;
|
|
33
|
-
export declare const CollapsableInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
34
|
-
type: "checkbox";
|
|
35
|
-
}, "type">;
|
|
36
|
-
export declare const CollasableBodyWrap: import("styled-components").StyledComponent<import("@reach/utils/dist/declarations/src/polymorphic").ForwardRefComponent<"div", import("@reach/disclosure/dist/declarations/src").DisclosurePanelProps>, import("styled-components").DefaultTheme, CollapsableStyledProps, never>;
|
|
37
|
-
export declare const CollapsableBodyRoot: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
|
|
38
|
-
export declare type CollapsableBodyProps = MotionProps & Pick<CollapsableStyledProps, "$expanded"> & {
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
style?: React.CSSProperties;
|
|
41
|
-
};
|
|
42
|
-
export declare const CollapsableBody: import("react").ForwardRefExoticComponent<MotionProps & Pick<CollapsableStyledProps, "$expanded"> & {
|
|
43
|
-
children?: React.ReactNode;
|
|
44
|
-
style?: import("react").CSSProperties | undefined;
|
|
45
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export declare type CollapsableComponents = {
|
|
47
|
-
HeadRoot?: typeof CollapsableHeadRoot;
|
|
48
|
-
HeadAction?: null | typeof CollapsableHeadAction | React.FC<any>;
|
|
49
|
-
HeadIcon?: null | typeof CollapsableHeadIcon | React.FC<any>;
|
|
50
|
-
};
|
|
51
|
-
export declare type CollapsableProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
52
|
-
id?: string;
|
|
53
|
-
expanded?: boolean;
|
|
54
|
-
/** Used to trigger a recalculation effect */
|
|
55
|
-
recalc?: any;
|
|
56
|
-
onChange?: () => any;
|
|
57
|
-
head: null | React.ReactNode;
|
|
58
|
-
body: React.ReactNode;
|
|
59
|
-
/** Amount of milliseconds after which the component collapses */
|
|
60
|
-
components?: CollapsableComponents;
|
|
61
|
-
/** @default "Expand" */
|
|
62
|
-
ariaExpand?: string;
|
|
63
|
-
/** @default "Collapse" */
|
|
64
|
-
ariaCollapse?: string;
|
|
65
|
-
};
|
|
66
|
-
export declare const Collapsable: ({ expanded: propExpanded, recalc, onChange, id, head, body, components, ariaExpand, ariaCollapse, ...props }: CollapsableProps) => JSX.Element;
|