@koine/react 2.0.0-beta.5 → 2.0.0-beta.7

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.
Files changed (177) hide show
  1. package/Alert/Alert.js +7 -3
  2. package/Alert/Alert.mjs +7 -3
  3. package/Alert/Alert.stories.js +4 -1
  4. package/Alert/Alert.stories.mjs +4 -1
  5. package/Animations/Reveal.js +5 -3
  6. package/Animations/Reveal.mjs +5 -3
  7. package/Animations/Underline.d.ts +1 -1
  8. package/Autocomplete/AutocompleteMui.js +57 -28
  9. package/Autocomplete/AutocompleteMui.mjs +57 -28
  10. package/Autocomplete/components.d.ts +12 -16
  11. package/Bg/BgColor.d.ts +2 -7
  12. package/Bg/BgColor.js +15 -10
  13. package/Bg/BgColor.mjs +15 -10
  14. package/Bg/BgPhoto.js +8 -6
  15. package/Bg/BgPhoto.mjs +8 -6
  16. package/Bg/BgSvg.js +8 -6
  17. package/Bg/BgSvg.mjs +8 -6
  18. package/Breadcrumbs/Breadcrumbs.js +30 -17
  19. package/Breadcrumbs/Breadcrumbs.mjs +30 -17
  20. package/Buttons/Button.d.ts +1 -1
  21. package/Buttons/ButtonComposite.js +52 -19
  22. package/Buttons/ButtonComposite.mjs +52 -19
  23. package/Buttons/ButtonFab.d.ts +1 -3
  24. package/Buttons/ButtonLink.js +3 -2
  25. package/Buttons/ButtonLink.mjs +3 -2
  26. package/Buttons/IconButton.d.ts +1 -3
  27. package/Calendar/CalendarDaygridCell.js +75 -52
  28. package/Calendar/CalendarDaygridCell.mjs +75 -52
  29. package/Calendar/CalendarDaygridNav.js +31 -17
  30. package/Calendar/CalendarDaygridNav.mjs +31 -17
  31. package/Calendar/CalendarDaygridTable.js +40 -15
  32. package/Calendar/CalendarDaygridTable.mjs +40 -15
  33. package/Calendar/CalendarLegend.js +20 -7
  34. package/Calendar/CalendarLegend.mjs +20 -7
  35. package/Carousel/CarouselCss.d.ts +2 -19
  36. package/Carousel/CarouselCss.js +10 -8
  37. package/Carousel/CarouselCss.mjs +10 -8
  38. package/Debug/Debug.js +4 -1
  39. package/Debug/Debug.mjs +4 -1
  40. package/Details/Details.js +27 -19
  41. package/Details/Details.mjs +27 -19
  42. package/Details/Details.stories.js +2 -1
  43. package/Details/Details.stories.mjs +2 -1
  44. package/Dialog/DialogMui.d.ts +9 -326
  45. package/Dialog/DialogMui.js +24 -11
  46. package/Dialog/DialogMui.mjs +24 -11
  47. package/Dialog/DialogMui.stories.js +2 -1
  48. package/Dialog/DialogMui.stories.mjs +2 -1
  49. package/Dialog/css/bare.d.ts +9 -327
  50. package/Dialog/css/index.stories.js +11 -3
  51. package/Dialog/css/index.stories.mjs +11 -3
  52. package/Dialog/m/bare.d.ts +2 -398
  53. package/Dialog/m/bare.js +114 -69
  54. package/Dialog/m/bare.mjs +114 -69
  55. package/Dialog/sc/bare.d.ts +27 -405
  56. package/Dialog/sc/framer.d.ts +15 -422
  57. package/Dialog/sc/framerMaterial.d.ts +15 -422
  58. package/Dialog/sc/index.stories.js +5 -4
  59. package/Dialog/sc/index.stories.mjs +5 -4
  60. package/Dialog/sc/material.d.ts +27 -405
  61. package/Dialog/tw/bare.d.ts +9 -327
  62. package/Dialog/tw/elegant.d.ts +9 -327
  63. package/Dialog/tw/framer.d.ts +3 -354
  64. package/Dialog/tw/framerMaterial.d.ts +3 -354
  65. package/Dialog/tw/index.stories.js +6 -5
  66. package/Dialog/tw/index.stories.mjs +6 -5
  67. package/Dialog/tw/material.d.ts +9 -327
  68. package/Editor/Editor--tiptap.js +29 -14
  69. package/Editor/Editor--tiptap.mjs +29 -14
  70. package/Editor/components.d.ts +3 -5
  71. package/FaviconTags.js +52 -38
  72. package/FaviconTags.mjs +52 -38
  73. package/Form/Form.js +33 -16
  74. package/Form/Form.mjs +33 -16
  75. package/Form/sc/bare.d.ts +11 -11
  76. package/Forms/Checkbox/Checkbox.d.ts +4 -4
  77. package/Forms/Checkbox/Checkbox.js +15 -1
  78. package/Forms/Checkbox/Checkbox.mjs +15 -1
  79. package/Forms/Feedback/Feedback.js +5 -3
  80. package/Forms/Feedback/Feedback.mjs +5 -3
  81. package/Forms/Field/Field.d.ts +2 -4
  82. package/Forms/Field/Field.js +11 -5
  83. package/Forms/Field/Field.mjs +11 -5
  84. package/Forms/Field/FieldControl.js +20 -6
  85. package/Forms/Field/FieldControl.mjs +20 -6
  86. package/Forms/Field/FieldHint.d.ts +1 -1
  87. package/Forms/Input/Input.d.ts +5 -5
  88. package/Forms/Input/Input.js +15 -7
  89. package/Forms/Input/Input.mjs +15 -7
  90. package/Forms/InputGroup/InputGroup.d.ts +4 -4
  91. package/Forms/InputGroup/InputGroup.js +17 -7
  92. package/Forms/InputGroup/InputGroup.mjs +17 -7
  93. package/Forms/Label/Label.d.ts +1 -1
  94. package/Forms/Password/Password.d.ts +1 -1
  95. package/Forms/Password/Password.js +25 -11
  96. package/Forms/Password/Password.mjs +25 -11
  97. package/Forms/Radio/Radio.js +30 -11
  98. package/Forms/Radio/Radio.mjs +30 -11
  99. package/Forms/Switch/Switch.d.ts +2 -2
  100. package/Forms/Switch/Switch.js +13 -1
  101. package/Forms/Switch/Switch.mjs +13 -1
  102. package/Forms/Textarea/Textarea.d.ts +1 -1
  103. package/Forms/Textarea/Textarea.js +15 -7
  104. package/Forms/Textarea/Textarea.mjs +15 -7
  105. package/Forms/Textarea/TextareaRich.js +20 -12
  106. package/Forms/Textarea/TextareaRich.mjs +20 -12
  107. package/Forms/Toggle/Toggle.d.ts +7 -7
  108. package/Forms/Toggle/Toggle.js +48 -29
  109. package/Forms/Toggle/Toggle.mjs +49 -30
  110. package/Forms/Toggle/useToggle.js +21 -15
  111. package/Forms/Toggle/useToggle.mjs +21 -15
  112. package/Forms/styles.d.ts +3 -7
  113. package/Forms/styles.js +2 -1
  114. package/Forms/styles.mjs +2 -1
  115. package/Grid/Grid.d.ts +4 -28
  116. package/Hamburger/Hamburger.js +24 -17
  117. package/Hamburger/Hamburger.mjs +25 -18
  118. package/Hidden/Hidden.d.ts +1 -1
  119. package/Img/sc/bare.d.ts +1 -1
  120. package/Link/Link.d.ts +1 -3
  121. package/Link/LinkBlank.d.ts +2 -5
  122. package/Link/LinkBlank.js +8 -1
  123. package/Link/LinkBlank.mjs +8 -1
  124. package/Menu/Menu.d.ts +1 -1
  125. package/MenuItem/MenuItem.d.ts +1 -4
  126. package/Meta/Meta.js +2 -1
  127. package/Meta/Meta.mjs +2 -1
  128. package/NoJs/NoJs.js +2 -1
  129. package/NoJs/NoJs.mjs +2 -1
  130. package/Pagination/PaginationNav.js +42 -23
  131. package/Pagination/PaginationNav.mjs +42 -23
  132. package/Pagination/PaginationResults.js +25 -20
  133. package/Pagination/PaginationResults.mjs +25 -20
  134. package/Pill/Pill.d.ts +4 -4
  135. package/Progress/ProgressCircular.js +14 -12
  136. package/Progress/ProgressCircular.mjs +14 -12
  137. package/Progress/ProgressLinear.js +21 -19
  138. package/Progress/ProgressLinear.mjs +21 -19
  139. package/Progress/ProgressOverlay.js +20 -14
  140. package/Progress/ProgressOverlay.mjs +20 -14
  141. package/Rating/Rating.d.ts +5 -5
  142. package/Rating/Rating.js +61 -35
  143. package/Rating/Rating.mjs +61 -35
  144. package/Select/components.d.ts +1 -1
  145. package/Select/components.js +5 -3
  146. package/Select/components.mjs +5 -3
  147. package/Sidebar/Sidebar.js +17 -8
  148. package/Sidebar/Sidebar.mjs +17 -8
  149. package/Spacing/Spacing.js +5 -2
  150. package/Spacing/Spacing.mjs +5 -2
  151. package/Sticky/StickyCss.js +2 -1
  152. package/Sticky/StickyCss.mjs +2 -1
  153. package/Tabs/TabsMui.d.ts +7 -296
  154. package/Tabs/TabsMui.js +11 -2
  155. package/Tabs/TabsMui.mjs +11 -2
  156. package/Tabs/TabsMui.stories.js +2 -1
  157. package/Tabs/TabsMui.stories.mjs +2 -1
  158. package/Tabs/tw/bare.d.ts +7 -296
  159. package/Tabs/tw/index.stories.js +3 -2
  160. package/Tabs/tw/index.stories.mjs +3 -2
  161. package/Tabs/tw/material.d.ts +7 -332
  162. package/Typography/CopyPasteVisible.d.ts +1 -1
  163. package/Typography/Native.d.ts +5 -5
  164. package/Typography/ReadMore.js +33 -18
  165. package/Typography/ReadMore.mjs +33 -18
  166. package/Typography/TextLoop.js +43 -35
  167. package/Typography/TextLoop.mjs +43 -35
  168. package/Typography/TypeStairs.js +27 -19
  169. package/Typography/TypeStairs.mjs +27 -19
  170. package/helpers/classed.stories.js +40 -22
  171. package/helpers/classed.stories.mjs +40 -22
  172. package/m/MotionProvider.js +5 -3
  173. package/m/MotionProvider.mjs +5 -3
  174. package/package.json +5 -25
  175. package/styles/Body.d.ts +2 -2
  176. package/styles/theme--vanilla.js +5 -3
  177. package/styles/theme--vanilla.mjs +5 -3
