@rolster/react-components 18.22.3 → 18.22.5

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 (26) hide show
  1. package/dist/cjs/assets/{index-DZlD2mZH.css → index-2Kl_PXwH.css} +79 -59
  2. package/dist/cjs/index.js +9 -9
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/es/assets/{index-DZlD2mZH.css → index-2Kl_PXwH.css} +79 -59
  5. package/dist/es/index.js +9 -9
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/esm/components/atoms/Image/Image.css +20 -4
  8. package/dist/esm/components/atoms/Image/Image.css.map +1 -1
  9. package/dist/esm/components/atoms/Image/Image.d.ts +3 -2
  10. package/dist/esm/components/atoms/Image/Image.js +4 -3
  11. package/dist/esm/components/atoms/Image/Image.js.map +1 -1
  12. package/dist/esm/components/atoms/Skeleton/Skeleton.css +18 -20
  13. package/dist/esm/components/atoms/Skeleton/Skeleton.css.map +1 -1
  14. package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.css +8 -6
  15. package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.css.map +1 -1
  16. package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js +1 -1
  17. package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js.map +1 -1
  18. package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.css +8 -6
  19. package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.css.map +1 -1
  20. package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js +1 -1
  21. package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js.map +1 -1
  22. package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.css +7 -5
  23. package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.css.map +1 -1
  24. package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js +1 -1
  25. package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js.map +1 -1
  26. package/package.json +2 -2
@@ -514,13 +514,65 @@
514
514
  transition: all 160ms 0ms var(--rls-standard-curve);
515
515
  } /*# sourceMappingURL=CheckBox.css.map */
516
516
 
517
+ .rls-skeleton {
518
+ --pvt-height: var(--rlc-skeleton-height, inherit);
519
+ --pvt-max-height: var(--rlc-skeleton-max-height, inherit);
520
+ --pvt-min-height: var(--rlc-skeleton-min-height, inherit);
521
+ --pvt-color-primary: var(--rls-app-color-100);
522
+ --pvt-color-secondary: var(--rls-app-color-200);
523
+ position: relative;
524
+ width: 100%;
525
+ height: var(--pvt-height);
526
+ max-height: var(--pvt-max-height);
527
+ min-height: var(--pvt-min-height);
528
+ line-height: var(--pvt-height);
529
+ background: linear-gradient(
530
+ 90deg,
531
+ var(--pvt-color-primary) 25%,
532
+ var(--pvt-color-secondary) 50%,
533
+ var(--pvt-color-primary) 75%
534
+ );
535
+ overflow: hidden;
536
+ background-size: 200% 100%;
537
+ animation: skeleton-animation 1600ms infinite;
538
+ border-radius: var(--rls-sizing-x2);
539
+ }
540
+ .rls-skeleton[rls-theme] {
541
+ --pvt-color-primary: var(--rls-theme-color-100);
542
+ --pvt-color-secondary: var(--rls-theme-color-200);
543
+ }
544
+ @keyframes skeleton-animation {
545
+ 0% {
546
+ background-position: 200% 0;
547
+ }
548
+ 100% {
549
+ background-position: -200% 0;
550
+ }
551
+ } /*# sourceMappingURL=Skeleton.css.map */
552
+
517
553
  .rls-image {
518
- content-visibility: auto;
519
- background-color: var(--rls-theme-color-600);
520
- opacity: 0;
554
+ --pvt-background: transparent;
555
+ --pvt-width: var(--rlc-image-width, 100%);
556
+ --pvt-height: var(--rlc-image-height, 100%);
557
+ --pvt-img-display: none;
558
+ --rlc-skeleton-width: var(--pvt-width);
559
+ --rlc-skeleton-height: var(--pvt-height);
560
+ width: var(--pvt-width);
561
+ height: var(--pvt-height);
562
+ overflow: hidden;
521
563
  }
522
564
  .rls-image--complet {
523
- opacity: 1;
565
+ --pvt-img-display: block;
566
+ background: var(--pvt-background);
567
+ }
568
+ .rls-image[rls-theme] {
569
+ --pvt-background: var(--rls-theme-color-600);
570
+ }
571
+ .rls-image > img {
572
+ display: var(--pvt-img-display);
573
+ width: var(--pvt-width);
574
+ height: var(--pvt-height);
575
+ content-visibility: auto;
524
576
  } /*# sourceMappingURL=Image.css.map */
525
577
 
526
578
  .rls-input {
@@ -883,44 +935,6 @@
883
935
  transition: all 160ms 0ms var(--rls-standard-curve);
884
936
  } /*# sourceMappingURL=RadioButton.css.map */
885
937
 
