@soul-refiner/design-system 2.0.0-alpha.8 → 2.0.0-alpha.9
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/dist/src/components/actions/dropdown/dropdown.js +5 -5
- package/dist/src/components/actions/rate/rate.js +2 -2
- package/dist/src/components/actions/switch/switch.js +3 -3
- package/dist/src/components/actions/toggle/toggle.js +4 -4
- package/dist/src/components/actions/upload/upload.js +3 -3
- package/dist/src/components/atoms/box/box.js +2 -2
- package/dist/src/components/atoms/typography/display.js +2 -2
- package/dist/src/components/atoms/typography/heading.js +2 -2
- package/dist/src/components/atoms/typography/paragraph.js +2 -2
- package/dist/src/components/atoms/typography/typography.js +2 -2
- package/dist/src/components/card/action/action.js +6 -6
- package/dist/src/components/card/audio/audio.js +5 -5
- package/dist/src/components/card/feature/feature.js +7 -7
- package/dist/src/components/card/meeting/meeting.js +6 -6
- package/dist/src/components/card/person/person.js +5 -5
- package/dist/src/components/card/price/price.js +4 -4
- package/dist/src/components/card/regular/regular.js +2 -2
- package/dist/src/components/card/styles.js +2 -2
- package/dist/src/components/card/video/video.js +5 -5
- package/dist/src/components/card/written/written.js +5 -5
- package/dist/src/components/custom/courses_selection/courses_selection.js +5 -5
- package/dist/src/components/custom/users_selection/users_selection.js +6 -6
- package/dist/src/components/editor/editor.js +2 -2
- package/dist/src/components/editor/navbar/button_modal.js +2 -2
- package/dist/src/components/editor/navbar/navbar.js +6 -6
- package/dist/src/components/editor/plugins/blocks/buttons.js +3 -3
- package/dist/src/components/editor/plugins/blocks/qa.js +2 -2
- package/dist/src/components/editor/plugins/leafs/link.js +2 -2
- package/dist/src/components/editor/simple_editor/navbar.js +4 -4
- package/dist/src/components/editor/simple_editor/simple_editor.js +3 -3
- package/dist/src/components/editor/styles/menu_button.js +2 -2
- package/dist/src/components/feedback/badge/badge.js +3 -3
- package/dist/src/components/feedback/banner/banner.js +2 -2
- package/dist/src/components/feedback/chip/chip.js +3 -3
- package/dist/src/components/feedback/notification/notification.js +2 -2
- package/dist/src/components/feedback/progress/progress.js +5 -5
- package/dist/src/components/feedback/toast/toast.js +3 -3
- package/dist/src/components/iconography/avatar/avatar.js +6 -6
- package/dist/src/components/iconography/icon/icon.js +2 -2
- package/dist/src/components/input/calendar/calendar.js +13 -13
- package/dist/src/components/input/checkbox/checkbox.js +2 -2
- package/dist/src/components/input/date/date.js +13 -13
- package/dist/src/components/input/filter/filter_option.js +3 -3
- package/dist/src/components/input/radio/radio.js +3 -3
- package/dist/src/components/input/search/search.js +4 -4
- package/dist/src/components/input/select/select.js +3 -3
- package/dist/src/components/input/text_area/text_area.js +6 -6
- package/dist/src/components/input/text_input/text_input.js +7 -7
- package/dist/src/components/input/time/time.js +3 -3
- package/dist/src/components/media/video-player/playlist-item.js +3 -3
- package/dist/src/components/media/video-player/video.js +6 -6
- package/dist/src/components/navigation/breadcrumb/breadcrumb.js +3 -3
- package/dist/src/components/navigation/inner/inner.js +8 -8
- package/dist/src/components/navigation/tabs/tabs.js +4 -4
- package/dist/src/components/surfaces/accordion/accordion.js +3 -3
- package/dist/src/components/surfaces/calendar_date/calendar_date.js +6 -6
- package/dist/src/components/surfaces/carousel/card/card.js +4 -4
- package/dist/src/components/surfaces/comment/comment.js +10 -10
- package/dist/src/components/surfaces/drawer/drawer.js +6 -6
- package/dist/src/components/surfaces/message/message.js +2 -2
- package/dist/src/components/surfaces/modal/modal.js +3 -3
- package/dist/src/components/surfaces/post/post.js +9 -9
- package/dist/src/components/table/table/table.js +7 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { MONTHS, WEEKDAYS } from '../../../common/date.js';
|
|
5
5
|
import { Button } from '../../actions/button/button.js';
|
|
6
6
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
@@ -208,12 +208,12 @@ const DatePicker = ({ endDate, label, onSelect: parentOnSelect, startDate, }) =>
|
|
|
208
208
|
React__default.createElement(Button, { onClick: handleCancel, size: "small", sx: "width: 80px;", type: "outlined" }, "Cancel"),
|
|
209
209
|
React__default.createElement(Button, { onClick: handleApply, size: "small", sx: "width: 80px;" }, "Apply"))))))));
|
|
210
210
|
};
|
|
211
|
-
const Wrapper = styled.div
|
|
211
|
+
const Wrapper = styled.div `
|
|
212
212
|
position: relative;
|
|
213
213
|
width: fit-content;
|
|
214
214
|
font-family: var(--font-inter);
|
|
215
215
|
`;
|
|
216
|
-
const Trigger = styled.button
|
|
216
|
+
const Trigger = styled.button `
|
|
217
217
|
padding: 12px 24px;
|
|
218
218
|
background-color: #ffffff;
|
|
219
219
|
border: 1px solid var(--color-grey-6);
|
|
@@ -245,7 +245,7 @@ const Trigger = styled.button.withConfig({ displayName: "Trigger", componentId:
|
|
|
245
245
|
border-color: var(--color-blue-3);
|
|
246
246
|
}
|
|
247
247
|
`;
|
|
248
|
-
const DateSelector = styled.div
|
|
248
|
+
const DateSelector = styled.div `
|
|
249
249
|
transform: translateY(26px);
|
|
250
250
|
position: absolute;
|
|
251
251
|
z-index: 5;
|
|
@@ -253,7 +253,7 @@ const DateSelector = styled.div.withConfig({ displayName: "DateSelector", compon
|
|
|
253
253
|
border-radius: 25px;
|
|
254
254
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
|
|
255
255
|
`;
|
|
256
|
-
const InnerWrapper = styled.div
|
|
256
|
+
const InnerWrapper = styled.div `
|
|
257
257
|
display: flex;
|
|
258
258
|
gap: 31px;
|
|
259
259
|
padding: 30px;
|
|
@@ -272,7 +272,7 @@ const InnerWrapper = styled.div.withConfig({ displayName: "InnerWrapper", compon
|
|
|
272
272
|
box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.1);
|
|
273
273
|
}
|
|
274
274
|
`;
|
|
275
|
-
const Left = styled.div
|
|
275
|
+
const Left = styled.div `
|
|
276
276
|
display: flex;
|
|
277
277
|
flex-flow: column nowrap;
|
|
278
278
|
gap: 24px;
|
|
@@ -300,14 +300,14 @@ const Left = styled.div.withConfig({ displayName: "Left", componentId: "sc-bj6v6
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
`;
|
|
303
|
-
const MonthBar = styled.div
|
|
303
|
+
const MonthBar = styled.div `
|
|
304
304
|
display: flex;
|
|
305
305
|
justify-content: space-between;
|
|
306
306
|
align-items: center;
|
|
307
307
|
margin-bottom: 32px;
|
|
308
308
|
user-select: none;
|
|
309
309
|
`;
|
|
310
|
-
const Arrow = styled.button
|
|
310
|
+
const Arrow = styled.button `
|
|
311
311
|
appearance: none;
|
|
312
312
|
border: none;
|
|
313
313
|
outline: none;
|
|
@@ -327,24 +327,24 @@ const Arrow = styled.button.withConfig({ displayName: "Arrow", componentId: "sc-
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
`;
|
|
330
|
-
const WeekdayWrapper = styled.div
|
|
330
|
+
const WeekdayWrapper = styled.div `
|
|
331
331
|
display: flex;
|
|
332
332
|
gap: 32px;
|
|
333
333
|
user-select: none;
|
|
334
334
|
`;
|
|
335
|
-
const Calendar = styled.div
|
|
335
|
+
const Calendar = styled.div `
|
|
336
336
|
display: flex;
|
|
337
337
|
flex-direction: column;
|
|
338
338
|
gap: 32px;
|
|
339
339
|
margin: 32px 0px;
|
|
340
340
|
user-select: none;
|
|
341
341
|
`;
|
|
342
|
-
const Week = styled.div
|
|
342
|
+
const Week = styled.div `
|
|
343
343
|
display: flex;
|
|
344
344
|
gap: 32px;
|
|
345
345
|
border-radius: 24px;
|
|
346
346
|
`;
|
|
347
|
-
const Day = styled.button
|
|
347
|
+
const Day = styled.button `
|
|
348
348
|
outline: none;
|
|
349
349
|
border: none;
|
|
350
350
|
background: transparent;
|
|
@@ -514,7 +514,7 @@ const Day = styled.button.withConfig({ displayName: "Day", componentId: "sc-my4f
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
`;
|
|
517
|
-
const BottomWrapper = styled.div
|
|
517
|
+
const BottomWrapper = styled.div `
|
|
518
518
|
display: flex;
|
|
519
519
|
justify-content: flex-end;
|
|
520
520
|
gap: 18px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Box } from '../../atoms/box/box.js';
|
|
5
5
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
6
6
|
import { Checkbox } from '../checkbox/checkbox.js';
|
|
@@ -18,7 +18,7 @@ const Option = ({ label, onClick, selected, sx, value, checkbox, radio = false,
|
|
|
18
18
|
} }))));
|
|
19
19
|
};
|
|
20
20
|
Option.displayName = 'Filter.Option';
|
|
21
|
-
const OptionWrapper = styled.div
|
|
21
|
+
const OptionWrapper = styled.div `
|
|
22
22
|
position: relative;
|
|
23
23
|
z-index: 1;
|
|
24
24
|
padding: 12px 16px;
|
|
@@ -61,7 +61,7 @@ const Spacer = ({ sx }) => {
|
|
|
61
61
|
return React__default.createElement(SpacerWrapper, { "$sx": sx });
|
|
62
62
|
};
|
|
63
63
|
Spacer.displayName = 'Filter.Spacer';
|
|
64
|
-
const SpacerWrapper = styled.div
|
|
64
|
+
const SpacerWrapper = styled.div `
|
|
65
65
|
width: 100%;
|
|
66
66
|
height: 1px;
|
|
67
67
|
background-color: var(--color-grey-8);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Box } from '../../atoms/box/box.js';
|
|
5
5
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ const Radio = ({ checked = false, disabled, label, onClick, reversed, sx, value,
|
|
|
18
18
|
React__default.createElement(Input, { checked: checked, onClickCapture: handleInputClick, disabled: disabled, type: "radio", value: value, ...rest }),
|
|
19
19
|
React__default.createElement(P, { as: "span" }, label)));
|
|
20
20
|
};
|
|
21
|
-
const Label = styled.label
|
|
21
|
+
const Label = styled.label `
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
gap: 8px;
|
|
@@ -39,7 +39,7 @@ const Label = styled.label.withConfig({ displayName: "Label", componentId: "sc-6
|
|
|
39
39
|
flex-direction: ${({ $reversed }) => ($reversed ? 'row-reverse' : 'row')};
|
|
40
40
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
41
41
|
`;
|
|
42
|
-
const Input = styled.input
|
|
42
|
+
const Input = styled.input `
|
|
43
43
|
appearance: none;
|
|
44
44
|
position: relative;
|
|
45
45
|
height: 20px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Styles } from '../../../common/styles.js';
|
|
5
5
|
import { Close } from '../../../icons/basic/close.js';
|
|
6
6
|
import { Search as Search$1 } from '../../../icons/basic/search.js';
|
|
@@ -49,7 +49,7 @@ const Search = ({ dropdownFilter, onChange, onClearText, onSubmit, placeholder,
|
|
|
49
49
|
React__default.createElement(Separator, null),
|
|
50
50
|
dropdownFilter))));
|
|
51
51
|
};
|
|
52
|
-
const Wrapper = styled.div
|
|
52
|
+
const Wrapper = styled.div `
|
|
53
53
|
${Styles.flex}
|
|
54
54
|
${Styles.padding}
|
|
55
55
|
display: flex;
|
|
@@ -119,7 +119,7 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
|
|
|
119
119
|
`;
|
|
120
120
|
const Input = styled.input.attrs(({ ref }) => ({
|
|
121
121
|
ref: ref,
|
|
122
|
-
}))
|
|
122
|
+
})) `
|
|
123
123
|
flex: 1;
|
|
124
124
|
border-radius: 8px;
|
|
125
125
|
outline: none;
|
|
@@ -133,7 +133,7 @@ const Input = styled.input.attrs(({ ref }) => ({
|
|
|
133
133
|
? 'width: 0px; height: 0px; padding: 0px !important; border: none !important;'
|
|
134
134
|
: ''}
|
|
135
135
|
`;
|
|
136
|
-
const Separator = styled.div
|
|
136
|
+
const Separator = styled.div `
|
|
137
137
|
width: 1px;
|
|
138
138
|
height: 20px;
|
|
139
139
|
background-color: var(--color-grey-9);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
5
5
|
|
|
6
6
|
const Select = ({ label, onClick, selected, sx, value, }) => {
|
|
@@ -9,7 +9,7 @@ const Select = ({ label, onClick, selected, sx, value, }) => {
|
|
|
9
9
|
React__default.createElement(SelectBox, { "$selected": selected }),
|
|
10
10
|
React__default.createElement(P, { as: "div" }, label)));
|
|
11
11
|
};
|
|
12
|
-
const Label = styled.div
|
|
12
|
+
const Label = styled.div `
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-flow: row nowrap;
|
|
15
15
|
gap: 24px;
|
|
@@ -22,7 +22,7 @@ const Label = styled.div.withConfig({ displayName: "Label", componentId: "sc-9oc
|
|
|
22
22
|
}
|
|
23
23
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
24
24
|
`;
|
|
25
|
-
const SelectBox = styled.div
|
|
25
|
+
const SelectBox = styled.div `
|
|
26
26
|
position: relative;
|
|
27
27
|
width: 18px;
|
|
28
28
|
height: 18px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Box } from '../../atoms/box/box.js';
|
|
5
5
|
import { CheckmarkCircle } from '../../../icons/basic/checkmark_circle.js';
|
|
6
6
|
import { AlertCircle } from '../../../icons/notifications/alert_circle.js';
|
|
@@ -30,7 +30,7 @@ const TextArea = ({ bg = 'var(--color-blue-10)', disabled, helperText, icon, lab
|
|
|
30
30
|
" / ",
|
|
31
31
|
maxCharacters)))));
|
|
32
32
|
};
|
|
33
|
-
const Label = styled.label
|
|
33
|
+
const Label = styled.label `
|
|
34
34
|
width: 100%;
|
|
35
35
|
display: flex;
|
|
36
36
|
gap: 4px;
|
|
@@ -54,7 +54,7 @@ const Label = styled.label.withConfig({ displayName: "Label", componentId: "sc-1
|
|
|
54
54
|
|
|
55
55
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
56
56
|
`;
|
|
57
|
-
const InputWrapper = styled.div
|
|
57
|
+
const InputWrapper = styled.div `
|
|
58
58
|
min-width: ${({ $minWidth }) => ($minWidth ? $minWidth + 'px;' : '')}
|
|
59
59
|
display: flex;
|
|
60
60
|
gap: 8px;
|
|
@@ -76,7 +76,7 @@ const InputWrapper = styled.div.withConfig({ displayName: "InputWrapper", compon
|
|
|
76
76
|
${({ $successful }) => $successful ? 'border-color: var(--color-green-3) !important;' : ''}
|
|
77
77
|
${({ $warning }) => $warning ? 'border-color: var(--color-red-4) !important;' : ''}
|
|
78
78
|
`;
|
|
79
|
-
const TextAreaElement = styled.textarea
|
|
79
|
+
const TextAreaElement = styled.textarea `
|
|
80
80
|
min-width: ${({ $minHeight }) => ($minHeight ? $minHeight - 24 + 'px;' : '')}
|
|
81
81
|
padding: 0px;
|
|
82
82
|
flex: 1;
|
|
@@ -95,13 +95,13 @@ const TextAreaElement = styled.textarea.withConfig({ displayName: "TextAreaEleme
|
|
|
95
95
|
|
|
96
96
|
${({ $resize }) => ($resize ? '' : 'resize: none;')}
|
|
97
97
|
`;
|
|
98
|
-
const HelperText = styled.p
|
|
98
|
+
const HelperText = styled.p `
|
|
99
99
|
color: var(--color-grey-4);
|
|
100
100
|
font-family: var(--font-inter);
|
|
101
101
|
font-size: 14px;
|
|
102
102
|
line-height: 20px;
|
|
103
103
|
`;
|
|
104
|
-
const MaxCharactersText = styled.p
|
|
104
|
+
const MaxCharactersText = styled.p `
|
|
105
105
|
text-align: right;
|
|
106
106
|
color: var(--color-grey-6);
|
|
107
107
|
font-family: var(--font-inter);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Chip } from '../../feedback/chip/chip.js';
|
|
5
5
|
import { CheckmarkCircle } from '../../../icons/basic/checkmark_circle.js';
|
|
6
6
|
import { AlertCircle } from '../../../icons/notifications/alert_circle.js';
|
|
@@ -65,7 +65,7 @@ const TextInput = ({ bg = 'var(--color-blue-10)', disabled, helperText, icon, la
|
|
|
65
65
|
warning && React__default.createElement(AlertCircle, { color: "red-4" })),
|
|
66
66
|
helperText && React__default.createElement(HelperText, { "$size": size }, helperText)));
|
|
67
67
|
};
|
|
68
|
-
const Label = styled.div
|
|
68
|
+
const Label = styled.div `
|
|
69
69
|
width: 100%;
|
|
70
70
|
display: flex;
|
|
71
71
|
gap: 4px;
|
|
@@ -89,7 +89,7 @@ const Label = styled.div.withConfig({ displayName: "Label", componentId: "sc-1yi
|
|
|
89
89
|
|
|
90
90
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
91
91
|
`;
|
|
92
|
-
const InputWrapper = styled.div
|
|
92
|
+
const InputWrapper = styled.div `
|
|
93
93
|
display: flex;
|
|
94
94
|
gap: 8px;
|
|
95
95
|
align-items: center;
|
|
@@ -110,7 +110,7 @@ const InputWrapper = styled.div.withConfig({ displayName: "InputWrapper", compon
|
|
|
110
110
|
${({ $successful }) => $successful ? 'border-color: var(--color-green-3) !important;' : ''}
|
|
111
111
|
${({ $warning }) => $warning ? 'border-color: var(--color-red-4) !important;' : ''}
|
|
112
112
|
`;
|
|
113
|
-
const Input = styled.input
|
|
113
|
+
const Input = styled.input `
|
|
114
114
|
padding: 0px;
|
|
115
115
|
flex: 1;
|
|
116
116
|
font-family: var(--font-inter);
|
|
@@ -128,13 +128,13 @@ const Input = styled.input.withConfig({ displayName: "Input", componentId: "sc-1
|
|
|
128
128
|
|
|
129
129
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
130
130
|
`;
|
|
131
|
-
const HelperText = styled.span
|
|
131
|
+
const HelperText = styled.span `
|
|
132
132
|
color: var(--color-grey-4);
|
|
133
133
|
font-family: var(--font-inter);
|
|
134
134
|
font-size: ${({ $size }) => ($size === 'small' ? 12 : 14)}px;
|
|
135
135
|
line-height: ${({ $size }) => ($size === 'small' ? 16 : 20)}px;
|
|
136
136
|
`;
|
|
137
|
-
const MaxCharactersText = styled.span
|
|
137
|
+
const MaxCharactersText = styled.span `
|
|
138
138
|
color: var(--color-grey-6);
|
|
139
139
|
font-family: var(--font-inter);
|
|
140
140
|
font-size: 14px;
|
|
@@ -142,7 +142,7 @@ const MaxCharactersText = styled.span.withConfig({ displayName: "MaxCharactersTe
|
|
|
142
142
|
font-weight: 400;
|
|
143
143
|
line-height: 20px;
|
|
144
144
|
`;
|
|
145
|
-
const MultipleInputWrapper = styled.form
|
|
145
|
+
const MultipleInputWrapper = styled.form `
|
|
146
146
|
display: flex;
|
|
147
147
|
flex-flow: row wrap;
|
|
148
148
|
gap: 8px 16px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Dropdown } from '../../actions/dropdown/dropdown.js';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import styled from 'styled-components';
|
|
4
|
+
import { styled } from 'styled-components';
|
|
5
5
|
import { Clock } from '../../../icons/time/clock.js';
|
|
6
6
|
|
|
7
7
|
const Time = ({ selectedTime, setTime, selectedPeriod, setPeriod, }) => {
|
|
@@ -34,7 +34,7 @@ const Time = ({ selectedTime, setTime, selectedPeriod, setPeriod, }) => {
|
|
|
34
34
|
setTime(value);
|
|
35
35
|
}, additionalOnChange: setPeriod, defaultValue: selectedTime, defaultAdditionalValue: selectedPeriod }));
|
|
36
36
|
};
|
|
37
|
-
const InputWrapper = styled.div
|
|
37
|
+
const InputWrapper = styled.div `
|
|
38
38
|
width: fit-content;
|
|
39
39
|
display: flex;
|
|
40
40
|
gap: 8px;
|
|
@@ -53,7 +53,7 @@ const InputWrapper = styled.div.withConfig({ displayName: "InputWrapper", compon
|
|
|
53
53
|
border-color: var(--color-primary-blue-2);
|
|
54
54
|
}
|
|
55
55
|
`;
|
|
56
|
-
const Input = styled.input
|
|
56
|
+
const Input = styled.input `
|
|
57
57
|
max-width: 120px;
|
|
58
58
|
padding: 0px;
|
|
59
59
|
flex: 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import Image from 'next/image';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Box } from '../../atoms/box/box.js';
|
|
5
5
|
import { SecToDuration } from '../../atoms/seconds_to_duration/seconds_to_duration.js';
|
|
6
6
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
@@ -18,7 +18,7 @@ const PlaylistItem = ({ duration, onClick, playable, progress = 0, shortDescript
|
|
|
18
18
|
duration && (React__default.createElement(P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, sx: "flex-shrink: 0;" },
|
|
19
19
|
React__default.createElement(SecToDuration, { seconds: duration })))));
|
|
20
20
|
};
|
|
21
|
-
const Wrapper = styled.div
|
|
21
|
+
const Wrapper = styled.div `
|
|
22
22
|
width: 100%;
|
|
23
23
|
flex: 0 1 auto;
|
|
24
24
|
display: flex;
|
|
@@ -31,7 +31,7 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
|
|
|
31
31
|
const ProgressBar = ({ progressPercent }) => (React__default.createElement(ProgressBarSvg, { viewBox: "0 0 133 2", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
32
32
|
React__default.createElement("rect", { width: 133 * progressPercent, height: "2", fill: "var(--color-primary-blue-2)" }),
|
|
33
33
|
React__default.createElement("rect", { x: 133 * progressPercent, width: 133 - 133 * progressPercent, height: "2", fill: "var(--color-grey-8)" })));
|
|
34
|
-
const ProgressBarSvg = styled.svg
|
|
34
|
+
const ProgressBarSvg = styled.svg `
|
|
35
35
|
width: 133px;
|
|
36
36
|
position: absolute;
|
|
37
37
|
bottom: 0px;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import ReactPlayer from 'react-player';
|
|
5
|
-
import styled from 'styled-components';
|
|
5
|
+
import { styled } from 'styled-components';
|
|
6
6
|
import { Box } from '../../atoms/box/box.js';
|
|
7
7
|
import { H } from '../../atoms/typography/heading.js';
|
|
8
8
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
@@ -91,7 +91,7 @@ const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProg
|
|
|
91
91
|
React__default.createElement(Button, { onClick: toggleShowingAll, size: "small", sx: "background-color: var(--color-grey-2); border-color: var(--color-grey-8); color: var(--color-grey-8);", type: "text" }, showingAll ? 'Collapse' : 'View all')),
|
|
92
92
|
React__default.createElement(VerticalPlaylistWrapper, { "$showingAll": showingAll }, playlist.map((playlistItem, index) => (React__default.createElement(PlaylistItem, { key: playlistItem.id, duration: playlistItem.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem.progress, shortDescription: playlistItem.shortDescription, thumbnail: playlistItem.thumbnail, title: playlistItem.title })))))))));
|
|
93
93
|
};
|
|
94
|
-
const Wrapper = styled.div
|
|
94
|
+
const Wrapper = styled.div `
|
|
95
95
|
display: flex;
|
|
96
96
|
justify-content: center;
|
|
97
97
|
background-color: var(--color-grey-0);
|
|
@@ -102,7 +102,7 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
|
|
|
102
102
|
|
|
103
103
|
${({ $orientation }) => $orientation === 'vertical' ? 'max-width: 960px; height: max-content;' : ''}
|
|
104
104
|
`;
|
|
105
|
-
const InnerWrapper = styled.div
|
|
105
|
+
const InnerWrapper = styled.div `
|
|
106
106
|
max-width: 2284px;
|
|
107
107
|
flex: 1;
|
|
108
108
|
display: flex;
|
|
@@ -131,7 +131,7 @@ const InnerWrapper = styled.div.withConfig({ displayName: "InnerWrapper", compon
|
|
|
131
131
|
flex: 3;
|
|
132
132
|
}`}
|
|
133
133
|
`;
|
|
134
|
-
const Side = styled.div
|
|
134
|
+
const Side = styled.div `
|
|
135
135
|
position: relative;
|
|
136
136
|
box-sizing: border-box;
|
|
137
137
|
display: flex;
|
|
@@ -139,7 +139,7 @@ const Side = styled.div.withConfig({ displayName: "Side", componentId: "sc-1oic8
|
|
|
139
139
|
padding: 24px;
|
|
140
140
|
gap: 24px;
|
|
141
141
|
`;
|
|
142
|
-
const HorizontalPlaylistWrapper = styled.div
|
|
142
|
+
const HorizontalPlaylistWrapper = styled.div `
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: column;
|
|
145
145
|
gap: 24px;
|
|
@@ -165,7 +165,7 @@ const HorizontalPlaylistWrapper = styled.div.withConfig({ displayName: "Horizont
|
|
|
165
165
|
opacity: 30%;
|
|
166
166
|
}
|
|
167
167
|
`;
|
|
168
|
-
const VerticalPlaylistWrapper = styled.div
|
|
168
|
+
const VerticalPlaylistWrapper = styled.div `
|
|
169
169
|
display: flex;
|
|
170
170
|
flex-direction: column;
|
|
171
171
|
gap: 24px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { Box } from '../../atoms/box/box.js';
|
|
6
6
|
import { ChevronLeft } from '../../../icons/arrow/chevron_left.js';
|
|
@@ -38,7 +38,7 @@ const BreadcrumbItem = ({ avatar, children, href, icon, iconColor = 'blue', onCl
|
|
|
38
38
|
};
|
|
39
39
|
Breadcrumb.Item = BreadcrumbItem;
|
|
40
40
|
BreadcrumbItem.displayName = 'Breadcrumb.Item';
|
|
41
|
-
const Item = styled(Link)
|
|
41
|
+
const Item = styled(Link) `
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-flow: row nowrap;
|
|
44
44
|
align-items: center;
|
|
@@ -98,7 +98,7 @@ const Item = styled(Link).withConfig({ displayName: "Item", componentId: "sc-1os
|
|
|
98
98
|
line-height: 24px;
|
|
99
99
|
`}
|
|
100
100
|
`;
|
|
101
|
-
const IconWrapper = styled.div
|
|
101
|
+
const IconWrapper = styled.div `
|
|
102
102
|
background-color: ${({ $color }) => `var(--color-hue-${$color}-2)`};
|
|
103
103
|
height: 48px;
|
|
104
104
|
width: 48px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
2
|
+
import { styled } from 'styled-components';
|
|
3
3
|
import Link from 'next/link';
|
|
4
4
|
import { Button } from '../../actions/button/button.js';
|
|
5
5
|
import { Drawer } from '../../surfaces/drawer/drawer.js';
|
|
@@ -49,7 +49,7 @@ const InnerNav = ({ children }) => {
|
|
|
49
49
|
React__default.createElement("div", null, elementsByType['Dropdown']),
|
|
50
50
|
React__default.createElement("div", null, elementsByType['Misc'])));
|
|
51
51
|
};
|
|
52
|
-
const NavWrapper = styled.nav
|
|
52
|
+
const NavWrapper = styled.nav `
|
|
53
53
|
height: 100%;
|
|
54
54
|
width: 365px;
|
|
55
55
|
padding: 24px 12px 24px 16px;
|
|
@@ -62,7 +62,7 @@ const InnerNavItem = ({ active, href, icon, label, sx, onClick, }) => {
|
|
|
62
62
|
icon,
|
|
63
63
|
label));
|
|
64
64
|
};
|
|
65
|
-
const Item = styled(Link)
|
|
65
|
+
const Item = styled(Link) `
|
|
66
66
|
padding: 14px 16px;
|
|
67
67
|
display: flex;
|
|
68
68
|
gap: 16px;
|
|
@@ -99,19 +99,19 @@ const InnerNavDropdown = ({ children, icon, label, open, sx, onClick, }) => {
|
|
|
99
99
|
!open && React__default.createElement(ChevronDown, { size: 16 }))),
|
|
100
100
|
open && React__default.createElement(DropdownContent, null, children)));
|
|
101
101
|
};
|
|
102
|
-
const DropdownContent = styled.div
|
|
102
|
+
const DropdownContent = styled.div `
|
|
103
103
|
& > a,
|
|
104
104
|
& > button {
|
|
105
105
|
padding-left: 40px;
|
|
106
106
|
}
|
|
107
107
|
`;
|
|
108
|
-
const DropdownTriggerWrapper = styled.div
|
|
108
|
+
const DropdownTriggerWrapper = styled.div `
|
|
109
109
|
display: flex;
|
|
110
110
|
justify-content: space-between;
|
|
111
111
|
align-items: center;
|
|
112
112
|
flex: 1;
|
|
113
113
|
`;
|
|
114
|
-
const DropdownItem = styled.a
|
|
114
|
+
const DropdownItem = styled.a `
|
|
115
115
|
padding: 14px 16px;
|
|
116
116
|
display: flex;
|
|
117
117
|
gap: 16px;
|
|
@@ -144,7 +144,7 @@ const InnerNavBackButton = ({ href, label, sx }) => {
|
|
|
144
144
|
React__default.createElement(ChevronLeft, { size: 24 })),
|
|
145
145
|
label));
|
|
146
146
|
};
|
|
147
|
-
const BackButton = styled(Link)
|
|
147
|
+
const BackButton = styled(Link) `
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
150
|
gap: 8px;
|
|
@@ -171,7 +171,7 @@ InnerNavBackButton.displayName = 'InnerNav.BackButton';
|
|
|
171
171
|
const InnerNavHeader = ({ children }) => {
|
|
172
172
|
return React__default.createElement(HeaderWrapper, null, children);
|
|
173
173
|
};
|
|
174
|
-
const HeaderWrapper = styled.div
|
|
174
|
+
const HeaderWrapper = styled.div ``;
|
|
175
175
|
InnerNav.Header = InnerNavHeader;
|
|
176
176
|
InnerNavHeader.displayName = 'InnerNav.Header';
|
|
177
177
|
const InnerNavDrawer = ({ children, label, controlledOpen, onOpenChange, }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
6
6
|
|
|
@@ -50,7 +50,7 @@ const Tabs = ({ activeIndex, items, onChange, size = 'large', sx, }) => {
|
|
|
50
50
|
const id = React__default.useId();
|
|
51
51
|
return (React__default.createElement(Wrapper, { "$sx": sx }, items.map((item, index) => (React__default.createElement(Item, { active: activeIndex === index, color: item?.color, disabled: item?.disabled, href: item?.href, icon: item?.icon, key: id + index.toString(36), label: item.label, onClick: () => onChange && onChange(index), size: size })))));
|
|
52
52
|
};
|
|
53
|
-
const Wrapper = styled.div
|
|
53
|
+
const Wrapper = styled.div `
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-flow: row nowrap;
|
|
56
56
|
align-items: flex-end;
|
|
@@ -75,7 +75,7 @@ const Item = ({ active, color, disabled, href, icon, label, onClick, size = 'lar
|
|
|
75
75
|
icon && React__default.createElement(IconWrapper, { "$bg": bgColor }, icon),
|
|
76
76
|
React__default.createElement(P, { "$fontSize": fontSize, "$lineHeight": lineHeight, "$semiBold": true }, label)));
|
|
77
77
|
};
|
|
78
|
-
const Element = styled(Link)
|
|
78
|
+
const Element = styled(Link) `
|
|
79
79
|
position: relative;
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
@@ -141,7 +141,7 @@ const Element = styled(Link).withConfig({ displayName: "Element", componentId: "
|
|
|
141
141
|
`
|
|
142
142
|
: ''}
|
|
143
143
|
`;
|
|
144
|
-
const IconWrapper = styled.div
|
|
144
|
+
const IconWrapper = styled.div `
|
|
145
145
|
padding: 8px;
|
|
146
146
|
border-radius: 8px;
|
|
147
147
|
background-color: ${({ $bg }) => $bg};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { Box } from '../../atoms/box/box.js';
|
|
5
5
|
import { callAll } from '../../../utils/function.js';
|
|
6
6
|
import { ChevronDown } from '../../../icons/arrow/chevron_down.js';
|
|
@@ -19,7 +19,7 @@ const Accordion = ({ children, sx }) => {
|
|
|
19
19
|
return null;
|
|
20
20
|
}))));
|
|
21
21
|
};
|
|
22
|
-
const Wrapper = styled.div
|
|
22
|
+
const Wrapper = styled.div `
|
|
23
23
|
${({ $sx }) => ($sx ? $sx : '')};
|
|
24
24
|
`;
|
|
25
25
|
const AccordionItem = ({ buttonSx, children, index, sx, trigger, }) => {
|
|
@@ -32,7 +32,7 @@ const AccordionItem = ({ buttonSx, children, index, sx, trigger, }) => {
|
|
|
32
32
|
openIndex === index ? React__default.createElement(ChevronUp, null) : React__default.createElement(ChevronDown, null)),
|
|
33
33
|
React__default.createElement(Box, { sx: openIndex === index ? sx : 'visibility: hidden; height: 0px;' }, children)));
|
|
34
34
|
};
|
|
35
|
-
const TriggerWrapper = styled.button
|
|
35
|
+
const TriggerWrapper = styled.button `
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: space-between;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import { H } from '../../atoms/typography/heading.js';
|
|
5
5
|
import { P } from '../../atoms/typography/paragraph.js';
|
|
6
6
|
|
|
@@ -16,33 +16,33 @@ const CalendarDate = ({ monthAbbreviation, date, dayOfWeek, startTime, endTime,
|
|
|
16
16
|
dayOfWeek && startTime && endTime && (React__default.createElement(TimeContainer, null,
|
|
17
17
|
React__default.createElement(P, { as: "span", "$color": "red-5" }, `${dayOfWeek}, ${startTime} -> ${endTime}`)))));
|
|
18
18
|
};
|
|
19
|
-
const Container = styled.div
|
|
19
|
+
const Container = styled.div `
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
align-items: center;
|
|
23
23
|
|
|
24
24
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
25
25
|
`;
|
|
26
|
-
const CalendarContainer = styled.div
|
|
26
|
+
const CalendarContainer = styled.div `
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
|
|
30
30
|
${({ $size }) => ($size === 'large' ? 'width: 120px;' : 'width: 64px;')}
|
|
31
31
|
`;
|
|
32
|
-
const MonthContainer = styled.div
|
|
32
|
+
const MonthContainer = styled.div `
|
|
33
33
|
background-color: var(--color-red-5);
|
|
34
34
|
border-radius: 16px 16px 0 0;
|
|
35
35
|
|
|
36
36
|
${({ $size }) => $size === 'large' ? 'padding: 8px 16px;' : 'padding: 2px 8px;'}
|
|
37
37
|
`;
|
|
38
|
-
const DateContainer = styled.div
|
|
38
|
+
const DateContainer = styled.div `
|
|
39
39
|
background-color: white;
|
|
40
40
|
border-radius: 0 0 16px 16px;
|
|
41
41
|
box-shadow: var(--elevation-3);
|
|
42
42
|
|
|
43
43
|
${({ $size }) => $size === 'large' ? 'padding: 8px 16px;' : 'padding: 2px 16px;'}
|
|
44
44
|
`;
|
|
45
|
-
const TimeContainer = styled.div
|
|
45
|
+
const TimeContainer = styled.div `
|
|
46
46
|
margin-top: 16px;
|
|
47
47
|
`;
|
|
48
48
|
|