@alfalab/core-components-table 2.5.11 → 2.6.1

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.
Files changed (145) hide show
  1. package/components/pagination/Component.js +1 -1
  2. package/components/pagination/index.css +14 -13
  3. package/components/pagination/select-field/index.css +4 -4
  4. package/components/pagination/select-field/index.js +1 -1
  5. package/components/table/Component.js +1 -1
  6. package/components/table/index.css +13 -11
  7. package/components/tbody/Component.js +1 -1
  8. package/components/tbody/index.css +2 -2
  9. package/components/tcell/Component.js +1 -1
  10. package/components/tcell/index.css +6 -6
  11. package/components/texpandable-row/Component.js +1 -1
  12. package/components/texpandable-row/index.css +9 -8
  13. package/components/thead/Component.js +1 -1
  14. package/components/thead/index.css +8 -7
  15. package/components/thead-cell/Component.js +1 -1
  16. package/components/thead-cell/index.css +11 -10
  17. package/components/trow/Component.js +1 -1
  18. package/components/trow/index.css +8 -8
  19. package/components/tsortable-head-cell/Component.js +1 -1
  20. package/components/tsortable-head-cell/index.css +10 -9
  21. package/cssm/components/pagination/index.module.css +5 -4
  22. package/cssm/components/table/index.module.css +6 -4
  23. package/cssm/components/texpandable-row/index.module.css +4 -3
  24. package/cssm/components/thead/index.module.css +2 -1
  25. package/cssm/components/thead-cell/index.module.css +2 -1
  26. package/cssm/components/tsortable-head-cell/index.module.css +2 -1
  27. package/esm/components/pagination/Component.js +1 -1
  28. package/esm/components/pagination/index.css +14 -13
  29. package/esm/components/pagination/select-field/index.css +4 -4
  30. package/esm/components/pagination/select-field/index.js +1 -1
  31. package/esm/components/table/Component.js +1 -1
  32. package/esm/components/table/index.css +13 -11
  33. package/esm/components/tbody/Component.js +1 -1
  34. package/esm/components/tbody/index.css +2 -2
  35. package/esm/components/tcell/Component.js +1 -1
  36. package/esm/components/tcell/index.css +6 -6
  37. package/esm/components/texpandable-row/Component.js +1 -1
  38. package/esm/components/texpandable-row/index.css +9 -8
  39. package/esm/components/thead/Component.js +1 -1
  40. package/esm/components/thead/index.css +8 -7
  41. package/esm/components/thead-cell/Component.js +1 -1
  42. package/esm/components/thead-cell/index.css +11 -10
  43. package/esm/components/trow/Component.js +1 -1
  44. package/esm/components/trow/index.css +8 -8
  45. package/esm/components/tsortable-head-cell/Component.js +1 -1
  46. package/esm/components/tsortable-head-cell/index.css +10 -9
  47. package/modern/components/pagination/Component.js +1 -1
  48. package/modern/components/pagination/index.css +14 -13
  49. package/modern/components/pagination/select-field/index.css +4 -4
  50. package/modern/components/pagination/select-field/index.js +1 -1
  51. package/modern/components/table/Component.js +1 -1
  52. package/modern/components/table/index.css +13 -11
  53. package/modern/components/tbody/Component.js +1 -1
  54. package/modern/components/tbody/index.css +2 -2
  55. package/modern/components/tcell/Component.js +1 -1
  56. package/modern/components/tcell/index.css +6 -6
  57. package/modern/components/texpandable-row/Component.js +1 -1
  58. package/modern/components/texpandable-row/index.css +9 -8
  59. package/modern/components/thead/Component.js +1 -1
  60. package/modern/components/thead/index.css +8 -7
  61. package/modern/components/thead-cell/Component.js +1 -1
  62. package/modern/components/thead-cell/index.css +11 -10
  63. package/modern/components/trow/Component.js +1 -1
  64. package/modern/components/trow/index.css +8 -8
  65. package/modern/components/tsortable-head-cell/Component.js +1 -1
  66. package/modern/components/tsortable-head-cell/index.css +10 -9
  67. package/moderncssm/component.d.ts +21 -0
  68. package/moderncssm/component.js +22 -0
  69. package/moderncssm/components/index.d.ts +9 -0
  70. package/moderncssm/components/index.js +9 -0
  71. package/moderncssm/components/pagination/Component.d.ts +26 -0
  72. package/moderncssm/components/pagination/Component.js +33 -0
  73. package/moderncssm/components/pagination/index.d.ts +1 -0
  74. package/moderncssm/components/pagination/index.js +1 -0
  75. package/moderncssm/components/pagination/index.module.css +44 -0
  76. package/moderncssm/components/pagination/select-field/index.d.ts +3 -0
  77. package/moderncssm/components/pagination/select-field/index.js +12 -0
  78. package/moderncssm/components/pagination/select-field/index.module.css +11 -0
  79. package/moderncssm/components/table/Component.d.ts +72 -0
  80. package/moderncssm/components/table/Component.js +32 -0
  81. package/moderncssm/components/table/index.d.ts +1 -0
  82. package/moderncssm/components/table/index.js +1 -0
  83. package/moderncssm/components/table/index.module.css +33 -0
  84. package/moderncssm/components/table/utils.d.ts +5 -0
  85. package/moderncssm/components/table/utils.js +17 -0
  86. package/moderncssm/components/table-context/index.d.ts +20 -0
  87. package/moderncssm/components/table-context/index.js +12 -0
  88. package/moderncssm/components/tbody/Component.d.ts +15 -0
  89. package/moderncssm/components/tbody/Component.js +7 -0
  90. package/moderncssm/components/tbody/index.d.ts +1 -0
  91. package/moderncssm/components/tbody/index.js +1 -0
  92. package/moderncssm/components/tbody/index.module.css +6 -0
  93. package/moderncssm/components/tcell/Component.d.ts +19 -0
  94. package/moderncssm/components/tcell/Component.js +17 -0
  95. package/moderncssm/components/tcell/index.d.ts +1 -0
  96. package/moderncssm/components/tcell/index.js +1 -0
  97. package/moderncssm/components/tcell/index.module.css +37 -0
  98. package/moderncssm/components/texpandable-row/Component.d.ts +12 -0
  99. package/moderncssm/components/texpandable-row/Component.js +24 -0
  100. package/moderncssm/components/texpandable-row/index.d.ts +1 -0
  101. package/moderncssm/components/texpandable-row/index.js +1 -0
  102. package/moderncssm/components/texpandable-row/index.module.css +21 -0
  103. package/moderncssm/components/thead/Component.d.ts +19 -0
  104. package/moderncssm/components/thead/Component.js +8 -0
  105. package/moderncssm/components/thead/index.d.ts +1 -0
  106. package/moderncssm/components/thead/index.js +1 -0
  107. package/moderncssm/components/thead/index.module.css +32 -0
  108. package/moderncssm/components/thead-cell/Component.d.ts +28 -0
  109. package/moderncssm/components/thead-cell/Component.js +15 -0
  110. package/moderncssm/components/thead-cell/index.d.ts +1 -0
  111. package/moderncssm/components/thead-cell/index.js +1 -0
  112. package/moderncssm/components/thead-cell/index.module.css +51 -0
  113. package/moderncssm/components/trow/Component.d.ts +29 -0
  114. package/moderncssm/components/trow/Component.js +11 -0
  115. package/moderncssm/components/trow/index.d.ts +1 -0
  116. package/moderncssm/components/trow/index.js +1 -0
  117. package/moderncssm/components/trow/index.module.css +33 -0
  118. package/moderncssm/components/tsortable-head-cell/Component.d.ts +10 -0
  119. package/moderncssm/components/tsortable-head-cell/Component.js +26 -0
  120. package/moderncssm/components/tsortable-head-cell/index.d.ts +1 -0
  121. package/moderncssm/components/tsortable-head-cell/index.js +1 -0
  122. package/moderncssm/components/tsortable-head-cell/index.module.css +41 -0
  123. package/moderncssm/components/tsortable-head-cell/sort-icon-asc.d.ts +5 -0
  124. package/moderncssm/components/tsortable-head-cell/sort-icon-asc.js +6 -0
  125. package/moderncssm/components/tsortable-head-cell/sort-icon-desc.d.ts +5 -0
  126. package/moderncssm/components/tsortable-head-cell/sort-icon-desc.js +6 -0
  127. package/moderncssm/components/tsortable-head-cell/sort-icon-unset.d.ts +5 -0
  128. package/moderncssm/components/tsortable-head-cell/sort-icon-unset.js +6 -0
  129. package/moderncssm/index.d.ts +1 -0
  130. package/moderncssm/index.js +1 -0
  131. package/moderncssm/typings.d.ts +2 -0
  132. package/moderncssm/typings.js +1 -0
  133. package/moderncssm/utils.d.ts +4 -0
  134. package/moderncssm/utils.js +8 -0
  135. package/package.json +6 -6
  136. package/src/components/pagination/index.module.css +5 -5
  137. package/src/components/pagination/select-field/index.module.css +1 -1
  138. package/src/components/table/index.module.css +5 -5
  139. package/src/components/tbody/index.module.css +1 -1
  140. package/src/components/tcell/index.module.css +1 -1
  141. package/src/components/texpandable-row/index.module.css +4 -4
  142. package/src/components/thead/index.module.css +2 -2
  143. package/src/components/thead-cell/index.module.css +2 -2
  144. package/src/components/trow/index.module.css +1 -1
  145. package/src/components/tsortable-head-cell/index.module.css +2 -2
