@soul-refiner/design-system 1.5.1 → 1.6.1-alpha.0

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 (39) hide show
  1. package/dist/components/actions/button/button.d.ts +1 -1
  2. package/dist/components/actions/dropdown/dropdown.stories.d.ts +5 -0
  3. package/dist/components/actions/rate/rate.js +4 -3
  4. package/dist/components/atoms/hide/hide.js +1 -1
  5. package/dist/components/card/feature/feature.js +1 -1
  6. package/dist/components/custom/courses_selection/courses_selection.js +5 -7
  7. package/dist/components/custom/courses_selection/courses_selection.stories.d.ts +5 -0
  8. package/dist/components/custom/users_selection/users_selection.stories.d.ts +5 -0
  9. package/dist/components/editor/constants.d.ts +7 -0
  10. package/dist/components/editor/constants.js +11 -0
  11. package/dist/components/editor/context.d.ts +1 -0
  12. package/dist/components/editor/context.js +1 -0
  13. package/dist/components/editor/editor.d.ts +3 -4
  14. package/dist/components/editor/editor.js +24 -2
  15. package/dist/components/editor/editor.stories.d.ts +6 -0
  16. package/dist/components/editor/navbar/index.d.ts +0 -1
  17. package/dist/components/editor/navbar/navbar.d.ts +1 -4
  18. package/dist/components/editor/navbar/navbar.js +3 -12
  19. package/dist/components/editor/plugins/blocks/image.d.ts +8 -2
  20. package/dist/components/editor/plugins/blocks/image.js +35 -32
  21. package/dist/components/editor/plugins/blocks/media-popover.d.ts +6 -0
  22. package/dist/components/editor/plugins/blocks/media-popover.js +32 -0
  23. package/dist/components/editor/plugins/plate.d.ts +26 -1
  24. package/dist/components/editor/plugins/plate.js +3 -0
  25. package/dist/components/iconography/avatar/avatar.d.ts +2 -1
  26. package/dist/components/iconography/avatar/avatar.js +3 -2
  27. package/dist/components/iconography/avatar/avatar.stories.d.ts +7 -0
  28. package/dist/components/iconography/avatar/icons/default.js +2 -3
  29. package/dist/components/input/text_input/text_input.d.ts +1 -0
  30. package/dist/components/media/video-player/playlist-item.d.ts +2 -2
  31. package/dist/components/media/video-player/playlist-item.js +6 -6
  32. package/dist/components/media/video-player/video.d.ts +13 -3
  33. package/dist/components/media/video-player/video.js +28 -9
  34. package/dist/components/media/video-player/video.stories.d.ts +6 -0
  35. package/dist/components/surfaces/carousel/card/card.js +1 -1
  36. package/dist/main.js +2 -0
  37. package/dist/main.js.LICENSE.txt +129 -0
  38. package/dist/styles/output.css +48 -0
  39. package/package.json +6 -2
@@ -0,0 +1,129 @@
1
+ /* @license
2
+ Papa Parse
3
+ v5.4.1
4
+ https://github.com/mholt/PapaParse
5
+ License: MIT
6
+ */
7
+
8
+ /*!
9
+ Copyright (c) 2018 Jed Watson.
10
+ Licensed under the MIT License (MIT), see
11
+ http://jedwatson.github.io/classnames
12
+ */
13
+
14
+ /*!
15
+ * Determine if an object is a Buffer
16
+ *
17
+ * @author Feross Aboukhadijeh <https://feross.org>
18
+ * @license MIT
19
+ */
20
+
21
+ /*!
22
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
23
+ *
24
+ * Copyright (c) 2014-2017, Jon Schlinkert.
25
+ * Released under the MIT License.
26
+ */
27
+
28
+ /*!
29
+ * tabbable 6.2.0
30
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
31
+ */
32
+
33
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
34
+
35
+ /**
36
+ * @license React
37
+ * react-dom-server-legacy.browser.production.min.js
38
+ *
39
+ * Copyright (c) Facebook, Inc. and its affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+
45
+ /**
46
+ * @license React
47
+ * react-dom-server.browser.production.min.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */
54
+
55
+ /**
56
+ * @license React
57
+ * react-dom.production.min.js
58
+ *
59
+ * Copyright (c) Facebook, Inc. and its affiliates.
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE file in the root directory of this source tree.
63
+ */
64
+
65
+ /**
66
+ * @license React
67
+ * react-jsx-runtime.production.min.js
68
+ *
69
+ * Copyright (c) Facebook, Inc. and its affiliates.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE file in the root directory of this source tree.
73
+ */
74
+
75
+ /**
76
+ * @license React
77
+ * react.production.min.js
78
+ *
79
+ * Copyright (c) Facebook, Inc. and its affiliates.
80
+ *
81
+ * This source code is licensed under the MIT license found in the
82
+ * LICENSE file in the root directory of this source tree.
83
+ */
84
+
85
+ /**
86
+ * @license React
87
+ * scheduler.production.min.js
88
+ *
89
+ * Copyright (c) Facebook, Inc. and its affiliates.
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE file in the root directory of this source tree.
93
+ */
94
+
95
+ /**
96
+ * @license React
97
+ * use-sync-external-store-shim.production.min.js
98
+ *
99
+ * Copyright (c) Facebook, Inc. and its affiliates.
100
+ *
101
+ * This source code is licensed under the MIT license found in the
102
+ * LICENSE file in the root directory of this source tree.
103
+ */
104
+
105
+ /**
106
+ * @license React
107
+ * use-sync-external-store-shim/with-selector.production.min.js
108
+ *
109
+ * Copyright (c) Facebook, Inc. and its affiliates.
110
+ *
111
+ * This source code is licensed under the MIT license found in the
112
+ * LICENSE file in the root directory of this source tree.
113
+ */
114
+
115
+ /**
116
+ * @license lucide-react v0.307.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */
121
+
122
+ /**
123
+ * Prism: Lightweight, robust, elegant syntax highlighting
124
+ *
125
+ * @license MIT <https://opensource.org/licenses/MIT>
126
+ * @author Lea Verou <https://lea.verou.me>
127
+ * @namespace
128
+ * @public
129
+ */
@@ -899,6 +899,10 @@ body {
899
899
  z-index: 50;
900
900
  }
