@soul-refiner/design-system 0.2.23 → 0.2.25

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.
@@ -20,10 +20,8 @@ const Wrapper = styled.div `
20
20
  `;
21
21
  const Action = styled.figure `
22
22
  position: relative;
23
- aspect-ratio: 310 / 374;
24
23
  border-radius: 16px;
25
- max-width: 374px;
26
- width: 100%;
24
+ width: 310px;
27
25
  margin: 0px;
28
26
  display: flex;
29
27
  flex-flow: column nowrap;
@@ -37,7 +35,8 @@ const Action = styled.figure `
37
35
  }
38
36
 
39
37
  & > img {
40
- aspect-ratio: 310 / 160;
38
+ height: 160px;
39
+ width: 310px;
41
40
  border-radius: 16px 16px 0px 0px;
42
41
  object-fit: cover;
43
42
  }
@@ -12,7 +12,7 @@ const plugins = createPlugins([...blocks, ...inline, ...marks, ...utils], {
12
12
  export const Editor = ({ editable, handleUploadImage, onChange, }) => {
13
13
  return (React.createElement(PlateProvider, { id: "main", initialValue: DEFAULT_CONTENT, onChange: onChange, plugins: plugins },
14
14
  React.createElement(Wrapper, null,
15
- React.createElement(EditorBar, { handleUploadImage: handleUploadImage }),
15
+ editable && React.createElement(EditorBar, { handleUploadImage: handleUploadImage }),
16
16
  React.createElement(Plate, { id: "main", editableProps: {
17
17
  readOnly: !editable,
18
18
  spellCheck: true,
@@ -16,7 +16,7 @@ export const SimpleEditor = ({ editable, handleUploadImage, onChange, placeholde
16
16
  },
17
17
  ], onChange: onChange, plugins: plugins },
18
18
  React.createElement(Wrapper, null,
19
- React.createElement(EditorBar, { handleUploadImage: handleUploadImage }),
19
+ editable && React.createElement(EditorBar, { handleUploadImage: handleUploadImage }),
20
20
  React.createElement(InnerWrapper, null,
21
21
  React.createElement(Plate, { id: "main", editableProps: {
22
22
  readOnly: !editable,
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- export const Default = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 40 40" },
3
- React.createElement("path", { fill: "#9DA7B2", fillRule: "evenodd", d: "M18.86 4.074c-1.343.172-2.791.707-3.872 1.43-.68.454-1.672 1.376-2.148 1.995a9.549 9.549 0 0 0-1.714 3.824c-.158.832-.16 2.573-.006 3.384a9.399 9.399 0 0 0 1.436 3.447c.466.701 1.46 1.711 2.167 2.202l.556.387-.517.182c-.705.247-2.2.992-2.906 1.447-1.454.938-3.103 2.506-4.07 3.87a15.669 15.669 0 0 0-2.603 6.205c-.177.989-.242 2.697-.114 3.005.146.353.466.548.898.548.683 0 1.054-.389 1.055-1.105.001-.562.13-1.684.282-2.448.26-1.312.87-2.892 1.563-4.043.814-1.356 2.114-2.808 3.308-3.694 1.842-1.368 3.803-2.192 6.015-2.529.28-.043 1.124-.111 1.874-.153.75-.04 1.601-.13 1.891-.198.691-.161 1.536-.467 2.167-.785.792-.399 1.841-1.187 2.437-1.831 1.223-1.322 1.991-2.866 2.334-4.687.138-.735.12-2.41-.033-3.186-.372-1.869-1.231-3.456-2.576-4.756-.395-.382-.928-.837-1.186-1.011a9.262 9.262 0 0 0-3.797-1.466 8.33 8.33 0 0 0-2.442-.034Zm2.677 2.178c.755.18 1.733.618 2.408 1.077.589.4 1.345 1.152 1.732 1.723.587.865 1 1.867 1.174 2.854.045.255.082.77.082 1.143 0 1.708-.668 3.39-1.866 4.697-.822.895-1.965 1.591-3.266 1.986-.6.182-.82.208-1.778.209-.886.001-1.213-.031-1.718-.17-1.257-.343-2.528-1.093-3.378-1.99-.742-.785-1.377-1.945-1.674-3.057-.08-.302-.166-.935-.19-1.408-.036-.683-.014-1.01.109-1.601.085-.409.265-1.01.401-1.335.628-1.51 1.874-2.844 3.326-3.563 1.078-.534 1.831-.709 3.084-.716.647-.005 1.082.038 1.554.15Zm7.33 17.533c-.284.154-.45.494-.45.921 0 .288.052.414.303.726.167.208.503.571.747.808.52.504 1.295 1.529 1.745 2.31.708 1.226 1.296 2.848 1.535 4.234.064.373.147 1.132.184 1.686l.067 1.008.285.26c.252.232.335.262.723.262.398 0 .464-.026.715-.276l.276-.277-.044-1.266c-.053-1.488-.27-2.65-.762-4.079-.398-1.157-1.243-2.815-1.908-3.745-.606-.847-1.5-1.864-2.062-2.343-.363-.31-.455-.35-.776-.348-.2.002-.46.055-.578.119Z", clipRule: "evenodd" })));
2
+ export const Default = () => (React.createElement("svg", { viewBox: "0 0 229 228", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
3
+ React.createElement("rect", { width: "228", height: "228", transform: "translate(0.599976)", fill: "#F8F9F9" }),
4
+ React.createElement("path", { d: "M114.6 114C107.381 114 101.202 111.43 96.0609 106.289C90.9203 101.148 88.35 94.9688 88.35 87.75C88.35 80.5312 90.9203 74.3516 96.0609 69.2109C101.202 64.0703 107.381 61.5 114.6 61.5C121.819 61.5 127.998 64.0703 133.139 69.2109C138.28 74.3516 140.85 80.5312 140.85 87.75C140.85 94.9688 138.28 101.148 133.139 106.289C127.998 111.43 121.819 114 114.6 114ZM62.1 166.5V148.125C62.1 144.406 63.0581 140.987 64.9744 137.868C66.8862 134.753 69.4281 132.375 72.6 130.734C79.3812 127.344 86.2719 124.8 93.2719 123.102C100.272 121.409 107.381 120.562 114.6 120.562C121.819 120.562 128.928 121.409 135.928 123.102C142.928 124.8 149.819 127.344 156.6 130.734C159.772 132.375 162.314 134.753 164.226 137.868C166.142 140.987 167.1 144.406 167.1 148.125V166.5H62.1ZM75.225 153.375H153.975V148.125C153.975 146.922 153.675 145.828 153.076 144.844C152.472 143.859 151.678 143.094 150.694 142.547C144.787 139.594 138.827 137.378 132.811 135.899C126.795 134.425 120.725 133.688 114.6 133.688C108.475 133.688 102.405 134.425 96.389 135.899C90.3734 137.378 84.4125 139.594 78.5062 142.547C77.5219 143.094 76.73 143.859 76.1306 144.844C75.5269 145.828 75.225 146.922 75.225 148.125V153.375ZM114.6 100.875C118.209 100.875 121.3 99.5887 123.873 97.0162C126.441 94.4481 127.725 91.3594 127.725 87.75C127.725 84.1406 126.441 81.0519 123.873 78.4837C121.3 75.9112 118.209 74.625 114.6 74.625C110.991 74.625 107.902 75.9112 105.334 78.4837C102.761 81.0519 101.475 84.1406 101.475 87.75C101.475 91.3594 102.761 94.4481 105.334 97.0162C107.902 99.5887 110.991 100.875 114.6 100.875Z", fill: "#D4E7FA" })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {