@ctlyst.id/internal-ui 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +125 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +117 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
@@ -1518,14 +1518,14 @@ var data_table_default = DataTable;
|
|
1518
1518
|
// src/components/datepicker/components/datepicker.tsx
|
1519
1519
|
var import_react34 = require("@chakra-ui/react");
|
1520
1520
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1521
|
+
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
1521
1522
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1522
|
-
var import_fi3 = require("react-icons/fi");
|
1523
1523
|
|
1524
1524
|
// src/components/datepicker/components/styles.tsx
|
1525
1525
|
var import_system6 = require("@chakra-ui/system");
|
1526
1526
|
var import_react31 = require("@emotion/react");
|
1527
1527
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
1528
|
-
var Styles = () => {
|
1528
|
+
var Styles = ({ showHeader }) => {
|
1529
1529
|
const { colorMode } = (0, import_system6.useColorMode)();
|
1530
1530
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
1531
1531
|
import_react31.Global,
|
@@ -1605,8 +1605,7 @@ var Styles = () => {
|
|
1605
1605
|
}
|
1606
1606
|
|
1607
1607
|
.react-datepicker {
|
1608
|
-
font-family:
|
1609
|
-
font-size: 0.75;
|
1608
|
+
font-family: Poppins;
|
1610
1609
|
background-color: ${colorMode === "light" ? "#ffffff" : "#283046"};
|
1611
1610
|
color: ${colorMode === "light" ? "#000" : "#d0d1d2"};
|
1612
1611
|
filter: drop-shadow(0px 3px 10px rgba(0, 0, 0, 0.08));
|
@@ -1666,9 +1665,9 @@ var Styles = () => {
|
|
1666
1665
|
|
1667
1666
|
.react-datepicker__header {
|
1668
1667
|
text-align: center;
|
1669
|
-
background-color:
|
1668
|
+
background-color: '#ffffff';
|
1670
1669
|
border-top-left-radius: 0.3rem;
|
1671
|
-
padding:
|
1670
|
+
padding-top:16px;
|
1672
1671
|
position: relative;
|
1673
1672
|
}
|
1674
1673
|
.react-datepicker__header--time {
|
@@ -1701,9 +1700,11 @@ var Styles = () => {
|
|
1701
1700
|
.react-datepicker__current-month,
|
1702
1701
|
.react-datepicker-time__header,
|
1703
1702
|
.react-datepicker-year-header {
|
1703
|
+
display:${showHeader ? "block" : "none"};
|
1704
1704
|
margin-top: 0;
|
1705
1705
|
color: ${colorMode === "light" ? "#111111" : "#d0d1d2"};
|
1706
|
-
font-size:
|
1706
|
+
font-size:14px;
|
1707
|
+
font-weight:600;
|
1707
1708
|
}
|
1708
1709
|
|
1709
1710
|
.react-datepicker-time__header {
|
@@ -1720,7 +1721,7 @@ var Styles = () => {
|
|
1720
1721
|
text-align: center;
|
1721
1722
|
cursor: pointer;
|
1722
1723
|
position: absolute;
|
1723
|
-
top:
|
1724
|
+
top: 10px;
|
1724
1725
|
padding: 0;
|
1725
1726
|
border: none;
|
1726
1727
|
z-index: 1;
|
@@ -1730,10 +1731,14 @@ var Styles = () => {
|
|
1730
1731
|
overflow: hidden;
|
1731
1732
|
}
|
1732
1733
|
.react-datepicker__navigation--previous {
|
1733
|
-
left:
|
1734
|
+
left: 22px;
|
1735
|
+
border:1px solid var(--chakra-colors-neutral-400);
|
1736
|
+
border-radius:4px;
|
1734
1737
|
}
|
1735
1738
|
.react-datepicker__navigation--next {
|
1736
|
-
right:
|
1739
|
+
right: 22px;
|
1740
|
+
border:1px solid var(--chakra-colors-neutral-400);
|
1741
|
+
border-radius:4px;
|
1737
1742
|
}
|
1738
1743
|
.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {
|
1739
1744
|
right: 85px;
|
@@ -1766,14 +1771,14 @@ var Styles = () => {
|
|
1766
1771
|
}
|
1767
1772
|
.react-datepicker__navigation-icon--next::before {
|
1768
1773
|
transform: rotate(45deg);
|
1769
|
-
left: -
|
1774
|
+
left: -4px;
|
1770
1775
|
}
|
1771
1776
|
.react-datepicker__navigation-icon--previous {
|
1772
1777
|
right: -2px;
|
1773
1778
|
}
|
1774
1779
|
.react-datepicker__navigation-icon--previous::before {
|
1775
1780
|
transform: rotate(225deg);
|
1776
|
-
right: -
|
1781
|
+
right: -4px;
|
1777
1782
|
}
|
1778
1783
|
|
1779
1784
|
.react-datepicker__month-container {
|
@@ -1797,7 +1802,7 @@ var Styles = () => {
|
|
1797
1802
|
}
|
1798
1803
|
|
1799
1804
|
.react-datepicker__month {
|
1800
|
-
|
1805
|
+
padding: 0 1rem 1rem 1rem;
|
1801
1806
|
text-align: center;
|
1802
1807
|
}
|
1803
1808
|
.react-datepicker__month .react-datepicker__month-text,
|
@@ -1921,17 +1926,20 @@ var Styles = () => {
|
|
1921
1926
|
|
1922
1927
|
.react-datepicker__day-names {
|
1923
1928
|
margin-bottom: 0px;
|
1929
|
+
margin-top: 8px;
|
1924
1930
|
}
|
1925
1931
|
|
1926
1932
|
.react-datepicker__day-name,
|
1927
1933
|
.react-datepicker__day,
|
1928
1934
|
.react-datepicker__time-name {
|
1929
|
-
|
1935
|
+
colors: #000;
|
1930
1936
|
display: inline-block;
|
1931
|
-
width:
|
1932
|
-
line-height:
|
1937
|
+
width: 2.25rem;
|
1938
|
+
line-height: 2.25rem;
|
1933
1939
|
text-align: center;
|
1934
|
-
|
1940
|
+
}
|
1941
|
+
.react-datepicker__day-name{
|
1942
|
+
color:var(--chakra-colors-black-medium)
|
1935
1943
|
}
|
1936
1944
|
|
1937
1945
|
.react-datepicker__month--selected, .react-datepicker__month--in-selecting-range, .react-datepicker__month--in-range,
|
@@ -1969,8 +1977,8 @@ var Styles = () => {
|
|
1969
1977
|
.react-datepicker__month-text:hover,
|
1970
1978
|
.react-datepicker__quarter-text:hover,
|
1971
1979
|
.react-datepicker__year-text:hover {
|
1972
|
-
border-radius:
|
1973
|
-
background-color:
|
1980
|
+
border-radius: 2rem;
|
1981
|
+
background-color: var(--chakra-colors-neutral-200);
|
1974
1982
|
}
|
1975
1983
|
.react-datepicker__day--highlighted,
|
1976
1984
|
.react-datepicker__month-text--highlighted,
|
@@ -2008,8 +2016,8 @@ var Styles = () => {
|
|
2008
2016
|
.react-datepicker__year-text--selected,
|
2009
2017
|
.react-datepicker__year-text--in-selecting-range,
|
2010
2018
|
.react-datepicker__year-text--in-range {
|
2011
|
-
border-radius:
|
2012
|
-
background-color:
|
2019
|
+
border-radius: var(--chakra-radii-2xl);
|
2020
|
+
background-color: var(--chakra-colors-primary-500);
|
2013
2021
|
color: #fff;
|
2014
2022
|
}
|
2015
2023
|
.react-datepicker__day--selected:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,
|
@@ -2022,13 +2030,13 @@ var Styles = () => {
|
|
2022
2030
|
.react-datepicker__year-text--selected:hover,
|
2023
2031
|
.react-datepicker__year-text--in-selecting-range:hover,
|
2024
2032
|
.react-datepicker__year-text--in-range:hover {
|
2025
|
-
background-color:
|
2033
|
+
background-color: var(--chakra-colors-primary-500);
|
2026
2034
|
}
|
2027
2035
|
.react-datepicker__day--keyboard-selected,
|
2028
2036
|
.react-datepicker__month-text--keyboard-selected,
|
2029
2037
|
.react-datepicker__quarter-text--keyboard-selected,
|
2030
2038
|
.react-datepicker__year-text--keyboard-selected {
|
2031
|
-
border-radius:
|
2039
|
+
border-radius: 2rem;
|
2032
2040
|
background-color: ${colorMode === "light" ? "#075331" : "#131620"};
|
2033
2041
|
color: #fff;
|
2034
2042
|
}
|
@@ -2054,7 +2062,7 @@ var Styles = () => {
|
|
2054
2062
|
.react-datepicker__month-text--in-range,
|
2055
2063
|
.react-datepicker__quarter-text--in-range,
|
2056
2064
|
.react-datepicker__year-text--in-range) {
|
2057
|
-
background-color:
|
2065
|
+
background-color: var(--chakra-colors-primary-50);
|
2058
2066
|
color: ${colorMode === "light" ? "#000" : "#d0d1d2"};
|
2059
2067
|
}
|
2060
2068
|
.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,
|
@@ -2140,7 +2148,7 @@ var Styles = () => {
|
|
2140
2148
|
|
2141
2149
|
}
|
2142
2150
|
.react-datepicker__header:not(.react-datepicker__header--has-time-select) {
|
2143
|
-
background:
|
2151
|
+
background:var(--chakra-colors-neutral-50);
|
2144
2152
|
|
2145
2153
|
border-top-left-radius: 8px;
|
2146
2154
|
border-top-right-radius: 8px;
|
@@ -2294,12 +2302,12 @@ var Styles = () => {
|
|
2294
2302
|
}
|
2295
2303
|
.react-datepicker__day.react-datepicker__day--in-range {
|
2296
2304
|
border-radius: 0;
|
2297
|
-
background:
|
2298
|
-
color: #
|
2305
|
+
background: var(--chakra-colors-primary-50);
|
2306
|
+
color: #111111;
|
2299
2307
|
}
|
2300
2308
|
.react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range,
|
2301
2309
|
.react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {
|
2302
|
-
background:
|
2310
|
+
background: var(--chakra-colors-primary-500);
|
2303
2311
|
color: #fff;
|
2304
2312
|
}
|
2305
2313
|
.react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range {
|
@@ -2319,18 +2327,45 @@ var Styles = () => {
|
|
2319
2327
|
background-color: inherit;
|
2320
2328
|
}
|
2321
2329
|
.react-datepicker__day--keyboard-selected, .react-datepicker__day--keyboard-selected:hover {
|
2322
|
-
background-color:
|
2330
|
+
background-color: var(--chakra-colors-primary-50);
|
2323
2331
|
color: inherit;
|
2324
2332
|
}
|
2325
2333
|
.react-datepicker__day--today, .react-datepicker__day--today:hover {
|
2326
|
-
|
2334
|
+
border-radius: 2rem;
|
2335
|
+
border-color: var(--chakra-colors-primary-500);
|
2336
|
+
border-width: 1px;
|
2337
|
+
line-height: 34px;
|
2327
2338
|
}
|
2328
|
-
.react-datepicker__day--today:hover {
|
2329
|
-
background:
|
2339
|
+
.react-datepicker__day--today:hover:not(.react-datepicker__day--in-range) {
|
2340
|
+
background: var(--chakra-colors-neutral-200);
|
2341
|
+
border-color:transparent;
|
2342
|
+
color:var(--chakra-colors-black-high);
|
2330
2343
|
}
|
2331
2344
|
.react-datepicker__day--selected.react-datepicker__day--today {
|
2332
2345
|
color: white;
|
2333
|
-
background:
|
2346
|
+
background: var(--chakra-colors-primary-500);
|
2347
|
+
}
|
2348
|
+
.react-datepicker__aria-live {
|
2349
|
+
position: absolute;
|
2350
|
+
clip-path: circle(0);
|
2351
|
+
border: 0;
|
2352
|
+
height: 1px;
|
2353
|
+
margin: -1px;
|
2354
|
+
overflow: hidden;
|
2355
|
+
padding: 0;
|
2356
|
+
width: 1px;
|
2357
|
+
white-space: nowrap;
|
2358
|
+
}
|
2359
|
+
.react-datepicker__day.react-datepicker__day--in-range.react-datepicker__day--today{
|
2360
|
+
border-radius:0px;
|
2361
|
+
border-color:transparent;
|
2362
|
+
background-color:var(--chakra-colors-primary-50);
|
2363
|
+
}
|
2364
|
+
.react-datepicker__month-select,.react-datepicker__year-select {
|
2365
|
+
background-color:transparent;
|
2366
|
+
font-size:14px;
|
2367
|
+
font-weight:600;
|
2368
|
+
text-align:center;
|
2334
2369
|
}
|
2335
2370
|
`
|
2336
2371
|
}
|
@@ -2349,10 +2384,25 @@ var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
2349
2384
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
2350
2385
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2351
2386
|
};
|
2352
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react32.Flex, { flexDir: "column",
|
2387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react32.Flex, { flexDir: "column", p: 4, pt: 0, children: [
|
2353
2388
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react32.Text, { mb: 2, children: label }),
|
2354
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react32.InputGroup, { alignItems: "center",
|
2355
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2389
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react32.InputGroup, { alignItems: "center", borderColor: "neutral.400", children: [
|
2390
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2391
|
+
import_react32.Input,
|
2392
|
+
{
|
2393
|
+
onChange: handleChange,
|
2394
|
+
type: "time",
|
2395
|
+
value: time,
|
2396
|
+
"data-test-id": "CT_Component_datepicker_input_time",
|
2397
|
+
flex: 1,
|
2398
|
+
borderRadius: "sm",
|
2399
|
+
border: "1px solid",
|
2400
|
+
borderColor: "inherit",
|
2401
|
+
_focusWithin: {
|
2402
|
+
borderColor: "primary.500"
|
2403
|
+
}
|
2404
|
+
}
|
2405
|
+
),
|
2356
2406
|
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react32.InputRightAddon, { children: rightAddon })
|
2357
2407
|
] })
|
2358
2408
|
] });
|
@@ -2383,9 +2433,9 @@ var Datepicker = ({
|
|
2383
2433
|
shortMonth,
|
2384
2434
|
...props
|
2385
2435
|
}) => {
|
2386
|
-
var _a;
|
2436
|
+
var _a, _b;
|
2387
2437
|
const selected = value ? new Date(value) : void 0;
|
2388
|
-
const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? "
|
2438
|
+
const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? "dd MMMM yyyy, HH:mm" : "dd MMMM yyyy";
|
2389
2439
|
const getTimeProps = () => {
|
2390
2440
|
if (!withTime) return {};
|
2391
2441
|
return {
|
@@ -2394,8 +2444,9 @@ var Datepicker = ({
|
|
2394
2444
|
customTimeInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(time_input_default, {})
|
2395
2445
|
};
|
2396
2446
|
};
|
2447
|
+
const hasMultipleMonthShow = ((_b = props == null ? void 0 : props.monthsShown) != null ? _b : 1) < 2;
|
2397
2448
|
const component = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
2398
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(styles_default, {}),
|
2449
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(styles_default, { showHeader: !hasMultipleMonthShow }),
|
2399
2450
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2400
2451
|
import_react_datepicker.default,
|
2401
2452
|
{
|
@@ -2403,11 +2454,14 @@ var Datepicker = ({
|
|
2403
2454
|
name,
|
2404
2455
|
selected,
|
2405
2456
|
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(input_field_default, { autoComplete: "off" }),
|
2406
|
-
dateFormat,
|
2407
2457
|
showPopperArrow: false,
|
2408
2458
|
calendarClassName: (0, import_shared_utils8.cx)({ inline: props.inline }),
|
2409
|
-
|
2459
|
+
dropdownMode: "select",
|
2460
|
+
showMonthDropdown: hasMultipleMonthShow,
|
2461
|
+
showYearDropdown: hasMultipleMonthShow,
|
2462
|
+
shouldCloseOnSelect: !(props.selectsRange || withTime),
|
2410
2463
|
useShortMonthInDropdown: showMonth ? shortMonth : false,
|
2464
|
+
dateFormat,
|
2411
2465
|
...getTimeProps(),
|
2412
2466
|
...props
|
2413
2467
|
}
|
@@ -2420,9 +2474,23 @@ var Datepicker = ({
|
|
2420
2474
|
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react34.FormLabel, { fontSize: "text.sm", children: label }),
|
2421
2475
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.InputGroup, { children: [
|
2422
2476
|
component,
|
2423
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.InputRightElement, { children: [
|
2424
|
-
|
2425
|
-
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2477
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
2478
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
|
2479
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2480
|
+
import_react34.IconButton,
|
2481
|
+
{
|
2482
|
+
"data-test-id": "H0rseVCzGIaqoLho-EPbu",
|
2483
|
+
display: "flex",
|
2484
|
+
alignItems: "center",
|
2485
|
+
variant: "unstyled",
|
2486
|
+
"aria-label": "Remove",
|
2487
|
+
onClick: onClear,
|
2488
|
+
cursor: "pointer",
|
2489
|
+
size: "sm",
|
2490
|
+
minW: "unset",
|
2491
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Close, { size: 4, color: "neutral.600" })
|
2492
|
+
}
|
2493
|
+
)
|
2426
2494
|
] })
|
2427
2495
|
] }),
|
2428
2496
|
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react34.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react34.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
@@ -2720,7 +2788,7 @@ Logo.defaultProps = {
|
|
2720
2788
|
|
2721
2789
|
// src/components/header/components/profile.tsx
|
2722
2790
|
var import_react43 = require("@chakra-ui/react");
|
2723
|
-
var
|
2791
|
+
var import_fi3 = require("react-icons/fi");
|
2724
2792
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
2725
2793
|
var Profile = ({ color: color2, brandColor, data, onLogout }) => {
|
2726
2794
|
var _a;
|
@@ -2783,7 +2851,7 @@ var Profile = ({ color: color2, brandColor, data, onLogout }) => {
|
|
2783
2851
|
onClick: onLogout,
|
2784
2852
|
textStyle: "text.xs",
|
2785
2853
|
children: [
|
2786
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2854
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_fi3.FiPower, {}),
|
2787
2855
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react43.Text, { ml: 2, children: "Logout" })
|
2788
2856
|
]
|
2789
2857
|
}
|
@@ -2801,11 +2869,11 @@ var profile_default = Profile;
|
|
2801
2869
|
|
2802
2870
|
// src/components/header/components/switch-mode.tsx
|
2803
2871
|
var import_react44 = require("@chakra-ui/react");
|
2804
|
-
var
|
2872
|
+
var import_fi4 = require("react-icons/fi");
|
2805
2873
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
2806
2874
|
var SwitchMode = () => {
|
2807
2875
|
const { colorMode, toggleColorMode } = (0, import_react44.useColorMode)();
|
2808
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_fi4.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_fi4.FiSun, { size: 20 }) });
|
2809
2877
|
};
|
2810
2878
|
var switch_mode_default = SwitchMode;
|
2811
2879
|
|
@@ -3496,7 +3564,7 @@ var pagination_detail_default = PaginationDetail;
|
|
3496
3564
|
// src/components/pagination/components/pagination-filter.tsx
|
3497
3565
|
var import_react68 = require("@chakra-ui/react");
|
3498
3566
|
var React13 = __toESM(require("react"));
|
3499
|
-
var
|
3567
|
+
var import_fi5 = require("react-icons/fi");
|
3500
3568
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3501
3569
|
var PaginationFilter = ({
|
3502
3570
|
limit,
|
@@ -3517,7 +3585,7 @@ var PaginationFilter = ({
|
|
3517
3585
|
border: "none",
|
3518
3586
|
boxShadow: "none",
|
3519
3587
|
width: 18,
|
3520
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
3588
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_fi5.FiChevronDown, {}),
|
3521
3589
|
_focusVisible: { boxShadow: "none" },
|
3522
3590
|
onChange: (e) => {
|
3523
3591
|
const numberValue = Number(e.target.value);
|
@@ -3590,10 +3658,10 @@ var import_react72 = require("@chakra-ui/react");
|
|
3590
3658
|
|
3591
3659
|
// src/components/rating/components/rating.tsx
|
3592
3660
|
var import_react73 = require("@chakra-ui/react");
|
3593
|
-
var
|
3661
|
+
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3594
3662
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3595
3663
|
var Rating = ({ value }) => {
|
3596
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react73.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react73.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_internal_icon7.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
3597
3665
|
};
|
3598
3666
|
var rating_default = Rating;
|
3599
3667
|
|
@@ -11067,7 +11135,7 @@ Sidebar.displayName = "Sidebar";
|
|
11067
11135
|
|
11068
11136
|
// src/components/sidebar/components/sidebar-header.tsx
|
11069
11137
|
var import_react112 = require("@chakra-ui/react");
|
11070
|
-
var
|
11138
|
+
var import_internal_icon8 = require("@ctlyst.id/internal-icon");
|
11071
11139
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
11072
11140
|
var SidebarHeader = ({ isCollapse, setCollapse }) => {
|
11073
11141
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
@@ -11100,7 +11168,7 @@ var SidebarHeader = ({ isCollapse, setCollapse }) => {
|
|
11100
11168
|
transitionDuration: "1ms",
|
11101
11169
|
"data-test-id": "SWqE2JTMkS4Pj_2tdwy8O",
|
11102
11170
|
"aria-label": "toggle sidebar",
|
11103
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
11171
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
|
11104
11172
|
}
|
11105
11173
|
),
|
11106
11174
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react112.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
@@ -11259,7 +11327,7 @@ SidebarMenu.defaultProps = {
|
|
11259
11327
|
// src/components/switch/components/switch.tsx
|
11260
11328
|
var import_react114 = require("@chakra-ui/react");
|
11261
11329
|
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
11262
|
-
var
|
11330
|
+
var import_internal_icon9 = require("@ctlyst.id/internal-icon");
|
11263
11331
|
var import_react115 = require("react");
|
11264
11332
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
11265
11333
|
var Switch = (0, import_react114.forwardRef)(function Switch2(props, ref) {
|
@@ -11316,8 +11384,8 @@ var Switch = (0, import_react114.forwardRef)(function Switch2(props, ref) {
|
|
11316
11384
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
11317
11385
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react114.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
11318
11386
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react114.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
11319
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
11320
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
11387
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
|
11388
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
11321
11389
|
] }),
|
11322
11390
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
11323
11391
|
import_react114.chakra.span,
|