package/Rating/Rating.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { useCallback, useEffect, useId, useState } from "react";
2
3
  import styled from "styled-components";
3
4
  export const RatingStarRoot = styled.svg`
@@ -7,33 +8,44 @@ export const RatingStarRoot = styled.svg`
7
8
  `;
8
9
  export const RatingStar = ({ value, colorBg = "#FFD84C", colorStroke = "#947813", size, ...props })=>{
9
10
  const id = useId();
10
- return /*#__PURE__*/ React.createElement(RatingStarRoot, {
11
+ return /*#__PURE__*/ _jsxs(RatingStarRoot, {
11
12
  viewBox: "0 0 16 16",
12
13
  "data-value": value,
13
14
  width: size + "px",
14
15
  height: size + "px",
15
- ...props
16
- }, /*#__PURE__*/ React.createElement("defs", null, /*#__PURE__*/ React.createElement("linearGradient", {
17
- id: id,
18
- x1: "0",
19
- y1: "0",
20
- x2: "1",
21
- y2: "0"
22
- }, /*#__PURE__*/ React.createElement("stop", {
23
- offset: "0",
24
- stopColor: colorBg
25
- }), /*#__PURE__*/ React.createElement("stop", {
26
- offset: value,
27
- stopColor: colorBg
28
- }), /*#__PURE__*/ React.createElement("stop", {
29
- offset: value,
30
- stopColor: "rgba(255, 255, 255, 0)"
31
- }))), /*#__PURE__*/ React.createElement("path", {
32
- stroke: colorStroke,
33
- strokeWidth: "0.5",
34
- fill: `url(#${id})`,
35
- 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"
36
- }));
16
+ ...props,
17
+ children: [
18
+ /*#__PURE__*/ _jsx("defs", {
19
+ children: /*#__PURE__*/ _jsxs("linearGradient", {
20
+ id: id,
21
+ x1: "0",
22
+ y1: "0",
23
+ x2: "1",
24
+ y2: "0",
25
+ children: [
26
+ /*#__PURE__*/ _jsx("stop", {
27
+ offset: "0",
28
+ stopColor: colorBg
29
+ }),
30
+ /*#__PURE__*/ _jsx("stop", {
31
+ offset: value,
32
+ stopColor: colorBg
33
+ }),
34
+ /*#__PURE__*/ _jsx("stop", {
35
+ offset: value,
36
+ stopColor: "rgba(255, 255, 255, 0)"
37
+ })
38
+ ]
39
+ })
40
+ }),
41
+ /*#__PURE__*/ _jsx("path", {
42
+ stroke: colorStroke,
43
+ strokeWidth: "0.5",
44
+ fill: `url(#${id})`,
45
+ 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"
46
+ })
47
+ ]
48
+ });
37
49
  };
