@koine/react 2.0.0-beta.37 → 2.0.0-beta.39
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/README.md +1 -0
- package/calendar/CalendarDaygridCell.d.ts +4 -4
- package/calendar/CalendarDaygridNav.d.ts +3 -3
- package/calendar/CalendarDaygridTable.d.ts +4 -4
- package/calendar/CalendarLegend.d.ts +3 -3
- package/calendar/calendar-api-google.d.ts +2 -2
- package/calendar/useCalendar.d.ts +5 -5
- package/calendar/useDateLocale.d.ts +2 -0
- package/calendar/utils.d.ts +11 -11
- package/calendar.cjs.d.ts +1 -0
- package/calendar.cjs.default.js +1 -0
- package/calendar.cjs.js +62 -0
- package/calendar.cjs.mjs +2 -0
- package/calendar.d.ts +7 -0
- package/calendar.esm.js +35 -0
- package/components/FaviconTags.d.ts +8 -0
- package/components/Meta.d.ts +4 -0
- package/components/NoJs.d.ts +2 -0
- package/forms/antispam.d.ts +6 -6
- package/forms.cjs.d.ts +1 -0
- package/forms.cjs.default.js +1 -0
- package/forms.cjs.js +11 -0
- package/forms.cjs.mjs +2 -0
- package/forms.d.ts +1 -0
- package/forms.esm.js +6 -0
- package/hooks/index.d.ts +19 -0
- package/{useAsyncFn.d.ts → hooks/useAsyncFn.d.ts} +3 -3
- package/hooks/useFirstMountState.d.ts +1 -0
- package/hooks/useFixedOffset.d.ts +1 -0
- package/hooks/useFocus.d.ts +1 -0
- package/hooks/useInterval.d.ts +1 -0
- package/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/hooks/useKeyUp.d.ts +1 -0
- package/{useMeasure.d.ts → hooks/useMeasure.d.ts} +2 -2
- package/hooks/useMountedState.d.ts +1 -0
- package/hooks/useNavigateAway.d.ts +2 -0
- package/hooks/usePrevious.d.ts +1 -0
- package/hooks/usePreviousRef.d.ts +1 -0
- package/{useReveal.d.ts → hooks/useReveal.d.ts} +1 -1
- package/hooks/useScrollPosition.d.ts +7 -0
- package/hooks/useScrollThreshold.d.ts +1 -0
- package/hooks/useScrollTo.d.ts +1 -0
- package/hooks/useSmoothScroll.d.ts +1 -0
- package/hooks/useSpinDelay.d.ts +1 -0
- package/hooks/useTraceUpdate.d.ts +1 -0
- package/hooks/useUpdateEffect.d.ts +2 -0
- package/hooks/useWindowSize.d.ts +2 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +77 -0
- package/index.cjs.mjs +2 -0
- package/index.d.ts +3 -26
- package/index.esm.js +51 -0
- package/package.json +21 -646
- package/utils/classed.d.ts +8 -0
- package/{createUseMediaQueryWidth.d.ts → utils/createUseMediaQueryWidth.d.ts} +2 -2
- package/{extendComponent.d.ts → utils/extendComponent.d.ts} +2 -3
- package/utils/index.d.ts +5 -0
- package/utils/mergeRefs.d.ts +1 -0
- package/Alert/Alert.d.ts +0 -5
- package/Alert/Alert.js +0 -10
- package/Alert/index.d.ts +0 -1
- package/Alert/index.js +0 -1
- package/Animations/Reveal.d.ts +0 -3
- package/Animations/Reveal.js +0 -16
- package/Animations/Underline.d.ts +0 -1
- package/Animations/Underline.js +0 -5
- package/Animations/index.d.ts +0 -3
- package/Animations/index.js +0 -3
- package/Animations/useReveal.d.ts +0 -13
- package/Animations/useReveal.js +0 -43
- package/Autocomplete/AutocompleteDownshift.d.ts +0 -1
- package/Autocomplete/AutocompleteDownshift.js +0 -1
- package/Autocomplete/AutocompleteDownshiftMultiselect.d.ts +0 -1
- package/Autocomplete/AutocompleteDownshiftMultiselect.js +0 -1
- package/Autocomplete/AutocompleteMui.d.ts +0 -22
- package/Autocomplete/AutocompleteMui.js +0 -93
- package/Autocomplete/AutocompleteReach.d.ts +0 -1
- package/Autocomplete/AutocompleteReach.js +0 -1
- package/Autocomplete/components.d.ts +0 -12
- package/Autocomplete/components.js +0 -26
- package/Autocomplete/helpers.d.ts +0 -3
- package/Autocomplete/helpers.js +0 -16
- package/Autocomplete/index.d.ts +0 -2
- package/Autocomplete/index.js +0 -1
- package/Bg/BgColor.d.ts +0 -12
- package/Bg/BgColor.js +0 -16
- package/Bg/BgPhoto.d.ts +0 -8
- package/Bg/BgPhoto.js +0 -16
- package/Bg/BgSvg.d.ts +0 -4
- package/Bg/BgSvg.js +0 -9
- package/Bg/index.d.ts +0 -3
- package/Bg/index.js +0 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +0 -13
- package/Breadcrumbs/Breadcrumbs.js +0 -27
- package/Breadcrumbs/index.d.ts +0 -1
- package/Breadcrumbs/index.js +0 -1
- package/Buttons/Button.d.ts +0 -14
- package/Buttons/Button.js +0 -10
- package/Buttons/ButtonComposite.d.ts +0 -22
- package/Buttons/ButtonComposite.js +0 -28
- package/Buttons/ButtonFab.d.ts +0 -4
- package/Buttons/ButtonFab.js +0 -6
- package/Buttons/ButtonLink.d.ts +0 -8
- package/Buttons/ButtonLink.js +0 -11
- package/Buttons/IconButton.d.ts +0 -8
- package/Buttons/IconButton.js +0 -7
- package/Buttons/index.d.ts +0 -5
- package/Buttons/index.js +0 -5
- package/Calendar/CalendarDaygridCell.d.ts +0 -35
- package/Calendar/CalendarDaygridCell.js +0 -46
- package/Calendar/CalendarDaygridNav.d.ts +0 -27
- package/Calendar/CalendarDaygridNav.js +0 -24
- package/Calendar/CalendarDaygridTable.d.ts +0 -25
- package/Calendar/CalendarDaygridTable.js +0 -45
- package/Calendar/CalendarLegend.d.ts +0 -18
- package/Calendar/CalendarLegend.js +0 -9
- package/Calendar/calendar-api-google.d.ts +0 -10
- package/Calendar/calendar-api-google.js +0 -124
- package/Calendar/index.d.ts +0 -6
- package/Calendar/index.js +0 -6
- package/Calendar/types.d.ts +0 -62
- package/Calendar/types.js +0 -1
- package/Calendar/useCalendar.d.ts +0 -35
- package/Calendar/useCalendar.js +0 -176
- package/Calendar/utils.d.ts +0 -11
- package/Calendar/utils.js +0 -185
- package/Carousel/Carousel.d.ts +0 -1
- package/Carousel/Carousel.js +0 -1
- package/Carousel/CarouselCss.d.ts +0 -13
- package/Carousel/CarouselCss.js +0 -19
- package/Carousel/index.d.ts +0 -1
- package/Carousel/index.js +0 -1
- package/Collapsable/Collapsable.d.ts +0 -1
- package/Collapsable/Collapsable.js +0 -1
- package/Collapsable/CollapsableReach.d.ts +0 -0
- package/Collapsable/CollapsableReach.js +0 -1
- package/Collapsable/index.d.ts +0 -1
- package/Collapsable/index.js +0 -1
- package/Debug/Debug.d.ts +0 -4
- package/Debug/Debug.js +0 -9
- package/Debug/index.d.ts +0 -1
- package/Debug/index.js +0 -1
- package/Details/Details.d.ts +0 -398
- package/Details/Details.js +0 -52
- package/Details/index.d.ts +0 -1
- package/Details/index.js +0 -1
- package/Dialog/DialogMui.d.ts +0 -165
- package/Dialog/DialogMui.js +0 -39
- package/Dialog/css/bare.d.ts +0 -171
- package/Dialog/css/bare.js +0 -21
- package/Dialog/index.d.ts +0 -2
- package/Dialog/index.js +0 -1
- package/Dialog/m/bare.d.ts +0 -4
- package/Dialog/m/bare.js +0 -3
- package/Dialog/m/basic.d.ts +0 -4
- package/Dialog/m/basic.js +0 -28
- package/Dialog/m/index.d.ts +0 -2
- package/Dialog/m/index.js +0 -4
- package/Dialog/sc/bare.d.ts +0 -61
- package/Dialog/sc/bare.js +0 -31
- package/Dialog/sc/framer.d.ts +0 -24
- package/Dialog/sc/framer.js +0 -16
- package/Dialog/sc/framerMaterial.d.ts +0 -24
- package/Dialog/sc/framerMaterial.js +0 -16
- package/Dialog/sc/material.d.ts +0 -60
- package/Dialog/sc/material.js +0 -21
- package/Dialog/tw/bare.d.ts +0 -208
- package/Dialog/tw/bare.js +0 -29
- package/Dialog/tw/elegant.d.ts +0 -270
- package/Dialog/tw/elegant.js +0 -21
- package/Dialog/tw/framer.d.ts +0 -108
- package/Dialog/tw/framer.js +0 -16
- package/Dialog/tw/framerMaterial.d.ts +0 -164
- package/Dialog/tw/framerMaterial.js +0 -16
- package/Dialog/tw/material.d.ts +0 -270
- package/Dialog/tw/material.js +0 -21
- package/Editor/Editor--tiptap.d.ts +0 -9
- package/Editor/Editor--tiptap.js +0 -26
- package/Editor/components.d.ts +0 -5
- package/Editor/components.js +0 -10
- package/Editor/index.d.ts +0 -1
- package/Editor/index.js +0 -1
- package/FaviconTags.d.ts +0 -9
- package/FaviconTags.js +0 -6
- package/Form/Form.d.ts +0 -125
- package/Form/Form.js +0 -60
- package/Form/index.d.ts +0 -1
- package/Form/index.js +0 -1
- package/Form/sc/bare.d.ts +0 -57
- package/Form/sc/bare.js +0 -20
- package/Forms/Checkbox/Checkbox.d.ts +0 -7
- package/Forms/Checkbox/Checkbox.js +0 -15
- package/Forms/Checkbox/index.d.ts +0 -1
- package/Forms/Checkbox/index.js +0 -1
- package/Forms/Feedback/Feedback.d.ts +0 -5
- package/Forms/Feedback/Feedback.js +0 -9
- package/Forms/Feedback/index.d.ts +0 -1
- package/Forms/Feedback/index.js +0 -1
- package/Forms/Field/Field.d.ts +0 -18
- package/Forms/Field/Field.js +0 -25
- package/Forms/Field/FieldControl.d.ts +0 -14
- package/Forms/Field/FieldControl.js +0 -35
- package/Forms/Field/FieldHint.d.ts +0 -1
- package/Forms/Field/FieldHint.js +0 -4
- package/Forms/Field/index.d.ts +0 -2
- package/Forms/Field/index.js +0 -2
- package/Forms/Input/Input.d.ts +0 -8
- package/Forms/Input/Input.js +0 -16
- package/Forms/Input/index.d.ts +0 -1
- package/Forms/Input/index.js +0 -1
- package/Forms/InputGroup/InputGroup.d.ts +0 -12
- package/Forms/InputGroup/InputGroup.js +0 -15
- package/Forms/InputGroup/index.d.ts +0 -1
- package/Forms/InputGroup/index.js +0 -1
- package/Forms/Label/Label.d.ts +0 -3
- package/Forms/Label/Label.js +0 -6
- package/Forms/Label/index.d.ts +0 -1
- package/Forms/Label/index.js +0 -1
- package/Forms/Password/Password.d.ts +0 -4
- package/Forms/Password/Password.js +0 -17
- package/Forms/Password/index.d.ts +0 -1
- package/Forms/Password/index.js +0 -1
- package/Forms/Radio/Radio.d.ts +0 -11
- package/Forms/Radio/Radio.js +0 -25
- package/Forms/Radio/index.d.ts +0 -1
- package/Forms/Radio/index.js +0 -1
- package/Forms/Switch/Switch.d.ts +0 -5
- package/Forms/Switch/Switch.js +0 -17
- package/Forms/Switch/index.d.ts +0 -1
- package/Forms/Switch/index.js +0 -1
- package/Forms/Textarea/Textarea.d.ts +0 -4
- package/Forms/Textarea/Textarea.js +0 -12
- package/Forms/Textarea/TextareaRich.d.ts +0 -5
- package/Forms/Textarea/TextareaRich.js +0 -26
- package/Forms/Textarea/index.d.ts +0 -2
- package/Forms/Textarea/index.js +0 -2
- package/Forms/Toggle/Toggle-tailwind.d.ts +0 -0
- package/Forms/Toggle/Toggle-tailwind.js +0 -1
- package/Forms/Toggle/Toggle.d.ts +0 -18
- package/Forms/Toggle/Toggle.js +0 -25
- package/Forms/Toggle/index.d.ts +0 -1
- package/Forms/Toggle/index.js +0 -1
- package/Forms/Toggle/useToggle-tailwind.d.ts +0 -0
- package/Forms/Toggle/useToggle-tailwind.js +0 -1
- package/Forms/Toggle/useToggle.d.ts +0 -16
- package/Forms/Toggle/useToggle.js +0 -85
- package/Forms/antispam.d.ts +0 -27
- package/Forms/antispam.js +0 -29
- package/Forms/helpers.d.ts +0 -18
- package/Forms/helpers.js +0 -35
- package/Forms/index.d.ts +0 -15
- package/Forms/index.js +0 -15
- package/Forms/styles.d.ts +0 -9
- package/Forms/styles.js +0 -19
- package/Gauge/Gauge.d.ts +0 -4
- package/Gauge/Gauge.js +0 -1
- package/Grid/Grid.d.ts +0 -32
- package/Grid/Grid.js +0 -52
- package/Grid/index.d.ts +0 -1
- package/Grid/index.js +0 -1
- package/Hamburger/Hamburger.d.ts +0 -5
- package/Hamburger/Hamburger.js +0 -47
- package/Hamburger/index.d.ts +0 -1
- package/Hamburger/index.js +0 -1
- package/Header/index.d.ts +0 -1
- package/Header/index.js +0 -1
- package/Header/useHeader.d.ts +0 -20
- package/Header/useHeader.js +0 -32
- package/Hidden/Hidden.d.ts +0 -6
- package/Hidden/Hidden.js +0 -10
- package/Hidden/index.d.ts +0 -1
- package/Hidden/index.js +0 -1
- package/Img/index.d.ts +0 -1
- package/Img/index.js +0 -1
- package/Img/sc/bare.d.ts +0 -2
- package/Img/sc/bare.js +0 -4
- package/Img/types.d.ts +0 -9
- package/Img/types.js +0 -1
- package/Link/Link.d.ts +0 -3
- package/Link/Link.js +0 -4
- package/Link/LinkBlank.d.ts +0 -5
- package/Link/LinkBlank.js +0 -15
- package/Link/index.d.ts +0 -2
- package/Link/index.js +0 -2
- package/Menu/Menu.d.ts +0 -1
- package/Menu/Menu.js +0 -4
- package/Menu/MenuMui.d.ts +0 -0
- package/Menu/MenuMui.js +0 -1
- package/Menu/index.d.ts +0 -1
- package/Menu/index.js +0 -1
- package/MenuItem/MenuItem.d.ts +0 -1
- package/MenuItem/MenuItem.js +0 -4
- package/MenuItem/MenuItemMui.d.ts +0 -0
- package/MenuItem/MenuItemMui.js +0 -1
- package/MenuItem/index.d.ts +0 -1
- package/MenuItem/index.js +0 -1
- package/MenuItem/useMenuItem.d.ts +0 -9
- package/MenuItem/useMenuItem.js +0 -42
- package/Meta.d.ts +0 -5
- package/Meta.js +0 -6
- package/NoJs.d.ts +0 -3
- package/NoJs.js +0 -7
- package/Pagination/PaginationNav.d.ts +0 -14
- package/Pagination/PaginationNav.js +0 -48
- package/Pagination/PaginationResults.d.ts +0 -3
- package/Pagination/PaginationResults.js +0 -11
- package/Pagination/index.d.ts +0 -2
- package/Pagination/index.js +0 -2
- package/Pill/Pill.d.ts +0 -5
- package/Pill/Pill.js +0 -7
- package/Pill/index.d.ts +0 -1
- package/Pill/index.js +0 -1
- package/Polymorphic.js +0 -1
- package/Progress/ProgressCircular.d.ts +0 -13
- package/Progress/ProgressCircular.js +0 -12
- package/Progress/ProgressLinear.d.ts +0 -15
- package/Progress/ProgressLinear.js +0 -21
- package/Progress/ProgressOverlay.d.ts +0 -4
- package/Progress/ProgressOverlay.js +0 -23
- package/Progress/index.d.ts +0 -3
- package/Progress/index.js +0 -3
- package/Rating/Rating.d.ts +0 -27
- package/Rating/Rating.js +0 -43
- package/Rating/index.d.ts +0 -8
- package/Rating/index.js +0 -45
- package/Select/SelectDownshift.d.ts +0 -5
- package/Select/SelectDownshift.js +0 -1
- package/Select/components.d.ts +0 -6
- package/Select/components.js +0 -12
- package/Select/index.d.ts +0 -2
- package/Select/index.js +0 -1
- package/Sidebar/Sidebar.d.ts +0 -3
- package/Sidebar/Sidebar.js +0 -23
- package/Sidebar/index.d.ts +0 -1
- package/Sidebar/index.js +0 -1
- package/Spacing/Spacing.d.ts +0 -17
- package/Spacing/Spacing.js +0 -32
- package/Spacing/index.d.ts +0 -1
- package/Spacing/index.js +0 -1
- package/Sticky/Sticky.d.ts +0 -2
- package/Sticky/Sticky.js +0 -1
- package/Sticky/StickyCss.d.ts +0 -5
- package/Sticky/StickyCss.js +0 -6
- package/Sticky/index.d.ts +0 -1
- package/Sticky/index.js +0 -1
- package/Tabs/TabsMui.d.ts +0 -84
- package/Tabs/TabsMui.js +0 -30
- package/Tabs/index.d.ts +0 -1
- package/Tabs/index.js +0 -1
- package/Tabs/sc/bare.d.ts +0 -0
- package/Tabs/sc/bare.js +0 -1
- package/Tabs/tw/bare.d.ts +0 -85
- package/Tabs/tw/bare.js +0 -17
- package/Tabs/tw/material.d.ts +0 -118
- package/Tabs/tw/material.js +0 -19
- package/Tabs/useTabs.d.ts +0 -21
- package/Tabs/useTabs.js +0 -44
- package/Typography/CopyPasteVisible.d.ts +0 -1
- package/Typography/CopyPasteVisible.js +0 -4
- package/Typography/Native.d.ts +0 -10
- package/Typography/Native.js +0 -14
- package/Typography/ReadMore.d.ts +0 -10
- package/Typography/ReadMore.js +0 -42
- package/Typography/TextLoop.d.ts +0 -16
- package/Typography/TextLoop.js +0 -45
- package/Typography/TypeStairs.d.ts +0 -6
- package/Typography/TypeStairs.js +0 -42
- package/Typography/index.d.ts +0 -5
- package/Typography/index.js +0 -5
- package/calendar/CalendarDaygridCell.js +0 -48
- package/calendar/CalendarDaygridNav.js +0 -24
- package/calendar/CalendarDaygridTable.js +0 -45
- package/calendar/CalendarLegend.js +0 -9
- package/calendar/calendar-api-google.js +0 -124
- package/calendar/index.d.ts +0 -6
- package/calendar/index.js +0 -6
- package/calendar/types.js +0 -1
- package/calendar/useCalendar.js +0 -176
- package/calendar/utils.js +0 -185
- package/classed.d.ts +0 -8
- package/classed.js +0 -43
- package/createUseMediaQueryWidth.js +0 -39
- package/css/index.d.ts +0 -1
- package/css/index.js +0 -1
- package/extendComponent.js +0 -9
- package/forms/antispam.js +0 -29
- package/forms/index.d.ts +0 -1
- package/forms/index.js +0 -1
- package/index.js +0 -24
- package/m/MotionProvider.d.ts +0 -6
- package/m/MotionProvider.js +0 -7
- package/m/index.d.ts +0 -1
- package/m/index.js +0 -1
- 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/mergeRefs.d.ts +0 -2
- package/mergeRefs.js +0 -13
- package/sc/index.d.ts +0 -29
- package/sc/index.js +0 -29
- package/scm/index.d.ts +0 -28
- package/scm/index.js +0 -28
- package/shared/index.d.ts +0 -7
- package/shared/index.js +0 -7
- package/styles/Body.d.ts +0 -2
- package/styles/Body.js +0 -5
- package/styles/Global.d.ts +0 -2
- package/styles/Global.js +0 -5
- package/styles/index.d.ts +0 -7
- package/styles/index.js +0 -7
- package/styles/media.d.ts +0 -18
- package/styles/media.js +0 -75
- package/styles/spacing.d.ts +0 -12
- package/styles/spacing.js +0 -45
- package/styles/styled.d.ts +0 -8
- package/styles/styled.js +0 -9
- package/styles/theme--vanilla.d.ts +0 -17
- package/styles/theme--vanilla.js +0 -47
- package/styles/theme.d.ts +0 -53
- package/styles/theme.js +0 -30
- package/tw/index.d.ts +0 -1
- package/tw/index.js +0 -1
- package/twm/index.d.ts +0 -1
- package/twm/index.js +0 -1
- package/types.js +0 -1
- package/typings.d.ts +0 -6
- package/useAsyncFn.js +0 -33
- package/useDateLocale.d.ts +0 -3
- package/useDateLocale.js +0 -28
- package/useFirstMountState.d.ts +0 -2
- package/useFirstMountState.js +0 -10
- package/useFixedOffset.d.ts +0 -2
- package/useFixedOffset.js +0 -42
- package/useFocus.d.ts +0 -2
- package/useFocus.js +0 -9
- package/useInterval.d.ts +0 -2
- package/useInterval.js +0 -22
- package/useIsomorphicLayoutEffect.d.ts +0 -3
- package/useIsomorphicLayoutEffect.js +0 -6
- package/useKeyUp.d.ts +0 -2
- package/useKeyUp.js +0 -18
- package/useMeasure.js +0 -130
- package/useMountedState.d.ts +0 -2
- package/useMountedState.js +0 -13
- package/useNavigateAway.d.ts +0 -3
- package/useNavigateAway.js +0 -25
- package/usePrevious.d.ts +0 -2
- package/usePrevious.js +0 -10
- package/usePreviousRef.d.ts +0 -2
- package/usePreviousRef.js +0 -9
- package/useReveal.js +0 -43
- package/useScrollPosition.d.ts +0 -7
- package/useScrollPosition.js +0 -61
- package/useScrollThreshold.d.ts +0 -2
- package/useScrollThreshold.js +0 -27
- package/useScrollTo.d.ts +0 -2
- package/useScrollTo.js +0 -20
- package/useSmoothScroll.d.ts +0 -2
- package/useSmoothScroll.js +0 -32
- package/useSpinDelay.d.ts +0 -2
- package/useSpinDelay.js +0 -39
- package/useTraceUpdate.d.ts +0 -2
- package/useTraceUpdate.js +0 -19
- package/useUpdateEffect.d.ts +0 -3
- package/useUpdateEffect.js +0 -11
- package/useWindowSize.d.ts +0 -3
- package/useWindowSize.js +0 -20
- /package/{Polymorphic.d.ts → utils/Polymorphic.d.ts} +0 -0
package/m/MotionProvider.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type LazyProps } from "framer-motion";
|
|
3
|
-
export type MotionProviderFeatures = LazyProps["features"];
|
|
4
|
-
export type MotionProviderProps = LazyProps & React.PropsWithChildren<{}>;
|
|
5
|
-
export declare const MotionProvider: ({ features, children }: MotionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default MotionProvider;
|
package/m/MotionProvider.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LazyMotion } from "framer-motion";
|
|
3
|
-
export var MotionProvider = function (_a) {
|
|
4
|
-
var features = _a.features, children = _a.children;
|
|
5
|
-
return _jsx(LazyMotion, { features: features, children: children });
|
|
6
|
-
};
|
|
7
|
-
export default MotionProvider;
|
package/m/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MotionProvider.js";
|
package/m/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MotionProvider.js";
|
package/m/lite.d.ts
DELETED
package/m/lite.js
DELETED
package/m/max.d.ts
DELETED
package/m/max.js
DELETED
package/mergeRefs.d.ts
DELETED
package/mergeRefs.js
DELETED
package/sc/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from "../Alert/index.js";
|
|
2
|
-
export * from "../Animations/index.js";
|
|
3
|
-
export * from "../Autocomplete/index.js";
|
|
4
|
-
export * from "../Bg/index.js";
|
|
5
|
-
export * from "../Breadcrumbs/index.js";
|
|
6
|
-
export * from "../Buttons/index.js";
|
|
7
|
-
export * from "../Carousel/index.js";
|
|
8
|
-
export * from "../Collapsable/index.js";
|
|
9
|
-
export * from "../Debug/index.js";
|
|
10
|
-
export { KoineDialog, type KoineDialogProps } from "../Dialog/sc/bare.js";
|
|
11
|
-
export { KoineForm, type KoineFormProps } from "../Form/sc/bare.js";
|
|
12
|
-
export * from "../Forms/index.js";
|
|
13
|
-
export * from "../Grid/index.js";
|
|
14
|
-
export * from "../Hamburger/index.js";
|
|
15
|
-
export * from "../Header/index.js";
|
|
16
|
-
export * from "../Hidden/index.js";
|
|
17
|
-
export * from "../Img/index.js";
|
|
18
|
-
export * from "../Link/index.js";
|
|
19
|
-
export * from "../MenuItem/index.js";
|
|
20
|
-
export * from "../Pagination/index.js";
|
|
21
|
-
export * from "../Pill/index.js";
|
|
22
|
-
export * from "../Progress/index.js";
|
|
23
|
-
export * from "../Rating/index.js";
|
|
24
|
-
export * from "../Sidebar/index.js";
|
|
25
|
-
export * from "../Spacing/index.js";
|
|
26
|
-
export * from "../Sticky/index.js";
|
|
27
|
-
export * from "../styles/index.js";
|
|
28
|
-
export * from "../Tabs/index.js";
|
|
29
|
-
export * from "../Typography/index.js";
|
package/sc/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from "../Alert/index.js";
|
|
2
|
-
export * from "../Animations/index.js";
|
|
3
|
-
export * from "../Autocomplete/index.js";
|
|
4
|
-
export * from "../Bg/index.js";
|
|
5
|
-
export * from "../Breadcrumbs/index.js";
|
|
6
|
-
export * from "../Buttons/index.js";
|
|
7
|
-
export * from "../Carousel/index.js";
|
|
8
|
-
export * from "../Collapsable/index.js";
|
|
9
|
-
export * from "../Debug/index.js";
|
|
10
|
-
export { KoineDialog } from "../Dialog/sc/bare.js";
|
|
11
|
-
export { KoineForm } from "../Form/sc/bare.js";
|
|
12
|
-
export * from "../Forms/index.js";
|
|
13
|
-
export * from "../Grid/index.js";
|
|
14
|
-
export * from "../Hamburger/index.js";
|
|
15
|
-
export * from "../Header/index.js";
|
|
16
|
-
export * from "../Hidden/index.js";
|
|
17
|
-
export * from "../Img/index.js";
|
|
18
|
-
export * from "../Link/index.js";
|
|
19
|
-
export * from "../MenuItem/index.js";
|
|
20
|
-
export * from "../Pagination/index.js";
|
|
21
|
-
export * from "../Pill/index.js";
|
|
22
|
-
export * from "../Progress/index.js";
|
|
23
|
-
export * from "../Rating/index.js";
|
|
24
|
-
export * from "../Sidebar/index.js";
|
|
25
|
-
export * from "../Spacing/index.js";
|
|
26
|
-
export * from "../Sticky/index.js";
|
|
27
|
-
export * from "../styles/index.js";
|
|
28
|
-
export * from "../Tabs/index.js";
|
|
29
|
-
export * from "../Typography/index.js";
|
package/scm/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export * from "../Alert/index.js";
|
|
2
|
-
export * from "../Animations/index.js";
|
|
3
|
-
export * from "../Autocomplete/index.js";
|
|
4
|
-
export * from "../Bg/index.js";
|
|
5
|
-
export * from "../Breadcrumbs/index.js";
|
|
6
|
-
export * from "../Buttons/index.js";
|
|
7
|
-
export * from "../Carousel/index.js";
|
|
8
|
-
export * from "../Collapsable/index.js";
|
|
9
|
-
export * from "../Debug/index.js";
|
|
10
|
-
export { KoineDialog, type KoineDialogProps } from "../Dialog/sc/framer.js";
|
|
11
|
-
export * from "../Forms/index.js";
|
|
12
|
-
export * from "../Grid/index.js";
|
|
13
|
-
export * from "../Hamburger/index.js";
|
|
14
|
-
export * from "../Header/index.js";
|
|
15
|
-
export * from "../Hidden/index.js";
|
|
16
|
-
export * from "../Img/index.js";
|
|
17
|
-
export * from "../Link/index.js";
|
|
18
|
-
export * from "../MenuItem/index.js";
|
|
19
|
-
export * from "../Pagination/index.js";
|
|
20
|
-
export * from "../Pill/index.js";
|
|
21
|
-
export * from "../Progress/index.js";
|
|
22
|
-
export * from "../Rating/index.js";
|
|
23
|
-
export * from "../Sidebar/index.js";
|
|
24
|
-
export * from "../Spacing/index.js";
|
|
25
|
-
export * from "../Sticky/index.js";
|
|
26
|
-
export * from "../styles/index.js";
|
|
27
|
-
export * from "../Tabs/index.js";
|
|
28
|
-
export * from "../Typography/index.js";
|
package/scm/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export * from "../Alert/index.js";
|
|
2
|
-
export * from "../Animations/index.js";
|
|
3
|
-
export * from "../Autocomplete/index.js";
|
|
4
|
-
export * from "../Bg/index.js";
|
|
5
|
-
export * from "../Breadcrumbs/index.js";
|
|
6
|
-
export * from "../Buttons/index.js";
|
|
7
|
-
export * from "../Carousel/index.js";
|
|
8
|
-
export * from "../Collapsable/index.js";
|
|
9
|
-
export * from "../Debug/index.js";
|
|
10
|
-
export { KoineDialog } from "../Dialog/sc/framer.js";
|
|
11
|
-
export * from "../Forms/index.js";
|
|
12
|
-
export * from "../Grid/index.js";
|
|
13
|
-
export * from "../Hamburger/index.js";
|
|
14
|
-
export * from "../Header/index.js";
|
|
15
|
-
export * from "../Hidden/index.js";
|
|
16
|
-
export * from "../Img/index.js";
|
|
17
|
-
export * from "../Link/index.js";
|
|
18
|
-
export * from "../MenuItem/index.js";
|
|
19
|
-
export * from "../Pagination/index.js";
|
|
20
|
-
export * from "../Pill/index.js";
|
|
21
|
-
export * from "../Progress/index.js";
|
|
22
|
-
export * from "../Rating/index.js";
|
|
23
|
-
export * from "../Sidebar/index.js";
|
|
24
|
-
export * from "../Spacing/index.js";
|
|
25
|
-
export * from "../Sticky/index.js";
|
|
26
|
-
export * from "../styles/index.js";
|
|
27
|
-
export * from "../Tabs/index.js";
|
|
28
|
-
export * from "../Typography/index.js";
|
package/shared/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "../Calendar/index.js";
|
|
2
|
-
export * from "../Dialog/index.js";
|
|
3
|
-
export * from "../FaviconTags.js";
|
|
4
|
-
export { FaviconTags, type FaviconTagsProps } from "../FaviconTags.js";
|
|
5
|
-
export * from "../Meta.js";
|
|
6
|
-
export * from "../NoJs.js";
|
|
7
|
-
export * from "../types.js";
|
package/shared/index.js
DELETED
package/styles/Body.d.ts
DELETED
package/styles/Body.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
export var BodyRoot = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n"], ["\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n"])));
|
|
4
|
-
export var BodyMain = styled.main(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
5
|
-
var templateObject_1, templateObject_2;
|
package/styles/Global.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const stylesGlobal = "\n body {\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n }\n\n body,\n button,\n input,\n textarea,\n select,\n select:-webkit-autofill::first-line,\n input:-webkit-autofill::first-line {\n font-family: var(--font), -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: var(--fontSize);\n }\n\n html {\n box-sizing: border-box;\n @media (prefers-reduced-motion: no-preference) {\n scroll-behavior: smooth;\n }\n }\n\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n -webkit-tap-highlight-color: transparent;\n }\n";
|
|
2
|
-
export declare const StylesGlobal: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
package/styles/Global.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import { createGlobalStyle } from "styled-components";
|
|
3
|
-
export var stylesGlobal = "\n body {\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n }\n\n body,\n button,\n input,\n textarea,\n select,\n select:-webkit-autofill::first-line,\n input:-webkit-autofill::first-line {\n font-family: var(--font), -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: var(--fontSize);\n }\n\n html {\n box-sizing: border-box;\n @media (prefers-reduced-motion: no-preference) {\n scroll-behavior: smooth;\n }\n }\n\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n -webkit-tap-highlight-color: transparent;\n }\n";
|
|
4
|
-
export var StylesGlobal = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["", ""], ["", ""])), stylesGlobal);
|
|
5
|
-
var templateObject_1;
|
package/styles/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { BodyMain, BodyRoot } from "./Body.js";
|
|
2
|
-
export { StylesGlobal, stylesGlobal } from "./Global.js";
|
|
3
|
-
export { MediaDirection, MediaQuery, MediaQueryFunction, between, down, generateMediaQueries, max, min, only, up, useMedia, } from "./media.js";
|
|
4
|
-
export { SpacingArgs, SpacingDevices, SpacingDirection, SpacingDirectionAxis, SpacingFactor, SpacingProperty, SpacingSize, spacing, spacingBottom, spacingTop, spacingVertical, } from "./spacing.js";
|
|
5
|
-
export { colStretch, centered, ellipsis, inset0, invisible, overlay, stateFocus, } from "./styled.js";
|
|
6
|
-
export { breakpoints, createTheme, useTheme, type Breakpoint, type Breakpoints, type Theme, type ThemeOptions, } from "./theme.js";
|
|
7
|
-
export { THEME_DEFAULT, THEME_KEY, type ThemeCookie, ThemeVanillaContext, type ThemeVanillaContextType, ThemeVanillaProvider, type ThemeVanillaProviderProps, type ThemeVanillaValue, getInitialThemeFromClient, } from "./theme--vanilla.js";
|
package/styles/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { BodyMain, BodyRoot } from "./Body.js";
|
|
2
|
-
export { StylesGlobal, stylesGlobal } from "./Global.js";
|
|
3
|
-
export { between, down, generateMediaQueries, max, min, only, up, useMedia, } from "./media.js";
|
|
4
|
-
export { spacing, spacingBottom, spacingTop, spacingVertical, } from "./spacing.js";
|
|
5
|
-
export { colStretch, centered, ellipsis, inset0, invisible, overlay, stateFocus, } from "./styled.js";
|
|
6
|
-
export { breakpoints, createTheme, useTheme, } from "./theme.js";
|
|
7
|
-
export { THEME_DEFAULT, THEME_KEY, ThemeVanillaContext, ThemeVanillaProvider, getInitialThemeFromClient, } from "./theme--vanilla.js";
|
package/styles/media.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Breakpoint, Breakpoints } from "./theme.js";
|
|
2
|
-
export declare const min: MediaQueryFunction, max: MediaQueryFunction, up: MediaQueryFunction, down: (br: Breakpoint) => string, between: (br1: Breakpoint, br2: Breakpoint) => string, only: (br: Breakpoint) => string;
|
|
3
|
-
export type MediaDirection = "min" | "max";
|
|
4
|
-
export type MediaQuery = `${MediaDirection}:${Breakpoint}`;
|
|
5
|
-
export type MediaQueryFunction = {
|
|
6
|
-
[Breakpoint in keyof Breakpoints]: string;
|
|
7
|
-
} & {
|
|
8
|
-
(breakpoint: Breakpoint): string;
|
|
9
|
-
};
|
|
10
|
-
export declare function useMedia(media: MediaQuery): boolean;
|
|
11
|
-
export declare function generateMediaQueries(breakpoints: Breakpoints): {
|
|
12
|
-
min: MediaQueryFunction;
|
|
13
|
-
max: MediaQueryFunction;
|
|
14
|
-
up: MediaQueryFunction;
|
|
15
|
-
down: (br: Breakpoint) => string;
|
|
16
|
-
between: (br1: Breakpoint, br2: Breakpoint) => string;
|
|
17
|
-
only: (br: Breakpoint) => string;
|
|
18
|
-
};
|
package/styles/media.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { __read } from "tslib";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { breakpoints, useTheme } from "./theme.js";
|
|
5
|
-
export var min = (_a = generateMediaQueries(breakpoints), _a.min), max = _a.max, up = _a.up, down = _a.down, between = _a.between, only = _a.only;
|
|
6
|
-
export function useMedia(media) {
|
|
7
|
-
var breakpoints = useTheme().breakpoints;
|
|
8
|
-
var _a = __read(useState(false), 2), matches = _a[0], setMatches = _a[1];
|
|
9
|
-
var _b = __read(media.split(":"), 2), _c = _b[0], direction = _c === void 0 ? "min" : _c, breakpoint = _b[1];
|
|
10
|
-
var px = breakpoints[breakpoint];
|
|
11
|
-
if (direction === "max") {
|
|
12
|
-
px = px - 0.02;
|
|
13
|
-
}
|
|
14
|
-
var query = "(".concat(direction, "-width: ").concat(px, "px)");
|
|
15
|
-
useEffect(function () {
|
|
16
|
-
var mq = window.matchMedia(query);
|
|
17
|
-
var handleChange = function (event) {
|
|
18
|
-
setMatches(event.matches);
|
|
19
|
-
};
|
|
20
|
-
setMatches(mq.matches);
|
|
21
|
-
if (!mq.addEventListener) {
|
|
22
|
-
mq.addListener(handleChange);
|
|
23
|
-
return function () {
|
|
24
|
-
mq.removeListener(handleChange);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
mq.addEventListener("change", handleChange);
|
|
28
|
-
return function () {
|
|
29
|
-
mq.removeEventListener("change", handleChange);
|
|
30
|
-
};
|
|
31
|
-
}, [query]);
|
|
32
|
-
return matches;
|
|
33
|
-
}
|
|
34
|
-
export function generateMediaQueries(breakpoints) {
|
|
35
|
-
var temp = Object.keys(breakpoints).map(function (key) {
|
|
36
|
-
var br = key;
|
|
37
|
-
return [br, breakpoints[br]];
|
|
38
|
-
});
|
|
39
|
-
var sortedKeys = temp.sort(function (a, b) { return a[1] - b[1]; }).map(function (item) { return item[0]; });
|
|
40
|
-
var getNext = function (breakpoint) {
|
|
41
|
-
var index = sortedKeys.indexOf(breakpoint);
|
|
42
|
-
return sortedKeys[index + 1];
|
|
43
|
-
};
|
|
44
|
-
var min = function (br) {
|
|
45
|
-
return "@media (min-width: ".concat(breakpoints[br], "px)");
|
|
46
|
-
};
|
|
47
|
-
var max = function (br) {
|
|
48
|
-
return "@media (max-width: ".concat(breakpoints[br] - 0.02, "px)");
|
|
49
|
-
};
|
|
50
|
-
for (var br in breakpoints) {
|
|
51
|
-
var _br = br;
|
|
52
|
-
min[_br] = "@media (min-width: ".concat(breakpoints[_br], "px)");
|
|
53
|
-
max[_br] = "@media (max-width: ".concat(breakpoints[_br] - 0.02, "px)");
|
|
54
|
-
}
|
|
55
|
-
var up = min;
|
|
56
|
-
var down = function (br) {
|
|
57
|
-
var brNext = getNext(br);
|
|
58
|
-
return brNext && "@media (max-width: ".concat(breakpoints[brNext] - 0.02, "px)");
|
|
59
|
-
};
|
|
60
|
-
var between = function (br1, br2) {
|
|
61
|
-
return "@media (min-width: ".concat(breakpoints[br1], "px) and (max-width: ").concat(breakpoints[br2] - 0.02, "px)");
|
|
62
|
-
};
|
|
63
|
-
var only = function (br) {
|
|
64
|
-
var brNext = getNext(br);
|
|
65
|
-
return brNext ? between(br, brNext) : min(br);
|
|
66
|
-
};
|
|
67
|
-
return {
|
|
68
|
-
min: min,
|
|
69
|
-
max: max,
|
|
70
|
-
up: up,
|
|
71
|
-
down: down,
|
|
72
|
-
between: between,
|
|
73
|
-
only: only,
|
|
74
|
-
};
|
|
75
|
-
}
|
package/styles/spacing.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Theme } from "./theme.js";
|
|
2
|
-
export type SpacingSize = "sm" | "md" | "lg";
|
|
3
|
-
export type SpacingProperty = "padding" | "margin";
|
|
4
|
-
export type SpacingFactor = number;
|
|
5
|
-
export type SpacingDirection = "top" | "bottom";
|
|
6
|
-
export type SpacingDirectionAxis = "vertical" | SpacingDirection;
|
|
7
|
-
export type SpacingDevices = keyof Theme["devices"];
|
|
8
|
-
export type SpacingArgs = Parameters<typeof spacing>;
|
|
9
|
-
export declare function spacing(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, direction?: SpacingDirectionAxis, devices?: SpacingDevices[]): string;
|
|
10
|
-
export declare function spacingTop(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, devices?: SpacingDevices[]): string;
|
|
11
|
-
export declare function spacingBottom(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, devices?: SpacingDevices[]): string;
|
|
12
|
-
export declare function spacingVertical(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, devices?: SpacingDevices[]): string;
|
package/styles/spacing.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
function _spacing(theme, size, factor, property, direction, devices) {
|
|
2
|
-
if (size === void 0) { size = "md"; }
|
|
3
|
-
if (factor === void 0) { factor = 1; }
|
|
4
|
-
if (property === void 0) { property = "padding"; }
|
|
5
|
-
if (direction === void 0) { direction = "top"; }
|
|
6
|
-
if (devices === void 0) { devices = ["mobile", "tablet", "desktop"]; }
|
|
7
|
-
var breakpoints = theme.breakpoints, DEVICES = theme.devices, SPACES = theme.spaces;
|
|
8
|
-
var css = "";
|
|
9
|
-
var prop = "".concat(property, "-").concat(direction);
|
|
10
|
-
if (!devices.length || devices[0] === "mobile") {
|
|
11
|
-
css += "@media(max-width: ".concat(breakpoints[DEVICES.mobile], "px){\n ").concat(prop, ": ").concat(SPACES["mobile"][size] * factor, "px;\n }");
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
for (var index = 0; index < devices.length; index++) {
|
|
15
|
-
var device = devices[index];
|
|
16
|
-
if (device === "mobile") {
|
|
17
|
-
css += "".concat(prop, ": ").concat(SPACES[device][size] * factor, "px;");
|
|
18
|
-
}
|
|
19
|
-
else if (device === "tablet") {
|
|
20
|
-
css += "@media(min-width: ".concat(breakpoints[DEVICES.tablet], "px){\n ").concat(prop, ": ").concat(SPACES["tablet"][size] * factor, "px;\n }");
|
|
21
|
-
}
|
|
22
|
-
else if (device === "desktop") {
|
|
23
|
-
css += "@media(min-width: ".concat(breakpoints[DEVICES.desktop], "px){\n ").concat(prop, ": ").concat(SPACES["desktop"][size] * factor, "px;\n }");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return css;
|
|
28
|
-
}
|
|
29
|
-
export function spacing(size, factor, property, direction, devices) {
|
|
30
|
-
if (direction === "vertical") {
|
|
31
|
-
return (_spacing(this, size, factor, property, "top", devices) +
|
|
32
|
-
_spacing(this, size, factor, property, "bottom", devices));
|
|
33
|
-
}
|
|
34
|
-
return _spacing(this, size, factor, property, direction, devices);
|
|
35
|
-
}
|
|
36
|
-
export function spacingTop(size, factor, property, devices) {
|
|
37
|
-
return _spacing(this, size, factor, property, "top", devices);
|
|
38
|
-
}
|
|
39
|
-
export function spacingBottom(size, factor, property, devices) {
|
|
40
|
-
return _spacing(this, size, factor, property, "bottom", devices);
|
|
41
|
-
}
|
|
42
|
-
export function spacingVertical(size, factor, property, devices) {
|
|
43
|
-
return (_spacing(this, size, factor, property, "top", devices) +
|
|
44
|
-
_spacing(this, size, factor, property, "bottom", devices));
|
|
45
|
-
}
|
package/styles/styled.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const colStretch: (direction: "left" | "right", bg: React.CSSProperties["background"]) => string;
|
|
3
|
-
export declare const inset0 = "top:0;left:0;right:0;bottom:0;";
|
|
4
|
-
export declare const overlay: string;
|
|
5
|
-
export declare const centered = "display: flex;align-items: center;justify-content: center;";
|
|
6
|
-
export declare const ellipsis = "overflow: hidden;text-overflow: ellipsis;white-space: nowrap;";
|
|
7
|
-
export declare const invisible = "border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;white-space: nowrap;width: 1px;";
|
|
8
|
-
export declare const stateFocus = "outline: 0px;box-shadow: 0 0 0 0.2rem rgba(200, 200, 200, 0.25);";
|
package/styles/styled.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export var colStretch = function (direction, bg) {
|
|
2
|
-
return "\n background: ".concat(bg, ";\n position: relative;\n\n &:before{\n z-index: -1;\n content: '';\n position: absolute;\n right: ").concat(direction === "left" ? "100%" : "-100vw", ";\n left: ").concat(direction === "right" ? "100%" : "-100vw", ";\n top: 0;\n bottom: 0;\n background: ").concat(bg, ";\n }\n ");
|
|
3
|
-
};
|
|
4
|
-
export var inset0 = "top:0;left:0;right:0;bottom:0;";
|
|
5
|
-
export var overlay = "position: absolute;".concat(inset0);
|
|
6
|
-
export var centered = "display: flex;align-items: center;justify-content: center;";
|
|
7
|
-
export var ellipsis = "overflow: hidden;text-overflow: ellipsis;white-space: nowrap;";
|
|
8
|
-
export var invisible = "border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;white-space: nowrap;width: 1px;";
|
|
9
|
-
export var stateFocus = "outline: 0px;box-shadow: 0 0 0 0.2rem rgba(200, 200, 200, 0.25);";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const THEME_KEY = "theme";
|
|
3
|
-
export declare const THEME_DEFAULT: ThemeVanillaValue;
|
|
4
|
-
export declare const getInitialThemeFromClient: () => ThemeVanillaValue;
|
|
5
|
-
export type ThemeCookie = {
|
|
6
|
-
[THEME_KEY]: ThemeVanillaValue;
|
|
7
|
-
};
|
|
8
|
-
export type ThemeVanillaValue = "light" | "dark";
|
|
9
|
-
export type ThemeVanillaContextType = {
|
|
10
|
-
theme: ThemeVanillaValue;
|
|
11
|
-
setTheme?: React.Dispatch<React.SetStateAction<ThemeVanillaValue>>;
|
|
12
|
-
};
|
|
13
|
-
export declare const ThemeVanillaContext: import("react").Context<ThemeVanillaContextType>;
|
|
14
|
-
export type ThemeVanillaProviderProps = React.PropsWithChildren<{
|
|
15
|
-
initialTheme: ThemeVanillaValue;
|
|
16
|
-
}>;
|
|
17
|
-
export declare const ThemeVanillaProvider: ({ initialTheme, children, }: ThemeVanillaProviderProps) => import("react/jsx-runtime").JSX.Element;
|
package/styles/theme--vanilla.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { __read } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useEffect, useState } from "react";
|
|
4
|
-
import { isBrowser } from "@koine/utils";
|
|
5
|
-
import useUpdateEffect from "../useUpdateEffect.js";
|
|
6
|
-
export var THEME_KEY = "theme";
|
|
7
|
-
export var THEME_DEFAULT = "light";
|
|
8
|
-
export var getInitialThemeFromClient = function () {
|
|
9
|
-
if (typeof window !== "undefined" && window.localStorage) {
|
|
10
|
-
var storedPrefs = window.localStorage.getItem(THEME_KEY);
|
|
11
|
-
if (typeof storedPrefs === "string") {
|
|
12
|
-
return storedPrefs;
|
|
13
|
-
}
|
|
14
|
-
var userMedia = window.matchMedia("(prefers-color-scheme: dark)");
|
|
15
|
-
if (userMedia.matches) {
|
|
16
|
-
return "dark";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return THEME_DEFAULT;
|
|
20
|
-
};
|
|
21
|
-
export var ThemeVanillaContext = createContext({
|
|
22
|
-
theme: "light",
|
|
23
|
-
setTheme: undefined,
|
|
24
|
-
});
|
|
25
|
-
export var ThemeVanillaProvider = function (_a) {
|
|
26
|
-
var initialTheme = _a.initialTheme, children = _a.children;
|
|
27
|
-
var _b = __read(useState(initialTheme), 2), theme = _b[0], setTheme = _b[1];
|
|
28
|
-
var rawSetTheme = function (rawTheme) {
|
|
29
|
-
if (!rawTheme || !isBrowser) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
var root = window.document.documentElement;
|
|
33
|
-
var isDark = rawTheme === "dark";
|
|
34
|
-
root.classList.remove(isDark ? "light" : "dark");
|
|
35
|
-
root.classList.add(rawTheme);
|
|
36
|
-
localStorage.setItem(THEME_KEY, rawTheme);
|
|
37
|
-
};
|
|
38
|
-
useEffect(function () {
|
|
39
|
-
var theme = getInitialThemeFromClient();
|
|
40
|
-
setTheme(theme);
|
|
41
|
-
rawSetTheme(theme);
|
|
42
|
-
}, []);
|
|
43
|
-
useUpdateEffect(function () {
|
|
44
|
-
rawSetTheme(theme);
|
|
45
|
-
}, [theme]);
|
|
46
|
-
return (_jsx(ThemeVanillaContext.Provider, { value: { theme: theme, setTheme: setTheme }, children: children }));
|
|
47
|
-
};
|
package/styles/theme.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
2
|
-
export type Breakpoints = Record<Breakpoint, number>;
|
|
3
|
-
export declare const breakpoints: Breakpoints;
|
|
4
|
-
export declare const createTheme: (options: ThemeOptions) => Theme;
|
|
5
|
-
export declare const useTheme: () => Theme;
|
|
6
|
-
export type Theme = {
|
|
7
|
-
maxWidth: number;
|
|
8
|
-
gutter: {
|
|
9
|
-
quarter: number;
|
|
10
|
-
third: number;
|
|
11
|
-
half: number;
|
|
12
|
-
normal: number;
|
|
13
|
-
double: number;
|
|
14
|
-
triple: number;
|
|
15
|
-
};
|
|
16
|
-
breakpoints: Breakpoints;
|
|
17
|
-
devices: {
|
|
18
|
-
mobile: keyof Breakpoints;
|
|
19
|
-
tablet: keyof Breakpoints;
|
|
20
|
-
desktop: keyof Breakpoints;
|
|
21
|
-
};
|
|
22
|
-
spaces: {
|
|
23
|
-
mobile: {
|
|
24
|
-
sm: number;
|
|
25
|
-
md: number;
|
|
26
|
-
lg: number;
|
|
27
|
-
};
|
|
28
|
-
tablet: {
|
|
29
|
-
sm: number;
|
|
30
|
-
md: number;
|
|
31
|
-
lg: number;
|
|
32
|
-
};
|
|
33
|
-
desktop: {
|
|
34
|
-
sm: number;
|
|
35
|
-
md: number;
|
|
36
|
-
lg: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
header: {
|
|
40
|
-
breakpoint: keyof Breakpoints;
|
|
41
|
-
height: [number, number];
|
|
42
|
-
heightSticky: [number, number];
|
|
43
|
-
logoWidth: [number, number];
|
|
44
|
-
logoWidthSticky: [number, number];
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export type ThemeOptions = {
|
|
48
|
-
maxWidth?: number;
|
|
49
|
-
gutter: NonNullable<Theme["gutter"]>;
|
|
50
|
-
devices?: Theme["devices"];
|
|
51
|
-
spaces: NonNullable<Theme["spaces"]>;
|
|
52
|
-
header: NonNullable<Theme["header"]>;
|
|
53
|
-
};
|
package/styles/theme.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __assign, __read } from "tslib";
|
|
2
|
-
import { useTheme as _useTheme } from "styled-components";
|
|
3
|
-
var DEFAULT_BREAKPOINTS = {
|
|
4
|
-
xs: 0,
|
|
5
|
-
sm: 440,
|
|
6
|
-
md: 768,
|
|
7
|
-
lg: 1024,
|
|
8
|
-
xl: 1368,
|
|
9
|
-
xxl: 1690,
|
|
10
|
-
};
|
|
11
|
-
export var breakpoints = process.env["BREAKPOINTS"]
|
|
12
|
-
? process.env["BREAKPOINTS"].split(",").reduce(function (map, pair) {
|
|
13
|
-
var _a = __read(pair.split(":"), 2), key = _a[0], value = _a[1];
|
|
14
|
-
map[key] = parseFloat(value);
|
|
15
|
-
return map;
|
|
16
|
-
}, {})
|
|
17
|
-
: DEFAULT_BREAKPOINTS;
|
|
18
|
-
var themeDefault = {
|
|
19
|
-
maxWidth: breakpoints.xxl,
|
|
20
|
-
breakpoints: breakpoints,
|
|
21
|
-
devices: {
|
|
22
|
-
mobile: "sm",
|
|
23
|
-
tablet: "md",
|
|
24
|
-
desktop: "lg",
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
export var createTheme = function (options) {
|
|
28
|
-
return (__assign(__assign({}, themeDefault), options));
|
|
29
|
-
};
|
|
30
|
-
export var useTheme = _useTheme;
|
package/tw/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { KoineDialog, type KoineDialogProps } from "../Dialog/tw/bare.js";
|
package/tw/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { KoineDialog } from "../Dialog/tw/bare.js";
|
package/twm/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { KoineDialog, type KoineDialogProps } from "../Dialog/tw/framer.js";
|
package/twm/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { KoineDialog } from "../Dialog/tw/framer.js";
|
package/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/typings.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types specifically related to `@koine/react` exposed on the global unique
|
|
3
|
-
* namespace `Koine`. Most of the types here should be prefixed by `React`, e.g.
|
|
4
|
-
* `ReactSomeFeature` accessible anywhere from `Koine.ReactSomeFeature`
|
|
5
|
-
*/
|
|
6
|
-
declare namespace Koine {}
|
package/useAsyncFn.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __assign, __read, __spreadArray } from "tslib";
|
|
2
|
-
import { useCallback, useRef, useState } from "react";
|
|
3
|
-
import { useMountedState } from "./useMountedState.js";
|
|
4
|
-
export function useAsyncFn(fn, deps, initialState) {
|
|
5
|
-
if (deps === void 0) { deps = []; }
|
|
6
|
-
if (initialState === void 0) { initialState = { loading: false }; }
|
|
7
|
-
var lastCallId = useRef(0);
|
|
8
|
-
var isMounted = useMountedState();
|
|
9
|
-
var _a = __read(useState(initialState), 2), state = _a[0], set = _a[1];
|
|
10
|
-
var callback = useCallback(function () {
|
|
11
|
-
var args = [];
|
|
12
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
13
|
-
args[_i] = arguments[_i];
|
|
14
|
-
}
|
|
15
|
-
var callId = ++lastCallId.current;
|
|
16
|
-
if (!state.loading) {
|
|
17
|
-
set(function (prevState) { return (__assign(__assign({}, prevState), { loading: true })); });
|
|
18
|
-
}
|
|
19
|
-
return fn.apply(void 0, __spreadArray([], __read(args), false)).then(function (value) {
|
|
20
|
-
isMounted() &&
|
|
21
|
-
callId === lastCallId.current &&
|
|
22
|
-
set({ value: value, loading: false });
|
|
23
|
-
return value;
|
|
24
|
-
}, function (error) {
|
|
25
|
-
isMounted() &&
|
|
26
|
-
callId === lastCallId.current &&
|
|
27
|
-
set({ error: error, loading: false });
|
|
28
|
-
return error;
|
|
29
|
-
});
|
|
30
|
-
}, deps);
|
|
31
|
-
return [state, callback];
|
|
32
|
-
}
|
|
33
|
-
export default useAsyncFn;
|
package/useDateLocale.d.ts
DELETED