@koine/react 1.0.9 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert/Alert.js +7 -13
- package/Animations/Reveal.js +12 -10
- package/Animations/Underline.js +3 -13
- package/Animations/useReveal.js +18 -17
- package/Autocomplete/AutocompleteDownshift.js +1 -1
- package/Autocomplete/AutocompleteDownshiftMultiselect.js +1 -1
- package/Autocomplete/AutocompleteMui.js +61 -56
- package/Autocomplete/AutocompleteReach.js +1 -1
- package/Autocomplete/components.js +17 -72
- package/Autocomplete/helpers.js +1 -1
- package/Bg/BgColor.js +14 -24
- package/Bg/BgPhoto.js +11 -54
- package/Bg/BgSvg.js +6 -9
- package/Breadcrumbs/Breadcrumbs.js +14 -54
- package/Buttons/Button.js +8 -73
- package/Buttons/ButtonComposite.js +20 -41
- package/Buttons/ButtonFab.js +4 -6
- package/Buttons/ButtonLink.js +7 -6
- package/Buttons/IconButton.js +5 -17
- package/Calendar/CalendarDaygridCell.js +20 -14
- package/Calendar/CalendarDaygridNav.js +10 -9
- package/Calendar/CalendarDaygridTable.js +32 -30
- package/Calendar/CalendarLegend.js +7 -2
- package/Calendar/calendar-api-google.js +101 -68
- package/Calendar/useCalendar.js +114 -113
- package/Calendar/utils.js +73 -74
- package/Carousel/Carousel.js +1 -1
- package/Carousel/CarouselCss.js +14 -27
- package/Collapsable/Collapsable.d.ts +1 -1
- package/Collapsable/Collapsable.js +1 -1
- package/Collapsable/CollapsableReach.d.ts +4 -64
- package/Collapsable/CollapsableReach.js +247 -129
- package/Collapsable/index.d.ts +1 -1
- package/Collapsable/index.js +2 -1
- package/Debug/Debug.js +5 -17
- package/Details/Details.d.ts +114 -0
- package/Details/Details.js +65 -0
- package/Details/index.d.ts +1 -0
- package/Details/index.js +1 -0
- package/{Forms/Form → Details}/package.json +1 -1
- package/Dialog/DialogMui.d.ts +1 -1
- package/Dialog/DialogMui.js +22 -20
- package/Dialog/css/bare.js +17 -15
- package/Dialog/m/bare.js +17 -13
- package/Dialog/m/basic.js +2 -2
- package/Dialog/m/index.js +4 -4
- package/Dialog/sc/bare.js +25 -43
- package/Dialog/sc/framer.js +6 -6
- package/Dialog/sc/framerMaterial.js +6 -6
- package/Dialog/sc/material.js +17 -37
- package/Dialog/tw/bare.js +25 -19
- package/Dialog/tw/elegant.js +17 -15
- package/Dialog/tw/framer.js +6 -6
- package/Dialog/tw/framerMaterial.js +6 -6
- package/Dialog/tw/material.js +17 -15
- package/Editor/Editor--tiptap.js +14 -11
- package/Editor/components.js +6 -24
- package/Favicon/FaviconTags.js +2 -1
- package/Form/Form.d.ts +111 -0
- package/Form/Form.js +61 -0
- package/{Forms/Form → Form}/index.d.ts +0 -0
- package/{Forms/Form → Form}/index.js +0 -0
- package/Form/package.json +6 -0
- package/Form/sc/bare.d.ts +33 -0
- package/Form/sc/bare.js +20 -0
- package/Forms/Checkbox/Checkbox.js +9 -15
- package/Forms/Feedback/Feedback.js +6 -7
- package/Forms/Field/Field.js +15 -26
- package/Forms/Field/FieldControl.js +19 -15
- package/Forms/Field/FieldHint.js +3 -5
- package/Forms/Input/Input.js +10 -16
- package/Forms/InputGroup/InputGroup.js +9 -36
- package/Forms/Label/Label.js +5 -23
- package/Forms/Password/Password.js +10 -23
- package/Forms/Radio/Radio.js +15 -18
- package/Forms/Switch/Switch.js +9 -39
- package/Forms/Textarea/Textarea.js +6 -7
- package/Forms/Textarea/TextareaRich.js +10 -24
- package/Forms/Toggle/Toggle.js +21 -68
- package/Forms/Toggle/useToggle.js +29 -29
- package/Forms/antispam.js +12 -12
- package/Forms/helpers.js +8 -7
- package/Forms/index.d.ts +0 -1
- package/Forms/index.js +0 -1
- package/Forms/styles.js +12 -43
- package/Gauge/Gauge.js +1 -1
- package/Grid/Grid.js +25 -51
- package/Hamburger/Hamburger.js +35 -47
- package/Header/useHeader.js +12 -12
- package/Hidden/Hidden.js +9 -13
- package/Img/sc/bare.js +3 -1
- package/Link/Link.js +3 -1
- package/Link/LinkBlank.js +8 -17
- package/Menu/Menu.js +3 -10
- package/MenuItem/MenuItem.js +3 -19
- package/Meta/Meta.js +3 -2
- package/NoJs/NoJs.js +2 -2
- package/Pagination/PaginationNav.js +26 -48
- package/Pagination/PaginationResults.js +7 -6
- package/Pill/Pill.js +6 -36
- package/Progress/ProgressCircular.js +9 -30
- package/Progress/ProgressLinear.js +8 -16
- package/Progress/ProgressOverlay.js +11 -27
- package/Rating/Rating.js +26 -45
- package/Rating/index.js +19 -15
- package/Select/SelectDownshift.js +1 -1
- package/Select/components.js +6 -12
- package/Sidebar/Sidebar.js +13 -38
- package/Spacing/Spacing.js +12 -12
- package/Sticky/Sticky.js +1 -1
- package/Sticky/StickyCss.js +4 -2
- package/Tabs/TabsMui.d.ts +244 -0
- package/Tabs/TabsMui.js +46 -0
- package/Tabs/index.d.ts +1 -1
- package/Tabs/index.js +1 -1
- package/Tabs/sc/bare.d.ts +5 -0
- package/Tabs/sc/bare.js +87 -0
- package/Tabs/tw/bare.d.ts +248 -0
- package/Tabs/tw/bare.js +17 -0
- package/Tabs/tw/material.d.ts +472 -0
- package/Tabs/tw/material.js +18 -0
- package/Tabs/useTabs.d.ts +43 -0
- package/Tabs/useTabs.js +44 -0
- package/Typography/CopyPasteVisible.js +3 -5
- package/Typography/Native.js +12 -45
- package/Typography/ReadMore.js +26 -52
- package/Typography/TextLoop.js +19 -22
- package/Typography/TypeStairs.js +20 -16
- package/css/index.js +1 -0
- package/helpers/classed.js +22 -18
- package/helpers/extend-component.js +6 -6
- package/hooks/index.d.ts +8 -0
- package/hooks/index.js +8 -0
- package/hooks/types.d.ts +8 -0
- package/hooks/types.js +1 -0
- package/hooks/useAsyncFn.d.ts +26 -0
- package/hooks/useAsyncFn.js +36 -0
- package/hooks/useDateLocale.js +22 -13
- package/hooks/useEffectOnce.d.ts +5 -0
- package/hooks/useEffectOnce.js +8 -0
- package/hooks/useFirstMountState.d.ts +4 -0
- package/hooks/useFirstMountState.js +12 -0
- package/hooks/useFocus.js +3 -3
- package/hooks/useId.d.ts +4 -0
- package/hooks/useId.js +8 -0
- package/hooks/useIsomorphicLayoutEffect.d.ts +5 -0
- package/hooks/useIsomorphicLayoutEffect.js +8 -0
- package/hooks/useMount.d.ts +4 -0
- package/hooks/useMount.js +9 -0
- package/hooks/useMountedState.d.ts +4 -0
- package/hooks/useMountedState.js +15 -0
- package/hooks/usePrevious.js +2 -2
- package/hooks/useScrollPosition.js +21 -16
- package/hooks/useScrollTo.js +7 -5
- package/hooks/useTraceUpdate.js +4 -3
- package/hooks/useUpdateEffect.d.ts +5 -0
- package/hooks/useUpdateEffect.js +14 -0
- package/hooks/useWindowSize.js +3 -3
- package/m/MotionProvider.js +4 -2
- package/node/Alert/Alert.js +9 -16
- package/node/Alert/index.js +1 -1
- package/node/Animations/Reveal.js +15 -13
- package/node/Animations/Underline.js +5 -16
- package/node/Animations/index.js +1 -1
- package/node/Animations/useReveal.js +19 -18
- package/node/Autocomplete/AutocompleteMui.js +69 -64
- package/node/Autocomplete/components.js +26 -82
- package/node/Autocomplete/helpers.js +2 -2
- package/node/Bg/BgColor.js +18 -29
- package/node/Bg/BgPhoto.js +15 -59
- package/node/Bg/BgSvg.js +8 -12
- package/node/Bg/index.js +1 -1
- package/node/Breadcrumbs/Breadcrumbs.js +20 -61
- package/node/Breadcrumbs/index.js +1 -1
- package/node/Buttons/Button.js +10 -76
- package/node/Buttons/ButtonComposite.js +23 -45
- package/node/Buttons/ButtonFab.js +6 -9
- package/node/Buttons/ButtonLink.js +10 -10
- package/node/Buttons/IconButton.js +7 -20
- package/node/Buttons/index.js +1 -1
- package/node/Calendar/CalendarDaygridCell.js +24 -18
- package/node/Calendar/CalendarDaygridNav.js +14 -13
- package/node/Calendar/CalendarDaygridTable.js +39 -38
- package/node/Calendar/CalendarLegend.js +8 -3
- package/node/Calendar/calendar-api-google.js +105 -73
- package/node/Calendar/index.js +1 -1
- package/node/Calendar/useCalendar.js +117 -116
- package/node/Calendar/utils.js +82 -84
- package/node/Carousel/CarouselCss.js +17 -31
- package/node/Carousel/index.js +1 -1
- package/node/Collapsable/Collapsable.js +2 -2
- package/node/Collapsable/CollapsableReach.js +246 -134
- package/node/Collapsable/index.js +3 -2
- package/node/Debug/Debug.js +7 -20
- package/node/Debug/index.js +1 -1
- package/node/Details/Details.js +67 -0
- package/node/Details/index.js +4 -0
- package/node/Dialog/DialogMui.js +12 -11
- package/node/Dialog/css/bare.js +11 -10
- package/node/Dialog/m/bare.js +18 -14
- package/node/Dialog/m/basic.js +1 -1
- package/node/Dialog/m/index.js +4 -4
- package/node/Dialog/sc/bare.js +22 -41
- package/node/Dialog/sc/framer.js +5 -5
- package/node/Dialog/sc/framerMaterial.js +5 -5
- package/node/Dialog/sc/material.js +12 -33
- package/node/Dialog/tw/bare.js +19 -14
- package/node/Dialog/tw/elegant.js +11 -9
- package/node/Dialog/tw/framer.js +5 -5
- package/node/Dialog/tw/framerMaterial.js +5 -5
- package/node/Dialog/tw/material.js +11 -9
- package/node/Editor/Editor--tiptap.js +19 -17
- package/node/Editor/components.js +9 -28
- package/node/Editor/index.js +1 -1
- package/node/Favicon/FaviconTags.js +3 -2
- package/node/Favicon/index.js +1 -1
- package/node/Form/Form.js +65 -0
- package/node/{Forms/Form → Form}/index.js +1 -1
- package/node/Form/sc/bare.js +23 -0
- package/node/Forms/Checkbox/Checkbox.js +13 -20
- package/node/Forms/Checkbox/index.js +1 -1
- package/node/Forms/Feedback/Feedback.js +8 -10
- package/node/Forms/Feedback/index.js +1 -1
- package/node/Forms/Field/Field.js +18 -30
- package/node/Forms/Field/FieldControl.js +26 -22
- package/node/Forms/Field/FieldHint.js +4 -7
- package/node/Forms/Field/index.js +1 -1
- package/node/Forms/Input/Input.js +15 -22
- package/node/Forms/Input/index.js +1 -1
- package/node/Forms/InputGroup/InputGroup.js +14 -42
- package/node/Forms/InputGroup/index.js +1 -1
- package/node/Forms/Label/Label.js +6 -25
- package/node/Forms/Label/index.js +1 -1
- package/node/Forms/Password/Password.js +16 -30
- package/node/Forms/Password/index.js +1 -1
- package/node/Forms/Radio/Radio.js +21 -25
- package/node/Forms/Radio/index.js +1 -1
- package/node/Forms/Switch/Switch.js +15 -46
- package/node/Forms/Switch/index.js +1 -1
- package/node/Forms/Textarea/Textarea.js +11 -13
- package/node/Forms/Textarea/TextareaRich.js +16 -31
- package/node/Forms/Textarea/index.js +1 -1
- package/node/Forms/Toggle/Toggle.js +24 -72
- package/node/Forms/Toggle/index.js +1 -1
- package/node/Forms/Toggle/useToggle.js +33 -33
- package/node/Forms/antispam.js +14 -14
- package/node/Forms/helpers.js +9 -8
- package/node/Forms/index.js +1 -2
- package/node/Forms/styles.js +16 -48
- package/node/Gauge/Gauge.js +1 -1
- package/node/Grid/Grid.js +24 -51
- package/node/Grid/index.js +1 -1
- package/node/Hamburger/Hamburger.js +37 -50
- package/node/Hamburger/index.js +1 -1
- package/node/Header/index.js +1 -1
- package/node/Header/useHeader.js +16 -16
- package/node/Hidden/Hidden.js +10 -15
- package/node/Hidden/index.js +1 -1
- package/node/Img/index.js +1 -1
- package/node/Img/sc/bare.js +4 -3
- package/node/Link/Link.js +4 -3
- package/node/Link/LinkBlank.js +11 -21
- package/node/Link/index.js +1 -1
- package/node/Menu/Menu.js +4 -12
- package/node/Menu/index.js +1 -1
- package/node/MenuItem/MenuItem.js +4 -21
- package/node/MenuItem/index.js +1 -1
- package/node/Meta/Meta.js +4 -3
- package/node/Meta/index.js +1 -1
- package/node/NoJs/NoJs.js +3 -3
- package/node/NoJs/index.js +1 -1
- package/node/Pagination/PaginationNav.js +30 -53
- package/node/Pagination/PaginationResults.js +10 -10
- package/node/Pagination/index.js +1 -1
- package/node/Pill/Pill.js +7 -38
- package/node/Pill/index.js +1 -1
- package/node/Progress/ProgressCircular.js +11 -33
- package/node/Progress/ProgressLinear.js +11 -20
- package/node/Progress/ProgressOverlay.js +18 -35
- package/node/Progress/index.js +1 -1
- package/node/Rating/Rating.js +28 -48
- package/node/Rating/index.js +20 -16
- package/node/Select/components.js +11 -18
- package/node/Sidebar/Sidebar.js +21 -47
- package/node/Sidebar/index.js +1 -1
- package/node/Spacing/Spacing.js +16 -17
- package/node/Spacing/index.js +1 -1
- package/node/Sticky/StickyCss.js +5 -3
- package/node/Sticky/index.js +1 -1
- package/node/Tabs/TabsMui.js +49 -0
- package/node/Tabs/index.js +2 -2
- package/node/Tabs/sc/bare.js +87 -0
- package/node/Tabs/tw/bare.js +20 -0
- package/node/Tabs/tw/material.js +21 -0
- package/node/Tabs/useTabs.js +48 -0
- package/node/Typography/CopyPasteVisible.js +4 -7
- package/node/Typography/Native.js +14 -48
- package/node/Typography/ReadMore.js +30 -57
- package/node/Typography/TextLoop.js +22 -25
- package/node/Typography/TypeStairs.js +22 -18
- package/node/Typography/index.js +1 -1
- package/node/css/index.js +2 -1
- package/node/helpers/classed.js +23 -19
- package/node/helpers/extend-component.js +7 -7
- package/node/helpers/index.js +1 -1
- package/node/hooks/index.js +9 -1
- package/node/hooks/types.js +2 -0
- package/node/hooks/useAsyncFn.js +40 -0
- package/node/hooks/useDateLocale.js +23 -37
- package/node/hooks/useEffectOnce.js +12 -0
- package/node/hooks/useFirstMountState.js +16 -0
- package/node/hooks/useFocus.js +4 -4
- package/node/hooks/useId.js +12 -0
- package/node/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/node/hooks/useMount.js +13 -0
- package/node/hooks/useMountedState.js +19 -0
- package/node/hooks/usePrevious.js +3 -3
- package/node/hooks/useScrollPosition.js +23 -19
- package/node/hooks/useScrollTo.js +9 -7
- package/node/hooks/useTraceUpdate.js +5 -4
- package/node/hooks/useUpdateEffect.js +18 -0
- package/node/hooks/useWindowSize.js +4 -4
- package/node/index.js +1 -1
- package/node/m/MotionProvider.js +6 -4
- package/node/m/index.js +1 -1
- package/node/m/lite.js +1 -1
- package/node/m/max.js +1 -1
- package/node/sc/index.js +4 -2
- package/node/scm/index.js +2 -1
- package/node/shared/index.js +1 -1
- package/node/styles/Body.js +5 -10
- package/node/styles/Global.js +5 -37
- package/node/styles/index.js +1 -1
- package/node/styles/media.js +42 -38
- package/node/styles/spacing.js +15 -16
- package/node/styles/styled.js +7 -21
- package/node/styles/theme--vanilla.js +21 -19
- package/node/styles/theme.js +9 -9
- package/node/tw/index.js +2 -1
- package/node/twm/index.js +2 -1
- package/package.json +20 -9
- package/sc/index.d.ts +1 -0
- package/sc/index.js +1 -0
- package/scm/index.js +1 -0
- package/styles/Body.js +4 -8
- package/styles/Global.js +4 -36
- package/styles/media.js +41 -36
- package/styles/spacing.js +15 -16
- package/styles/styled.js +7 -21
- package/styles/theme--vanilla.js +21 -19
- package/styles/theme.js +11 -11
- package/tw/index.js +1 -0
- package/twm/index.js +1 -0
- package/Forms/Form/Form.d.ts +0 -31
- package/Forms/Form/Form.js +0 -62
- package/Tabs/Tabs.d.ts +0 -27
- package/Tabs/Tabs.js +0 -62
- package/node/Forms/Form/Form.js +0 -67
- package/node/Tabs/Tabs.js +0 -67
|
@@ -1,141 +1,253 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Collapsable = exports.CollapsableBody = exports.CollapsableBodyRoot = exports.CollasableBodyWrap = exports.CollapsableInput = exports.CollapsableHead = exports.CollapsableHeadIcon = exports.CollapsableHeadText = exports.collapsableHeadLineMotion = exports.CollaspableHeadLine = exports.CollapsableHeadAction = exports.CollapsableHeadSpace = exports.CollapsableHeadRoot = exports.CollapsableRoot = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
2
|
/**
|
|
7
3
|
* @file
|
|
8
4
|
*
|
|
9
5
|
* Maybe do a simplified version following this example:
|
|
10
6
|
* https://codesandbox.io/s/framer-motion-accordion-qx958?file=/src/Example.tsx
|
|
11
7
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
//
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
8
|
+
// import { forwardRef, useCallback, useEffect, /* useId, */ useRef, useState } from "react";
|
|
9
|
+
// import styled from "styled-components";
|
|
10
|
+
// import { MotionProps, m } from "framer-motion";
|
|
11
|
+
// import {
|
|
12
|
+
// Disclosure,
|
|
13
|
+
// DisclosureButton,
|
|
14
|
+
// DisclosurePanel,
|
|
15
|
+
// } from "@reach/disclosure";
|
|
16
|
+
// import { BsBoxArrowInDown as IconCollapse } from "react-icons/bs";
|
|
17
|
+
// import { btnStyleReset } from "../Buttons";
|
|
18
|
+
// import { useWindowSize } from "../hooks/useWindowSize";
|
|
19
|
+
// import { InputInvisible } from "../Forms/styles";
|
|
20
|
+
// import { useId } from "../hooks/useId";
|
|
21
|
+
// export type CollapsableStyledProps = {
|
|
22
|
+
// $expanded?: boolean;
|
|
23
|
+
// };
|
|
24
|
+
// /**
|
|
25
|
+
// * `overflow-anchor: none;` keeps the same scrolling position
|
|
26
|
+
// * @see https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Accordion/Accordion.js#L54
|
|
27
|
+
// */
|
|
28
|
+
// export const CollapsableRoot = styled(Disclosure)`
|
|
29
|
+
// overflow-anchor: none;
|
|
30
|
+
// `;
|
|
31
|
+
// export const CollapsableHeadRoot = styled(m.label).attrs(
|
|
32
|
+
// (props: Pick<CollapsableHeadProps, "id">) => ({
|
|
33
|
+
// htmlFor: `${props.id}-input`,
|
|
34
|
+
// })
|
|
35
|
+
// )<Pick<CollapsableStyledProps, "$expanded">>`
|
|
36
|
+
// ${btnStyleReset}
|
|
37
|
+
// width: 100%;
|
|
38
|
+
// padding: 0;
|
|
39
|
+
// text-align: left;
|
|
40
|
+
// display: flex;
|
|
41
|
+
// justify-content: space-between;
|
|
42
|
+
// align-items: center;
|
|
43
|
+
// cursor: pointer;
|
|
44
|
+
// `;
|
|
45
|
+
// export const CollapsableHeadSpace = styled.div`
|
|
46
|
+
// flex: 1;
|
|
47
|
+
// padding-left: 20px;
|
|
48
|
+
// `;
|
|
49
|
+
// export const CollapsableHeadAction = styled.div`
|
|
50
|
+
// padding-left: 20px;
|
|
51
|
+
// `;
|
|
52
|
+
// export const CollaspableHeadLine = styled(m.div)`
|
|
53
|
+
// width: 0%;
|
|
54
|
+
// height: 1px;
|
|
55
|
+
// background: #bbb;
|
|
56
|
+
// `;
|
|
57
|
+
// export const collapsableHeadLineMotion = {
|
|
58
|
+
// hover: {
|
|
59
|
+
// width: "100%",
|
|
60
|
+
// transition: {
|
|
61
|
+
// duration: 0.4,
|
|
62
|
+
// },
|
|
63
|
+
// },
|
|
64
|
+
// };
|
|
65
|
+
// export const CollapsableHeadText = styled.div``;
|
|
66
|
+
// export const CollapsableHeadIcon = styled(m.div)``;
|
|
67
|
+
// export type CollapsableHeadProps = React.PropsWithChildren<
|
|
68
|
+
// Pick<CollapsableStyledProps, "$expanded"> &
|
|
69
|
+
// CollapsableComponents & {
|
|
70
|
+
// id: CollapsableProps["id"];
|
|
71
|
+
// onClick: (...args: any) => any;
|
|
72
|
+
// }
|
|
73
|
+
// >;
|
|
74
|
+
// export const CollapsableHead = ({
|
|
75
|
+
// $expanded,
|
|
76
|
+
// id,
|
|
77
|
+
// onClick,
|
|
78
|
+
// HeadRoot = CollapsableHeadRoot,
|
|
79
|
+
// HeadAction = CollapsableHeadAction,
|
|
80
|
+
// HeadIcon = CollapsableHeadIcon,
|
|
81
|
+
// children,
|
|
82
|
+
// }: CollapsableHeadProps) => {
|
|
83
|
+
// return (
|
|
84
|
+
// <DisclosureButton
|
|
85
|
+
// onClick={onClick}
|
|
86
|
+
// // tabIndex={0}
|
|
87
|
+
// // role="tab"
|
|
88
|
+
// initial="rest"
|
|
89
|
+
// whileHover="hover"
|
|
90
|
+
// $expanded={$expanded}
|
|
91
|
+
// as={HeadRoot}
|
|
92
|
+
// id={id}
|
|
93
|
+
// >
|
|
94
|
+
// <CollapsableHeadText>{children}</CollapsableHeadText>
|
|
95
|
+
// <CollapsableHeadSpace>
|
|
96
|
+
// <CollaspableHeadLine
|
|
97
|
+
// variants={collapsableHeadLineMotion}
|
|
98
|
+
// animate={$expanded ? "hover" : ""}
|
|
99
|
+
// />
|
|
100
|
+
// </CollapsableHeadSpace>
|
|
101
|
+
// {HeadAction && (
|
|
102
|
+
// <HeadAction>
|
|
103
|
+
// {HeadIcon && (
|
|
104
|
+
// <HeadIcon animate={{ rotate: $expanded ? 180 : 0 }}>
|
|
105
|
+
// <IconCollapse />
|
|
106
|
+
// </HeadIcon>
|
|
107
|
+
// )}
|
|
108
|
+
// </HeadAction>
|
|
109
|
+
// )}
|
|
110
|
+
// </DisclosureButton>
|
|
111
|
+
// );
|
|
112
|
+
// };
|
|
113
|
+
// export const CollapsableInput = styled(InputInvisible).attrs({
|
|
114
|
+
// type: "checkbox",
|
|
115
|
+
// })``;
|
|
116
|
+
// export const CollasableBodyWrap = styled(
|
|
117
|
+
// DisclosurePanel
|
|
118
|
+
// )<CollapsableStyledProps>`
|
|
119
|
+
// /* this is because @reach adds the "hidden" attribute */
|
|
120
|
+
// &[hidden] {
|
|
121
|
+
// display: block;
|
|
122
|
+
// }
|
|
123
|
+
// `;
|
|
124
|
+
// export const CollapsableBodyRoot = styled(m.div)`
|
|
125
|
+
// .no-js & {
|
|
126
|
+
// transition: margin-top 0.2s ease;
|
|
127
|
+
// }
|
|
128
|
+
// .no-js ${CollapsableInput}:checked + ${CollasableBodyWrap} & {
|
|
129
|
+
// margin-top: 0 !important;
|
|
130
|
+
// opacity: 1 !important;
|
|
131
|
+
// }
|
|
132
|
+
// `;
|
|
133
|
+
// export type CollapsableBodyProps = MotionProps &
|
|
134
|
+
// Pick<CollapsableStyledProps, "$expanded"> & {
|
|
135
|
+
// children?: React.ReactNode;
|
|
136
|
+
// style?: React.CSSProperties;
|
|
137
|
+
// };
|
|
138
|
+
// export const CollapsableBody = forwardRef<HTMLDivElement, CollapsableBodyProps>(
|
|
139
|
+
// function CollapsableBody(props, ref) {
|
|
140
|
+
// return <CollapsableBodyRoot ref={ref} {...props} />;
|
|
141
|
+
// }
|
|
142
|
+
// );
|
|
143
|
+
// export type CollapsableComponents = {
|
|
144
|
+
// HeadRoot?: typeof CollapsableHeadRoot;
|
|
145
|
+
// HeadAction?: null | typeof CollapsableHeadAction | React.FC<any>;
|
|
146
|
+
// HeadIcon?: null | typeof CollapsableHeadIcon | React.FC<any>;
|
|
147
|
+
// };
|
|
148
|
+
// export type CollapsableProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
149
|
+
// id?: string;
|
|
150
|
+
// expanded?: boolean;
|
|
151
|
+
// /** Used to trigger a recalculation effect */
|
|
152
|
+
// recalc?: any;
|
|
153
|
+
// onChange?: () => any;
|
|
154
|
+
// head: null | React.ReactNode;
|
|
155
|
+
// body: React.ReactNode;
|
|
156
|
+
// /** Amount of milliseconds after which the component collapses */
|
|
157
|
+
// // autoCollapse?: number;
|
|
158
|
+
// components?: CollapsableComponents;
|
|
159
|
+
// /** @default "Expand" */
|
|
160
|
+
// ariaExpand?: string;
|
|
161
|
+
// /** @default "Collapse" */
|
|
162
|
+
// ariaCollapse?: string;
|
|
163
|
+
// };
|
|
164
|
+
// export const Collapsable = ({
|
|
165
|
+
// expanded: propExpanded,
|
|
166
|
+
// recalc,
|
|
167
|
+
// onChange,
|
|
168
|
+
// id,
|
|
169
|
+
// head,
|
|
170
|
+
// body,
|
|
171
|
+
// // autoCollapse,
|
|
172
|
+
// components = {},
|
|
173
|
+
// ariaExpand = "Expand",
|
|
174
|
+
// ariaCollapse = "Collapse",
|
|
175
|
+
// ...props
|
|
176
|
+
// }: CollapsableProps) => {
|
|
177
|
+
// const isControlled = typeof propExpanded !== "undefined";
|
|
178
|
+
// const [stateExpanded, setStateExpanded] = useState(propExpanded);
|
|
179
|
+
// const [height, setHeight] = useState(0);
|
|
180
|
+
// const hash = id ? `#${id}` : "";
|
|
181
|
+
// const winSize = useWindowSize();
|
|
182
|
+
// const expanded = isControlled ? propExpanded : stateExpanded;
|
|
183
|
+
// const [overflow, setOverflow] = useState(expanded ? "unset" : "hidden");
|
|
184
|
+
// const content = useRef<HTMLDivElement>(null);
|
|
185
|
+
// const defaultId = useId();
|
|
186
|
+
// id = id || defaultId;
|
|
187
|
+
// const handleClick = useCallback(() => {
|
|
188
|
+
// if (hash) {
|
|
189
|
+
// window.history.replaceState(
|
|
190
|
+
// null,
|
|
191
|
+
// "",
|
|
192
|
+
// expanded ? window.location.pathname + window.location.search : hash
|
|
193
|
+
// );
|
|
194
|
+
// }
|
|
195
|
+
// if (onChange) {
|
|
196
|
+
// onChange();
|
|
197
|
+
// }
|
|
198
|
+
// if (!isControlled) {
|
|
199
|
+
// setStateExpanded((prevExpanded) => !prevExpanded);
|
|
200
|
+
// }
|
|
201
|
+
// }, [expanded, hash, onChange, isControlled]);
|
|
202
|
+
// const handleAnimationStart = useCallback(() => {
|
|
203
|
+
// setOverflow("hidden");
|
|
204
|
+
// }, []);
|
|
205
|
+
// const handleAnimationComplete = useCallback(() => {
|
|
206
|
+
// setOverflow(expanded ? "unset" : "hidden");
|
|
207
|
+
// }, [expanded]);
|
|
208
|
+
// useEffect(() => {
|
|
209
|
+
// if (content.current) {
|
|
210
|
+
// setHeight(Math.ceil(content.current.offsetHeight));
|
|
211
|
+
// }
|
|
212
|
+
// }, [winSize, recalc]);
|
|
213
|
+
// // deeplink on mount
|
|
214
|
+
// useEffect(() => {
|
|
215
|
+
// if (!isControlled && hash && window.location.hash === hash) {
|
|
216
|
+
// setStateExpanded(true);
|
|
217
|
+
// }
|
|
218
|
+
// }, [hash, isControlled]);
|
|
219
|
+
// return (
|
|
220
|
+
// <CollapsableRoot id={id} {...props} open={expanded || false}>
|
|
221
|
+
// {head !== null && (
|
|
222
|
+
// <CollapsableHead
|
|
223
|
+
// id={id}
|
|
224
|
+
// $expanded={expanded}
|
|
225
|
+
// onClick={handleClick}
|
|
226
|
+
// {...components}
|
|
227
|
+
// >
|
|
228
|
+
// {head}
|
|
229
|
+
// </CollapsableHead>
|
|
230
|
+
// )}
|
|
231
|
+
// <CollapsableInput id={`${id}-input`} />
|
|
232
|
+
// <CollasableBodyWrap $expanded={expanded} style={{ overflow }}>
|
|
233
|
+
// <CollapsableBody
|
|
234
|
+
// ref={content}
|
|
235
|
+
// $expanded={expanded}
|
|
236
|
+
// // aria-expanded={expanded}
|
|
237
|
+
// // aria-label={expanded ? ariaCollapse : ariaExpand}
|
|
238
|
+
// style={{
|
|
239
|
+
// pointerEvents: expanded ? "all" : "none",
|
|
240
|
+
// }}
|
|
241
|
+
// onAnimationStart={handleAnimationStart}
|
|
242
|
+
// onAnimationComplete={handleAnimationComplete}
|
|
243
|
+
// animate={{
|
|
244
|
+
// marginTop: expanded ? 0 : height ? `-${height}px` : "-100vh",
|
|
245
|
+
// opacity: expanded ? 1 : 0.4,
|
|
246
|
+
// }}
|
|
247
|
+
// >
|
|
248
|
+
// {body}
|
|
249
|
+
// </CollapsableBody>
|
|
250
|
+
// </CollasableBodyWrap>
|
|
251
|
+
// </CollapsableRoot>
|
|
252
|
+
// );
|
|
253
|
+
// };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Collapsable"), exports);
|
|
5
|
+
// export * from "./CollapsableReach";
|
package/node/Debug/Debug.js
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Debug = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
border-left: 3px solid #f36d33;
|
|
11
|
-
color: #666;
|
|
12
|
-
page-break-inside: avoid;
|
|
13
|
-
font-family: monospace;
|
|
14
|
-
font-size: small;
|
|
15
|
-
line-height: 1.6;
|
|
16
|
-
margin-bottom: 1.6em;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
padding: 1em 1.5em;
|
|
20
|
-
display: block;
|
|
21
|
-
word-wrap: break-word;
|
|
22
|
-
`;
|
|
23
|
-
const Debug = ({ data }) => {
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
7
|
+
var Root = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: #f4f4f4;\n border: 1px solid #ddd;\n border-left: 3px solid #f36d33;\n color: #666;\n page-break-inside: avoid;\n font-family: monospace;\n font-size: small;\n line-height: 1.6;\n margin-bottom: 1.6em;\n max-width: 100%;\n overflow: auto;\n padding: 1em 1.5em;\n display: block;\n word-wrap: break-word;\n"], ["\n background: #f4f4f4;\n border: 1px solid #ddd;\n border-left: 3px solid #f36d33;\n color: #666;\n page-break-inside: avoid;\n font-family: monospace;\n font-size: small;\n line-height: 1.6;\n margin-bottom: 1.6em;\n max-width: 100%;\n overflow: auto;\n padding: 1em 1.5em;\n display: block;\n word-wrap: break-word;\n"])));
|
|
8
|
+
var Debug = function (_a) {
|
|
9
|
+
var data = _a.data;
|
|
24
10
|
return (0, jsx_runtime_1.jsx)(Root, { children: JSON.stringify(data, undefined, 2) });
|
|
25
11
|
};
|
|
26
12
|
exports.Debug = Debug;
|
|
13
|
+
var templateObject_1;
|
package/node/Debug/index.js
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KoineDetails = exports.Content = exports.Body = exports.Summary = exports.Root = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var useWindowSize_1 = require("../hooks/useWindowSize");
|
|
8
|
+
var helpers_1 = require("../helpers");
|
|
9
|
+
var useId_1 = require("../hooks/useId");
|
|
10
|
+
exports.Root = "details";
|
|
11
|
+
exports.Summary = "summary";
|
|
12
|
+
exports.Body = "div";
|
|
13
|
+
exports.Content = "div";
|
|
14
|
+
/**
|
|
15
|
+
* FIXME: it actually works even without forwardRef, check if we do need it
|
|
16
|
+
*
|
|
17
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
|
|
18
|
+
*/
|
|
19
|
+
var DetailsWithRef = (0, react_1.forwardRef)(function Details(_a, ref) {
|
|
20
|
+
var id = _a.id, propOpen = _a.open, recalc = _a.recalc, summary = _a.summary, children = _a.children, _Root = _a.Root, _Summary = _a.Summary, _Body = _a.Body, _Content = _a.Content, onChange = _a.onChange, props = tslib_1.__rest(_a, ["id", "open", "recalc", "summary", "children", "Root", "Summary", "Body", "Content", "onChange"]);
|
|
21
|
+
var isControlled = typeof propOpen !== "undefined";
|
|
22
|
+
var _b = (0, react_1.useState)(propOpen), stateOpen = _b[0], setStateOpen = _b[1];
|
|
23
|
+
var _c = (0, react_1.useState)(0), height = _c[0], setHeight = _c[1];
|
|
24
|
+
var hash = id ? "#".concat(id) : "";
|
|
25
|
+
var winSize = (0, useWindowSize_1.useWindowSize)();
|
|
26
|
+
var open = isControlled ? propOpen : stateOpen;
|
|
27
|
+
var _d = (0, react_1.useState)(open ? "unset" : "hidden"), overflow = _d[0], setOverflow = _d[1];
|
|
28
|
+
var content = (0, react_1.useRef)(null);
|
|
29
|
+
var defaultId = (0, useId_1.useId)();
|
|
30
|
+
id = id || defaultId;
|
|
31
|
+
var handleClick = (0, react_1.useCallback)(function () {
|
|
32
|
+
if (hash) {
|
|
33
|
+
window.history.replaceState(null, "", open ? window.location.pathname + window.location.search : hash);
|
|
34
|
+
}
|
|
35
|
+
if (onChange) {
|
|
36
|
+
onChange();
|
|
37
|
+
}
|
|
38
|
+
if (!isControlled) {
|
|
39
|
+
setStateOpen(function (prevOpen) { return !prevOpen; });
|
|
40
|
+
}
|
|
41
|
+
}, [open, hash, onChange, isControlled]);
|
|
42
|
+
(0, react_1.useEffect)(function () {
|
|
43
|
+
if (content.current) {
|
|
44
|
+
setHeight(Math.ceil(content.current.offsetHeight));
|
|
45
|
+
}
|
|
46
|
+
}, [winSize, recalc]);
|
|
47
|
+
// deeplink on mount
|
|
48
|
+
(0, react_1.useEffect)(function () {
|
|
49
|
+
if (!isControlled && hash && window.location.hash === hash) {
|
|
50
|
+
setStateOpen(true);
|
|
51
|
+
}
|
|
52
|
+
}, [hash, isControlled]);
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)(exports.Root, tslib_1.__assign({}, props, { open: open || false }, { children: [(0, jsx_runtime_1.jsx)(exports.Summary, tslib_1.__assign({ "$open": open, onClick: handleClick }, { children: summary || " " })), (0, jsx_runtime_1.jsx)(exports.Body, tslib_1.__assign({ "$open": open, style: { overflow: overflow } }, { children: (0, jsx_runtime_1.jsx)(exports.Content
|
|
54
|
+
// ref={content}
|
|
55
|
+
, tslib_1.__assign({ "$open": open,
|
|
56
|
+
// aria-expanded={open}
|
|
57
|
+
// aria-label={open ? ariaCollapse : ariaExpand}
|
|
58
|
+
style: {
|
|
59
|
+
pointerEvents: open ? "all" : "none",
|
|
60
|
+
} }, { children: children })) }))] })));
|
|
61
|
+
});
|
|
62
|
+
exports.KoineDetails = (0, helpers_1.extendComponent)(DetailsWithRef, {
|
|
63
|
+
Root: exports.Root,
|
|
64
|
+
Summary: exports.Summary,
|
|
65
|
+
Body: exports.Body,
|
|
66
|
+
Content: exports.Content,
|
|
67
|
+
});
|
package/node/Dialog/DialogMui.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KoineDialog = exports.Body = exports.Header = exports.Close = exports.Paper = exports.Container = exports.Backdrop = exports.Root = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var ModalUnstyled_1 = tslib_1.__importDefault(require("@mui/base/ModalUnstyled"));
|
|
8
|
+
var md_1 = require("react-icons/md");
|
|
9
|
+
var helpers_1 = require("../helpers");
|
|
10
10
|
exports.Root = ModalUnstyled_1.default;
|
|
11
11
|
exports.Backdrop = "div";
|
|
12
12
|
exports.Container = "div";
|
|
@@ -49,16 +49,17 @@ exports.Body = "div";
|
|
|
49
49
|
*
|
|
50
50
|
* FIXME: it actually works even without forwardRef, check if we do need it
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
var DialogWithRef = (0, react_1.forwardRef)(function Dialog(_a, ref) {
|
|
53
|
+
var children = _a.children, title = _a.title, $scrollPaper = _a.$scrollPaper, _Root = _a.Root, _Backdrop = _a.Backdrop, _Container = _a.Container, _Paper = _a.Paper, _Close = _a.Close, _Header = _a.Header, _Body = _a.Body, onClose = _a.onClose, props = tslib_1.__rest(_a, ["children", "title", "$scrollPaper", "Root", "Backdrop", "Container", "Paper", "Close", "Header", "Body", "onClose"]);
|
|
53
54
|
// click handling is taken from
|
|
54
55
|
// @see https://github.com/mui/material-ui/blob/c758b6c0b30f0831110458a746690b33147c45df/packages/mui-material/src/Dialog/Dialog.js#L205-L226
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
var backdropClick = (0, react_1.useRef)();
|
|
57
|
+
var handleMouseDown = function (event) {
|
|
57
58
|
// We don't want to close the dialog when clicking the dialog content.
|
|
58
59
|
// Make sure the event starts and ends on the same DOM element.
|
|
59
60
|
backdropClick.current = event.target === event.currentTarget;
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
var handleBackdropClick = function (event) {
|
|
62
63
|
// Ignore the events not coming from the "backdrop".
|
|
63
64
|
if (!backdropClick.current) {
|
|
64
65
|
return;
|
|
@@ -69,7 +70,7 @@ const DialogWithRef = (0, react_1.forwardRef)(function Dialog({ children, title,
|
|
|
69
70
|
onClose(event, "backdropClick");
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)(exports.Root, { BackdropComponent: exports.Backdrop, onClick: handleBackdropClick, onClose: onClose, ref: ref,
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)(exports.Root, tslib_1.__assign({ BackdropComponent: exports.Backdrop, onClick: handleBackdropClick, onClose: onClose, ref: ref }, props, { children: (0, jsx_runtime_1.jsx)(exports.Container, tslib_1.__assign({ "$scrollPaper": $scrollPaper, onMouseDown: handleMouseDown }, { children: (0, jsx_runtime_1.jsxs)(exports.Paper, tslib_1.__assign({ "aria-label": title || "", "$scrollPaper": $scrollPaper }, { children: [title && (0, jsx_runtime_1.jsx)(exports.Header, { children: title }), (0, jsx_runtime_1.jsx)(exports.Close, tslib_1.__assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(md_1.MdClear, {}) })), (0, jsx_runtime_1.jsx)(exports.Body, { children: children })] })) })) })));
|
|
73
74
|
});
|
|
74
75
|
exports.KoineDialog = (0, helpers_1.extendComponent)(DialogWithRef, {
|
|
75
76
|
Root: exports.Root,
|
package/node/Dialog/css/bare.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KoineDialog = exports.Body = exports.Header = exports.Close = exports.Paper = exports.Container = exports.Backdrop = exports.Root = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var helpers_1 = require("../../helpers");
|
|
6
|
+
var _ = tslib_1.__importStar(require("../DialogMui"));
|
|
7
7
|
// export type { KoineDialogProps } from "../DialogMui";
|
|
8
|
-
exports.Root = (0, helpers_1.classed)(_.Root)
|
|
9
|
-
exports.Backdrop = (0, helpers_1.classed)(_.Backdrop)
|
|
10
|
-
exports.Container = (0, helpers_1.classed)(_.Container)
|
|
11
|
-
exports.Paper = (0, helpers_1.classed)(_.Paper)
|
|
12
|
-
exports.Close = (0, helpers_1.classed)(_.Close)
|
|
13
|
-
exports.Header = (0, helpers_1.classed)(_.Header)
|
|
14
|
-
exports.Body = (0, helpers_1.classed)(_.Body)
|
|
8
|
+
exports.Root = (0, helpers_1.classed)(_.Root)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["dialog"], ["dialog"])));
|
|
9
|
+
exports.Backdrop = (0, helpers_1.classed)(_.Backdrop)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["dialogBackdrop"], ["dialogBackdrop"])));
|
|
10
|
+
exports.Container = (0, helpers_1.classed)(_.Container)(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["dialogContainer"], ["dialogContainer"])));
|
|
11
|
+
exports.Paper = (0, helpers_1.classed)(_.Paper)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["dialogPaper"], ["dialogPaper"])));
|
|
12
|
+
exports.Close = (0, helpers_1.classed)(_.Close)(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\"dialogClose"], ["\"dialogClose"])));
|
|
13
|
+
exports.Header = (0, helpers_1.classed)(_.Header)(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["dialogHeader"], ["dialogHeader"])));
|
|
14
|
+
exports.Body = (0, helpers_1.classed)(_.Body)(templateObject_7 || (templateObject_7 = tslib_1.__makeTemplateObject(["dialogBody"], ["dialogBody"])));
|
|
15
15
|
exports.KoineDialog = (0, helpers_1.extendComponent)(_.KoineDialog, {
|
|
16
16
|
Root: exports.Root,
|
|
17
17
|
Backdrop: exports.Backdrop,
|
|
@@ -21,3 +21,4 @@ exports.KoineDialog = (0, helpers_1.extendComponent)(_.KoineDialog, {
|
|
|
21
21
|
Header: exports.Header,
|
|
22
22
|
Body: exports.Body,
|
|
23
23
|
});
|
|
24
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|