@ctlyst.id/internal-ui 3.1.7 → 3.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -926,20 +926,7 @@ var counter_default = Counter;
|
|
926
926
|
|
927
927
|
// src/components/data-table/components/data-table.tsx
|
928
928
|
import { ChevronDownIcon, ChevronUpIcon, UpDownIcon } from "@chakra-ui/icons";
|
929
|
-
import {
|
930
|
-
Box as Box11,
|
931
|
-
Checkbox as Checkbox2,
|
932
|
-
Flex as Flex2,
|
933
|
-
Skeleton as Skeleton2,
|
934
|
-
Table,
|
935
|
-
Tbody,
|
936
|
-
Td,
|
937
|
-
Text as Text4,
|
938
|
-
Th,
|
939
|
-
Thead,
|
940
|
-
Tr,
|
941
|
-
useColorModeValue
|
942
|
-
} from "@chakra-ui/react";
|
929
|
+
import { Box as Box11, Checkbox as Checkbox2, Flex as Flex2, Skeleton as Skeleton2, Table, Tbody, Td, Th, Thead, Tr, useColorModeValue } from "@chakra-ui/react";
|
943
930
|
import { css } from "@emotion/react";
|
944
931
|
import { flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
945
932
|
import * as React5 from "react";
|
@@ -1135,7 +1122,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1135
1122
|
align: "center",
|
1136
1123
|
gap: 2,
|
1137
1124
|
children: [
|
1138
|
-
|
1125
|
+
flexRender(header.column.columnDef.header, header.getContext()),
|
1139
1126
|
/* @__PURE__ */ jsx24(
|
1140
1127
|
Box11,
|
1141
1128
|
{
|
@@ -2090,7 +2077,7 @@ var Styles = ({ showHeader }) => {
|
|
2090
2077
|
var styles_default = Styles;
|
2091
2078
|
|
2092
2079
|
// src/components/datepicker/components/time-input.tsx
|
2093
|
-
import { Flex as Flex3, Input, InputGroup as InputGroup3, InputRightAddon as InputRightAddon3, Text as
|
2080
|
+
import { Flex as Flex3, Input, InputGroup as InputGroup3, InputRightAddon as InputRightAddon3, Text as Text4 } from "@chakra-ui/react";
|
2094
2081
|
import React6 from "react";
|
2095
2082
|
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
2096
2083
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
@@ -2101,7 +2088,7 @@ var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
2101
2088
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2102
2089
|
};
|
2103
2090
|
return /* @__PURE__ */ jsxs9(Flex3, { flexDir: "column", p: 4, pt: 0, children: [
|
2104
|
-
/* @__PURE__ */ jsx26(
|
2091
|
+
/* @__PURE__ */ jsx26(Text4, { mb: 2, children: label }),
|
2105
2092
|
/* @__PURE__ */ jsxs9(InputGroup3, { alignItems: "center", borderColor: "neutral.400", children: [
|
2106
2093
|
/* @__PURE__ */ jsx26(
|
2107
2094
|
Input,
|
@@ -2342,7 +2329,7 @@ MultiDatePickerMonth.defaultProps = {
|
|
2342
2329
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
2343
2330
|
|
2344
2331
|
// src/components/dialog/components/dialog.tsx
|
2345
|
-
import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Text as
|
2332
|
+
import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Text as Text5 } from "@chakra-ui/react";
|
2346
2333
|
import { jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
|
2347
2334
|
var Dialog = ({
|
2348
2335
|
title,
|
@@ -2356,7 +2343,7 @@ var Dialog = ({
|
|
2356
2343
|
return /* @__PURE__ */ jsxs12(Modal, { ...props, children: [
|
2357
2344
|
isModalOverlay && /* @__PURE__ */ jsx30(ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
2358
2345
|
/* @__PURE__ */ jsxs12(ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
2359
|
-
/* @__PURE__ */ jsx30(ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ jsx30(
|
2346
|
+
/* @__PURE__ */ jsx30(ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ jsx30(Text5, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
2360
2347
|
/* @__PURE__ */ jsx30(ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2361
2348
|
/* @__PURE__ */ jsx30(ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
2362
2349
|
] })
|
@@ -2373,7 +2360,7 @@ var dialog_default = Dialog;
|
|
2373
2360
|
import * as Icon2 from "@ctlyst.id/internal-icon";
|
2374
2361
|
|
2375
2362
|
// src/components/empty-state/components/layout.tsx
|
2376
|
-
import { Box as Box14, Button as Button2, Flex as Flex4, Text as
|
2363
|
+
import { Box as Box14, Button as Button2, Flex as Flex4, Text as Text6, VStack } from "@chakra-ui/react";
|
2377
2364
|
import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
|
2378
2365
|
var EmptyState = (props) => {
|
2379
2366
|
const { icon, title, description, buttonText, onClick } = props;
|
@@ -2385,8 +2372,8 @@ var EmptyState = (props) => {
|
|
2385
2372
|
return /* @__PURE__ */ jsx31(Flex4, { align: "center", justify: "center", children: /* @__PURE__ */ jsxs13(VStack, { textAlign: "center", children: [
|
2386
2373
|
icon,
|
2387
2374
|
/* @__PURE__ */ jsxs13(VStack, { spacing: 2, textAlign: "center", mt: 3, children: [
|
2388
|
-
/* @__PURE__ */ jsx31(
|
2389
|
-
/* @__PURE__ */ jsx31(
|
2375
|
+
/* @__PURE__ */ jsx31(Text6, { textStyle: "text.lg", fontWeight: "bold", children: title }),
|
2376
|
+
/* @__PURE__ */ jsx31(Text6, { textStyle: "text.md", color: "black.medium", whiteSpace: "pre-wrap", children: description })
|
2390
2377
|
] }),
|
2391
2378
|
buttonText && /* @__PURE__ */ jsx31(Box14, { mt: 3, children: /* @__PURE__ */ jsx31(Button2, { size: "lg", "data-test-id": "CT_component-action-button", onClick: handleClick, children: buttonText }) })
|
2392
2379
|
] }) });
|
@@ -2506,7 +2493,7 @@ import {
|
|
2506
2493
|
PopoverBody as PopoverBody2,
|
2507
2494
|
PopoverContent as PopoverContent2,
|
2508
2495
|
PopoverTrigger as PopoverTrigger2,
|
2509
|
-
Text as
|
2496
|
+
Text as Text7,
|
2510
2497
|
useDisclosure,
|
2511
2498
|
VStack as VStack2
|
2512
2499
|
} from "@chakra-ui/react";
|
@@ -2638,10 +2625,10 @@ var Profile = ({
|
|
2638
2625
|
...props,
|
2639
2626
|
children: /* @__PURE__ */ jsxs15(HStack2, { children: [
|
2640
2627
|
/* @__PURE__ */ jsxs15(VStack2, { alignItems: "flex-end", spacing: "0", ml: "2", color, children: [
|
2641
|
-
/* @__PURE__ */ jsx36(
|
2628
|
+
/* @__PURE__ */ jsx36(Text7, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
|
2642
2629
|
/* @__PURE__ */ jsxs15(Flex5, { alignItems: "center", children: [
|
2643
2630
|
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ jsxs15(Fragment4, { children: [
|
2644
|
-
/* @__PURE__ */ jsx36(
|
2631
|
+
/* @__PURE__ */ jsx36(Text7, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2645
2632
|
!!((_a = data.office) == null ? void 0 : _a.length) && /* @__PURE__ */ jsx36(
|
2646
2633
|
Box16,
|
2647
2634
|
{
|
@@ -2654,7 +2641,7 @@ var Profile = ({
|
|
2654
2641
|
)
|
2655
2642
|
] }),
|
2656
2643
|
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ jsxs15(Flex5, { align: "center", justify: "center", children: [
|
2657
|
-
/* @__PURE__ */ jsx36(
|
2644
|
+
/* @__PURE__ */ jsx36(Text7, { textStyle: "text.xs", children: data.office[0] }),
|
2658
2645
|
data.office.length > 1 && /* @__PURE__ */ jsx36(
|
2659
2646
|
Tooltip,
|
2660
2647
|
{
|
@@ -2662,8 +2649,8 @@ var Profile = ({
|
|
2662
2649
|
hasArrow: true,
|
2663
2650
|
p: "2",
|
2664
2651
|
label: /* @__PURE__ */ jsxs15(Box16, { children: [
|
2665
|
-
/* @__PURE__ */ jsx36(
|
2666
|
-
/* @__PURE__ */ jsx36(
|
2652
|
+
/* @__PURE__ */ jsx36(Text7, { children: "Akses Office:" }),
|
2653
|
+
/* @__PURE__ */ jsx36(Text7, { children: data.office.sort().join(", ") })
|
2667
2654
|
] }),
|
2668
2655
|
textAlign: "left",
|
2669
2656
|
placement: "bottom-end",
|
@@ -2691,7 +2678,7 @@ var Profile = ({
|
|
2691
2678
|
) })
|
2692
2679
|
}
|
2693
2680
|
)
|
2694
|
-
] }) : /* @__PURE__ */ jsx36(
|
2681
|
+
] }) : /* @__PURE__ */ jsx36(Text7, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
2695
2682
|
] })
|
2696
2683
|
] }),
|
2697
2684
|
/* @__PURE__ */ jsx36(PopoverTrigger2, { children: /* @__PURE__ */ jsx36(Box16, { border: "2px solid", borderColor: "transparent", className: "catalyst-header-avatar", rounded: "full", children: /* @__PURE__ */ jsx36(Avatar, { size: "sm", bg: brandColor, color: "white", name: (_b = data == null ? void 0 : data.name) != null ? _b : data == null ? void 0 : data.email }) }) })
|
@@ -2702,7 +2689,7 @@ var Profile = ({
|
|
2702
2689
|
/* @__PURE__ */ jsx36(PopoverArrow2, { bg: "white" }),
|
2703
2690
|
/* @__PURE__ */ jsx36(PopoverBody2, { py: "1", px: "0", children: /* @__PURE__ */ jsx36(NavItem, { "data-test-id": "CTA_Navbar_logout-button", onClick: onLogout, rounded: "none", px: "4", children: /* @__PURE__ */ jsxs15(Box16, { display: "flex", alignItems: "center", children: [
|
2704
2691
|
/* @__PURE__ */ jsx36(FiPower, {}),
|
2705
|
-
/* @__PURE__ */ jsx36(
|
2692
|
+
/* @__PURE__ */ jsx36(Text7, { ml: "2", children: "Logout" })
|
2706
2693
|
] }) }) })
|
2707
2694
|
] })
|
2708
2695
|
] });
|
@@ -2986,7 +2973,7 @@ import {
|
|
2986
2973
|
PopoverContent as PopoverContent3,
|
2987
2974
|
PopoverTrigger as PopoverTrigger3,
|
2988
2975
|
Portal as Portal2,
|
2989
|
-
Text as
|
2976
|
+
Text as Text8,
|
2990
2977
|
useColorModeValue as useColorModeValue3
|
2991
2978
|
} from "@chakra-ui/react";
|
2992
2979
|
import * as Icon5 from "@ctlyst.id/internal-icon";
|
@@ -3091,7 +3078,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3091
3078
|
py: 4,
|
3092
3079
|
children: [
|
3093
3080
|
mappingIcon.get(navigation.title),
|
3094
|
-
/* @__PURE__ */ jsx43(
|
3081
|
+
/* @__PURE__ */ jsx43(Text8, { fontSize: "text.sm", ml: 3, children: title }),
|
3095
3082
|
isActiveSub && /* @__PURE__ */ jsx43(
|
3096
3083
|
Box21,
|
3097
3084
|
{
|
@@ -3126,7 +3113,7 @@ Navigation.defaultProps = {
|
|
3126
3113
|
var navigation_default = Navigation;
|
3127
3114
|
|
3128
3115
|
// src/components/navigation/components/navigation-bar.tsx
|
3129
|
-
import { Box as Box22, Button as Button4, Flex as Flex10, Link as Link4, Popover as Popover4, PopoverContent as PopoverContent4, PopoverTrigger as PopoverTrigger4, Text as
|
3116
|
+
import { Box as Box22, Button as Button4, Flex as Flex10, Link as Link4, Popover as Popover4, PopoverContent as PopoverContent4, PopoverTrigger as PopoverTrigger4, Text as Text9 } from "@chakra-ui/react";
|
3130
3117
|
import * as Icon6 from "@ctlyst.id/internal-icon";
|
3131
3118
|
import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
|
3132
3119
|
var NavigationBar = ({
|
@@ -3197,7 +3184,7 @@ var NavigationBar = ({
|
|
3197
3184
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3198
3185
|
children: [
|
3199
3186
|
mappingIcon2.get(item.title),
|
3200
|
-
/* @__PURE__ */ jsx44(
|
3187
|
+
/* @__PURE__ */ jsx44(Text9, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3201
3188
|
]
|
3202
3189
|
},
|
3203
3190
|
subMenu.id
|
@@ -3214,7 +3201,7 @@ var navigation_bar_default = NavigationBar;
|
|
3214
3201
|
|
3215
3202
|
// src/components/pagination/components/pagination.tsx
|
3216
3203
|
import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon } from "@chakra-ui/icons";
|
3217
|
-
import { Box as Box23, Text as
|
3204
|
+
import { Box as Box23, Text as Text10, useColorModeValue as useColorModeValue5 } from "@chakra-ui/react";
|
3218
3205
|
|
3219
3206
|
// src/components/pagination/components/pagination-button.tsx
|
3220
3207
|
import { Button as Button5, forwardRef as forwardRef9, useColorModeValue as useColorModeValue4 } from "@chakra-ui/react";
|
@@ -3345,7 +3332,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3345
3332
|
"data-test-id": "Pagination-Button",
|
3346
3333
|
isActive: page === current,
|
3347
3334
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3348
|
-
children: /* @__PURE__ */ jsx47(
|
3335
|
+
children: /* @__PURE__ */ jsx47(Text10, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3349
3336
|
},
|
3350
3337
|
page
|
3351
3338
|
);
|
@@ -3383,7 +3370,7 @@ Pagination.displayName = "Pagination";
|
|
3383
3370
|
var pagination_default = Pagination;
|
3384
3371
|
|
3385
3372
|
// src/components/pagination/components/pagination-detail.tsx
|
3386
|
-
import { Text as
|
3373
|
+
import { Text as Text11 } from "@chakra-ui/react";
|
3387
3374
|
import { jsx as jsx48 } from "react/jsx-runtime";
|
3388
3375
|
var PaginationDetail = ({
|
3389
3376
|
page,
|
@@ -3394,12 +3381,12 @@ var PaginationDetail = ({
|
|
3394
3381
|
lineHeight = 18,
|
3395
3382
|
...rest
|
3396
3383
|
}) => {
|
3397
|
-
return /* @__PURE__ */ jsx48(
|
3384
|
+
return /* @__PURE__ */ jsx48(Text11, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
3398
3385
|
};
|
3399
3386
|
var pagination_detail_default = PaginationDetail;
|
3400
3387
|
|
3401
3388
|
// src/components/pagination/components/pagination-filter.tsx
|
3402
|
-
import { Box as Box24, Select, Text as
|
3389
|
+
import { Box as Box24, Select, Text as Text12, useColorModeValue as useColorModeValue6 } from "@chakra-ui/react";
|
3403
3390
|
import * as React9 from "react";
|
3404
3391
|
import { FiChevronDown } from "react-icons/fi";
|
3405
3392
|
import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
|
@@ -3412,7 +3399,7 @@ var PaginationFilter = ({
|
|
3412
3399
|
}) => {
|
3413
3400
|
const [value, setValue] = React9.useState(limit);
|
3414
3401
|
return /* @__PURE__ */ jsxs22(Box24, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3415
|
-
/* @__PURE__ */ jsx49(
|
3402
|
+
/* @__PURE__ */ jsx49(Text12, { fontSize: "text.sm", lineHeight: 18, color: useColorModeValue6("neutral.900", "white"), ...rest, children: label }),
|
3416
3403
|
/* @__PURE__ */ jsx49(
|
3417
3404
|
Select,
|
3418
3405
|
{
|
@@ -3493,13 +3480,13 @@ import {
|
|
3493
3480
|
} from "@chakra-ui/react";
|
3494
3481
|
|
3495
3482
|
// src/components/radio/components/radio.tsx
|
3496
|
-
import { Box as Box25, Radio as ChakraRadio, Text as
|
3483
|
+
import { Box as Box25, Radio as ChakraRadio, Text as Text13 } from "@chakra-ui/react";
|
3497
3484
|
import { jsx as jsx50, jsxs as jsxs23 } from "react/jsx-runtime";
|
3498
3485
|
var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
|
3499
3486
|
const variant = isError ? "errors" : "unstyled";
|
3500
3487
|
return /* @__PURE__ */ jsxs23(Box25, { children: [
|
3501
|
-
/* @__PURE__ */ jsx50(Box25, { display: "flex", children: /* @__PURE__ */ jsx50(ChakraRadio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx50(
|
3502
|
-
isError && errorText ? /* @__PURE__ */ jsx50(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx50(
|
3488
|
+
/* @__PURE__ */ jsx50(Box25, { display: "flex", children: /* @__PURE__ */ jsx50(ChakraRadio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx50(Text13, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3489
|
+
isError && errorText ? /* @__PURE__ */ jsx50(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx50(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ jsx50(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx50(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
|
3503
3490
|
] });
|
3504
3491
|
};
|
3505
3492
|
Radio.displayName = "Radio";
|
@@ -4014,7 +4001,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4014
4001
|
}
|
4015
4002
|
|
4016
4003
|
// src/components/select/components/select-with-checkbox.tsx
|
4017
|
-
import { Checkbox as Checkbox3, Flex as Flex12, Text as
|
4004
|
+
import { Checkbox as Checkbox3, Flex as Flex12, Text as Text14 } from "@chakra-ui/react";
|
4018
4005
|
import { useColorMode as useColorMode7 } from "@chakra-ui/system";
|
4019
4006
|
import ReactSelect2, { components as ComponentRS } from "react-select";
|
4020
4007
|
import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs24 } from "react/jsx-runtime";
|
@@ -4095,7 +4082,7 @@ var InputOption = ({
|
|
4095
4082
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
4096
4083
|
}
|
4097
4084
|
) : /* @__PURE__ */ jsx57(Checkbox3, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
4098
|
-
/* @__PURE__ */ jsx57(
|
4085
|
+
/* @__PURE__ */ jsx57(Text14, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
4099
4086
|
]
|
4100
4087
|
}
|
4101
4088
|
)
|
@@ -4182,7 +4169,7 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
4182
4169
|
Sidebar.displayName = "Sidebar";
|
4183
4170
|
|
4184
4171
|
// src/components/sidebar/components/sidebar-header.tsx
|
4185
|
-
import { Box as Box27, Flex as Flex14, Text as
|
4172
|
+
import { Box as Box27, Flex as Flex14, Text as Text15 } from "@chakra-ui/react";
|
4186
4173
|
import { ArrowRight } from "@ctlyst.id/internal-icon";
|
4187
4174
|
import { AnimatePresence, motion as motion2 } from "framer-motion";
|
4188
4175
|
import { jsx as jsx59, jsxs as jsxs25 } from "react/jsx-runtime";
|
@@ -4220,7 +4207,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4220
4207
|
}
|
4221
4208
|
),
|
4222
4209
|
/* @__PURE__ */ jsx59(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ jsx59(Box27, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx59(
|
4223
|
-
|
4210
|
+
Text15,
|
4224
4211
|
{
|
4225
4212
|
as: motion2.div,
|
4226
4213
|
w: "max-content",
|
@@ -4258,7 +4245,7 @@ import {
|
|
4258
4245
|
PopoverHeader as PopoverHeader2,
|
4259
4246
|
PopoverTrigger as PopoverTrigger6,
|
4260
4247
|
Portal as Portal4,
|
4261
|
-
Text as
|
4248
|
+
Text as Text16
|
4262
4249
|
} from "@chakra-ui/react";
|
4263
4250
|
import * as Icon8 from "@ctlyst.id/internal-icon";
|
4264
4251
|
import { motion as motion3 } from "framer-motion";
|
@@ -4309,7 +4296,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4309
4296
|
animate: { opacity: 1, x: 0 },
|
4310
4297
|
exit: { opacity: 0, x: 16 },
|
4311
4298
|
children: [
|
4312
|
-
/* @__PURE__ */ jsx60(Box28, { h: "3.5", position: "relative", children: /* @__PURE__ */ jsx60(
|
4299
|
+
/* @__PURE__ */ jsx60(Box28, { h: "3.5", position: "relative", children: /* @__PURE__ */ jsx60(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
|
4313
4300
|
!!item.children.length && /* @__PURE__ */ jsx60(
|
4314
4301
|
Box28,
|
4315
4302
|
{
|
@@ -4365,7 +4352,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4365
4352
|
...itemStyles,
|
4366
4353
|
children: [
|
4367
4354
|
mappingIcon2 && /* @__PURE__ */ jsx60(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
4368
|
-
/* @__PURE__ */ jsx60(Box28, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx60(
|
4355
|
+
/* @__PURE__ */ jsx60(Box28, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx60(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
|
4369
4356
|
]
|
4370
4357
|
},
|
4371
4358
|
item.id
|
@@ -4584,7 +4571,7 @@ import {
|
|
4584
4571
|
} from "@chakra-ui/react";
|
4585
4572
|
|
4586
4573
|
// src/components/text/index.ts
|
4587
|
-
import { Code, CodeProps, Heading, HeadingProps, Link as Link5, LinkProps, Text as
|
4574
|
+
import { Code, CodeProps, Heading, HeadingProps, Link as Link5, LinkProps, Text as Text17, TextProps } from "@chakra-ui/react";
|
4588
4575
|
|
4589
4576
|
// src/components/toast/components/toast.tsx
|
4590
4577
|
import { chakra as chakra7, Flex as Flex17, Link as Link6, useToken } from "@chakra-ui/react";
|
@@ -4753,7 +4740,7 @@ import {
|
|
4753
4740
|
Image as ChakraImage,
|
4754
4741
|
ListItem as ListItem2,
|
4755
4742
|
RequiredIndicator as RequiredIndicator2,
|
4756
|
-
Text as
|
4743
|
+
Text as Text18,
|
4757
4744
|
UnorderedList as UnorderedList2
|
4758
4745
|
} from "@chakra-ui/react";
|
4759
4746
|
import { Close as X, Plus } from "@ctlyst.id/internal-icon";
|
@@ -4880,7 +4867,7 @@ var Uploader = ({
|
|
4880
4867
|
}
|
4881
4868
|
return helperText;
|
4882
4869
|
};
|
4883
|
-
const renderErrorText = (text2) => /* @__PURE__ */ jsx65(Box29, { mb: 2, children: /* @__PURE__ */ jsx65(
|
4870
|
+
const renderErrorText = (text2) => /* @__PURE__ */ jsx65(Box29, { mb: 2, children: /* @__PURE__ */ jsx65(Text18, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
|
4884
4871
|
const handleRemove = (e) => {
|
4885
4872
|
e.stopPropagation();
|
4886
4873
|
setFilePreview(void 0);
|
@@ -4973,7 +4960,7 @@ var Uploader = ({
|
|
4973
4960
|
...getInputProps()
|
4974
4961
|
}
|
4975
4962
|
),
|
4976
|
-
isDragActive ? /* @__PURE__ */ jsx65(
|
4963
|
+
isDragActive ? /* @__PURE__ */ jsx65(Text18, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ jsxs30(Flex18, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|
4977
4964
|
size2 === "sm" && /* @__PURE__ */ jsx65(Plus, { size: 6, color }),
|
4978
4965
|
/* @__PURE__ */ jsxs30(Box29, { children: [
|
4979
4966
|
!filePreview && /* @__PURE__ */ jsx65(
|
@@ -4986,7 +4973,7 @@ var Uploader = ({
|
|
4986
4973
|
children: uploadFileText && size2 === "lg" ? messages.uploadFile : "Upload"
|
4987
4974
|
}
|
4988
4975
|
),
|
4989
|
-
size2 === "lg" && /* @__PURE__ */ jsx65(
|
4976
|
+
size2 === "lg" && /* @__PURE__ */ jsx65(Text18, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
|
4990
4977
|
] })
|
4991
4978
|
] })
|
4992
4979
|
] })
|
@@ -7044,7 +7031,7 @@ export {
|
|
7044
7031
|
TabsProvider,
|
7045
7032
|
Tbody2 as Tbody,
|
7046
7033
|
Td2 as Td,
|
7047
|
-
|
7034
|
+
Text17 as Text,
|
7048
7035
|
TextProps,
|
7049
7036
|
textarea_default as TextareaField,
|
7050
7037
|
Th2 as Th,
|