@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
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @file
|
|
4
|
-
*
|
|
5
|
-
* Maybe do a simplified version following this example:
|
|
6
|
-
* https://codesandbox.io/s/framer-motion-accordion-qx958?file=/src/Example.tsx
|
|
7
|
-
*/
|
|
8
|
-
import { forwardRef, useCallback, useEffect, useId, useRef, useState, } from "react";
|
|
9
|
-
import styled from "styled-components";
|
|
10
|
-
import { m } from "framer-motion";
|
|
11
|
-
import { Disclosure, DisclosureButton, DisclosurePanel, } from "@reach/disclosure";
|
|
12
|
-
import { BsBoxArrowInDown as IconCollapse } from "react-icons/bs";
|
|
13
|
-
import { btnStyleReset } from "../Buttons";
|
|
14
|
-
import { useWindowSize } from "../hooks/useWindowSize";
|
|
15
|
-
import { InputInvisible } from "../Forms/styles";
|
|
16
|
-
/**
|
|
17
|
-
* `overflow-anchor: none;` keeps the same scrolling position
|
|
18
|
-
* @see https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Accordion/Accordion.js#L54
|
|
19
|
-
*/
|
|
20
|
-
export const CollapsableRoot = styled(Disclosure) `
|
|
21
|
-
overflow-anchor: none;
|
|
22
|
-
`;
|
|
23
|
-
export const CollapsableHeadRoot = styled(m.label).attrs((props) => ({
|
|
24
|
-
htmlFor: `${props.id}-input`,
|
|
25
|
-
})) `
|
|
26
|
-
${btnStyleReset}
|
|
27
|
-
width: 100%;
|
|
28
|
-
padding: 0;
|
|
29
|
-
text-align: left;
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
align-items: center;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
`;
|
|
35
|
-
export const CollapsableHeadSpace = styled.div `
|
|
36
|
-
flex: 1;
|
|
37
|
-
padding-left: 20px;
|
|
38
|
-
`;
|
|
39
|
-
export const CollapsableHeadAction = styled.div `
|
|
40
|
-
padding-left: 20px;
|
|
41
|
-
`;
|
|
42
|
-
export const CollaspableHeadLine = styled(m.div) `
|
|
43
|
-
width: 0%;
|
|
44
|
-
height: 1px;
|
|
45
|
-
background: #bbb;
|
|
46
|
-
`;
|
|
47
|
-
export const collapsableHeadLineMotion = {
|
|
48
|
-
hover: {
|
|
49
|
-
width: "100%",
|
|
50
|
-
transition: {
|
|
51
|
-
duration: 0.4,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
export const CollapsableHeadText = styled.div ``;
|
|
56
|
-
export const CollapsableHeadIcon = styled(m.div) ``;
|
|
57
|
-
export const CollapsableHead = ({ $expanded, id, onClick, HeadRoot = CollapsableHeadRoot, HeadAction = CollapsableHeadAction, HeadIcon = CollapsableHeadIcon, children, }) => {
|
|
58
|
-
return (_jsxs(DisclosureButton, { onClick: onClick,
|
|
59
|
-
// tabIndex={0}
|
|
60
|
-
// role="tab"
|
|
61
|
-
initial: "rest", whileHover: "hover", "$expanded": $expanded, as: HeadRoot, id: id, children: [_jsx(CollapsableHeadText, { children: children }), _jsx(CollapsableHeadSpace, { children: _jsx(CollaspableHeadLine, { variants: collapsableHeadLineMotion, animate: $expanded ? "hover" : "" }) }), HeadAction && (_jsx(HeadAction, { children: HeadIcon && (_jsx(HeadIcon, { animate: { rotate: $expanded ? 180 : 0 }, children: _jsx(IconCollapse, {}) })) }))] }));
|
|
62
|
-
};
|
|
63
|
-
export const CollapsableInput = styled(InputInvisible).attrs({
|
|
64
|
-
type: "checkbox",
|
|
65
|
-
}) ``;
|
|
66
|
-
export const CollasableBodyWrap = styled(DisclosurePanel) `
|
|
67
|
-
/* this is because @reach adds the "hidden" attribute */
|
|
68
|
-
|
|
69
|
-
&[hidden] {
|
|
70
|
-
display: block;
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
export const CollapsableBodyRoot = styled(m.div) `
|
|
74
|
-
.no-js & {
|
|
75
|
-
transition: margin-top 0.2s ease;
|
|
76
|
-
}
|
|
77
|
-
.no-js ${CollapsableInput}:checked + ${CollasableBodyWrap} & {
|
|
78
|
-
margin-top: 0 !important;
|
|
79
|
-
opacity: 1 !important;
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
export const CollapsableBody = forwardRef(function CollapsableBody(props, ref) {
|
|
83
|
-
return _jsx(CollapsableBodyRoot, { ref: ref, ...props });
|
|
84
|
-
});
|
|
85
|
-
export const Collapsable = ({ expanded: propExpanded, recalc, onChange, id, head, body,
|
|
86
|
-
// autoCollapse,
|
|
87
|
-
components = {}, ariaExpand = "Expand", ariaCollapse = "Collapse", ...props }) => {
|
|
88
|
-
const isControlled = typeof propExpanded !== "undefined";
|
|
89
|
-
const [stateExpanded, setStateExpanded] = useState(propExpanded);
|
|
90
|
-
const [height, setHeight] = useState(0);
|
|
91
|
-
const hash = id ? `#${id}` : "";
|
|
92
|
-
const winSize = useWindowSize();
|
|
93
|
-
const expanded = isControlled ? propExpanded : stateExpanded;
|
|
94
|
-
const [overflow, setOverflow] = useState(expanded ? "unset" : "hidden");
|
|
95
|
-
const content = useRef(null);
|
|
96
|
-
const defaultId = useId();
|
|
97
|
-
id = id || defaultId;
|
|
98
|
-
const handleClick = useCallback(() => {
|
|
99
|
-
if (hash) {
|
|
100
|
-
window.history.replaceState(null, "", expanded ? window.location.pathname + window.location.search : hash);
|
|
101
|
-
}
|
|
102
|
-
if (onChange) {
|
|
103
|
-
onChange();
|
|
104
|
-
}
|
|
105
|
-
if (!isControlled) {
|
|
106
|
-
setStateExpanded((prevExpanded) => !prevExpanded);
|
|
107
|
-
}
|
|
108
|
-
}, [expanded, hash, onChange, isControlled]);
|
|
109
|
-
const handleAnimationStart = useCallback(() => {
|
|
110
|
-
setOverflow("hidden");
|
|
111
|
-
}, []);
|
|
112
|
-
const handleAnimationComplete = useCallback(() => {
|
|
113
|
-
setOverflow(expanded ? "unset" : "hidden");
|
|
114
|
-
}, [expanded]);
|
|
115
|
-
useEffect(() => {
|
|
116
|
-
if (content.current) {
|
|
117
|
-
setHeight(Math.ceil(content.current.offsetHeight));
|
|
118
|
-
}
|
|
119
|
-
}, [winSize, recalc]);
|
|
120
|
-
// deeplink on mount
|
|
121
|
-
useEffect(() => {
|
|
122
|
-
if (!isControlled && hash && window.location.hash === hash) {
|
|
123
|
-
setStateExpanded(true);
|
|
124
|
-
}
|
|
125
|
-
}, [hash, isControlled]);
|
|
126
|
-
return (_jsxs(CollapsableRoot, { id: id, ...props, open: expanded || false, children: [head !== null && (_jsx(CollapsableHead, { id: id, "$expanded": expanded, onClick: handleClick, ...components, children: head })), _jsx(CollapsableInput, { id: `${id}-input` }), _jsx(CollasableBodyWrap, { "$expanded": expanded, style: { overflow }, children: _jsx(CollapsableBody, { ref: content, "$expanded": expanded,
|
|
127
|
-
// aria-expanded={expanded}
|
|
128
|
-
// aria-label={expanded ? ariaCollapse : ariaExpand}
|
|
129
|
-
style: {
|
|
130
|
-
pointerEvents: expanded ? "all" : "none",
|
|
131
|
-
}, onAnimationStart: handleAnimationStart, onAnimationComplete: handleAnimationComplete, animate: {
|
|
132
|
-
marginTop: expanded ? 0 : height ? `-${height}px` : "-100vh",
|
|
133
|
-
opacity: expanded ? 1 : 0.4,
|
|
134
|
-
}, children: body }) })] }));
|
|
135
|
-
};
|
package/Collapsable/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CollapsableReach";
|
package/Collapsable/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CollapsableReach";
|
package/Collapsable/package.json
DELETED
package/Debug/Debug.d.ts
DELETED
package/Debug/Debug.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
const Root = styled.div `
|
|
4
|
-
background: #f4f4f4;
|
|
5
|
-
border: 1px solid #ddd;
|
|
6
|
-
border-left: 3px solid #f36d33;
|
|
7
|
-
color: #666;
|
|
8
|
-
page-break-inside: avoid;
|
|
9
|
-
font-family: monospace;
|
|
10
|
-
font-size: small;
|
|
11
|
-
line-height: 1.6;
|
|
12
|
-
margin-bottom: 1.6em;
|
|
13
|
-
max-width: 100%;
|
|
14
|
-
overflow: auto;
|
|
15
|
-
padding: 1em 1.5em;
|
|
16
|
-
display: block;
|
|
17
|
-
word-wrap: break-word;
|
|
18
|
-
`;
|
|
19
|
-
export const Debug = ({ data }) => {
|
|
20
|
-
return _jsx(Root, { children: JSON.stringify(data, undefined, 2) });
|
|
21
|
-
};
|
package/Debug/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Debug";
|
package/Debug/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Debug";
|
package/Debug/package.json
DELETED
package/Dialog/DialogMui.d.ts
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ModalUnstyled, { type ModalUnstyledProps } from "@mui/base/ModalUnstyled";
|
|
3
|
-
import { type MotionProps } from "framer-motion";
|
|
4
|
-
import { type WithComponents, type Simplify } from "../helpers";
|
|
5
|
-
declare type ReducedModalUnstyledProps = Omit<ModalUnstyledProps, "onClose" | "BackdropComponent" | "classes" | "closeAfterTransition" | "components" | "componentsProps">;
|
|
6
|
-
export declare type OwnProps = React.PropsWithChildren<ReducedModalUnstyledProps & {
|
|
7
|
-
onClose: (event: object, reason?: string) => any;
|
|
8
|
-
title?: string;
|
|
9
|
-
/** @default true */
|
|
10
|
-
/** @default false */
|
|
11
|
-
$scrollPaper?: boolean;
|
|
12
|
-
mBackdrop?: MotionProps;
|
|
13
|
-
mPaper?: MotionProps;
|
|
14
|
-
}>;
|
|
15
|
-
export declare type Components = {
|
|
16
|
-
Root: {
|
|
17
|
-
type: typeof ModalUnstyled;
|
|
18
|
-
props: React.PropsWithChildren<ReducedModalUnstyledProps>;
|
|
19
|
-
};
|
|
20
|
-
Backdrop: {
|
|
21
|
-
type: "div";
|
|
22
|
-
props: ModalUnstyledProps["BackdropProps"] & {
|
|
23
|
-
open?: OwnProps["open"];
|
|
24
|
-
};
|
|
25
|
-
motionable: true;
|
|
26
|
-
};
|
|
27
|
-
Container: {
|
|
28
|
-
type: "div";
|
|
29
|
-
props: React.PropsWithChildren<Pick<OwnProps, "$scrollPaper">>;
|
|
30
|
-
};
|
|
31
|
-
Paper: {
|
|
32
|
-
type: "div";
|
|
33
|
-
props: React.PropsWithChildren<{
|
|
34
|
-
"aria-label": string;
|
|
35
|
-
} & Pick<OwnProps, "$scrollPaper">>;
|
|
36
|
-
motionable: true;
|
|
37
|
-
};
|
|
38
|
-
Close: {
|
|
39
|
-
type: "button";
|
|
40
|
-
props: React.PropsWithChildren<{
|
|
41
|
-
onClick: OwnProps["onClose"];
|
|
42
|
-
}>;
|
|
43
|
-
};
|
|
44
|
-
Header: {
|
|
45
|
-
type: "div";
|
|
46
|
-
props: React.PropsWithChildren<{}>;
|
|
47
|
-
};
|
|
48
|
-
Body: {
|
|
49
|
-
type: "div";
|
|
50
|
-
props: React.PropsWithChildren<{}>;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare type ComponentsProps = {
|
|
54
|
-
[Name in keyof Components]: Components[Name]["props"];
|
|
55
|
-
};
|
|
56
|
-
export declare type Props = Simplify<WithComponents<OwnProps, Components>>;
|
|
57
|
-
export declare type DialogProps = Props;
|
|
58
|
-
export declare type KoineDialogProps = Props;
|
|
59
|
-
export declare const Root: import("@mui/types").OverridableComponent<import("@mui/base/ModalUnstyled").ModalUnstyledTypeMap<{}, "div">>;
|
|
60
|
-
export declare const Backdrop: React.ElementType<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
62
|
-
} & {
|
|
63
|
-
open?: boolean | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
export declare const Container: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & Pick<OwnProps, "$scrollPaper"> & {
|
|
66
|
-
children?: React.ReactNode;
|
|
67
|
-
}>;
|
|
68
|
-
export declare const Paper: React.ElementType<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & {
|
|
69
|
-
"aria-label": string;
|
|
70
|
-
} & Pick<OwnProps, "$scrollPaper"> & {
|
|
71
|
-
children?: React.ReactNode;
|
|
72
|
-
}>;
|
|
73
|
-
export declare const Close: React.ElementType<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
74
|
-
onClick: OwnProps["onClose"];
|
|
75
|
-
} & {
|
|
76
|
-
children?: React.ReactNode;
|
|
77
|
-
}>;
|
|
78
|
-
export declare const Header: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
79
|
-
children?: React.ReactNode;
|
|
80
|
-
}>;
|
|
81
|
-
export declare const Body: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
82
|
-
children?: React.ReactNode;
|
|
83
|
-
}>;
|
|
84
|
-
export declare const KoineDialog: ((props: Pick<Simplify<WithComponents<OwnProps, Components>>, "key" | "id" | "title" | "color" | "slot" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "BackdropProps" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "open" | "$scrollPaper" | "mBackdrop" | "mPaper" | keyof Components> & React.RefAttributes<HTMLDivElement>) => React.FunctionComponentElement<any>) & {
|
|
85
|
-
Root: import("@mui/types").OverridableComponent<import("@mui/base/ModalUnstyled").ModalUnstyledTypeMap<{}, "div">>;
|
|
86
|
-
Backdrop: React.ElementType<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
87
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
88
|
-
} & {
|
|
89
|
-
open?: boolean | undefined;
|
|
90
|
-
}>;
|
|
91
|
-
Container: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & Pick<OwnProps, "$scrollPaper"> & {
|
|
92
|
-
children?: React.ReactNode;
|
|
93
|
-
}>;
|
|
94
|
-
Paper: React.ElementType<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & {
|
|
95
|
-
"aria-label": string;
|
|
96
|
-
} & Pick<OwnProps, "$scrollPaper"> & {
|
|
97
|
-
children?: React.ReactNode;
|
|
98
|
-
}>;
|
|
99
|
-
Close: React.ElementType<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
100
|
-
onClick: OwnProps["onClose"];
|
|
101
|
-
} & {
|
|
102
|
-
children?: React.ReactNode;
|
|
103
|
-
}>;
|
|
104
|
-
Header: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
105
|
-
children?: React.ReactNode;
|
|
106
|
-
}>;
|
|
107
|
-
Body: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
108
|
-
children?: React.ReactNode;
|
|
109
|
-
}>;
|
|
110
|
-
} & {
|
|
111
|
-
defaultProps: {
|
|
112
|
-
Root: import("@mui/types").OverridableComponent<import("@mui/base/ModalUnstyled").ModalUnstyledTypeMap<{}, "div">>;
|
|
113
|
-
Backdrop: React.ElementType<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
114
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
115
|
-
} & {
|
|
116
|
-
open?: boolean | undefined;
|
|
117
|
-
}>;
|
|
118
|
-
Container: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & Pick<OwnProps, "$scrollPaper"> & {
|
|
119
|
-
children?: React.ReactNode;
|
|
120
|
-
}>;
|
|
121
|
-
Paper: React.ElementType<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & {
|
|
122
|
-
"aria-label": string;
|
|
123
|
-
} & Pick<OwnProps, "$scrollPaper"> & {
|
|
124
|
-
children?: React.ReactNode;
|
|
125
|
-
}>;
|
|
126
|
-
Close: React.ElementType<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
127
|
-
onClick: OwnProps["onClose"];
|
|
128
|
-
} & {
|
|
129
|
-
children?: React.ReactNode;
|
|
130
|
-
}>;
|
|
131
|
-
Header: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
132
|
-
children?: React.ReactNode;
|
|
133
|
-
}>;
|
|
134
|
-
Body: React.ElementType<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
135
|
-
children?: React.ReactNode;
|
|
136
|
-
}>;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
export {};
|
package/Dialog/DialogMui.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useRef } from "react";
|
|
3
|
-
import ModalUnstyled from "@mui/base/ModalUnstyled";
|
|
4
|
-
import { MdClear as IconClose } from "react-icons/md";
|
|
5
|
-
import { extendComponent, } from "../helpers";
|
|
6
|
-
export const Root = ModalUnstyled;
|
|
7
|
-
export const Backdrop = "div";
|
|
8
|
-
export const Container = "div";
|
|
9
|
-
export const Paper = "div";
|
|
10
|
-
export const Close = "button";
|
|
11
|
-
export const Header = "div";
|
|
12
|
-
export const Body = "div";
|
|
13
|
-
// const Dialog = ({
|
|
14
|
-
// children,
|
|
15
|
-
// title,
|
|
16
|
-
// $scrollPaper,
|
|
17
|
-
// Root: _Root,
|
|
18
|
-
// Backdrop: _Backdrop,
|
|
19
|
-
// Container: _Container,
|
|
20
|
-
// Paper: _Paper,
|
|
21
|
-
// Close: _Close,
|
|
22
|
-
// Header: _Header,
|
|
23
|
-
// Body: _Body,
|
|
24
|
-
// ...props
|
|
25
|
-
// }: KoineDialogProps) => (
|
|
26
|
-
// <Root BackdropComponent={Backdrop} onBackdropClick={props.onClose} {...props}>
|
|
27
|
-
// <Container $scrollPaper={$scrollPaper}>
|
|
28
|
-
// <Paper aria-label={title || ""} $scrollPaper={$scrollPaper}>
|
|
29
|
-
// {title && <Header>{title}</Header>}
|
|
30
|
-
// <Close onClick={props.onClose}>
|
|
31
|
-
// <IconClose />
|
|
32
|
-
// </Close>
|
|
33
|
-
// <Body>{children}</Body>
|
|
34
|
-
// </Paper>
|
|
35
|
-
// </Container>
|
|
36
|
-
// </Root>
|
|
37
|
-
// );
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* Main differences from [Mui Dialog](https://mui.com/material-ui/react-dialog):
|
|
41
|
-
*
|
|
42
|
-
* - By default uses `scroll="body"` instead of paper.
|
|
43
|
-
* - Optionally uses `framer-motion` for animations
|
|
44
|
-
* - Uses backdrop blur by default
|
|
45
|
-
*
|
|
46
|
-
* FIXME: it actually works even without forwardRef, check if we do need it
|
|
47
|
-
*/
|
|
48
|
-
const DialogWithRef = forwardRef(function Dialog({ children, title, $scrollPaper, Root: _Root, Backdrop: _Backdrop, Container: _Container, Paper: _Paper, Close: _Close, Header: _Header, Body: _Body, onClose, ...props }, ref) {
|
|
49
|
-
// click handling is taken from
|
|
50
|
-
// @see https://github.com/mui/material-ui/blob/c758b6c0b30f0831110458a746690b33147c45df/packages/mui-material/src/Dialog/Dialog.js#L205-L226
|
|
51
|
-
const backdropClick = useRef();
|
|
52
|
-
const handleMouseDown = (event) => {
|
|
53
|
-
// We don't want to close the dialog when clicking the dialog content.
|
|
54
|
-
// Make sure the event starts and ends on the same DOM element.
|
|
55
|
-
backdropClick.current = event.target === event.currentTarget;
|
|
56
|
-
};
|
|
57
|
-
const handleBackdropClick = (event) => {
|
|
58
|
-
// Ignore the events not coming from the "backdrop".
|
|
59
|
-
if (!backdropClick.current) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
backdropClick.current = null;
|
|
63
|
-
// if (onBackdropClick) onBackdropClick(event);
|
|
64
|
-
if (onClose) {
|
|
65
|
-
onClose(event, "backdropClick");
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
return (_jsx(Root, { BackdropComponent: Backdrop, onClick: handleBackdropClick, onClose: onClose, ref: ref, ...props, children: _jsx(Container, { "$scrollPaper": $scrollPaper, onMouseDown: handleMouseDown, children: _jsxs(Paper, { "aria-label": title || "", "$scrollPaper": $scrollPaper, children: [title && _jsx(Header, { children: title }), _jsx(Close, { onClick: onClose, children: _jsx(IconClose, {}) }), _jsx(Body, { children: children })] }) }) }));
|
|
69
|
-
});
|
|
70
|
-
export const KoineDialog = extendComponent(DialogWithRef, {
|
|
71
|
-
Root,
|
|
72
|
-
Backdrop,
|
|
73
|
-
Container,
|
|
74
|
-
Paper,
|
|
75
|
-
Close,
|
|
76
|
-
Header,
|
|
77
|
-
Body,
|
|
78
|
-
});
|
package/Dialog/css/bare.d.ts
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as _ from "../DialogMui";
|
|
3
|
-
export declare const Root: import("react").ForwardRefExoticComponent<Pick<{
|
|
4
|
-
className?: string | undefined;
|
|
5
|
-
ref?: import("react").Ref<any> | undefined;
|
|
6
|
-
}, "className"> & import("react").RefAttributes<import("@mui/types").OverridableComponent<import("@mui/base/ModalUnstyled").ModalUnstyledTypeMap<{}, "div">>>>;
|
|
7
|
-
export declare const Backdrop: import("react").ForwardRefExoticComponent<Pick<{
|
|
8
|
-
className?: string | undefined;
|
|
9
|
-
ref?: import("react").Ref<any> | undefined;
|
|
10
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
11
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
open?: boolean | undefined;
|
|
14
|
-
}>>>;
|
|
15
|
-
export declare const Container: import("react").ForwardRefExoticComponent<Pick<{
|
|
16
|
-
className?: string | undefined;
|
|
17
|
-
ref?: import("react").Ref<any> | undefined;
|
|
18
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & Pick<_.OwnProps, "$scrollPaper"> & {
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
}>>>;
|
|
21
|
-
export declare const Paper: import("react").ForwardRefExoticComponent<Pick<{
|
|
22
|
-
className?: string | undefined;
|
|
23
|
-
ref?: import("react").Ref<any> | undefined;
|
|
24
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & {
|
|
25
|
-
"aria-label": string;
|
|
26
|
-
} & Pick<_.OwnProps, "$scrollPaper"> & {
|
|
27
|
-
children?: import("react").ReactNode;
|
|
28
|
-
}>>>;
|
|
29
|
-
export declare const Close: import("react").ForwardRefExoticComponent<Pick<{
|
|
30
|
-
className?: string | undefined;
|
|
31
|
-
ref?: import("react").Ref<any> | undefined;
|
|
32
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
33
|
-
onClick: (event: object, reason?: string | undefined) => any;
|
|
34
|
-
} & {
|
|
35
|
-
children?: import("react").ReactNode;
|
|
36
|
-
}>>>;
|
|
37
|
-
export declare const Header: import("react").ForwardRefExoticComponent<Pick<{
|
|
38
|
-
className?: string | undefined;
|
|
39
|
-
ref?: import("react").Ref<any> | undefined;
|
|
40
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
-
children?: import("react").ReactNode;
|
|
42
|
-
}>>>;
|
|
43
|
-
export declare const Body: import("react").ForwardRefExoticComponent<Pick<{
|
|
44
|
-
className?: string | undefined;
|
|
45
|
-
ref?: import("react").Ref<any> | undefined;
|
|
46
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
47
|
-
children?: import("react").ReactNode;
|
|
48
|
-
}>>>;
|
|
49
|
-
export declare const KoineDialog: ((props: Pick<import("type-fest/source/simplify").Simplify<import("../../helpers").WithComponents<_.OwnProps, _.Components>>, "key" | "id" | "title" | "color" | "slot" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "BackdropProps" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "open" | "$scrollPaper" | "mBackdrop" | "mPaper" | keyof _.Components> & import("react").RefAttributes<HTMLDivElement>) => import("react").FunctionComponentElement<any>) & {
|
|
50
|
-
Root: import("react").ForwardRefExoticComponent<Pick<{
|
|
51
|
-
className?: string | undefined;
|
|
52
|
-
ref?: import("react").Ref<any> | undefined;
|
|
53
|
-
}, "className"> & import("react").RefAttributes<import("@mui/types").OverridableComponent<import("@mui/base/ModalUnstyled").ModalUnstyledTypeMap<{}, "div">>>>;
|
|
54
|
-
Backdrop: import("react").ForwardRefExoticComponent<Pick<{
|
|
55
|
-
className?: string | undefined;
|
|
56
|
-
ref?: import("react").Ref<any> | undefined;
|
|
57
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
58
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
59
|
-
} & {
|
|
60
|
-
open?: boolean | undefined;
|
|
61
|
-
}>>>;
|
|
62
|
-
Container: import("react").ForwardRefExoticComponent<Pick<{
|
|
63
|
-
className?: string | undefined;
|
|
64
|
-
ref?: import("react").Ref<any> | undefined;
|
|
65
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & Pick<_.OwnProps, "$scrollPaper"> & {
|
|
66
|
-
children?: import("react").ReactNode;
|
|
67
|
-
}>>>;
|
|
68
|
-
Paper: import("react").ForwardRefExoticComponent<Pick<{
|
|
69
|
-
className?: string | undefined;
|
|
70
|
-
ref?: import("react").Ref<any> | undefined;
|
|
71
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & {
|
|
72
|
-
"aria-label": string;
|
|
73
|
-
} & Pick<_.OwnProps, "$scrollPaper"> & {
|
|
74
|
-
children?: import("react").ReactNode;
|
|
75
|
-
}>>>;
|
|
76
|
-
Close: import("react").ForwardRefExoticComponent<Pick<{
|
|
77
|
-
className?: string | undefined;
|
|
78
|
-
ref?: import("react").Ref<any> | undefined;
|
|
79
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
80
|
-
onClick: (event: object, reason?: string | undefined) => any;
|
|
81
|
-
} & {
|
|
82
|
-
children?: import("react").ReactNode;
|
|
83
|
-
}>>>;
|
|
84
|
-
Header: import("react").ForwardRefExoticComponent<Pick<{
|
|
85
|
-
className?: string | undefined;
|
|
86
|
-
ref?: import("react").Ref<any> | undefined;
|
|
87
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
88
|
-
children?: import("react").ReactNode;
|
|
89
|
-
}>>>;
|
|
90
|
-
Body: import("react").ForwardRefExoticComponent<Pick<{
|
|
91
|
-
className?: string | undefined;
|
|
92
|
-
ref?: import("react").Ref<any> | undefined;
|
|
93
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
94
|
-
children?: import("react").ReactNode;
|
|
95
|
-
}>>>;
|
|
96
|
-
} & {
|
|
97
|
-
defaultProps: {
|
|
98
|
-
Root: import("react").ForwardRefExoticComponent<Pick<{
|
|
99
|
-
className?: string | undefined;
|
|
100
|
-
ref?: import("react").Ref<any> | undefined;
|
|
101
|
-
}, "className"> & import("react").RefAttributes<import("@mui/types").OverridableComponent<import("@mui/base/ModalUnstyled").ModalUnstyledTypeMap<{}, "div">>>>;
|
|
102
|
-
Backdrop: import("react").ForwardRefExoticComponent<Pick<{
|
|
103
|
-
className?: string | undefined;
|
|
104
|
-
ref?: import("react").Ref<any> | undefined;
|
|
105
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
106
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
107
|
-
} & {
|
|
108
|
-
open?: boolean | undefined;
|
|
109
|
-
}>>>;
|
|
110
|
-
Container: import("react").ForwardRefExoticComponent<Pick<{
|
|
111
|
-
className?: string | undefined;
|
|
112
|
-
ref?: import("react").Ref<any> | undefined;
|
|
113
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & Pick<_.OwnProps, "$scrollPaper"> & {
|
|
114
|
-
children?: import("react").ReactNode;
|
|
115
|
-
}>>>;
|
|
116
|
-
Paper: import("react").ForwardRefExoticComponent<Pick<{
|
|
117
|
-
className?: string | undefined;
|
|
118
|
-
ref?: import("react").Ref<any> | undefined;
|
|
119
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "style" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "onAnimationEnd"> & {
|
|
120
|
-
"aria-label": string;
|
|
121
|
-
} & Pick<_.OwnProps, "$scrollPaper"> & {
|
|
122
|
-
children?: import("react").ReactNode;
|
|
123
|
-
}>>>;
|
|
124
|
-
Close: import("react").ForwardRefExoticComponent<Pick<{
|
|
125
|
-
className?: string | undefined;
|
|
126
|
-
ref?: import("react").Ref<any> | undefined;
|
|
127
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
128
|
-
onClick: (event: object, reason?: string | undefined) => any;
|
|
129
|
-
} & {
|
|
130
|
-
children?: import("react").ReactNode;
|
|
131
|
-
}>>>;
|
|
132
|
-
Header: import("react").ForwardRefExoticComponent<Pick<{
|
|
133
|
-
className?: string | undefined;
|
|
134
|
-
ref?: import("react").Ref<any> | undefined;
|
|
135
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
136
|
-
children?: import("react").ReactNode;
|
|
137
|
-
}>>>;
|
|
138
|
-
Body: import("react").ForwardRefExoticComponent<Pick<{
|
|
139
|
-
className?: string | undefined;
|
|
140
|
-
ref?: import("react").Ref<any> | undefined;
|
|
141
|
-
}, "className"> & import("react").RefAttributes<import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
142
|
-
children?: import("react").ReactNode;
|
|
143
|
-
}>>>;
|
|
144
|
-
};
|
|
145
|
-
};
|
package/Dialog/css/bare.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { classed, extendComponent } from "../../helpers";
|
|
2
|
-
import * as _ from "../DialogMui";
|
|
3
|
-
// export type { KoineDialogProps } from "../DialogMui";
|
|
4
|
-
export const Root = classed(_.Root) `dialog`;
|
|
5
|
-
export const Backdrop = classed(_.Backdrop) `dialogBackdrop`;
|
|
6
|
-
export const Container = classed(_.Container) `dialogContainer`;
|
|
7
|
-
export const Paper = classed(_.Paper) `dialogPaper`;
|
|
8
|
-
export const Close = classed(_.Close) `"dialogClose`;
|
|
9
|
-
export const Header = classed(_.Header) `dialogHeader`;
|
|
10
|
-
export const Body = classed(_.Body) `dialogBody`;
|
|
11
|
-
export const KoineDialog = extendComponent(_.KoineDialog, {
|
|
12
|
-
Root,
|
|
13
|
-
Backdrop,
|
|
14
|
-
Container,
|
|
15
|
-
Paper,
|
|
16
|
-
Close,
|
|
17
|
-
Header,
|
|
18
|
-
Body,
|
|
19
|
-
});
|
package/Dialog/index.d.ts
DELETED
package/Dialog/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { KoineDialog } from "./DialogMui";
|