@ctlyst.id/internal-ui 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { useToken, Box, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, forwardRef, useStyleConfig, Button as Button$2, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, theme as theme$1, defineStyle, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, Badge, 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, omitThemingProps, useCheckbox, chakra, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
1
+ import { Badge as Badge$1, useToken, Box, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, forwardRef, useStyleConfig, Button as Button$2, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, theme as theme$1, defineStyle, 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, omitThemingProps, useCheckbox, chakra, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
2
2
  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, 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';
3
3
  import React__default, { createElement, forwardRef as forwardRef$1, useRef, useEffect, useState, useMemo, Fragment, useCallback, createContext, useContext } from 'react';
4
4
  import { FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiShoppingBag, FiShoppingCart, FiRepeat, FiBox, FiLayers, FiDollarSign, FiUsers, FiRotateCcw, FiSettings, FiLayout, FiGift, FiChevronDown } from 'react-icons/fi';
@@ -21,6 +21,29 @@ import { createMultiStyleConfigHelpers, cssVar, defineStyleConfig, defineStyle a
21
21
  import { transparentize, mode, calc, cssVar as cssVar$1 } from '@chakra-ui/theme-tools';
22
22
  import axios from 'axios';
23
23
 
24
+ const Badge = props => {
25
+ const {
26
+ children,
27
+ pill,
28
+ ...rest
29
+ } = props;
30
+ return /*#__PURE__*/React__default.createElement(Badge$1, Object.assign({
31
+ borderRadius: pill ? 10 : 4,
32
+ variant: "solid",
33
+ color: "white",
34
+ fontSize: "10px",
35
+ padding: "0 8px",
36
+ height: "18px",
37
+ display: "flex",
38
+ alignItems: "center",
39
+ justifyContent: "space-between",
40
+ textTransform: "none"
41
+ }, rest), children);
42
+ };
43
+ Badge.defaultProps = {
44
+ pill: false
45
+ };
46
+
24
47
  /* eslint-disable react-hooks/rules-of-hooks */
25
48
  const BreadCrumb = props => {
26
49
  const {
@@ -2082,7 +2105,7 @@ const XMSLogo = () => /*#__PURE__*/React__default.createElement(Image, {
2082
2105
  src: useColorModeValue('https://assets.voila.id/xms/logo-xms.jpg', 'https://assets.voila.id/xms/logo-xms-dark.png')
2083
2106
  });
2084
2107
  const VoilaLogo = () => /*#__PURE__*/React__default.createElement(Image, {
2085
- src: "https://s3.ap-southeast-1.amazonaws.com/assets.voila.id/xms/logo-voila-black.png?v=1",
2108
+ src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
2086
2109
  filter: useColorModeValue('none', 'invert(1)'),
2087
2110
  maxW: 24
2088
2111
  });
@@ -2198,7 +2221,7 @@ const Version = ({
2198
2221
  version,
2199
2222
  environment,
2200
2223
  onOpenModalRelease
2201
- }) => /*#__PURE__*/createElement(Fragment, null, version && /*#__PURE__*/createElement(Badge, {
2224
+ }) => /*#__PURE__*/createElement(Fragment, null, version && /*#__PURE__*/createElement(Badge$1, {
2202
2225
  "data-test-id": "dzl3esjhCphobaaIXpiUE",
2203
2226
  bg: useColorModeValue('primary.500', 'rgba(124, 124, 124, 0.12)'),
2204
2227
  color: useColorModeValue('white', 'secondary.400'),
@@ -3300,14 +3323,15 @@ const Button$1 = /*#__PURE__*/defineStyleConfig({
3300
3323
  variant
3301
3324
  } = props;
3302
3325
  const base = {
3303
- fontSize: 'text.xs',
3304
- h: 6,
3326
+ fontSize: 'text.sm',
3327
+ h: '26px',
3328
+ lineHeight: 4,
3305
3329
  px: 2,
3306
3330
  py: '5px'
3307
3331
  };
3308
3332
  const icon = {
3309
- h: 6,
3310
- w: 6,
3333
+ h: '26px',
3334
+ w: '26px',
3311
3335
  p: 0
3312
3336
  };
3313
3337
  return variant === 'icon' ? icon : base;
@@ -4207,5 +4231,5 @@ const Provider = ({
4207
4231
  };
4208
4232
  Provider.displayName = 'Provider';
4209
4233
 
4210
- export { Box, BreadCrumb, Button, CardCustom as Card, CheckboxComponent as Checkbox, CheckboxGroupComponent as CheckboxGroup, Container, DataTable, DatePickerMonth, Datepicker, Field, Flex, Grid, Header, InputField, Loader, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, RadioComponent as Radio, RadioGroupComponent as RadioGroup, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Stack, Switch, Tab, TabList, TabPanel, Text, TextareaField, Uploader, Wrap, foundations, theme, useInternalUI };
4234
+ export { Badge, Box, BreadCrumb, Button, CardCustom as Card, CheckboxComponent as Checkbox, CheckboxGroupComponent as CheckboxGroup, Container, DataTable, DatePickerMonth, Datepicker, Field, Flex, Grid, Header, InputField, Loader, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, RadioComponent as Radio, RadioGroupComponent as RadioGroup, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Stack, Switch, Tab, TabList, TabPanel, Text, TextareaField, Uploader, Wrap, foundations, theme, useInternalUI };
4211
4235
  //# sourceMappingURL=internal-ui.esm.js.map