901
901
 
902
+ .m-0 {
903
+ margin: 0px;
904
+ }
905
+
902
906
  .-mx-1 {
903
907
  margin-left: -0.25rem;
904
908
  margin-right: -0.25rem;
@@ -951,6 +955,10 @@ body {
951
955
  box-sizing: border-box;
952
956
  }
953
957
 
958
+ .box-content {
959
+ box-sizing: content-box;
960
+ }
961
+
954
962
  .block {
955
963
  display: block;
956
964
  }
@@ -1079,6 +1087,14 @@ body {
1079
1087
  width: 220px;
1080
1088
  }
1081
1089
 
1090
+ .w-\[330px\] {
1091
+ width: 330px;
1092
+ }
1093
+
1094
+ .w-auto {
1095
+ width: auto;
1096
+ }
1097
+
1082
1098
  .w-full {
1083
1099
  width: 100%;
1084
1100
  }
@@ -1095,6 +1111,10 @@ body {
1095
1111
  min-width: 100%;
1096
1112
  }
1097
1113
 
1114
+ .max-w-full {
1115
+ max-width: 100%;
1116
+ }
1117
+
1098
1118
  .flex-shrink {
1099
1119
  flex-shrink: 1;
1100
1120
  }
@@ -1237,6 +1257,11 @@ body {
1237
1257
  background-color: hsl(var(--secondary));
1238
1258
  }
1239
1259
 
1260
+ .object-cover {
1261
+ -o-object-fit: cover;
1262
+ object-fit: cover;
1263
+ }
1264
+
1240
1265
  .p-0 {
1241
1266
  padding: 0px;
1242
1267
  }
@@ -1289,6 +1314,11 @@ body {
1289
1314
  padding-bottom: 0.5rem;
1290
1315
  }
1291
1316
 
1317
+ .py-2\.5 {
1318
+ padding-top: 0.625rem;
1319
+ padding-bottom: 0.625rem;
1320
+ }
1321
+
1292
1322
  .pl-3 {
1293
1323
  padding-left: 0.75rem;
1294
1324
  }
@@ -1344,6 +1374,10 @@ body {
1344
1374
  color: hsl(var(--destructive-foreground));
1345
1375
  }
1346
1376
 
1377
+ .text-muted-foreground {
1378
+ color: hsl(var(--muted-foreground));
1379
+ }
1380
+
1347
1381
  .text-popover-foreground {
1348
1382
  color: hsl(var(--popover-foreground));
1349
1383
  }
@@ -1397,6 +1431,20 @@ body {
1397
1431
  outline-style: solid;
1398
1432
  }
1399
1433
 
1434
+ .ring-2 {
1435
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1436
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1437
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1438
+ }
1439
+
1440
+ .ring-ring {
1441
+ --tw-ring-color: hsl(var(--ring));
1442
+ }
1443
+
1444
+ .ring-offset-2 {
1445
+ --tw-ring-offset-width: 2px;
1446
+ }
1447
+
1400
1448
  .ring-offset-background {
1401
1449
  --tw-ring-offset-color: hsl(var(--background));
1402
1450
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "1.5.1",
3
+ "version": "1.6.1-alpha.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -37,6 +37,7 @@
37
37
  "@storybook/nextjs": "~7.5.3",
38
38
  "@storybook/react": "~7.2.1",
39
39
  "@storybook/testing-library": "~0.2.0",
40
+ "@types/react": "^18.2.48",
40
41
  "@types/react-dom": "18.2.0",
41
42
  "@types/styled-components": "~5.1.26",
42
43
  "chromatic": "~6.17.4",
@@ -46,9 +47,12 @@
46
47
  "prop-types": "~15.8.1",
47
48
  "storybook": "~7.5.3",
48
49
  "tailwindcss": "^3.4.1",
50
+ "ts-loader": "^9.5.1",
49
51
  "tsconfig-paths-webpack-plugin": "~4.0.1",
50
52
  "typescript": "~5.0.4",
51
- "webpack": "~5.89.0"
53
+ "url-loader": "^4.1.1",
54
+ "webpack": "~5.89.0",
55
+ "webpack-cli": "^5.1.4"
52
56
  },
53
57
  "scripts": {
54
58
  "build": "yarn build:tailwind && tsc -p tsconfig.build.json",