@koine/react 2.0.0-beta.38 → 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 -639
- 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/Grid/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Grid.js";
|
package/Grid/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Grid.js";
|
package/Hamburger/Hamburger.d.ts
DELETED
package/Hamburger/Hamburger.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import styled from "styled-components";
|
|
4
|
-
var HamburgerLabel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n top: 30px;\n font-size: ", ";\n text-transform: uppercase;\n left: 7px;\n letter-spacing: 3px;\n"], ["\n position: absolute;\n top: 30px;\n font-size: ", ";\n text-transform: uppercase;\n left: 7px;\n letter-spacing: 3px;\n"])), function (_a) {
|
|
5
|
-
var $toggled = _a.$toggled;
|
|
6
|
-
return ($toggled ? "0" : "9px");
|
|
7
|
-
});
|
|
8
|
-
var area = 48;
|
|
9
|
-
var lines = 3;
|
|
10
|
-
var width = 32;
|
|
11
|
-
var room = Math.round((area - width) / 2);
|
|
12
|
-
var barHeightRaw = width / 12;
|
|
13
|
-
var barHeight = Math.round(barHeightRaw);
|
|
14
|
-
var space = 0.5;
|
|
15
|
-
var marginRaw = width / (lines * (space + (lines === 3 ? 1 : 1.25)));
|
|
16
|
-
var margin = Math.round(marginRaw);
|
|
17
|
-
var height = barHeight * lines + margin * (lines - 1);
|
|
18
|
-
var topOffset = Math.round((area - height) / 2);
|
|
19
|
-
var translate = 4.6325;
|
|
20
|
-
var deviation = (barHeightRaw - barHeight + (marginRaw - margin)) / (lines === 3 ? 1 : 2);
|
|
21
|
-
var move = parseFloat((width / translate - deviation / (4 / 3)).toFixed(2));
|
|
22
|
-
var time = 0.4;
|
|
23
|
-
var easing = "cubic-bezier(0, 0, 0, 1)";
|
|
24
|
-
var transition = "".concat(time, "s ").concat(easing);
|
|
25
|
-
var burgerStyles = {
|
|
26
|
-
marginRight: "-8px",
|
|
27
|
-
position: "relative",
|
|
28
|
-
width: "".concat(area, "px"),
|
|
29
|
-
height: "".concat(area, "px"),
|
|
30
|
-
userSelect: "none",
|
|
31
|
-
outline: "0px",
|
|
32
|
-
cursor: "pointer",
|
|
33
|
-
transition: transition,
|
|
34
|
-
};
|
|
35
|
-
var barStyles = {
|
|
36
|
-
position: "absolute",
|
|
37
|
-
width: "".concat(width, "px"),
|
|
38
|
-
height: "".concat(barHeight, "px"),
|
|
39
|
-
left: "".concat(room, "px"),
|
|
40
|
-
background: "currentColor",
|
|
41
|
-
transition: transition,
|
|
42
|
-
};
|
|
43
|
-
export var Hamburger = function (_a) {
|
|
44
|
-
var toggled = _a.toggled, props = __rest(_a, ["toggled"]);
|
|
45
|
-
return (_jsxs("div", __assign({ style: __assign(__assign({}, burgerStyles), { transform: "".concat(toggled ? "rotate(90deg)" : "none") }), tabIndex: 0 }, props, { children: [_jsx("div", { style: __assign(__assign({}, barStyles), { top: "".concat(topOffset, "px"), transform: "".concat(toggled ? "rotate(-45deg) translate(0px, ".concat(move, "px)") : "none") }) }), _jsx("div", { style: __assign(__assign({}, barStyles), { top: "".concat(topOffset + barHeight + margin, "px"), transform: "".concat(toggled ? "rotate(45deg) translate(0, -".concat(move, "px)") : "none") }) }), _jsx(HamburgerLabel, { "$toggled": toggled, children: "Menu" })] })));
|
|
46
|
-
};
|
|
47
|
-
var templateObject_1;
|
package/Hamburger/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Hamburger.js";
|
package/Hamburger/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Hamburger.js";
|
package/Header/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./useHeader.js";
|
package/Header/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./useHeader.js";
|
package/Header/useHeader.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
type isSticky = boolean & {
|
|
2
|
-
_branded: true;
|
|
3
|
-
};
|
|
4
|
-
type placeholderHeight = number & {
|
|
5
|
-
_branded: true;
|
|
6
|
-
};
|
|
7
|
-
type headerHeight = number & {
|
|
8
|
-
_branded: true;
|
|
9
|
-
};
|
|
10
|
-
type logoWidth = number & {
|
|
11
|
-
_branded: true;
|
|
12
|
-
};
|
|
13
|
-
type UseHeaderState = readonly [
|
|
14
|
-
isSticky,
|
|
15
|
-
placeholderHeight,
|
|
16
|
-
headerHeight,
|
|
17
|
-
logoWidth
|
|
18
|
-
];
|
|
19
|
-
export declare const useHeader: () => UseHeaderState;
|
|
20
|
-
export default useHeader;
|
package/Header/useHeader.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { __read } from "tslib";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import { useMedia } from "../styles/media.js";
|
|
4
|
-
import { useTheme } from "../styles/theme.js";
|
|
5
|
-
import { useScrollPosition } from "../useScrollPosition.js";
|
|
6
|
-
export var useHeader = function () {
|
|
7
|
-
var _a = __read(useState(false), 2), isSticky = _a[0], setIsSticky = _a[1];
|
|
8
|
-
var themed = useTheme().header;
|
|
9
|
-
var isDesktopLayout = useMedia("min:".concat(themed.breakpoint));
|
|
10
|
-
var valueIdx = isDesktopLayout ? 1 : 0;
|
|
11
|
-
var _b = __read(useState(themed.height[valueIdx]), 2), headerHeight = _b[0], setHeaderHeight = _b[1];
|
|
12
|
-
var _c = __read(useState(themed.height[valueIdx]), 2), placeholderHeight = _c[0], setPlaceholderHeight = _c[1];
|
|
13
|
-
var _d = __read(useState(themed.logoWidth[valueIdx]), 2), logoWidth = _d[0], setLogoWidth = _d[1];
|
|
14
|
-
useScrollPosition(function (currentPosition) {
|
|
15
|
-
var isPastThreshold = currentPosition.y * -1 > 40;
|
|
16
|
-
if (isSticky !== isPastThreshold)
|
|
17
|
-
setIsSticky(isPastThreshold);
|
|
18
|
-
}, [isSticky]);
|
|
19
|
-
useEffect(function () {
|
|
20
|
-
var valueIdx = isDesktopLayout ? 1 : 0;
|
|
21
|
-
setPlaceholderHeight(themed.height[valueIdx]);
|
|
22
|
-
setHeaderHeight(isSticky ? themed.heightSticky[valueIdx] : themed.height[valueIdx]);
|
|
23
|
-
setLogoWidth(isSticky ? themed.logoWidthSticky[valueIdx] : themed.logoWidth[valueIdx]);
|
|
24
|
-
}, [themed, isSticky, isDesktopLayout]);
|
|
25
|
-
return [
|
|
26
|
-
isSticky,
|
|
27
|
-
placeholderHeight,
|
|
28
|
-
headerHeight,
|
|
29
|
-
logoWidth,
|
|
30
|
-
];
|
|
31
|
-
};
|
|
32
|
-
export default useHeader;
|
package/Hidden/Hidden.d.ts
DELETED
package/Hidden/Hidden.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
export var Hidden = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (p) {
|
|
4
|
-
return "".concat(p.$min
|
|
5
|
-
? "\n @media (min-width: ".concat(p.theme.breakpoints[p.$min], "px) {\n display: none;\n }")
|
|
6
|
-
: "", " ").concat(p.$max
|
|
7
|
-
? "\n @media (max-width: ".concat(p.theme.breakpoints[p.$max], "px) {\n display: none;\n }")
|
|
8
|
-
: "");
|
|
9
|
-
});
|
|
10
|
-
var templateObject_1;
|
package/Hidden/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Hidden.js";
|
package/Hidden/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Hidden.js";
|
package/Img/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./types.js";
|
package/Img/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./types.js";
|
package/Img/sc/bare.d.ts
DELETED
package/Img/sc/bare.js
DELETED
package/Img/types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type KoineImgSmartWrapProps = React.PropsWithChildren<{
|
|
3
|
-
$loaded?: boolean;
|
|
4
|
-
$error?: boolean;
|
|
5
|
-
$bg?: React.CSSProperties["backgroundColor"];
|
|
6
|
-
}>;
|
|
7
|
-
export type KoineImgSmartProps = {
|
|
8
|
-
Wrap: React.FC<KoineImgSmartWrapProps>;
|
|
9
|
-
};
|
package/Img/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/Link/Link.d.ts
DELETED
package/Link/Link.js
DELETED
package/Link/LinkBlank.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type LinkBlankProps = React.ComponentPropsWithRef<"a">;
|
|
3
|
-
export declare const LinkBlankA: any;
|
|
4
|
-
export declare const LinkBlankIcon: any;
|
|
5
|
-
export declare const LinkBlank: ({ children, target, rel, ...props }: LinkBlankProps) => import("react/jsx-runtime").JSX.Element;
|
package/Link/LinkBlank.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { MdLaunch as IconOutboundLink } from "react-icons/md";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
import { max } from "../styles/media.js";
|
|
6
|
-
export var LinkBlankA = styled.a.attrs({
|
|
7
|
-
target: "_blank",
|
|
8
|
-
rel: "noopener",
|
|
9
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
10
|
-
export var LinkBlankIcon = styled(IconOutboundLink)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: var(---grey100);\n font-size: inherit;\n margin-left: 3px;\n line-height: inherit;\n vertical-align: middle;\n width: 0px;\n transition: width 0.1s ease-in-out;\n ", " {\n width: 20px;\n opacity: 0.8;\n }\n"], ["\n color: var(---grey100);\n font-size: inherit;\n margin-left: 3px;\n line-height: inherit;\n vertical-align: middle;\n width: 0px;\n transition: width 0.1s ease-in-out;\n ", " {\n width: 20px;\n opacity: 0.8;\n }\n"])), max.sm);
|
|
11
|
-
export var LinkBlank = function (_a) {
|
|
12
|
-
var children = _a.children, target = _a.target, rel = _a.rel, props = __rest(_a, ["children", "target", "rel"]);
|
|
13
|
-
return (_jsxs(LinkBlankA, __assign({}, props, { children: [children, _jsx(LinkBlankIcon, {})] })));
|
|
14
|
-
};
|
|
15
|
-
var templateObject_1, templateObject_2;
|
package/Link/index.d.ts
DELETED
package/Link/index.js
DELETED
package/Menu/Menu.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Menu: any;
|
package/Menu/Menu.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
export var Menu = styled.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: 3;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n background: #fff;\n width: 100%;\n box-shadow: var(--shadow);\n"], ["\n z-index: 3;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n background: #fff;\n width: 100%;\n box-shadow: var(--shadow);\n"])));
|
|
4
|
-
var templateObject_1;
|
package/Menu/MenuMui.d.ts
DELETED
|
File without changes
|
package/Menu/MenuMui.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/Menu/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Menu.js";
|
package/Menu/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Menu.js";
|
package/MenuItem/MenuItem.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MenuItem: any;
|
package/MenuItem/MenuItem.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
export var MenuItem = styled.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 8px 16px;\n\n &[aria-selected=\"true\"] {\n background: var(--accent400);\n }\n\n /** DEP: this is just for MultiselectMui? */\n &.Mui-focused,\n &[data-focus=\"true\"] {\n background: var(--accent300);\n color: white;\n }\n\n &:not([disabled]):hover {\n cursor: pointer;\n background: var(--accent300);\n }\n"], ["\n padding: 8px 16px;\n\n &[aria-selected=\"true\"] {\n background: var(--accent400);\n }\n\n /** DEP: this is just for MultiselectMui? */\n &.Mui-focused,\n &[data-focus=\"true\"] {\n background: var(--accent300);\n color: white;\n }\n\n &:not([disabled]):hover {\n cursor: pointer;\n background: var(--accent300);\n }\n"])));
|
|
4
|
-
var templateObject_1;
|
|
File without changes
|
package/MenuItem/MenuItemMui.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/MenuItem/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MenuItem.js";
|
package/MenuItem/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MenuItem.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UseMenuItemParameters } from "@mui/base/useMenuItem/useMenuItem.types";
|
|
2
|
-
export declare function useMenuItem(props: UseMenuItemParameters): {
|
|
3
|
-
getRootProps: (other?: Record<string, any>) => {
|
|
4
|
-
role: string;
|
|
5
|
-
};
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
ref: ((instance: Element | null) => void) | null;
|
|
8
|
-
};
|
|
9
|
-
export default useMenuItem;
|
package/MenuItem/useMenuItem.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __assign, __read } from "tslib";
|
|
2
|
-
import useMenu from "@mui/base/useMenu";
|
|
3
|
-
import useForkRef from "@mui/utils/useForkRef";
|
|
4
|
-
import { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
5
|
-
export function useMenuItem(props) {
|
|
6
|
-
var _a;
|
|
7
|
-
var _b = props.disabled, disabled = _b === void 0 ? false : _b, ref = props.rootRef, label = props.label;
|
|
8
|
-
var id = useId();
|
|
9
|
-
var _c = useMenu(), contextValue = _c.contextValue, open = _c.open;
|
|
10
|
-
var itemRef = useRef(null);
|
|
11
|
-
var handleRef = useForkRef(itemRef, ref);
|
|
12
|
-
if (contextValue === null) {
|
|
13
|
-
throw new Error("MenuItemUnstyled must be used within a MenuUnstyled");
|
|
14
|
-
}
|
|
15
|
-
var registerItem = contextValue.registerItem, getItemState = contextValue.getItemState;
|
|
16
|
-
useEffect(function () {
|
|
17
|
-
registerItem(id, { disabled: disabled, id: id, ref: itemRef, label: label });
|
|
18
|
-
}, [id, registerItem, disabled, ref, label]);
|
|
19
|
-
var _d = __read(useState(false), 2), focusRequested = _d[0], requestFocus = _d[1];
|
|
20
|
-
var focusIfRequested = useCallback(function () {
|
|
21
|
-
if (focusRequested && itemRef.current != null) {
|
|
22
|
-
itemRef.current.focus();
|
|
23
|
-
requestFocus(false);
|
|
24
|
-
}
|
|
25
|
-
}, [focusRequested]);
|
|
26
|
-
useEffect(function () {
|
|
27
|
-
focusIfRequested();
|
|
28
|
-
});
|
|
29
|
-
var itemState = getItemState(id !== null && id !== void 0 ? id : "");
|
|
30
|
-
var highlighted = (itemState !== null && itemState !== void 0 ? itemState : { highlighted: false }).highlighted;
|
|
31
|
-
useEffect(function () {
|
|
32
|
-
requestFocus(highlighted && open);
|
|
33
|
-
}, [highlighted, open]);
|
|
34
|
-
return {
|
|
35
|
-
getRootProps: function (other) {
|
|
36
|
-
return __assign(__assign({}, other), { role: "menuitem" });
|
|
37
|
-
},
|
|
38
|
-
disabled: (_a = itemState === null || itemState === void 0 ? void 0 : itemState.disabled) !== null && _a !== void 0 ? _a : false,
|
|
39
|
-
ref: handleRef,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export default useMenuItem;
|
package/Meta.d.ts
DELETED
package/Meta.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export var Meta = function (_a) {
|
|
3
|
-
var zoom = _a.zoom;
|
|
4
|
-
return (_jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1, maximum-scale=1".concat(zoom ? "" : ", user-scalable=0") }));
|
|
5
|
-
};
|
|
6
|
-
export default Meta;
|
package/NoJs.d.ts
DELETED
package/NoJs.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export var NoJs = function (_props) {
|
|
3
|
-
return (_jsx("script", { id: "no-js", dangerouslySetInnerHTML: {
|
|
4
|
-
__html: "document.querySelector(\"html\").className=document.querySelector(\"html\").className.replace(/no-js/,\"\") + \"js\";",
|
|
5
|
-
} }));
|
|
6
|
-
};
|
|
7
|
-
export default NoJs;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { KoineComponent, KoineComponentProps } from "../types.js";
|
|
2
|
-
export type KoinePaginationNavProps = {
|
|
3
|
-
total: string | number;
|
|
4
|
-
perPage: string | number;
|
|
5
|
-
currentPage: string | number;
|
|
6
|
-
baseUrl?: string;
|
|
7
|
-
showOffset?: number;
|
|
8
|
-
};
|
|
9
|
-
type PaginationNavProps = KoineComponentProps<KoinePaginationNavProps, {
|
|
10
|
-
currentUrl?: string;
|
|
11
|
-
Link?: KoineComponent;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const KoinePaginationNav: ({ total, perPage, currentPage: _currentPage, baseUrl, showOffset, currentUrl, Link, }: PaginationNavProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { CgArrowLeftR as IconArrowLeft, CgArrowRightR as IconArrowRight, } from "react-icons/cg";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
import { ensureInt } from "@koine/utils";
|
|
6
|
-
var Root = styled.nav(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 20px 0 40px;\n font-weight: 600;\n\n & a {\n text-decoration: none;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 20px 0 40px;\n font-weight: 600;\n\n & a {\n text-decoration: none;\n }\n"])));
|
|
7
|
-
var item = "\n display: block;\n padding: 5px 10px;\n";
|
|
8
|
-
var ItemCurrent = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n background: var(--accent400);\n border-radius: 2px;\n"], ["\n ", "\n background: var(--accent400);\n border-radius: 2px;\n"])), item);
|
|
9
|
-
var ItemLink = styled.a(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), item, function (props) { return (props.prev ? "color: var(--grey100);" : ""); });
|
|
10
|
-
var DotsSeparator = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: var(--grey100);\n"], ["\n color: var(--grey100);\n"])));
|
|
11
|
-
var arrow = "display: flex; font-size: 20px;";
|
|
12
|
-
var ItemPrev = styled.a(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), arrow);
|
|
13
|
-
var ItemNext = styled.a(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), arrow);
|
|
14
|
-
export var KoinePaginationNav = function (_a) {
|
|
15
|
-
var total = _a.total, perPage = _a.perPage, _currentPage = _a.currentPage, baseUrl = _a.baseUrl, _b = _a.showOffset, showOffset = _b === void 0 ? 2 : _b, _c = _a.currentUrl, currentUrl = _c === void 0 ? "/" : _c, _d = _a.Link, Link = _d === void 0 ? "a" : _d;
|
|
16
|
-
var currentPage = ensureInt(_currentPage);
|
|
17
|
-
total = ensureInt(total);
|
|
18
|
-
perPage = ensureInt(perPage);
|
|
19
|
-
currentPage = currentPage || 1;
|
|
20
|
-
baseUrl = baseUrl || currentUrl;
|
|
21
|
-
if (total < perPage) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
var firstPage = 1;
|
|
25
|
-
var lastPage = Math.ceil(total / perPage);
|
|
26
|
-
var prevPage = currentPage - 1 > firstPage ? currentPage - 1 : "";
|
|
27
|
-
var nextPage = currentPage + 1 < lastPage ? currentPage + 1 : lastPage;
|
|
28
|
-
var prevArrow = currentPage > firstPage;
|
|
29
|
-
var nextArrow = currentPage < lastPage;
|
|
30
|
-
var pages = [];
|
|
31
|
-
for (var i = currentPage - showOffset; i < currentPage; i++) {
|
|
32
|
-
if (i > 1) {
|
|
33
|
-
pages.push(i);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
pages.push(currentPage);
|
|
37
|
-
for (var i = currentPage + 1; i < currentPage + 1 + showOffset; i++) {
|
|
38
|
-
if (i < lastPage) {
|
|
39
|
-
pages.push(i);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
var prevDots = pages[0] > firstPage + 1;
|
|
43
|
-
var nextDots = pages[pages.length - 1] < lastPage - 1;
|
|
44
|
-
return (_jsxs(Root, { children: [prevArrow && (_jsx(ItemPrev, { as: Link, href: "".concat(baseUrl, "/").concat(prevPage), children: _jsx(IconArrowLeft, {}) })), firstPage !== currentPage && (_jsx(ItemLink, { as: Link, href: "".concat(baseUrl), prev: true, children: firstPage })), prevDots && _jsx(DotsSeparator, { children: "..." }), pages.map(function (page) {
|
|
45
|
-
return page === currentPage ? (_jsx(ItemCurrent, { children: page }, page)) : (_jsx(ItemLink, { as: Link, href: "".concat(baseUrl, "/").concat(page), prev: page < currentPage, next: page > currentPage, children: page }, "pagination-".concat(page)));
|
|
46
|
-
}), nextDots && _jsx(DotsSeparator, { children: "..." }), lastPage !== currentPage && (_jsx(ItemLink, { as: Link, href: "".concat(baseUrl, "/").concat(lastPage), next: true, children: lastPage })), nextArrow && (_jsx(ItemNext, { as: Link, href: "".concat(baseUrl, "/").concat(nextPage), children: _jsx(IconArrowRight, {}) }))] }));
|
|
47
|
-
};
|
|
48
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { AnimatePresence, m } from "framer-motion";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
var Root = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // overflow: hidden;\n"], ["\n // overflow: hidden;\n"])));
|
|
6
|
-
var Inner = styled(m.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject([""], [""])));
|
|
7
|
-
export var PaginationResults = function (_a) {
|
|
8
|
-
var children = _a.children;
|
|
9
|
-
return (_jsx(AnimatePresence, { exitBeforeEnter: true, initial: true, children: _jsx(Root, { children: _jsx(Inner, { initial: { opacity: 0, x: -100 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: 100 }, transition: { type: "linear", staggerChildren: 0.3 }, children: children }) }) }));
|
|
10
|
-
};
|
|
11
|
-
var templateObject_1, templateObject_2;
|
package/Pagination/index.d.ts
DELETED
package/Pagination/index.js
DELETED
package/Pill/Pill.d.ts
DELETED
package/Pill/Pill.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
export var Pill = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-block;\n padding: 5px 10px;\n margin: 0 0.5em 0.5em 0;\n border-radius: 2px;\n text-decoration: none;\n font-size: 13px;\n font-weight: 600;\n"], ["\n display: inline-block;\n padding: 5px 10px;\n margin: 0 0.5em 0.5em 0;\n border-radius: 2px;\n text-decoration: none;\n font-size: 13px;\n font-weight: 600;\n"])));
|
|
4
|
-
export var PillGreyLight = styled(Pill)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: var(--grey800);\n color: var(--grey100);\n\n &:hover {\n color: white;\n background: var(--grey300);\n }\n"], ["\n background: var(--grey800);\n color: var(--grey100);\n\n &:hover {\n color: white;\n background: var(--grey300);\n }\n"])));
|
|
5
|
-
export var PillAccentLight = styled(Pill)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: var(--accent400);\n color: var(--grey100);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"], ["\n background: var(--accent400);\n color: var(--grey100);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"])));
|
|
6
|
-
export var PillAccentLightOutlined = styled(Pill)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: 1px solid var(--accent300);\n color: var(--accent200);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"], ["\n border: 1px solid var(--accent300);\n color: var(--accent200);\n\n &:hover {\n color: #fff;\n background: var(--accent300);\n }\n"])));
|
|
7
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
package/Pill/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Pill.js";
|
package/Pill/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Pill.js";
|
package/Polymorphic.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "styled-components";
|
|
2
|
-
import type { Theme } from "../styles/theme.js";
|
|
3
|
-
export type ProgressCircularProps = {
|
|
4
|
-
size?: CSSProperties["width"];
|
|
5
|
-
thickness: number;
|
|
6
|
-
color: keyof Theme | NonNullable<CSSProperties["color"]>;
|
|
7
|
-
};
|
|
8
|
-
export declare const ProgressCircular: ({ size, thickness, color, ...props }: {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
size?: string | undefined;
|
|
11
|
-
thickness?: number | undefined;
|
|
12
|
-
color?: string | undefined;
|
|
13
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import styled, { keyframes } from "styled-components";
|
|
4
|
-
var animationRotation = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
5
|
-
var animationCircle = keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"], ["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])));
|
|
6
|
-
var ProgressCircularSvg = styled.svg(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n animation: ", " 1.5s linear infinite;\n"], ["\n animation: ", " 1.5s linear infinite;\n"])), animationRotation);
|
|
7
|
-
var ProgressCircularCircle = styled.circle(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n animation: ", " 1.5s linear infinite;\n"], ["\n animation: ", " 1.5s linear infinite;\n"])), animationCircle);
|
|
8
|
-
export var ProgressCircular = function (_a) {
|
|
9
|
-
var _b = _a.size, size = _b === void 0 ? "1em" : _b, _c = _a.thickness, thickness = _c === void 0 ? 1 : _c, _d = _a.color, color = _d === void 0 ? "currentColor" : _d, props = __rest(_a, ["size", "thickness", "color"]);
|
|
10
|
-
return (_jsx(ProgressCircularSvg, __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44 44", style: { width: size, height: size } }, props, { children: _jsx(ProgressCircularCircle, { cx: "22", cy: "22", r: "20", fill: "none", strokeWidth: thickness, style: { stroke: color } }) })));
|
|
11
|
-
};
|
|
12
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "styled-components";
|
|
2
|
-
import type { Theme } from "../styles/theme.js";
|
|
3
|
-
export type ProgressLinearProps = {
|
|
4
|
-
done?: boolean;
|
|
5
|
-
height?: CSSProperties["height"];
|
|
6
|
-
bg: keyof Theme | NonNullable<CSSProperties["color"]>;
|
|
7
|
-
fg: keyof Theme | NonNullable<CSSProperties["color"]>;
|
|
8
|
-
};
|
|
9
|
-
export declare const ProgressLinear: ({ done, height, bg, fg, ...props }: {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
done?: boolean | undefined;
|
|
12
|
-
height?: string | undefined;
|
|
13
|
-
bg?: string | undefined;
|
|
14
|
-
fg?: string | undefined;
|
|
15
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { m } from "framer-motion";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
var ProgressLinearBg = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n overflow: hidden;\n display: block;\n height: 4px;\n"], ["\n position: relative;\n overflow: hidden;\n display: block;\n height: 4px;\n"])));
|
|
6
|
-
var ProgressLinearFg = styled(m.span)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n"], ["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n"])));
|
|
7
|
-
export var ProgressLinear = function (_a) {
|
|
8
|
-
var _b = _a.done, done = _b === void 0 ? false : _b, _c = _a.height, height = _c === void 0 ? "2px" : _c, _d = _a.bg, bg = _d === void 0 ? "transparent" : _d, _e = _a.fg, fg = _e === void 0 ? "currentColor" : _e, props = __rest(_a, ["done", "height", "bg", "fg"]);
|
|
9
|
-
return (_jsx(ProgressLinearBg, __assign({ style: { height: height, background: bg } }, props, { children: _jsx(ProgressLinearFg, { style: { height: height, background: fg }, initial: {
|
|
10
|
-
x: "-100%",
|
|
11
|
-
}, animate: {
|
|
12
|
-
x: done ? "-100%" : "0%",
|
|
13
|
-
}, transition: done
|
|
14
|
-
? {}
|
|
15
|
-
: {
|
|
16
|
-
repeat: Infinity,
|
|
17
|
-
repeatType: "reverse",
|
|
18
|
-
duration: 2,
|
|
19
|
-
} }) })));
|
|
20
|
-
};
|
|
21
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject, __read } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { m } from "framer-motion";
|
|
4
|
-
import { useEffect } from "react";
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
import { useHeader } from "../Header/index.js";
|
|
7
|
-
import { ProgressCircular } from "./ProgressCircular.js";
|
|
8
|
-
import { ProgressLinear } from "./ProgressLinear.js";
|
|
9
|
-
var ProgressOverlayWrap = styled(m.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: 10000;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n cursor: wait;\n"], ["\n z-index: 10000;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n cursor: wait;\n"])));
|
|
10
|
-
var ProgressOverlayCenterer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--progress-overlay-bg);\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--progress-overlay-bg);\n"])));
|
|
11
|
-
export var ProgressOverlay = function (_a) {
|
|
12
|
-
var running = _a.running;
|
|
13
|
-
var _b = __read(useHeader(), 3), headerHeight = _b[2];
|
|
14
|
-
useEffect(function () {
|
|
15
|
-
document.body.style.cursor = running ? "wait" : "";
|
|
16
|
-
}, [running]);
|
|
17
|
-
return (_jsxs(ProgressOverlayWrap, { animate: {
|
|
18
|
-
opacity: running ? 1 : 0,
|
|
19
|
-
}, initial: { opacity: 0 }, transition: { type: "easeInOut" }, children: [_jsx(ProgressLinear, { bg: "var(--accent400)", fg: "var(--accent300)", done: !running }), _jsx(ProgressOverlayCenterer, { style: {
|
|
20
|
-
top: headerHeight + "px",
|
|
21
|
-
}, children: _jsx(ProgressCircular, { size: "50px", color: "var(--accent300)" }) })] }));
|
|
22
|
-
};
|
|
23
|
-
var templateObject_1, templateObject_2;
|
package/Progress/index.d.ts
DELETED
package/Progress/index.js
DELETED