@rolster/react-components 18.24.5 → 18.24.7
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/cjs/assets/{index-Bu13z0o-.css → index-BT0oqTbs.css} +71 -13
- package/dist/cjs/index.js +32 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/assets/{index-Bu13z0o-.css → index-BT0oqTbs.css} +71 -13
- package/dist/es/index.js +32 -13
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Button/Button.css +1 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.css +5 -3
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.css.map +1 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.d.ts +2 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js +7 -3
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js.map +1 -1
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.css +5 -3
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.css.map +1 -1
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.d.ts +1 -0
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js +7 -3
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js.map +1 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.css +5 -3
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.css.map +1 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.d.ts +2 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js +7 -3
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js.map +1 -1
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.css +54 -0
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.css.map +1 -0
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.d.ts +8 -0
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.js +12 -0
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.js.map +1 -0
- package/dist/esm/components/organisms/Modal/Modal.css +0 -3
- package/dist/esm/components/organisms/Modal/Modal.css.map +1 -1
- package/dist/esm/components/organisms/Modal/Modal.d.ts +1 -2
- package/dist/esm/components/organisms/Modal/Modal.js +3 -3
- package/dist/esm/components/organisms/Modal/Modal.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
--pvt-classic-font-color: var(--rls-app-color-400);
|
|
277
277
|
--pvt-classic-border: none;
|
|
278
278
|
--pvt-raised-background: var(--rls-theme-color-200);
|
|
279
|
-
--pvt-raised-font-color: var(--rls-theme-color-
|
|
279
|
+
--pvt-raised-font-color: var(--rls-theme-color-050);
|
|
280
280
|
--pvt-raised-border: none;
|
|
281
281
|
--pvt-flat-background: var(--rls-theme-color-100);
|
|
282
282
|
--pvt-flat-font-color: var(--rls-theme-color-300);
|
|
@@ -1320,6 +1320,9 @@
|
|
|
1320
1320
|
--pvt-text-opacity: 0.5;
|
|
1321
1321
|
pointer-events: none;
|
|
1322
1322
|
}
|
|
1323
|
+
.rls-label-checkbox--reverse {
|
|
1324
|
+
flex-direction: row-reverse;
|
|
1325
|
+
}
|
|
1323
1326
|
.rls-label-checkbox--extended {
|
|
1324
1327
|
--pvt-text-text-overflow: initial;
|
|
1325
1328
|
--pvt-text-overflow: initial;
|
|
@@ -1330,12 +1333,11 @@
|
|
|
1330
1333
|
width: auto;
|
|
1331
1334
|
}
|
|
1332
1335
|
.rls-label-checkbox__text {
|
|
1333
|
-
max-width: calc(100% - var(--rls-sizing-x28));
|
|
1334
|
-
color: var(--rls-app-color-600);
|
|
1335
|
-
line-height: var(--pvt-text-height);
|
|
1336
1336
|
font-size: var(--rls-label-font-size);
|
|
1337
1337
|
font-weight: var(--rls-font-weight-medium);
|
|
1338
1338
|
letter-spacing: var(--rls-label-letter-spacing);
|
|
1339
|
+
line-height: var(--pvt-text-height);
|
|
1340
|
+
color: var(--rls-app-color-600);
|
|
1339
1341
|
user-select: none;
|
|
1340
1342
|
opacity: var(--pvt-text-opacity);
|
|
1341
1343
|
}
|
|
@@ -1360,6 +1362,9 @@
|
|
|
1360
1362
|
--pvt-text-opacity: 0.5;
|
|
1361
1363
|
pointer-events: none;
|
|
1362
1364
|
}
|
|
1365
|
+
.rls-label-radiobutton--reverse {
|
|
1366
|
+
flex-direction: row-reverse;
|
|
1367
|
+
}
|
|
1363
1368
|
.rls-label-radiobutton--extended {
|
|
1364
1369
|
--pvt-text-text-overflow: initial;
|
|
1365
1370
|
--pvt-text-overflow: initial;
|
|
@@ -1371,12 +1376,11 @@
|
|
|
1371
1376
|
width: auto;
|
|
1372
1377
|
}
|
|
1373
1378
|
.rls-label-radiobutton__text {
|
|
1374
|
-
max-width: calc(100% - var(--rls-sizing-x28));
|
|
1375
|
-
color: var(--rls-app-color-600);
|
|
1376
|
-
line-height: var(--pvt-text-height);
|
|
1377
1379
|
font-size: var(--rls-label-font-size);
|
|
1378
1380
|
font-weight: var(--rls-font-weight-medium);
|
|
1379
1381
|
letter-spacing: var(--rls-label-letter-spacing);
|
|
1382
|
+
line-height: var(--pvt-text-height);
|
|
1383
|
+
color: var(--rls-app-color-600);
|
|
1380
1384
|
user-select: none;
|
|
1381
1385
|
opacity: var(--pvt-text-opacity);
|
|
1382
1386
|
}
|
|
@@ -1401,6 +1405,9 @@
|
|
|
1401
1405
|
--pvt-text-opacity: 0.5;
|
|
1402
1406
|
pointer-events: none;
|
|
1403
1407
|
}
|
|
1408
|
+
.rls-label-switch--reverse {
|
|
1409
|
+
flex-direction: row-reverse;
|
|
1410
|
+
}
|
|
1404
1411
|
.rls-label-switch--extended {
|
|
1405
1412
|
--pvt-text-text-overflow: initial;
|
|
1406
1413
|
--pvt-text-overflow: initial;
|
|
@@ -1411,12 +1418,11 @@
|
|
|
1411
1418
|
max-width: 20rem;
|
|
1412
1419
|
}
|
|
1413
1420
|
.rls-label-switch__text {
|
|
1414
|
-
max-width: calc(100% - var(--rls-sizing-x28));
|
|
1415
|
-
color: var(--rls-app-color-600);
|
|
1416
|
-
line-height: var(--pvt-text-height);
|
|
1417
1421
|
font-size: var(--rls-label-font-size);
|
|
1418
1422
|
font-weight: var(--rls-font-weight-medium);
|
|
1419
1423
|
letter-spacing: var(--rls-label-letter-spacing);
|
|
1424
|
+
line-height: var(--pvt-text-height);
|
|
1425
|
+
color: var(--rls-app-color-600);
|
|
1420
1426
|
user-select: none;
|
|
1421
1427
|
opacity: var(--pvt-text-opacity);
|
|
1422
1428
|
}
|
|
@@ -1930,6 +1936,61 @@
|
|
|
1930
1936
|
align-items: center;
|
|
1931
1937
|
} /*# sourceMappingURL=Toolbar.css.map */
|
|
1932
1938
|
|
|
1939
|
+
.rls-bottom-sheet {
|
|
1940
|
+
--pvt-component-transform: translateY(150px) scale(0.6);
|
|
1941
|
+
--pvt-component-height: 0rem;
|
|
1942
|
+
--pvt-component-opacity: 0;
|
|
1943
|
+
--pvt-component-visibility: hidden;
|
|
1944
|
+
--pvt-backdrop-opacity: 0;
|
|
1945
|
+
--pvt-backdrop-bottom: initial;
|
|
1946
|
+
position: fixed;
|
|
1947
|
+
top: 0rem;
|
|
1948
|
+
left: 0rem;
|
|
1949
|
+
width: 100%;
|
|
1950
|
+
height: 100%;
|
|
1951
|
+
z-index: var(--rls-z-index-24);
|
|
1952
|
+
visibility: hidden;
|
|
1953
|
+
}
|
|
1954
|
+
.rls-bottom-sheet--visible {
|
|
1955
|
+
--pvt-component-visibility: visible;
|
|
1956
|
+
--pvt-component-height: auto;
|
|
1957
|
+
--pvt-component-opacity: 1;
|
|
1958
|
+
--pvt-component-transform: translateY(0) scale(1);
|
|
1959
|
+
--pvt-backdrop-bottom: 0rem;
|
|
1960
|
+
--pvt-backdrop-opacity: 1;
|
|
1961
|
+
visibility: visible;
|
|
1962
|
+
}
|
|
1963
|
+
.rls-bottom-sheet__component {
|
|
1964
|
+
position: absolute;
|
|
1965
|
+
bottom: 0px;
|
|
1966
|
+
width: 100%;
|
|
1967
|
+
max-width: 240rem;
|
|
1968
|
+
max-height: 75%;
|
|
1969
|
+
opacity: var(--pvt-component-opacity);
|
|
1970
|
+
visibility: var(--pvt-component-visibility);
|
|
1971
|
+
z-index: var(--rls-z-index-2);
|
|
1972
|
+
border-radius: var(--rls-sizing-x4) var(--rls-sizing-x4) 0rem 0rem;
|
|
1973
|
+
background: var(--rlc-bottom-sheet-background, var(--rls-app-color-050));
|
|
1974
|
+
transform: var(--pvt-component-transform);
|
|
1975
|
+
transition: opacity 125ms 0ms var(--rls-deceleration-curve),
|
|
1976
|
+
transform 125ms 0ms var(--rls-deceleration-curve),
|
|
1977
|
+
visibility 125ms 0ms var(--rls-deceleration-curve);
|
|
1978
|
+
}
|
|
1979
|
+
.rls-bottom-sheet__backdrop {
|
|
1980
|
+
position: absolute;
|
|
1981
|
+
display: block;
|
|
1982
|
+
top: 0rem;
|
|
1983
|
+
left: 0rem;
|
|
1984
|
+
right: 0rem;
|
|
1985
|
+
bottom: var(--pvt-backdrop-bottom);
|
|
1986
|
+
opacity: var(--pvt-backdrop-opacity);
|
|
1987
|
+
z-index: 1;
|
|
1988
|
+
background: var(--rls-theme-backdrop-900);
|
|
1989
|
+
backdrop-filter: blur(2px);
|
|
1990
|
+
transition: opacity 120ms 0ms var(--rls-deceleration-curve),
|
|
1991
|
+
bottom 120ms 0ms var(--rls-deceleration-curve);
|
|
1992
|
+
} /*# sourceMappingURL=BottomSheet.css.map */
|
|
1993
|
+
|
|
1933
1994
|
.rls-card {
|
|
1934
1995
|
--rlc-divider-background: var(--rls-app-color-300);
|
|
1935
1996
|
--pvt-background: var(--rls-app-color-100);
|
|
@@ -2189,9 +2250,6 @@
|
|
|
2189
2250
|
align-items: center;
|
|
2190
2251
|
justify-content: center;
|
|
2191
2252
|
}
|
|
2192
|
-
.rls-modal--overflow {
|
|
2193
|
-
--pvt-component-overflow: initial;
|
|
2194
|
-
}
|
|
2195
2253
|
.rls-modal--visible {
|
|
2196
2254
|
--pvt-component-visibility: visible;
|
|
2197
2255
|
--pvt-component-height: auto;
|
package/dist/cjs/index.js
CHANGED
|
@@ -1919,7 +1919,7 @@ function RlsFieldText(props) {
|
|
|
1919
1919
|
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx(RlsInputText, { ...props }) }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
|
-
function RlsLabelCheckBox({ children, disabled, extended, identifier, formControl, rlsTheme }) {
|
|
1922
|
+
function RlsLabelCheckBox({ children, disabled, extended, identifier, formControl, reverse, rlsTheme }) {
|
|
1923
1923
|
const [checked, setChecked] = require$$0.useState(!!formControl?.value);
|
|
1924
1924
|
require$$0.useEffect(() => {
|
|
1925
1925
|
setChecked(!!formControl?.value);
|
|
@@ -1930,12 +1930,16 @@ function RlsLabelCheckBox({ children, disabled, extended, identifier, formContro
|
|
|
1930
1930
|
: setChecked((checked) => !checked);
|
|
1931
1931
|
}, [formControl]);
|
|
1932
1932
|
const className = require$$0.useMemo(() => {
|
|
1933
|
-
return renderClassStatus('rls-label-checkbox', {
|
|
1934
|
-
|
|
1933
|
+
return renderClassStatus('rls-label-checkbox', {
|
|
1934
|
+
disabled,
|
|
1935
|
+
extended,
|
|
1936
|
+
reverse
|
|
1937
|
+
});
|
|
1938
|
+
}, [disabled, extended, reverse]);
|
|
1935
1939
|
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 })] }));
|
|
1936
1940
|
}
|
|
1937
1941
|
|
|
1938
|
-
function RlsLabelRadioButton({ children, disabled, extended, identifier, formControl, onValue, rlsTheme, value }) {
|
|
1942
|
+
function RlsLabelRadioButton({ children, disabled, extended, identifier, formControl, onValue, reverse, rlsTheme, value }) {
|
|
1939
1943
|
const [checked, setChecked] = require$$0.useState(formControl?.value === value);
|
|
1940
1944
|
require$$0.useEffect(() => {
|
|
1941
1945
|
setChecked(formControl?.value === value);
|
|
@@ -1945,12 +1949,16 @@ function RlsLabelRadioButton({ children, disabled, extended, identifier, formCon
|
|
|
1945
1949
|
onValue && onValue(value);
|
|
1946
1950
|
}, [formControl, value, onValue]);
|
|
1947
1951
|
const className = require$$0.useMemo(() => {
|
|
1948
|
-
return renderClassStatus('rls-label-radiobutton', {
|
|
1949
|
-
|
|
1952
|
+
return renderClassStatus('rls-label-radiobutton', {
|
|
1953
|
+
disabled,
|
|
1954
|
+
extended,
|
|
1955
|
+
reverse
|
|
1956
|
+
});
|
|
1957
|
+
}, [disabled, extended, reverse]);
|
|
1950
1958
|
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 })] }));
|
|
1951
1959
|
}
|
|
1952
1960
|
|
|
1953
|
-
function RlsLabelSwitch({ children, disabled, extended, identifier, formControl, rlsTheme }) {
|
|
1961
|
+
function RlsLabelSwitch({ children, disabled, extended, identifier, formControl, reverse, rlsTheme }) {
|
|
1954
1962
|
const [checked, setChecked] = require$$0.useState(!!formControl?.value);
|
|
1955
1963
|
require$$0.useEffect(() => {
|
|
1956
1964
|
setChecked(!!formControl?.value);
|
|
@@ -1961,8 +1969,12 @@ function RlsLabelSwitch({ children, disabled, extended, identifier, formControl,
|
|
|
1961
1969
|
: setChecked((checked) => !checked);
|
|
1962
1970
|
}, [formControl]);
|
|
1963
1971
|
const className = require$$0.useMemo(() => {
|
|
1964
|
-
return renderClassStatus('rls-label-switch', {
|
|
1965
|
-
|
|
1972
|
+
return renderClassStatus('rls-label-switch', {
|
|
1973
|
+
disabled,
|
|
1974
|
+
extended,
|
|
1975
|
+
reverse
|
|
1976
|
+
});
|
|
1977
|
+
}, [disabled, extended, reverse]);
|
|
1966
1978
|
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 })] }));
|
|
1967
1979
|
}
|
|
1968
1980
|
|
|
@@ -2393,6 +2405,13 @@ function RlsToolbar({ actions, children, subtitle }) {
|
|
|
2393
2405
|
return (jsxRuntimeExports.jsxs("div", { className: "rls-toolbar", children: [jsxRuntimeExports.jsxs("div", { className: "rls-toolbar__description", children: [children && jsxRuntimeExports.jsx("label", { className: "rls-toolbar__title", children: children }), subtitle && (jsxRuntimeExports.jsx("label", { className: "rls-toolbar__subtitle smalltext-semibold", children: subtitle }))] }), actions && (jsxRuntimeExports.jsx("div", { className: "rls-toolbar__actions", children: actions.map((action, index) => (jsxRuntimeExports.jsx("div", { children: action }, index))) }))] }));
|
|
2394
2406
|
}
|
|
2395
2407
|
|
|
2408
|
+
function RlsBottonSheet({ children, className, visible, rlsTheme }) {
|
|
2409
|
+
const classNameSheet = require$$0.useMemo(() => {
|
|
2410
|
+
return renderClassStatus('rls-bottom-sheet', { visible }, className);
|
|
2411
|
+
}, [className, visible]);
|
|
2412
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameSheet, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__backdrop" })] }), document.body);
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2396
2415
|
function RlsCard({ children, outline, rlsTheme }) {
|
|
2397
2416
|
const className = require$$0.useMemo(() => {
|
|
2398
2417
|
return renderClassStatus('rls-card', { outline });
|
|
@@ -2833,10 +2852,10 @@ function RlsFieldAutocomplete(props) {
|
|
|
2833
2852
|
return jsxRuntimeExports.jsx(RlsFieldAutocompleteTemplate, { ...props, render: render });
|
|
2834
2853
|
}
|
|
2835
2854
|
|
|
2836
|
-
function RlsModal({ children, className,
|
|
2855
|
+
function RlsModal({ children, className, visible, rlsTheme }) {
|
|
2837
2856
|
const classNameModal = require$$0.useMemo(() => {
|
|
2838
|
-
return renderClassStatus('rls-modal', {
|
|
2839
|
-
}, [className,
|
|
2857
|
+
return renderClassStatus('rls-modal', { visible }, className);
|
|
2858
|
+
}, [className, visible]);
|
|
2840
2859
|
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal__backdrop" })] }), document.body);
|
|
2841
2860
|
}
|
|
2842
2861
|
|
|
@@ -3780,6 +3799,7 @@ exports.RlsApplication = RlsApplication;
|
|
|
3780
3799
|
exports.RlsAvatar = RlsAvatar;
|
|
3781
3800
|
exports.RlsBadge = RlsBadge;
|
|
3782
3801
|
exports.RlsBallot = RlsBallot;
|
|
3802
|
+
exports.RlsBottonSheet = RlsBottonSheet;
|
|
3783
3803
|
exports.RlsBreadcrumb = RlsBreadcrumb;
|
|
3784
3804
|
exports.RlsButton = RlsButton;
|
|
3785
3805
|
exports.RlsButtonAction = RlsButtonAction;
|