@spaced-out/ui-design-system 0.1.105 → 0.1.106
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.106](https://github.com/spaced-out/ui-design-system/compare/v0.1.105...v0.1.106) (2024-07-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 🔘 kpi shimmer css change ([9c847f5](https://github.com/spaced-out/ui-design-system/commit/9c847f51637956b33758f97c3e0f97b09e26f4a4))
|
|
11
|
+
|
|
5
12
|
### [0.1.105](https://github.com/spaced-out/ui-design-system/compare/v0.1.104...v0.1.105) (2024-07-08)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -82,13 +82,13 @@ const KPIShimmer = _ref3 => {
|
|
|
82
82
|
return /*#__PURE__*/React.createElement("div", {
|
|
83
83
|
className: (0, _classify.default)(_ShimmerModule.default.kpiBox, classNames?.wrapper)
|
|
84
84
|
}, hasIcon && /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
className: _ShimmerModule.default.section
|
|
85
|
+
className: (0, _classify.default)(_ShimmerModule.default.section, _ShimmerModule.default.iconSection, classNames?.icon)
|
|
86
86
|
}, /*#__PURE__*/React.createElement(Shimmer, {
|
|
87
87
|
type: "rounded",
|
|
88
88
|
width: 60,
|
|
89
89
|
height: 60
|
|
90
90
|
})), /*#__PURE__*/React.createElement("div", {
|
|
91
|
-
className: _ShimmerModule.default.section
|
|
91
|
+
className: (0, _classify.default)(_ShimmerModule.default.section, classNames?.text)
|
|
92
92
|
}, hasTopContent && /*#__PURE__*/React.createElement(Shimmer, {
|
|
93
93
|
type: "text",
|
|
94
94
|
width: textWidth,
|
|
@@ -96,7 +96,11 @@ export const Shimmer: React$AbstractComponent<ShimmerProps, HTMLSpanElement> =
|
|
|
96
96
|
},
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
-
type KPIShimmerClassNames = $ReadOnly<{
|
|
99
|
+
type KPIShimmerClassNames = $ReadOnly<{
|
|
100
|
+
wrapper?: string,
|
|
101
|
+
icon?: string,
|
|
102
|
+
text?: string,
|
|
103
|
+
}>;
|
|
100
104
|
|
|
101
105
|
export type KPIShimmerProps = {
|
|
102
106
|
textWidth?: number | string,
|
|
@@ -117,12 +121,12 @@ export const KPIShimmer = ({
|
|
|
117
121
|
}: KPIShimmerProps): React.Node => (
|
|
118
122
|
<div className={classify(css.kpiBox, classNames?.wrapper)}>
|
|
119
123
|
{hasIcon && (
|
|
120
|
-
<div className={css.section}>
|
|
124
|
+
<div className={classify(css.section, css.iconSection, classNames?.icon)}>
|
|
121
125
|
<Shimmer type="rounded" width={60} height={60}></Shimmer>
|
|
122
126
|
</div>
|
|
123
127
|
)}
|
|
124
128
|
|
|
125
|
-
<div className={css.section}>
|
|
129
|
+
<div className={classify(css.section, classNames?.text)}>
|
|
126
130
|
{hasTopContent && (
|
|
127
131
|
<Shimmer type="text" width={textWidth} height={15}></Shimmer>
|
|
128
132
|
)}
|