@semcore/skeleton 5.42.1 → 16.0.0-prerelease.11

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 (76) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/Charts/Area.js +11 -13
  3. package/lib/cjs/Charts/Area.js.map +1 -1
  4. package/lib/cjs/Charts/Bar.js +11 -13
  5. package/lib/cjs/Charts/Bar.js.map +1 -1
  6. package/lib/cjs/Charts/Bubble.js +11 -13
  7. package/lib/cjs/Charts/Bubble.js.map +1 -1
  8. package/lib/cjs/Charts/CompactHorizontalBar.js +11 -13
  9. package/lib/cjs/Charts/CompactHorizontalBar.js.map +1 -1
  10. package/lib/cjs/Charts/Donut.js +11 -13
  11. package/lib/cjs/Charts/Donut.js.map +1 -1
  12. package/lib/cjs/Charts/Histogram.js +11 -13
  13. package/lib/cjs/Charts/Histogram.js.map +1 -1
  14. package/lib/cjs/Charts/Line.js +11 -13
  15. package/lib/cjs/Charts/Line.js.map +1 -1
  16. package/lib/cjs/Charts/RadialTree.js +11 -13
  17. package/lib/cjs/Charts/RadialTree.js.map +1 -1
  18. package/lib/cjs/Charts/ScatterPlot.js +11 -13
  19. package/lib/cjs/Charts/ScatterPlot.js.map +1 -1
  20. package/lib/cjs/Charts/Venn.js +11 -13
  21. package/lib/cjs/Charts/Venn.js.map +1 -1
  22. package/lib/cjs/Skeleton.js +14 -16
  23. package/lib/cjs/Skeleton.js.map +1 -1
  24. package/lib/cjs/index.d.js.map +1 -1
  25. package/lib/es6/Charts/Area.js +11 -11
  26. package/lib/es6/Charts/Area.js.map +1 -1
  27. package/lib/es6/Charts/Bar.js +11 -11
  28. package/lib/es6/Charts/Bar.js.map +1 -1
  29. package/lib/es6/Charts/Bubble.js +11 -11
  30. package/lib/es6/Charts/Bubble.js.map +1 -1
  31. package/lib/es6/Charts/CompactHorizontalBar.js +11 -11
  32. package/lib/es6/Charts/CompactHorizontalBar.js.map +1 -1
  33. package/lib/es6/Charts/Donut.js +11 -11
  34. package/lib/es6/Charts/Donut.js.map +1 -1
  35. package/lib/es6/Charts/Histogram.js +11 -11
  36. package/lib/es6/Charts/Histogram.js.map +1 -1
  37. package/lib/es6/Charts/Line.js +11 -11
  38. package/lib/es6/Charts/Line.js.map +1 -1
  39. package/lib/es6/Charts/RadialTree.js +11 -11
  40. package/lib/es6/Charts/RadialTree.js.map +1 -1
  41. package/lib/es6/Charts/ScatterPlot.js +11 -11
  42. package/lib/es6/Charts/ScatterPlot.js.map +1 -1
  43. package/lib/es6/Charts/Venn.js +11 -11
  44. package/lib/es6/Charts/Venn.js.map +1 -1
  45. package/lib/es6/Skeleton.js +13 -13
  46. package/lib/es6/Skeleton.js.map +1 -1
  47. package/lib/es6/index.d.js.map +1 -1
  48. package/lib/esm/Charts/Area.mjs +34 -30
  49. package/lib/esm/Charts/Bar.mjs +38 -33
  50. package/lib/esm/Charts/Bubble.mjs +29 -27
  51. package/lib/esm/Charts/CompactHorizontalBar.mjs +29 -27
  52. package/lib/esm/Charts/Donut.mjs +38 -33
  53. package/lib/esm/Charts/Histogram.mjs +38 -33
  54. package/lib/esm/Charts/Line.mjs +34 -30
  55. package/lib/esm/Charts/RadialTree.mjs +29 -27
  56. package/lib/esm/Charts/ScatterPlot.mjs +29 -27
  57. package/lib/esm/Charts/Venn.mjs +29 -27
  58. package/lib/esm/Skeleton.mjs +136 -113
  59. package/lib/esm/index.mjs +22 -22
  60. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +30 -30
  61. package/lib/esm/translations/de.json.mjs +5 -4
  62. package/lib/esm/translations/en.json.mjs +5 -4
  63. package/lib/esm/translations/es.json.mjs +5 -4
  64. package/lib/esm/translations/fr.json.mjs +5 -4
  65. package/lib/esm/translations/it.json.mjs +5 -4
  66. package/lib/esm/translations/ja.json.mjs +5 -4
  67. package/lib/esm/translations/ko.json.mjs +5 -4
  68. package/lib/esm/translations/nl.json.mjs +5 -4
  69. package/lib/esm/translations/pl.json.mjs +5 -4
  70. package/lib/esm/translations/pt.json.mjs +5 -4
  71. package/lib/esm/translations/sv.json.mjs +5 -4
  72. package/lib/esm/translations/tr.json.mjs +5 -4
  73. package/lib/esm/translations/vi.json.mjs +5 -4
  74. package/lib/esm/translations/zh.json.mjs +5 -4
  75. package/lib/types/index.d.ts +1 -1
  76. package/package.json +3 -6
