@xqmsg/ui-core 0.14.1 → 0.14.3
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/input/StackedMultiSelect/index.d.ts +4 -1
- package/dist/components/input/StackedPilledInput/index.d.ts +4 -1
- package/dist/components/input/index.d.ts +4 -2
- package/dist/components/table/index.d.ts +1 -2
- package/dist/theme/components/table.d.ts +11 -10
- package/dist/ui-core.cjs.development.js +117 -41
- 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 +120 -44
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/section/index.tsx +2 -0
- package/src/components/input/Input.stories.tsx +10 -0
- package/src/components/input/StackedMultiSelect/index.tsx +153 -101
- package/src/components/input/StackedPilledInput/index.tsx +231 -191
- package/src/components/input/components/dropdown/index.tsx +7 -2
- package/src/components/input/components/token/assets/svg/close.svg +1 -1
- package/src/components/input/components/token/index.tsx +16 -9
- package/src/components/input/index.tsx +12 -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
|
@@ -25,7 +25,6 @@ export interface TableProps<T extends ReadonlyTableColumns> {
|
|
|
25
25
|
headers: TableHeaders<T>;
|
|
26
26
|
body: TableBody<T>;
|
|
27
27
|
loading?: boolean;
|
|
28
|
-
borderTopRadius?: boolean;
|
|
29
28
|
loadMore?: () => void;
|
|
30
29
|
placeholder?: string;
|
|
31
30
|
}
|
|
@@ -40,7 +39,6 @@ export function Table<T extends ReadonlyTableColumns>({
|
|
|
40
39
|
placeholder = 'There is currently no available data',
|
|
41
40
|
loading,
|
|
42
41
|
|
|
43
|
-
borderTopRadius = true,
|
|
44
42
|
loadMore,
|
|
45
43
|
}: TableProps<T>) {
|
|
46
44
|
const columnsAsConst = generateTableColumnsAsConst(columns);
|
|
@@ -50,11 +48,16 @@ export function Table<T extends ReadonlyTableColumns>({
|
|
|
50
48
|
border="none"
|
|
51
49
|
overflowX="auto"
|
|
52
50
|
bg="white"
|
|
53
|
-
|
|
54
|
-
borderTopLeftRadius={borderTopRadius ? 'md' : 0}
|
|
55
|
-
borderTopRightRadius={borderTopRadius ? 'md' : 0}
|
|
51
|
+
width="fit-content"
|
|
56
52
|
>
|
|
57
|
-
<ChakraTable
|
|
53
|
+
<ChakraTable
|
|
54
|
+
variant="unstyled"
|
|
55
|
+
width="fit-content"
|
|
56
|
+
style={{
|
|
57
|
+
borderCollapse: 'separate',
|
|
58
|
+
borderSpacing: '0px',
|
|
59
|
+
}}
|
|
60
|
+
>
|
|
58
61
|
<Thead>
|
|
59
62
|
<Tr _odd={{ bg: colors.label.primary.dark }}>
|
|
60
63
|
{columnsAsConst.map(column => (
|
|
@@ -5,26 +5,27 @@ const parts = ['th', 'td', 'tr', 'body', 'thead'];
|
|
|
5
5
|
const baseStyle = {
|
|
6
6
|
thead: { bg: colors.label.primary.dark },
|
|
7
7
|
th: {
|
|
8
|
-
height: '100%',
|
|
9
|
-
width: '100%',
|
|
10
8
|
bg: colors.label.primary.dark,
|
|
11
9
|
padding: '5px 8px !important',
|
|
12
10
|
},
|
|
13
11
|
tr: {
|
|
14
12
|
fontSize: '13px',
|
|
15
|
-
display: 'flex',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
width: '100%',
|
|
18
|
-
height: '100%',
|
|
19
|
-
borderRadius: 'md',
|
|
20
13
|
_odd: {
|
|
21
|
-
|
|
14
|
+
td: {
|
|
15
|
+
bg: colors.fill.light.tertiary,
|
|
16
|
+
_first: {
|
|
17
|
+
borderTopLeftRadius: 'md',
|
|
18
|
+
borderBottomLeftRadius: 'md',
|
|
19
|
+
},
|
|
20
|
+
_last: {
|
|
21
|
+
borderTopRightRadius: 'md',
|
|
22
|
+
borderBottomRightRadius: 'md',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
22
25
|
},
|
|
23
26
|
},
|
|
24
27
|
td: {
|
|
25
28
|
padding: '5px 8px !important',
|
|
26
|
-
borderRadius: 'md',
|
|
27
|
-
width: '100%',
|
|
28
29
|
},
|
|
29
30
|
};
|
|
30
31
|
|