@xqmsg/ui-core 0.14.2 → 0.14.4
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/components/table/index.d.ts +1 -2
- package/dist/theme/components/table.d.ts +11 -10
- package/dist/theme/provider/index.d.ts +1 -1
- package/dist/ui-core.cjs.development.js +23 -19
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +23 -19
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/StackedSelect/StackedSelect.tsx +1 -0
- package/src/components/input/components/token/index.tsx +1 -0
- package/src/components/table/Table.stories.tsx +6 -18
- package/src/components/table/index.tsx +9 -6
- package/src/theme/components/table.ts +11 -10
- package/src/theme/provider/index.tsx +1 -1
package/dist/ui-core.esm.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React__default, { useMemo, useCallback, useRef, useEffect, useState, memo, forwardRef, createElement } from 'react';
|
|
2
|
-
import { Image, Alert as Alert$1, AlertDescription, Box, Flex, Button as Button$2, Text as Text$2, Icon as Icon$1, Spinner, InputGroup, Checkbox, Input as Input$2, RadioGroup, Radio, useOutsideClick, InputRightElement, Textarea as Textarea$1, Switch as Switch$1, FormLabel as FormLabel$1, FormControl, FormErrorMessage, FormHelperText, SimpleGrid, useMediaQuery, Grid, GridItem, IconButton, Collapse, TableContainer, Table as Table$2, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, extendTheme
|
|
2
|
+
import { Image, Alert as Alert$1, AlertDescription, Box, Flex, Button as Button$2, Text as Text$2, Icon as Icon$1, Spinner, InputGroup, Checkbox, Input as Input$2, RadioGroup, Radio, useOutsideClick, InputRightElement, Textarea as Textarea$1, Switch as Switch$1, FormLabel as FormLabel$1, FormControl, FormErrorMessage, FormHelperText, SimpleGrid, useMediaQuery, Grid, GridItem, IconButton, Collapse, TableContainer, Table as Table$2, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, extendTheme } from '@chakra-ui/react';
|
|
3
3
|
import { FormProvider, useWatch, Controller } from 'react-hook-form';
|
|
4
4
|
import { truncate } from 'lodash-es';
|
|
5
5
|
import { CloseIcon, HamburgerIcon } from '@chakra-ui/icons';
|
|
6
6
|
import { HiOutlineRefresh } from 'react-icons/hi';
|
|
7
|
+
import { ChakraProvider } from '@chakra-ui/provider';
|
|
7
8
|
import { createBreakpoints, transparentize, mode, getColor } from '@chakra-ui/theme-tools';
|
|
8
9
|
import { defineStyle } from '@chakra-ui/system';
|
|
9
10
|
|
|
@@ -621,7 +622,8 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
621
622
|
color: "transparent",
|
|
622
623
|
fontSize: "13px",
|
|
623
624
|
textShadow: "0 0 0 " + colors.label.primary.light,
|
|
624
|
-
value: selectedOption
|
|
625
|
+
value: selectedOption,
|
|
626
|
+
autoComplete: "off"
|
|
625
627
|
})), /*#__PURE__*/React__default.createElement(InputRightElement, {
|
|
626
628
|
cursor: "pointer",
|
|
627
629
|
onClick: function onClick() {
|
|
@@ -1594,19 +1596,20 @@ function Table(_ref) {
|
|
|
1594
1596
|
_ref$placeholder = _ref.placeholder,
|
|
1595
1597
|
placeholder = _ref$placeholder === void 0 ? 'There is currently no available data' : _ref$placeholder,
|
|
1596
1598
|
loading = _ref.loading,
|
|
1597
|
-
_ref$borderTopRadius = _ref.borderTopRadius,
|
|
1598
|
-
borderTopRadius = _ref$borderTopRadius === void 0 ? true : _ref$borderTopRadius,
|
|
1599
1599
|
loadMore = _ref.loadMore;
|
|
1600
1600
|
var columnsAsConst = generateTableColumnsAsConst(columns);
|
|
1601
1601
|
return /*#__PURE__*/React__default.createElement(TableContainer, {
|
|
1602
1602
|
border: "none",
|
|
1603
1603
|
overflowX: "auto",
|
|
1604
1604
|
bg: "white",
|
|
1605
|
-
|
|
1606
|
-
borderTopLeftRadius: borderTopRadius ? 'md' : 0,
|
|
1607
|
-
borderTopRightRadius: borderTopRadius ? 'md' : 0
|
|
1605
|
+
width: "fit-content"
|
|
1608
1606
|
}, /*#__PURE__*/React__default.createElement(Table$2, {
|
|
1609
|
-
variant: "unstyled"
|
|
1607
|
+
variant: "unstyled",
|
|
1608
|
+
width: "fit-content",
|
|
1609
|
+
style: {
|
|
1610
|
+
borderCollapse: 'separate',
|
|
1611
|
+
borderSpacing: '0px'
|
|
1612
|
+
}
|
|
1610
1613
|
}, /*#__PURE__*/React__default.createElement(Thead, null, /*#__PURE__*/React__default.createElement(Tr, {
|
|
1611
1614
|
_odd: {
|
|
1612
1615
|
bg: colors.label.primary.dark
|
|
@@ -2478,26 +2481,27 @@ var baseStyle$c = {
|
|
|
2478
2481
|
bg: colors.label.primary.dark
|
|
2479
2482
|
},
|
|
2480
2483
|
th: {
|
|
2481
|
-
height: '100%',
|
|
2482
|
-
width: '100%',
|
|
2483
2484
|
bg: colors.label.primary.dark,
|
|
2484
2485
|
padding: '5px 8px !important'
|
|
2485
2486
|
},
|
|
2486
2487
|
tr: {
|
|
2487
2488
|
fontSize: '13px',
|
|
2488
|
-
display: 'flex',
|
|
2489
|
-
alignItems: 'center',
|
|
2490
|
-
width: '100%',
|
|
2491
|
-
height: '100%',
|
|
2492
|
-
borderRadius: 'md',
|
|
2493
2489
|
_odd: {
|
|
2494
|
-
|
|
2490
|
+
td: {
|
|
2491
|
+
bg: colors.fill.light.tertiary,
|
|
2492
|
+
_first: {
|
|
2493
|
+
borderTopLeftRadius: 'md',
|
|
2494
|
+
borderBottomLeftRadius: 'md'
|
|
2495
|
+
},
|
|
2496
|
+
_last: {
|
|
2497
|
+
borderTopRightRadius: 'md',
|
|
2498
|
+
borderBottomRightRadius: 'md'
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2495
2501
|
}
|
|
2496
2502
|
},
|
|
2497
2503
|
td: {
|
|
2498
|
-
padding: '5px 8px !important'
|
|
2499
|
-
borderRadius: 'md',
|
|
2500
|
-
width: '100%'
|
|
2504
|
+
padding: '5px 8px !important'
|
|
2501
2505
|
}
|
|
2502
2506
|
};
|
|
2503
2507
|
var Table$1 = {
|