@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.
Files changed (64) hide show
  1. package/dist/src/components/actions/dropdown/dropdown.js +5 -5
  2. package/dist/src/components/actions/rate/rate.js +2 -2
  3. package/dist/src/components/actions/switch/switch.js +3 -3
  4. package/dist/src/components/actions/toggle/toggle.js +4 -4
  5. package/dist/src/components/actions/upload/upload.js +3 -3
  6. package/dist/src/components/atoms/box/box.js +2 -2
  7. package/dist/src/components/atoms/typography/display.js +2 -2
  8. package/dist/src/components/atoms/typography/heading.js +2 -2
  9. package/dist/src/components/atoms/typography/paragraph.js +2 -2
  10. package/dist/src/components/atoms/typography/typography.js +2 -2
  11. package/dist/src/components/card/action/action.js +6 -6
  12. package/dist/src/components/card/audio/audio.js +5 -5
  13. package/dist/src/components/card/feature/feature.js +7 -7
  14. package/dist/src/components/card/meeting/meeting.js +6 -6
  15. package/dist/src/components/card/person/person.js +5 -5
  16. package/dist/src/components/card/price/price.js +4 -4
  17. package/dist/src/components/card/regular/regular.js +2 -2
  18. package/dist/src/components/card/styles.js +2 -2
  19. package/dist/src/components/card/video/video.js +5 -5
  20. package/dist/src/components/card/written/written.js +5 -5
  21. package/dist/src/components/custom/courses_selection/courses_selection.js +5 -5
  22. package/dist/src/components/custom/users_selection/users_selection.js +6 -6
  23. package/dist/src/components/editor/editor.js +2 -2
  24. package/dist/src/components/editor/navbar/button_modal.js +2 -2
  25. package/dist/src/components/editor/navbar/navbar.js +6 -6
  26. package/dist/src/components/editor/plugins/blocks/buttons.js +3 -3
  27. package/dist/src/components/editor/plugins/blocks/qa.js +2 -2
  28. package/dist/src/components/editor/plugins/leafs/link.js +2 -2
  29. package/dist/src/components/editor/simple_editor/navbar.js +4 -4
  30. package/dist/src/components/editor/simple_editor/simple_editor.js +3 -3
  31. package/dist/src/components/editor/styles/menu_button.js +2 -2
  32. package/dist/src/components/feedback/badge/badge.js +3 -3
  33. package/dist/src/components/feedback/banner/banner.js +2 -2
  34. package/dist/src/components/feedback/chip/chip.js +3 -3
  35. package/dist/src/components/feedback/notification/notification.js +2 -2
  36. package/dist/src/components/feedback/progress/progress.js +5 -5
  37. package/dist/src/components/feedback/toast/toast.js +3 -3
  38. package/dist/src/components/iconography/avatar/avatar.js +6 -6
  39. package/dist/src/components/iconography/icon/icon.js +2 -2
  40. package/dist/src/components/input/calendar/calendar.js +13 -13
  41. package/dist/src/components/input/checkbox/checkbox.js +2 -2
  42. package/dist/src/components/input/date/date.js +13 -13
  43. package/dist/src/components/input/filter/filter_option.js +3 -3
  44. package/dist/src/components/input/radio/radio.js +3 -3
  45. package/dist/src/components/input/search/search.js +4 -4
  46. package/dist/src/components/input/select/select.js +3 -3
  47. package/dist/src/components/input/text_area/text_area.js +6 -6
  48. package/dist/src/components/input/text_input/text_input.js +7 -7
  49. package/dist/src/components/input/time/time.js +3 -3
  50. package/dist/src/components/media/video-player/playlist-item.js +3 -3
  51. package/dist/src/components/media/video-player/video.js +6 -6
  52. package/dist/src/components/navigation/breadcrumb/breadcrumb.js +3 -3
  53. package/dist/src/components/navigation/inner/inner.js +8 -8
  54. package/dist/src/components/navigation/tabs/tabs.js +4 -4
  55. package/dist/src/components/surfaces/accordion/accordion.js +3 -3
  56. package/dist/src/components/surfaces/calendar_date/calendar_date.js +6 -6
  57. package/dist/src/components/surfaces/carousel/card/card.js +4 -4
  58. package/dist/src/components/surfaces/comment/comment.js +10 -10
  59. package/dist/src/components/surfaces/drawer/drawer.js +6 -6
  60. package/dist/src/components/surfaces/message/message.js +2 -2
  61. package/dist/src/components/surfaces/modal/modal.js +3 -3
  62. package/dist/src/components/surfaces/post/post.js +9 -9
  63. package/dist/src/components/table/table/table.js +7 -7
  64. 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 { ChevronLeft } from '../../../../icons/arrow/chevron_left.js';