38
50
  export const RatingDetails = styled.span`
39
51
  padding-left: 0.5em;
@@ -113,16 +125,30 @@ export const Rating = ({ value = 0, count, min = 0, max = 5, showDetails = true,
113
125
  // onChange(value);
114
126
  // }
115
127
  // }, [onChange];
116
- return /*#__PURE__*/ React.createElement(RatingRoot, null, stars.map((star, idx)=>/*#__PURE__*/ React.createElement(RatingStar, {
117
- key: id + idx,
118
- idx: idx,
119
- dataIdx: idx,
120
- size: starSize,
121
- // onMouseOver={handleMouseOver}
122
- // onMouseLeave={handleMouseLeave}
123
- // onClick={handleClick}
124
- value: star.value,
125
- colorBg: colorBg,
126
- colorStroke: colorStroke
127
- })), " ", showDetails && count && /*#__PURE__*/ React.createElement(RatingDetails, null, /*#__PURE__*/ React.createElement(RatingCount, null, count), /*#__PURE__*/ React.createElement(RatingValue, null, ` - ${value}`)));
128
+ return /*#__PURE__*/ _jsxs(RatingRoot, {
129
+ children: [
130
+ stars.map((star, idx)=>/*#__PURE__*/ _jsx(RatingStar, {
131
+ idx: idx,
132
+ dataIdx: idx,
133
+ size: starSize,
134
+ // onMouseOver={handleMouseOver}
135
+ // onMouseLeave={handleMouseLeave}
136
+ // onClick={handleClick}
137
+ value: star.value,
138
+ colorBg: colorBg,
139
+ colorStroke: colorStroke
140
+ }, id + idx)),
141
+ " ",
142
+ showDetails && count && /*#__PURE__*/ _jsxs(RatingDetails, {
143
+ children: [
144
+ /*#__PURE__*/ _jsx(RatingCount, {
145
+ children: count
146
+ }),
147
+ /*#__PURE__*/ _jsx(RatingValue, {
148
+ children: ` - ${value}`
149
+ })
150
+ ]
151
+ })
152
+ ]
153
+ });
128
154
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const SelectArrowStyled: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLSpanElement, import("framer-motion").HTMLMotionProps<"span">>, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const SelectArrowStyled: any;
3
3
  export type SelectArrowProps = {
4
4
  isOpen?: boolean;
5
5
  };
@@ -17,6 +17,7 @@ _export(exports, {
17
17
  }
18
18
  });
19
19
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _jsxruntime = require("react/jsx-runtime");
20
21
  const _framermotion = require("framer-motion");
21
22
  const _react = require("react");
22
23
  const _bs = require("react-icons/bs");
@@ -32,11 +33,12 @@ const SelectArrowStyled = (0, _styledcomponents.default)(_framermotion.m.span)`
32
33
  }
