@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.
Files changed (216) hide show
  1. package/package.json +11 -11
  2. package/Alert/Alert.js +0 -33
  3. package/Alert/Alert.stories.js +0 -39
  4. package/Alert/index.js +0 -6
  5. package/Animations/Reveal.js +0 -53
  6. package/Animations/Underline.js +0 -26
  7. package/Animations/index.js +0 -8
  8. package/Animations/useReveal.js +0 -83
  9. package/Autocomplete/AutocompleteDownshift.js +0 -167
  10. package/Autocomplete/AutocompleteDownshiftMultiselect.js +0 -362
  11. package/Autocomplete/AutocompleteMui.js +0 -183
  12. package/Autocomplete/AutocompleteReach.js +0 -121
  13. package/Autocomplete/components.js +0 -132
  14. package/Autocomplete/helpers.js +0 -34
  15. package/Autocomplete/index.js +0 -15
  16. package/Bg/BgColor.js +0 -64
  17. package/Bg/BgPhoto.js +0 -82
  18. package/Bg/BgSvg.js +0 -31
  19. package/Bg/index.js +0 -8
  20. package/Breadcrumbs/Breadcrumbs.js +0 -103
  21. package/Breadcrumbs/index.js +0 -6
  22. package/Buttons/Button.js +0 -106
  23. package/Buttons/ButtonComposite.js +0 -116
  24. package/Buttons/ButtonFab.js +0 -27
  25. package/Buttons/ButtonLink.js +0 -29
  26. package/Buttons/IconButton.js +0 -41
  27. package/Buttons/index.js +0 -10
  28. package/Calendar/CalendarDaygridCell.js +0 -105
  29. package/Calendar/CalendarDaygridNav.js +0 -63
  30. package/Calendar/CalendarDaygridTable.js +0 -126
  31. package/Calendar/CalendarLegend.js +0 -39
  32. package/Calendar/calendar-api-google.js +0 -110
  33. package/Calendar/index.js +0 -11
  34. package/Calendar/types.js +0 -4
  35. package/Calendar/useCalendar.js +0 -235
  36. package/Calendar/utils.js +0 -252
  37. package/Carousel/Carousel.js +0 -387
  38. package/Carousel/CarouselCss.js +0 -64
  39. package/Carousel/index.js +0 -6
  40. package/Collapsable/Collapsable.js +0 -11
  41. package/Collapsable/CollapsableReach.js +0 -251
  42. package/Collapsable/index.js +0 -7
  43. package/Debug/Debug.js +0 -34
  44. package/Debug/index.js +0 -6
  45. package/Details/Details.js +0 -117
  46. package/Details/Details.stories.js +0 -39
  47. package/Details/index.js +0 -6
  48. package/Dialog/DialogMui.js +0 -143
  49. package/Dialog/DialogMui.stories.js +0 -38
  50. package/Dialog/css/bare.js +0 -55
  51. package/Dialog/css/index.stories.js +0 -93
  52. package/Dialog/index.js +0 -11
  53. package/Dialog/m/bare.js +0 -125
  54. package/Dialog/m/basic.js +0 -50
  55. package/Dialog/m/index.js +0 -14
  56. package/Dialog/sc/bare.js +0 -83
  57. package/Dialog/sc/framer.js +0 -26
  58. package/Dialog/sc/framerMaterial.js +0 -26
  59. package/Dialog/sc/index.stories.js +0 -75
  60. package/Dialog/sc/material.js +0 -78
  61. package/Dialog/tw/bare.js +0 -55
  62. package/Dialog/tw/elegant.js +0 -54
  63. package/Dialog/tw/framer.js +0 -26
  64. package/Dialog/tw/framerMaterial.js +0 -26
  65. package/Dialog/tw/index.stories.js +0 -113
  66. package/Dialog/tw/material.js +0 -54
  67. package/Editor/Editor--tiptap.js +0 -72
  68. package/Editor/components.js +0 -59
  69. package/Editor/index.js +0 -6
  70. package/FaviconTags.js +0 -73
  71. package/Form/Form.js +0 -130
  72. package/Form/index.js +0 -6
  73. package/Form/sc/bare.js +0 -55
  74. package/Forms/Checkbox/Checkbox.js +0 -62
  75. package/Forms/Checkbox/index.js +0 -6
  76. package/Forms/Feedback/Feedback.js +0 -25
  77. package/Forms/Feedback/index.js +0 -6
  78. package/Forms/Field/Field.js +0 -75
  79. package/Forms/Field/FieldControl.js +0 -69
  80. package/Forms/Field/FieldHint.js +0 -17
  81. package/Forms/Field/index.js +0 -7
  82. package/Forms/Input/Input.js +0 -67
  83. package/Forms/Input/index.js +0 -6
  84. package/Forms/InputGroup/InputGroup.js +0 -85
  85. package/Forms/InputGroup/index.js +0 -6
  86. package/Forms/Label/Label.js +0 -46
  87. package/Forms/Label/index.js +0 -6
  88. package/Forms/Password/Password.js +0 -72
  89. package/Forms/Password/index.js +0 -6
  90. package/Forms/Radio/Radio.js +0 -68
  91. package/Forms/Radio/index.js +0 -6
  92. package/Forms/Switch/Switch.js +0 -80
  93. package/Forms/Switch/index.js +0 -6
  94. package/Forms/Textarea/Textarea.js +0 -45
  95. package/Forms/Textarea/TextareaRich.js +0 -58
  96. package/Forms/Textarea/index.js +0 -7
  97. package/Forms/Toggle/Toggle-tailwind.js +0 -99
  98. package/Forms/Toggle/Toggle.js +0 -175
  99. package/Forms/Toggle/index.js +0 -6
  100. package/Forms/Toggle/useToggle-tailwind.js +0 -202
  101. package/Forms/Toggle/useToggle.js +0 -145
  102. package/Forms/antispam.js +0 -59
  103. package/Forms/helpers.js +0 -72
  104. package/Forms/index.js +0 -19
  105. package/Forms/styles.js +0 -94
  106. package/Gauge/Gauge.js +0 -111
  107. package/Grid/Grid.js +0 -106
  108. package/Grid/index.js +0 -6
  109. package/Hamburger/Hamburger.js +0 -90
  110. package/Hamburger/index.js +0 -6
  111. package/Header/index.js +0 -6
  112. package/Header/useHeader.js +0 -54
  113. package/Hidden/Hidden.js +0 -21
  114. package/Hidden/index.js +0 -6
  115. package/Img/index.js +0 -6
  116. package/Img/sc/bare.js +0 -43
  117. package/Img/types.js +0 -6
  118. package/Link/Link.js +0 -13
  119. package/Link/LinkBlank.js +0 -52
  120. package/Link/index.js +0 -7
  121. package/Menu/Menu.js +0 -22
  122. package/Menu/MenuMui.js +0 -165
  123. package/Menu/index.js +0 -6
  124. package/MenuItem/MenuItem.js +0 -31
  125. package/MenuItem/MenuItemMui.js +0 -32
  126. package/MenuItem/index.js +0 -6
  127. package/MenuItem/useMenuItem.js +0 -96
  128. package/Meta/Meta.js +0 -26
  129. package/Meta/index.js +0 -12
  130. package/NoJs/NoJs.js +0 -28
  131. package/NoJs/index.js +0 -12
  132. package/Pagination/PaginationNav.js +0 -126
  133. package/Pagination/PaginationResults.js +0 -45
  134. package/Pagination/index.js +0 -7
  135. package/Pill/Pill.js +0 -62
  136. package/Pill/index.js +0 -6
  137. package/Progress/ProgressCircular.js +0 -62
  138. package/Progress/ProgressLinear.js +0 -53
  139. package/Progress/ProgressOverlay.js +0 -75
  140. package/Progress/index.js +0 -8
  141. package/Rating/Rating.js +0 -188
  142. package/Rating/index.js +0 -85
  143. package/Select/SelectDownshift.js +0 -47
  144. package/Select/components.js +0 -44
  145. package/Select/index.js +0 -13
  146. package/Sidebar/Sidebar.js +0 -74
  147. package/Sidebar/index.js +0 -6
  148. package/Spacing/Spacing.js +0 -55
  149. package/Spacing/index.js +0 -6
  150. package/Sticky/Sticky.js +0 -228
  151. package/Sticky/StickyCss.js +0 -20
  152. package/Sticky/index.js +0 -19
  153. package/Tabs/TabsMui.js +0 -91
  154. package/Tabs/TabsMui.stories.js +0 -38
  155. package/Tabs/index.js +0 -6
  156. package/Tabs/sc/bare.js +0 -86
  157. package/Tabs/sc/index.stories.js +0 -1
  158. package/Tabs/tw/bare.js +0 -45
  159. package/Tabs/tw/index.stories.js +0 -46
  160. package/Tabs/tw/material.js +0 -44
  161. package/Tabs/useTabs.js +0 -66
  162. package/Typography/CopyPasteVisible.js +0 -17
  163. package/Typography/Native.js +0 -90
  164. package/Typography/ReadMore.js +0 -125
  165. package/Typography/TextLoop.js +0 -108
  166. package/Typography/TypeStairs.js +0 -71
  167. package/Typography/index.js +0 -10
  168. package/css/index.js +0 -33
  169. package/helpers/classed.js +0 -66
  170. package/helpers/classed.stories.js +0 -140
  171. package/helpers/createUseMediaQueryWidth.js +0 -193
  172. package/helpers/extend-component.js +0 -32
  173. package/helpers/index.js +0 -9
  174. package/helpers/mergeRefs.js +0 -30
  175. package/hooks/index.js +0 -92
  176. package/hooks/types.js +0 -6
  177. package/hooks/useAsyncFn.js +0 -56
  178. package/hooks/useDateLocale.js +0 -51
  179. package/hooks/useFirstMountState.js +0 -28
  180. package/hooks/useFixedOffset.js +0 -67
  181. package/hooks/useFocus.js +0 -30
  182. package/hooks/useInterval.js +0 -44
  183. package/hooks/useIsomorphicLayoutEffect.js +0 -23
  184. package/hooks/useKeyUp.js +0 -40
  185. package/hooks/useMeasure.js +0 -189
  186. package/hooks/useMountedState.js +0 -31
  187. package/hooks/useNavigateAway.js +0 -69
  188. package/hooks/usePrevious.js +0 -33
  189. package/hooks/usePreviousRef.js +0 -27
  190. package/hooks/useScrollPosition.js +0 -83
  191. package/hooks/useScrollThreshold.js +0 -52
  192. package/hooks/useScrollTo.js +0 -39
  193. package/hooks/useSmoothScroll.js +0 -49
  194. package/hooks/useSpinDelay.js +0 -59
  195. package/hooks/useTraceUpdate.js +0 -39
  196. package/hooks/useUpdateEffect.js +0 -30
  197. package/hooks/useWindowSize.js +0 -43
  198. package/index.js +0 -10
  199. package/m/MotionProvider.js +0 -27
  200. package/m/index.js +0 -10
  201. package/m/lite.js +0 -12
  202. package/m/max.js +0 -12
  203. package/sc/index.js +0 -49
  204. package/scm/index.js +0 -40
  205. package/shared/index.js +0 -13
  206. package/styles/Body.js +0 -28
  207. package/styles/Global.js +0 -55
  208. package/styles/index.js +0 -142
  209. package/styles/media.js +0 -139
  210. package/styles/spacing.js +0 -70
  211. package/styles/styled.js +0 -58
  212. package/styles/theme--vanilla.js +0 -82
  213. package/styles/theme.js +0 -49
  214. package/tw/index.js +0 -33
  215. package/twm/index.js +0 -33
  216. 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)``;
@@ -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
- }
@@ -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
- };
@@ -1,6 +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("./Breadcrumbs"), exports);
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
- `;