5
5
  import { ChevronRight } from '../../../../icons/arrow/chevron_right.js';
6
6
 
@@ -35,7 +35,7 @@ const CardCarousel = ({ children, onScrollEnd, scrollTriggerDistance = DEFAULT_S
35
35
  React__default.createElement(Button, { className: "carousel-navigation", onClick: onNavigateRight, "$side": "right" },
36
36
  React__default.createElement(ChevronRight, { color: "white", size: 48 }))));
37
37
  };
38
- const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc-jg31w5" }) `
38
+ const Wrapper = styled.div `
39
39
  position: relative;
40
40
  height: 288px;
41
41
 
@@ -45,7 +45,7 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
45
45
 
46
46
  ${({ $sx }) => ($sx ? $sx : '')}
47
47
  `;
48
- const Inner = styled.div.withConfig({ displayName: "Inner", componentId: "sc-1j1yzej" }) `
48
+ const Inner = styled.div `
49
49
  position: absolute;
50
50
  width: 100%;
51
51
  z-index: 0;
@@ -71,7 +71,7 @@ const Inner = styled.div.withConfig({ displayName: "Inner", componentId: "sc-1j1
71
71
  height: 0px;
72
72
  }
73
73
  `;
74
- const Button = styled.button.withConfig({ displayName: "Button", componentId: "sc-1hky4zg" }) `
74
+ const Button = styled.button `
75
75
  position: absolute;
76
76
  z-index: 1;
77
77
  top: 0px;
@@ -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 Picker from '@emoji-mart/react';
5
5
  import { Avatar } from '../../iconography/avatar/avatar.js';
6
6
  import { Box } from '../../atoms/box/box.js';
@@ -109,7 +109,7 @@ const Comment = ({ avatarTooltipContent, avatarTooltipSx, content, createdDate,
109
109
  toggleShowCommentInput && (React__default.createElement(CommentWrapper, { onSubmit: handleCommentSubmit },
110
110
  React__default.createElement(TextInput, { bg: "var(--color-grey-10)", placeholder: "Write a reply", onChange: handleCommentChange, value: comment }))))));
111
111
  };
112
- const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc-b13pgl" }) `
112
+ const Wrapper = styled.div `
113
113
  max-width: 700px;
114
114
  display: flex;
115
115
  flex-direction: row;
@@ -118,7 +118,7 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
118
118
  justify-content: space-between;
119
119
  position: relative;
120
120
  `;
121
- const ContentWrapper = styled.div.withConfig({ displayName: "ContentWrapper", componentId: "sc-1kvewbt" }) `
121
+ const ContentWrapper = styled.div `
122
122
  display: flex;
123
123
  flex-direction: column;
124
124
  ${({ $hasReplies }) => $hasReplies
@@ -135,7 +135,7 @@ const ContentWrapper = styled.div.withConfig({ displayName: "ContentWrapper", co
135
135
  }`
136
136
  : ''}
137
137
  `;
138
- const CommentBox = styled.div.withConfig({ displayName: "CommentBox", componentId: "sc-m83pbh" }) `
138
+ const CommentBox = styled.div `
139
139
  padding: 16px;
140
140
  display: flex;
141
141
  flex-direction: column;
@@ -143,7 +143,7 @@ const CommentBox = styled.div.withConfig({ displayName: "CommentBox", componentI
143
143
  background-color: var(--color-grey-10);
144
144
  border-radius: 16px;
145
145
  `;
146
- const PickerWrapper = styled.div.withConfig({ displayName: "PickerWrapper", componentId: "sc-jjew2m" }) `
146
+ const PickerWrapper = styled.div `
147
147
  position: absolute;
148
148
  z-index: 1000;
149
149
 
@@ -151,7 +151,7 @@ const PickerWrapper = styled.div.withConfig({ displayName: "PickerWrapper", comp
151
151
  top: ${({ $top }) => $top}px;
152
152
  left: ${({ $left }) => $left}px;
153
153
  `;
154
- const Reaction = styled.div.withConfig({ displayName: "Reaction", componentId: "sc-1ib388l" }) `
154
+ const Reaction = styled.div `
155
155
  ${Styles.flex}
156
156
  display: flex;
157
157
  padding: 2px 6px;
@@ -164,10 +164,10 @@ const Reaction = styled.div.withConfig({ displayName: "Reaction", componentId: "
164
164
  `
165
165
  : ''}
166
166
  `;
167
- const RepliesWrapper = styled.div.withConfig({ displayName: "RepliesWrapper", componentId: "sc-1a8p6sb" }) `
167
+ const RepliesWrapper = styled.div `
168
168
  padding-top: 12px;
169
169
  `;
170
- const ReplyWrapper = styled.div.withConfig({ displayName: "ReplyWrapper", componentId: "sc-5ef81s" }) `
170
+ const ReplyWrapper = styled.div `
171
171
  position: relative;
172
172
  ${({ $hasLine }) => $hasLine
173
173
  ? `
@@ -180,7 +180,7 @@ const ReplyWrapper = styled.div.withConfig({ displayName: "ReplyWrapper", compon
180
180
  }`
181
181
  : ''}
182
182
  `;
183
- const ReplyIndicator = styled.div.withConfig({ displayName: "ReplyIndicator", componentId: "sc-1jhjobp" }) `
183
+ const ReplyIndicator = styled.div `
184
184
  position: absolute;
185
185
  top: -12px;
186
186
  left: -28px;
@@ -191,7 +191,7 @@ const ReplyIndicator = styled.div.withConfig({ displayName: "ReplyIndicator", co
191
191
  border-top: none;
192
192
  border-right: none;
193
193
  `;
194
- const CommentWrapper = styled.form.withConfig({ displayName: "CommentWrapper", componentId: "sc-16s5lma" }) `
194
+ const CommentWrapper = styled.form `
195
195
  label {
196
196
  margin-bottom: 16px;
197
197
  }
@@ -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 { callAll } from '../../../utils/function.js';
5
5
 
6
6
  const DrawerContext = React__default.createContext([false, (() => undefined)]);
@@ -37,7 +37,7 @@ const Drawer = ({ children, controlledOpen, onOpenChange, }) => {
37
37
  React__default.createElement(ContentWrapper, null, content),
38
38
  footer && React__default.createElement(FooterWrapper, null, footer))));
39
39
  };
40
- const Background = styled.div.withConfig({ displayName: "Background", componentId: "sc-rq2nel" }) `
40
+ const Background = styled.div `
41
41
  position: fixed;
42
42
  height: 100vh;
43
43
  width: 100vw;
@@ -50,7 +50,7 @@ const Background = styled.div.withConfig({ displayName: "Background", componentI
50
50
  opacity: 0.5;
51
51
  cursor: pointer;
52
52
  `;
53
- const Component = styled.div.withConfig({ displayName: "Component", componentId: "sc-xmzlj8" }) `
53
+ const Component = styled.div `
54
54
  position: fixed;
55
55
  top: 0;
56
56
  right: 0;
@@ -68,7 +68,7 @@ const Component = styled.div.withConfig({ displayName: "Component", componentId:
68
68
 
69
69
  ${({ $open }) => ($open ? 'margin-right: 0px;' : '')}
70
70
  `;
71
- const HeaderWrapper = styled.div.withConfig({ displayName: "HeaderWrapper", componentId: "sc-tu73p7" }) `
71
+ const HeaderWrapper = styled.div `
72
72
  background-color: var(--color-white);
73
73
  box-shadow: var(--elevation-2);
74
74
  filter: drop-shadow(var(--elevation-2));
@@ -77,7 +77,7 @@ const HeaderWrapper = styled.div.withConfig({ displayName: "HeaderWrapper", comp
77
77
  top: 0;
78
78
  border-radius: 16px 0px 0px 0px;
79
79
  `;
80
- const ContentWrapper = styled.div.withConfig({ displayName: "ContentWrapper", componentId: "sc-57njwy" }) `
80
+ const ContentWrapper = styled.div `
81
81
  height: calc(100vh - 224px);
82
82
  position: relative;
83
83
  display: flex;
@@ -104,7 +104,7 @@ const ContentWrapper = styled.div.withConfig({ displayName: "ContentWrapper", co
104
104
  opacity: 30%;
105
105
  }
106
106
  `;
107
- const FooterWrapper = styled.div.withConfig({ displayName: "FooterWrapper", componentId: "sc-9176ur" }) `
107
+ const FooterWrapper = styled.div `
108
108
  background-color: var(--color-white);
109
109
  box-shadow: var(--elevation-1);
110
110
  position: -webkit-sticky;
@@ -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 { Avatar } from '../../iconography/avatar/avatar.js';
5
5
  import { Box } from '../../atoms/box/box.js';
6
6
  import { P } from '../../atoms/typography/paragraph.js';
@@ -24,7 +24,7 @@ const Message = ({ messages, userId }) => {
24
24
  React__default.createElement(Wrapper, { "$isSelf": isSelf }, content)));
25
25
  })));
26
26
  };
27
- const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc-5k2yxu" }) `
27
+ const Wrapper = styled.div `
28
28
  max-width: 552px;
29
29
  padding: 16px;
30
30
  border-radius: 16px;
@@ -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 { Button } from '../../actions/button/button.js';
5
5
  import { Close } from '../../../icons/basic/close.js';
6
6
  import { callAll } from '../../../utils/function.js';
@@ -77,7 +77,7 @@ const ModalContent = ({ backgroundDark = true, children, footer, header, setClos
77
77
  };
78
78
  ModalContent.displayName = 'Modal.Content';
79
79
  Modal.Content = ModalContent;
80
- const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc-1ud5o45" }) `
80
+ const Wrapper = styled.div `
81
81
  ${({ $open }) => $open
82
82
  ? `display: flex;
83
83
  flex-direction: column;
@@ -98,7 +98,7 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
98
98
  margin: 0px;
99
99
  overflow: hidden;
100
100
  `;
101
- const Content = styled.div.withConfig({ displayName: "Content", componentId: "sc-4xo99d" }) `
101
+ const Content = styled.div `
102
102
  position: absolute;
103
103
  z-index: 101;
104
104
  background-color: var(--color-white);
@@ -2,7 +2,7 @@
2
2
  import React__default from 'react';
3
3
  import Image from 'next/image';
4
4
  import Link from 'next/link';
5
- import styled from 'styled-components';
5
+ import { styled } from 'styled-components';
6
6
  import { H } from '../../atoms/typography/heading.js';
7
7
  import { P } from '../../atoms/typography/paragraph.js';
8
8
  import '../../atoms/box/box.js';
@@ -122,7 +122,7 @@ const Post = ({ actions, author, authorActive, authorHref, authorImage, avatarTo
122
122
  !!_actions.length && (React__default.createElement(ActionsWrapper, null, !isPaywalled && _actions)),
123
123
  hasComments && !!_comments.length && (React__default.createElement(CommentWrapper, null, _comments))));
124
124
  };
125
- const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc-bkwygd" }) `
125
+ const Wrapper = styled.div `
126
126
  position: relative;
127
127
  max-width: 700px;
128
128
  width: 100%;
@@ -135,14 +135,14 @@ const Wrapper = styled.div.withConfig({ displayName: "Wrapper", componentId: "sc
135
135
  border-radius: 16px;
136
136
  }
137
137
  `;
138
- const Header = styled.div.withConfig({ displayName: "Header", componentId: "sc-bzp4wx" }) `
138
+ const Header = styled.div `
139
139
  padding: 16px 24px;
140
140
  display: flex;
141
141
  justify-content: space-between;
142
142
  align-items: flex-start;
143
143
  border-bottom: 1px solid var(--color-grey-9);
144
144
  `;
145
- const ImagesWrapper = styled.div.withConfig({ displayName: "ImagesWrapper", componentId: "sc-8d1s92" }) `
145
+ const ImagesWrapper = styled.div `
146
146
  position: relative;
147
147
  display: flex;
148
148
  gap: 8px;
@@ -188,13 +188,13 @@ const ImagesWrapper = styled.div.withConfig({ displayName: "ImagesWrapper", comp
188
188
  clip-path: inset(0px 0px 0px 0px);`
189
189
  : ''}
190
190
  `;
191
- const ImageWrapper = styled.div.withConfig({ displayName: "ImageWrapper", componentId: "sc-1k9zhmh" }) `
191
+ const ImageWrapper = styled.div `
192
192
  position: relative;
193
193
  aspect-ratio: 700 / 427;
194
194
  flex: 1;
195
195
  min-width: min(227px, 80vw);
196
196
  `;
197
- const PaywallWrapper = styled.div.withConfig({ displayName: "PaywallWrapper", componentId: "sc-1wknyp1" }) `
197
+ const PaywallWrapper = styled.div `
198
198
  position: absolute;
199
199
  display: flex;
200
200
  flex-direction: column;
@@ -203,19 +203,19 @@ const PaywallWrapper = styled.div.withConfig({ displayName: "PaywallWrapper", co
203
203
  top: 310px;
204
204
  left: 242px;
205
205
  `;
206
- const ActionsWrapper = styled.div.withConfig({ displayName: "ActionsWrapper", componentId: "sc-1lws64f" }) `
206
+ const ActionsWrapper = styled.div `
207
207
  display: flex;
208
208
  justify-content: space-around;
209
209
  align-items: center;
210
210
  padding: 24px;
211
211
  `;
212
- const CommentWrapper = styled.div.withConfig({ displayName: "CommentWrapper", componentId: "sc-1r3whlh" }) `
212
+ const CommentWrapper = styled.div `
213
213
  padding: 24px;
214
214
  display: flex;
215
215
  flex-flow: column nowrap;
216
216
  gap: 24px;
217
217
  `;
218
- const NavArrow = styled.button.withConfig({ displayName: "NavArrow", componentId: "sc-qo8rn9" }) `
218
+ const NavArrow = styled.button `
219
219
  width: 48px;
220
220
  height: 150px;
221
221
  display: flex;
@@ -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
 
6
6
  const Table = ({ border = true, children, compact, footer, header, separated, striped, sx, padding = 32, }) => {
@@ -10,7 +10,7 @@ const Table = ({ border = true, children, compact, footer, header, separated, st
10
10
  React__default.createElement(TableElement, { "$compact": compact, "$separated": separated, "$striped": striped, "$sx": sx }, children)),
11
11
  !!footer && footer));
12
12
  };
13
- const TableElement = styled.table.withConfig({ displayName: "TableElement", componentId: "sc-sdhpj9" }) `
13
+ const TableElement = styled.table `
14
14
  width: 100%;
15
15
  border-collapse: collapse;
16
16
  border-spacing: 0;
@@ -38,7 +38,7 @@ const TableElement = styled.table.withConfig({ displayName: "TableElement", comp
38
38
  const Head = ({ children, ...rest }) => {
39
39
  return React__default.createElement(HeadElement, { ...rest }, children);
40
40
  };
41
- const HeadElement = styled.thead.withConfig({ displayName: "HeadElement", componentId: "sc-1qt81dx" }) `
41
+ const HeadElement = styled.thead `
42
42
  tr {
43
43
  background-color: var(--color-grey-10);
44
44
  border-top-left-radius: 8px;
@@ -61,7 +61,7 @@ Table.Head = Head;
61
61
  const Body = ({ children, ...rest }) => {
62
62
  return React__default.createElement(BodyElement, { ...rest }, children);
63
63
  };
64
- const BodyElement = styled.tbody.withConfig({ displayName: "BodyElement", componentId: "sc-u26764" }) `
64
+ const BodyElement = styled.tbody `
65
65
  & > tr:last-of-type {
66
66
  & > *:first-child {
67
67
  border-bottom-left-radius: 8px;
@@ -100,7 +100,7 @@ const Row = ({ children, disabled, href, hoverable = false, onClick, selected, s
100
100
  : undefined;
101
101
  return (React__default.createElement(RowElement, { onClick: handleClick, "$disabled": disabled, "$hoverable": hoverable, "$isAnchor": !!href, "$selected": selected, "$sx": sx, ...rest }, children));
102
102
  };
103
- const RowElement = styled.tr.withConfig({ displayName: "RowElement", componentId: "sc-1tdohw9" }) `
103
+ const RowElement = styled.tr `
104
104
  display: table-row;
105
105
 
106
106
  ${({ $disabled }) => $disabled
@@ -145,7 +145,7 @@ const Cell = ({ children, lines, padding = '16px 24px', sx, textAlign = 'left',
145
145
  return (React__default.createElement(CellElement, { "$clamp": lines, "$padding": padding, "$sx": sx, "$textAlign": textAlign, "$verticalAlign": verticalAlign, "$width": percentageWidth ? percentageWidth : 'fit-content' },
146
146
  React__default.createElement("div", null, children)));
147
147
  };
148
- const CellElement = styled.td.withConfig({ displayName: "CellElement", componentId: "sc-xb86lg" }) `
148
+ const CellElement = styled.td `
149
149
  width: ${({ $width }) => $width};
150
150
  height: 20px;
151
151
  font-family: var(--font-inter);
@@ -175,7 +175,7 @@ const HeaderCell = ({ children, lines, padding = '16px 24px', sx, textAlign = 'l
175
175
  const percentageWidth = width ? width * (100 / 16) + '%' : undefined;
176
176
  return (React__default.createElement(HeadCellElement, { as: "th", "$clamp": lines, "$padding": padding, "$sx": sx, "$textAlign": textAlign, "$verticalAlign": verticalAlign, "$width": percentageWidth ? percentageWidth : 'fit-content' }, children));
177
177
  };
178
- const HeadCellElement = styled(CellElement).withConfig({ displayName: "HeadCellElement", componentId: "sc-5go38j" }) `
178
+ const HeadCellElement = styled(CellElement) `
179
179
  font-size: 16px;
180
180
  font-weight: 700;
181
181
  line-height: 24px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "2.0.0-alpha.8",
3
+ "version": "2.0.0-alpha.9",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",