@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/Forms/Toggle/Toggle.mjs
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* About accessibility:
|
|
5
5
|
* - minimum target size of 44px https://www.w3.org/TR/WCAG21/#target-size
|
|
6
|
-
*/ import {
|
|
6
|
+
*/ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { useId } from "react";
|
|
7
8
|
import styled from "styled-components";
|
|
8
9
|
import { stateFocus } from "../../styles/styled";
|
|
9
10
|
export const toggleBase = `
|
|
@@ -69,36 +70,54 @@ export const ToggleIndicatorFg = styled.svg`
|
|
|
69
70
|
}
|
|
70
71
|
`;
|
|
71
72
|
export const ToggleIndicatorSquared = (props)=>{
|
|
72
|
-
return /*#__PURE__*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
return /*#__PURE__*/ _jsxs(ToggleIndicatorHolder, {
|
|
74
|
+
children: [
|
|
75
|
+
/*#__PURE__*/ _jsx(ToggleIndicatorBgSquare, {
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
children: /*#__PURE__*/ _jsx("rect", {
|
|
78
|
+
width: "24",
|
|
79
|
+
height: "24"
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
/*#__PURE__*/ _jsx(ToggleIndicatorFg, {
|
|
83
|
+
viewBox: "0 0 24 24",
|
|
84
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
85
|
+
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
});
|
|
82
90
|
};
|
|
83
91
|
export const ToggleIndicatorRounded = ({ r = 6 })=>{
|
|
84
92
|
const id = useId();
|
|
85
|
-
return /*#__PURE__*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
93
|
+
return /*#__PURE__*/ _jsxs(ToggleIndicatorHolder, {
|
|
94
|
+
children: [
|
|
95
|
+
/*#__PURE__*/ _jsxs(ToggleIndicatorBgCircle, {
|
|
96
|
+
viewBox: "0 0 24 24",
|
|
97
|
+
children: [
|
|
98
|
+
/*#__PURE__*/ _jsx("circle", {
|
|
99
|
+
cy: "12",
|
|
100
|
+
cx: "12",
|
|
101
|
+
r: "12",
|
|
102
|
+
id: `r_${id}`,
|
|
103
|
+
clipPath: `url(#c_${id})`
|
|
104
|
+
}),
|
|
105
|
+
/*#__PURE__*/ _jsx("clipPath", {
|
|
106
|
+
id: `c_${id}`,
|
|
107
|
+
children: /*#__PURE__*/ _jsx("use", {
|
|
108
|
+
xlinkHref: `#r_${id}`
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
}),
|
|
113
|
+
/*#__PURE__*/ _jsx(ToggleIndicatorFg, {
|
|
114
|
+
viewBox: "0 0 24 24",
|
|
115
|
+
children: /*#__PURE__*/ _jsx("circle", {
|
|
116
|
+
r: r,
|
|
117
|
+
cx: "12",
|
|
118
|
+
cy: "12"
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
});
|
|
104
123
|
};
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "useToggle", {
|
|
|
8
8
|
return useToggle;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
11
12
|
const _react = require("react");
|
|
12
13
|
const _reacthookform = require("react-hook-form");
|
|
13
14
|
const _styles = require("../styles");
|
|
@@ -101,21 +102,26 @@ function useToggle(props, ref) {
|
|
|
101
102
|
idFalse,
|
|
102
103
|
label
|
|
103
104
|
]);
|
|
104
|
-
const Inputs = (0, _react.useMemo)(()=>isRadio ? /*#__PURE__*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
105
|
+
const Inputs = (0, _react.useMemo)(()=>isRadio ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
106
|
+
children: [
|
|
107
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_styles.InputInvisible, {
|
|
108
|
+
id: idFalse,
|
|
109
|
+
...inputProps,
|
|
110
|
+
...remainingInputProps,
|
|
111
|
+
onKeyDown: handleKeyDown,
|
|
112
|
+
type: "radio",
|
|
113
|
+
value: valueFalse
|
|
114
|
+
}),
|
|
115
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_styles.InputInvisible, {
|
|
116
|
+
id: idTrue,
|
|
117
|
+
...inputProps,
|
|
118
|
+
...remainingInputProps,
|
|
119
|
+
onKeyDown: handleKeyDown,
|
|
120
|
+
type: "radio",
|
|
121
|
+
value: valueTrue
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_styles.InputInvisible, {
|
|
119
125
|
id: id,
|
|
120
126
|
type: "checkbox",
|
|
121
127
|
...inputProps,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import { useCallback, useMemo } from "react";
|
|
2
3
|
import { useWatch } from "react-hook-form";
|
|
3
4
|
import { InputInvisible } from "../styles";
|
|
@@ -119,21 +120,26 @@ import { InputInvisible } from "../styles";
|
|
|
119
120
|
idFalse,
|
|
120
121
|
label
|
|
121
122
|
]);
|
|
122
|
-
const Inputs = useMemo(()=>isRadio ? /*#__PURE__*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
123
|
+
const Inputs = useMemo(()=>isRadio ? /*#__PURE__*/ _jsxs(_Fragment, {
|
|
124
|
+
children: [
|
|
125
|
+
/*#__PURE__*/ _jsx(InputInvisible, {
|
|
126
|
+
id: idFalse,
|
|
127
|
+
...inputProps,
|
|
128
|
+
...remainingInputProps,
|
|
129
|
+
onKeyDown: handleKeyDown,
|
|
130
|
+
type: "radio",
|
|
131
|
+
value: valueFalse
|
|
132
|
+
}),
|
|
133
|
+
/*#__PURE__*/ _jsx(InputInvisible, {
|
|
134
|
+
id: idTrue,
|
|
135
|
+
...inputProps,
|
|
136
|
+
...remainingInputProps,
|
|
137
|
+
onKeyDown: handleKeyDown,
|
|
138
|
+
type: "radio",
|
|
139
|
+
value: valueTrue
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
}) : /*#__PURE__*/ _jsx(InputInvisible, {
|
|
137
143
|
id: id,
|
|
138
144
|
type: "checkbox",
|
|
139
145
|
...inputProps,
|
package/Forms/styles.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export declare const InputInvisible:
|
|
2
|
-
export declare const InputHoneypot:
|
|
3
|
-
|
|
4
|
-
autoComplete: "new-password";
|
|
5
|
-
tabIndex: -1;
|
|
6
|
-
}, "tabIndex" | "type" | "autoComplete">;
|
|
7
|
-
export declare const InputProgress: import("styled-components").StyledComponent<(p: any) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const InputInvisible: any;
|
|
2
|
+
export declare const InputHoneypot: any;
|
|
3
|
+
export declare const InputProgress: any;
|
|
8
4
|
/**
|
|
9
5
|
* Remove the default light blue background on autofilled inputs. To be used as
|
|
10
6
|
* a function that outputs a CSS string.
|
package/Forms/styles.js
CHANGED
|
@@ -38,6 +38,7 @@ _export(exports, {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
41
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
41
42
|
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
42
43
|
const _ProgressLinear = require("../Progress/ProgressLinear");
|
|
43
44
|
const _styled = require("../styles/styled");
|
|
@@ -49,7 +50,7 @@ const InputHoneypot = (0, _styledcomponents.default)(InputInvisible).attrs({
|
|
|
49
50
|
autoComplete: "new-password",
|
|
50
51
|
tabIndex: -1
|
|
51
52
|
})``;
|
|
52
|
-
const InputProgress = (0, _styledcomponents.default)((p)=>/*#__PURE__*/
|
|
53
|
+
const InputProgress = (0, _styledcomponents.default)((p)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_ProgressLinear.ProgressLinear, {
|
|
53
54
|
fg: "var(--accent300)",
|
|
54
55
|
bg: "var(--accent400)",
|
|
55
56
|
...p
|
package/Forms/styles.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import styled from "styled-components";
|
|
2
3
|
import { ProgressLinear } from "../Progress/ProgressLinear";
|
|
3
4
|
import { invisible, stateFocus } from "../styles/styled";
|
|
@@ -9,7 +10,7 @@ export const InputHoneypot = styled(InputInvisible).attrs({
|
|
|
9
10
|
autoComplete: "new-password",
|
|
10
11
|
tabIndex: -1
|
|
11
12
|
})``;
|
|
12
|
-
export const InputProgress = styled((p)=>/*#__PURE__*/
|
|
13
|
+
export const InputProgress = styled((p)=>/*#__PURE__*/ _jsx(ProgressLinear, {
|
|
13
14
|
fg: "var(--accent300)",
|
|
14
15
|
bg: "var(--accent400)",
|
|
15
16
|
...p
|
package/Grid/Grid.d.ts
CHANGED
|
@@ -13,20 +13,11 @@ export type ContainerProps = React.PropsWithChildren<GridProps & {
|
|
|
13
13
|
size: Breakpoint;
|
|
14
14
|
clamp?: boolean;
|
|
15
15
|
}>;
|
|
16
|
-
export declare const Container:
|
|
17
|
-
size: Breakpoint;
|
|
18
|
-
clamp?: boolean | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
children?: import("react").ReactNode;
|
|
21
|
-
}, never>;
|
|
16
|
+
export declare const Container: any;
|
|
22
17
|
export type ContainerFluidProps = React.PropsWithChildren<GridProps & {
|
|
23
18
|
size: Breakpoint;
|
|
24
19
|
}>;
|
|
25
|
-
export declare const ContainerFluid:
|
|
26
|
-
size: Breakpoint;
|
|
27
|
-
} & {
|
|
28
|
-
children?: import("react").ReactNode;
|
|
29
|
-
}, never>;
|
|
20
|
+
export declare const ContainerFluid: any;
|
|
30
21
|
type Direction = "min" | "max";
|
|
31
22
|
export type RowProps = GridProps & {
|
|
32
23
|
$valign?: CSSProperties["alignItems"];
|
|
@@ -38,16 +29,7 @@ export type RowProps = GridProps & {
|
|
|
38
29
|
*/
|
|
39
30
|
$noWrap?: boolean;
|
|
40
31
|
};
|
|
41
|
-
export declare const Row:
|
|
42
|
-
$valign?: CSSProperties["alignItems"];
|
|
43
|
-
$reverse?: "min:xs" | "min:sm" | "min:md" | "min:lg" | "min:xl" | "min:xxl" | "max:xs" | "max:sm" | "max:md" | "max:lg" | "max:xl" | "max:xxl" | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* It forces child columns to be on one line overflowing the content when it does not fit,
|
|
46
|
-
* it is suggested to use with children having a minimum width not in percentage,
|
|
47
|
-
* for things like sliders and carousels
|
|
48
|
-
*/
|
|
49
|
-
$noWrap?: boolean | undefined;
|
|
50
|
-
}, never>;
|
|
32
|
+
export declare const Row: any;
|
|
51
33
|
export type ColProps = GridProps & Partial<Record<Breakpoint, number>> & {
|
|
52
34
|
$width?: number;
|
|
53
35
|
$flex?: boolean;
|
|
@@ -55,11 +37,5 @@ export type ColProps = GridProps & Partial<Record<Breakpoint, number>> & {
|
|
|
55
37
|
$auto?: boolean;
|
|
56
38
|
$offset?: string;
|
|
57
39
|
};
|
|
58
|
-
export declare const Col:
|
|
59
|
-
$width?: number | undefined;
|
|
60
|
-
$flex?: boolean | undefined;
|
|
61
|
-
$valign?: React.CSSProperties["alignItems"];
|
|
62
|
-
$auto?: boolean | undefined;
|
|
63
|
-
$offset?: string | undefined;
|
|
64
|
-
}, never>;
|
|
40
|
+
export declare const Col: any;
|
|
65
41
|
export {};
|
package/Hamburger/Hamburger.js
CHANGED
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "Hamburger", {
|
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
16
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
16
17
|
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
17
18
|
const HamburgerLabel = _styledcomponents.default.div`
|
|
18
19
|
position: absolute;
|
|
@@ -58,26 +59,32 @@ const barStyles = {
|
|
|
58
59
|
transition
|
|
59
60
|
};
|
|
60
61
|
const Hamburger = ({ toggled, ...props })=>{
|
|
61
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
62
63
|
style: {
|
|
63
64
|
...burgerStyles,
|
|
64
65
|
transform: `${toggled ? `rotate(90deg)` : "none"}`
|
|
65
66
|
},
|
|
66
67
|
tabIndex: 0,
|
|
67
|
-
...props
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
...props,
|
|
69
|
+
children: [
|
|
70
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
71
|
+
style: {
|
|
72
|
+
...barStyles,
|
|
73
|
+
top: `${topOffset}px`,
|
|
74
|
+
transform: `${toggled ? `rotate(-45deg) translate(0px, ${move}px)` : "none"}`
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
78
|
+
style: {
|
|
79
|
+
...barStyles,
|
|
80
|
+
top: `${topOffset + barHeight + margin}px`,
|
|
81
|
+
transform: `${toggled ? `rotate(45deg) translate(0, -${move}px)` : "none"}`
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
84
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(HamburgerLabel, {
|
|
85
|
+
$toggled: toggled,
|
|
86
|
+
children: "Menu"
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
});
|
|
83
90
|
};
|
package/Hamburger/Hamburger.mjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @file
|
|
3
3
|
*
|
|
4
4
|
* Simplified from https://github.com/luukdv/hamburger-react
|
|
5
|
-
*/ import
|
|
5
|
+
*/ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled from "styled-components";
|
|
6
7
|
const HamburgerLabel = styled.div`
|
|
7
8
|
position: absolute;
|
|
8
9
|
top: 30px;
|
|
@@ -47,26 +48,32 @@ const barStyles = {
|
|
|
47
48
|
transition
|
|
48
49
|
};
|
|
49
50
|
export const Hamburger = ({ toggled, ...props })=>{
|
|
50
|
-
return /*#__PURE__*/
|
|
51
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
51
52
|
style: {
|
|
52
53
|
...burgerStyles,
|
|
53
54
|
transform: `${toggled ? `rotate(90deg)` : "none"}`
|
|
54
55
|
},
|
|
55
56
|
tabIndex: 0,
|
|
56
|
-
...props
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
57
|
+
...props,
|
|
58
|
+
children: [
|
|
59
|
+
/*#__PURE__*/ _jsx("div", {
|
|
60
|
+
style: {
|
|
61
|
+
...barStyles,
|
|
62
|
+
top: `${topOffset}px`,
|
|
63
|
+
transform: `${toggled ? `rotate(-45deg) translate(0px, ${move}px)` : "none"}`
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ _jsx("div", {
|
|
67
|
+
style: {
|
|
68
|
+
...barStyles,
|
|
69
|
+
top: `${topOffset + barHeight + margin}px`,
|
|
70
|
+
transform: `${toggled ? `rotate(45deg) translate(0, -${move}px)` : "none"}`
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ _jsx(HamburgerLabel, {
|
|
74
|
+
$toggled: toggled,
|
|
75
|
+
children: "Menu"
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
72
79
|
};
|
package/Hidden/Hidden.d.ts
CHANGED
package/Img/sc/bare.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type KoineImgProps = {};
|
|
2
|
-
export declare const KoineImg:
|
|
2
|
+
export declare const KoineImg: any;
|
package/Link/Link.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type KoineLinkProps = React.ComponentPropsWithRef<"a">;
|
|
3
|
-
export declare const KoineLink:
|
|
4
|
-
ref?: ((instance: HTMLAnchorElement | null) => void) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
|
|
5
|
-
}, never>;
|
|
3
|
+
export declare const KoineLink: any;
|
package/Link/LinkBlank.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type LinkBlankProps = React.ComponentPropsWithRef<"a">;
|
|
3
|
-
export declare const LinkBlankA:
|
|
4
|
-
|
|
5
|
-
rel: "noopener";
|
|
6
|
-
}, "rel" | "target">;
|
|
7
|
-
export declare const LinkBlankIcon: import("styled-components").StyledComponent<import("react-icons/lib").IconType, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const LinkBlankA: any;
|
|
4
|
+
export declare const LinkBlankIcon: any;
|
|
8
5
|
export declare const LinkBlank: ({ children, target, rel, ...props }: LinkBlankProps) => import("react/jsx-runtime").JSX.Element;
|
package/Link/LinkBlank.js
CHANGED
|
@@ -20,6 +20,7 @@ _export(exports, {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
23
24
|
const _md = require("react-icons/md");
|
|
24
25
|
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
25
26
|
const _media = require("../styles/media");
|
|
@@ -41,5 +42,11 @@ const LinkBlankIcon = (0, _styledcomponents.default)(_md.MdLaunch)`
|
|
|
41
42
|
}
|
|
42
43
|
`;
|
|
43
44
|
const LinkBlank = ({ children, target, rel, ...props })=>{
|
|
44
|
-
return /*#__PURE__*/
|
|
45
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(LinkBlankA, {
|
|
46
|
+
...props,
|
|
47
|
+
children: [
|
|
48
|
+
children,
|
|
49
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(LinkBlankIcon, {})
|
|
50
|
+
]
|
|
51
|
+
});
|
|
45
52
|
};
|
package/Link/LinkBlank.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { MdLaunch as IconOutboundLink } from "react-icons/md";
|
|
2
3
|
import styled from "styled-components";
|
|
3
4
|
import { max } from "../styles/media";
|
|
@@ -21,5 +22,11 @@ export const LinkBlankIcon = styled(IconOutboundLink)`
|
|
|
21
22
|
}
|
|
22
23
|
`;
|
|
23
24
|
export const LinkBlank = ({ children, target, rel, ...props })=>{
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/ _jsxs(LinkBlankA, {
|
|
26
|
+
...props,
|
|
27
|
+
children: [
|
|
28
|
+
children,
|
|
29
|
+
/*#__PURE__*/ _jsx(LinkBlankIcon, {})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
25
32
|
};
|
package/Menu/Menu.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Menu:
|
|
1
|
+
export declare const Menu: any;
|
package/MenuItem/MenuItem.d.ts
CHANGED
package/Meta/Meta.js
CHANGED
|
@@ -16,8 +16,9 @@ _export(exports, {
|
|
|
16
16
|
return _default;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
19
20
|
const Meta = ({ zoom })=>{
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
|
|
21
22
|
name: "viewport",
|
|
22
23
|
content: `width=device-width, initial-scale=1, maximum-scale=1${zoom ? "" : ", user-scalable=0"}`
|
|
23
24
|
});
|
package/Meta/Meta.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
export const Meta = ({ zoom })=>{
|
|
2
|
-
return /*#__PURE__*/
|
|
3
|
+
return /*#__PURE__*/ _jsx("meta", {
|
|
3
4
|
name: "viewport",
|
|
4
5
|
content: `width=device-width, initial-scale=1, maximum-scale=1${zoom ? "" : ", user-scalable=0"}`
|
|
5
6
|
});
|
package/NoJs/NoJs.js
CHANGED
|
@@ -16,8 +16,9 @@ _export(exports, {
|
|
|
16
16
|
return _default;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
19
20
|
const NoJs = (_props)=>{
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
|
|
21
22
|
id: "no-js",
|
|
22
23
|
dangerouslySetInnerHTML: {
|
|
23
24
|
__html: `document.querySelector("html").className=document.querySelector("html").className.replace(/no-js/,"") + "js";`
|
package/NoJs/NoJs.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
export const NoJs = (_props)=>{
|
|
2
|
-
return /*#__PURE__*/
|
|
3
|
+
return /*#__PURE__*/ _jsx("script", {
|
|
3
4
|
id: "no-js",
|
|
4
5
|
dangerouslySetInnerHTML: {
|
|
5
6
|
__html: `document.querySelector("html").className=document.querySelector("html").className.replace(/no-js/,"") + "js";`
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "KoinePaginationNav", {
|
|
|
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 _cg = require("react-icons/cg");
|
|
13
14
|
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
14
15
|
const _ensureInt = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/ensureInt"));
|
|
@@ -81,27 +82,45 @@ const KoinePaginationNav = ({ total, perPage, currentPage: _currentPage, baseUrl
|
|
|
81
82
|
}
|
|
82
83
|
const prevDots = pages[0] > firstPage + 1;
|
|
83
84
|
const nextDots = pages[pages.length - 1] < lastPage - 1;
|
|
84
|
-
return /*#__PURE__*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
85
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(Root, {
|
|
86
|
+
children: [
|
|
87
|
+
prevArrow && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemPrev, {
|
|
88
|
+
as: Link,
|
|
89
|
+
href: `${baseUrl}/${prevPage}`,
|
|
90
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_cg.CgArrowLeftR, {})
|
|
91
|
+
}),
|
|
92
|
+
firstPage !== currentPage && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemLink, {
|
|
93
|
+
as: Link,
|
|
94
|
+
href: `${baseUrl}`,
|
|
95
|
+
prev: true,
|
|
96
|
+
children: firstPage
|
|
97
|
+
}),
|
|
98
|
+
prevDots && /*#__PURE__*/ (0, _jsxruntime.jsx)(DotsSeparator, {
|
|
99
|
+
children: "..."
|
|
100
|
+
}),
|
|
101
|
+
pages.map((page)=>page === currentPage ? /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemCurrent, {
|
|
102
|
+
children: page
|
|
103
|
+
}, page) : /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemLink, {
|
|
104
|
+
as: Link,
|
|
105
|
+
href: `${baseUrl}/${page}`,
|
|
106
|
+
prev: page < currentPage,
|
|
107
|
+
next: page > currentPage,
|
|
108
|
+
children: page
|
|
109
|
+
}, `pagination-${page}`)),
|
|
110
|
+
nextDots && /*#__PURE__*/ (0, _jsxruntime.jsx)(DotsSeparator, {
|
|
111
|
+
children: "..."
|
|
112
|
+
}),
|
|
113
|
+
lastPage !== currentPage && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemLink, {
|
|
114
|
+
as: Link,
|
|
115
|
+
href: `${baseUrl}/${lastPage}`,
|
|
116
|
+
next: true,
|
|
117
|
+
children: lastPage
|
|
118
|
+
}),
|
|
119
|
+
nextArrow && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemNext, {
|
|
120
|
+
as: Link,
|
|
121
|
+
href: `${baseUrl}/${nextPage}`,
|
|
122
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_cg.CgArrowRightR, {})
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
});
|
|
107
126
|
};
|