@allxsmith/bestax-bulma 1.1.0 → 1.1.1
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/dist/index.cjs.js +8 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1412,6 +1412,13 @@ const Progress = ({ className, color, size, value, max, children, ...props }) =>
|
|
|
1412
1412
|
return (jsxRuntimeExports.jsx("progress", { className: progressClasses, value: value, max: max, ...rest, children: children }));
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
|
+
const Skeleton = ({ className, variant = 'block', lines = 3, children, ...props }) => {
|
|
1416
|
+
if (variant === 'lines') {
|
|
1417
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('skeleton-lines', className), ...props, children: Array.from({ length: lines }).map((_, i) => (jsxRuntimeExports.jsx("div", {}, i))) }));
|
|
1418
|
+
}
|
|
1419
|
+
return (jsxRuntimeExports.jsx("div", { className: classNames('skeleton-block', className), ...props, children: children }));
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1415
1422
|
const validSubTitleSizes = ['1', '2', '3', '4', '5', '6'];
|
|
1416
1423
|
const validSubTitleElements = [
|
|
1417
1424
|
'h1',
|
|
@@ -2077,6 +2084,7 @@ exports.Radio = Radio;
|
|
|
2077
2084
|
exports.Radios = Radios;
|
|
2078
2085
|
exports.Section = Section;
|
|
2079
2086
|
exports.Select = Select;
|
|
2087
|
+
exports.Skeleton = Skeleton;
|
|
2080
2088
|
exports.SubTitle = SubTitle;
|
|
2081
2089
|
exports.TabItem = TabItem;
|
|
2082
2090
|
exports.TabList = TabList;
|