@tmlmobilidade/ui 20250227.1959.42 → 20250305.1746.10
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/index.js +141 -98
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/layout/AppWrapper/Header/index.d.ts +1 -0
- package/dist/cjs/types/src/components/layout/AppWrapper/Options/index.d.ts +1 -0
- package/dist/cjs/types/src/components/layout/AppWrapper/index.d.ts +11 -0
- package/dist/cjs/types/src/components/layout/Sidebar/index.d.ts +1 -14
- package/dist/cjs/types/src/components/layout/index.d.ts +1 -0
- package/dist/cjs/types/src/lib/utils.d.ts +1 -1
- package/dist/esm/index.js +142 -100
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/layout/AppWrapper/Header/index.d.ts +1 -0
- package/dist/esm/types/src/components/layout/AppWrapper/Options/index.d.ts +1 -0
- package/dist/esm/types/src/components/layout/AppWrapper/index.d.ts +11 -0
- package/dist/esm/types/src/components/layout/Sidebar/index.d.ts +1 -14
- package/dist/esm/types/src/components/layout/index.d.ts +1 -0
- package/dist/esm/types/src/lib/utils.d.ts +1 -1
- package/dist/index.d.ts +22 -25
- package/dist/styles.css +153 -67
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -11,6 +11,7 @@ var notifications = require('@mantine/notifications');
|
|
11
11
|
var iconsReact = require('@tabler/icons-react');
|
12
12
|
var reactViewportList = require('react-viewport-list');
|
13
13
|
var hooks = require('@mantine/hooks');
|
14
|
+
var pjson = require('package.json');
|
14
15
|
var form = require('@mantine/form');
|
15
16
|
|
16
17
|
function _interopNamespaceDefault(e) {
|
@@ -776,20 +777,20 @@ function getValueAtPath(obj, path) {
|
|
776
777
|
return pathArray.reduce((prevObj, key) => prevObj && prevObj[key], obj);
|
777
778
|
}
|
778
779
|
|
779
|
-
var styles$
|
780
|
+
var styles$q = {"root":"styles-module_root__P5aS-","primary":"styles-module_primary__1Forr","secondary":"styles-module_secondary__F-Pxy","muted":"styles-module_muted__IRFQC","disabled":"styles-module_disabled__Q0YEb","danger":"styles-module_danger__-aPaa","info":"styles-module_info__z1XFz","success":"styles-module_success__V-kNZ","warning":"styles-module_warning__gGAPU","active":"styles-module_active__0bskK"};
|
780
781
|
|
781
782
|
function ActionIcon({ children, className, disabled = false, variant = 'primary', ...props }) {
|
782
|
-
const btnClass = cn(className, styles$
|
783
|
-
[styles$
|
784
|
-
[styles$
|
785
|
-
[styles$
|
786
|
-
[styles$
|
787
|
-
[styles$
|
788
|
-
[styles$
|
789
|
-
[styles$
|
790
|
-
[styles$
|
791
|
-
}, disabled && styles$
|
792
|
-
return (jsxRuntimeExports.jsx(core.ActionIcon, { className: btnClass, classNames: styles$
|
783
|
+
const btnClass = cn(className, styles$q.button, !disabled && {
|
784
|
+
[styles$q.active]: variant === 'active',
|
785
|
+
[styles$q.danger]: variant === 'danger',
|
786
|
+
[styles$q.info]: variant === 'info',
|
787
|
+
[styles$q.muted]: variant === 'muted',
|
788
|
+
[styles$q.primary]: variant === 'primary',
|
789
|
+
[styles$q.secondary]: variant === 'secondary',
|
790
|
+
[styles$q.success]: variant === 'success',
|
791
|
+
[styles$q.warning]: variant === 'warning',
|
792
|
+
}, disabled && styles$q.disabled);
|
793
|
+
return (jsxRuntimeExports.jsx(core.ActionIcon, { className: btnClass, classNames: styles$q, ...props, children: children }));
|
793
794
|
}
|
794
795
|
|
795
796
|
var ButtonOverride = {"root":"button-module_root__zbjAz","inner":"button-module_inner__KOq2J","section":"button-module_section__CCc4s","label":"button-module_label__18S3E"};
|
@@ -938,7 +939,7 @@ const getCssVariableValue = (variableName) => {
|
|
938
939
|
.trim();
|
939
940
|
};
|
940
941
|
|
941
|
-
var styles$
|
942
|
+
var styles$p = {"dropdown":"styles-module_dropdown__9W7AN"};
|
942
943
|
|
943
944
|
function ThemeSwitcher({ onThemeChange }) {
|
944
945
|
// State to hold the primary colors
|
@@ -964,7 +965,7 @@ function ThemeSwitcher({ onThemeChange }) {
|
|
964
965
|
onThemeChange?.(theme);
|
965
966
|
};
|
966
967
|
// Render the primary colors
|
967
|
-
return (jsxRuntimeExports.jsxs(core.Menu, { classNames: styles$
|
968
|
+
return (jsxRuntimeExports.jsxs(core.Menu, { classNames: styles$p, children: [jsxRuntimeExports.jsx(core.Menu.Target, { children: jsxRuntimeExports.jsx("div", { style: { cursor: 'pointer' }, children: jsxRuntimeExports.jsx(core.ColorSwatch, { color: themeColors[theme] ?? '' }) }) }), jsxRuntimeExports.jsx(core.Menu.Dropdown, { children: THEMES.map(t => (jsxRuntimeExports.jsx(core.Menu.Item, { value: t, children: jsxRuntimeExports.jsx(core.ColorSwatch, { color: themeColors[t] ?? '', onClick: () => handleThemeChange(t) }) }, t))) })] }));
|
968
969
|
}
|
969
970
|
|
970
971
|
// CM ICON
|
@@ -988,21 +989,21 @@ function TMLogoLight() {
|
|
988
989
|
return (jsxRuntimeExports.jsxs("svg", { fill: "none", height: "100%", viewBox: "0 0 162 46", width: "100%", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M6.34441 4.00624V5.42737C6.34441 5.59135 6.23823 5.70066 6.07897 5.70066H4.84012V12.3879C4.84012 12.5519 4.73394 12.6612 4.57468 12.6612H2.76973C2.61047 12.6612 2.50429 12.5519 2.50429 12.3879V5.70066H1.26543C1.10617 5.70066 1 5.59135 1 5.42737V4.00624C1 3.84226 1.10617 3.73294 1.26543 3.73294H2.50429V1.27329C2.50429 1.10932 2.61047 1 2.76973 1H4.57468C4.73394 1 4.84012 1.10932 4.84012 1.27329V3.73294H6.07897C6.23823 3.73294 6.34441 3.84226 6.34441 4.00624Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M15.6322 4.31608L15.1008 5.66417C15.0304 5.86492 14.8885 5.90119 14.7118 5.84653C14.5352 5.79187 14.3229 5.71932 13.9865 5.71932C12.889 5.71932 12.181 6.5571 12.181 7.65027V12.3882C12.181 12.5517 12.0749 12.661 11.9156 12.661H10.1106C9.95139 12.661 9.84521 12.5517 9.84521 12.3882V4.00602C9.84521 3.84204 9.95139 3.73322 10.1106 3.73322H11.8273C11.9865 3.73322 12.0749 3.84204 12.0927 4.00602L12.1637 4.98988C12.6236 4.13372 13.3311 3.53247 14.3755 3.53247C14.8711 3.53247 15.2958 3.73322 15.5434 3.95136C15.6853 4.06117 15.6853 4.18838 15.6322 4.31608Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M24.5884 8.19711C24.5884 6.84853 23.6507 5.71908 22.3766 5.71908C21.0846 5.71908 20.1464 6.77598 20.1464 8.19711C20.1464 9.63663 21.0846 10.7119 22.3766 10.7119C23.6507 10.7119 24.5884 9.5452 24.5884 8.19711ZM26.942 4.00627V12.388C26.942 12.5519 26.8359 12.6613 26.6766 12.6613H25.0483C24.889 12.6613 24.8007 12.5519 24.7829 12.388L24.7124 11.6227C24.0932 12.3696 23.2255 12.8978 22.0933 12.8978C19.6687 12.8978 17.8989 10.8207 17.8989 8.2155C17.8989 5.60926 19.6687 3.53223 22.0933 3.53223C23.1902 3.53223 24.0754 4.07931 24.7298 4.84454L24.7829 4.00627C24.8007 3.84229 24.889 3.73297 25.0483 3.73297H26.6766C26.8359 3.73297 26.942 3.84229 26.942 4.00627Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M38.7333 7.30425V12.388C38.7333 12.552 38.6271 12.6613 38.4679 12.6613H36.6624C36.5037 12.6613 36.3975 12.552 36.3975 12.388V7.74152C36.3975 6.26573 35.6186 5.75541 34.7692 5.75541C33.4598 5.75541 32.858 7.08561 32.858 7.5045V12.388C32.858 12.552 32.7519 12.6613 32.5926 12.6613H30.7876C30.6284 12.6613 30.5217 12.552 30.5217 12.388V4.00633C30.5217 3.84235 30.6284 3.73303 30.7876 3.73303H32.5217C32.6809 3.73303 32.7697 3.84235 32.7871 4.00633L32.858 5.17205V5.19044C33.4246 4.24285 34.3445 3.53229 35.6007 3.53229C37.3704 3.53229 38.7333 4.91714 38.7333 7.30425Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M48.5359 10.1648C48.5359 11.8955 46.8193 12.8977 45.2267 12.8977C43.7397 12.8977 42.5366 12.1509 41.9174 11.4041C41.8112 11.2764 41.8465 11.1487 41.9174 11.0398L42.6075 10.0371C42.7137 9.89151 42.8377 9.92778 42.997 10.0555C43.7045 10.529 44.4656 10.8754 45.1557 10.8754C45.7223 10.8754 46.271 10.693 46.271 10.1285C46.271 8.7074 42.0767 9.25399 42.0767 6.24725C42.0767 4.53444 43.5279 3.5322 45.0852 3.5322C46.2001 3.5322 47.3328 4.00624 48.0581 4.88078C48.1643 5.00848 48.1291 5.15407 48.0403 5.26339L47.368 6.1747C47.2618 6.3203 47.1378 6.28352 46.9785 6.15632C46.3063 5.70066 45.8994 5.46414 45.2797 5.46414C44.7315 5.46414 44.3242 5.77371 44.3242 6.22936C44.3242 7.68677 48.5359 6.88477 48.5359 10.1648Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M58.1706 8.19711C58.1706 6.77598 57.2329 5.71908 55.9405 5.71908C54.6664 5.71908 53.7287 6.84853 53.7287 8.19711C53.7287 9.5452 54.6664 10.7119 55.9405 10.7119C57.2329 10.7119 58.1706 9.63663 58.1706 8.19711ZM60.4181 8.2155C60.4181 10.8207 58.6484 12.8978 56.2238 12.8978C55.162 12.8978 54.3305 12.4426 53.7108 11.7683V15.8499C53.7108 16.0138 53.6051 16.1231 53.4454 16.1231H51.6404C51.4812 16.1231 51.375 16.0138 51.375 15.8499V4.00627C51.375 3.84229 51.4812 3.73297 51.6404 3.73297H53.2688C53.428 3.73297 53.5163 3.84229 53.5342 4.00627L53.5873 4.84454C54.2417 4.07931 55.1268 3.53223 56.2238 3.53223C58.6484 3.53223 60.4181 5.60926 60.4181 8.2155Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M70.2655 8.21534C70.2655 6.77582 69.2568 5.75569 68.018 5.75569C66.7617 5.75569 65.7705 6.77582 65.7705 8.21534C65.7705 9.65485 66.7617 10.675 68.018 10.675C69.2568 10.675 70.2655 9.65485 70.2655 8.21534ZM63.5229 8.21534C63.5229 5.59121 65.5229 3.53256 68.018 3.53256C70.5131 3.53256 72.513 5.59121 72.513 8.21534C72.513 10.839 70.5131 12.8981 68.018 12.8981C65.5229 12.8981 63.5229 10.839 63.5229 8.21534Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M81.3211 4.31608L80.7898 5.66417C80.7193 5.86492 80.5774 5.90119 80.4008 5.84653C80.2237 5.79187 80.0118 5.71932 79.6754 5.71932C78.578 5.71932 77.87 6.5571 77.87 7.65027V12.3882C77.87 12.5517 77.7638 12.661 77.6046 12.661H75.7996C75.6404 12.661 75.5342 12.5517 75.5342 12.3882V4.00602C75.5342 3.84204 75.6404 3.73322 75.7996 3.73322H77.5163C77.6755 3.73322 77.7638 3.84204 77.7817 4.00602L77.8526 4.98988C78.3126 4.13372 79.0201 3.53247 80.0644 3.53247C80.5601 3.53247 80.9848 3.73322 81.2324 3.95136C81.3742 4.06117 81.3742 4.18838 81.3211 4.31608Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M89.2763 4.00624V5.42737C89.2763 5.59135 89.1701 5.70066 89.0109 5.70066H87.772V12.3879C87.772 12.5519 87.6658 12.6612 87.5066 12.6612H85.7016C85.5424 12.6612 85.4357 12.5519 85.4357 12.3879V5.70066H84.1973C84.0381 5.70066 83.9319 5.59135 83.9319 5.42737V4.00624C83.9319 3.84226 84.0381 3.73294 84.1973 3.73294H85.4357V1.27329C85.4357 1.10932 85.5424 1 85.7016 1H87.5066C87.6658 1 87.772 1.10932 87.772 1.27329V3.73294H89.0109C89.1701 3.73294 89.2763 3.84226 89.2763 4.00624Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M94.9365 7.52282H99.0778C98.9181 6.26567 98.0865 5.57299 97.0426 5.57299C95.9809 5.57299 95.1315 6.26567 94.9365 7.52282ZM100.529 9.09004H94.9723C95.202 10.2742 96.0866 10.9484 97.4495 10.9484C98.1396 10.9484 98.6883 10.7661 99.2902 10.3288C99.4494 10.2195 99.5556 10.2195 99.6796 10.3472L100.458 11.1308C100.582 11.258 100.582 11.3857 100.44 11.5313C99.6087 12.388 98.476 12.8978 97.2193 12.8978C94.5119 12.8978 92.6538 10.8391 92.6538 8.2155C92.6538 5.59138 94.5119 3.53223 97.0248 3.53223C99.5377 3.53223 101.148 5.59138 101.148 8.01475C101.148 8.72532 101.06 9.09004 100.529 9.09004Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M110.829 10.1648C110.829 11.8955 109.112 12.8977 107.519 12.8977C106.032 12.8977 104.829 12.1509 104.21 11.4041C104.104 11.2764 104.139 11.1487 104.21 11.0398L104.9 10.0371C105.006 9.89151 105.13 9.92778 105.289 10.0555C105.997 10.529 106.758 10.8754 107.448 10.8754C108.015 10.8754 108.563 10.693 108.563 10.1285C108.563 8.7074 104.369 9.25399 104.369 6.24725C104.369 4.53444 105.821 3.5322 107.378 3.5322C108.493 3.5322 109.625 4.00624 110.351 4.88078C110.457 5.00848 110.422 5.15407 110.333 5.26339L109.661 6.1747C109.554 6.3203 109.431 6.28352 109.271 6.15632C108.598 5.70066 108.192 5.46414 107.572 5.46414C107.024 5.46414 106.616 5.77371 106.616 6.22936C106.616 7.68677 110.829 6.88477 110.829 10.1648Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M15.0756 23.3552V28.4385C15.0756 28.6029 14.9694 28.7122 14.8102 28.7122H13.0047C12.8459 28.7122 12.7398 28.6029 12.7398 28.4385V23.7925C12.7398 22.3167 11.9608 21.8063 11.1293 21.8063C9.81951 21.8063 9.21818 22.8811 9.21818 23.5192V28.4385C9.21818 28.6029 9.112 28.7122 8.95226 28.7122H7.1473C6.98804 28.7122 6.88187 28.6029 6.88187 28.4385V23.7925C6.88187 22.3167 6.10342 21.8063 5.25355 21.8063C3.94423 21.8063 3.34242 23.1365 3.34242 23.5554V28.4385C3.34242 28.6029 3.23673 28.7122 3.07747 28.7122H1.27203C1.11277 28.7122 1.00659 28.6029 1.00659 28.4385V20.0573C1.00659 19.8928 1.11277 19.784 1.27203 19.784H3.00652C3.16578 19.784 3.2541 19.8928 3.27196 20.0573L3.34242 21.223V21.2414C3.909 20.2938 4.82933 19.5832 6.08557 19.5832C7.23562 19.5832 8.20904 20.1666 8.75777 21.2414C9.37744 20.2759 10.4035 19.5832 11.8194 19.5832C13.7127 19.5832 15.0756 20.9681 15.0756 23.3552Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M21.6905 23.5736H25.8317C25.6725 22.3164 24.8404 21.6242 23.7966 21.6242C22.7348 21.6242 21.8854 22.3164 21.6905 23.5736ZM27.2829 25.1408H21.7262C21.9559 26.3249 22.841 26.9992 24.2039 26.9992C24.8935 26.9992 25.4423 26.8168 26.0441 26.3796C26.2033 26.2702 26.3095 26.2702 26.4335 26.3979L27.212 27.1815C27.336 27.3092 27.336 27.4365 27.1941 27.582C26.3626 28.4387 25.2299 28.949 23.9732 28.949C21.2662 28.949 19.4077 26.8899 19.4077 24.2662C19.4077 21.6421 21.2662 19.5835 23.7787 19.5835C26.2916 19.5835 27.9021 21.6421 27.9021 24.066C27.9021 24.7761 27.8138 25.1408 27.2829 25.1408Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M37.3 20.0572V21.4783C37.3 21.6423 37.1938 21.7516 37.0345 21.7516H35.7957V28.4389C35.7957 28.6028 35.6895 28.7122 35.5303 28.7122H33.7253C33.566 28.7122 33.4599 28.6028 33.4599 28.4389V21.7516H32.221C32.0617 21.7516 31.9556 21.6423 31.9556 21.4783V20.0572C31.9556 19.8927 32.0617 19.7839 32.221 19.7839H33.4599V17.3242C33.4599 17.1598 33.566 17.0509 33.7253 17.0509H35.5303C35.6895 17.0509 35.7957 17.1598 35.7957 17.3242V19.7839H37.0345C37.1938 19.7839 37.3 19.8927 37.3 20.0572Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M47.3968 20.367L46.866 21.7151C46.795 21.9154 46.6536 21.9521 46.4765 21.8975C46.2999 21.8428 46.0875 21.7698 45.7511 21.7698C44.6537 21.7698 43.9462 22.608 43.9462 23.7012V28.4386C43.9462 28.6026 43.84 28.7119 43.6807 28.7119H41.8758C41.716 28.7119 41.6099 28.6026 41.6099 28.4386V20.0569C41.6099 19.893 41.716 19.7837 41.8758 19.7837H43.5919C43.7512 19.7837 43.84 19.893 43.8579 20.0569L43.9283 21.0413C44.3882 20.1847 45.0962 19.5834 46.1401 19.5834C46.6358 19.5834 47.0609 19.7837 47.3085 20.0023C47.4499 20.1116 47.4499 20.2393 47.3968 20.367Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M57.9378 24.2662C57.9378 22.8267 56.9292 21.8061 55.6903 21.8061C54.4336 21.8061 53.4428 22.8267 53.4428 24.2662C53.4428 25.7058 54.4336 26.7259 55.6903 26.7259C56.9292 26.7259 57.9378 25.7058 57.9378 24.2662ZM51.1953 24.2662C51.1953 21.6421 53.1952 19.5835 55.6903 19.5835C58.1854 19.5835 60.1853 21.6421 60.1853 24.2662C60.1853 26.8899 58.1854 28.949 55.6903 28.949C53.1952 28.949 51.1953 26.8899 51.1953 24.2662Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M71.5678 24.2478C71.5678 22.8267 70.6296 21.7698 69.3377 21.7698C68.0636 21.7698 67.1254 22.8997 67.1254 24.2478C67.1254 25.5964 68.0636 26.7626 69.3377 26.7626C70.6296 26.7626 71.5678 25.6873 71.5678 24.2478ZM73.8153 24.2662C73.8153 26.8714 72.0456 28.949 69.621 28.949C68.5592 28.949 67.7272 28.4933 67.108 27.819V31.9005C67.108 32.0645 67.0019 32.1738 66.8426 32.1738H65.0377C64.8784 32.1738 64.7722 32.0645 64.7722 31.9005V20.0569C64.7722 19.893 64.8784 19.7837 65.0377 19.7837H66.666C66.8252 19.7837 66.9136 19.893 66.9314 20.0569L66.984 20.8952C67.6389 20.13 68.5235 19.5834 69.621 19.5834C72.0456 19.5834 73.8153 21.6604 73.8153 24.2662Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M84.4925 24.2662C84.4925 22.8267 83.4839 21.8061 82.245 21.8061C80.9888 21.8061 79.9975 22.8267 79.9975 24.2662C79.9975 25.7058 80.9888 26.7259 82.245 26.7259C83.4839 26.7259 84.4925 25.7058 84.4925 24.2662ZM77.75 24.2662C77.75 21.6421 79.7499 19.5835 82.245 19.5835C84.7401 19.5835 86.74 21.6421 86.74 24.2662C86.74 26.8899 84.7401 28.949 82.245 28.949C79.7499 28.949 77.75 26.8899 77.75 24.2662Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M91.8663 15.4109H93.6712C93.8305 15.4109 93.9367 15.5202 93.9367 15.6842V28.4386C93.9367 28.6025 93.8305 28.7123 93.6712 28.7123H91.8663C91.707 28.7123 91.6008 28.6025 91.6008 28.4386V15.6842C91.6008 15.5202 91.707 15.4109 91.8663 15.4109Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M98.9715 19.7837H100.776C100.936 19.7837 101.042 19.893 101.042 20.057V28.4387C101.042 28.6027 100.936 28.712 100.776 28.712H98.9715C98.8122 28.712 98.7061 28.6027 98.7061 28.4387V20.057C98.7061 19.893 98.8122 19.7837 98.9715 19.7837ZM98.582 16.7591C98.582 16.0306 99.1486 15.4289 99.874 15.4289C100.582 15.4289 101.148 16.0306 101.148 16.7591C101.148 17.488 100.582 18.0893 99.874 18.0893C99.1486 18.0893 98.582 17.488 98.582 16.7591Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M110.828 20.0572V21.4783C110.828 21.6423 110.722 21.7516 110.563 21.7516H109.324V28.4389C109.324 28.6028 109.218 28.7122 109.059 28.7122H107.254C107.094 28.7122 106.988 28.6028 106.988 28.4389V21.7516H105.749C105.59 21.7516 105.484 21.6423 105.484 21.4783V20.0572C105.484 19.8927 105.59 19.7839 105.749 19.7839H106.988V17.3242C106.988 17.1598 107.094 17.0509 107.254 17.0509H109.059C109.218 17.0509 109.324 17.1598 109.324 17.3242V19.7839H110.563C110.722 19.7839 110.828 19.8927 110.828 20.0572Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M121.5 24.2478C121.5 22.8997 120.562 21.7698 119.288 21.7698C117.996 21.7698 117.058 22.8267 117.058 24.2478C117.058 25.6873 117.996 26.7626 119.288 26.7626C120.562 26.7626 121.5 25.5964 121.5 24.2478ZM123.853 20.0569V28.4386C123.853 28.6026 123.747 28.7119 123.588 28.7119H121.96C121.8 28.7119 121.712 28.6026 121.694 28.4386L121.623 27.6734C121.005 28.4203 120.137 28.949 119.005 28.949C116.58 28.949 114.81 26.8714 114.81 24.2662C114.81 21.6604 116.58 19.5834 119.005 19.5834C120.102 19.5834 120.987 20.13 121.641 20.8952L121.694 20.0569C121.712 19.893 121.8 19.7837 121.96 19.7837H123.588C123.747 19.7837 123.853 19.893 123.853 20.0569Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M136.843 23.3552V28.4385C136.843 28.6029 136.737 28.7122 136.578 28.7122H134.773C134.614 28.7122 134.508 28.6029 134.508 28.4385V23.7925C134.508 22.3167 133.729 21.8063 132.879 21.8063C131.57 21.8063 130.968 23.1365 130.968 23.5554V28.4385C130.968 28.6029 130.862 28.7122 130.703 28.7122H128.898C128.739 28.7122 128.632 28.6029 128.632 28.4385V20.0573C128.632 19.8928 128.739 19.784 128.898 19.784H130.632C130.791 19.784 130.88 19.8928 130.897 20.0573L130.968 21.223V21.2414C131.535 20.2938 132.455 19.5832 133.711 19.5832C135.481 19.5832 136.843 20.9681 136.843 23.3552Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M148.098 24.2662C148.098 22.8267 147.09 21.8061 145.851 21.8061C144.594 21.8061 143.603 22.8267 143.603 24.2662C143.603 25.7058 144.594 26.7259 145.851 26.7259C147.09 26.7259 148.098 25.7058 148.098 24.2662ZM141.356 24.2662C141.356 21.6421 143.356 19.5835 145.851 19.5835C148.346 19.5835 150.346 21.6421 150.346 24.2662C150.346 26.8899 148.346 28.949 145.851 28.949C143.356 28.949 141.356 26.8899 141.356 24.2662Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M161 26.2155C161 27.9467 159.283 28.949 157.691 28.949C156.204 28.949 155.001 28.2016 154.382 27.4548C154.275 27.3271 154.311 27.1994 154.382 27.0906L155.072 26.0883C155.178 25.9427 155.302 25.979 155.461 26.1062C156.169 26.5797 156.93 26.9266 157.62 26.9266C158.186 26.9266 158.735 26.7442 158.735 26.1792C158.735 24.7581 154.541 25.3047 154.541 22.2985C154.541 20.5852 155.992 19.5834 157.549 19.5834C158.664 19.5834 159.797 20.0569 160.522 20.932C160.628 21.0597 160.593 21.2053 160.505 21.3141L159.832 22.2254C159.726 22.3715 159.602 22.3347 159.443 22.207C158.77 21.7519 158.364 21.5149 157.744 21.5149C157.196 21.5149 156.788 21.8244 156.788 22.2801C156.788 23.738 161 22.936 161 26.2155Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M7.69628 40.299C7.69628 38.9505 6.75808 37.821 5.484 37.821C4.19205 37.821 3.25434 38.8779 3.25434 40.299C3.25434 41.7381 4.19205 42.8134 5.484 42.8134C6.75808 42.8134 7.69628 41.6471 7.69628 40.299ZM10.0495 31.735V44.4899C10.0495 44.6539 9.94378 44.7627 9.78452 44.7627H8.1562C7.99694 44.7627 7.90862 44.6539 7.89077 44.4899L7.81982 43.7247C7.20064 44.4715 6.33339 44.9997 5.20071 44.9997C2.77656 44.9997 1.00684 42.9227 1.00684 40.3174C1.00684 37.7112 2.77656 35.6347 5.20071 35.6347C6.2277 35.6347 7.07661 36.1077 7.71413 36.8004V31.735C7.71413 31.5715 7.81982 31.4617 7.97908 31.4617H9.78452C9.94378 31.4617 10.0495 31.5715 10.0495 31.735Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M15.0222 39.6247H19.1635C19.0042 38.3676 18.1722 37.6749 17.1283 37.6749C16.0666 37.6749 15.2172 38.3676 15.0222 39.6247ZM20.6147 41.1915H15.058C15.2877 42.3761 16.1728 43.0504 17.5357 43.0504C18.2253 43.0504 18.774 42.868 19.3759 42.4302C19.5351 42.3214 19.6413 42.3214 19.7653 42.4486L20.5438 43.2327C20.6678 43.3599 20.6678 43.4876 20.5259 43.6332C19.6944 44.4899 18.5617 44.9997 17.305 44.9997C14.5975 44.9997 12.7395 42.941 12.7395 40.3174C12.7395 37.6933 14.5975 35.6346 17.1105 35.6346C19.6234 35.6346 21.2339 37.6933 21.2339 40.1167C21.2339 40.8272 21.1456 41.1915 20.6147 41.1915Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M32.6316 44.9921H94.1468V35.6032H32.6316V44.9921Z", fill: "#FFDD00", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M94.1483 44.9912C93.8481 44.9912 93.5518 44.9599 93.255 44.8997C92.9664 44.8406 92.6778 44.7492 92.4046 44.6344C92.1276 44.5156 91.8617 44.369 91.6151 44.2026C91.3651 44.0282 91.1339 43.8339 90.922 43.6157C90.7107 43.4021 90.522 43.1601 90.3564 42.9022C90.1909 42.6488 90.0524 42.3755 89.9366 42.0937C89.8212 41.8085 89.7368 41.5149 89.675 41.2137C89.6176 40.9126 89.5867 40.6035 89.5867 40.2984C89.5867 39.9929 89.6176 39.6843 89.675 39.3792C89.7368 39.0815 89.8212 38.7844 89.9366 38.5032C90.0485 38.2179 90.1909 37.9441 90.3564 37.6907C90.522 37.4328 90.7107 37.1953 90.922 36.9772C91.1339 36.763 91.3651 36.5647 91.6151 36.3943C91.8617 36.2278 92.1276 36.0813 92.4046 35.9625C92.6778 35.8472 92.9664 35.7568 93.255 35.6967C93.8442 35.5739 94.4485 35.5739 95.0373 35.6967C95.3302 35.7568 95.6149 35.8472 95.892 35.9625C96.1656 36.0813 96.431 36.2278 96.6772 36.3943C96.9276 36.5647 97.1622 36.763 97.3702 36.9772C97.5821 37.1953 97.7703 37.4328 97.9363 37.6907C98.1018 37.9441 98.2442 38.2179 98.3557 38.5032C98.4715 38.7844 98.556 39.0815 98.6177 39.3792C98.6752 39.6843 98.706 39.9929 98.706 40.2984C98.706 40.6035 98.6752 40.9126 98.6177 41.2137C98.556 41.5149 98.4715 41.8085 98.3557 42.0937C98.2442 42.3755 98.1018 42.6488 97.9363 42.9022C97.7703 43.1601 97.5821 43.4021 97.3702 43.6157C96.5232 44.4918 95.3452 44.9912 94.1483 44.9912Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M32.6303 44.9912C32.3339 44.9912 32.0333 44.9598 31.7408 44.8997C31.4484 44.8406 31.1636 44.7492 30.8861 44.6344C30.613 44.5156 30.3475 44.369 30.1009 44.2026C29.8509 44.0282 29.6159 43.8339 29.4079 43.6157C29.196 43.4021 29.0078 43.1601 28.8423 42.9022C28.6767 42.6488 28.5344 42.3755 28.4224 42.0937C28.3071 41.8085 28.2187 41.5148 28.1608 41.2137C28.1029 40.9126 28.0725 40.6035 28.0725 40.2984C28.0725 39.9928 28.1029 39.6843 28.1608 39.3792C28.2187 39.0815 28.3071 38.7844 28.4224 38.5031C28.5344 38.2179 28.6767 37.9441 28.8423 37.6907C29.0078 37.4328 29.196 37.1953 29.4079 36.9772C29.6159 36.763 29.8509 36.5647 30.1009 36.3943C30.3475 36.2278 30.613 36.0813 30.8861 35.9625C31.1636 35.8472 31.4484 35.7568 31.7408 35.6967C33.2229 35.3876 34.7972 35.8875 35.856 36.9772C36.064 37.1953 36.2566 37.4328 36.4216 37.6907C36.5872 37.9441 36.7257 38.2179 36.8415 38.5031C36.9569 38.7844 37.0418 39.0815 37.0992 39.3792C37.161 39.6843 37.1919 39.9928 37.1919 40.2984C37.1919 40.6035 37.161 40.9126 37.0992 41.2137C37.0418 41.5148 36.9569 41.8085 36.8415 42.0937C36.7257 42.3755 36.5872 42.6488 36.4216 42.9022C36.2566 43.1601 36.064 43.4021 35.856 43.6157C35.6442 43.8339 35.4135 44.0282 35.163 44.2026C34.9125 44.369 34.6509 44.5156 34.3739 44.6344C34.1008 44.7492 33.8117 44.8406 33.5231 44.8997C33.2268 44.9598 32.9304 44.9912 32.6303 44.9912Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M122.301 12.8979H156.398V3.53134H122.301V12.8979Z", fill: "#FFDD00", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M156.399 12.898C156.103 12.898 155.804 12.8662 155.508 12.8066C155.22 12.7479 154.932 12.6565 154.659 12.5377C154.382 12.4235 154.121 12.2769 153.872 12.1069C153.626 11.937 153.392 11.7432 153.181 11.5261C152.336 10.656 151.852 9.44555 151.852 8.21622C151.852 7.90764 151.879 7.60354 151.94 7.29894C151.997 7.00229 152.086 6.70565 152.197 6.4249C152.312 6.14017 152.451 5.86738 152.616 5.61446C152.781 5.35706 152.973 5.12004 153.181 4.9029C153.392 4.68476 153.622 4.49146 153.872 4.32103C154.117 4.15109 154.382 4.00898 154.659 3.89022C154.932 3.77195 155.22 3.6845 155.508 3.62537C156.095 3.50313 156.698 3.50313 157.286 3.62537C157.578 3.6845 157.862 3.77195 158.138 3.89022C158.411 4.00898 158.676 4.15109 158.922 4.32103C159.172 4.49146 159.406 4.68476 159.613 4.9029C159.824 5.12004 160.012 5.35706 160.181 5.61446C160.343 5.86738 160.485 6.14017 160.596 6.4249C160.712 6.70565 160.8 7.00229 160.858 7.29894C160.915 7.60354 160.945 7.90764 160.945 8.21622C160.945 9.44555 160.462 10.656 159.613 11.5261C159.406 11.7432 159.172 11.937 158.922 12.1069C158.676 12.2769 158.411 12.4235 158.138 12.5377C157.862 12.6565 157.578 12.7479 157.286 12.8066C156.994 12.8662 156.695 12.898 156.399 12.898Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M122.301 12.898C122.005 12.898 121.706 12.8662 121.414 12.8066C121.122 12.7479 120.837 12.6565 120.561 12.5377C120.289 12.4235 120.023 12.2769 119.777 12.1069C119.527 11.937 119.293 11.7432 119.086 11.5261C118.237 10.656 117.753 9.44555 117.753 8.21622C117.753 7.90764 117.784 7.60354 117.842 7.29894C117.9 7.00229 117.987 6.70565 118.103 6.4249C118.214 6.14017 118.357 5.86738 118.518 5.61446C118.687 5.35706 118.875 5.12004 119.086 4.9029C119.293 4.68476 119.527 4.49146 119.777 4.32103C120.023 4.15109 120.289 4.00898 120.561 3.89022C120.837 3.77195 121.122 3.6845 121.414 3.62537C121.997 3.50313 122.604 3.50313 123.191 3.62537C123.48 3.6845 123.768 3.77195 124.04 3.89022C124.317 4.00898 124.578 4.15109 124.828 4.32103C125.077 4.49146 125.308 4.68476 125.519 4.9029C125.726 5.12004 125.918 5.35706 126.083 5.61446C126.248 5.86738 126.387 6.14017 126.502 6.4249C126.614 6.70565 126.702 7.00229 126.759 7.29894C126.821 7.60354 126.852 7.90764 126.852 8.21622C126.852 8.52032 126.821 8.82939 126.759 9.12952C126.702 9.43014 126.614 9.72282 126.502 10.007C126.387 10.2878 126.248 10.5611 126.083 10.814C125.918 11.0709 125.726 11.3079 125.519 11.5261C124.67 12.4001 123.499 12.898 122.301 12.898Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M105.75 31.4616H107.555C107.714 31.4616 107.82 31.5709 107.82 31.7349V44.4893C107.82 44.6538 107.714 44.7631 107.555 44.7631H105.75C105.591 44.7631 105.484 44.6538 105.484 44.4893V31.7349C105.484 31.5709 105.591 31.4616 105.75 31.4616Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M112.222 35.8347H114.027C114.186 35.8347 114.293 35.944 114.293 36.108V44.4892C114.293 44.6536 114.186 44.763 114.027 44.763H112.222C112.063 44.763 111.957 44.6536 111.957 44.4892V36.108C111.957 35.944 112.063 35.8347 112.222 35.8347ZM111.833 32.8101C111.833 32.0811 112.399 31.4799 113.124 31.4799C113.832 31.4799 114.399 32.0811 114.399 32.8101C114.399 33.5385 113.832 34.1403 113.124 34.1403C112.399 34.1403 111.833 33.5385 111.833 32.8101Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M124.439 42.2667C124.439 43.9974 122.722 44.9996 121.13 44.9996C119.643 44.9996 118.44 44.2528 117.82 43.5055C117.714 43.3783 117.75 43.2506 117.82 43.1412L118.511 42.139C118.617 41.9934 118.741 42.0297 118.9 42.1574C119.608 42.6309 120.369 42.9773 121.059 42.9773C121.625 42.9773 122.174 42.7949 122.174 42.2304C122.174 40.8088 117.98 41.3559 117.98 38.3491C117.98 36.6363 119.431 35.6341 120.988 35.6341C122.103 35.6341 123.236 36.1076 123.961 36.9827C124.067 37.1104 124.032 37.256 123.943 37.3653L123.271 38.2761C123.165 38.4222 123.041 38.3854 122.882 38.2582C122.209 37.8026 121.802 37.5655 121.183 37.5655C120.635 37.5655 120.227 37.8751 120.227 38.3313C120.227 39.7887 124.439 38.9867 124.439 42.2667Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M134.472 40.2988C134.472 38.8777 133.535 37.8208 132.242 37.8208C130.968 37.8208 130.03 38.9507 130.03 40.2988C130.03 41.6474 130.968 42.8131 132.242 42.8131C133.535 42.8131 134.472 41.7383 134.472 40.2988ZM136.72 40.3172C136.72 42.9224 134.95 45 132.526 45C131.393 45 130.526 44.4713 129.907 43.7244L129.836 44.4897C129.818 44.6536 129.73 44.7629 129.571 44.7629H127.942C127.783 44.7629 127.677 44.6536 127.677 44.4897V31.7352C127.677 31.5713 127.783 31.4615 127.942 31.4615H129.747C129.907 31.4615 130.013 31.5713 130.013 31.7352V36.8001C130.65 36.108 131.5 35.6344 132.526 35.6344C134.95 35.6344 136.72 37.7115 136.72 40.3172Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M146.467 40.3172C146.467 38.8777 145.458 37.8571 144.22 37.8571C142.963 37.8571 141.972 38.8777 141.972 40.3172C141.972 41.7562 142.963 42.7769 144.22 42.7769C145.458 42.7769 146.467 41.7562 146.467 40.3172ZM139.725 40.3172C139.725 37.6931 141.725 35.6344 144.22 35.6344C146.715 35.6344 148.715 37.6931 148.715 40.3172C148.715 42.9408 146.715 45 144.22 45C141.725 45 139.725 42.9408 139.725 40.3172Z", fill: "#111111", fillRule: "evenodd" }), jsxRuntimeExports.jsx("path", { clipRule: "evenodd", d: "M158.615 40.2988C158.615 38.9507 157.678 37.8208 156.403 37.8208C155.111 37.8208 154.173 38.8777 154.173 40.2988C154.173 41.7383 155.111 42.8131 156.403 42.8131C157.678 42.8131 158.615 41.6474 158.615 40.2988ZM160.968 36.1079V44.4896C160.968 44.6536 160.863 44.7629 160.703 44.7629H159.075C158.916 44.7629 158.828 44.6536 158.81 44.4896L158.739 43.7244C158.12 44.4712 157.252 45 156.12 45C153.695 45 151.926 42.9224 151.926 40.3172C151.926 37.7114 153.695 35.6344 156.12 35.6344C157.217 35.6344 158.102 36.1805 158.757 36.9462L158.81 36.1079C158.828 35.944 158.916 35.8346 159.075 35.8346H160.703C160.863 35.8346 160.968 35.944 160.968 36.1079Z", fill: "#111111", fillRule: "evenodd" })] }));
|
989
990
|
}
|
990
991
|
|
991
|
-
var styles$
|
992
|
+
var styles$o = {"button":"styles-module_button__fQIgs","fontxs":"styles-module_fontxs__c61kh","fontsm":"styles-module_fontsm__zi0bq","fontbase":"styles-module_fontbase__Uzeoy","fontlg":"styles-module_fontlg__TfMwu","fontxl":"styles-module_fontxl__4IxFS","tag":"styles-module_tag__HOLQE","pill":"styles-module_pill__VAXc-","fullWidth":"styles-module_fullWidth__zWbR4","primary":"styles-module_primary__HWgQU","secondary":"styles-module_secondary__UOKnw","muted":"styles-module_muted__fA0Fl","disabled":"styles-module_disabled__EKMKd","danger":"styles-module_danger__gZERs","info":"styles-module_info__b-gyN","success":"styles-module_success__mRhfk","warning":"styles-module_warning__G977Z","active":"styles-module_active__5pkXl"};
|
992
993
|
|
993
994
|
/* * */
|
994
995
|
function Badge({ children, className, disabled = false, filled = false, fullWidth = false, icon, size = 'md', type = 'tag', variant = 'primary', ...props }) {
|
995
996
|
//
|
996
|
-
const btnClass = cn(styles$
|
997
|
-
[styles$
|
998
|
-
[styles$
|
999
|
-
[styles$
|
1000
|
-
[styles$
|
1001
|
-
[styles$
|
1002
|
-
[styles$
|
1003
|
-
[styles$
|
1004
|
-
[styles$
|
1005
|
-
}, disabled && styles$
|
997
|
+
const btnClass = cn(styles$o.button, !disabled && {
|
998
|
+
[styles$o.active]: variant === 'active',
|
999
|
+
[styles$o.danger]: variant === 'danger',
|
1000
|
+
[styles$o.info]: variant === 'info',
|
1001
|
+
[styles$o.muted]: variant === 'muted',
|
1002
|
+
[styles$o.primary]: variant === 'primary',
|
1003
|
+
[styles$o.secondary]: variant === 'secondary',
|
1004
|
+
[styles$o.success]: variant === 'success',
|
1005
|
+
[styles$o.warning]: variant === 'warning',
|
1006
|
+
}, disabled && styles$o.disabled, type === 'pill' && styles$o.pill, type === 'tag' && styles$o.tag, fullWidth && styles$o.fullWidth, styles$o[`font${size}`], className);
|
1006
1007
|
return (jsxRuntimeExports.jsx(core.Badge, { className: btnClass, "data-active": filled, leftSection: icon, ...props, children: children }));
|
1007
1008
|
//
|
1008
1009
|
}
|
@@ -1021,13 +1022,13 @@ function Button({ disabled, href, icon, label, loading, onClick, type = 'button'
|
|
1021
1022
|
//
|
1022
1023
|
}
|
1023
1024
|
|
1024
|
-
var styles$
|
1025
|
+
var styles$n = {"inner":"styles-module_inner__d9DH7","input":"styles-module_input__rce0R","labelWrapper":"styles-module_labelWrapper__AGQzf","label":"styles-module_label__U404g","description":"styles-module_description__bkV5V","error":"styles-module_error__ZtPYT"};
|
1025
1026
|
|
1026
1027
|
function Checkbox(props) {
|
1027
|
-
return jsxRuntimeExports.jsx(core.Checkbox, { classNames: { ...styles$
|
1028
|
+
return jsxRuntimeExports.jsx(core.Checkbox, { classNames: { ...styles$n, ...props.classNames }, ...props });
|
1028
1029
|
}
|
1029
1030
|
|
1030
|
-
var styles$
|
1031
|
+
var styles$m = {"wrapper":"styles-module_wrapper__7zsRX","input":"styles-module_input__kZP4l","placeholder":"styles-module_placeholder__uazW4","pillInputWrapper":"styles-module_pillInputWrapper__rtJzo","icon":"styles-module_icon__jXQ8R","pillClearButton":"styles-module_pillClearButton__RYrwJ","pill":"styles-module_pill__eWbVa","label":"styles-module_label__tB0Ce","labelWrapper":"styles-module_labelWrapper__eFj6h","description":"styles-module_description__KHjxV","error":"styles-module_error__fOsRf","dropdownWrapper":"styles-module_dropdownWrapper__guQYa"};
|
1031
1032
|
|
1032
1033
|
function parseComboboxItem(item) {
|
1033
1034
|
if (typeof item === 'string') {
|
@@ -1131,9 +1132,9 @@ function ComboboxComponent(props) {
|
|
1131
1132
|
if (clearable
|
1132
1133
|
&& value
|
1133
1134
|
&& (Array.isArray(value) ? value.length > 0 : true)) {
|
1134
|
-
return (jsxRuntimeExports.jsx(core.ActionIcon, { "aria-label": "Clear value", className: styles$
|
1135
|
+
return (jsxRuntimeExports.jsx(core.ActionIcon, { "aria-label": "Clear value", className: styles$m.icon, onClick: () => resetValue(), style: { cursor: 'pointer' }, variant: "transparent", children: jsxRuntimeExports.jsx(iconsReact.IconX, { size: 24 }) }));
|
1135
1136
|
}
|
1136
|
-
return jsxRuntimeExports.jsx(iconsReact.IconCaretDownFilled, { className: styles$
|
1137
|
+
return jsxRuntimeExports.jsx(iconsReact.IconCaretDownFilled, { className: styles$m.icon, size: 24 });
|
1137
1138
|
}
|
1138
1139
|
// Render Selected Values as Pills
|
1139
1140
|
function renderValues() {
|
@@ -1142,7 +1143,7 @@ function ComboboxComponent(props) {
|
|
1142
1143
|
const itemData = parseComboboxItem(data.find(dataItem => getValue(dataItem) === item) || '');
|
1143
1144
|
if (!itemData)
|
1144
1145
|
return null;
|
1145
|
-
return (jsxRuntimeExports.jsx(core.Pill, { className: styles$
|
1146
|
+
return (jsxRuntimeExports.jsx(core.Pill, { className: styles$m.pill, onRemove: () => removeValue(item), withRemoveButton: true, children: jsxRuntimeExports.jsxs("div", { className: styles$m.labelWrapper, children: [itemData.icon && jsxRuntimeExports.jsx("span", { className: styles$m.icon, children: itemData.icon }), jsxRuntimeExports.jsx("span", { children: itemData.label })] }) }, item));
|
1146
1147
|
});
|
1147
1148
|
}
|
1148
1149
|
return null;
|
@@ -1155,13 +1156,13 @@ function ComboboxComponent(props) {
|
|
1155
1156
|
return (jsxRuntimeExports.jsx(core.Combobox.Option, { value: itemData.value, active: Array.isArray(value)
|
1156
1157
|
&& value.some(v => getValue(v) === itemData.value), children: jsxRuntimeExports.jsxs(core.Group, { gap: "sm", children: [multiple
|
1157
1158
|
&& Array.isArray(value)
|
1158
|
-
&& value.some(v => getValue(v) === itemData.value) && jsxRuntimeExports.jsx(core.CheckIcon, { size: 12 }), jsxRuntimeExports.jsxs("div", { className: styles$
|
1159
|
+
&& value.some(v => getValue(v) === itemData.value) && jsxRuntimeExports.jsx(core.CheckIcon, { size: 12 }), jsxRuntimeExports.jsxs("div", { className: styles$m.labelWrapper, children: [itemData.icon && jsxRuntimeExports.jsx("span", { className: styles$m.icon, children: itemData.icon }), jsxRuntimeExports.jsx("span", { children: itemData.label })] })] }) }, itemData.value));
|
1159
1160
|
} }));
|
1160
1161
|
}
|
1161
1162
|
// Render Input Field
|
1162
1163
|
function renderInput() {
|
1163
1164
|
if (multiple) {
|
1164
|
-
return (jsxRuntimeExports.jsx(core.Combobox.DropdownTarget, { children: jsxRuntimeExports.jsx(core.PillsInput, { className: cn(styles$
|
1165
|
+
return (jsxRuntimeExports.jsx(core.Combobox.DropdownTarget, { children: jsxRuntimeExports.jsx(core.PillsInput, { className: cn(styles$m.input, styles$m.pillInputWrapper), onClick: () => combobox.openDropdown(), children: jsxRuntimeExports.jsxs(core.Pill.Group, { style: { marginRight: '25px' }, children: [renderValues(), jsxRuntimeExports.jsx(core.Combobox.EventsTarget, { children: jsxRuntimeExports.jsx(core.PillsInput.Field, { onBlur: () => combobox.closeDropdown(), onChange: handleSearchChange, onFocus: () => combobox.openDropdown(), placeholder: "Search values", style: { backgroundColor: 'transparent' }, type: searchable ? 'visible' : 'hidden', value: search, onKeyDown: (event) => {
|
1165
1166
|
if (event.key === 'Backspace'
|
1166
1167
|
&& !search
|
1167
1168
|
&& Array.isArray(value)
|
@@ -1171,26 +1172,26 @@ function ComboboxComponent(props) {
|
|
1171
1172
|
removeValue(lastValue);
|
1172
1173
|
}
|
1173
1174
|
}
|
1174
|
-
} }) }), jsxRuntimeExports.jsx("div", { className: styles$
|
1175
|
+
} }) }), jsxRuntimeExports.jsx("div", { className: styles$m.pillClearButton, children: renderClearButton() })] }) }) }));
|
1175
1176
|
}
|
1176
1177
|
const itemData = parseComboboxItem(data.find(dataItem => getValue(dataItem) === value) || '');
|
1177
|
-
return (jsxRuntimeExports.jsx(core.Combobox.Target, { children: searchable ? (jsxRuntimeExports.jsx(core.InputBase, { className: styles$
|
1178
|
+
return (jsxRuntimeExports.jsx(core.Combobox.Target, { children: searchable ? (jsxRuntimeExports.jsx(core.InputBase, { className: styles$m.input, leftSection: itemData?.icon, onChange: handleSearchChange, onClick: () => combobox.openDropdown(), onFocus: () => combobox.openDropdown(), placeholder: "Search value", rightSection: renderClearButton(), type: "text", value: search, onBlur: () => {
|
1178
1179
|
combobox.closeDropdown();
|
1179
1180
|
setSearch(itemData ? itemData.label : '');
|
1180
|
-
}, rightSectionPointerEvents: value === null ? 'none' : 'all' })) : (jsxRuntimeExports.jsx(core.InputBase, { className: styles$
|
1181
|
+
}, rightSectionPointerEvents: value === null ? 'none' : 'all' })) : (jsxRuntimeExports.jsx(core.InputBase, { className: styles$m.input, component: "button", onClick: () => combobox.openDropdown(), onFocus: () => combobox.openDropdown(), rightSection: renderClearButton(), type: "button", onBlur: () => {
|
1181
1182
|
combobox.closeDropdown();
|
1182
1183
|
setSearch(value?.toString() || '');
|
1183
|
-
}, rightSectionPointerEvents: value === null ? 'none' : 'all', pointer: true, children: itemData ? (jsxRuntimeExports.jsxs("div", { className: styles$
|
1184
|
+
}, rightSectionPointerEvents: value === null ? 'none' : 'all', pointer: true, children: itemData ? (jsxRuntimeExports.jsxs("div", { className: styles$m.labelWrapper, children: [itemData.icon && jsxRuntimeExports.jsx("span", { className: styles$m.icon, children: itemData.icon }), jsxRuntimeExports.jsx("span", { children: itemData.label })] })) : (jsxRuntimeExports.jsx(core.Input.Placeholder, { className: styles$m.placeholder, children: "Pick value" })) })) }));
|
1184
1185
|
}
|
1185
|
-
return (jsxRuntimeExports.jsxs("div", { className: cn(styles$
|
1186
|
+
return (jsxRuntimeExports.jsxs("div", { className: cn(styles$m.wrapper, className), style: { width: fullWidth ? '100%' : undefined }, children: [label && jsxRuntimeExports.jsx("label", { className: styles$m.label, children: label }), description && jsxRuntimeExports.jsx("p", { className: styles$m.description, children: description }), error && jsxRuntimeExports.jsx("p", { className: styles$m.error, children: error }), jsxRuntimeExports.jsxs(core.Combobox, { store: combobox, withinPortal: false, onOptionSubmit: (val) => {
|
1186
1187
|
updateValue(val);
|
1187
|
-
}, ...rest, children: [renderInput(), jsxRuntimeExports.jsx(core.Combobox.Dropdown, { className: styles$
|
1188
|
+
}, ...rest, children: [renderInput(), jsxRuntimeExports.jsx(core.Combobox.Dropdown, { className: styles$m.dropdownWrapper, children: jsxRuntimeExports.jsx(core.Combobox.Options, { style: { maxHeight, overflowY: 'scroll' }, children: filterData().length > 0 ? (renderOptions()) : (jsxRuntimeExports.jsx(core.Combobox.Empty, { children: "Nothing found..." })) }) })] })] }));
|
1188
1189
|
}
|
1189
1190
|
|
1190
|
-
var styles$
|
1191
|
+
var styles$l = {"input":"styles-module_input__7GH-0","wrapper":"styles-module_wrapper__676-W","variantWhite":"styles-module_variantWhite__XpqzN","section":"styles-module_section__2Dh7a","sizeSm":"styles-module_sizeSm__cmzmj","label":"styles-module_label__yQwLG","description":"styles-module_description__9hShz"};
|
1191
1192
|
|
1192
1193
|
function DateTimePicker({ leftSection = jsxRuntimeExports.jsx(iconsReact.IconCalendar, { size: 20 }), ...props }) {
|
1193
|
-
return jsxRuntimeExports.jsx(dates.DateTimePicker, { classNames: { ...styles$
|
1194
|
+
return jsxRuntimeExports.jsx(dates.DateTimePicker, { classNames: { ...styles$l, ...props.classNames }, style: { width: props.fullWidth ? '100%' : undefined }, ...props, leftSection: leftSection });
|
1194
1195
|
}
|
1195
1196
|
|
1196
1197
|
function DeleteActionIcon(props) {
|
@@ -1216,11 +1217,11 @@ function DeleteActionIcon(props) {
|
|
1216
1217
|
return (jsxRuntimeExports.jsx(ActionIcon, { onClick: handleClick, variant: "danger", children: jsxRuntimeExports.jsx(iconsReact.IconTrash, {}) }));
|
1217
1218
|
}
|
1218
1219
|
|
1219
|
-
var styles$
|
1220
|
+
var styles$k = {"description":"styles-module_description__RBHPs"};
|
1220
1221
|
|
1221
1222
|
/* * */
|
1222
1223
|
function Description({ children, singleLine = false }) {
|
1223
|
-
return (jsxRuntimeExports.jsx("p", { className: styles$
|
1224
|
+
return (jsxRuntimeExports.jsx("p", { className: styles$k.description, "data-single-line": singleLine, children: children }));
|
1224
1225
|
}
|
1225
1226
|
|
1226
1227
|
function FileButton({ accept, disabled, icon, label, loading, onCancel, onFileChange, ...props }) {
|
@@ -1256,32 +1257,32 @@ function FileButton({ accept, disabled, icon, label, loading, onCancel, onFileCh
|
|
1256
1257
|
return (jsxRuntimeExports.jsx(Button, { disabled: disabled || isLoading, icon: icon ?? jsxRuntimeExports.jsx(iconsReact.IconUpload, {}), label: label, loading: isLoading, onClick: handleButtonClick, ...props }));
|
1257
1258
|
}
|
1258
1259
|
|
1259
|
-
var styles$
|
1260
|
+
var styles$j = {"label":"styles-module_label__eX438"};
|
1260
1261
|
|
1261
1262
|
/* * */
|
1262
1263
|
function Label({ caps = false, children, singleLine = false, size = 'md' }) {
|
1263
|
-
return (jsxRuntimeExports.jsx("p", { className: styles$
|
1264
|
+
return (jsxRuntimeExports.jsx("p", { className: styles$j.label, "data-caps": caps, "data-single-line": singleLine, "data-size": size, children: children }));
|
1264
1265
|
}
|
1265
1266
|
|
1266
|
-
var styles$
|
1267
|
+
var styles$i = {"dropdown":"styles-module_dropdown__wzdfT","arrow":"styles-module_arrow__pmKfn"};
|
1267
1268
|
|
1268
1269
|
function Menu(props) {
|
1269
|
-
return jsxRuntimeExports.jsx(core.Menu, { ...props, classNames: { arrow: styles$
|
1270
|
+
return jsxRuntimeExports.jsx(core.Menu, { ...props, classNames: { arrow: styles$i.arrow } });
|
1270
1271
|
}
|
1271
1272
|
Menu.Target = function MenuTarget(props) {
|
1272
1273
|
return jsxRuntimeExports.jsx(core.Menu.Target, { ...props });
|
1273
1274
|
};
|
1274
1275
|
Menu.Dropdown = function MenuDropdown(props) {
|
1275
|
-
return jsxRuntimeExports.jsx(core.Menu.Dropdown, { ...props, className: styles$
|
1276
|
+
return jsxRuntimeExports.jsx(core.Menu.Dropdown, { ...props, className: styles$i.dropdown });
|
1276
1277
|
};
|
1277
1278
|
Menu.Item = function MenuItem(props) {
|
1278
|
-
return jsxRuntimeExports.jsx(core.Menu.Item, { ...props, className: styles$
|
1279
|
+
return jsxRuntimeExports.jsx(core.Menu.Item, { ...props, className: styles$i.item });
|
1279
1280
|
};
|
1280
1281
|
Menu.Divider = function MenuDivider(props) {
|
1281
|
-
return jsxRuntimeExports.jsx(core.Menu.Divider, { ...props, className: styles$
|
1282
|
+
return jsxRuntimeExports.jsx(core.Menu.Divider, { ...props, className: styles$i.divider });
|
1282
1283
|
};
|
1283
1284
|
Menu.Label = function MenuLabel(props) {
|
1284
|
-
return jsxRuntimeExports.jsx(core.Menu.Label, { ...props, className: styles$
|
1285
|
+
return jsxRuntimeExports.jsx(core.Menu.Label, { ...props, className: styles$i.label });
|
1285
1286
|
};
|
1286
1287
|
|
1287
1288
|
/* * */
|
@@ -1289,35 +1290,35 @@ function PasswordInput({ classNames, error, value, ...props }) {
|
|
1289
1290
|
return (jsxRuntimeExports.jsx(core.PasswordInput, { classNames: classNames, error: error, value: value, visibilityToggleIcon: ({ reveal }) => reveal ? jsxRuntimeExports.jsx(iconsReact.IconEye, { size: 18 }) : jsxRuntimeExports.jsx(iconsReact.IconEyeClosed, { size: 18 }), ...props }));
|
1290
1291
|
}
|
1291
1292
|
|
1292
|
-
var styles$
|
1293
|
+
var styles$h = {"root":"styles-module_root__vNUQ9","indicator":"styles-module_indicator__0XMRf","label":"styles-module_label__Mf1Ea"};
|
1293
1294
|
|
1294
1295
|
function SegmentedControl({ ...props }) {
|
1295
|
-
return jsxRuntimeExports.jsx(core.SegmentedControl, { ...props, className: cn(props.className), classNames: { ...styles$
|
1296
|
+
return jsxRuntimeExports.jsx(core.SegmentedControl, { ...props, className: cn(props.className), classNames: { ...styles$h, ...props.classNames }, style: { width: props.fullWidth ? '100%' : undefined } });
|
1296
1297
|
}
|
1297
1298
|
|
1298
|
-
var styles$
|
1299
|
+
var styles$g = {"thumb":"styles-module_thumb__PE26N","track":"styles-module_track__kkjfP","bar":"styles-module_bar__3e8BW","mark":"styles-module_mark__Wxc6d"};
|
1299
1300
|
|
1300
1301
|
function Slider({ classNames, ...props }) {
|
1301
|
-
return jsxRuntimeExports.jsx(core.Slider, { classNames: { ...styles$
|
1302
|
+
return jsxRuntimeExports.jsx(core.Slider, { classNames: { ...styles$g, ...classNames }, ...props });
|
1302
1303
|
}
|
1303
1304
|
|
1304
|
-
var styles$
|
1305
|
+
var styles$f = {"inner":"styles-module_inner__xu0uv","track":"styles-module_track__xeUYf","input":"styles-module_input__DyZyB","labelWrapper":"styles-module_labelWrapper__XNVsq","label":"styles-module_label__PsGVs","description":"styles-module_description__qLTxA","error":"styles-module_error__sQ6n-"};
|
1305
1306
|
|
1306
1307
|
function Switch({ classNames, ...props }) {
|
1307
|
-
return jsxRuntimeExports.jsx(core.Switch, { classNames: { ...styles$
|
1308
|
+
return jsxRuntimeExports.jsx(core.Switch, { classNames: { ...styles$f, ...classNames }, ...props });
|
1308
1309
|
}
|
1309
1310
|
|
1310
|
-
var styles$
|
1311
|
+
var styles$e = {"tag":"styles-module_tag__9r5VH","icon":"styles-module_icon__76Krb","label":"styles-module_label__RL3QA"};
|
1311
1312
|
|
1312
1313
|
/* * */
|
1313
1314
|
function Tag({ filled = false, icon, label, variant = 'primary' }) {
|
1314
|
-
return (jsxRuntimeExports.jsxs("div", { className: styles$
|
1315
|
+
return (jsxRuntimeExports.jsxs("div", { className: styles$e.tag, "data-filled": filled, "data-variant": variant, children: [React.isValidElement(icon) && jsxRuntimeExports.jsx("span", { className: styles$e.icon, children: React.cloneElement(icon) }), label !== null && label !== undefined && jsxRuntimeExports.jsx("span", { className: styles$e.label, children: label })] }));
|
1315
1316
|
}
|
1316
1317
|
|
1317
|
-
var styles$
|
1318
|
+
var styles$d = {"root":"styles-module_root__4q9aw"};
|
1318
1319
|
|
1319
1320
|
function Text({ children, lineHeight = 'base', size = 'base', weight = 'medium', ...props }) {
|
1320
|
-
return (jsxRuntimeExports.jsx(core.Text, { className: styles$
|
1321
|
+
return (jsxRuntimeExports.jsx(core.Text, { className: styles$d.root, style: {
|
1321
1322
|
fontSize: `var(--font-size-${size})`,
|
1322
1323
|
fontWeight: `var(--font-weight-${weight})`,
|
1323
1324
|
lineHeight: lineHeight === 'none' ? 0 : `var(--font-line-height-${lineHeight})`,
|
@@ -1353,10 +1354,10 @@ function Component({ classNames, error, validation, value, ...props }) {
|
|
1353
1354
|
return (jsxRuntimeExports.jsx(core.TextInput, { classNames: classNames, error: error ? error : isValid ? '' : error, rightSection: props.tooltip && renderTooltip(props.tooltip), value: value, ...props }));
|
1354
1355
|
}
|
1355
1356
|
|
1356
|
-
var styles$
|
1357
|
+
var styles$c = {"tooltip":"styles-module_tooltip__HFS4I"};
|
1357
1358
|
|
1358
1359
|
function Tooltip({ children, ...props }) {
|
1359
|
-
return jsxRuntimeExports.jsx(core.Tooltip, { classNames: { ...styles$
|
1360
|
+
return jsxRuntimeExports.jsx(core.Tooltip, { classNames: { ...styles$c, ...props.classNames }, ...props, children: children });
|
1360
1361
|
}
|
1361
1362
|
|
1362
1363
|
function accessorSearch(record, accessor, query) {
|
@@ -1492,7 +1493,7 @@ function useDataTableContext() {
|
|
1492
1493
|
return context;
|
1493
1494
|
}
|
1494
1495
|
|
1495
|
-
var styles$
|
1496
|
+
var styles$b = {"header":"styles-module_header__6dpaJ","cell":"styles-module_cell__mfzlU","cellContent":"styles-module_cellContent__NO9HT","row":"styles-module_row__0kxC4"};
|
1496
1497
|
|
1497
1498
|
/* * */
|
1498
1499
|
function DataTableHeader({ columns, }) {
|
@@ -1506,17 +1507,17 @@ function DataTableHeader({ columns, }) {
|
|
1506
1507
|
return null;
|
1507
1508
|
return (jsxRuntimeExports.jsx(ActionIcon, { variant: "muted", children: sortState?.accessor === column.accessor ? (sortState.order === 'asc' ? (jsxRuntimeExports.jsx(iconsReact.IconArrowUpRhombus, { size: 18 })) : sortState.order === 'desc' ? (jsxRuntimeExports.jsx(iconsReact.IconArrowDownRhombus, { size: 18 })) : (jsxRuntimeExports.jsx(iconsReact.IconArrowsUpDown, { size: 18 }))) : (jsxRuntimeExports.jsx(iconsReact.IconArrowsUpDown, { size: 18 })) }));
|
1508
1509
|
};
|
1509
|
-
return (jsxRuntimeExports.jsx(core.Table.Thead, { className: cn(styles$
|
1510
|
+
return (jsxRuntimeExports.jsx(core.Table.Thead, { className: cn(styles$b.header), children: jsxRuntimeExports.jsx(core.Table.Tr, { className: cn(styles$b.row), children: columns.map((column, idx) => (jsxRuntimeExports.jsx(core.Table.Th, { className: cn(styles$b.cell), style: {
|
1510
1511
|
maxWidth: column.width,
|
1511
1512
|
minWidth: column.width ?? 'max-content',
|
1512
|
-
}, children: jsxRuntimeExports.jsxs("div", { className: styles$
|
1513
|
+
}, children: jsxRuntimeExports.jsxs("div", { className: styles$b.cellContent, onClick: () => column.sortable
|
1513
1514
|
&& handleSort(column.sortKey ?? String(column.accessor)), children: [column.title, column.sortable && renderSortIcon(column)] }) }, idx))) }) }));
|
1514
1515
|
}
|
1515
1516
|
|
1516
|
-
var styles$
|
1517
|
+
var styles$a = {"row":"styles-module_row__46pHv","cell":"styles-module_cell__Yb-lZ","maxWidth":"styles-module_maxWidth__S-bPz","fullWidth":"styles-module_fullWidth__vNRRx"};
|
1517
1518
|
|
1518
1519
|
function DataTableRow({ columns, onRowClick, onRowContextMenu, onRowDoubleClick, record, }) {
|
1519
|
-
return (jsxRuntimeExports.jsx(core.Table.Tr, { className: cn(styles$
|
1520
|
+
return (jsxRuntimeExports.jsx(core.Table.Tr, { className: cn(styles$a.row), onClick: () => onRowClick && onRowClick(record), onContextMenu: () => onRowContextMenu && onRowContextMenu(record), onDoubleClick: () => onRowDoubleClick && onRowDoubleClick(record), children: columns.map((column, colIndex) => (jsxRuntimeExports.jsx(core.Table.Td, { className: cn(styles$a.cell, column.width ? styles$a.maxWidth : styles$a.fullWidth), style: {
|
1520
1521
|
maxWidth: column.width,
|
1521
1522
|
minWidth: column.width,
|
1522
1523
|
}, children: column.render
|
@@ -1526,7 +1527,7 @@ function DataTableRow({ columns, onRowClick, onRowContextMenu, onRowDoubleClick,
|
|
1526
1527
|
: String(getValueAtPath(record, column.accessor)) }, colIndex))) }));
|
1527
1528
|
}
|
1528
1529
|
|
1529
|
-
var styles$
|
1530
|
+
var styles$9 = {"root":"styles-module_root__2WSxN","title":"styles-module_title__qCJZG"};
|
1530
1531
|
|
1531
1532
|
function DataTableTitle({ search, title }) {
|
1532
1533
|
//
|
@@ -1541,10 +1542,10 @@ function DataTableTitle({ search, title }) {
|
|
1541
1542
|
};
|
1542
1543
|
//
|
1543
1544
|
// C. Render Components
|
1544
|
-
return (jsxRuntimeExports.jsxs("div", { className: styles$
|
1545
|
+
return (jsxRuntimeExports.jsxs("div", { className: styles$9.root, children: [jsxRuntimeExports.jsx("div", { className: styles$9.title, children: title && title }), search && !search.hidden && (jsxRuntimeExports.jsx("div", { className: styles$9.filters, children: jsxRuntimeExports.jsx(Component, { onChange: handleSearchChange, placeholder: search.placeholder, value: searchQuery }) }))] }));
|
1545
1546
|
}
|
1546
1547
|
|
1547
|
-
var styles$
|
1548
|
+
var styles$8 = {"root":"styles-module_root__AStX6","tableWrapper":"styles-module_tableWrapper__ByR84","table":"styles-module_table__IKm6A"};
|
1548
1549
|
|
1549
1550
|
function DataTable({ records, ...props }) {
|
1550
1551
|
return (jsxRuntimeExports.jsx(DataTableProvider, { initialRecords: records, searchAccessors: props.search?.accessors ?? [], children: jsxRuntimeExports.jsx(DataTableContent, { ...props }) }));
|
@@ -1556,25 +1557,7 @@ function DataTableContent({ classnames, columns, maxHeight, onRowClick, onRowCon
|
|
1556
1557
|
const { data } = useDataTableContext();
|
1557
1558
|
//
|
1558
1559
|
// B. Render Components
|
1559
|
-
return (jsxRuntimeExports.jsxs("div", { className: cn(styles$
|
1560
|
-
}
|
1561
|
-
|
1562
|
-
var styles$5 = {"container":"styles-module_container__u-Ao-","hAlignstart":"styles-module_hAlignstart__Poz-6","hAligncenter":"styles-module_hAligncenter__-8-PQ","hAlignend":"styles-module_hAlignend__9-hiG","vAlignstart":"styles-module_vAlignstart__UHr2W","vAligncenter":"styles-module_vAligncenter__AI3ka","vAlignend":"styles-module_vAlignend__Ufwik","gapnone":"styles-module_gapnone__yv7lm","gapxs":"styles-module_gapxs__qCDUv","gapsm":"styles-module_gapsm__9Pnop","gapmd":"styles-module_gapmd__9lCqV","gaplg":"styles-module_gaplg__kvQt9","gapxl":"styles-module_gapxl__5-mrY","a":"styles-module_a__NDsdd","aab":"styles-module_aab__xvehZ","ab":"styles-module_ab__JtDDA","abb":"styles-module_abb__jlnJf","abc":"styles-module_abc__XRK-M","abcd":"styles-module_abcd__3jl83"};
|
1563
|
-
|
1564
|
-
/* * */
|
1565
|
-
function Grid({ children, className, columns = 'a', gap = 'none', hAlign = 'start', vAlign = 'start', ...props }) {
|
1566
|
-
return (jsxRuntimeExports.jsx("div", { className: cn(styles$5.container, styles$5[columns], styles$5[`hAlign${hAlign}`], styles$5[`vAlign${vAlign}`], styles$5[`gap${gap}`], className), ...props, children: children }));
|
1567
|
-
}
|
1568
|
-
|
1569
|
-
var styles$4 = {"titleWrapper":"styles-module_titleWrapper__PzdlG","title":"styles-module_title__hJPfo","description":"styles-module_description__b9iYX","control":"styles-module_control__WpPBD","content":"styles-module_content__rKMYs","chevron":"styles-module_chevron__ow73h","icon":"styles-module_icon__ut-ws"};
|
1570
|
-
|
1571
|
-
function Section({ children, classNames, description, icon, title, titleAs = 'h2', }) {
|
1572
|
-
//
|
1573
|
-
// B. Render Component
|
1574
|
-
const renderControl = () => {
|
1575
|
-
return (jsxRuntimeExports.jsxs("div", { className: styles$4.titleWrapper, children: [icon && icon, React.createElement(titleAs, { className: styles$4.title }, title), description && jsxRuntimeExports.jsx("p", { className: styles$4.description, children: description })] }));
|
1576
|
-
};
|
1577
|
-
return (jsxRuntimeExports.jsx(core.Accordion, { chevron: jsxRuntimeExports.jsx(iconsReact.IconCaretLeftFilled, { className: styles$4.icon }), classNames: { ...styles$4, ...classNames }, children: jsxRuntimeExports.jsxs(core.Accordion.Item, { value: "section", children: [jsxRuntimeExports.jsx(core.Accordion.Control, { children: renderControl() }), jsxRuntimeExports.jsx(core.Accordion.Panel, { children: children })] }) }));
|
1560
|
+
return (jsxRuntimeExports.jsxs("div", { className: cn(styles$8.root, classnames?.root), children: [jsxRuntimeExports.jsx(DataTableTitle, { search: search, title: title ?? '' }), jsxRuntimeExports.jsx("div", { className: cn(styles$8.tableWrapper, classnames?.tableWrapper), style: { maxHeight: maxHeight || '100%' }, children: jsxRuntimeExports.jsxs(core.Table, { className: cn(styles$8.table, classnames?.table, 'block'), children: [jsxRuntimeExports.jsx(DataTableHeader, { columns: columns }), jsxRuntimeExports.jsx(core.Table.Tbody, { children: jsxRuntimeExports.jsx(reactViewportList.ViewportList, { itemMargin: 0, items: data.records, children: (record, rowIndex) => (jsxRuntimeExports.jsx(DataTableRow, { columns: columns, onRowClick: onRowClick, onRowContextMenu: onRowContextMenu, onRowDoubleClick: onRowDoubleClick, record: record }, rowIdAccessor ? getValueAtPath(record, rowIdAccessor) : rowIndex)) }) })] }) })] }));
|
1578
1561
|
}
|
1579
1562
|
|
1580
1563
|
function useIsActivePage(href) {
|
@@ -1605,25 +1588,84 @@ function useIsActivePage(href) {
|
|
1605
1588
|
return isActive;
|
1606
1589
|
}
|
1607
1590
|
|
1608
|
-
var styles$
|
1591
|
+
var styles$7 = {"container":"styles-module_container__tduxg","navWrapper":"styles-module_navWrapper__Xb59N","navButton":"styles-module_navButton__kTv0k","selected":"styles-module_selected__w-GVG","disabled":"styles-module_disabled__lxQjN"};
|
1609
1592
|
|
1610
|
-
function Sidebar({
|
1593
|
+
function Sidebar({ items, }) {
|
1611
1594
|
//
|
1612
1595
|
//
|
1613
1596
|
// A. Render components
|
1614
|
-
return (jsxRuntimeExports.jsx("div", { className: cn(styles$
|
1615
|
-
|
1616
|
-
|
1597
|
+
return (jsxRuntimeExports.jsx("div", { className: cn(styles$7.container), children: jsxRuntimeExports.jsx("div", { className: cn(styles$7.navWrapper), children: items.map((item) => {
|
1598
|
+
return (jsxRuntimeExports.jsx(SidebarItem, { disabled: item.disabled, href: item.href, icon: item.icon, label: item.label }, item.href));
|
1599
|
+
}) }) }));
|
1617
1600
|
//
|
1618
1601
|
}
|
1619
1602
|
function SidebarItem({ classNames, disabled, href, icon, label, }) {
|
1620
1603
|
const isActive = useIsActivePage(href);
|
1621
|
-
return (jsxRuntimeExports.jsx(core.Tooltip, { label: label, position: "right", children: jsxRuntimeExports.jsx("a", { href: href, children: jsxRuntimeExports.jsx(core.ActionIcon, { size: "xl", className: cn(styles$
|
1622
|
-
[styles$
|
1623
|
-
[styles$
|
1604
|
+
return (jsxRuntimeExports.jsx(core.Tooltip, { label: label, position: "right", children: jsxRuntimeExports.jsx("a", { href: href, children: jsxRuntimeExports.jsx(core.ActionIcon, { size: "xl", className: cn(styles$7.navButton, classNames?.navButton, {
|
1605
|
+
[styles$7.disabled]: disabled,
|
1606
|
+
[styles$7.selected]: isActive,
|
1624
1607
|
}), children: icon }) }) }));
|
1625
1608
|
}
|
1626
1609
|
|
1610
|
+
/* * */
|
1611
|
+
function AppOptions() {
|
1612
|
+
//
|
1613
|
+
//
|
1614
|
+
// A. Setup variables
|
1615
|
+
//
|
1616
|
+
// B. Handle actions
|
1617
|
+
//
|
1618
|
+
// C. Render components
|
1619
|
+
return (jsxRuntimeExports.jsxs(Menu, { offset: 15, position: "bottom-end", shadow: "lg", children: [jsxRuntimeExports.jsx(Menu.Target, { children: jsxRuntimeExports.jsx(ActionIcon, { color: "gray", variant: "muted", children: jsxRuntimeExports.jsx(iconsReact.IconSettings, { size: 20 }) }) }), jsxRuntimeExports.jsxs(Menu.Dropdown, { children: [jsxRuntimeExports.jsx(Menu.Divider, {}), jsxRuntimeExports.jsxs(Menu.Item, { color: "red", children: [jsxRuntimeExports.jsx(iconsReact.IconLogin, { size: 20 }), "Logout"] }), jsxRuntimeExports.jsx(Menu.Divider, {}), jsxRuntimeExports.jsxs(Menu.Label, { children: ["Version ", pjson.version] })] })] }));
|
1620
|
+
//
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
var styles$6 = {"container":"styles-module_container__G0H4W","greeting":"styles-module_greeting__Zw9r-","options":"styles-module_options__RyJJ1"};
|
1624
|
+
|
1625
|
+
/* * */
|
1626
|
+
const greetings = ['Olá', 'Hi', 'Hey', 'Oi', 'Hallo', 'Ciao', 'Hej'];
|
1627
|
+
/* * */
|
1628
|
+
function Header() {
|
1629
|
+
//
|
1630
|
+
//
|
1631
|
+
// A. Setup variables
|
1632
|
+
const [drawnGreeting] = React.useState(greetings[(greetings.length * Math.random()) | 0]);
|
1633
|
+
//
|
1634
|
+
// B. Render components
|
1635
|
+
return (jsxRuntimeExports.jsxs("div", { className: styles$6.container, children: [jsxRuntimeExports.jsx("p", { className: styles$6.greeting, children: drawnGreeting }), jsxRuntimeExports.jsx("div", { className: styles$6.options, children: jsxRuntimeExports.jsx(AppOptions, {}) })] }));
|
1636
|
+
//
|
1637
|
+
}
|
1638
|
+
|
1639
|
+
var styles$5 = {"container":"styles-module_container__V2XNO","appIcon":"styles-module_appIcon__QFZYG","content":"styles-module_content__N1Zgw"};
|
1640
|
+
|
1641
|
+
function AppWrapper({ children, icon, sidebarItems, }) {
|
1642
|
+
const appIcon = () => {
|
1643
|
+
if (icon && typeof icon === 'object' && 'href' in icon) {
|
1644
|
+
return jsxRuntimeExports.jsx("a", { href: icon.href, children: icon.icon });
|
1645
|
+
}
|
1646
|
+
return icon;
|
1647
|
+
};
|
1648
|
+
return (jsxRuntimeExports.jsxs("div", { className: styles$5.container, children: [jsxRuntimeExports.jsx("div", { className: styles$5.appIcon, children: appIcon() }), jsxRuntimeExports.jsx(Header, {}), jsxRuntimeExports.jsx(Sidebar, { items: sidebarItems }), jsxRuntimeExports.jsx("div", { className: styles$5.content, children: children })] }));
|
1649
|
+
}
|
1650
|
+
|
1651
|
+
var styles$4 = {"container":"styles-module_container__u-Ao-","hAlignstart":"styles-module_hAlignstart__Poz-6","hAligncenter":"styles-module_hAligncenter__-8-PQ","hAlignend":"styles-module_hAlignend__9-hiG","vAlignstart":"styles-module_vAlignstart__UHr2W","vAligncenter":"styles-module_vAligncenter__AI3ka","vAlignend":"styles-module_vAlignend__Ufwik","gapnone":"styles-module_gapnone__yv7lm","gapxs":"styles-module_gapxs__qCDUv","gapsm":"styles-module_gapsm__9Pnop","gapmd":"styles-module_gapmd__9lCqV","gaplg":"styles-module_gaplg__kvQt9","gapxl":"styles-module_gapxl__5-mrY","a":"styles-module_a__NDsdd","aab":"styles-module_aab__xvehZ","ab":"styles-module_ab__JtDDA","abb":"styles-module_abb__jlnJf","abc":"styles-module_abc__XRK-M","abcd":"styles-module_abcd__3jl83"};
|
1652
|
+
|
1653
|
+
/* * */
|
1654
|
+
function Grid({ children, className, columns = 'a', gap = 'none', hAlign = 'start', vAlign = 'start', ...props }) {
|
1655
|
+
return (jsxRuntimeExports.jsx("div", { className: cn(styles$4.container, styles$4[columns], styles$4[`hAlign${hAlign}`], styles$4[`vAlign${vAlign}`], styles$4[`gap${gap}`], className), ...props, children: children }));
|
1656
|
+
}
|
1657
|
+
|
1658
|
+
var styles$3 = {"titleWrapper":"styles-module_titleWrapper__PzdlG","title":"styles-module_title__hJPfo","description":"styles-module_description__b9iYX","control":"styles-module_control__WpPBD","content":"styles-module_content__rKMYs","chevron":"styles-module_chevron__ow73h","icon":"styles-module_icon__ut-ws"};
|
1659
|
+
|
1660
|
+
function Section({ children, classNames, description, icon, title, titleAs = 'h2', }) {
|
1661
|
+
//
|
1662
|
+
// B. Render Component
|
1663
|
+
const renderControl = () => {
|
1664
|
+
return (jsxRuntimeExports.jsxs("div", { className: styles$3.titleWrapper, children: [icon && icon, React.createElement(titleAs, { className: styles$3.title }, title), description && jsxRuntimeExports.jsx("p", { className: styles$3.description, children: description })] }));
|
1665
|
+
};
|
1666
|
+
return (jsxRuntimeExports.jsx(core.Accordion, { chevron: jsxRuntimeExports.jsx(iconsReact.IconCaretLeftFilled, { className: styles$3.icon }), classNames: { ...styles$3, ...classNames }, children: jsxRuntimeExports.jsxs(core.Accordion.Item, { value: "section", children: [jsxRuntimeExports.jsx(core.Accordion.Control, { children: renderControl() }), jsxRuntimeExports.jsx(core.Accordion.Panel, { children: children })] }) }));
|
1667
|
+
}
|
1668
|
+
|
1627
1669
|
var styles$2 = {"root":"styles-module_root__gwoL6"};
|
1628
1670
|
|
1629
1671
|
function SimpleSurface({ children, padding }) {
|
@@ -1813,6 +1855,7 @@ Object.defineProperty(exports, "useTree", {
|
|
1813
1855
|
get: function () { return core.useTree; }
|
1814
1856
|
});
|
1815
1857
|
exports.ActionIcon = ActionIcon;
|
1858
|
+
exports.AppWrapper = AppWrapper;
|
1816
1859
|
exports.Badge = Badge;
|
1817
1860
|
exports.Button = Button;
|
1818
1861
|
exports.CMIcon = CMIcon;
|