maru_design2 0.1.0 → 2.0.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.
@@ -1 +1,2 @@
1
1
  export * from './Icon';
2
+ export { ICONS } from './iconmap';
package/dist/index.js CHANGED
@@ -234,12 +234,7 @@ var iconmap = {
234
234
  "d": "M3 3.8742L3.19433 2.25H7.8583L8.05263 3.8742C7.83887 4.12261 7.47611 4.34236 6.96437 4.53344V13.4761C7.47611 13.6799 7.83887 13.8965 8.05263 14.1258L7.8583 15.75H3.19433L3 14.1258C3.1749 13.9029 3.54089 13.6863 4.09798 13.4761V4.53344C3.54737 4.34236 3.18138 4.12261 3 3.8742ZM15 14.1258L14.796 15.75H11.4923L7.08097 8.7086L10.404 4.36146C10.0283 4.18312 9.76923 4.00796 9.62672 3.83599L9.82105 2.25H14.3587L14.5628 3.83599C14.3749 4.04618 14.0283 4.25318 13.5231 4.45701L10.0834 8.63217L13.2316 13.285C14.0802 13.4634 14.6696 13.7436 15 14.1258Z",
235
235
  "fill": "#8C8C8C"
236
236
  }],
237
- "circles": [{
238
- "cx": "9",
239
- "cy": "9",
240
- "r": "9",
241
- "fill": "white"
242
- }]
237
+ "circles": []
243
238
  },
244
239
  "T": {
245
240
  "width": "18",
@@ -261,12 +256,7 @@ var iconmap = {
261
256
  "d": "M14.4038 4.60278L10.648 15.75H7.9166L4.12184 4.51739C3.54954 4.32133 3.17559 4.10313 3 3.86279L3.1951 2.25H7.87758L8.07269 3.86279C7.88409 4.11578 7.54591 4.32133 7.05815 4.47944L8.75555 10.2381C8.89862 10.6808 9.01243 11.1109 9.09698 11.5283C9.18152 11.9394 9.24005 12.3315 9.27257 12.7047L9.29208 13.0367H9.57498C9.58799 12.2461 9.75383 11.3259 10.0725 10.276L11.8479 4.49842C11.3472 4.3403 10.996 4.12843 10.7944 3.86279L10.9895 2.25H15.5451L15.75 3.86279C15.5094 4.1474 15.0606 4.39406 14.4038 4.60278Z",
262
257
  "fill": "#8C8C8C"
263
258
  }],
264
- "circles": [{
265
- "cx": "9",
266
- "cy": "9",
267
- "r": "9",
268
- "fill": "white"
269
- }]
259
+ "circles": []
270
260
  },
271
261
  "AddLineThin": {
272
262
  "width": "18",
@@ -2861,30 +2851,24 @@ function Icon(_a) {
2861
2851
  fill: fill,
2862
2852
  xmlns: "http://www.w3.org/2000/svg"
2863
2853
  }, {
2864
- children: [circles.map(function (circle) {
2865
- return (
2866
- // eslint-disable-next-line react/jsx-key
2867
- jsx("circle", {
2868
- cx: circle.cx,
2869
- cy: circle.cy,
2870
- r: circle.r,
2871
- fill: circle.fill && keyColor
2872
- })
2873
- );
2874
- }), paths.map(function (path) {
2875
- return (
2876
- // eslint-disable-next-line react/jsx-key
2877
- jsx("path", {
2878
- d: path.d,
2879
- fill: path.fill && keyColor,
2880
- fillRule: path.fillRule,
2881
- clipRule: path.clipRule,
2882
- stroke: path.stroke && keyColor,
2883
- strokeWidth: path.strokeWidth,
2884
- strokeLinecap: path.strokeLinecap,
2885
- strokeLinejoin: path.strokeLinejoin
2886
- })
2887
- );
2854
+ children: [circles.map(function (circle, idx) {
2855
+ return jsx("circle", {
2856
+ cx: circle.cx,
2857
+ cy: circle.cy,
2858
+ r: circle.r,
2859
+ fill: circle.fill && keyColor
2860
+ }, "circle-".concat(idx));
2861
+ }), paths.map(function (path, idx) {
2862
+ return jsx("path", {
2863
+ d: path.d,
2864
+ fill: path.fill && keyColor,
2865
+ fillRule: path.fillRule,
2866
+ clipRule: path.clipRule,
2867
+ stroke: path.stroke && keyColor,
2868
+ strokeWidth: path.strokeWidth,
2869
+ strokeLinecap: path.strokeLinecap,
2870
+ strokeLinejoin: path.strokeLinejoin
2871
+ }, "path-".concat(idx));
2888
2872
  })]
2889
2873
  }));
2890
2874
  }
@@ -2932,7 +2916,7 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
2932
2916
  }
2933
2917
  return (_a = icon === null || icon === void 0 ? void 0 : icon.color) !== null && _a !== void 0 ? _a : 'secondary';
2934
2918
  };
2935
- return jsxs("button", __assign({
2919
+ return jsxs("button", __assign({}, props, {
2936
2920
  ref: ref,
2937
2921
  type: "button",
2938
2922
  className: classNames('maru-button', "maru-button-".concat(color, "-").concat(variant), "size-".concat(size), {
@@ -2960,7 +2944,7 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
2960
2944
  onBlur: function onBlur() {
2961
2945
  return setIsFocused(false);
2962
2946
  }
2963
- }, props, {
2947
+ }, {
2964
2948
  children: [startIcon && jsx(Icon, {
2965
2949
  name: startIcon.name,
2966
2950
  size: startIcon.size,
@@ -6344,4 +6328,4 @@ function Pagination(_a) {
6344
6328
  }));
6345
6329
  }
6346
6330
 
6347
- export { Button, Checkbox, Chip, Dropdown, Icon, Input, Modal, Pagination, Popover, Radio, StyleProvider, Toggle, Tooltip };
6331
+ export { Button, Checkbox, Chip, Dropdown, ICONS, Icon, Input, Modal, Pagination, Popover, Radio, StyleProvider, Toggle, Tooltip };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maru_design2",
3
- "version": "0.1.0",
3
+ "version": "2.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "author": "zena-42maru",
6
6
  "license": "MIT",
@@ -64,6 +64,7 @@
64
64
  "storybook": "storybook dev -p 6006",
65
65
  "build-storybook": "storybook build",
66
66
  "build": "rollup -c",
67
- "release": "rm -rf dist && yarn build && mv README.md temp.md && yarn publish && mv temp.md README.md"
67
+ "release": "rm -rf dist && yarn build && mv README.md temp.md && yarn publish && mv temp.md README.md",
68
+ "svg": "node ./scripts/svg-parser.js"
68
69
  }
69
70
  }