886
- .rls-skeleton {
887
- --pvt-height: var(--rlc-skeleton-height, inherit);
888
- --pvt-max-height: var(--rlc-skeleton-max-height, inherit);
889
- --pvt-min-height: var(--rlc-skeleton-min-height, inherit);
890
- position: relative;
891
- width: 100%;
892
- max-height: var(--pvt-max-height);
893
- min-height: var(--pvt-min-height);
894
- height: var(--pvt-height);
895
- line-height: var(--pvt-height);
896
- letter-spacing: inherit;
897
- overflow: hidden;
898
- background: var(--rls-theme-color-100);
899
- border-radius: var(--rls-sizing-x2);
900
- }
901
- .rls-skeleton::after {
902
- position: absolute;
903
- content: '';
904
- top: 0rem;
905
- right: 0rem;
906
- bottom: 0rem;
907
- left: 0rem;
908
- transform: translateX(-100%);
909
- background-image: linear-gradient(
910
- 90deg,
911
- var(--rls-theme-skeleton-200) 0%,
912
- var(--rls-theme-skeleton-200) 20%,
913
- var(--rls-theme-skeleton-300) 60%,
914
- var(--rls-theme-skeleton-200)
915
- );
916
- animation: skeleton-animation 1600ms infinite;
917
- }
918
- @keyframes skeleton-animation {
919
- 100% {
920
- transform: translateX(100%);
921
- }
922
- } /*# sourceMappingURL=Skeleton.css.map */
923
-
924
938
  .rls-skeleton-text {
925
939
  --pvt-height: var(--rlc-skeleton-text-height, var(--rls-body-line-height));
926
940
  --rlc-skeleton-height: var(--pvt-height);
@@ -1284,18 +1298,20 @@
1284
1298
  width: auto;
1285
1299
  }
1286
1300
  .rls-label-checkbox__text {
1287
- max-width: calc(100% - var(--rls-sizing-x16));
1288
- height: var(--pvt-text-height);
1289
- line-height: var(--rls-sizing-x12);
1301
+ max-width: calc(100% - var(--rls-sizing-x28));
1290
1302
  color: var(--rls-app-color-600);
1303
+ line-height: var(--pvt-text-height);
1291
1304
  font-size: var(--rls-label-font-size);
1292
1305
  font-weight: var(--rls-font-weight-medium);
1293
1306
  letter-spacing: var(--rls-label-letter-spacing);
1294
1307
  user-select: none;
1295
1308
  opacity: var(--pvt-text-opacity);
1296
- overflow: var(--pvt-text-overflow);
1297
- white-space: var(--pvt-text-white-space);
1298
- text-overflow: var(--pvt-text-text-overflow);
1309
+ }
1310
+ .rls-label-checkbox__text > p {
1311
+ height: initial;
1312
+ overflow: initial;
1313
+ text-overflow: initial;
1314
+ white-space: initial;
1299
1315
  } /*# sourceMappingURL=LabelCheckBox.css.map */
1300
1316
 
1301
1317
  .rls-label-radiobutton {
@@ -1323,18 +1339,20 @@
1323
1339
  width: auto;
1324
1340
  }
1325
1341
  .rls-label-radiobutton__text {
1326
- max-width: calc(100% - var(--rls-sizing-x16));
1327
- height: var(--pvt-text-height);
1328
- line-height: var(--rls-sizing-x12);
1342
+ max-width: calc(100% - var(--rls-sizing-x28));
1329
1343
  color: var(--rls-app-color-600);
1344
+ line-height: var(--pvt-text-height);
1330
1345
  font-size: var(--rls-label-font-size);
1331
1346
  font-weight: var(--rls-font-weight-medium);
1332
1347
  letter-spacing: var(--rls-label-letter-spacing);
1333
1348
  user-select: none;
1334
1349
  opacity: var(--pvt-text-opacity);
1335
- overflow: var(--pvt-text-overflow);
1336
- white-space: var(--pvt-text-white-space);
1337
- text-overflow: var(--pvt-text-text-overflow);
1350
+ }
1351
+ .rls-label-radiobutton__text > p {
1352
+ height: initial;
1353
+ overflow: initial;
1354
+ text-overflow: initial;
1355
+ white-space: initial;
1338
1356
  } /*# sourceMappingURL=LabelRadioButton.css.map */
1339
1357
 
1340
1358
  .rls-label-switch {
@@ -1362,17 +1380,19 @@
1362
1380
  }
1363
1381
  .rls-label-switch__text {
1364
1382
  max-width: calc(100% - var(--rls-sizing-x28));
1365
- height: var(--pvt-text-height);
1366
- line-height: var(--rls-sizing-x12);
1367
1383
  color: var(--rls-app-color-600);
1384
+ line-height: var(--pvt-text-height);
1368
1385
  font-size: var(--rls-label-font-size);
1369
1386
  font-weight: var(--rls-font-weight-medium);
1370
1387
  letter-spacing: var(--rls-label-letter-spacing);
1371
1388
  user-select: none;
1372
1389
  opacity: var(--pvt-text-opacity);
1373
- overflow: var(--pvt-text-overflow);
1374
- white-space: var(--pvt-text-white-space);
1375
- text-overflow: var(--pvt-text-text-overflow);
1390
+ }
1391
+ .rls-label-switch__text > p {
1392
+ height: initial;
1393
+ overflow: initial;
1394
+ text-overflow: initial;
1395
+ white-space: initial;
1376
1396
  } /*# sourceMappingURL=LabelSwitch.css.map */
