@ctlyst.id/internal-ui 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/layouting/components/button-group.d.ts +4 -0
- package/dist/components/layouting/components/list.d.ts +6 -0
- package/dist/components/layouting/components/stack.d.ts +2 -1
- package/dist/components/layouting/index.d.ts +4 -0
- package/dist/config/theme/components/chips.d.ts +3 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useDisclosure.d.ts +4 -0
- package/dist/internal-ui.cjs.development.js +42 -10
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +4 -4
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +25 -13
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/internal-ui.esm.js
CHANGED
@@ -4,8 +4,8 @@ import React__default, { createElement, forwardRef as forwardRef$2, useRef, useE
|
|
4
4
|
import { createContext } from '@chakra-ui/react-context';
|
5
5
|
import { CheckCircle, Info, AlertTriangle, Close, EyeOff, Eye, Rating as Rating$1, Check } from '@ctlyst.id/internal-icon';
|
6
6
|
import { cx as cx$1 } from '@chakra-ui/utils';
|
7
|
-
import { forwardRef as forwardRef$1, useStyleConfig, Box, Button as Button$2, Badge as Badge$2, useToken, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, defineStyle, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, theme as theme$1, InputLeftAddon, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, Container, Grid, Wrap, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, useMultiStyleConfig as useMultiStyleConfig$1, omitThemingProps as omitThemingProps$1, useCheckbox, chakra as chakra$1, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
|
8
|
-
export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, InputLeftElement as InputElementLeft, InputRightElement as InputElementRight, Modal, ModalContent, ModalContextProvider, ModalFocusScope, ModalOverlay, TabIndicator, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, useDrawerContext, useModal, useModalContext, useModalStyles, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, useTabsStyles } from '@chakra-ui/react';
|
7
|
+
import { forwardRef as forwardRef$1, useStyleConfig, Box, Button as Button$2, Badge as Badge$2, useToken, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, defineStyle, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, theme as theme$1, InputLeftAddon, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, ButtonGroup, Container, Grid, List, Wrap, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, useMultiStyleConfig as useMultiStyleConfig$1, omitThemingProps as omitThemingProps$1, useCheckbox, chakra as chakra$1, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
|
8
|
+
export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, HStack, InputLeftElement as InputElementLeft, InputRightElement as InputElementRight, ListItem, Modal, ModalContent, ModalContextProvider, ModalFocusScope, ModalOverlay, TabIndicator, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, VStack, useDrawerContext, useModal, useModalContext, useModalStyles, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, useTabsStyles } from '@chakra-ui/react';
|
9
9
|
import { FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiShoppingBag, FiShoppingCart, FiRepeat, FiBox, FiLayers, FiDollarSign, FiUsers, FiRotateCcw, FiSettings, FiLayout, FiGift, FiChevronDown } from 'react-icons/fi';
|
10
10
|
import { ChevronUpIcon, ChevronDownIcon, UpDownIcon, ArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, ArrowRightIcon } from '@chakra-ui/icons';
|
11
11
|
import { css, Global, keyframes } from '@emotion/react';
|
@@ -2349,7 +2349,8 @@ const Profile = ({
|
|
2349
2349
|
}, (data === null || data === void 0 ? void 0 : data.office) && /*#__PURE__*/createElement(Text, {
|
2350
2350
|
color: "neutral.700",
|
2351
2351
|
display: "inline-block",
|
2352
|
-
mr: 0.5
|
2352
|
+
mr: 0.5,
|
2353
|
+
as: "span"
|
2353
2354
|
}, data.office, " |", ' '), data === null || data === void 0 ? void 0 : data.userRole)), /*#__PURE__*/createElement(PopoverTrigger, null, /*#__PURE__*/createElement(Avatar, {
|
2354
2355
|
size: 'sm',
|
2355
2356
|
bg: "primary.500",
|
@@ -3157,9 +3158,6 @@ function SelectCreatable({
|
|
3157
3158
|
*/
|
3158
3159
|
const Switch = /*#__PURE__*/forwardRef$1(function Switch(props, ref) {
|
3159
3160
|
const styles = useMultiStyleConfig$1('Switch', props);
|
3160
|
-
const {
|
3161
|
-
size = 'md'
|
3162
|
-
} = props;
|
3163
3161
|
const {
|
3164
3162
|
spacing = '0.5rem',
|
3165
3163
|
children,
|
@@ -3221,10 +3219,10 @@ const Switch = /*#__PURE__*/forwardRef$1(function Switch(props, ref) {
|
|
3221
3219
|
transform: "translate(-50%, -50%)"
|
3222
3220
|
}, /*#__PURE__*/React__default.createElement(Check, {
|
3223
3221
|
color: "white",
|
3224
|
-
size: getIconSize(size)
|
3222
|
+
size: getIconSize(props.size)
|
3225
3223
|
}), /*#__PURE__*/React__default.createElement(Close, {
|
3226
3224
|
color: state.isDisabled ? 'neutral.600' : 'neutral.900',
|
3227
|
-
size: getIconSize(size)
|
3225
|
+
size: getIconSize(props.size)
|
3228
3226
|
})), /*#__PURE__*/React__default.createElement(chakra$1.span, {
|
3229
3227
|
__css: styles.thumb,
|
3230
3228
|
className: "chakra-switch__thumb",
|
@@ -3237,6 +3235,9 @@ const Switch = /*#__PURE__*/forwardRef$1(function Switch(props, ref) {
|
|
3237
3235
|
__css: labelStyles
|
3238
3236
|
}), children));
|
3239
3237
|
});
|
3238
|
+
Switch.defaultProps = {
|
3239
|
+
size: 'sm'
|
3240
|
+
};
|
3240
3241
|
|
3241
3242
|
const Tab = /*#__PURE__*/forwardRef$1((props, ref) => {
|
3242
3243
|
var _props$leftAddon, _props$rightAddon;
|
@@ -3502,6 +3503,10 @@ const Badge$1 = {
|
|
3502
3503
|
color: 'white'
|
3503
3504
|
},
|
3504
3505
|
'neutral-solid': {
|
3506
|
+
bg: 'neutral.900',
|
3507
|
+
color: 'white'
|
3508
|
+
},
|
3509
|
+
'disabled-solid': {
|
3505
3510
|
bg: 'neutral.600',
|
3506
3511
|
color: 'white'
|
3507
3512
|
},
|
@@ -3526,7 +3531,11 @@ const Badge$1 = {
|
|
3526
3531
|
color: 'danger.500'
|
3527
3532
|
},
|
3528
3533
|
'neutral-light': {
|
3529
|
-
bg: 'neutral.
|
3534
|
+
bg: 'neutral.200',
|
3535
|
+
color: 'neutral.900'
|
3536
|
+
},
|
3537
|
+
'disabled-light': {
|
3538
|
+
bg: 'neutral.200',
|
3530
3539
|
color: 'neutral.600'
|
3531
3540
|
}
|
3532
3541
|
},
|
@@ -3949,10 +3958,13 @@ const Chips = /*#__PURE__*/defineStyleConfig({
|
|
3949
3958
|
},
|
3950
3959
|
sizes: {
|
3951
3960
|
sm: {
|
3952
|
-
fontSize: '12px'
|
3961
|
+
fontSize: '12px',
|
3962
|
+
lineHeight: 4
|
3953
3963
|
},
|
3954
3964
|
md: {
|
3955
|
-
fontSize: '14px'
|
3965
|
+
fontSize: '14px',
|
3966
|
+
paddingY: 2,
|
3967
|
+
lineHeight: 5
|
3956
3968
|
}
|
3957
3969
|
},
|
3958
3970
|
defaultProps: {
|
@@ -4012,7 +4024,7 @@ const size = {
|
|
4012
4024
|
}),
|
4013
4025
|
sm: /*#__PURE__*/defineStyle$1({
|
4014
4026
|
fontSize: 'text.sm',
|
4015
|
-
h: 9
|
4027
|
+
h: 9,
|
4016
4028
|
borderRadius: 'md'
|
4017
4029
|
})
|
4018
4030
|
};
|
@@ -4508,5 +4520,5 @@ const Provider = ({
|
|
4508
4520
|
};
|
4509
4521
|
Provider.displayName = 'Provider';
|
4510
4522
|
|
4511
|
-
export { Alert, AlertAction, AlertClose, AlertDescription, AlertIcon, AlertTitle, Badge, Box, BreadCrumb, Button, CardCustom as Card, CheckboxComponent as Checkbox, CheckboxGroupComponent as CheckboxGroup, Container, DataTable, DatePickerMonth, Datepicker, Field, Flex, Grid, Header, InputAddonLeft, InputAddonRight, InputField, Loader, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, RadioComponent as Radio, RadioGroupComponent as RadioGroup, Rating, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Stack, Switch, Tab, TabList, TabPanel, Text, TextareaField, Uploader, Wrap, foundations, theme, useAlertStyles, useInternalUI };
|
4523
|
+
export { Alert, AlertAction, AlertClose, AlertDescription, AlertIcon, AlertTitle, Badge, Box, BreadCrumb, Button, ButtonGroup, CardCustom as Card, CheckboxComponent as Checkbox, CheckboxGroupComponent as CheckboxGroup, Container, DataTable, DatePickerMonth, Datepicker, Field, Flex, Grid, Header, InputAddonLeft, InputAddonRight, InputField, List, Loader, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, RadioComponent as Radio, RadioGroupComponent as RadioGroup, Rating, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Stack, Switch, Tab, TabList, TabPanel, Text, TextareaField, Uploader, Wrap, foundations, theme, useAlertStyles, useInternalUI };
|
4512
4524
|
//# sourceMappingURL=internal-ui.esm.js.map
|