@@ -0,0 +1 @@
1
+ export { THeadCell } from './Component.js';
@@ -0,0 +1,51 @@
1
+ /* */
2
+
3
+ .component {
4
+ font-size: 12px;
5
+ line-height: 16px;
6
+ font-weight: 500;
7
+ letter-spacing: 1.25px;
8
+ text-transform: uppercase;
9
+
10
+ line-height: 20px;
11
+ text-align: left;
12
+ color: var(--color-light-text-primary);
13
+ padding: var(--gap-32) var(--gap-12) var(--gap-4);
14
+ border-bottom: 1px solid var(--color-light-neutral-400);
15
+ background: var(--color-light-base-bg-primary);
16
+ vertical-align: top;
17
+ box-sizing: border-box
18
+ }
19
+
20
+ .component:first-child {
21
+ padding-left: var(--gap-16);
22
+ }
23
+
24
+ .component:last-child {
25
+ padding-right: var(--gap-16);
26
+ }
27
+
28
+ .component:not(.stickyHeader) {
29
+ position: relative;
30
+ }
31
+
32
+ .sortable {
33
+ cursor: pointer;
34
+ }
35
+
36
+ .sorted {
37
+ color: var(--color-light-text-primary);
38
+ }
39
+
40
+ .stickyHeader {
41
+ top: var(--gap-0);
42
+ position: sticky;
43
+ box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
44
+ border: none;
45
+ z-index: 1;
46
+ }
47
+
48
+ .compactHorizontal {
49
+ padding-left: 6px;
50
+ padding-right: 6px;
51
+ }
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { HTMLAttributes } from "react";
4
+ import { TCell, TCellProps } from "../tcell/index";
5
+ type TCellElement = React.ReactElement<TCellProps, typeof TCell>;
6
+ type TRowProps = HTMLAttributes<HTMLTableRowElement> & {
7
+ /**
8
+ * Компоненты ячеек
9
+ */
10
+ children: TCellElement | TCellElement[];
11
+ /**
12
+ * Дополнительный класс
13
+ */
14
+ className?: string;
15
+ /**
16
+ * Стиль выбранной строки
17
+ */
18
+ selected?: boolean;
19
+ /**
20
+ * Убирает нижнюю границу
21
+ */
22
+ withoutBorder?: boolean;
23
+ /**
24
+ * Идентификатор для систем автоматизированного тестирования
25
+ */
26
+ dataTestId?: string;
27
+ };
28
+ declare const TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: TRowProps) => React.JSX.Element;
29
+ export { TRowProps, TRow };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import cn from 'classnames';
3
+ import styles from './index.module.css';
4
+
5
+ const TRow = ({ children, className, selected, withoutBorder, dataTestId, ...restProps }) => (React.createElement("tr", { className: cn(styles.component, className, {
6
+ [styles.clickable]: typeof restProps.onClick !== 'undefined',
7
+ [styles.selected]: selected,
8
+ [styles.withoutBorder]: withoutBorder,
9
+ }), "data-test-id": dataTestId, ...restProps }, React.Children.map(children, (child, index) => React.cloneElement(child, { index }))));
10
+
11
+ export { TRow };
@@ -0,0 +1 @@
1
+ export * from "./Component";
@@ -0,0 +1 @@
1
+ export { TRow } from './Component.js';
@@ -0,0 +1,33 @@
1
+ /* */
2
+
3
+ .component {
4
+ padding-top: 1px;
5
+ width: 100%;
6
+ transition: background-color 0.2s;
7
+ box-sizing: border-box;
8
+ background: var(--color-light-base-bg-primary)
9
+ }
10
+
11
+ .component:first-child td {
12
+ border-top: 0;
13
+ }
14
+
15
+ .withoutBorder td {
16
+ border: none;
17
+ }
18
+
19
+ .clickable {
20
+ cursor: pointer
21
+ }
22
+
23
+ .clickable:hover {
24
+ background-color: var(--color-light-base-bg-secondary);
25
+ }
26
+
27
+ .selected {
28
+ background-color: #f2f8ff /* нет цвета в палитре */
29
+ }
30
+
31
+ .selected:hover {
32
+ background-color: var(--color-static-graphic-solitude);
33
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { THeadCellProps } from "../thead-cell/index";
4
+ type TSortableHeadCellProps = THeadCellProps & {
5
+ isSortedDesc?: boolean;
6
+ defaultIsSortedDesc?: boolean;
7
+ onSort?: () => void;
8
+ };
9
+ declare const TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: TSortableHeadCellProps) => React.JSX.Element;
10
+ export { TSortableHeadCellProps, TSortableHeadCell };
@@ -0,0 +1,26 @@
1
+ import React, { useMemo } from 'react';
2
+ import cn from 'classnames';
3
+ import { THeadCell } from '../thead-cell/Component.js';
4
+ import { SortIconAsc } from './sort-icon-asc.js';
5
+ import { SortIconDesc } from './sort-icon-desc.js';
6
+ import { SortIconUnset } from './sort-icon-unset.js';
7
+ import styles from './index.module.css';
8
+
9
+ const TSortableHeadCell = ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }) => {
10
+ const SortIcon = useMemo(() => {
11
+ let value = isSortedDesc;
12
+ if (value === undefined)
13
+ value = defaultIsSortedDesc;
14
+ if (typeof value === 'boolean')
15
+ return value ? SortIconDesc : SortIconAsc;
16
+ return SortIconUnset;
17
+ }, [defaultIsSortedDesc, isSortedDesc]);
18
+ return (React.createElement(THeadCell, { className: className, textAlign: textAlign, ...restProps },
19
+ React.createElement("div", { className: cn(styles.content, { [styles.reverse]: textAlign === 'right' }) },
20
+ children,
21
+ React.createElement(SortIcon, { onClick: onSort, className: cn(styles.icon, {
22
+ [styles.sorted]: isSortedDesc !== undefined,
23
+ }) }))));
24
+ };
25
+
26
+ export { TSortableHeadCell };
@@ -0,0 +1 @@
1
+ export * from "./Component";
@@ -0,0 +1 @@
1
+ export { TSortableHeadCell } from './Component.js';
@@ -0,0 +1,41 @@
1
+ /* */
2
+
3
+ .content {
4
+ display: flex;
5
+ align-items: flex-start;
6
+ }
7
+
8
+ .icon {
9
+ cursor: pointer;
10
+ margin-left: var(--gap-8);
11
+
12
+ /**
13
+ * иконка сортировки должна быть выровнена по верхнему краю,
14
+ * т.к. текст может быть в две строки
15
+ */
16
+ margin-top: 1px;
17
+ color: var(--color-light-neutral-700);
18
+ transition: color 0.2s ease;
19
+ flex-shrink: 0
20
+ }
21
+
22
+ .icon:hover {
23
+ color: var(--color-light-neutral-translucent-1300);
24
+ }
25
+
26
+ .reverse {
27
+ flex-direction: row-reverse
28
+ }
29
+
30
+ .reverse .icon {
31
+ margin-left: var(--gap-0);
32
+ margin-right: var(--gap-8);
33
+ }
34
+
35
+ .sorted {
36
+ color: var(--color-light-status-info)
37
+ }
38
+
39
+ .sorted:hover {
40
+ color: var(--color-light-status-info);
41
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { SVGProps } from "react";
4
+ declare const SortIconAsc: React.FC<SVGProps<SVGSVGElement>>;
5
+ export { SortIconAsc };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+
3
+ const SortIconAsc = (props) => (React.createElement("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img', ...props },
4
+ React.createElement("path", { d: 'M3.00004 10C3.00004 10 11.4477 10 12 10C12 9.33333 12.0001 8.16667 12.0001 7.5H3.0001C3.00006 8 3.0001 9.5 3.00004 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H9C9 5.33333 9 4.16667 9 3.5C9 3.5 3.55238 3.5 3.0001 3.5ZM3.00009 14C3.21041 14 15 14 15 14C15 13.5 15 12 15 11.5C15 11.5 3.55238 11.5 3.00009 11.5C3 12 3 13.5 3.00009 14Z' })));
5
+
6
+ export { SortIconAsc };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { SVGProps } from "react";
4
+ declare const SortIconDesc: React.FC<SVGProps<SVGSVGElement>>;
5
+ export { SortIconDesc };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+
3
+ const SortIconDesc = (props) => (React.createElement("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img', ...props },
4
+ React.createElement("path", { d: 'M3.00004 10C3.00004 10 11.4477 10 12 10C12 9.33333 12.0001 8.16667 12.0001 7.5H3.0001C3.00006 8 3.0001 9.5 3.00004 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H15C15 5.33333 15 4.16667 15 3.5C15 3.5 3.55238 3.5 3.0001 3.5ZM3.00009 14C3.21041 14 9 14 9 14C9 13.5 9 12 9 11.5C9 11.5 3.55238 11.5 3.00009 11.5C3 12 3 13.5 3.00009 14Z' })));
5
+
6
+ export { SortIconDesc };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { SVGProps } from "react";
4
+ declare const SortIconUnset: React.FC<SVGProps<SVGSVGElement>>;
5
+ export { SortIconUnset };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+
3
+ const SortIconUnset = (props) => (React.createElement("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img', ...props },
4
+ React.createElement("path", { d: 'M3 10C3 10 10.4477 10 11 10C11 9.33333 11.0001 8.16667 11.0001 7.5H3.00006C3.00002 8 3.00006 9.5 3 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H15C15 5.33333 15 4.16667 15 3.5C15 3.5 3.55238 3.5 3.0001 3.5ZM3 14C3.21032 14 14 14 14 14C14 13.5 14 12 14 11.5C14 11.5 3.55228 11.5 3 11.5C2.99991 12 2.99991 13.5 3 14Z' })));
5
+
6
+ export { SortIconUnset };
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export { Table } from './component.js';
@@ -0,0 +1,2 @@
1
+ type TextAlignProperty = 'center' | 'end' | 'justify' | 'left' | 'match-parent' | 'right' | 'start';
2
+ export { TextAlignProperty };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare function isChildInstanceOf<P>(child: React.ReactElement, Component: React.ComponentType<P>): boolean;
4
+ export { isChildInstanceOf };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ function isChildInstanceOf(child, Component) {
4
+ // мы не можем полагаться на child.type === Component, см. https://github.com/gaearon/react-hot-loader/issues/304
5
+ return child.type === React.createElement(Component).type;
6
+ }
7
+
8
+ export { isChildInstanceOf };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-table",
3
- "version": "2.5.11",
3
+ "version": "2.6.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,12 +15,12 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-button": "^11.5.5",
19
- "@alfalab/core-components-pagination": "^2.3.5",
20
- "@alfalab/core-components-select": "^17.10.1",
18
+ "@alfalab/core-components-button": "^11.7.0",
19
+ "@alfalab/core-components-pagination": "^2.4.1",
20
+ "@alfalab/core-components-select": "^17.12.0",
21
21
  "classnames": "^2.3.1",
22
22
  "tslib": "^2.4.0"
23
23
  },