1377
1397
 
1378
1398
  .rls-pagination {
package/dist/cjs/index.js CHANGED
@@ -1554,7 +1554,11 @@ function RlsCheckBoxControl({ formControl, disabled, identifier, rlsTheme }) {
1554
1554
  return (jsxRuntimeExports.jsx(RlsCheckBox, { identifier: identifier, checked: !!formControl.value, disabled: disabled, onClick: onClick, rlsTheme: rlsTheme }));
1555
1555
  }
1556
1556
 
1557
- function RlsImage({ src }) {
1557
+ function RlsSkeleton({ rlsTheme }) {
1558
+ return jsxRuntimeExports.jsx("div", { className: "rls-skeleton", "rls-theme": rlsTheme });
1559
+ }
1560
+
1561
+ function RlsImage({ src, rlsTheme }) {
1558
1562
  const [isComplet, setIsComplet] = require$$0.useState(false);
1559
1563
  const refSrc = require$$0.useRef(src);
1560
1564
  const className = require$$0.useMemo(() => {
@@ -1569,7 +1573,7 @@ function RlsImage({ src }) {
1569
1573
  const onLoad = require$$0.useCallback(() => {
1570
1574
  setIsComplet(true);
1571
1575
  }, []);
1572
- return jsxRuntimeExports.jsx("img", { className: className, src: src, onLoad: onLoad });
1576
+ return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [!isComplet && jsxRuntimeExports.jsx(RlsSkeleton, { rlsTheme: rlsTheme }), jsxRuntimeExports.jsx("img", { src: src, onLoad: onLoad })] }));
1573
1577
  }
1574
1578
 
1575
1579
  function RlsInput({ children, decimals, disabled, formControl, identifier, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type, value }) {
@@ -1721,10 +1725,6 @@ function RlsRadioButton({ checked, disabled, identifier, rlsTheme, onClick }) {
1721
1725
  return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-radiobutton__component" }) }));
1722
1726
  }
1723
1727
 
1724
- function RlsSkeleton({ rlsTheme }) {
1725
- return jsxRuntimeExports.jsx("div", { className: "rls-skeleton", "rls-theme": rlsTheme });
1726
- }
1727
-
1728
1728
  function RlsSkeletonText({ active, children, rlsTheme }) {
1729
1729
  return (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text", "rls-theme": rlsTheme, children: active ? (jsxRuntimeExports.jsx(RlsSkeleton, {})) : (jsxRuntimeExports.jsx("label", { className: "rls-skeleton-text__value", children: children })) }));
1730
1730
  }
@@ -1905,7 +1905,7 @@ function RlsLabelCheckBox({ children, disabled, extended, identifier, formContro
1905
1905
  const className = require$$0.useMemo(() => {
1906
1906
  return renderClassStatus('rls-label-checkbox', { disabled, extended });
1907
1907
  }, [disabled, extended]);
1908
- return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsCheckBox, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("label", { className: "rls-label-checkbox__text", children: children })] }));
1908
+ return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsCheckBox, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__text", children: children })] }));
1909
1909
  }
1910
1910
 
1911
1911
  function RlsLabelRadioButton({ children, disabled, extended, identifier, formControl, rlsTheme, value }) {
@@ -1919,7 +1919,7 @@ function RlsLabelRadioButton({ children, disabled, extended, identifier, formCon
1919
1919
  const className = require$$0.useMemo(() => {
1920
1920
  return renderClassStatus('rls-label-radiobutton', { disabled, extended });
1921
1921
  }, [disabled, extended]);
1922
- return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__component", onClick: onSelect, children: jsxRuntimeExports.jsx(RlsRadioButton, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("label", { className: "rls-label-radiobutton__text", children: children })] }));
1922
+ return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__component", onClick: onSelect, children: jsxRuntimeExports.jsx(RlsRadioButton, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__text", children: children })] }));
1923
1923
  }
1924
1924
 
1925
1925
  function RlsLabelSwitch({ children, disabled, extended, identifier, formControl, rlsTheme }) {
@@ -1935,7 +1935,7 @@ function RlsLabelSwitch({ children, disabled, extended, identifier, formControl,
1935
1935
  const className = require$$0.useMemo(() => {
1936
1936
  return renderClassStatus('rls-label-switch', { disabled, extended });
1937
1937
  }, [disabled, extended]);
1938
- return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-switch__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsSwitch, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("label", { className: "rls-label-switch__text", children: children })] }));
1938
+ return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-switch__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsSwitch, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-switch__text", children: children })] }));
1939
1939
  }
1940
1940
 
1941
1941
  function RlsPagination({ suggestions, count, filter, onPagination }) {