@koine/react 2.0.0-beta.10 → 2.0.0-beta.11
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/package.json +11 -11
- package/Alert/Alert.js +0 -33
- package/Alert/Alert.stories.js +0 -39
- package/Alert/index.js +0 -6
- package/Animations/Reveal.js +0 -53
- package/Animations/Underline.js +0 -26
- package/Animations/index.js +0 -8
- package/Animations/useReveal.js +0 -83
- package/Autocomplete/AutocompleteDownshift.js +0 -167
- package/Autocomplete/AutocompleteDownshiftMultiselect.js +0 -362
- package/Autocomplete/AutocompleteMui.js +0 -183
- package/Autocomplete/AutocompleteReach.js +0 -121
- package/Autocomplete/components.js +0 -132
- package/Autocomplete/helpers.js +0 -34
- package/Autocomplete/index.js +0 -15
- package/Bg/BgColor.js +0 -64
- package/Bg/BgPhoto.js +0 -82
- package/Bg/BgSvg.js +0 -31
- package/Bg/index.js +0 -8
- package/Breadcrumbs/Breadcrumbs.js +0 -103
- package/Breadcrumbs/index.js +0 -6
- package/Buttons/Button.js +0 -106
- package/Buttons/ButtonComposite.js +0 -116
- package/Buttons/ButtonFab.js +0 -27
- package/Buttons/ButtonLink.js +0 -29
- package/Buttons/IconButton.js +0 -41
- package/Buttons/index.js +0 -10
- package/Calendar/CalendarDaygridCell.js +0 -105
- package/Calendar/CalendarDaygridNav.js +0 -63
- package/Calendar/CalendarDaygridTable.js +0 -126
- package/Calendar/CalendarLegend.js +0 -39
- package/Calendar/calendar-api-google.js +0 -110
- package/Calendar/index.js +0 -11
- package/Calendar/types.js +0 -4
- package/Calendar/useCalendar.js +0 -235
- package/Calendar/utils.js +0 -252
- package/Carousel/Carousel.js +0 -387
- package/Carousel/CarouselCss.js +0 -64
- package/Carousel/index.js +0 -6
- package/Collapsable/Collapsable.js +0 -11
- package/Collapsable/CollapsableReach.js +0 -251
- package/Collapsable/index.js +0 -7
- package/Debug/Debug.js +0 -34
- package/Debug/index.js +0 -6
- package/Details/Details.js +0 -117
- package/Details/Details.stories.js +0 -39
- package/Details/index.js +0 -6
- package/Dialog/DialogMui.js +0 -143
- package/Dialog/DialogMui.stories.js +0 -38
- package/Dialog/css/bare.js +0 -55
- package/Dialog/css/index.stories.js +0 -93
- package/Dialog/index.js +0 -11
- package/Dialog/m/bare.js +0 -125
- package/Dialog/m/basic.js +0 -50
- package/Dialog/m/index.js +0 -14
- package/Dialog/sc/bare.js +0 -83
- package/Dialog/sc/framer.js +0 -26
- package/Dialog/sc/framerMaterial.js +0 -26
- package/Dialog/sc/index.stories.js +0 -75
- package/Dialog/sc/material.js +0 -78
- package/Dialog/tw/bare.js +0 -55
- package/Dialog/tw/elegant.js +0 -54
- package/Dialog/tw/framer.js +0 -26
- package/Dialog/tw/framerMaterial.js +0 -26
- package/Dialog/tw/index.stories.js +0 -113
- package/Dialog/tw/material.js +0 -54
- package/Editor/Editor--tiptap.js +0 -72
- package/Editor/components.js +0 -59
- package/Editor/index.js +0 -6
- package/FaviconTags.js +0 -73
- package/Form/Form.js +0 -130
- package/Form/index.js +0 -6
- package/Form/sc/bare.js +0 -55
- package/Forms/Checkbox/Checkbox.js +0 -62
- package/Forms/Checkbox/index.js +0 -6
- package/Forms/Feedback/Feedback.js +0 -25
- package/Forms/Feedback/index.js +0 -6
- package/Forms/Field/Field.js +0 -75
- package/Forms/Field/FieldControl.js +0 -69
- package/Forms/Field/FieldHint.js +0 -17
- package/Forms/Field/index.js +0 -7
- package/Forms/Input/Input.js +0 -67
- package/Forms/Input/index.js +0 -6
- package/Forms/InputGroup/InputGroup.js +0 -85
- package/Forms/InputGroup/index.js +0 -6
- package/Forms/Label/Label.js +0 -46
- package/Forms/Label/index.js +0 -6
- package/Forms/Password/Password.js +0 -72
- package/Forms/Password/index.js +0 -6
- package/Forms/Radio/Radio.js +0 -68
- package/Forms/Radio/index.js +0 -6
- package/Forms/Switch/Switch.js +0 -80
- package/Forms/Switch/index.js +0 -6
- package/Forms/Textarea/Textarea.js +0 -45
- package/Forms/Textarea/TextareaRich.js +0 -58
- package/Forms/Textarea/index.js +0 -7
- package/Forms/Toggle/Toggle-tailwind.js +0 -99
- package/Forms/Toggle/Toggle.js +0 -175
- package/Forms/Toggle/index.js +0 -6
- package/Forms/Toggle/useToggle-tailwind.js +0 -202
- package/Forms/Toggle/useToggle.js +0 -145
- package/Forms/antispam.js +0 -59
- package/Forms/helpers.js +0 -72
- package/Forms/index.js +0 -19
- package/Forms/styles.js +0 -94
- package/Gauge/Gauge.js +0 -111
- package/Grid/Grid.js +0 -106
- package/Grid/index.js +0 -6
- package/Hamburger/Hamburger.js +0 -90
- package/Hamburger/index.js +0 -6
- package/Header/index.js +0 -6
- package/Header/useHeader.js +0 -54
- package/Hidden/Hidden.js +0 -21
- package/Hidden/index.js +0 -6
- package/Img/index.js +0 -6
- package/Img/sc/bare.js +0 -43
- package/Img/types.js +0 -6
- package/Link/Link.js +0 -13
- package/Link/LinkBlank.js +0 -52
- package/Link/index.js +0 -7
- package/Menu/Menu.js +0 -22
- package/Menu/MenuMui.js +0 -165
- package/Menu/index.js +0 -6
- package/MenuItem/MenuItem.js +0 -31
- package/MenuItem/MenuItemMui.js +0 -32
- package/MenuItem/index.js +0 -6
- package/MenuItem/useMenuItem.js +0 -96
- package/Meta/Meta.js +0 -26
- package/Meta/index.js +0 -12
- package/NoJs/NoJs.js +0 -28
- package/NoJs/index.js +0 -12
- package/Pagination/PaginationNav.js +0 -126
- package/Pagination/PaginationResults.js +0 -45
- package/Pagination/index.js +0 -7
- package/Pill/Pill.js +0 -62
- package/Pill/index.js +0 -6
- package/Progress/ProgressCircular.js +0 -62
- package/Progress/ProgressLinear.js +0 -53
- package/Progress/ProgressOverlay.js +0 -75
- package/Progress/index.js +0 -8
- package/Rating/Rating.js +0 -188
- package/Rating/index.js +0 -85
- package/Select/SelectDownshift.js +0 -47
- package/Select/components.js +0 -44
- package/Select/index.js +0 -13
- package/Sidebar/Sidebar.js +0 -74
- package/Sidebar/index.js +0 -6
- package/Spacing/Spacing.js +0 -55
- package/Spacing/index.js +0 -6
- package/Sticky/Sticky.js +0 -228
- package/Sticky/StickyCss.js +0 -20
- package/Sticky/index.js +0 -19
- package/Tabs/TabsMui.js +0 -91
- package/Tabs/TabsMui.stories.js +0 -38
- package/Tabs/index.js +0 -6
- package/Tabs/sc/bare.js +0 -86
- package/Tabs/sc/index.stories.js +0 -1
- package/Tabs/tw/bare.js +0 -45
- package/Tabs/tw/index.stories.js +0 -46
- package/Tabs/tw/material.js +0 -44
- package/Tabs/useTabs.js +0 -66
- package/Typography/CopyPasteVisible.js +0 -17
- package/Typography/Native.js +0 -90
- package/Typography/ReadMore.js +0 -125
- package/Typography/TextLoop.js +0 -108
- package/Typography/TypeStairs.js +0 -71
- package/Typography/index.js +0 -10
- package/css/index.js +0 -33
- package/helpers/classed.js +0 -66
- package/helpers/classed.stories.js +0 -140
- package/helpers/createUseMediaQueryWidth.js +0 -193
- package/helpers/extend-component.js +0 -32
- package/helpers/index.js +0 -9
- package/helpers/mergeRefs.js +0 -30
- package/hooks/index.js +0 -92
- package/hooks/types.js +0 -6
- package/hooks/useAsyncFn.js +0 -56
- package/hooks/useDateLocale.js +0 -51
- package/hooks/useFirstMountState.js +0 -28
- package/hooks/useFixedOffset.js +0 -67
- package/hooks/useFocus.js +0 -30
- package/hooks/useInterval.js +0 -44
- package/hooks/useIsomorphicLayoutEffect.js +0 -23
- package/hooks/useKeyUp.js +0 -40
- package/hooks/useMeasure.js +0 -189
- package/hooks/useMountedState.js +0 -31
- package/hooks/useNavigateAway.js +0 -69
- package/hooks/usePrevious.js +0 -33
- package/hooks/usePreviousRef.js +0 -27
- package/hooks/useScrollPosition.js +0 -83
- package/hooks/useScrollThreshold.js +0 -52
- package/hooks/useScrollTo.js +0 -39
- package/hooks/useSmoothScroll.js +0 -49
- package/hooks/useSpinDelay.js +0 -59
- package/hooks/useTraceUpdate.js +0 -39
- package/hooks/useUpdateEffect.js +0 -30
- package/hooks/useWindowSize.js +0 -43
- package/index.js +0 -10
- package/m/MotionProvider.js +0 -27
- package/m/index.js +0 -10
- package/m/lite.js +0 -12
- package/m/max.js +0 -12
- package/sc/index.js +0 -49
- package/scm/index.js +0 -40
- package/shared/index.js +0 -13
- package/styles/Body.js +0 -28
- package/styles/Global.js +0 -55
- package/styles/index.js +0 -142
- package/styles/media.js +0 -139
- package/styles/spacing.js +0 -70
- package/styles/styled.js +0 -58
- package/styles/theme--vanilla.js +0 -82
- package/styles/theme.js +0 -49
- package/tw/index.js +0 -33
- package/twm/index.js +0 -33
- package/types.js +0 -4
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useScrollThreshold: function() {
|
|
13
|
-
return useScrollThreshold;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _react = require("react");
|
|
21
|
-
const _noop = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/noop"));
|
|
22
|
-
const _listenScroll = /*#__PURE__*/ _interop_require_default._(require("@koine/dom/listenScroll"));
|
|
23
|
-
const useScrollThreshold = (threshold, callback)=>{
|
|
24
|
-
const [isBelow, setIsBelow] = (0, _react.useState)(false);
|
|
25
|
-
const handler = (0, _react.useCallback)(()=>{
|
|
26
|
-
if (threshold) {
|
|
27
|
-
const posY = window.scrollY; // * -1;
|
|
28
|
-
const isAbove = posY < threshold;
|
|
29
|
-
const isBelow = posY > threshold;
|
|
30
|
-
// console.log("useScrollThreshold setIsBelow", isBelow, posY, threshold);
|
|
31
|
-
setIsBelow(isBelow);
|
|
32
|
-
if (callback) callback(isAbove, isBelow);
|
|
33
|
-
}
|
|
34
|
-
}, [
|
|
35
|
-
threshold,
|
|
36
|
-
callback
|
|
37
|
-
]);
|
|
38
|
-
(0, _react.useEffect)(()=>{
|
|
39
|
-
if (threshold) {
|
|
40
|
-
// const listener = listenScrollThrottled(0, handler, 50);
|
|
41
|
-
const listener = (0, _listenScroll.default)(handler);
|
|
42
|
-
handler();
|
|
43
|
-
return listener;
|
|
44
|
-
}
|
|
45
|
-
return _noop.default;
|
|
46
|
-
}, [
|
|
47
|
-
threshold,
|
|
48
|
-
handler
|
|
49
|
-
]);
|
|
50
|
-
return isBelow;
|
|
51
|
-
};
|
|
52
|
-
const _default = useScrollThreshold;
|
package/hooks/useScrollTo.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useScrollTo: function() {
|
|
13
|
-
return useScrollTo;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _isBrowser = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isBrowser"));
|
|
21
|
-
const _useHeader = /*#__PURE__*/ _interop_require_default._(require("../Header/useHeader"));
|
|
22
|
-
function useScrollTo(id = "", offset = 0) {
|
|
23
|
-
const [, , headerHeight] = (0, _useHeader.default)();
|
|
24
|
-
if (!_isBrowser.default) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const headerOffset = headerHeight || 0;
|
|
28
|
-
let element = document.getElementById(id);
|
|
29
|
-
let top = 0;
|
|
30
|
-
if (element && element.offsetParent) {
|
|
31
|
-
do {
|
|
32
|
-
top += element.offsetTop;
|
|
33
|
-
}while (element = element.offsetParent)
|
|
34
|
-
}
|
|
35
|
-
top -= offset;
|
|
36
|
-
top -= headerOffset;
|
|
37
|
-
window.scroll(0, top);
|
|
38
|
-
}
|
|
39
|
-
const _default = useScrollTo;
|
package/hooks/useSmoothScroll.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useSmoothScroll: function() {
|
|
13
|
-
return useSmoothScroll;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _react = require("react");
|
|
21
|
-
const _isNumber = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isNumber"));
|
|
22
|
-
const _getOffsetTopSlim = /*#__PURE__*/ _interop_require_default._(require("@koine/dom/getOffsetTopSlim"));
|
|
23
|
-
const _scrollTo = /*#__PURE__*/ _interop_require_default._(require("@koine/dom/scrollTo"));
|
|
24
|
-
const _useFixedOffset = /*#__PURE__*/ _interop_require_default._(require("./useFixedOffset"));
|
|
25
|
-
function useSmoothScroll(disregardAutomaticFixedOffset) {
|
|
26
|
-
const fixedOffset = (0, _useFixedOffset.default)();
|
|
27
|
-
const scroll = (0, _react.useCallback)((to, customOffset, callback, fallbackTimeout, behavior)=>{
|
|
28
|
-
let top = undefined;
|
|
29
|
-
let toIsElement = false;
|
|
30
|
-
if ((0, _isNumber.default)(to)) {
|
|
31
|
-
top = to;
|
|
32
|
-
} else if (to) {
|
|
33
|
-
const el = document.getElementById(to);
|
|
34
|
-
if (el) {
|
|
35
|
-
top = (0, _getOffsetTopSlim.default)(el) - fixedOffset.current;
|
|
36
|
-
toIsElement = true;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
if ((0, _isNumber.default)(top)) {
|
|
40
|
-
top = top + (customOffset || 0) + (disregardAutomaticFixedOffset || toIsElement ? 0 : fixedOffset.current);
|
|
41
|
-
(0, _scrollTo.default)(top, callback, fallbackTimeout, behavior);
|
|
42
|
-
}
|
|
43
|
-
}, [
|
|
44
|
-
disregardAutomaticFixedOffset,
|
|
45
|
-
fixedOffset
|
|
46
|
-
]);
|
|
47
|
-
return scroll;
|
|
48
|
-
}
|
|
49
|
-
const _default = useSmoothScroll;
|
package/hooks/useSpinDelay.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useSpinDelay: function() {
|
|
13
|
-
return useSpinDelay;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _react = require("react");
|
|
20
|
-
var State;
|
|
21
|
-
(function(State) {
|
|
22
|
-
State[State["IDLE"] = 0] = "IDLE";
|
|
23
|
-
State[State["DELAY"] = 1] = "DELAY";
|
|
24
|
-
State[State["DISPLAY"] = 2] = "DISPLAY";
|
|
25
|
-
State[State["EXPIRE"] = 3] = "EXPIRE";
|
|
26
|
-
})(State || (State = {}));
|
|
27
|
-
function useSpinDelay(loading, delay = 500, minDuration = 200) {
|
|
28
|
-
const [state, setState] = (0, _react.useState)(0);
|
|
29
|
-
const timeout = (0, _react.useRef)();
|
|
30
|
-
(0, _react.useEffect)(()=>{
|
|
31
|
-
if (loading && state === 0) {
|
|
32
|
-
clearTimeout(timeout.current);
|
|
33
|
-
timeout.current = setTimeout(()=>{
|
|
34
|
-
if (!loading) {
|
|
35
|
-
return setState(0);
|
|
36
|
-
}
|
|
37
|
-
timeout.current = setTimeout(()=>{
|
|
38
|
-
setState(3);
|
|
39
|
-
}, minDuration);
|
|
40
|
-
setState(2);
|
|
41
|
-
}, delay);
|
|
42
|
-
setState(1);
|
|
43
|
-
}
|
|
44
|
-
if (!loading && state !== 2) {
|
|
45
|
-
clearTimeout(timeout.current);
|
|
46
|
-
setState(0);
|
|
47
|
-
}
|
|
48
|
-
}, [
|
|
49
|
-
loading,
|
|
50
|
-
state,
|
|
51
|
-
delay,
|
|
52
|
-
minDuration
|
|
53
|
-
]);
|
|
54
|
-
(0, _react.useEffect)(()=>{
|
|
55
|
-
return ()=>clearTimeout(timeout.current);
|
|
56
|
-
}, []);
|
|
57
|
-
return state === 2 || state === 3;
|
|
58
|
-
}
|
|
59
|
-
const _default = useSpinDelay;
|
package/hooks/useTraceUpdate.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useTraceUpdate: function() {
|
|
13
|
-
return useTraceUpdate;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _react = require("react");
|
|
20
|
-
function useTraceUpdate(props) {
|
|
21
|
-
const prev = (0, _react.useRef)(props);
|
|
22
|
-
(0, _react.useEffect)(()=>{
|
|
23
|
-
const changedProps = Object.entries(props).reduce((ps, [k, v])=>{
|
|
24
|
-
if (prev.current[k] !== v) {
|
|
25
|
-
// @ts-expect-error Does not matter here...
|
|
26
|
-
ps[k] = [
|
|
27
|
-
prev.current[k],
|
|
28
|
-
v
|
|
29
|
-
];
|
|
30
|
-
}
|
|
31
|
-
return ps;
|
|
32
|
-
}, {});
|
|
33
|
-
if (Object.keys(changedProps).length > 0) {
|
|
34
|
-
console.info("[@koine/react:useTraceUpdate] changed props:", changedProps);
|
|
35
|
-
}
|
|
36
|
-
prev.current = props;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const _default = useTraceUpdate;
|
package/hooks/useUpdateEffect.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useUpdateEffect: function() {
|
|
13
|
-
return useUpdateEffect;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _react = require("react");
|
|
20
|
-
const _useFirstMountState = require("./useFirstMountState");
|
|
21
|
-
const useUpdateEffect = (effect, deps)=>{
|
|
22
|
-
const isFirstMount = (0, _useFirstMountState.useFirstMountState)();
|
|
23
|
-
(0, _react.useEffect)(()=>{
|
|
24
|
-
if (!isFirstMount) {
|
|
25
|
-
return effect();
|
|
26
|
-
}
|
|
27
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
28
|
-
}, deps);
|
|
29
|
-
};
|
|
30
|
-
const _default = useUpdateEffect;
|
package/hooks/useWindowSize.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
useWindowSize: function() {
|
|
13
|
-
return useWindowSize;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _react = require("react");
|
|
21
|
-
const _listenResize = /*#__PURE__*/ _interop_require_default._(require("@koine/dom/listenResize"));
|
|
22
|
-
const _listenResizeDebounced = /*#__PURE__*/ _interop_require_default._(require("@koine/dom/listenResizeDebounced"));
|
|
23
|
-
function useWindowSize(wait, immediate) {
|
|
24
|
-
const [width, widthSet] = (0, _react.useState)(0);
|
|
25
|
-
const [height, heightSet] = (0, _react.useState)(0);
|
|
26
|
-
(0, _react.useEffect)(()=>{
|
|
27
|
-
function updateSize() {
|
|
28
|
-
widthSet(window.innerWidth);
|
|
29
|
-
heightSet(window.innerHeight);
|
|
30
|
-
}
|
|
31
|
-
const listener = wait ? (0, _listenResizeDebounced.default)(0, updateSize, wait, immediate) : (0, _listenResize.default)(updateSize);
|
|
32
|
-
updateSize();
|
|
33
|
-
return listener;
|
|
34
|
-
}, [
|
|
35
|
-
wait,
|
|
36
|
-
immediate
|
|
37
|
-
]);
|
|
38
|
-
return [
|
|
39
|
-
width,
|
|
40
|
-
height
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
const _default = useWindowSize;
|
package/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
-
_export_star._(require("./shared"), exports);
|
|
7
|
-
// we need to alias the star export otherwise the named exports would collide
|
|
8
|
-
// export * as css from "./css";
|
|
9
|
-
// export * as sc from "./sc";
|
|
10
|
-
// export * as tw from "./tw";
|
package/m/MotionProvider.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
MotionProvider: function() {
|
|
13
|
-
return MotionProvider;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _framermotion = require("framer-motion");
|
|
21
|
-
const MotionProvider = ({ features, children })=>{
|
|
22
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_framermotion.LazyMotion, {
|
|
23
|
-
features: features,
|
|
24
|
-
children: children
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const _default = MotionProvider;
|
package/m/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* In this file we only have exports related to `framer-motion`
|
|
5
|
-
*/ "use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7
|
-
value: true
|
|
8
|
-
});
|
|
9
|
-
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
|
-
_export_star._(require("./MotionProvider"), exports);
|
package/m/lite.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _framermotion = require("framer-motion");
|
|
12
|
-
const _default = _framermotion.domAnimation;
|
package/m/max.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _framermotion = require("framer-motion");
|
|
12
|
-
const _default = _framermotion.domMax;
|
package/sc/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
KoineDialog: function() {
|
|
13
|
-
return _bare.KoineDialog;
|
|
14
|
-
},
|
|
15
|
-
KoineForm: function() {
|
|
16
|
-
return _bare1.KoineForm;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _export_star = require("@swc/helpers/_/_export_star");
|
|
20
|
-
_export_star._(require("../shared"), exports);
|
|
21
|
-
_export_star._(require("../Alert"), exports);
|
|
22
|
-
_export_star._(require("../Animations"), exports);
|
|
23
|
-
_export_star._(require("../Autocomplete"), exports);
|
|
24
|
-
_export_star._(require("../Bg"), exports);
|
|
25
|
-
_export_star._(require("../Breadcrumbs"), exports);
|
|
26
|
-
_export_star._(require("../Buttons"), exports);
|
|
27
|
-
_export_star._(require("../Carousel"), exports);
|
|
28
|
-
_export_star._(require("../Collapsable"), exports);
|
|
29
|
-
_export_star._(require("../Debug"), exports);
|
|
30
|
-
const _bare = require("../Dialog/sc/bare");
|
|
31
|
-
const _bare1 = require("../Form/sc/bare");
|
|
32
|
-
_export_star._(require("../Forms"), exports);
|
|
33
|
-
_export_star._(require("../Grid"), exports);
|
|
34
|
-
_export_star._(require("../Hamburger"), exports);
|
|
35
|
-
_export_star._(require("../Header"), exports);
|
|
36
|
-
_export_star._(require("../Hidden"), exports);
|
|
37
|
-
_export_star._(require("../Img"), exports);
|
|
38
|
-
_export_star._(require("../Link"), exports);
|
|
39
|
-
_export_star._(require("../MenuItem"), exports);
|
|
40
|
-
_export_star._(require("../Pagination"), exports);
|
|
41
|
-
_export_star._(require("../Pill"), exports);
|
|
42
|
-
_export_star._(require("../Progress"), exports);
|
|
43
|
-
_export_star._(require("../Rating"), exports);
|
|
44
|
-
_export_star._(require("../Sidebar"), exports);
|
|
45
|
-
_export_star._(require("../Spacing"), exports);
|
|
46
|
-
_export_star._(require("../Sticky"), exports);
|
|
47
|
-
_export_star._(require("../styles"), exports);
|
|
48
|
-
_export_star._(require("../Tabs"), exports);
|
|
49
|
-
_export_star._(require("../Typography"), exports);
|
package/scm/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "KoineDialog", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _framer.KoineDialog;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _export_star = require("@swc/helpers/_/_export_star");
|
|
12
|
-
_export_star._(require("../shared"), exports);
|
|
13
|
-
_export_star._(require("../Alert"), exports);
|
|
14
|
-
_export_star._(require("../Animations"), exports);
|
|
15
|
-
_export_star._(require("../Autocomplete"), exports);
|
|
16
|
-
_export_star._(require("../Bg"), exports);
|
|
17
|
-
_export_star._(require("../Breadcrumbs"), exports);
|
|
18
|
-
_export_star._(require("../Buttons"), exports);
|
|
19
|
-
_export_star._(require("../Carousel"), exports);
|
|
20
|
-
_export_star._(require("../Collapsable"), exports);
|
|
21
|
-
_export_star._(require("../Debug"), exports);
|
|
22
|
-
const _framer = require("../Dialog/sc/framer");
|
|
23
|
-
_export_star._(require("../Forms"), exports);
|
|
24
|
-
_export_star._(require("../Grid"), exports);
|
|
25
|
-
_export_star._(require("../Hamburger"), exports);
|
|
26
|
-
_export_star._(require("../Header"), exports);
|
|
27
|
-
_export_star._(require("../Hidden"), exports);
|
|
28
|
-
_export_star._(require("../Img"), exports);
|
|
29
|
-
_export_star._(require("../Link"), exports);
|
|
30
|
-
_export_star._(require("../MenuItem"), exports);
|
|
31
|
-
_export_star._(require("../Pagination"), exports);
|
|
32
|
-
_export_star._(require("../Pill"), exports);
|
|
33
|
-
_export_star._(require("../Progress"), exports);
|
|
34
|
-
_export_star._(require("../Rating"), exports);
|
|
35
|
-
_export_star._(require("../Sidebar"), exports);
|
|
36
|
-
_export_star._(require("../Spacing"), exports);
|
|
37
|
-
_export_star._(require("../Sticky"), exports);
|
|
38
|
-
_export_star._(require("../styles"), exports);
|
|
39
|
-
_export_star._(require("../Tabs"), exports);
|
|
40
|
-
_export_star._(require("../Typography"), exports);
|
package/shared/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
-
_export_star._(require("../Calendar"), exports);
|
|
7
|
-
_export_star._(require("../Dialog"), exports);
|
|
8
|
-
_export_star._(require("../FaviconTags"), exports);
|
|
9
|
-
_export_star._(require("../helpers"), exports);
|
|
10
|
-
_export_star._(require("../hooks"), exports);
|
|
11
|
-
_export_star._(require("../Meta"), exports);
|
|
12
|
-
_export_star._(require("../NoJs"), exports);
|
|
13
|
-
_export_star._(require("../types"), exports);
|
package/styles/Body.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
BodyRoot: function() {
|
|
13
|
-
return BodyRoot;
|
|
14
|
-
},
|
|
15
|
-
BodyMain: function() {
|
|
16
|
-
return BodyMain;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
21
|
-
const BodyRoot = _styledcomponents.default.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
min-height: 100vh;
|
|
25
|
-
`;
|
|
26
|
-
const BodyMain = _styledcomponents.default.main`
|
|
27
|
-
flex: 1;
|
|
28
|
-
`;
|
package/styles/Global.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
stylesGlobal: function() {
|
|
13
|
-
return stylesGlobal;
|
|
14
|
-
},
|
|
15
|
-
StylesGlobal: function() {
|
|
16
|
-
return StylesGlobal;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _styledcomponents = require("styled-components");
|
|
20
|
-
const stylesGlobal = `
|
|
21
|
-
body {
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0;
|
|
24
|
-
overflow-x: hidden;
|
|
25
|
-
overflow-y: scroll;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body,
|
|
29
|
-
button,
|
|
30
|
-
input,
|
|
31
|
-
textarea,
|
|
32
|
-
select,
|
|
33
|
-
select:-webkit-autofill::first-line,
|
|
34
|
-
input:-webkit-autofill::first-line {
|
|
35
|
-
font-family: var(--font), -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
36
|
-
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
|
|
37
|
-
sans-serif;
|
|
38
|
-
font-size: var(--fontSize);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
html {
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
44
|
-
scroll-behavior: smooth;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
*,
|
|
49
|
-
*:before,
|
|
50
|
-
*:after {
|
|
51
|
-
box-sizing: inherit;
|
|
52
|
-
-webkit-tap-highlight-color: transparent;
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
const StylesGlobal = (0, _styledcomponents.createGlobalStyle)`${stylesGlobal}`;
|