@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,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
- Root: function() {
13
- return Root;
14
- },
15
- Backdrop: function() {
16
- return Backdrop;
17
- },
18
- Container: function() {
19
- return Container;
20
- },
21
- Paper: function() {
22
- return Paper;
23
- },
24
- Close: function() {
25
- return Close;
26
- },
27
- Header: function() {
28
- return Header;
29
- },
30
- Body: function() {
31
- return Body;
32
- },
33
- KoineDialog: function() {
34
- return KoineDialog;
35
- }
36
- });
37
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
38
- const _helpers = require("../../helpers");
39
- const _DialogMui = /*#__PURE__*/ _interop_require_wildcard._(require("../DialogMui"));
40
- const Root = (0, _helpers.classed)(_DialogMui.Root)`dialog`;
41
- const Backdrop = (0, _helpers.classed)(_DialogMui.Backdrop)`dialogBackdrop`;
42
- const Container = (0, _helpers.classed)(_DialogMui.Container)`dialogContainer`;
43
- const Paper = (0, _helpers.classed)(_DialogMui.Paper)`dialogPaper`;
44
- const Close = (0, _helpers.classed)(_DialogMui.Close)`"dialogClose`;
45
- const Header = (0, _helpers.classed)(_DialogMui.Header)`dialogHeader`;
46
- const Body = (0, _helpers.classed)(_DialogMui.Body)`dialogBody`;
47
- const KoineDialog = (0, _helpers.extendComponent)(_DialogMui.KoineDialog, {
48
- Root,
49
- Backdrop,
50
- Container,
51
- Paper,
52
- Close,
53
- Header,
54
- Body
55
- });
@@ -1,93 +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
- default: function() {
13
- return _default;
14
- },
15
- bare: function() {
16
- return bare;
17
- }
18
- });
19
- const _jsxruntime = require("react/jsx-runtime");
20
- const _stories = require("@koine/stories");
21
- const _bare = require("./bare");
22
- const _default = {
23
- component: _bare.KoineDialog,
24
- title: "Base/Dialog/CSS",
25
- ..._stories.storyDialogMeta,
26
- decorators: [
27
- (Story)=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
28
- children: [
29
- /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
30
- children: `
31
- .dialog {
32
- z-index: 1000;
33
- position: fixed;
34
- top: 0;
35
- left: 0;
36
- bottom: 0;
37
- right: 0;
38
- }
39
-
40
- .dialogRoot {
41
- z-index: 1300;
42
- position: fixed;
43
- top: 0;
44
- left: 0;
45
- bottom: 0;
46
- right: 0;
47
- }
48
-
49
- .dialogBackdrop {
50
- z-index: -1;
51
- position: fixed;
52
- top: 0;
53
- left: 0;
54
- bottom: 0;
55
- right: 0;
56
- backdrop-filter: blur(0px);
57
- }
58
-
59
- .dialogContainer {
60
- display: flex;
61
- justify-content: center;
62
- align-items: center;
63
- height: 100%;
64
- }
65
-
66
- .dialogPaper {
67
- position: relative;
68
- }
69
-
70
- .dialogClose {
71
- position: absolute;
72
- }
73
-
74
- .dialogHeader {
75
- }
76
-
77
- .dialogBody {
78
- }
79
- `
80
- }),
81
- /*#__PURE__*/ (0, _jsxruntime.jsx)(Story, {})
82
- ]
83
- })
84
- ]
85
- };
86
- const bareTemplate = (args)=>{
87
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_stories.StoryDialog, {
88
- ...args,
89
- Dialog: _bare.KoineDialog
90
- });
91
- };
92
- const bare = bareTemplate.bind({});
93
- bare.args = _stories.storyDialogArgs;
package/Dialog/index.js DELETED
@@ -1,11 +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 _DialogMui.KoineDialog;
9
- }
10
- });
11
- const _DialogMui = require("./DialogMui");
package/Dialog/m/bare.js DELETED
@@ -1,125 +0,0 @@
1
- // FIXME: cannot build this
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "KoineDialog", {
7
- enumerable: true,
8
- get: function() {
9
- return KoineDialog;
10
- }
11
- });
12
- const _helpers = require("../../helpers");
13
- const Dialog = ()=>null;
14
- const KoineDialog = (0, _helpers.extendComponent)(Dialog, {}); // import { AnimatePresence, m } from "framer-motion";
15
- // import { forwardRef, useMemo, useRef } from "react";
16
- // import { MdClear as IconClose } from "react-icons/md";
17
- // import { extendComponent } from "../../helpers";
18
- // import {
19
- // Backdrop,
20
- // Body,
21
- // Close,
22
- // Container,
23
- // Header,
24
- // type KoineDialogProps,
25
- // Paper,
26
- // Root,
27
- // } from "../DialogMui";
28
- // import { mRootStyle } from "./index";
29
- // // import { KoineDialog as _ } from "../DialogMui";
30
- // export type { KoineDialogProps } from "../DialogMui";
31
- // /**
32
- // * About nested `AnimatePresence` and animated dialogs with framer @see:
33
- // *
34
- // * - https://github.com/framer/motion/issues/478
35
- // * - https://codesandbox.io/s/clever-banzai-7km49?file=/src/Modal.js
36
- // */
37
- // const Dialog = forwardRef<HTMLDivElement, KoineDialogProps>(function Dialog(
38
- // {
39
- // children,
40
- // title,
41
- // $scrollPaper,
42
- // Root,
43
- // Backdrop,
44
- // Container,
45
- // Paper,
46
- // Close,
47
- // Header,
48
- // Body,
49
- // mBackdrop,
50
- // mPaper,
51
- // onClose,
52
- // ...props
53
- // },
54
- // ref
55
- // ) {
56
- // const BackdropMotion: KoineDialogProps["Backdrop"] = useMemo(
57
- // () => (props) =>
58
- // (
59
- // <AnimatePresence>
60
- // {/* @ts-expect-error framer props collision... */}
61
- // {props.open && <Backdrop {...mBackdrop} {...props} />}
62
- // </AnimatePresence>
63
- // ),
64
- // [Backdrop, mBackdrop]
65
- // );
66
- // // FIXME: extract this logic either in a useDialog hook or in a useclickOutside hook
67
- // // click handling is taken from
68
- // // @see https://github.com/mui/material-ui/blob/c758b6c0b30f0831110458a746690b33147c45df/packages/mui-material/src/Dialog/Dialog.js#L205-L226
69
- // const backdropClick = useRef<boolean | null>();
70
- // const handleMouseDown: React.MouseEventHandler = (event) => {
71
- // // We don't want to close the dialog when clicking the dialog content.
72
- // // Make sure the event starts and ends on the same DOM element.
73
- // backdropClick.current = event.target === event.currentTarget;
74
- // };
75
- // const handleBackdropClick: React.MouseEventHandler = (event) => {
76
- // // Ignore the events not coming from the "backdrop".
77
- // if (!backdropClick.current) {
78
- // return;
79
- // }
80
- // backdropClick.current = null;
81
- // // if (onBackdropClick) onBackdropClick(event);
82
- // if (onClose) {
83
- // onClose(event, "backdropClick");
84
- // }
85
- // };
86
- // return (
87
- // <Root
88
- // keepMounted
89
- // slots={{ backdrop: BackdropMotion }}
90
- // onClick={handleBackdropClick}
91
- // onClose={onClose}
92
- // ref={ref}
93
- // {...props}
94
- // style={mRootStyle({ open: props.open, style: props.style })}
95
- // >
96
- // <Container $scrollPaper={$scrollPaper} onMouseDown={handleMouseDown}>
97
- // <AnimatePresence>
98
- // {props.open && (
99
- // // @ts-expect-error framer props collision...
100
- // <Paper
101
- // {...mPaper}
102
- // aria-label={title || ""}
103
- // $scrollPaper={$scrollPaper}
104
- // >
105
- // {title && <Header>{title}</Header>}
106
- // <Close onClick={onClose}>
107
- // <IconClose />
108
- // </Close>
109
- // <Body>{children}</Body>
110
- // </Paper>
111
- // )}
112
- // </AnimatePresence>
113
- // </Container>
114
- // </Root>
115
- // );
116
- // });
117
- // export const KoineDialog = extendComponent(Dialog, {
118
- // Root,
119
- // Backdrop: m(Backdrop),
120
- // Container,
121
- // Paper: m(Paper),
122
- // Close,
123
- // Header,
124
- // Body,
125
- // });
package/Dialog/m/basic.js DELETED
@@ -1,50 +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
- dialogBackdropMotion: function() {
13
- return dialogBackdropMotion;
14
- },
15
- dialogPaperMotion: function() {
16
- return dialogPaperMotion;
17
- }
18
- });
19
- const _export_star = require("@swc/helpers/_/_export_star");
20
- _export_star._(require("./index"), exports);
21
- const dialogBackdropMotion = {
22
- initial: {
23
- opacity: 0
24
- },
25
- animate: {
26
- backdropFilter: "blur(10px)",
27
- opacity: 1
28
- },
29
- exit: {
30
- backdropFilter: "blur(0px)",
31
- opacity: 0
32
- }
33
- };
34
- const dialogPaperMotion = {
35
- initial: {
36
- // scale: .9,
37
- translateY: -60,
38
- opacity: 0
39
- },
40
- animate: {
41
- // scale: 1,
42
- translateY: 0,
43
- opacity: 1
44
- },
45
- exit: {
46
- // scale: 0.9,
47
- translateY: 60,
48
- opacity: 0
49
- }
50
- };
package/Dialog/m/index.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "mRootStyle", {
6
- enumerable: true,
7
- get: function() {
8
- return mRootStyle;
9
- }
10
- });
11
- const mRootStyle = (props)=>({
12
- pointerEvents: props.open ? "all" : "none",
13
- ...props.style || {}
14
- });
package/Dialog/sc/bare.js DELETED
@@ -1,83 +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
- Root: function() {
13
- return Root;
14
- },
15
- Backdrop: function() {
16
- return Backdrop;
17
- },
18
- Container: function() {
19
- return Container;
20
- },
21
- Paper: function() {
22
- return Paper;
23
- },
24
- Close: function() {
25
- return Close;
26
- },
27
- Header: function() {
28
- return Header;
29
- },
30
- Body: function() {
31
- return Body;
32
- },
33
- KoineDialog: function() {
34
- return KoineDialog;
35
- }
36
- });
37
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
38
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
39
- const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
40
- const _Buttons = require("../../Buttons");
41
- const _helpers = require("../../helpers");
42
- const _styled = require("../../styles/styled");
43
- const _DialogMui = /*#__PURE__*/ _interop_require_wildcard._(require("../DialogMui"));
44
- const Root = (0, _styledcomponents.default)(_DialogMui.Root)`
45
- z-index: 1300;
46
- position: fixed;
47
- ${_styled.inset0}
48
- `;
49
- const Backdrop = (0, _styledcomponents.default)(_DialogMui.Backdrop)`
50
- z-index: -1;
51
- position: fixed;
52
- ${_styled.inset0}
53
- backdrop-filter: blur(0px);
54
- -webkit-tap-highlight-color: transparent;
55
- `;
56
- const Container = (0, _styledcomponents.default)(_DialogMui.Container)`
57
- height: 100%;
58
- outline: 0;
59
- ${(p)=>p.$scrollPaper ? "display: flex; justify-content: center; align-items: center;" : "overflow: hidden auto; text-align: center; &:after { content: ''; display: inline-block; vertical-align: middle; height: 100%; width: 0; }"}
60
- `;
61
- const Paper = (0, _styledcomponents.default)(_DialogMui.Paper)`
62
- position: relative;
63
- ${(p)=>p.$scrollPaper ? "display: flex; flex-direction: column; max-height: calc(100%-64px);" : "display: inline-block; vertical-align: middle; text-align: initial;"}
64
- `;
65
- const Close = (0, _styledcomponents.default)(_Buttons.IconButton)`
66
- position: absolute;
67
- `;
68
- const Header = (0, _styledcomponents.default)(_DialogMui.Header)``;
69
- const Body = (0, _styledcomponents.default)(_DialogMui.Body)`
70
- flex: 1 1 auto;
71
- -webkit-overflow-scrolling: touch;
72
- overflow-y: auto;
73
- overflow: auto;
74
- `;
75
- const KoineDialog = (0, _helpers.extendComponent)(_DialogMui.KoineDialog, {
76
- Root,
77
- Backdrop,
78
- Container,
79
- Paper,
80
- Close,
81
- Header,
82
- Body
83
- });
@@ -1,26 +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 KoineDialog;
9
- }
10
- });
11
- const _framermotion = require("framer-motion");
12
- const _helpers = require("../../helpers");
13
- const _bare = require("../m/bare");
14
- const _basic = require("../m/basic");
15
- const _bare1 = require("./bare");
16
- const KoineDialog = (0, _helpers.extendComponent)(_bare.KoineDialog, {
17
- Root: _bare1.Root,
18
- Backdrop: (0, _framermotion.m)(_bare1.Backdrop),
19
- Container: _bare1.Container,
20
- Paper: (0, _framermotion.m)(_bare1.Paper),
21
- Close: _bare1.Close,
22
- Header: _bare1.Header,
23
- Body: _bare1.Body,
24
- mBackdrop: _basic.dialogBackdropMotion,
25
- mPaper: _basic.dialogPaperMotion
26
- });
@@ -1,26 +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 KoineDialog;
9
- }
10
- });
11
- const _framermotion = require("framer-motion");
12
- const _helpers = require("../../helpers");
13
- const _bare = require("../m/bare");
14
- const _basic = require("../m/basic");
15
- const _material = require("./material");
16
- const KoineDialog = (0, _helpers.extendComponent)(_bare.KoineDialog, {
17
- Root: _material.Root,
18
- Backdrop: (0, _framermotion.m)(_material.Backdrop),
19
- Container: _material.Container,
20
- Paper: (0, _framermotion.m)(_material.Paper),
21
- Close: _material.Close,
22
- Header: _material.Header,
23
- Body: _material.Body,
24
- mBackdrop: _basic.dialogBackdropMotion,
25
- mPaper: _basic.dialogPaperMotion
26
- });
@@ -1,75 +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
- default: function() {
13
- return _default;
14
- },
15
- bare: function() {
16
- return bare;
17
- },
18
- material: function() {
19
- return material;
20
- },
21
- framer: function() {
22
- return framer;
23
- },
24
- framerMaterial: function() {
25
- return framerMaterial;
26
- }
27
- });
28
- const _jsxruntime = require("react/jsx-runtime");
29
- const _stories = require("@koine/stories");
30
- const _bare = require("./bare");
31
- const _framer = require("./framer");
32
- const _framerMaterial = require("./framerMaterial");
33
- const _material = require("./material");
34
- const _default = {
35
- title: "Base/Dialog/Styled Components",
36
- ..._stories.storyDialogMeta
37
- };
38
- const bareTemplate = (args)=>{
39
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_stories.StoryDialog, {
40
- ...args,
41
- Dialog: _bare.KoineDialog
42
- });
43
- };
44
- const bare = bareTemplate.bind({});
45
- bare.args = _stories.storyDialogArgs;
46
- const materialTemplate = (args)=>{
47
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_stories.StoryDialog, {
48
- ...args,
49
- Dialog: _material.KoineDialog
50
- });
51
- };
52
- const material = materialTemplate.bind({});
53
- material.args = _stories.storyDialogArgs;
54
- const framerTemplate = (args)=>{
55
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_stories.StoryDialog, {
56
- ...args,
57
- Dialog: _framer.KoineDialog
58
- });
59
- };
60
- const framer = framerTemplate.bind({});
61
- framer.decorators = [
62
- _stories.decoratorFramer
63
- ];
64
- framer.args = _stories.storyDialogArgs;
65
- const framerMaterialTemplate = (args)=>{
66
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_stories.StoryDialog, {
67
- ...args,
68
- Dialog: _framerMaterial.KoineDialog
69
- });
70
- };
71
- const framerMaterial = framerMaterialTemplate.bind({});
72
- framerMaterial.decorators = [
73
- _stories.decoratorFramer
74
- ];
75
- framerMaterial.args = _stories.storyDialogArgs;
@@ -1,78 +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
- Root: function() {
13
- return Root;
14
- },
15
- Backdrop: function() {
16
- return Backdrop;
17
- },
18
- Container: function() {
19
- return Container;
20
- },
21
- Paper: function() {
22
- return Paper;
23
- },
24
- Close: function() {
25
- return Close;
26
- },
27
- Header: function() {
28
- return Header;
29
- },
30
- Body: function() {
31
- return Body;
32
- },
33
- KoineDialog: function() {
34
- return KoineDialog;
35
- }
36
- });
37
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
38
- const _styledcomponents = /*#__PURE__*/ _interop_require_default._(require("styled-components"));
39
- const _helpers = require("../../helpers");
40
- const _bare = require("./bare");
41
- const Root = (0, _styledcomponents.default)(_bare.KoineDialog.Root)``;
42
- const Backdrop = (0, _styledcomponents.default)(_bare.KoineDialog.Backdrop)`
43
- background: rgba(0, 0, 0, 0.5);
44
- filter: backdrop-blur(4px);
45
- `;
46
- const Container = (0, _styledcomponents.default)(_bare.KoineDialog.Container)``;
47
- const Paper = (0, _styledcomponents.default)(_bare.KoineDialog.Paper)`
48
- max-width: 640px;
49
- margin: 64px;
50
- border-radius: 4px;
51
- background: white;
52
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
53
- `;
54
- const Close = (0, _styledcomponents.default)(_bare.KoineDialog.Close)`
55
- position: absolute;
56
- top: 0;
57
- right: 0;
58
- padding: 8px;
59
- font-size: 2rem;
60
- opacity: 0.5;
61
- `;
62
- const Header = (0, _styledcomponents.default)(_bare.KoineDialog.Header)`
63
- padding: 16px;
64
- font-size: 1.25rem;
65
- `;
66
- const Body = (0, _styledcomponents.default)(_bare.KoineDialog.Body)`
67
- padding: 16px;
68
- border-top: 1px solid rgba(0, 0, 0, 0.08);
69
- `;
70
- const KoineDialog = (0, _helpers.extendComponent)(_bare.KoineDialog, {
71
- Root,
72
- Backdrop,
73
- Container,
74
- Paper,
75
- Close,
76
- Header,
77
- Body
78
- });
package/Dialog/tw/bare.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
- Root: function() {
13
- return Root;
14
- },
15
- Backdrop: function() {
16
- return Backdrop;
17
- },
18
- Container: function() {
19
- return Container;
20
- },
21
- Paper: function() {
22
- return Paper;
23
- },
24
- Close: function() {
25
- return Close;
26
- },
27
- Header: function() {
28
- return Header;
29
- },
30
- Body: function() {
31
- return Body;
32
- },
33
- KoineDialog: function() {
34
- return KoineDialog;
35
- }
36
- });
37
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
38
- const _helpers = require("../../helpers");
39
- const _DialogMui = /*#__PURE__*/ _interop_require_wildcard._(require("../DialogMui"));
40
- const Root = (0, _helpers.classed)(_DialogMui.Root)`< class="dialog fixed z-[1300] inset-0`;
41
- const Backdrop = (0, _helpers.classed)(_DialogMui.Backdrop)`< class="dialogBackdrop fixed -z-[1] inset-0 [-webkit-tap-highlight-color:transparent]`;
42
- const Container = (0, _helpers.classed)(_DialogMui.Container)`< class="dialogContainer h-full outline-0 ${(p)=>p.$scrollPaper ? "flex justify-center items-center" : "overflow-y-auto overflow-x-hidden text-center [after:content:''] after:inline-block after:align-middle after:h-full after:w-0"}`;
43
- const Paper = (0, _helpers.classed)(_DialogMui.Paper)`< class="dialogPaper relative ${(p)=>p.$scrollPaper ? "flex flex-col max-h-[calc(100%-64px)]" : "inline-block align-middle [text-align:initial]"}`;
44
- const Close = (0, _helpers.classed)(_DialogMui.Close)`< class="dialogClose`;
45
- const Header = (0, _helpers.classed)(_DialogMui.Header)`< class="dialogHeader`;
46
- const Body = (0, _helpers.classed)(_DialogMui.Body)`< class="dialogBody flex-1 basis-auto overflow-y-auto [-webkit-overflow-scrolling:touch]`;
47
- const KoineDialog = (0, _helpers.extendComponent)(_DialogMui.KoineDialog, {
48
- Root,
49
- Backdrop,
50
- Container,
51
- Paper,
52
- Close,
53
- Header,
54
- Body
55
- });