@koine/react 1.0.11 → 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 +12 -26
- package/Collapsable/Collapsable.js +1 -1
- package/Debug/Debug.js +5 -17
- package/Details/Details.js +30 -27
- 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.js +30 -28
- package/Form/sc/bare.js +9 -18
- 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 +19 -67
- package/Forms/Toggle/useToggle.js +29 -29
- package/Forms/antispam.js +12 -12
- package/Forms/helpers.js +7 -6
- 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 +24 -44
- 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.js +19 -16
- package/Tabs/tw/bare.js +13 -11
- package/Tabs/tw/material.js +15 -11
- package/Tabs/useTabs.js +16 -16
- package/Typography/CopyPasteVisible.js +3 -5
- package/Typography/Native.js +12 -45
- package/Typography/ReadMore.js +25 -51
- package/Typography/TextLoop.js +19 -22
- package/Typography/TypeStairs.js +20 -16
- package/helpers/classed.js +21 -18
- package/helpers/extend-component.js +6 -6
- package/hooks/useAsyncFn.js +18 -11
- package/hooks/useDateLocale.js +22 -13
- package/hooks/useEffectOnce.js +1 -1
- package/hooks/useFirstMountState.js +1 -1
- package/hooks/useFocus.js +3 -3
- package/hooks/useId.js +3 -2
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useMount.js +2 -2
- package/hooks/useMountedState.js +4 -4
- package/hooks/usePrevious.js +2 -2
- package/hooks/useScrollPosition.js +20 -15
- package/hooks/useScrollTo.js +7 -5
- package/hooks/useTraceUpdate.js +4 -3
- package/hooks/useUpdateEffect.js +3 -3
- 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 -32
- package/node/Carousel/index.js +1 -1
- package/node/Collapsable/index.js +1 -1
- package/node/Debug/Debug.js +7 -20
- package/node/Debug/index.js +1 -1
- package/node/Details/Details.js +24 -22
- package/node/Details/index.js +1 -1
- 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 +20 -18
- package/node/Form/index.js +1 -1
- package/node/Form/sc/bare.js +12 -22
- 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 +23 -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 +8 -7
- package/node/Forms/index.js +1 -1
- 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 -49
- 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 +16 -14
- package/node/Tabs/index.js +1 -1
- package/node/Tabs/tw/bare.js +9 -8
- package/node/Tabs/tw/material.js +11 -7
- package/node/Tabs/useTabs.js +19 -19
- 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 +1 -1
- package/node/helpers/classed.js +22 -19
- package/node/helpers/extend-component.js +7 -7
- package/node/helpers/index.js +1 -1
- package/node/hooks/index.js +1 -1
- package/node/hooks/useAsyncFn.js +20 -13
- package/node/hooks/useDateLocale.js +23 -37
- package/node/hooks/useEffectOnce.js +2 -2
- package/node/hooks/useFirstMountState.js +2 -2
- package/node/hooks/useFocus.js +4 -4
- package/node/hooks/useId.js +4 -3
- package/node/hooks/useIsomorphicLayoutEffect.js +2 -2
- package/node/hooks/useMount.js +3 -3
- package/node/hooks/useMountedState.js +5 -5
- package/node/hooks/usePrevious.js +3 -3
- package/node/hooks/useScrollPosition.js +23 -18
- package/node/hooks/useScrollTo.js +9 -7
- package/node/hooks/useTraceUpdate.js +5 -4
- package/node/hooks/useUpdateEffect.js +5 -5
- 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 +1 -1
- package/node/scm/index.js +1 -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 +1 -1
- package/node/twm/index.js +1 -1
- package/package.json +3 -2
- 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 +20 -18
- package/styles/theme.js +11 -11
package/node/Calendar/utils.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.processEventsInView = exports.addCalendarEvents = exports.mergeCalendarEvents = exports.isTodayInView = exports.getNextDate = exports.getPrevDate = exports.getEndDate = exports.getStartDate = exports.getDisplayTime = exports.getEventTimestamp = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var isWithinInterval_1 = tslib_1.__importDefault(require("date-fns/isWithinInterval"));
|
|
6
|
+
var endOfMonth_1 = tslib_1.__importDefault(require("date-fns/endOfMonth"));
|
|
7
|
+
var startOfWeek_1 = tslib_1.__importDefault(require("date-fns/startOfWeek"));
|
|
8
|
+
var endOfWeek_1 = tslib_1.__importDefault(require("date-fns/endOfWeek"));
|
|
9
|
+
var subMonths_1 = tslib_1.__importDefault(require("date-fns/subMonths"));
|
|
10
|
+
var addMonths_1 = tslib_1.__importDefault(require("date-fns/addMonths"));
|
|
11
|
+
var subWeeks_1 = tslib_1.__importDefault(require("date-fns/subWeeks"));
|
|
12
|
+
var addWeeks_1 = tslib_1.__importDefault(require("date-fns/addWeeks"));
|
|
13
|
+
var addDays_1 = tslib_1.__importDefault(require("date-fns/addDays"));
|
|
14
14
|
function getEventTimestamp(dateLike) {
|
|
15
|
-
|
|
15
|
+
var date = new Date(dateLike);
|
|
16
16
|
date.setHours(0, 0, 0, 0);
|
|
17
17
|
return date.valueOf() / 1000;
|
|
18
18
|
}
|
|
@@ -36,7 +36,7 @@ function getStartDate(date, view) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.getStartDate = getStartDate;
|
|
38
38
|
function getEndDate(start, view) {
|
|
39
|
-
|
|
39
|
+
var end = start;
|
|
40
40
|
if (view === "month") {
|
|
41
41
|
end = (0, endOfMonth_1.default)(start);
|
|
42
42
|
}
|
|
@@ -62,155 +62,153 @@ function getNextDate(date, view) {
|
|
|
62
62
|
}
|
|
63
63
|
exports.getNextDate = getNextDate;
|
|
64
64
|
function isTodayInView(start, end) {
|
|
65
|
-
return (0, isWithinInterval_1.default)(new Date(), { start, end });
|
|
65
|
+
return (0, isWithinInterval_1.default)(new Date(), { start: start, end: end });
|
|
66
66
|
}
|
|
67
67
|
exports.isTodayInView = isTodayInView;
|
|
68
68
|
function mergeCalendarEvents(first, second) {
|
|
69
|
-
|
|
69
|
+
var all = {};
|
|
70
70
|
addCalendarEvents(first, all);
|
|
71
71
|
addCalendarEvents(second, all);
|
|
72
72
|
return all;
|
|
73
73
|
}
|
|
74
74
|
exports.mergeCalendarEvents = mergeCalendarEvents;
|
|
75
75
|
function addCalendarEvents(toAdd, toExtend) {
|
|
76
|
-
for (
|
|
77
|
-
|
|
78
|
-
toExtend[id] =
|
|
76
|
+
for (var id in toAdd) {
|
|
77
|
+
var event_1 = toAdd[id];
|
|
78
|
+
toExtend[id] = event_1;
|
|
79
79
|
}
|
|
80
80
|
return toExtend;
|
|
81
81
|
}
|
|
82
82
|
exports.addCalendarEvents = addCalendarEvents;
|
|
83
83
|
function getEventsByTimestamp(events) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
var output = {};
|
|
85
|
+
var _loop_1 = function (uid) {
|
|
86
|
+
var event_2 = events[uid];
|
|
87
|
+
event_2.days.forEach(function (timestamp) {
|
|
88
88
|
output[timestamp] = (output[timestamp] || {});
|
|
89
|
-
output[timestamp][uid] =
|
|
89
|
+
output[timestamp][uid] = event_2;
|
|
90
90
|
});
|
|
91
|
+
};
|
|
92
|
+
for (var uid in events) {
|
|
93
|
+
_loop_1(uid);
|
|
91
94
|
}
|
|
92
95
|
return output;
|
|
93
96
|
}
|
|
94
97
|
function getSortedEvents(events) {
|
|
95
|
-
|
|
96
|
-
for (
|
|
98
|
+
var output = [];
|
|
99
|
+
for (var uid in events) {
|
|
97
100
|
output.push(events[uid]);
|
|
98
101
|
}
|
|
99
102
|
// sort events first multi, then all day then by start then by created date
|
|
100
|
-
output.sort((a, b)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
output.sort(function (a, b) {
|
|
104
|
+
var multi = Number(b.multi) - Number(a.multi);
|
|
105
|
+
var allDay = Number(b.allDay) - Number(a.allDay);
|
|
106
|
+
var start = a.start.getTime() - b.start.getTime();
|
|
107
|
+
var created = a.created.getTime() - b.created.getTime();
|
|
105
108
|
return multi || allDay || start || created;
|
|
106
109
|
});
|
|
107
110
|
return output;
|
|
108
111
|
}
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
var FREE_SLOT = 0;
|
|
113
|
+
var BUSY_SLOT = 1;
|
|
111
114
|
function processEventsInView(eventsMap, calendarView, month, weeks) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
props: { key:
|
|
115
|
+
var eventsByTimestamp = getEventsByTimestamp(eventsMap);
|
|
116
|
+
var eventsList = getSortedEvents(eventsMap);
|
|
117
|
+
var todayDate = new Date();
|
|
118
|
+
var todayTimestamp = getEventTimestamp(todayDate);
|
|
119
|
+
var startedAtTopMap = {};
|
|
120
|
+
var viewWeeks = [];
|
|
121
|
+
var _loop_2 = function (weekIdx) {
|
|
122
|
+
var viewWeek = {
|
|
123
|
+
props: { key: "week.".concat(weekIdx) },
|
|
121
124
|
days: [],
|
|
122
125
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
for (
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
$isToday,
|
|
134
|
-
$isOutOfRange,
|
|
126
|
+
var weekStartDate = weeks[weekIdx];
|
|
127
|
+
var weekStartDay = weekStartDate.getDate();
|
|
128
|
+
var weekStartTimestamp = getEventTimestamp(new Date(weekStartDate));
|
|
129
|
+
var weekEndTimestamp = getEventTimestamp((0, addDays_1.default)(new Date(weekStartDate), 6));
|
|
130
|
+
for (var dayNumber = 0; dayNumber < 7; dayNumber++) {
|
|
131
|
+
var dayDate = new Date(new Date(weekStartDate).setDate(weekStartDay + dayNumber));
|
|
132
|
+
var dayTimestamp = getEventTimestamp(dayDate);
|
|
133
|
+
var $isToday = todayTimestamp === dayTimestamp;
|
|
134
|
+
var $isOutOfRange = calendarView === "month" && dayDate.getMonth() !== month;
|
|
135
|
+
var contextualProps = {
|
|
136
|
+
$isToday: $isToday,
|
|
137
|
+
$isOutOfRange: $isOutOfRange,
|
|
135
138
|
};
|
|
136
|
-
|
|
137
|
-
props: { key:
|
|
139
|
+
var viewDay = {
|
|
140
|
+
props: tslib_1.__assign({ key: "day.".concat(dayTimestamp) }, contextualProps),
|
|
138
141
|
timestamp: dayTimestamp + "",
|
|
139
142
|
label: dayDate.getDate() + "",
|
|
140
143
|
events: [],
|
|
141
144
|
};
|
|
142
145
|
// check that we have events in this day
|
|
143
|
-
if (eventsByTimestamp
|
|
144
|
-
|
|
145
|
-
for (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (!
|
|
146
|
+
if (eventsByTimestamp === null || eventsByTimestamp === void 0 ? void 0 : eventsByTimestamp[dayTimestamp]) {
|
|
147
|
+
var verticalSlots = Object.keys(eventsByTimestamp[dayTimestamp]).map(function () { return FREE_SLOT; });
|
|
148
|
+
for (var eventIdx = 0; eventIdx < eventsList.length; eventIdx++) {
|
|
149
|
+
var event_3 = eventsList[eventIdx];
|
|
150
|
+
var width = 1;
|
|
151
|
+
var top_1 = 0;
|
|
152
|
+
var firstOfMulti = void 0;
|
|
153
|
+
if (!event_3.daysMap[dayTimestamp]) {
|
|
151
154
|
continue;
|
|
152
155
|
}
|
|
153
156
|
// only for multi days events:
|
|
154
|
-
if (
|
|
157
|
+
if (event_3.multi) {
|
|
155
158
|
// filter out the days outside of the current week view to avoid
|
|
156
159
|
// making a multi-days event chip wider than the week row or shorter
|
|
157
160
|
// than it should be (when event spans across weeks)
|
|
158
|
-
width =
|
|
161
|
+
width = event_3.days.filter(function (t) { return t >= weekStartTimestamp && t <= weekEndTimestamp; }).length;
|
|
159
162
|
// flag the first day of multi-days events, consider that an event
|
|
160
163
|
// might start in a day earlier (hence outside) of the current
|
|
161
164
|
// week/month view, so we always check for Mondays (dayNumber === 0)
|
|
162
|
-
if (
|
|
165
|
+
if (event_3.days.indexOf(dayTimestamp) === 0 || dayNumber === 0) {
|
|
163
166
|
firstOfMulti = true;
|
|
164
167
|
}
|
|
165
168
|
}
|
|
166
169
|
// if we already have the information on when the event has been
|
|
167
170
|
// vertically positioned use that index
|
|
168
|
-
if (startedAtTopMap[
|
|
169
|
-
|
|
171
|
+
if (startedAtTopMap[event_3.uid]) {
|
|
172
|
+
top_1 = startedAtTopMap[event_3.uid];
|
|
170
173
|
}
|
|
171
174
|
else {
|
|
172
175
|
// now look for a free slot and use its index as `top`
|
|
173
|
-
for (
|
|
174
|
-
|
|
176
|
+
for (var verticalIdx = 0; verticalIdx < verticalSlots.length; verticalIdx++) {
|
|
177
|
+
var freeOrBusy = verticalSlots[verticalIdx];
|
|
175
178
|
if (freeOrBusy !== BUSY_SLOT) {
|
|
176
|
-
|
|
179
|
+
top_1 = verticalIdx;
|
|
177
180
|
break;
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
// now mark the slot as busy
|
|
182
|
-
verticalSlots[
|
|
185
|
+
verticalSlots[top_1] = BUSY_SLOT;
|
|
183
186
|
// store the slot vertical position consistently for multi-days events
|
|
184
187
|
if (firstOfMulti) {
|
|
185
|
-
startedAtTopMap[
|
|
188
|
+
startedAtTopMap[event_3.uid] = top_1;
|
|
186
189
|
}
|
|
187
190
|
// push the event, they will be sorted later
|
|
188
|
-
viewDay.events.push({
|
|
189
|
-
key: `event.${dayTimestamp}-${top}`,
|
|
190
|
-
...contextualProps,
|
|
191
|
-
...event,
|
|
192
|
-
isPast: todayDate > event.end,
|
|
193
|
-
firstOfMulti,
|
|
194
|
-
top,
|
|
195
|
-
width,
|
|
196
|
-
});
|
|
191
|
+
viewDay.events.push(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ key: "event.".concat(dayTimestamp, "-").concat(top_1) }, contextualProps), event_3), { isPast: todayDate > event_3.end, firstOfMulti: firstOfMulti, top: top_1, width: width }));
|
|
197
192
|
}
|
|
198
193
|
// fill the empty slots with events' placeholders
|
|
199
|
-
for (
|
|
194
|
+
for (var i = 0; i < verticalSlots.length; i++) {
|
|
200
195
|
if (verticalSlots[i] !== BUSY_SLOT) {
|
|
201
196
|
viewDay.events.push({
|
|
202
|
-
key:
|
|
197
|
+
key: "event.".concat(dayTimestamp, "-").concat(i, "}"),
|
|
203
198
|
placeholder: true,
|
|
204
199
|
top: i,
|
|
205
200
|
});
|
|
206
201
|
}
|
|
207
202
|
}
|
|
208
203
|
// sort events and events placeholders by top position
|
|
209
|
-
viewDay.events.sort((a, b)
|
|
204
|
+
viewDay.events.sort(function (a, b) { return a.top - b.top; });
|
|
210
205
|
}
|
|
211
206
|
viewWeek.days.push(viewDay);
|
|
212
207
|
}
|
|
213
208
|
viewWeeks.push(viewWeek);
|
|
209
|
+
};
|
|
210
|
+
for (var weekIdx = 0; weekIdx < weeks.length; weekIdx++) {
|
|
211
|
+
_loop_2(weekIdx);
|
|
214
212
|
}
|
|
215
213
|
return viewWeeks;
|
|
216
214
|
}
|
|
@@ -1,42 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KoineCarouselCss = exports.CarouselCssCol = exports.CarouselCssRow = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.CarouselCssRow = (0, styled_components_1.default)(Grid_1.Row)
|
|
11
|
-
|
|
12
|
-
margin-left:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
padding-right: ${cs === Grid_1.GRID_GUTTER_DEFAULT ? gutter[Grid_1.GRID_GUTTER_DEFAULT] : gutter[Grid_1.GRID_GUTTER_DEFAULT] - gutter[cs]}px;
|
|
16
|
-
`}
|
|
17
|
-
|
|
18
|
-
scroll-behavior: smooth;
|
|
19
|
-
scroll-snap-type: x;
|
|
20
|
-
-ms-overflow-style: none;
|
|
21
|
-
scrollbar-width: none;
|
|
22
|
-
|
|
23
|
-
&::-webkit-scrollbar {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
exports.CarouselCssCol = (0, styled_components_1.default)(Grid_1.Col) `
|
|
28
|
-
${(p) => p.$width && `flex-basis: ${p.$width}px; min-width: ${p.$width}px;`}
|
|
29
|
-
position: relative;
|
|
30
|
-
scroll-snap-align: ${(p) => p.$snap};
|
|
31
|
-
`;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
8
|
+
var Grid_1 = require("../Grid");
|
|
9
|
+
var useId_1 = require("../hooks/useId");
|
|
10
|
+
exports.CarouselCssRow = (0, styled_components_1.default)(Grid_1.Row)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n\n scroll-behavior: smooth;\n scroll-snap-type: x;\n -ms-overflow-style: none;\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n ", "\n\n scroll-behavior: smooth;\n scroll-snap-type: x;\n -ms-overflow-style: none;\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
|
|
11
|
+
var cs = _a.$gutter, gutter = _a.theme.gutter;
|
|
12
|
+
return "\n margin-left: -".concat(cs === Grid_1.GRID_GUTTER_DEFAULT ? gutter[Grid_1.GRID_GUTTER_DEFAULT] : (gutter[Grid_1.GRID_GUTTER_DEFAULT] - gutter[cs]) * 2, "px;\n margin-right: -").concat(cs === Grid_1.GRID_GUTTER_DEFAULT ? gutter[Grid_1.GRID_GUTTER_DEFAULT] : (gutter[Grid_1.GRID_GUTTER_DEFAULT] - gutter[cs]) * 2, "px;\n padding-left: ").concat(cs === Grid_1.GRID_GUTTER_DEFAULT ? gutter[Grid_1.GRID_GUTTER_DEFAULT] : gutter[Grid_1.GRID_GUTTER_DEFAULT] - gutter[cs], "px;\n padding-right: ").concat(cs === Grid_1.GRID_GUTTER_DEFAULT ? gutter[Grid_1.GRID_GUTTER_DEFAULT] : gutter[Grid_1.GRID_GUTTER_DEFAULT] - gutter[cs], "px;\n ");
|
|
13
|
+
});
|
|
14
|
+
exports.CarouselCssCol = (0, styled_components_1.default)(Grid_1.Col)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", "\n position: relative;\n scroll-snap-align: ", ";\n"], ["\n ", "\n position: relative;\n scroll-snap-align: ", ";\n"])), function (p) { return p.$width && "flex-basis: ".concat(p.$width, "px; min-width: ").concat(p.$width, "px;"); }, function (p) { return p.$snap; });
|
|
32
15
|
/**
|
|
33
16
|
* For programmatic usage an example here @see https://stackoverflow.com/a/65902068/9122820
|
|
34
17
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
var KoineCarouselCss = function (_a) {
|
|
19
|
+
var items = _a.items, $gutterRow = _a.$gutterRow, $gutterCol = _a.$gutterCol, _b = _a.$gutter, $gutter = _b === void 0 ? "quarter" : _b, $proportion = _a.$proportion, _c = _a.$snap, $snap = _c === void 0 ? "center" : _c, width = _a.width, children = _a.children, colProps = tslib_1.__rest(_a, ["items", "$gutterRow", "$gutterCol", "$gutter", "$proportion", "$snap", "width", "children"]);
|
|
20
|
+
var slides = children ? react_1.Children.toArray(children) : items;
|
|
21
|
+
var id = (0, useId_1.useId)();
|
|
38
22
|
if (!slides)
|
|
39
23
|
return null;
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(exports.CarouselCssRow, { "$noWrap": true, "$gutter": $gutterRow || $gutter, children: slides.map((_slide, idx)
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(exports.CarouselCssRow, tslib_1.__assign({ "$noWrap": true, "$gutter": $gutterRow || $gutter }, { children: slides.map(function (_slide, idx) { return ((0, jsx_runtime_1.jsx)(exports.CarouselCssCol, tslib_1.__assign({}, colProps, { "$gutter": $gutterCol || $gutter, "$width": width }, { children: slides[idx] }), "CarouselCssCol-".concat(id, "-").concat(idx))); }) })));
|
|
41
25
|
};
|
|
42
26
|
exports.KoineCarouselCss = KoineCarouselCss;
|
|
27
|
+
var templateObject_1, templateObject_2;
|
package/node/Carousel/index.js
CHANGED
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
package/node/Details/Details.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KoineDetails = exports.Content = exports.Body = exports.Summary = exports.Root = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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");
|
|
9
10
|
exports.Root = "details";
|
|
10
11
|
exports.Summary = "summary";
|
|
11
12
|
exports.Body = "div";
|
|
@@ -15,18 +16,19 @@ exports.Content = "div";
|
|
|
15
16
|
*
|
|
16
17
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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)();
|
|
28
30
|
id = id || defaultId;
|
|
29
|
-
|
|
31
|
+
var handleClick = (0, react_1.useCallback)(function () {
|
|
30
32
|
if (hash) {
|
|
31
33
|
window.history.replaceState(null, "", open ? window.location.pathname + window.location.search : hash);
|
|
32
34
|
}
|
|
@@ -34,28 +36,28 @@ const DetailsWithRef = (0, react_1.forwardRef)(function Details({ id, open: prop
|
|
|
34
36
|
onChange();
|
|
35
37
|
}
|
|
36
38
|
if (!isControlled) {
|
|
37
|
-
setStateOpen((prevOpen)
|
|
39
|
+
setStateOpen(function (prevOpen) { return !prevOpen; });
|
|
38
40
|
}
|
|
39
41
|
}, [open, hash, onChange, isControlled]);
|
|
40
|
-
(0, react_1.useEffect)(()
|
|
42
|
+
(0, react_1.useEffect)(function () {
|
|
41
43
|
if (content.current) {
|
|
42
44
|
setHeight(Math.ceil(content.current.offsetHeight));
|
|
43
45
|
}
|
|
44
46
|
}, [winSize, recalc]);
|
|
45
47
|
// deeplink on mount
|
|
46
|
-
(0, react_1.useEffect)(()
|
|
48
|
+
(0, react_1.useEffect)(function () {
|
|
47
49
|
if (!isControlled && hash && window.location.hash === hash) {
|
|
48
50
|
setStateOpen(true);
|
|
49
51
|
}
|
|
50
52
|
}, [hash, isControlled]);
|
|
51
|
-
return ((0, jsx_runtime_1.jsxs)(exports.Root, {
|
|
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
|
|
52
54
|
// ref={content}
|
|
53
|
-
, { "$open": open,
|
|
55
|
+
, tslib_1.__assign({ "$open": open,
|
|
54
56
|
// aria-expanded={open}
|
|
55
57
|
// aria-label={open ? ariaCollapse : ariaExpand}
|
|
56
58
|
style: {
|
|
57
59
|
pointerEvents: open ? "all" : "none",
|
|
58
|
-
}, children: children }) })] }));
|
|
60
|
+
} }, { children: children })) }))] })));
|
|
59
61
|
});
|
|
60
62
|
exports.KoineDetails = (0, helpers_1.extendComponent)(DetailsWithRef, {
|
|
61
63
|
Root: exports.Root,
|
package/node/Details/index.js
CHANGED
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;
|