@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.
- package/Alert/Alert.js +7 -3
- package/Alert/Alert.mjs +7 -3
- package/Alert/Alert.stories.js +4 -1
- package/Alert/Alert.stories.mjs +4 -1
- package/Animations/Reveal.js +5 -3
- package/Animations/Reveal.mjs +5 -3
- package/Animations/Underline.d.ts +1 -1
- package/Autocomplete/AutocompleteMui.js +57 -28
- package/Autocomplete/AutocompleteMui.mjs +57 -28
- package/Autocomplete/components.d.ts +12 -16
- package/Bg/BgColor.d.ts +2 -7
- package/Bg/BgColor.js +15 -10
- package/Bg/BgColor.mjs +15 -10
- package/Bg/BgPhoto.js +8 -6
- package/Bg/BgPhoto.mjs +8 -6
- package/Bg/BgSvg.js +8 -6
- package/Bg/BgSvg.mjs +8 -6
- package/Breadcrumbs/Breadcrumbs.js +30 -17
- package/Breadcrumbs/Breadcrumbs.mjs +30 -17
- package/Buttons/Button.d.ts +1 -1
- package/Buttons/ButtonComposite.js +52 -19
- package/Buttons/ButtonComposite.mjs +52 -19
- package/Buttons/ButtonFab.d.ts +1 -3
- package/Buttons/ButtonLink.js +3 -2
- package/Buttons/ButtonLink.mjs +3 -2
- package/Buttons/IconButton.d.ts +1 -3
- package/Calendar/CalendarDaygridCell.js +75 -52
- package/Calendar/CalendarDaygridCell.mjs +75 -52
- package/Calendar/CalendarDaygridNav.js +31 -17
- package/Calendar/CalendarDaygridNav.mjs +31 -17
- package/Calendar/CalendarDaygridTable.js +40 -15
- package/Calendar/CalendarDaygridTable.mjs +40 -15
- package/Calendar/CalendarLegend.js +20 -7
- package/Calendar/CalendarLegend.mjs +20 -7
- package/Carousel/CarouselCss.d.ts +2 -19
- package/Carousel/CarouselCss.js +10 -8
- package/Carousel/CarouselCss.mjs +10 -8
- package/Debug/Debug.js +4 -1
- package/Debug/Debug.mjs +4 -1
- package/Details/Details.js +27 -19
- package/Details/Details.mjs +27 -19
- package/Details/Details.stories.js +2 -1
- package/Details/Details.stories.mjs +2 -1
- package/Dialog/DialogMui.d.ts +9 -326
- package/Dialog/DialogMui.js +24 -11
- package/Dialog/DialogMui.mjs +24 -11
- package/Dialog/DialogMui.stories.js +2 -1
- package/Dialog/DialogMui.stories.mjs +2 -1
- package/Dialog/css/bare.d.ts +9 -327
- package/Dialog/css/index.stories.js +11 -3
- package/Dialog/css/index.stories.mjs +11 -3
- package/Dialog/m/bare.d.ts +2 -398
- package/Dialog/m/bare.js +114 -69
- package/Dialog/m/bare.mjs +114 -69
- package/Dialog/sc/bare.d.ts +27 -405
- package/Dialog/sc/framer.d.ts +15 -422
- package/Dialog/sc/framerMaterial.d.ts +15 -422
- package/Dialog/sc/index.stories.js +5 -4
- package/Dialog/sc/index.stories.mjs +5 -4
- package/Dialog/sc/material.d.ts +27 -405
- package/Dialog/tw/bare.d.ts +9 -327
- package/Dialog/tw/elegant.d.ts +9 -327
- package/Dialog/tw/framer.d.ts +3 -354
- package/Dialog/tw/framerMaterial.d.ts +3 -354
- package/Dialog/tw/index.stories.js +6 -5
- package/Dialog/tw/index.stories.mjs +6 -5
- package/Dialog/tw/material.d.ts +9 -327
- package/Editor/Editor--tiptap.js +29 -14
- package/Editor/Editor--tiptap.mjs +29 -14
- package/Editor/components.d.ts +3 -5
- package/FaviconTags.js +52 -38
- package/FaviconTags.mjs +52 -38
- package/Form/Form.js +33 -16
- package/Form/Form.mjs +33 -16
- package/Form/sc/bare.d.ts +11 -11
- package/Forms/Checkbox/Checkbox.d.ts +4 -4
- package/Forms/Checkbox/Checkbox.js +15 -1
- package/Forms/Checkbox/Checkbox.mjs +15 -1
- package/Forms/Feedback/Feedback.js +5 -3
- package/Forms/Feedback/Feedback.mjs +5 -3
- package/Forms/Field/Field.d.ts +2 -4
- package/Forms/Field/Field.js +11 -5
- package/Forms/Field/Field.mjs +11 -5
- package/Forms/Field/FieldControl.js +20 -6
- package/Forms/Field/FieldControl.mjs +20 -6
- package/Forms/Field/FieldHint.d.ts +1 -1
- package/Forms/Input/Input.d.ts +5 -5
- package/Forms/Input/Input.js +15 -7
- package/Forms/Input/Input.mjs +15 -7
- package/Forms/InputGroup/InputGroup.d.ts +4 -4
- package/Forms/InputGroup/InputGroup.js +17 -7
- package/Forms/InputGroup/InputGroup.mjs +17 -7
- package/Forms/Label/Label.d.ts +1 -1
- package/Forms/Password/Password.d.ts +1 -1
- package/Forms/Password/Password.js +25 -11
- package/Forms/Password/Password.mjs +25 -11
- package/Forms/Radio/Radio.js +30 -11
- package/Forms/Radio/Radio.mjs +30 -11
- package/Forms/Switch/Switch.d.ts +2 -2
- package/Forms/Switch/Switch.js +13 -1
- package/Forms/Switch/Switch.mjs +13 -1
- package/Forms/Textarea/Textarea.d.ts +1 -1
- package/Forms/Textarea/Textarea.js +15 -7
- package/Forms/Textarea/Textarea.mjs +15 -7
- package/Forms/Textarea/TextareaRich.js +20 -12
- package/Forms/Textarea/TextareaRich.mjs +20 -12
- package/Forms/Toggle/Toggle.d.ts +7 -7
- package/Forms/Toggle/Toggle.js +48 -29
- package/Forms/Toggle/Toggle.mjs +49 -30
- package/Forms/Toggle/useToggle.js +21 -15
- package/Forms/Toggle/useToggle.mjs +21 -15
- package/Forms/styles.d.ts +3 -7
- package/Forms/styles.js +2 -1
- package/Forms/styles.mjs +2 -1
- package/Grid/Grid.d.ts +4 -28
- package/Hamburger/Hamburger.js +24 -17
- package/Hamburger/Hamburger.mjs +25 -18
- package/Hidden/Hidden.d.ts +1 -1
- package/Img/sc/bare.d.ts +1 -1
- package/Link/Link.d.ts +1 -3
- package/Link/LinkBlank.d.ts +2 -5
- package/Link/LinkBlank.js +8 -1
- package/Link/LinkBlank.mjs +8 -1
- package/Menu/Menu.d.ts +1 -1
- package/MenuItem/MenuItem.d.ts +1 -4
- package/Meta/Meta.js +2 -1
- package/Meta/Meta.mjs +2 -1
- package/NoJs/NoJs.js +2 -1
- package/NoJs/NoJs.mjs +2 -1
- package/Pagination/PaginationNav.js +42 -23
- package/Pagination/PaginationNav.mjs +42 -23
- package/Pagination/PaginationResults.js +25 -20
- package/Pagination/PaginationResults.mjs +25 -20
- package/Pill/Pill.d.ts +4 -4
- package/Progress/ProgressCircular.js +14 -12
- package/Progress/ProgressCircular.mjs +14 -12
- package/Progress/ProgressLinear.js +21 -19
- package/Progress/ProgressLinear.mjs +21 -19
- package/Progress/ProgressOverlay.js +20 -14
- package/Progress/ProgressOverlay.mjs +20 -14
- package/Rating/Rating.d.ts +5 -5
- package/Rating/Rating.js +61 -35
- package/Rating/Rating.mjs +61 -35
- package/Select/components.d.ts +1 -1
- package/Select/components.js +5 -3
- package/Select/components.mjs +5 -3
- package/Sidebar/Sidebar.js +17 -8
- package/Sidebar/Sidebar.mjs +17 -8
- package/Spacing/Spacing.js +5 -2
- package/Spacing/Spacing.mjs +5 -2
- package/Sticky/StickyCss.js +2 -1
- package/Sticky/StickyCss.mjs +2 -1
- package/Tabs/TabsMui.d.ts +7 -296
- package/Tabs/TabsMui.js +11 -2
- package/Tabs/TabsMui.mjs +11 -2
- package/Tabs/TabsMui.stories.js +2 -1
- package/Tabs/TabsMui.stories.mjs +2 -1
- package/Tabs/tw/bare.d.ts +7 -296
- package/Tabs/tw/index.stories.js +3 -2
- package/Tabs/tw/index.stories.mjs +3 -2
- package/Tabs/tw/material.d.ts +7 -332
- package/Typography/CopyPasteVisible.d.ts +1 -1
- package/Typography/Native.d.ts +5 -5
- package/Typography/ReadMore.js +33 -18
- package/Typography/ReadMore.mjs +33 -18
- package/Typography/TextLoop.js +43 -35
- package/Typography/TextLoop.mjs +43 -35
- package/Typography/TypeStairs.js +27 -19
- package/Typography/TypeStairs.mjs +27 -19
- package/helpers/classed.stories.js +40 -22
- package/helpers/classed.stories.mjs +40 -22
- package/m/MotionProvider.js +5 -3
- package/m/MotionProvider.mjs +5 -3
- package/package.json +5 -25
- package/styles/Body.d.ts +2 -2
- package/styles/theme--vanilla.js +5 -3
- 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__*/
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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__*/
|
|
117
|
-
|
|
118
|
-
idx
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
};
|
package/Select/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SelectArrowStyled:
|
|
2
|
+
export declare const SelectArrowStyled: any;
|
|
3
3
|
export type SelectArrowProps = {
|
|
4
4
|
isOpen?: boolean;
|
|
5
5
|
};
|
package/Select/components.js
CHANGED
|
@@ -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__*/
|
|
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
|
-
|
|
41
|
+
...props,
|
|
42
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_bs.BsBoxArrowInDown, {})
|
|
43
|
+
});
|
|
42
44
|
});
|
package/Select/components.mjs
CHANGED
|
@@ -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__*/
|
|
17
|
+
return /*#__PURE__*/ _jsx(SelectArrowStyled, {
|
|
17
18
|
animate: {
|
|
18
19
|
rotate: isOpen ? 180 : 0
|
|
19
20
|
},
|
|
20
21
|
ref: ref,
|
|
21
|
-
...props
|
|
22
|
-
|
|
22
|
+
...props,
|
|
23
|
+
children: /*#__PURE__*/ _jsx(IconCollapse, {})
|
|
24
|
+
});
|
|
23
25
|
});
|
package/Sidebar/Sidebar.js
CHANGED
|
@@ -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__*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
};
|
package/Sidebar/Sidebar.mjs
CHANGED
|
@@ -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__*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
};
|
package/Spacing/Spacing.js
CHANGED
|
@@ -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__*/
|
|
46
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
47
|
+
children: props.children
|
|
48
|
+
});
|
|
46
49
|
}
|
|
47
|
-
return /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
|
|
48
51
|
$top: $top,
|
|
49
52
|
$bottom: $bottom,
|
|
50
53
|
...props
|
package/Spacing/Spacing.mjs
CHANGED
|
@@ -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__*/
|
|
46
|
+
return /*#__PURE__*/ _jsx(_Fragment, {
|
|
47
|
+
children: props.children
|
|
48
|
+
});
|
|
46
49
|
}
|
|
47
|
-
return /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/ _jsx(Root, {
|
|
48
51
|
$top: $top,
|
|
49
52
|
$bottom: $bottom,
|
|
50
53
|
...props
|
package/Sticky/StickyCss.js
CHANGED
|
@@ -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__*/
|
|
13
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
13
14
|
style: {
|
|
14
15
|
position: "sticky",
|
|
15
16
|
top: 100
|
package/Sticky/StickyCss.mjs
CHANGED