@@ -1,153 +1,176 @@
1
- import z from "@babel/runtime/helpers/esm/toConsumableArray";
2
- import M from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- import y from "@babel/runtime/helpers/esm/assertThisInitialized";
4
- import g from "@babel/runtime/helpers/esm/objectSpread2";
5
- import b from "@babel/runtime/helpers/esm/classCallCheck";
6
- import x from "@babel/runtime/helpers/esm/createClass";
7
- import R from "@babel/runtime/helpers/esm/inherits";
8
- import P from "@babel/runtime/helpers/esm/createSuper";
9
- import _ from "@babel/runtime/helpers/esm/defineProperty";
10
- import { sstyled as D } from "@semcore/utils/lib/core/index";
11
- import C, { sstyled as S, assignProps as E, Component as w } from "@semcore/core";
12
- import s from "react";
13
- import { Box as $ } from "@semcore/flex-box";
14
- import I from "@semcore/utils/lib/uniqueID";
15
- import O from "@semcore/utils/lib/canUseDOM";
16
- import U from "@semcore/utils/lib/enhances/i18nEnhance";
17
- import { localizedMessages as N } from "./translations/__intergalactic-dynamic-locales.mjs";
18
- var W = ["y", "x", "amount", "width", "styles", "forwardRef"], A = (
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
4
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
6
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
7
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
8
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
9
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
10
+ import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
11
+ import React from "react";
12
+ import { Box } from "@semcore/flex-box";
13
+ import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
14
+ import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
15
+ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
16
+ import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
17
+ var _excluded = ["y", "x", "amount", "width", "styles", "forwardRef"];
18
+ var style = (
19
19
  /*__reshadow_css_start__*/
20
- (D.insert(
20
+ (sstyled.insert(
21
21
  /*__inner_css_start__*/
22
- "@keyframes pulse_1ihc1{0%,to{opacity:1}50%{opacity:.4}}.___SSkeleton_1ihc1_gg_{animation-name:pulse_1ihc1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:var(--durationAnim_1ihc1);will-change:opacity}.___SSkeletonSVG_1ihc1_gg_._theme_invert_1ihc1_gg_{fill:var(--intergalactic-skeleton-bg, rgba(224, 225, 233, 0.8))}.___SSkeletonSVG_1ihc1_gg_._theme_dark_1ihc1_gg_{fill:var(--intergalactic-skeleton-bg-invert, rgba(255, 255, 255, 0.3))}.___SText_1ihc1_gg_{box-sizing:border-box}@media (prefers-reduced-motion){.___SSkeleton_1ihc1_gg_{animation-name:none}}",
23
- "1ihc1_gg_"
22
+ "@keyframes pulse_1aad7{0%,to{opacity:1}50%{opacity:.4}}.___SSkeleton_1aad7_gg_{animation-name:pulse_1aad7;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:var(--durationAnim_1aad7);will-change:opacity}.___SSkeletonSVG_1aad7_gg_._theme_invert_1aad7_gg_{fill:var(--intergalactic-skeleton-bg, rgba(224, 225, 233, 0.8))}.___SSkeletonSVG_1aad7_gg_._theme_dark_1aad7_gg_{fill:var(--intergalactic-skeleton-bg-invert, rgba(255, 255, 255, 0.3))}.___SText_1aad7_gg_{box-sizing:border-box}@media (prefers-reduced-motion){.___SSkeleton_1aad7_gg_{animation-name:none}}",
23
+ "1aad7_gg_"
24
24
  ), {
25
- __SSkeleton: "___SSkeleton_1ihc1_gg_",
26
- "--durationAnim": "--durationAnim_1ihc1",
27
- "@pulse": "pulse_1ihc1",
28
- __SSkeletonSVG: "___SSkeletonSVG_1ihc1_gg_",
29
- _theme_invert: "_theme_invert_1ihc1_gg_",
30
- _theme_dark: "_theme_dark_1ihc1_gg_",
31
- __SText: "___SText_1ihc1_gg_"
25
+ "__SSkeleton": "___SSkeleton_1aad7_gg_",
26
+ "--durationAnim": "--durationAnim_1aad7",
27
+ "@pulse": "pulse_1aad7",
28
+ "__SSkeletonSVG": "___SSkeletonSVG_1aad7_gg_",
29
+ "_theme_invert": "_theme_invert_1aad7_gg_",
30
+ "_theme_dark": "_theme_dark_1aad7_gg_",
31
+ "__SText": "___SText_1aad7_gg_"
32
32
  })
33
- ), j = {
33
+ );
34
+ var MAP_COLOR_THEME = {
34
35
  dark: "rgba(255, 255, 255, 0.3)",
35
36
  invert: "rgba(224, 225, 233, 0.8)"
36
- }, d = /* @__PURE__ */ function(i) {
37
- R(r, i);
38
- var c = P(r);
39
- function r() {
40
- return b(this, r), c.apply(this, arguments);
37
+ };
38
+ var SkeletonRoot = /* @__PURE__ */ function(_Component) {
39
+ _inherits(SkeletonRoot2, _Component);
40
+ var _super = _createSuper(SkeletonRoot2);
41
+ function SkeletonRoot2() {
42
+ _classCallCheck(this, SkeletonRoot2);
43
+ return _super.apply(this, arguments);
41
44
  }
42
- return x(r, [{
45
+ _createClass(SkeletonRoot2, [{
43
46
  key: "render",
44
- value: function() {
45
- var e = this.asProps, t, n = $, a = this.asProps;
46
- a.Children;
47
- var l = a.styles, m = a.duration, u = a.hidden, h = a.getI18nText;
48
- return a.tag, u ? null : (t = S(l), /* @__PURE__ */ s.createElement(n, t.cn("SSkeleton", g({}, E({
49
- durationAnim: "".concat(m, "ms"),
50
- role: "img",
51
- "aria-label": h("loading")
52
- }, e)))));
47
+ value: function render() {
48
+ var _ref = this.asProps, _ref3;
49
+ var SSkeleton = Box;
50
+ var _this$asProps = this.asProps;
51
+ _this$asProps.Children;
52
+ var styles = _this$asProps.styles, duration = _this$asProps.duration, hidden = _this$asProps.hidden, getI18nText = _this$asProps.getI18nText;
53
+ _this$asProps.tag;
54
+ if (hidden) return null;
55
+ return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SSkeleton, _ref3.cn("SSkeleton", _objectSpread({}, assignProps({
56
+ "durationAnim": "".concat(duration, "ms"),
57
+ "role": "img",
58
+ "aria-label": getI18nText("loading")
59
+ }, _ref))));
53
60
  }
54
- }]), r;
55
- }(w);
56
- _(d, "displayName", "Skeleton");
57
- _(d, "style", A);
58
- _(d, "enhance", [U(N)]);
59
- _(d, "defaultProps", {
61
+ }]);
62
+ return SkeletonRoot2;
63
+ }(Component);
64
+ _defineProperty(SkeletonRoot, "displayName", "Skeleton");
65
+ _defineProperty(SkeletonRoot, "style", style);
66
+ _defineProperty(SkeletonRoot, "enhance", [i18nEnhance(localizedMessages)]);
67
+ _defineProperty(SkeletonRoot, "defaultProps", {
60
68
  width: "100%",
61
69
  height: "100%",
62
70
  duration: 2e3
63
71
  });
64
- var v = /* @__PURE__ */ function(i) {
65
- R(r, i);
66
- var c = P(r);
67
- function r(o) {
68
- var e;
69
- return b(this, r), e = c.call(this, o), _(y(e), "svgRef", /* @__PURE__ */ s.createRef()), O() && o.observeParentSize && (e.observer = new ResizeObserver(e.handleResize.bind(y(e)))), e;
72
+ var SkeletonSVG = /* @__PURE__ */ function(_Component2) {
73
+ _inherits(SkeletonSVG2, _Component2);
74
+ var _super2 = _createSuper(SkeletonSVG2);
75
+ function SkeletonSVG2(props) {
76
+ var _this;
77
+ _classCallCheck(this, SkeletonSVG2);
78
+ _this = _super2.call(this, props);
79
+ _defineProperty(_assertThisInitialized(_this), "svgRef", /* @__PURE__ */ React.createRef());
80
+ if (canUseDOM() && props.observeParentSize) {
81
+ _this.observer = new ResizeObserver(_this.handleResize.bind(_assertThisInitialized(_this)));
82
+ }
83
+ return _this;
70
84
  }
71
- return x(r, [{
85
+ _createClass(SkeletonSVG2, [{
72
86
  key: "componentDidMount",
73
- value: function() {
74
- var e, t;
75
- (e = this.observer) === null || e === void 0 || e.observe((t = this.svgRef.current) === null || t === void 0 ? void 0 : t.parentElement);
87
+ value: function componentDidMount() {
88
+ var _this$observer, _this$svgRef$current;
89
+ (_this$observer = this.observer) === null || _this$observer === void 0 ? void 0 : _this$observer.observe((_this$svgRef$current = this.svgRef.current) === null || _this$svgRef$current === void 0 ? void 0 : _this$svgRef$current.parentElement);
76
90
  }
77
91
  }, {
78
92
  key: "componentWillUnmount",
79
- value: function() {
80
- var e;
81
- (e = this.observer) === null || e === void 0 || e.disconnect();
93
+ value: function componentWillUnmount() {
94
+ var _this$observer2;
95
+ (_this$observer2 = this.observer) === null || _this$observer2 === void 0 ? void 0 : _this$observer2.disconnect();
82
96
  }
83
97
  }, {
84
98
  key: "handleResize",
85
- value: function(e) {
86
- var t = e[0].target, n = this.svgRef.current;
87
- t && n && n.setAttribute("width", "100%");
99
+ value: function handleResize(data) {
100
+ var target = data[0].target;
101
+ var svg = this.svgRef.current;
102
+ if (target && svg) {
103
+ svg.setAttribute("width", "100%");
104
+ }
88
105
  }
89
106
  }, {
90
107
  key: "setContext",
91
- value: function() {
92
- var e = this.asProps.theme;
108
+ value: function setContext() {
109
+ var theme = this.asProps.theme;
93
110
  return {
94
- gradientUrl: j[e]
111
+ gradientUrl: MAP_COLOR_THEME[theme]
95
112
  };
96
113
  }
97
114
  }, {
98
115
  key: "render",
99
- value: function() {
100
- var e = this.asProps, t, n = this.asProps, a = n.Children, l = n.styles, m = n.uid, u = n.theme, h = n.duration, p = q;
101
- return t = S(l), /* @__PURE__ */ s.createElement(p, t.cn("SSkeletonSVG", g({}, E({
102
- tag: "svg",
103
- ref: this.svgRef,
104
- preserveAspectRatio: "none",
105
- theme: u,
106
- durationAnim: "".concat(h, "ms")
107
- }, e))), /* @__PURE__ */ s.createElement("defs", t.cn("defs", {}), /* @__PURE__ */ s.createElement("mask", t.cn("mask", {
108
- id: m
109
- }), /* @__PURE__ */ s.createElement(a, t.cn("Children", {})))), /* @__PURE__ */ s.createElement("rect", t.cn("rect", {
110
- x: "0",
111
- y: "0",
112
- width: "100%",
113
- height: "100%",
114
- mask: "url(#".concat(m, ")")
116
+ value: function render() {
117
+ var _ref2 = this.asProps, _ref4;
118
+ var _this$asProps2 = this.asProps, Children = _this$asProps2.Children, styles = _this$asProps2.styles, uid = _this$asProps2.uid, theme = _this$asProps2.theme, duration = _this$asProps2.duration;
119
+ var SSkeletonSVG = Skeleton;
120
+ return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SSkeletonSVG, _ref4.cn("SSkeletonSVG", _objectSpread({}, assignProps({
121
+ "tag": "svg",
122
+ "ref": this.svgRef,
123
+ "preserveAspectRatio": "none",
124
+ "theme": theme,
125
+ "durationAnim": "".concat(duration, "ms")
126
+ }, _ref2))), /* @__PURE__ */ React.createElement("defs", _ref4.cn("defs", {}), /* @__PURE__ */ React.createElement("mask", _ref4.cn("mask", {
127
+ "id": uid
128
+ }), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})))), /* @__PURE__ */ React.createElement("rect", _ref4.cn("rect", {
129
+ "x": "0",
130
+ "y": "0",
131
+ "width": "100%",
132
+ "height": "100%",
133
+ "mask": "url(#".concat(uid, ")")
115
134
  })));
116
135
  }
117
- }]), r;
118
- }(w);
119
- _(v, "displayName", "SkeletonSVG");
120
- _(v, "enhance", [I()]);
121
- _(v, "style", A);
122
- _(v, "defaultProps", {
136
+ }]);
137
+ return SkeletonSVG2;
138
+ }(Component);
139
+ _defineProperty(SkeletonSVG, "displayName", "SkeletonSVG");
140
+ _defineProperty(SkeletonSVG, "enhance", [uniqueIDEnhancement()]);
141
+ _defineProperty(SkeletonSVG, "style", style);
142
+ _defineProperty(SkeletonSVG, "defaultProps", {
123
143
  theme: "invert",
124
144
  duration: 2e3
125
145
  });
126
- function L(i) {
127
- var c = $, r = i.y, o = r === void 0 ? 0 : r, e = i.x, t = e === void 0 ? 0 : e, n = i.amount, a = n === void 0 ? 1 : n, l = i.width, m = l === void 0 ? "100%" : l, u = i.styles, h = i.forwardRef, p = M(i, W), T = Number(a), G = function(f) {
128
- var k;
129
- return k = S(u), /* @__PURE__ */ s.createElement(c, k.cn("SText", g({
130
- tag: "rect",
131
- rx: "4",
132
- ry: "4",
133
- height: "8"
134
- }, f)));
146
+ function Text(props) {
147
+ var SText = Box;
148
+ var _props$y = props.y, y = _props$y === void 0 ? 0 : _props$y, _props$x = props.x, x = _props$x === void 0 ? 0 : _props$x, _props$amount = props.amount, amount = _props$amount === void 0 ? 1 : _props$amount, _props$width = props.width, width = _props$width === void 0 ? "100%" : _props$width, styles = props.styles, forwardRef = props.forwardRef, other = _objectWithoutProperties(props, _excluded);
149
+ var amountLine = Number(amount);
150
+ var renderRect = function renderRect2(props2) {
151
+ var _ref5;
152
+ return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SText, _ref5.cn("SText", _objectSpread({
153
+ "tag": "rect",
154
+ "rx": "4",
155
+ "ry": "4",
156
+ "height": "8"
157
+ }, props2)));
135
158
  };
136
- return /* @__PURE__ */ s.createElement(s.Fragment, null, z(Array(T)).map(function(V, f) {
137
- return G(g({
138
- key: f,
139
- y: o || 20 * f,
140
- x: t,
141
- ref: h,
142
- width: m
143
- }, p));
159
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, _toConsumableArray(Array(amountLine)).map(function(el, index) {
160
+ return renderRect(_objectSpread({
161
+ key: index,
162
+ y: y || 20 * index,
163
+ x,
164
+ ref: forwardRef,
165
+ width
166
+ }, other));
144
167
  }));
145
168
  }
146
- var q = C(d);
147
- const _e = C(v, {
148
- Text: L
169
+ var Skeleton = createComponent(SkeletonRoot);
170
+ const Skeleton$1 = createComponent(SkeletonSVG, {
171
+ Text
149
172
  });
150
173
  export {
151
- q as Skeleton,
152
- _e as default
174
+ Skeleton,
175
+ Skeleton$1 as default
153
176
  };
package/lib/esm/index.mjs CHANGED
@@ -1,24 +1,24 @@
1
- import { default as a } from "./Skeleton.mjs";
2
- import { default as o } from "./Charts/Histogram.mjs";
3
- import { default as f } from "./Charts/Donut.mjs";
4
- import { default as m } from "./Charts/Bar.mjs";
5
- import { default as d } from "./Charts/CompactHorizontalBar.mjs";
6
- import { default as s } from "./Charts/Area.mjs";
7
- import { default as C } from "./Charts/Line.mjs";
8
- import { default as h } from "./Charts/Venn.mjs";
9
- import { default as i } from "./Charts/ScatterPlot.mjs";
10
- import { default as b } from "./Charts/Bubble.mjs";
11
- import { default as H } from "./Charts/RadialTree.mjs";
1
+ import { default as default2 } from "./Skeleton.mjs";
2
+ import { default as default3 } from "./Charts/Histogram.mjs";
3
+ import { default as default4 } from "./Charts/Donut.mjs";
4
+ import { default as default5 } from "./Charts/Bar.mjs";
5
+ import { default as default6 } from "./Charts/CompactHorizontalBar.mjs";
6
+ import { default as default7 } from "./Charts/Area.mjs";
7
+ import { default as default8 } from "./Charts/Line.mjs";
8
+ import { default as default9 } from "./Charts/Venn.mjs";
9
+ import { default as default10 } from "./Charts/ScatterPlot.mjs";
10
+ import { default as default11 } from "./Charts/Bubble.mjs";
11
+ import { default as default12 } from "./Charts/RadialTree.mjs";
12
12
  export {
13
- s as AreaChartSkeleton,
14
- m as BarChartSkeleton,
15
- b as BubbleChartSkeleton,
16
- d as CompactHorizontalBarChartSkeleton,
17
- f as DonutChartSkeleton,
18
- o as HistogramChartSkeleton,
19
- C as LineChartSkeleton,
20
- H as RadialTreeChartSkeleton,
21
- i as ScatterPlotChartSkeleton,
22
- h as VennChartSkeleton,
23
- a as default
13
+ default7 as AreaChartSkeleton,
14
+ default5 as BarChartSkeleton,
15
+ default11 as BubbleChartSkeleton,
16
+ default6 as CompactHorizontalBarChartSkeleton,
17
+ default4 as DonutChartSkeleton,
18
+ default3 as HistogramChartSkeleton,
19
+ default8 as LineChartSkeleton,
20
+ default12 as RadialTreeChartSkeleton,
21
+ default10 as ScatterPlotChartSkeleton,
22
+ default9 as VennChartSkeleton,
23
+ default2 as default
24
24
  };
@@ -1,33 +1,33 @@
1
- import r from "./de.json.mjs";
2
- import o from "./en.json.mjs";
3
- import m from "./es.json.mjs";
4
- import t from "./fr.json.mjs";
5
- import i from "./it.json.mjs";
6
- import p from "./ja.json.mjs";
7
- import f from "./ko.json.mjs";
8
- import e from "./nl.json.mjs";
9
- import s from "./pt.json.mjs";
10
- import a from "./tr.json.mjs";
11
- import l from "./vi.json.mjs";
12
- import v from "./zh.json.mjs";
13
- import d from "./pl.json.mjs";
14
- import n from "./sv.json.mjs";
15
- var B = {
16
- de: r,
17
- en: o,
18
- es: m,
19
- fr: t,
20
- it: i,
21
- ja: p,
22
- ko: f,
23
- nl: e,
24
- pt: s,
25
- tr: a,
26
- vi: l,
27
- zh: v,
28
- pl: d,
29
- sv: n
1
+ import de from "./de.json.mjs";
2
+ import en from "./en.json.mjs";
3
+ import es from "./es.json.mjs";
4
+ import fr from "./fr.json.mjs";
5
+ import it from "./it.json.mjs";
6
+ import ja from "./ja.json.mjs";
7
+ import ko from "./ko.json.mjs";
8
+ import nl from "./nl.json.mjs";
9
+ import pt from "./pt.json.mjs";
10
+ import tr from "./tr.json.mjs";
11
+ import vi from "./vi.json.mjs";
12
+ import zh from "./zh.json.mjs";
13
+ import pl from "./pl.json.mjs";
14
+ import sv from "./sv.json.mjs";
15
+ var localizedMessages = {
16
+ de,
17
+ en,
18
+ es,
19
+ fr,
20
+ it,
21
+ ja,
22
+ ko,
23
+ nl,
24
+ pt,
25
+ tr,
26
+ vi,
27
+ zh,
28
+ pl,
29
+ sv
30
30
  };
31
31
  export {
32
- B as localizedMessages
32
+ localizedMessages
33
33
  };
@@ -1,7 +1,8 @@
1
- const d = "Wird geladen …", a = {
2
- loading: d
1
+ const loading = "Wird geladen …";
2
+ const de = {
3
+ loading
3
4
  };
4
5
  export {
5
- a as default,
6
- d as loading
6
+ de as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const n = "Loading…", o = {
2
- loading: n
1
+ const loading = "Loading…";
2
+ const en = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- n as loading
6
+ en as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "Cargando", o = {
2
- loading: a
1
+ const loading = "Cargando";
2
+ const es = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- a as loading
6
+ es as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const n = "Chargement en cours", o = {
2
- loading: n
1
+ const loading = "Chargement en cours";
2
+ const fr = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- n as loading
6
+ fr as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "Caricamento", o = {
2
- loading: a
1
+ const loading = "Caricamento";
2
+ const it = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- a as loading
6
+ it as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "読み込み中", o = {
2
- loading: a
1
+ const loading = "読み込み中";
2
+ const ja = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- a as loading
6
+ ja as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const o = "로딩 중", a = {
2
- loading: o
1
+ const loading = "로딩 중";
2
+ const ko = {
3
+ loading
3
4
  };
4
5
  export {
5
- a as default,
6
- o as loading
6
+ ko as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const n = "Bezig met laden...", a = {
2
- loading: n
1
+ const loading = "Bezig met laden...";
2
+ const nl = {
3
+ loading
3
4
  };
4
5
  export {
5
- a as default,
6
- n as loading
6
+ nl as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "Ładowanie…", o = {
2
- loading: a
1
+ const loading = "Ładowanie…";
2
+ const pl = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- a as loading
6
+ pl as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "Carregando", o = {
2
- loading: a
1
+ const loading = "Carregando";
2
+ const pt = {
3
+ loading
3
4
  };
4
5
  export {
5
- o as default,
6
- a as loading
6
+ pt as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "Laddar…", d = {
2
- loading: a
1
+ const loading = "Laddar…";
2
+ const sv = {
3
+ loading
3
4
  };
4
5
  export {
5
- d as default,
6
- a as loading
6
+ sv as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const o = "Yükleniyor", n = {
2
- loading: o
1
+ const loading = "Yükleniyor";
2
+ const tr = {
3
+ loading
3
4
  };
4
5
  export {
5
- n as default,
6
- o as loading
6
+ tr as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const a = "Đang tải…", n = {
2
- loading: a
1
+ const loading = "Đang tải…";
2
+ const vi = {
3
+ loading
3
4
  };
4
5
  export {
5
- n as default,
6
- a as loading
6
+ vi as default,
7
+ loading
7
8
  };
@@ -1,7 +1,8 @@
1
- const o = "正在加载", a = {
2
- loading: o
1
+ const loading = "正在加载";
2
+ const zh = {
3
+ loading
3
4
  };
4
5
  export {
5
- a as default,
6
- o as loading
6
+ zh as default,
7
+ loading
7
8
  };
@@ -1,6 +1,6 @@
1
1
  import { BoxProps } from '@semcore/flex-box';
2
2
  import { Intergalactic, UnknownProperties } from '@semcore/core';
3
- import { UniqueIDProps } from '@semcore/utils/lib/uniqueID';
3
+ import { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';
4
4
 
5
5
  /** @deprecated */
6
6
  export interface ISkeletonProps extends SkeletonProps, UnknownProperties {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/skeleton",
3
3
  "description": "Semrush Skeleton Component",
4
- "version": "5.42.1",
4
+ "version": "16.0.0-prerelease.11",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "types": "lib/types/index.d.ts",
@@ -14,13 +14,10 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/utils": "4.48.1",
18
- "@semcore/flex-box": "5.41.1"
17
+ "@semcore/flex-box": "16.0.0-prerelease.11"
19
18
  },
20
19
  "peerDependencies": {
21
- "@semcore/core": "^2.17.5",
22
- "react": "16.8 - 18",
23
- "react-dom": "16.8 - 18"
20
+ "@semcore/base-components": "^16.0.0-prerelease.11"
24
21
  },
25
22
  "repository": {
26
23
  "type": "git",