@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/Alert/Alert.js
CHANGED
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "Alert", {
|
|
|
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 AlertRoot = _styledcomponents.default.div`
|
|
14
15
|
font-size: 12px;
|
|
@@ -22,8 +23,11 @@ const AlertInner = _styledcomponents.default.div`
|
|
|
22
23
|
/* color: red; */
|
|
23
24
|
`;
|
|
24
25
|
const Alert = ({ $danger, children, ...props })=>{
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(AlertRoot, {
|
|
26
27
|
$danger: $danger,
|
|
27
|
-
...props
|
|
28
|
-
|
|
28
|
+
...props,
|
|
29
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(AlertInner, {
|
|
30
|
+
children: children
|
|
31
|
+
})
|
|
32
|
+
});
|
|
29
33
|
};
|
package/Alert/Alert.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import styled from "styled-components";
|
|
2
3
|
const AlertRoot = styled.div`
|
|
3
4
|
font-size: 12px;
|
|
@@ -11,8 +12,11 @@ const AlertInner = styled.div`
|
|
|
11
12
|
/* color: red; */
|
|
12
13
|
`;
|
|
13
14
|
export const Alert = ({ $danger, children, ...props })=>{
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/ _jsx(AlertRoot, {
|
|
15
16
|
$danger: $danger,
|
|
16
|
-
...props
|
|
17
|
-
|
|
17
|
+
...props,
|
|
18
|
+
children: /*#__PURE__*/ _jsx(AlertInner, {
|
|
19
|
+
children: children
|
|
20
|
+
})
|
|
21
|
+
});
|
|
18
22
|
};
|
package/Alert/Alert.stories.js
CHANGED
|
@@ -19,12 +19,15 @@ _export(exports, {
|
|
|
19
19
|
return danger;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
22
23
|
const _Alert = require("./Alert");
|
|
23
24
|
const _default = {
|
|
24
25
|
component: _Alert.Alert,
|
|
25
26
|
title: "Base/Alert"
|
|
26
27
|
};
|
|
27
|
-
const Template = (args)=>/*#__PURE__*/
|
|
28
|
+
const Template = (args)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_Alert.Alert, {
|
|
29
|
+
...args
|
|
30
|
+
});
|
|
28
31
|
const bare = Template.bind({});
|
|
29
32
|
bare.args = {
|
|
30
33
|
children: "An alert message"
|
package/Alert/Alert.stories.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { Alert } from "./Alert";
|
|
2
3
|
export default {
|
|
3
4
|
component: Alert,
|
|
4
5
|
title: "Base/Alert"
|
|
5
6
|
};
|
|
6
|
-
const Template = (args)=>/*#__PURE__*/
|
|
7
|
+
const Template = (args)=>/*#__PURE__*/ _jsx(Alert, {
|
|
8
|
+
...args
|
|
9
|
+
});
|
|
7
10
|
export const bare = Template.bind({});
|
|
8
11
|
bare.args = {
|
|
9
12
|
children: "An alert message"
|
package/Animations/Reveal.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "Reveal", {
|
|
|
8
8
|
return Reveal;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
11
12
|
const _framermotion = require("framer-motion");
|
|
12
13
|
const _useReveal = require("./useReveal");
|
|
13
14
|
const Reveal = ({ children, direction, offsetStartY, offsetEndY, offsetStartX, ...props })=>{
|
|
@@ -40,12 +41,13 @@ const Reveal = ({ children, direction, offsetStartY, offsetEndY, offsetStartX, .
|
|
|
40
41
|
});
|
|
41
42
|
const opacity = (0, _framermotion.useSpring)(opacityRange);
|
|
42
43
|
// console.log("start, end", startY, endY)
|
|
43
|
-
return /*#__PURE__*/
|
|
44
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_framermotion.motion.div, {
|
|
44
45
|
...props,
|
|
45
46
|
ref: ref,
|
|
46
47
|
style: prefersReducedMotion ? {} : {
|
|
47
48
|
x,
|
|
48
49
|
opacity
|
|
49
|
-
}
|
|
50
|
-
|
|
50
|
+
},
|
|
51
|
+
children: children
|
|
52
|
+
});
|
|
51
53
|
};
|
package/Animations/Reveal.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { motion, useReducedMotion, useSpring, useTransform, useViewportScroll } from "framer-motion";
|
|
2
3
|
import { useReveal } from "./useReveal";
|
|
3
4
|
export const Reveal = ({ children, direction, offsetStartY, offsetEndY, offsetStartX, ...props })=>{
|
|
@@ -30,12 +31,13 @@ export const Reveal = ({ children, direction, offsetStartY, offsetEndY, offsetSt
|
|
|
30
31
|
});
|
|
31
32
|
const opacity = useSpring(opacityRange);
|
|
32
33
|
// console.log("start, end", startY, endY)
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/ _jsx(motion.div, {
|
|
34
35
|
...props,
|
|
35
36
|
ref: ref,
|
|
36
37
|
style: prefersReducedMotion ? {} : {
|
|
37
38
|
x,
|
|
38
39
|
opacity
|
|
39
|
-
}
|
|
40
|
-
|
|
40
|
+
},
|
|
41
|
+
children: children
|
|
42
|
+
});
|
|
41
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const UnderlineSkewed:
|
|
1
|
+
export declare const UnderlineSkewed: any;
|
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "Autocomplete", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
13
14
|
const _useAutocomplete = /*#__PURE__*/ _interop_require_default._(require("@mui/base/useAutocomplete"));
|
|
14
15
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
15
16
|
const _isString = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isString"));
|
|
@@ -122,33 +123,61 @@ name, onChange, $ref, children, ...props })=>{
|
|
|
122
123
|
// inputProps.ref.current.focus();
|
|
123
124
|
// }
|
|
124
125
|
// }, [errors, name, inputProps.ref]);
|
|
125
|
-
return /*#__PURE__*/
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
126
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.AutocompleteRoot, {
|
|
127
|
+
children: [
|
|
128
|
+
label && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteLabel, {
|
|
129
|
+
...getInputLabelProps(),
|
|
130
|
+
children: label
|
|
131
|
+
}),
|
|
132
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.AutocompleteWrap, {
|
|
133
|
+
...getRootProps(),
|
|
134
|
+
"data-focus": focused,
|
|
135
|
+
children: [
|
|
136
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.AutocompleteInner, {
|
|
137
|
+
ref: setAnchorEl,
|
|
138
|
+
children: [
|
|
139
|
+
multiple && value.map((valueItem, index)=>{
|
|
140
|
+
const { onDelete, key, ...tagProps } = getTagProps({
|
|
141
|
+
index
|
|
142
|
+
});
|
|
143
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.AutocompleteItem, {
|
|
144
|
+
...tagProps,
|
|
145
|
+
children: [
|
|
146
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteItemLabel, {
|
|
147
|
+
children: (0, _isString.default)(valueItem) ? valueItem : valueItem.Label || valueItem.label
|
|
148
|
+
}),
|
|
149
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteItemRemove, {
|
|
150
|
+
onClick: onDelete,
|
|
151
|
+
children: "✕"
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
}, key);
|
|
155
|
+
}),
|
|
156
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteInput, {
|
|
157
|
+
...inputProps(),
|
|
158
|
+
placeholder: placeholder
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}),
|
|
162
|
+
!!options.length && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteInputArrow, {
|
|
163
|
+
...getPopupIndicatorProps(),
|
|
164
|
+
isOpen: popupOpen
|
|
165
|
+
}),
|
|
166
|
+
loading && /*#__PURE__*/ (0, _jsxruntime.jsx)(_styles.InputProgress, {})
|
|
167
|
+
]
|
|
168
|
+
}),
|
|
169
|
+
groupedOptions.length ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteMenu, {
|
|
170
|
+
...getListboxProps(),
|
|
171
|
+
children: groupedOptions.map((option, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.AutocompleteMenuItem, {
|
|
172
|
+
...getOptionProps({
|
|
173
|
+
option,
|
|
174
|
+
index
|
|
175
|
+
}),
|
|
176
|
+
children: (0, _isString.default)(option) ? option : option.Label || option.label
|
|
177
|
+
}, index))
|
|
178
|
+
}) : null,
|
|
179
|
+
children
|
|
180
|
+
]
|
|
181
|
+
});
|
|
153
182
|
// });
|
|
154
183
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import useAutocomplete from "@mui/base/useAutocomplete";
|
|
2
3
|
import React, { useCallback, useMemo, useState } from "react";
|
|
3
4
|
// forwardRef,
|
|
@@ -158,33 +159,61 @@ name, onChange, $ref, children, ...props })=>{
|
|
|
158
159
|
// inputProps.ref.current.focus();
|
|
159
160
|
// }
|
|
160
161
|
// }, [errors, name, inputProps.ref]);
|
|
161
|
-
return /*#__PURE__*/
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
162
|
+
return /*#__PURE__*/ _jsxs(AutocompleteRoot, {
|
|
163
|
+
children: [
|
|
164
|
+
label && /*#__PURE__*/ _jsx(AutocompleteLabel, {
|
|
165
|
+
...getInputLabelProps(),
|
|
166
|
+
children: label
|
|
167
|
+
}),
|
|
168
|
+
/*#__PURE__*/ _jsxs(AutocompleteWrap, {
|
|
169
|
+
...getRootProps(),
|
|
170
|
+
"data-focus": focused,
|
|
171
|
+
children: [
|
|
172
|
+
/*#__PURE__*/ _jsxs(AutocompleteInner, {
|
|
173
|
+
ref: setAnchorEl,
|
|
174
|
+
children: [
|
|
175
|
+
multiple && value.map((valueItem, index)=>{
|
|
176
|
+
const { onDelete, key, ...tagProps } = getTagProps({
|
|
177
|
+
index
|
|
178
|
+
});
|
|
179
|
+
return /*#__PURE__*/ _jsxs(AutocompleteItem, {
|
|
180
|
+
...tagProps,
|
|
181
|
+
children: [
|
|
182
|
+
/*#__PURE__*/ _jsx(AutocompleteItemLabel, {
|
|
183
|
+
children: isString(valueItem) ? valueItem : valueItem.Label || valueItem.label
|
|
184
|
+
}),
|
|
185
|
+
/*#__PURE__*/ _jsx(AutocompleteItemRemove, {
|
|
186
|
+
onClick: onDelete,
|
|
187
|
+
children: "✕"
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
}, key);
|
|
191
|
+
}),
|
|
192
|
+
/*#__PURE__*/ _jsx(AutocompleteInput, {
|
|
193
|
+
...inputProps(),
|
|
194
|
+
placeholder: placeholder
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
}),
|
|
198
|
+
!!options.length && /*#__PURE__*/ _jsx(AutocompleteInputArrow, {
|
|
199
|
+
...getPopupIndicatorProps(),
|
|
200
|
+
isOpen: popupOpen
|
|
201
|
+
}),
|
|
202
|
+
loading && /*#__PURE__*/ _jsx(InputProgress, {})
|
|
203
|
+
]
|
|
204
|
+
}),
|
|
205
|
+
groupedOptions.length ? /*#__PURE__*/ _jsx(AutocompleteMenu, {
|
|
206
|
+
...getListboxProps(),
|
|
207
|
+
children: groupedOptions.map((option, index)=>/*#__PURE__*/ _jsx(AutocompleteMenuItem, {
|
|
208
|
+
...getOptionProps({
|
|
209
|
+
option,
|
|
210
|
+
index
|
|
211
|
+
}),
|
|
212
|
+
children: isString(option) ? option : option.Label || option.label
|
|
213
|
+
}, index))
|
|
214
|
+
}) : null,
|
|
215
|
+
children
|
|
216
|
+
]
|
|
217
|
+
});
|
|
189
218
|
// });
|
|
190
219
|
};
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const AutocompleteInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const AutocompleteRoot: any;
|
|
2
|
+
export declare const AutocompleteLabel: any;
|
|
3
|
+
export declare const AutocompleteWrap: any;
|
|
4
|
+
export declare const AutocompleteInner: any;
|
|
5
|
+
export declare const AutocompleteItem: any;
|
|
6
|
+
export declare const AutocompleteItemLabel: any;
|
|
7
|
+
export declare const AutocompleteItemRemove: any;
|
|
8
|
+
export declare const AutocompleteInputWrap: any;
|
|
9
|
+
export declare const AutocompleteInput: any;
|
|
11
10
|
/**
|
|
12
11
|
* This cannot be a button otherwise on `Enter` the form would submit instead
|
|
13
12
|
* of opening the dropdown or adding the selection. There are too many events
|
|
14
13
|
* to prevent if we were using a standard HTML `<button>`
|
|
15
14
|
*/
|
|
16
|
-
export declare const AutocompleteInputArrow:
|
|
17
|
-
export declare const AutocompleteMenu:
|
|
18
|
-
export declare const AutocompleteMenuItem:
|
|
19
|
-
$active?: boolean | undefined;
|
|
20
|
-
disabled?: boolean | undefined;
|
|
21
|
-
}, never>;
|
|
15
|
+
export declare const AutocompleteInputArrow: any;
|
|
16
|
+
export declare const AutocompleteMenu: any;
|
|
17
|
+
export declare const AutocompleteMenuItem: any;
|
package/Bg/BgColor.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ContainerProps } from "../Grid";
|
|
3
|
-
export declare const BgColor:
|
|
4
|
-
|
|
5
|
-
}, never>;
|
|
6
|
-
export declare const BgColorSkewed: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
|
-
$bg: BgContainerProps["color"];
|
|
8
|
-
$transform: string;
|
|
9
|
-
}, never>;
|
|
3
|
+
export declare const BgColor: any;
|
|
4
|
+
export declare const BgColorSkewed: any;
|
|
10
5
|
export type BgContainerProps = ContainerProps & {
|
|
11
6
|
color: NonNullable<React.CSSProperties["background"]>;
|
|
12
7
|
/**
|
package/Bg/BgColor.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 _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
24
25
|
const _Grid = require("../Grid");
|
|
25
26
|
const _styles = require("../styles");
|
|
@@ -45,15 +46,19 @@ const BgContainer = ({ color, skewY = 0, rotate = 0, scaleY = 1, scaleX = 1, per
|
|
|
45
46
|
if (skewY || rotate) {
|
|
46
47
|
$transform = `perspective(${perspective}vw) rotateY(${rotate}deg) skewY(${skewY}deg) scaleY(${scaleY}) scaleX(${scaleX})`;
|
|
47
48
|
}
|
|
48
|
-
return $transform ? /*#__PURE__*/
|
|
49
|
+
return $transform ? /*#__PURE__*/ (0, _jsxruntime.jsx)(BgColorSkewed, {
|
|
49
50
|
$bg: color,
|
|
50
|
-
$transform: $transform
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
$transform: $transform,
|
|
52
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.Container, {
|
|
53
|
+
style: {
|
|
54
|
+
position: "relative"
|
|
55
|
+
},
|
|
56
|
+
...containerProps
|
|
57
|
+
})
|
|
58
|
+
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(BgColor, {
|
|
59
|
+
$bg: color,
|
|
60
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.Container, {
|
|
61
|
+
...containerProps
|
|
62
|
+
})
|
|
63
|
+
});
|
|
59
64
|
};
|
package/Bg/BgColor.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 { Container } from "../Grid";
|
|
3
4
|
import { overlay } from "../styles";
|
|
@@ -23,15 +24,19 @@ export const BgContainer = ({ color, skewY = 0, rotate = 0, scaleY = 1, scaleX =
|
|
|
23
24
|
if (skewY || rotate) {
|
|
24
25
|
$transform = `perspective(${perspective}vw) rotateY(${rotate}deg) skewY(${skewY}deg) scaleY(${scaleY}) scaleX(${scaleX})`;
|
|
25
26
|
}
|
|
26
|
-
return $transform ? /*#__PURE__*/
|
|
27
|
+
return $transform ? /*#__PURE__*/ _jsx(BgColorSkewed, {
|
|
27
28
|
$bg: color,
|
|
28
|
-
$transform: $transform
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
$transform: $transform,
|
|
30
|
+
children: /*#__PURE__*/ _jsx(Container, {
|
|
31
|
+
style: {
|
|
32
|
+
position: "relative"
|
|
33
|
+
},
|
|
34
|
+
...containerProps
|
|
35
|
+
})
|
|
36
|
+
}) : /*#__PURE__*/ _jsx(BgColor, {
|
|
37
|
+
$bg: color,
|
|
38
|
+
children: /*#__PURE__*/ _jsx(Container, {
|
|
39
|
+
...containerProps
|
|
40
|
+
})
|
|
41
|
+
});
|
|
37
42
|
};
|
package/Bg/BgPhoto.js
CHANGED
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "BgPhoto", {
|
|
|
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 _Grid = require("../Grid");
|
|
14
15
|
const _Hidden = require("../Hidden");
|
|
@@ -68,13 +69,14 @@ const BgPhoto = ({ src, containerSize = "xl", $overlap = 0 })=>{
|
|
|
68
69
|
containerSize,
|
|
69
70
|
$overlap
|
|
70
71
|
};
|
|
71
|
-
return /*#__PURE__*/
|
|
72
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(BgPhotoWrap, {
|
|
72
73
|
style: {
|
|
73
74
|
backgroundImage: `url(${src})`
|
|
74
75
|
},
|
|
75
|
-
$max: "xxl"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
$max: "xxl",
|
|
77
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(BgPhotoMask, {
|
|
78
|
+
size: containerSize,
|
|
79
|
+
...styledProps
|
|
80
|
+
})
|
|
81
|
+
});
|
|
80
82
|
};
|
package/Bg/BgPhoto.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 { Container } from "../Grid";
|
|
3
4
|
import { Hidden } from "../Hidden";
|
|
@@ -57,13 +58,14 @@ export const BgPhoto = ({ src, containerSize = "xl", $overlap = 0 })=>{
|
|
|
57
58
|
containerSize,
|
|
58
59
|
$overlap
|
|
59
60
|
};
|
|
60
|
-
return /*#__PURE__*/
|
|
61
|
+
return /*#__PURE__*/ _jsx(BgPhotoWrap, {
|
|
61
62
|
style: {
|
|
62
63
|
backgroundImage: `url(${src})`
|
|
63
64
|
},
|
|
64
|
-
$max: "xxl"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
$max: "xxl",
|
|
66
|
+
children: /*#__PURE__*/ _jsx(BgPhotoMask, {
|
|
67
|
+
size: containerSize,
|
|
68
|
+
...styledProps
|
|
69
|
+
})
|
|
70
|
+
});
|
|
69
71
|
};
|
package/Bg/BgSvg.js
CHANGED
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "BgSvg", {
|
|
|
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 Root = _styledcomponents.default.svg`
|
|
14
15
|
position: fixed;
|
|
@@ -18,12 +19,13 @@ const Root = _styledcomponents.default.svg`
|
|
|
18
19
|
opacity: 0.9;
|
|
19
20
|
`;
|
|
20
21
|
const BgSvg = ({ color })=>{
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
|
|
22
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23
24
|
viewBox: "0 0 1200 120",
|
|
24
|
-
preserveAspectRatio: "none"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
preserveAspectRatio: "none",
|
|
26
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("path", {
|
|
27
|
+
d: "M1200 0L0 0 598.97 114.72 1200 0z",
|
|
28
|
+
fill: color
|
|
29
|
+
})
|
|
30
|
+
});
|
|
29
31
|
};
|
package/Bg/BgSvg.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import styled from "styled-components";
|
|
2
3
|
const Root = styled.svg`
|
|
3
4
|
position: fixed;
|
|
@@ -9,12 +10,13 @@ const Root = styled.svg`
|
|
|
9
10
|
/**
|
|
10
11
|
* Centered triangle shape
|
|
11
12
|
*/ export const BgSvg = ({ color })=>{
|
|
12
|
-
return /*#__PURE__*/
|
|
13
|
+
return /*#__PURE__*/ _jsx(Root, {
|
|
13
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
15
|
viewBox: "0 0 1200 120",
|
|
15
|
-
preserveAspectRatio: "none"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
preserveAspectRatio: "none",
|
|
17
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
18
|
+
d: "M1200 0L0 0 598.97 114.72 1200 0z",
|
|
19
|
+
fill: color
|
|
20
|
+
})
|
|
21
|
+
});
|
|
20
22
|
};
|
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "KoineBreadcrumbs", {
|
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
13
14
|
const _framermotion = require("framer-motion");
|
|
14
15
|
const _md = require("react-icons/md");
|
|
15
16
|
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard._(require("styled-components"));
|
|
@@ -70,21 +71,33 @@ const KoineBreadcrumbs = ({ items = [], Link, ...props })=>{
|
|
|
70
71
|
if (!items.length) {
|
|
71
72
|
return null;
|
|
72
73
|
}
|
|
73
|
-
return /*#__PURE__*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
|
|
75
|
+
...props,
|
|
76
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Inner, {
|
|
77
|
+
children: items.map((item, idx)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(Item, {
|
|
78
|
+
initial: {
|
|
79
|
+
opacity: 0,
|
|
80
|
+
x: 20
|
|
81
|
+
},
|
|
82
|
+
animate: {
|
|
83
|
+
opacity: 1,
|
|
84
|
+
x: 0,
|
|
85
|
+
transition: {
|
|
86
|
+
delay: idx * 0.2
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
children: [
|
|
90
|
+
item.url && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemLink, {
|
|
91
|
+
as: Link,
|
|
92
|
+
href: item.url,
|
|
93
|
+
children: (0, _titleCase.default)(item.title)
|
|
94
|
+
}),
|
|
95
|
+
!item.url && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemCurrent, {
|
|
96
|
+
children: (0, _titleCase.default)(item.title)
|
|
97
|
+
}),
|
|
98
|
+
idx < items.length - 1 && /*#__PURE__*/ (0, _jsxruntime.jsx)(ItemSeparator, {})
|
|
99
|
+
]
|
|
100
|
+
}, idx))
|
|
101
|
+
})
|
|
102
|
+
});
|
|
90
103
|
};
|