@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,132 +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
|
-
AutocompleteRoot: function() {
|
|
13
|
-
return AutocompleteRoot;
|
|
14
|
-
},
|
|
15
|
-
AutocompleteLabel: function() {
|
|
16
|
-
return AutocompleteLabel;
|
|
17
|
-
},
|
|
18
|
-
AutocompleteWrap: function() {
|
|
19
|
-
return AutocompleteWrap;
|
|
20
|
-
},
|
|
21
|
-
AutocompleteInner: function() {
|
|
22
|
-
return AutocompleteInner;
|
|
23
|
-
},
|
|
24
|
-
AutocompleteItem: function() {
|
|
25
|
-
return AutocompleteItem;
|
|
26
|
-
},
|
|
27
|
-
AutocompleteItemLabel: function() {
|
|
28
|
-
return AutocompleteItemLabel;
|
|
29
|
-
},
|
|
30
|
-
AutocompleteItemRemove: function() {
|
|
31
|
-
return AutocompleteItemRemove;
|
|
32
|
-
},
|
|
33
|
-
AutocompleteInputWrap: function() {
|
|
34
|
-
return AutocompleteInputWrap;
|
|
35
|
-
},
|
|
36
|
-
AutocompleteInput: function() {
|
|
37
|
-
return AutocompleteInput;
|
|
38
|
-
},
|
|
39
|
-
AutocompleteInputArrow: function() {
|
|
40
|
-
return AutocompleteInputArrow;
|
|
41
|
-
},
|
|
42
|
-
AutocompleteMenu: function() {
|
|
43
|
-
return AutocompleteMenu;
|
|
44
|
-
},
|
|
45
|
-
AutocompleteMenuItem: function() {
|
|
46
|
-
return AutocompleteMenuItem;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
50
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
51
|
-
const _Buttons = require("../Buttons");
|
|
52
|
-
const _Input = require("../Forms/Input/Input");
|
|
53
|
-
const _Label = require("../Forms/Label/Label");
|
|
54
|
-
const _styles = require("../Forms/styles");
|
|
55
|
-
const _Menu = require("../Menu/Menu");
|
|
56
|
-
const _MenuItem = require("../MenuItem/MenuItem");
|
|
57
|
-
const _components = require("../Select/components");
|
|
58
|
-
const _styled = require("../styles/styled");
|
|
59
|
-
const AUTOCOMPLETE_ITEM_GUTTER = 3;
|
|
60
|
-
/**
|
|
61
|
-
* Space between one selected item and the other
|
|
62
|
-
*/ const AUTOCOMPLETE_ITEM_SPACER = 6;
|
|
63
|
-
const AUTOCOMPLETE_ITEM_REMOVE_WIDTH = 20;
|
|
64
|
-
const AutocompleteRoot = _styledcomponents.default.div`
|
|
65
|
-
position: relative;
|
|
66
|
-
`;
|
|
67
|
-
const AutocompleteLabel = (0, _styledcomponents.default)(_Label.Label)``;
|
|
68
|
-
const AutocompleteWrap = (0, _styledcomponents.default)(_Input.InputWrap)`
|
|
69
|
-
${_styles.inputReset}
|
|
70
|
-
`;
|
|
71
|
-
const AutocompleteInner = (0, _styledcomponents.default)(_Input.InputMain)`
|
|
72
|
-
display: inline-flex;
|
|
73
|
-
flex-wrap: wrap;
|
|
74
|
-
margin: -${AUTOCOMPLETE_ITEM_SPACER}px;
|
|
75
|
-
margin-right: 0;
|
|
76
|
-
`;
|
|
77
|
-
const AutocompleteItem = _styledcomponents.default.span`
|
|
78
|
-
position: relative;
|
|
79
|
-
display: inline-flex;
|
|
80
|
-
margin: ${AUTOCOMPLETE_ITEM_GUTTER}px;
|
|
81
|
-
max-width: calc(100% - 6px);
|
|
82
|
-
user-select: none;
|
|
83
|
-
align-items: center;
|
|
84
|
-
padding: 0 ${AUTOCOMPLETE_ITEM_REMOVE_WIDTH}px 0 ${AUTOCOMPLETE_ITEM_GUTTER}px;
|
|
85
|
-
font-size: 80%;
|
|
86
|
-
background: var(--accent400);
|
|
87
|
-
|
|
88
|
-
&:hover {
|
|
89
|
-
background: var(--accent300);
|
|
90
|
-
color: white;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:focus {
|
|
94
|
-
outline: 0px;
|
|
95
|
-
background: var(--grey700);
|
|
96
|
-
}
|
|
97
|
-
`;
|
|
98
|
-
const AutocompleteItemLabel = _styledcomponents.default.span`
|
|
99
|
-
padding: 0 ${AUTOCOMPLETE_ITEM_GUTTER}px;
|
|
100
|
-
${_styled.ellipsis}
|
|
101
|
-
`;
|
|
102
|
-
const AutocompleteItemRemove = _styledcomponents.default.span`
|
|
103
|
-
${_Buttons.btnStyleReset}
|
|
104
|
-
position: absolute;
|
|
105
|
-
top: 0;
|
|
106
|
-
right: 0;
|
|
107
|
-
width: ${AUTOCOMPLETE_ITEM_REMOVE_WIDTH}px;
|
|
108
|
-
border: 0;
|
|
109
|
-
height: 100%;
|
|
110
|
-
color: inherit;
|
|
111
|
-
line-height: 1;
|
|
112
|
-
`;
|
|
113
|
-
const AutocompleteInputWrap = _styledcomponents.default.div`
|
|
114
|
-
display: flex;
|
|
115
|
-
flex: 1;
|
|
116
|
-
`;
|
|
117
|
-
const AutocompleteInput = _styledcomponents.default.input`
|
|
118
|
-
flex-grow: 1;
|
|
119
|
-
width: 0;
|
|
120
|
-
min-width: 30px;
|
|
121
|
-
border: 0;
|
|
122
|
-
padding: 0 ${AUTOCOMPLETE_ITEM_SPACER}px;
|
|
123
|
-
text-overflow: ellipsis;
|
|
124
|
-
background: transparent;
|
|
125
|
-
|
|
126
|
-
&:focus {
|
|
127
|
-
outline: none;
|
|
128
|
-
}
|
|
129
|
-
`;
|
|
130
|
-
const AutocompleteInputArrow = (0, _styledcomponents.default)(_components.SelectArrow)``;
|
|
131
|
-
const AutocompleteMenu = (0, _styledcomponents.default)(_Menu.Menu)``;
|
|
132
|
-
const AutocompleteMenuItem = (0, _styledcomponents.default)(_MenuItem.MenuItem)``;
|
package/Autocomplete/helpers.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "normaliseAutocompleteValue", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return normaliseAutocompleteValue;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
-
const _isArray = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isArray"));
|
|
13
|
-
const _isString = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isString"));
|
|
14
|
-
function normaliseAutocompleteValue(value, asArray) {
|
|
15
|
-
if (!value) {
|
|
16
|
-
return asArray ? [
|
|
17
|
-
""
|
|
18
|
-
] : "";
|
|
19
|
-
}
|
|
20
|
-
if ((0, _isString.default)(value)) {
|
|
21
|
-
return asArray ? [
|
|
22
|
-
value
|
|
23
|
-
] : value;
|
|
24
|
-
}
|
|
25
|
-
if ((0, _isArray.default)(value)) {
|
|
26
|
-
const values = value.map((valueItem)=>{
|
|
27
|
-
return (0, _isString.default)(valueItem) ? valueItem : valueItem.value;
|
|
28
|
-
});
|
|
29
|
-
return asArray ? values : values.join(",");
|
|
30
|
-
}
|
|
31
|
-
return asArray ? [
|
|
32
|
-
value.value
|
|
33
|
-
] : value.value;
|
|
34
|
-
}
|
package/Autocomplete/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// export type { AutocompleteProps } from "./AutocompleteDownshift";
|
|
2
|
-
// export { Autocomplete } from "./AutocompleteDownshift";
|
|
3
|
-
"use strict";
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "Autocomplete", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return _AutocompleteMui.Autocomplete;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const _AutocompleteMui = require("./AutocompleteMui");
|
|
14
|
-
// export type { AutocompleteProps } from "./AutocompleteReach";
|
|
15
|
-
// export { Autocomplete } from "./AutocompleteReach";
|
package/Bg/BgColor.js
DELETED
|
@@ -1,64 +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
|
-
BgColor: function() {
|
|
13
|
-
return BgColor;
|
|
14
|
-
},
|
|
15
|
-
BgColorSkewed: function() {
|
|
16
|
-
return BgColorSkewed;
|
|
17
|
-
},
|
|
18
|
-
BgContainer: function() {
|
|
19
|
-
return BgContainer;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
25
|
-
const _Grid = require("../Grid");
|
|
26
|
-
const _styles = require("../styles");
|
|
27
|
-
const BgColor = _styledcomponents.default.div`
|
|
28
|
-
background: ${(p)=>p.$bg};
|
|
29
|
-
`;
|
|
30
|
-
const BgColorSkewed = _styledcomponents.default.div`
|
|
31
|
-
position: relative;
|
|
32
|
-
/* overflow: hidden; */
|
|
33
|
-
|
|
34
|
-
&:before {
|
|
35
|
-
z-index: -1;
|
|
36
|
-
content: "";
|
|
37
|
-
${(p)=>`
|
|
38
|
-
${_styles.overlay}
|
|
39
|
-
transform: ${p.$transform};
|
|
40
|
-
background: ${p.$bg};
|
|
41
|
-
`}
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
const BgContainer = ({ color, skewY = 0, rotate = 0, scaleY = 1, scaleX = 1, perspective = 0, ...containerProps })=>{
|
|
45
|
-
let $transform = "";
|
|
46
|
-
if (skewY || rotate) {
|
|
47
|
-
$transform = `perspective(${perspective}vw) rotateY(${rotate}deg) skewY(${skewY}deg) scaleY(${scaleY}) scaleX(${scaleX})`;
|
|
48
|
-
}
|
|
49
|
-
return $transform ? /*#__PURE__*/ (0, _jsxruntime.jsx)(BgColorSkewed, {
|
|
50
|
-
$bg: color,
|
|
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
|
-
});
|
|
64
|
-
};
|
package/Bg/BgPhoto.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "BgPhoto", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return BgPhoto;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
13
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
14
|
-
const _Grid = require("../Grid");
|
|
15
|
-
const _Hidden = require("../Hidden");
|
|
16
|
-
const BgPhotoWrap = (0, _styledcomponents.default)(_Hidden.Hidden)`
|
|
17
|
-
z-index: -10;
|
|
18
|
-
position: fixed;
|
|
19
|
-
top: 0;
|
|
20
|
-
right: 0;
|
|
21
|
-
bottom: 0;
|
|
22
|
-
left: 0;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
background-repeat: no-repeat;
|
|
26
|
-
background-position: top left;
|
|
27
|
-
background-size: contain;
|
|
28
|
-
filter: hue-rotate(-36deg);
|
|
29
|
-
opacity: 0.8;
|
|
30
|
-
`;
|
|
31
|
-
const BgPhotoMask = (0, _styledcomponents.default)(_Grid.Container)`
|
|
32
|
-
position: relative;
|
|
33
|
-
min-height: 100%;
|
|
34
|
-
|
|
35
|
-
&:before {
|
|
36
|
-
content: "";
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 0;
|
|
39
|
-
height: 100%;
|
|
40
|
-
right: calc(100% - ${(p)=>p.$overlap + 2}px);
|
|
41
|
-
width: ${(p)=>{
|
|
42
|
-
const containerSizePx = p.theme.breakpoints[p.containerSize];
|
|
43
|
-
return `calc(((100vw - ${containerSizePx}px) / 2) + ${p.$overlap + 2}px)`;
|
|
44
|
-
}};
|
|
45
|
-
background: linear-gradient(
|
|
46
|
-
90deg,
|
|
47
|
-
rgba(var(--bodyBg-rgb, 0)) 0%,
|
|
48
|
-
rgba(var(--bodyBg-rgb, 1)) 100%
|
|
49
|
-
),
|
|
50
|
-
linear-gradient(
|
|
51
|
-
60deg,
|
|
52
|
-
rgba(var(--bodyBg-rgb, 0)) 0%,
|
|
53
|
-
rgba(var(--bodyBg-rgb, 1)) 70%
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:after {
|
|
58
|
-
content: "";
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: 0;
|
|
61
|
-
height: 100%;
|
|
62
|
-
left: ${(p)=>p.$overlap + 1}px;
|
|
63
|
-
width: 100vw;
|
|
64
|
-
background: var(--bodyBg);
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
67
|
-
const BgPhoto = ({ src, containerSize = "xl", $overlap = 0 })=>{
|
|
68
|
-
const styledProps = {
|
|
69
|
-
containerSize,
|
|
70
|
-
$overlap
|
|
71
|
-
};
|
|
72
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(BgPhotoWrap, {
|
|
73
|
-
style: {
|
|
74
|
-
backgroundImage: `url(${src})`
|
|
75
|
-
},
|
|
76
|
-
$max: "xxl",
|
|
77
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(BgPhotoMask, {
|
|
78
|
-
size: containerSize,
|
|
79
|
-
...styledProps
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
};
|
package/Bg/BgSvg.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "BgSvg", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return BgSvg;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
13
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
|
|
14
|
-
const Root = _styledcomponents.default.svg`
|
|
15
|
-
position: fixed;
|
|
16
|
-
z-index: -2;
|
|
17
|
-
bottom: 0;
|
|
18
|
-
transform: rotate(180deg);
|
|
19
|
-
opacity: 0.9;
|
|
20
|
-
`;
|
|
21
|
-
const BgSvg = ({ color })=>{
|
|
22
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
|
|
23
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
-
viewBox: "0 0 1200 120",
|
|
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
|
-
});
|
|
31
|
-
};
|
package/Bg/index.js
DELETED
|
@@ -1,8 +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("./BgColor"), exports);
|
|
7
|
-
_export_star._(require("./BgPhoto"), exports);
|
|
8
|
-
_export_star._(require("./BgSvg"), exports);
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "KoineBreadcrumbs", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return KoineBreadcrumbs;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
14
|
-
const _framermotion = require("framer-motion");
|
|
15
|
-
const _md = require("react-icons/md");
|
|
16
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard._(require("styled-components"));
|
|
17
|
-
const _titleCase = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/titleCase"));
|
|
18
|
-
const _media = require("../styles/media");
|
|
19
|
-
const LINK_GUTTER_X = 10;
|
|
20
|
-
const Root = _styledcomponents.default.nav`
|
|
21
|
-
display: flex;
|
|
22
|
-
position: relative;
|
|
23
|
-
`;
|
|
24
|
-
const Inner = _styledcomponents.default.div`
|
|
25
|
-
display: flex;
|
|
26
|
-
font-size: 11px;
|
|
27
|
-
color: var(--grey100);
|
|
28
|
-
${_media.min.sm} {
|
|
29
|
-
font-size: 12px;
|
|
30
|
-
}
|
|
31
|
-
${_media.max.lg} {
|
|
32
|
-
max-width: 100%;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
const Item = (0, _styledcomponents.default)(_framermotion.m.div)`
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
/* margin: 0 10px 0 0; */
|
|
41
|
-
|
|
42
|
-
&:first-child {
|
|
43
|
-
margin-left: -${LINK_GUTTER_X / 2}px;
|
|
44
|
-
}
|
|
45
|
-
${_media.min.sm} {
|
|
46
|
-
&:first-child {
|
|
47
|
-
margin-left: -${LINK_GUTTER_X}px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
const itemChild = (0, _styledcomponents.css)`
|
|
52
|
-
display: block;
|
|
53
|
-
padding: 10px ${LINK_GUTTER_X / 2}px;
|
|
54
|
-
|
|
55
|
-
${_media.min.sm} {
|
|
56
|
-
padding: 10px ${LINK_GUTTER_X}px;
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
const ItemLink = _styledcomponents.default.a`
|
|
60
|
-
${itemChild}
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
&:hover {
|
|
63
|
-
text-decoration: underline;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
const ItemCurrent = _styledcomponents.default.span`
|
|
67
|
-
${itemChild}
|
|
68
|
-
`;
|
|
69
|
-
const ItemSeparator = (0, _styledcomponents.default)(_md.MdKeyboardArrowRight)``;
|
|
70
|
-
const KoineBreadcrumbs = ({ items = [], Link, ...props })=>{
|
|
71
|
-
if (!items.length) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
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
|
-
});
|
|
103
|
-
};
|
package/Breadcrumbs/index.js
DELETED
package/Buttons/Button.js
DELETED
|
@@ -1,106 +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
|
-
btnStyleUndo: function() {
|
|
13
|
-
return btnStyleUndo;
|
|
14
|
-
},
|
|
15
|
-
btnStyleReset: function() {
|
|
16
|
-
return btnStyleReset;
|
|
17
|
-
},
|
|
18
|
-
btnStyleBase: function() {
|
|
19
|
-
return btnStyleBase;
|
|
20
|
-
},
|
|
21
|
-
btnStyleContained: function() {
|
|
22
|
-
return btnStyleContained;
|
|
23
|
-
},
|
|
24
|
-
btnStyleOutlined: function() {
|
|
25
|
-
return btnStyleOutlined;
|
|
26
|
-
},
|
|
27
|
-
KoineButton: function() {
|
|
28
|
-
return KoineButton;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
32
|
-
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard._(require("styled-components"));
|
|
33
|
-
const _styled = require("../styles/styled");
|
|
34
|
-
const btnStyleUndo = (0, _styledcomponents.css)`
|
|
35
|
-
appearance: none;
|
|
36
|
-
-webkit-appearance: none;
|
|
37
|
-
-webkit-touch-callout: none;
|
|
38
|
-
user-select: none;
|
|
39
|
-
touch-action: manipulation;
|
|
40
|
-
outline: 0px;
|
|
41
|
-
color: var(--bodyColor);
|
|
42
|
-
`;
|
|
43
|
-
const btnStyleReset = (0, _styledcomponents.css)`
|
|
44
|
-
display: inline-flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
background: transparent;
|
|
48
|
-
border-width: 1px;
|
|
49
|
-
border-style: solid;
|
|
50
|
-
border-color: transparent;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
${btnStyleUndo}
|
|
53
|
-
|
|
54
|
-
&[disabled] {
|
|
55
|
-
cursor: default;
|
|
56
|
-
opacity: 0.7;
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
const btnStyleBase = (0, _styledcomponents.css)`
|
|
60
|
-
${btnStyleReset}
|
|
61
|
-
|
|
62
|
-
min-width: ${(p)=>p.$noGutter ? "0" : "150px"};
|
|
63
|
-
padding: ${(p)=>p.$noGutter ? "0" : "10px 30px"};
|
|
64
|
-
border-radius: 0;
|
|
65
|
-
text-align: center;
|
|
66
|
-
text-transform: uppercase;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
${(p)=>p.$block && `width: 100%; display: flex;`}
|
|
69
|
-
|
|
70
|
-
&:focus,
|
|
71
|
-
&:active,
|
|
72
|
-
&:visited {
|
|
73
|
-
${_styled.stateFocus}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* This targets icons within a button */
|
|
77
|
-
& svg {
|
|
78
|
-
margin: 0 1em 0 0;
|
|
79
|
-
font-size: 1.25em;
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
const btnStyleContained = (0, _styledcomponents.css)`
|
|
83
|
-
color: white;
|
|
84
|
-
background: var(--accent200);
|
|
85
|
-
border-color: var(--accent200);
|
|
86
|
-
|
|
87
|
-
&:hover:not([disabled]) {
|
|
88
|
-
background: var(--accent300);
|
|
89
|
-
border-color: var(--accent300);
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
const btnStyleOutlined = (0, _styledcomponents.css)`
|
|
93
|
-
color: var(--accent200);
|
|
94
|
-
border-color: var(--accent200);
|
|
95
|
-
|
|
96
|
-
&:hover:not([disabled]) {
|
|
97
|
-
background: var(--accent300);
|
|
98
|
-
border-color: var(--accent300);
|
|
99
|
-
color: white;
|
|
100
|
-
}
|
|
101
|
-
`;
|
|
102
|
-
const KoineButton = _styledcomponents.default.button`
|
|
103
|
-
${btnStyleBase}
|
|
104
|
-
${(p)=>p.$variant === "outlined" && btnStyleOutlined}
|
|
105
|
-
${(p)=>p.$variant === "contained" && btnStyleContained}
|
|
106
|
-
`;
|