24
- "themesVersion": "13.0.2",
25
- "varsVersion": "9.11.1"
24
+ "themesVersion": "13.2.0",
25
+ "varsVersion": "9.13.0"
26
26
  }
@@ -1,8 +1,8 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  position: sticky;
5
- left: 0;
5
+ left: var(--gap-0);
6
6
  display: flex;
7
7
  justify-content: space-between;
8
8
  align-items: flex-start;
@@ -19,11 +19,11 @@
19
19
  .tag.tag {
20
20
  flex-shrink: 0;
21
21
  margin-right: var(--gap-8);
22
- padding: 0 var(--gap-8);
22
+ padding: var(--gap-0) var(--gap-8);
23
23
  min-width: 32px;
24
24
 
25
25
  &:last-child {
26
- margin-right: 0;
26
+ margin-right: var(--gap-0);
27
27
  }
28
28
 
29
29
  &.tagActive {
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  .menu {
39
- margin: var(--gap-4) 0;
39
+ margin: var(--gap-4) var(--gap-0);
40
40
  }
41
41
 
42
42
  .option {
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .field {
4
4
  & svg {
@@ -1,14 +1,14 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  box-sizing: border-box;
5
5
  }
6
6
 
7
7
  .wrapper {
8
- padding: 0 var(--gap-16) var(--gap-16);
8
+ padding: var(--gap-0) var(--gap-16) var(--gap-16);
9
9
  background: var(--color-light-base-bg-primary);
10
10
  box-shadow: var(--shadow-xs-hard);
11
- border-radius: var(--border-radius-m);
11
+ border-radius: var(--border-radius-8);
12
12
  overflow: auto;
13
13
  }
14
14
 
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .hasPagination {
20
- padding-bottom: 0;
20
+ padding-bottom: var(--gap-0);
21
21
  }
22
22
 
23
23
  .table {
@@ -29,7 +29,7 @@
29
29
  & td:first-child,
30
30
  & th:first-child {
31
31
  & label > *[class^='box'] {
32
- margin-top: 0;
32
+ margin-top: var(--gap-0);
33
33
  }
34
34
  }
35
35
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  @mixin paragraph_primary_small;
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .row {
4
4
  cursor: pointer;
@@ -16,9 +16,9 @@
16
16
 
17
17
  .expandable {
18
18
  & td {
19
- margin: 0;
20
- padding-top: 0;
21
- padding-bottom: 0;
19
+ margin: var(--gap-0);
20
+ padding-top: var(--gap-0);
21
+ padding-bottom: var(--gap-0);
22
22
  border: none;
23
23
  height: auto;
24
24
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  position: relative;
@@ -12,7 +12,7 @@
12
12
  display: block;
13
13
 
14
14
  width: 1px;
15
- right: 0;
15
+ right: var(--gap-0);
16
16
  top: var(--gap-8);
17
17
  bottom: var(--gap-8);
18
18
  background-color: var(--color-light-neutral-400);
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  @mixin paragraph_caps;
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .stickyHeader {
37
- top: 0;
37
+ top: var(--gap-0);
38
38
  position: sticky;
39
39
  box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
40
40
  border: none;
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  padding-top: 1px;
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .content {
4
4
  display: flex;
@@ -27,7 +27,7 @@
27
27
  flex-direction: row-reverse;
28
28
 
29
29
  & .icon {
30
- margin-left: 0;
30
+ margin-left: var(--gap-0);
31
31
  margin-right: var(--gap-8);
32
32
  }
33
33
  }