@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/Rating/Rating.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type RatingStarProps = React.ComponentPropsWithoutRef<"svg"> & RatingStarModel & {
|
|
3
|
-
size?: number;
|
|
4
|
-
value: number;
|
|
5
|
-
colorBg?: React.CSSProperties["color"];
|
|
6
|
-
colorStroke?: React.CSSProperties["color"];
|
|
7
|
-
};
|
|
8
|
-
export declare const RatingStarRoot: any;
|
|
9
|
-
export declare const RatingStar: ({ value, colorBg, colorStroke, size, ...props }: RatingStarProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const RatingDetails: any;
|
|
11
|
-
export declare const RatingCount: any;
|
|
12
|
-
export declare const RatingValue: any;
|
|
13
|
-
export declare const RatingRoot: any;
|
|
14
|
-
export type RatingStarModel = {
|
|
15
|
-
value: number;
|
|
16
|
-
idx?: number;
|
|
17
|
-
dataIdx?: number;
|
|
18
|
-
};
|
|
19
|
-
export type RatingProps = {
|
|
20
|
-
value: number;
|
|
21
|
-
count?: number;
|
|
22
|
-
min?: number;
|
|
23
|
-
max?: number;
|
|
24
|
-
showDetails?: boolean;
|
|
25
|
-
starSize?: RatingStarProps["size"];
|
|
26
|
-
} & Pick<RatingStarProps, "colorBg" | "colorStroke">;
|
|
27
|
-
export declare const Rating: ({ value, count, min, max, showDetails, colorBg, colorStroke, starSize, }: RatingProps) => import("react/jsx-runtime").JSX.Element;
|
package/Rating/Rating.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject, __read, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback, useEffect, useId, useState } from "react";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
export var RatingStarRoot = styled.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-block;\n vertical-align: middle;\n margin-right: 1px;\n"], ["\n display: inline-block;\n vertical-align: middle;\n margin-right: 1px;\n"])));
|
|
6
|
-
export var RatingStar = function (_a) {
|
|
7
|
-
var value = _a.value, _b = _a.colorBg, colorBg = _b === void 0 ? "#FFD84C" : _b, _c = _a.colorStroke, colorStroke = _c === void 0 ? "#947813" : _c, size = _a.size, props = __rest(_a, ["value", "colorBg", "colorStroke", "size"]);
|
|
8
|
-
var id = useId();
|
|
9
|
-
return (_jsxs(RatingStarRoot, __assign({ viewBox: "0 0 16 16", "data-value": value, width: size + "px", height: size + "px" }, props, { children: [_jsx("defs", { children: _jsxs("linearGradient", { id: id, x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0", stopColor: colorBg }), _jsx("stop", { offset: value, stopColor: colorBg }), _jsx("stop", { offset: value, stopColor: "rgba(255, 255, 255, 0)" })] }) }), _jsx("path", { stroke: colorStroke, strokeWidth: "0.5", fill: "url(#".concat(id, ")"), d: "M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.283.95l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" })] })));
|
|
10
|
-
};
|
|
11
|
-
export var RatingDetails = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-left: 0.5em;\n font-size: 12px;\n color: var(--grey100);\n\n &:before {\n content: \"(\";\n }\n &:after {\n content: \")\";\n }\n"], ["\n padding-left: 0.5em;\n font-size: 12px;\n color: var(--grey100);\n\n &:before {\n content: \"(\";\n }\n &:after {\n content: \")\";\n }\n"])));
|
|
12
|
-
export var RatingCount = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject([""], [""])));
|
|
13
|
-
export var RatingValue = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
|
|
14
|
-
export var RatingRoot = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n\n &:hover ", " {\n display: inline-block;\n }\n"], ["\n display: flex;\n align-items: center;\n\n &:hover ", " {\n display: inline-block;\n }\n"])), RatingValue);
|
|
15
|
-
export var Rating = function (_a) {
|
|
16
|
-
var _b = _a.value, value = _b === void 0 ? 0 : _b, count = _a.count, _c = _a.min, min = _c === void 0 ? 0 : _c, _d = _a.max, max = _d === void 0 ? 5 : _d, _e = _a.showDetails, showDetails = _e === void 0 ? true : _e, colorBg = _a.colorBg, colorStroke = _a.colorStroke, _f = _a.starSize, starSize = _f === void 0 ? 16 : _f;
|
|
17
|
-
var id = useId();
|
|
18
|
-
var _g = __read(useState(value), 1), currentValue = _g[0];
|
|
19
|
-
var _h = __read(useState([]), 2), stars = _h[0], setStars = _h[1];
|
|
20
|
-
var getStars = useCallback(function (activeCount) {
|
|
21
|
-
var stars = [];
|
|
22
|
-
for (var currentStar = min + 1; currentStar < max + 1; currentStar++) {
|
|
23
|
-
var starValue = void 0;
|
|
24
|
-
var roundedActiveCount = Math.floor(activeCount);
|
|
25
|
-
if (roundedActiveCount === currentStar - 1) {
|
|
26
|
-
starValue = 1 - (currentStar - activeCount);
|
|
27
|
-
}
|
|
28
|
-
else if (roundedActiveCount >= currentStar) {
|
|
29
|
-
starValue = 1;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
starValue = 0;
|
|
33
|
-
}
|
|
34
|
-
stars.push({ value: starValue });
|
|
35
|
-
}
|
|
36
|
-
return stars;
|
|
37
|
-
}, [min, max]);
|
|
38
|
-
useEffect(function () {
|
|
39
|
-
setStars(getStars(currentValue));
|
|
40
|
-
}, [currentValue, getStars]);
|
|
41
|
-
return (_jsxs(RatingRoot, { children: [stars.map(function (star, idx) { return (_jsx(RatingStar, { idx: idx, dataIdx: idx, size: starSize, value: star.value, colorBg: colorBg, colorStroke: colorStroke }, id + idx)); }), " ", showDetails && count && (_jsxs(RatingDetails, { children: [_jsx(RatingCount, { children: count }), _jsx(RatingValue, { children: " - ".concat(value) })] }))] }));
|
|
42
|
-
};
|
|
43
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
package/Rating/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./Rating.js";
|
|
2
|
-
export declare const getRatingWord: (value: number, precision?: number) => any;
|
|
3
|
-
export declare const getRatingValue: (value: number) => string | number;
|
|
4
|
-
export declare function convertRange(value: number, r1: number[], r2: number[]): number;
|
|
5
|
-
export declare const deriveRating: (title: string, date: Date, minValue?: number, maxValue?: number, minQuantity?: number) => {
|
|
6
|
-
value: number;
|
|
7
|
-
count: number;
|
|
8
|
-
};
|
package/Rating/index.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export * from "./Rating.js";
|
|
2
|
-
var RATING_WORDS = {
|
|
3
|
-
0: "Worst",
|
|
4
|
-
1: "Bad",
|
|
5
|
-
2: "Mediocre",
|
|
6
|
-
3: "Good",
|
|
7
|
-
4: "Great",
|
|
8
|
-
4.5: "Excellent",
|
|
9
|
-
5: "Best",
|
|
10
|
-
};
|
|
11
|
-
export var getRatingWord = function (value, precision) {
|
|
12
|
-
if (precision === void 0) { precision = 0.5; }
|
|
13
|
-
var buffer = 0;
|
|
14
|
-
var word;
|
|
15
|
-
while (buffer < value) {
|
|
16
|
-
word = RATING_WORDS[buffer];
|
|
17
|
-
buffer += precision;
|
|
18
|
-
}
|
|
19
|
-
return word;
|
|
20
|
-
};
|
|
21
|
-
export var getRatingValue = function (value) {
|
|
22
|
-
var converted = convertRange(value, [0, 5], [0, 10]);
|
|
23
|
-
if (converted % 1 === 0) {
|
|
24
|
-
return converted;
|
|
25
|
-
}
|
|
26
|
-
return converted.toFixed(1);
|
|
27
|
-
};
|
|
28
|
-
export function convertRange(value, r1, r2) {
|
|
29
|
-
return ((value - r1[0]) * (r2[1] - r2[0])) / (r1[1] - r1[0]) + r2[0];
|
|
30
|
-
}
|
|
31
|
-
export var deriveRating = function (title, date, minValue, maxValue, minQuantity) {
|
|
32
|
-
if (minValue === void 0) { minValue = 3.8; }
|
|
33
|
-
if (maxValue === void 0) { maxValue = 5; }
|
|
34
|
-
if (minQuantity === void 0) { minQuantity = 9; }
|
|
35
|
-
var entityTime = date.getTime();
|
|
36
|
-
var nowTime = new Date().getTime();
|
|
37
|
-
var length = title.length;
|
|
38
|
-
var value = Number(convertRange(length, [0, 90], [minValue, maxValue]).toFixed(2));
|
|
39
|
-
var timeDifference = convertRange(nowTime - entityTime, [0, 10000000000000], [minQuantity, 999999]);
|
|
40
|
-
var count = Math.round(timeDifference / length);
|
|
41
|
-
return {
|
|
42
|
-
value: value,
|
|
43
|
-
count: count,
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var Select = null;
|
package/Select/components.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const SelectArrowStyled: any;
|
|
3
|
-
export type SelectArrowProps = {
|
|
4
|
-
isOpen?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const SelectArrow: import("react").ForwardRefExoticComponent<SelectArrowProps & import("react").RefAttributes<HTMLSpanElement>>;
|
package/Select/components.js
DELETED
|
@@ -1,12 +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 { forwardRef } from "react";
|
|
5
|
-
import { BsBoxArrowInDown as IconCollapse } from "react-icons/bs";
|
|
6
|
-
import styled from "styled-components";
|
|
7
|
-
export var SelectArrowStyled = styled(m.span)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2em;\n\n &:not([disabled]) {\n cursor: pointer;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2em;\n\n &:not([disabled]) {\n cursor: pointer;\n }\n"])));
|
|
8
|
-
export var SelectArrow = forwardRef(function SelectArrow(_a, ref) {
|
|
9
|
-
var isOpen = _a.isOpen, props = __rest(_a, ["isOpen"]);
|
|
10
|
-
return (_jsx(SelectArrowStyled, __assign({ animate: { rotate: isOpen ? 180 : 0 }, ref: ref }, props, { children: _jsx(IconCollapse, {}) })));
|
|
11
|
-
});
|
|
12
|
-
var templateObject_1;
|
package/Select/index.d.ts
DELETED
package/Select/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Select } from "./SelectDownshift.js";
|
package/Sidebar/Sidebar.d.ts
DELETED
package/Sidebar/Sidebar.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject, __read } from "tslib";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback, useState } from "react";
|
|
4
|
-
import { CgCloseR as IconClose } from "react-icons/cg";
|
|
5
|
-
import { GrFolderOpen as IconOpen } from "react-icons/gr";
|
|
6
|
-
import styled from "styled-components";
|
|
7
|
-
import { IconButtonFab } from "../Buttons/index.js";
|
|
8
|
-
import { useHeader } from "../Header/index.js";
|
|
9
|
-
import { max, min } from "../styles/media.js";
|
|
10
|
-
var SidebarWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (p) {
|
|
11
|
-
return "".concat(max.md, " {\n z-index: 20;\n display: flex;\n flex-direction: column;\n position: fixed;\n right: 0;\n left: var(--gutter-half);\n top: ").concat(p.$top || 0, "px;\n bottom: 0;\n padding: var(--gutter-half);\n transform: ").concat(p.$open ? "translateX(0)" : "translateX(100%)", ";\n transition: transform .18s ease-in-out, box-shadow .18s ease-in-out;\n background: white;\n box-shadow: ").concat(p.$open ? "0 0 0 100vh rgba(0, 0, 0, .3)" : "0 0 100vh rgba(0, 0, 0, 0)", ";\n will-change: transform, box-shadow;\n pointer-events: ").concat(p.$open ? "all" : "none", "\n }");
|
|
12
|
-
});
|
|
13
|
-
var SidebarToggle = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n z-index: 21;\n position: fixed;\n right: var(--gutter-half);\n bottom: var(--gutter-half);\n ", " {\n display: none;\n }\n\n path {\n stroke: currentColor;\n }\n"], ["\n z-index: 21;\n position: fixed;\n right: var(--gutter-half);\n bottom: var(--gutter-half);\n ", " {\n display: none;\n }\n\n path {\n stroke: currentColor;\n }\n"])), min.md);
|
|
14
|
-
export var Sidebar = function (_a) {
|
|
15
|
-
var children = _a.children;
|
|
16
|
-
var _b = __read(useState(false), 2), open = _b[0], setOpen = _b[1];
|
|
17
|
-
var _c = __read(useHeader(), 3), headerHeight = _c[2];
|
|
18
|
-
var handleClickToggle = useCallback(function () {
|
|
19
|
-
setOpen(function (prevOpen) { return !prevOpen; });
|
|
20
|
-
}, []);
|
|
21
|
-
return (_jsxs(_Fragment, { children: [_jsx(SidebarToggle, { onClick: handleClickToggle, children: _jsx(IconButtonFab, { "$variant": "contained", children: open ? _jsx(IconClose, {}) : _jsx(IconOpen, {}) }) }), _jsx(SidebarWrapper, { "$open": open, "$top": headerHeight, children: children })] }));
|
|
22
|
-
};
|
|
23
|
-
var templateObject_1, templateObject_2;
|
package/Sidebar/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Sidebar.js";
|
package/Sidebar/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Sidebar.js";
|
package/Spacing/Spacing.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SpacingDevices, SpacingDirectionAxis, SpacingFactor, SpacingProperty, SpacingSize } from "../styles/spacing.js";
|
|
2
|
-
export type SpacingPropsStyled = {
|
|
3
|
-
$top?: SpacingFnArgs;
|
|
4
|
-
$bottom?: SpacingFnArgs;
|
|
5
|
-
};
|
|
6
|
-
type SpacingFnArgs = [
|
|
7
|
-
SpacingSize,
|
|
8
|
-
SpacingFactor,
|
|
9
|
-
SpacingProperty,
|
|
10
|
-
SpacingDevices[]
|
|
11
|
-
];
|
|
12
|
-
type SpacingSyntaxFactor = string;
|
|
13
|
-
type SpacingSyntaxDevices = `${SpacingDevices}` | `${SpacingDevices},${SpacingDevices}` | `${SpacingDevices},${SpacingDevices},${SpacingDevices}`;
|
|
14
|
-
type SpacingSyntax = `${SpacingSize}` | `${SpacingSize}:${SpacingSyntaxFactor}` | `${SpacingSize}:${SpacingSyntaxFactor}:${SpacingProperty}` | `${SpacingSize}:${SpacingSyntaxFactor}:${SpacingProperty}:${SpacingSyntaxDevices}`;
|
|
15
|
-
export type SpacingProps = React.ComponentPropsWithoutRef<"div"> & Partial<Record<SpacingDirectionAxis, SpacingSyntax>>;
|
|
16
|
-
export declare const Spacing: ({ top, bottom, vertical, ...props }: SpacingProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
package/Spacing/Spacing.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject, __read, __rest, __spreadArray } from "tslib";
|
|
2
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import styled from "styled-components";
|
|
4
|
-
import { isUndefined } from "@koine/utils";
|
|
5
|
-
import { spacingBottom, spacingTop, } from "../styles/spacing.js";
|
|
6
|
-
var Root = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (p) { return p.$top && spacingTop.call.apply(spacingTop, __spreadArray([p.theme], __read(p.$top), false)); }, function (p) { return p.$bottom && spacingBottom.call.apply(spacingBottom, __spreadArray([p.theme], __read(p.$bottom), false)); });
|
|
7
|
-
var extractDirectionArgs = function (raw) {
|
|
8
|
-
var _a = __read(raw.split(":"), 4), size = _a[0], factor = _a[1], property = _a[2], devices = _a[3];
|
|
9
|
-
var factorArg = isUndefined(factor) ? undefined : parseFloat(factor);
|
|
10
|
-
var devicesArg = devices === null || devices === void 0 ? void 0 : devices.split(",");
|
|
11
|
-
return [size, factorArg, property, devicesArg];
|
|
12
|
-
};
|
|
13
|
-
export var Spacing = function (_a) {
|
|
14
|
-
var top = _a.top, bottom = _a.bottom, vertical = _a.vertical, props = __rest(_a, ["top", "bottom", "vertical"]);
|
|
15
|
-
var $top;
|
|
16
|
-
var $bottom;
|
|
17
|
-
if (top) {
|
|
18
|
-
$top = extractDirectionArgs(top);
|
|
19
|
-
}
|
|
20
|
-
if (bottom) {
|
|
21
|
-
$bottom = extractDirectionArgs(bottom);
|
|
22
|
-
}
|
|
23
|
-
if (vertical) {
|
|
24
|
-
$top = extractDirectionArgs(vertical);
|
|
25
|
-
$bottom = $top;
|
|
26
|
-
}
|
|
27
|
-
if (!$top && !$bottom && !vertical) {
|
|
28
|
-
return _jsx(_Fragment, { children: props.children });
|
|
29
|
-
}
|
|
30
|
-
return _jsx(Root, __assign({ "$top": $top, "$bottom": $bottom }, props));
|
|
31
|
-
};
|
|
32
|
-
var templateObject_1;
|
package/Spacing/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Spacing.js";
|
package/Spacing/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Spacing.js";
|
package/Sticky/Sticky.d.ts
DELETED
package/Sticky/Sticky.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var Sticky = null;
|
package/Sticky/StickyCss.d.ts
DELETED
package/Sticky/StickyCss.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { __assign, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
export var StickyCss = function (_a) {
|
|
4
|
-
var top = _a.top, props = __rest(_a, ["top"]);
|
|
5
|
-
return _jsx("div", __assign({ style: { position: "sticky", top: 100 } }, props));
|
|
6
|
-
};
|
package/Sticky/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StickyCss, StickyCssProps } from "./StickyCss.js";
|
package/Sticky/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StickyCss } from "./StickyCss.js";
|
package/Tabs/TabsMui.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import TabUnstyled, { type TabProps as TabUnstyledProps } from "@mui/base/Tab";
|
|
2
|
-
import TabPanelUnstyled, { type TabPanelProps as TabPanelUnstyledProps } from "@mui/base/TabPanel";
|
|
3
|
-
import TabsUnstyled, { type TabsProps as TabsUnstyledProps } from "@mui/base/Tabs";
|
|
4
|
-
import TabsListUnstyled, { type TabsListProps as TabsListUnstyledProps } from "@mui/base/TabsList";
|
|
5
|
-
import { type UseTabReturnValue } from "@mui/base/useTab";
|
|
6
|
-
import type { MotionProps } from "framer-motion";
|
|
7
|
-
import type { Simplify } from "@koine/utils";
|
|
8
|
-
import { type WithComponents } from "../extendComponent.js";
|
|
9
|
-
type ReducedTabsUnstyledProps = Omit<TabsUnstyledProps, "component" | "slots" | "slotProps">;
|
|
10
|
-
export type OwnProps = React.PropsWithChildren<ReducedTabsUnstyledProps & {
|
|
11
|
-
mTab?: MotionProps;
|
|
12
|
-
}>;
|
|
13
|
-
export type Components = {
|
|
14
|
-
Root: {
|
|
15
|
-
type: typeof TabsUnstyled;
|
|
16
|
-
props: React.PropsWithChildren<ReducedTabsUnstyledProps>;
|
|
17
|
-
};
|
|
18
|
-
List: {
|
|
19
|
-
type: typeof TabsListUnstyled;
|
|
20
|
-
props: TabsListUnstyledProps;
|
|
21
|
-
};
|
|
22
|
-
Tab: {
|
|
23
|
-
type: typeof TabUnstyled;
|
|
24
|
-
props: TabUnstyledProps & {
|
|
25
|
-
Indicator?: Props["Indicator"];
|
|
26
|
-
};
|
|
27
|
-
motionable: true;
|
|
28
|
-
};
|
|
29
|
-
Indicator: {
|
|
30
|
-
type: "span";
|
|
31
|
-
props: React.PropsWithChildren<Pick<UseTabReturnValue, "active" | "selected">>;
|
|
32
|
-
motionable: true;
|
|
33
|
-
};
|
|
34
|
-
Panel: {
|
|
35
|
-
type: typeof TabPanelUnstyled;
|
|
36
|
-
props: TabPanelUnstyledProps;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export type ComponentsProps = {
|
|
40
|
-
[Name in keyof Components]: Components[Name]["props"];
|
|
41
|
-
};
|
|
42
|
-
export type Props = Simplify<WithComponents<OwnProps, Components>>;
|
|
43
|
-
export type TabsProps = Props;
|
|
44
|
-
export type KoineTabsProps = Props;
|
|
45
|
-
export declare const Root: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>;
|
|
46
|
-
export declare const List: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>;
|
|
47
|
-
export declare const Indicator: NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<UseTabReturnValue, "selected" | "active"> & {
|
|
48
|
-
children?: import("react").ReactNode;
|
|
49
|
-
}>>;
|
|
50
|
-
export declare const Panel: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>;
|
|
51
|
-
export declare const Tab: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
52
|
-
export declare const KoineTabs: ((props: Omit<{
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
[x: number]: any;
|
|
55
|
-
[x: symbol]: any;
|
|
56
|
-
mTab?: MotionProps | undefined;
|
|
57
|
-
children?: import("react").ReactNode;
|
|
58
|
-
Root: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>;
|
|
59
|
-
List: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>;
|
|
60
|
-
Tab: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tab").TabTypeMap<{}, "button">>;
|
|
61
|
-
Indicator: NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<UseTabReturnValue, "selected" | "active"> & {
|
|
62
|
-
children?: import("react").ReactNode;
|
|
63
|
-
}>>;
|
|
64
|
-
Panel: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>;
|
|
65
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>) => import("react").FunctionComponentElement<any>) & {
|
|
66
|
-
Root: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>;
|
|
67
|
-
List: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>;
|
|
68
|
-
Tab: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
69
|
-
Indicator: NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<UseTabReturnValue, "selected" | "active"> & {
|
|
70
|
-
children?: import("react").ReactNode;
|
|
71
|
-
}>>;
|
|
72
|
-
Panel: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>;
|
|
73
|
-
} & {
|
|
74
|
-
defaultProps: {
|
|
75
|
-
Root: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>;
|
|
76
|
-
List: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>;
|
|
77
|
-
Tab: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
78
|
-
Indicator: NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<UseTabReturnValue, "selected" | "active"> & {
|
|
79
|
-
children?: import("react").ReactNode;
|
|
80
|
-
}>>;
|
|
81
|
-
Panel: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
export {};
|
package/Tabs/TabsMui.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __assign, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import TabUnstyled from "@mui/base/Tab";
|
|
4
|
-
import TabPanelUnstyled from "@mui/base/TabPanel";
|
|
5
|
-
import TabsUnstyled from "@mui/base/Tabs";
|
|
6
|
-
import TabsListUnstyled from "@mui/base/TabsList";
|
|
7
|
-
import useTab from "@mui/base/useTab";
|
|
8
|
-
import { forwardRef } from "react";
|
|
9
|
-
import { extendComponent, } from "../extendComponent.js";
|
|
10
|
-
export var Root = TabsUnstyled;
|
|
11
|
-
export var List = TabsListUnstyled;
|
|
12
|
-
export var Indicator = "span";
|
|
13
|
-
export var Panel = TabPanelUnstyled;
|
|
14
|
-
export var Tab = forwardRef(function Tab(_a, ref) {
|
|
15
|
-
var children = _a.children, slot = _a.slot, slotProps = _a.slotProps, slots = _a.slots, Indicator = _a.Indicator, props = __rest(_a, ["children", "slot", "slotProps", "slots", "Indicator"]);
|
|
16
|
-
var _b = useTab(__assign(__assign({}, props), { rootRef: ref })), active = _b.active, selected = _b.selected;
|
|
17
|
-
var indicatorProps = { active: active, selected: selected };
|
|
18
|
-
return (_jsxs(TabUnstyled, __assign({}, props, { children: [children, Indicator && _jsx(Indicator, __assign({}, indicatorProps))] })));
|
|
19
|
-
});
|
|
20
|
-
var TabsWithRef = forwardRef(function Tabs(_a, ref) {
|
|
21
|
-
var _Root = _a.Root, _List = _a.List, _Tab = _a.Tab, _Indicator = _a.Indicator, _Panel = _a.Panel, props = __rest(_a, ["Root", "List", "Tab", "Indicator", "Panel"]);
|
|
22
|
-
return _jsx(Root, __assign({}, props, { ref: ref }));
|
|
23
|
-
});
|
|
24
|
-
export var KoineTabs = extendComponent(TabsWithRef, {
|
|
25
|
-
Root: Root,
|
|
26
|
-
List: List,
|
|
27
|
-
Tab: Tab,
|
|
28
|
-
Indicator: Indicator,
|
|
29
|
-
Panel: Panel,
|
|
30
|
-
});
|
package/Tabs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./TabsMui.js";
|
package/Tabs/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./TabsMui.js";
|
package/Tabs/sc/bare.d.ts
DELETED
|
File without changes
|
package/Tabs/sc/bare.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/Tabs/tw/bare.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export type { KoineTabsProps } from "../TabsMui.js";
|
|
2
|
-
export declare const Root: import("react").ForwardRefExoticComponent<Omit<{
|
|
3
|
-
className?: string | undefined;
|
|
4
|
-
ref?: import("react").Ref<any> | undefined;
|
|
5
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>>>;
|
|
6
|
-
export declare const List: import("react").ForwardRefExoticComponent<Omit<{
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
ref?: import("react").Ref<any> | undefined;
|
|
9
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>>>;
|
|
10
|
-
export declare const Tab: import("react").ForwardRefExoticComponent<Omit<{
|
|
11
|
-
className?: string | undefined;
|
|
12
|
-
ref?: import("react").Ref<any> | undefined;
|
|
13
|
-
}, "ref"> & import("react").RefAttributes<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>>>;
|
|
14
|
-
export declare const Indicator: import("react").ForwardRefExoticComponent<Omit<{
|
|
15
|
-
className?: string | undefined;
|
|
16
|
-
ref?: import("react").Ref<any> | undefined;
|
|
17
|
-
}, "ref"> & import("react").RefAttributes<NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("@mui/base/useTab").UseTabReturnValue, "selected" | "active"> & {
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
}>>>>;
|
|
20
|
-
export declare const Panel: import("react").ForwardRefExoticComponent<Omit<{
|
|
21
|
-
className?: string | undefined;
|
|
22
|
-
ref?: import("react").Ref<any> | undefined;
|
|
23
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>>>;
|
|
24
|
-
export declare const KoineTabs: ((props: Omit<{
|
|
25
|
-
[x: string]: any;
|
|
26
|
-
[x: number]: any;
|
|
27
|
-
[x: symbol]: any;
|
|
28
|
-
mTab?: import("framer-motion").MotionProps | undefined;
|
|
29
|
-
children?: import("react").ReactNode;
|
|
30
|
-
Root: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>;
|
|
31
|
-
List: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>;
|
|
32
|
-
Tab: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tab").TabTypeMap<{}, "button">>;
|
|
33
|
-
Indicator: NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("@mui/base/useTab").UseTabReturnValue, "selected" | "active"> & {
|
|
34
|
-
children?: import("react").ReactNode;
|
|
35
|
-
}>>;
|
|
36
|
-
Panel: import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>;
|
|
37
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>) => import("react").FunctionComponentElement<any>) & {
|
|
38
|
-
Root: import("react").ForwardRefExoticComponent<Omit<{
|
|
39
|
-
className?: string | undefined;
|
|
40
|
-
ref?: import("react").Ref<any> | undefined;
|
|
41
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>>>;
|
|
42
|
-
List: import("react").ForwardRefExoticComponent<Omit<{
|
|
43
|
-
className?: string | undefined;
|
|
44
|
-
ref?: import("react").Ref<any> | undefined;
|
|
45
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>>>;
|
|
46
|
-
Tab: import("react").ForwardRefExoticComponent<Omit<{
|
|
47
|
-
className?: string | undefined;
|
|
48
|
-
ref?: import("react").Ref<any> | undefined;
|
|
49
|
-
}, "ref"> & import("react").RefAttributes<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>>>;
|
|
50
|
-
Indicator: import("react").ForwardRefExoticComponent<Omit<{
|
|
51
|
-
className?: string | undefined;
|
|
52
|
-
ref?: import("react").Ref<any> | undefined;
|
|
53
|
-
}, "ref"> & import("react").RefAttributes<NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("@mui/base/useTab").UseTabReturnValue, "selected" | "active"> & {
|
|
54
|
-
children?: import("react").ReactNode;
|
|
55
|
-
}>>>>;
|
|
56
|
-
Panel: import("react").ForwardRefExoticComponent<Omit<{
|
|
57
|
-
className?: string | undefined;
|
|
58
|
-
ref?: import("react").Ref<any> | undefined;
|
|
59
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>>>;
|
|
60
|
-
} & {
|
|
61
|
-
defaultProps: {
|
|
62
|
-
Root: import("react").ForwardRefExoticComponent<Omit<{
|
|
63
|
-
className?: string | undefined;
|
|
64
|
-
ref?: import("react").Ref<any> | undefined;
|
|
65
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/Tabs").TabsTypeMap<{}, "div">>>>;
|
|
66
|
-
List: import("react").ForwardRefExoticComponent<Omit<{
|
|
67
|
-
className?: string | undefined;
|
|
68
|
-
ref?: import("react").Ref<any> | undefined;
|
|
69
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabsList").TabsListTypeMap<{}, "div">>>>;
|
|
70
|
-
Tab: import("react").ForwardRefExoticComponent<Omit<{
|
|
71
|
-
className?: string | undefined;
|
|
72
|
-
ref?: import("react").Ref<any> | undefined;
|
|
73
|
-
}, "ref"> & import("react").RefAttributes<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>>>;
|
|
74
|
-
Indicator: import("react").ForwardRefExoticComponent<Omit<{
|
|
75
|
-
className?: string | undefined;
|
|
76
|
-
ref?: import("react").Ref<any> | undefined;
|
|
77
|
-
}, "ref"> & import("react").RefAttributes<NonNullable<import("react").ElementType<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "style" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd"> & Pick<import("@mui/base/useTab").UseTabReturnValue, "selected" | "active"> & {
|
|
78
|
-
children?: import("react").ReactNode;
|
|
79
|
-
}>>>>;
|
|
80
|
-
Panel: import("react").ForwardRefExoticComponent<Omit<{
|
|
81
|
-
className?: string | undefined;
|
|
82
|
-
ref?: import("react").Ref<any> | undefined;
|
|
83
|
-
}, "ref"> & import("react").RefAttributes<import("@mui/base/utils").PolymorphicComponent<import("@mui/base/TabPanel").TabPanelTypeMap<{}, "div">>>>;
|
|
84
|
-
};
|
|
85
|
-
};
|
package/Tabs/tw/bare.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from "tslib";
|
|
2
|
-
import { classed } from "../../classed.js";
|
|
3
|
-
import { extendComponent } from "../../extendComponent.js";
|
|
4
|
-
import * as _ from "../TabsMui.js";
|
|
5
|
-
export var Root = classed(_.Root)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["< class=\"tabs"], ["< class=\"tabs"])));
|
|
6
|
-
export var List = classed(_.List)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["< class=\"tabsList flex"], ["< class=\"tabsList flex"])));
|
|
7
|
-
export var Tab = classed(_.Tab)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["< class=\"tabsTab inline-flex items-center justify-center [-webkit-tap-highlight-color:transparent] appearance-none select-none"], ["< class=\"tabsTab inline-flex items-center justify-center [-webkit-tap-highlight-color:transparent] appearance-none select-none"])));
|
|
8
|
-
export var Indicator = classed(_.Indicator)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["< class=\"tabsIndicator"], ["< class=\"tabsIndicator"])));
|
|
9
|
-
export var Panel = classed(_.Panel)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["< class=\"tabsPanel"], ["< class=\"tabsPanel"])));
|
|
10
|
-
export var KoineTabs = extendComponent(_.KoineTabs, {
|
|
11
|
-
Root: Root,
|
|
12
|
-
List: List,
|
|
13
|
-
Tab: Tab,
|
|
14
|
-
Indicator: Indicator,
|
|
15
|
-
Panel: Panel,
|
|
16
|
-
});
|
|
17
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|