33
34
  `;
34
35
  const SelectArrow = /*#__PURE__*/ (0, _react.forwardRef)(function SelectArrow({ isOpen, ...props }, ref) {
35
- return /*#__PURE__*/ React.createElement(SelectArrowStyled, {
36
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(SelectArrowStyled, {
36
37
  animate: {
37
38
  rotate: isOpen ? 180 : 0
38
39
  },
39
40
  ref: ref,
40
- ...props
41
- }, /*#__PURE__*/ React.createElement(_bs.BsBoxArrowInDown, null));
41
+ ...props,
42
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_bs.BsBoxArrowInDown, {})
43
+ });
42
44
  });
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import { m } from "framer-motion";
2
3
  import { forwardRef } from "react";
3
4
  import { BsBoxArrowInDown as IconCollapse } from "react-icons/bs";
@@ -13,11 +14,12 @@ export const SelectArrowStyled = styled(m.span)`
13
14
  }
14
15
  `;
15
16
  export const SelectArrow = /*#__PURE__*/ forwardRef(function SelectArrow({ isOpen, ...props }, ref) {
16
- return /*#__PURE__*/ React.createElement(SelectArrowStyled, {
17
+ return /*#__PURE__*/ _jsx(SelectArrowStyled, {
17
18
  animate: {
18
19
  rotate: isOpen ? 180 : 0
19
20
  },
20
21
  ref: ref,
21
- ...props
22
- }, /*#__PURE__*/ React.createElement(IconCollapse, null));
22
+ ...props,
23
+ children: /*#__PURE__*/ _jsx(IconCollapse, {})
24
+ });
23
25
  });
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "Sidebar", {
9
9
  }
10
10
  });
11
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
12
+ const _jsxruntime = require("react/jsx-runtime");
12
13
  const _react = require("react");
13
14
  const _cg = require("react-icons/cg");
14
15
  const _gr = require("react-icons/gr");
@@ -54,12 +55,20 @@ const Sidebar = ({ children })=>{
54
55
  const handleClickToggle = (0, _react.useCallback)(()=>{
55
56
  setOpen((prevOpen)=>!prevOpen);
56
57
  }, []);
57
- return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(SidebarToggle, {
58
- onClick: handleClickToggle
59
- }, /*#__PURE__*/ React.createElement(_Buttons.IconButtonFab, {
60
- $variant: "contained"
61
- }, open ? /*#__PURE__*/ React.createElement(_cg.CgCloseR, null) : /*#__PURE__*/ React.createElement(_gr.GrFolderOpen, null))), /*#__PURE__*/ React.createElement(SidebarWrapper, {
62
- $open: open,
63
- $top: headerHeight
64
- }, children));
58
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
59
+ children: [
60
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(SidebarToggle, {
61
+ onClick: handleClickToggle,
62
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Buttons.IconButtonFab, {
63
+ $variant: "contained",
64
+ children: open ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_cg.CgCloseR, {}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_gr.GrFolderOpen, {})
65
+ })
66
+ }),
67
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(SidebarWrapper, {
68
+ $open: open,
69
+ $top: headerHeight,
70
+ children: children
71
+ })
72
+ ]
73
+ });
65
74
  };
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import { useCallback, useState } from "react";
2
3
  import { CgCloseR as IconClose } from "react-icons/cg";
3
4
  import { GrFolderOpen as IconOpen } from "react-icons/gr";
@@ -43,12 +44,20 @@ export const Sidebar = ({ children })=>{
43
44
  const handleClickToggle = useCallback(()=>{
44
45
  setOpen((prevOpen)=>!prevOpen);
45
46
  }, []);
46
- return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(SidebarToggle, {
47
- onClick: handleClickToggle
48
- }, /*#__PURE__*/ React.createElement(IconButtonFab, {
49
- $variant: "contained"
50
- }, open ? /*#__PURE__*/ React.createElement(IconClose, null) : /*#__PURE__*/ React.createElement(IconOpen, null))), /*#__PURE__*/ React.createElement(SidebarWrapper, {
51
- $open: open,
52
- $top: headerHeight
53
- }, children));
47
+ return /*#__PURE__*/ _jsxs(_Fragment, {
48
+ children: [
49
+ /*#__PURE__*/ _jsx(SidebarToggle, {
50
+ onClick: handleClickToggle,
51
+ children: /*#__PURE__*/ _jsx(IconButtonFab, {
52
+ $variant: "contained",
53
+ children: open ? /*#__PURE__*/ _jsx(IconClose, {}) : /*#__PURE__*/ _jsx(IconOpen, {})
54
+ })
55
+ }),
56
+ /*#__PURE__*/ _jsx(SidebarWrapper, {
57
+ $open: open,
58
+ $top: headerHeight,
59
+ children: children
60
+ })
61
+ ]
62
+ });
54
63
  };
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "Spacing", {
9
9
  }
10
10
  });
11
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
12
+ const _jsxruntime = require("react/jsx-runtime");
12
13
  const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
13
14
  const _isUndefined = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isUndefined"));
14
15
  const _spacing = require("../styles/spacing");
@@ -42,9 +43,11 @@ const Spacing = ({ top, bottom, vertical, ...props })=>{
42
43
  }
43
44
  if (!$top && !$bottom && !vertical) {
44
45
  // eslint-disable-next-line react/jsx-no-useless-fragment
45
- return /*#__PURE__*/ React.createElement(React.Fragment, null, props.children);
46
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
47
+ children: props.children
48
+ });
46
49
  }
47
- return /*#__PURE__*/ React.createElement(Root, {
50
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
48
51
  $top: $top,
49
52
  $bottom: $bottom,
50
53
  ...props
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import styled from "styled-components";
2
3
  import isUndefined from "@koine/utils/isUndefined";
3
4
  import { spacingBottom, spacingTop } from "../styles/spacing";
@@ -42,9 +43,11 @@ const extractDirectionArgs = (raw)=>{
42
43
  }
43
44
  if (!$top && !$bottom && !vertical) {
44
45
  // eslint-disable-next-line react/jsx-no-useless-fragment
45
- return /*#__PURE__*/ React.createElement(React.Fragment, null, props.children);
46
+ return /*#__PURE__*/ _jsx(_Fragment, {
47
+ children: props.children
48
+ });
46
49
  }
47
- return /*#__PURE__*/ React.createElement(Root, {
50
+ return /*#__PURE__*/ _jsx(Root, {
48
51
  $top: $top,
49
52
  $bottom: $bottom,
50
53
  ...props
@@ -8,8 +8,9 @@ Object.defineProperty(exports, "StickyCss", {
8
8
  return StickyCss;
9
9
  }
10
10
  });
11
+ const _jsxruntime = require("react/jsx-runtime");
11
12
  const StickyCss = ({ top, ...props })=>{
12
- return /*#__PURE__*/ React.createElement("div", {
13
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
13
14
  style: {
14
15
  position: "sticky",
15
16
  top: 100
@@ -1,5 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  export const StickyCss = ({ top, ...props })=>{
2
- return /*#__PURE__*/ React.createElement("div", {
3
+ return /*#__PURE__*/ _jsx("div", {
3
4
  style: {
4
5
  position: "sticky",
5
6
  top: 100