@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
|
@@ -5,11 +5,10 @@ export interface TableProps<T extends ReadonlyTableColumns> {
|
|
|
5
5
|
headers: TableHeaders<T>;
|
|
6
6
|
body: TableBody<T>;
|
|
7
7
|
loading?: boolean;
|
|
8
|
-
borderTopRadius?: boolean;
|
|
9
8
|
loadMore?: () => void;
|
|
10
9
|
placeholder?: string;
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* A React component utilized to render the `Table` component
|
|
14
13
|
*/
|
|
15
|
-
export declare function Table<T extends ReadonlyTableColumns>({ columns, headers, body, placeholder, loading,
|
|
14
|
+
export declare function Table<T extends ReadonlyTableColumns>({ columns, headers, body, placeholder, loading, loadMore, }: TableProps<T>): JSX.Element;
|
|
@@ -5,26 +5,27 @@ declare const _default: {
|
|
|
5
5
|
bg: string;
|
|
6
6
|
};
|
|
7
7
|
th: {
|
|
8
|
-
height: string;
|
|
9
|
-
width: string;
|
|
10
8
|
bg: string;
|
|
11
9
|
padding: string;
|
|
12
10
|
};
|
|
13
11
|
tr: {
|
|
14
12
|
fontSize: string;
|
|
15
|
-
display: string;
|
|
16
|
-
alignItems: string;
|
|
17
|
-
width: string;
|
|
18
|
-
height: string;
|
|
19
|
-
borderRadius: string;
|
|
20
13
|
_odd: {
|
|
21
|
-
|
|
14
|
+
td: {
|
|
15
|
+
bg: string;
|
|
16
|
+
_first: {
|
|
17
|
+
borderTopLeftRadius: string;
|
|
18
|
+
borderBottomLeftRadius: string;
|
|
19
|
+
};
|
|
20
|
+
_last: {
|
|
21
|
+
borderTopRightRadius: string;
|
|
22
|
+
borderBottomRightRadius: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
22
25
|
};
|
|
23
26
|
};
|
|
24
27
|
td: {
|
|
25
28
|
padding: string;
|
|
26
|
-
borderRadius: string;
|
|
27
|
-
width: string;
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
};
|
|
@@ -11,6 +11,7 @@ var reactHookForm = require('react-hook-form');
|
|
|
11
11
|
var lodash = require('lodash');
|
|
12
12
|
var icons = require('@chakra-ui/icons');
|
|
13
13
|
var hi = require('react-icons/hi');
|
|
14
|
+
var provider = require('@chakra-ui/provider');
|
|
14
15
|
var themeTools = require('@chakra-ui/theme-tools');
|
|
15
16
|
var system = require('@chakra-ui/system');
|
|
16
17
|
|
|
@@ -628,7 +629,8 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
628
629
|
color: "transparent",
|
|
629
630
|
fontSize: "13px",
|
|
630
631
|
textShadow: "0 0 0 " + colors.label.primary.light,
|
|
631
|
-
value: selectedOption
|
|
632
|
+
value: selectedOption,
|
|
633
|
+
autoComplete: "off"
|
|
632
634
|
})), /*#__PURE__*/React__default.createElement(react.InputRightElement, {
|
|
633
635
|
cursor: "pointer",
|
|
634
636
|
onClick: function onClick() {
|
|
@@ -1601,19 +1603,20 @@ function Table(_ref) {
|
|
|
1601
1603
|
_ref$placeholder = _ref.placeholder,
|
|
1602
1604
|
placeholder = _ref$placeholder === void 0 ? 'There is currently no available data' : _ref$placeholder,
|
|
1603
1605
|
loading = _ref.loading,
|
|
1604
|
-
_ref$borderTopRadius = _ref.borderTopRadius,
|
|
1605
|
-
borderTopRadius = _ref$borderTopRadius === void 0 ? true : _ref$borderTopRadius,
|
|
1606
1606
|
loadMore = _ref.loadMore;
|
|
1607
1607
|
var columnsAsConst = generateTableColumnsAsConst(columns);
|
|
1608
1608
|
return /*#__PURE__*/React__default.createElement(react.TableContainer, {
|
|
1609
1609
|
border: "none",
|
|
1610
1610
|
overflowX: "auto",
|
|
1611
1611
|
bg: "white",
|
|
1612
|
-
|
|
1613
|
-
borderTopLeftRadius: borderTopRadius ? 'md' : 0,
|
|
1614
|
-
borderTopRightRadius: borderTopRadius ? 'md' : 0
|
|
1612
|
+
width: "fit-content"
|
|
1615
1613
|
}, /*#__PURE__*/React__default.createElement(react.Table, {
|
|
1616
|
-
variant: "unstyled"
|
|
1614
|
+
variant: "unstyled",
|
|
1615
|
+
width: "fit-content",
|
|
1616
|
+
style: {
|
|
1617
|
+
borderCollapse: 'separate',
|
|
1618
|
+
borderSpacing: '0px'
|
|
1619
|
+
}
|
|
1617
1620
|
}, /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, {
|
|
1618
1621
|
_odd: {
|
|
1619
1622
|
bg: colors.label.primary.dark
|
|
@@ -2485,26 +2488,27 @@ var baseStyle$c = {
|
|
|
2485
2488
|
bg: colors.label.primary.dark
|
|
2486
2489
|
},
|
|
2487
2490
|
th: {
|
|
2488
|
-
height: '100%',
|
|
2489
|
-
width: '100%',
|
|
2490
2491
|
bg: colors.label.primary.dark,
|
|
2491
2492
|
padding: '5px 8px !important'
|
|
2492
2493
|
},
|
|
2493
2494
|
tr: {
|
|
2494
2495
|
fontSize: '13px',
|
|
2495
|
-
display: 'flex',
|
|
2496
|
-
alignItems: 'center',
|
|
2497
|
-
width: '100%',
|
|
2498
|
-
height: '100%',
|
|
2499
|
-
borderRadius: 'md',
|
|
2500
2496
|
_odd: {
|
|
2501
|
-
|
|
2497
|
+
td: {
|
|
2498
|
+
bg: colors.fill.light.tertiary,
|
|
2499
|
+
_first: {
|
|
2500
|
+
borderTopLeftRadius: 'md',
|
|
2501
|
+
borderBottomLeftRadius: 'md'
|
|
2502
|
+
},
|
|
2503
|
+
_last: {
|
|
2504
|
+
borderTopRightRadius: 'md',
|
|
2505
|
+
borderBottomRightRadius: 'md'
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2502
2508
|
}
|
|
2503
2509
|
},
|
|
2504
2510
|
td: {
|
|
2505
|
-
padding: '5px 8px !important'
|
|
2506
|
-
borderRadius: 'md',
|
|
2507
|
-
width: '100%'
|
|
2511
|
+
padding: '5px 8px !important'
|
|
2508
2512
|
}
|
|
2509
2513
|
};
|
|
2510
2514
|
var Table$1 = {
|
|
@@ -2865,7 +2869,7 @@ var customXQChakraTheme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends(
|
|
|
2865
2869
|
var XQThemeProvider = function XQThemeProvider(_ref) {
|
|
2866
2870
|
var children = _ref.children,
|
|
2867
2871
|
cssVarsRoot = _ref.cssVarsRoot;
|
|
2868
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2872
|
+
return /*#__PURE__*/React__default.createElement(provider.ChakraProvider, {
|
|
2869
2873
|
theme: customXQChakraTheme,
|
|
2870
2874
|
resetCSS: true,
|
|
2871
2875
|
cssVarsRoot: cssVarsRoot
|