@algolia/satellite 1.0.0-beta.120 → 1.0.0-beta.124

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 (108) hide show
  1. package/cjs/AutoComplete/AutoComplete.d.ts +4 -0
  2. package/cjs/AutoComplete/AutoComplete.js +10 -5
  3. package/cjs/AutoComplete/types.d.ts +5 -0
  4. package/cjs/Button/styles.d.ts +1 -1
  5. package/cjs/Checkbox/Checkbox.js +1 -0
  6. package/cjs/DatePicker/DatePicker.tailwind.js +7 -2
  7. package/cjs/Dropdown/DropdownButton.d.ts +1 -1
  8. package/cjs/Pagination/DotPagination/DotPagination.d.ts +2 -1
  9. package/cjs/Pagination/DotPagination/DotPagination.js +4 -2
  10. package/cjs/Pagination/Pagination/Pagination.js +3 -0
  11. package/cjs/ProgressSpinner/ProgressSpinner.js +1 -1
  12. package/cjs/Tables/DataTable/DataTable.d.ts +41 -0
  13. package/cjs/Tables/DataTable/DataTable.js +281 -0
  14. package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
  15. package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
  16. package/cjs/Tables/DataTable/components/Body.d.ts +14 -0
  17. package/cjs/Tables/DataTable/components/Body.js +125 -0
  18. package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
  19. package/cjs/Tables/DataTable/components/Footer.js +81 -0
  20. package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
  21. package/cjs/Tables/DataTable/components/Header.js +44 -0
  22. package/cjs/Tables/DataTable/components/HeaderCell.d.ts +11 -0
  23. package/cjs/Tables/DataTable/components/HeaderCell.js +61 -0
  24. package/cjs/Tables/DataTable/components/Loader.d.ts +6 -0
  25. package/cjs/Tables/DataTable/components/Loader.js +63 -0
  26. package/cjs/Tables/DataTable/components/index.d.ts +5 -0
  27. package/cjs/Tables/DataTable/components/index.js +70 -0
  28. package/cjs/Tables/DataTable/index.d.ts +3 -0
  29. package/cjs/Tables/DataTable/index.js +46 -0
  30. package/cjs/Tables/DataTable/types.d.ts +49 -0
  31. package/cjs/Tables/DataTable/types.js +5 -0
  32. package/cjs/Tables/DataTable/utils.d.ts +4 -0
  33. package/cjs/Tables/DataTable/utils.js +32 -0
  34. package/cjs/{Table → Tables/Table}/Table.d.ts +1 -1
  35. package/cjs/{Table → Tables/Table}/Table.js +8 -6
  36. package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
  37. package/cjs/{Table → Tables/Table}/Table.tailwind.js +6 -20
  38. package/cjs/Tables/Table/components/Footer.d.ts +8 -0
  39. package/cjs/Tables/Table/components/Footer.js +35 -0
  40. package/cjs/Tables/Table/index.d.ts +2 -0
  41. package/cjs/{Table → Tables/Table}/index.js +7 -5
  42. package/cjs/Tables/index.d.ts +3 -0
  43. package/cjs/Tables/index.js +46 -0
  44. package/cjs/index.d.ts +1 -1
  45. package/cjs/index.js +4 -4
  46. package/cjs/styles/tailwind.config.js +1 -1
  47. package/cjs/utils/index.d.ts +1 -0
  48. package/cjs/utils/index.js +9 -1
  49. package/cjs/utils/toSentenceCase.d.ts +3 -0
  50. package/cjs/utils/toSentenceCase.js +21 -0
  51. package/esm/AutoComplete/AutoComplete.d.ts +4 -0
  52. package/esm/AutoComplete/AutoComplete.js +10 -5
  53. package/esm/AutoComplete/types.d.ts +5 -0
  54. package/esm/Button/styles.d.ts +1 -1
  55. package/esm/Checkbox/Checkbox.js +1 -0
  56. package/esm/DatePicker/DatePicker.tailwind.js +7 -2
  57. package/esm/Dropdown/DropdownButton.d.ts +1 -1
  58. package/esm/Pagination/DotPagination/DotPagination.d.ts +2 -1
  59. package/esm/Pagination/DotPagination/DotPagination.js +4 -2
  60. package/esm/Pagination/Pagination/Pagination.js +3 -0
  61. package/esm/ProgressSpinner/ProgressSpinner.js +1 -1
  62. package/esm/Tables/DataTable/DataTable.d.ts +41 -0
  63. package/esm/Tables/DataTable/DataTable.js +249 -0
  64. package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
  65. package/esm/Tables/DataTable/DataTable.tailwind.js +21 -0
  66. package/esm/Tables/DataTable/components/Body.d.ts +14 -0
  67. package/esm/Tables/DataTable/components/Body.js +106 -0
  68. package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
  69. package/esm/Tables/DataTable/components/Footer.js +60 -0
  70. package/esm/Tables/DataTable/components/Header.d.ts +10 -0
  71. package/esm/Tables/DataTable/components/Header.js +29 -0
  72. package/esm/Tables/DataTable/components/HeaderCell.d.ts +11 -0
  73. package/esm/Tables/DataTable/components/HeaderCell.js +42 -0
  74. package/esm/Tables/DataTable/components/Loader.d.ts +6 -0
  75. package/esm/Tables/DataTable/components/Loader.js +40 -0
  76. package/esm/Tables/DataTable/components/index.d.ts +5 -0
  77. package/esm/Tables/DataTable/components/index.js +5 -0
  78. package/esm/Tables/DataTable/index.d.ts +3 -0
  79. package/esm/Tables/DataTable/index.js +3 -0
  80. package/esm/Tables/DataTable/types.d.ts +49 -0
  81. package/esm/Tables/DataTable/types.js +1 -0
  82. package/esm/Tables/DataTable/utils.d.ts +4 -0
  83. package/esm/Tables/DataTable/utils.js +14 -0
  84. package/esm/{Table → Tables/Table}/Table.d.ts +1 -1
  85. package/esm/{Table → Tables/Table}/Table.js +7 -6
  86. package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
  87. package/esm/{Table → Tables/Table}/Table.tailwind.js +6 -20
  88. package/esm/Tables/Table/components/Footer.d.ts +8 -0
  89. package/esm/Tables/Table/components/Footer.js +20 -0
  90. package/esm/Tables/Table/index.d.ts +2 -0
  91. package/esm/Tables/Table/index.js +2 -0
  92. package/esm/Tables/index.d.ts +3 -0
  93. package/esm/Tables/index.js +3 -0
  94. package/esm/index.d.ts +1 -1
  95. package/esm/index.js +1 -1
  96. package/esm/styles/tailwind.config.js +1 -1
  97. package/esm/utils/index.d.ts +1 -0
  98. package/esm/utils/index.js +2 -1
  99. package/esm/utils/toSentenceCase.d.ts +3 -0
  100. package/esm/utils/toSentenceCase.js +9 -0
  101. package/package.json +1 -1
  102. package/satellite.css +18 -18
  103. package/satellite.min.css +1 -1
  104. package/cjs/Table/Table.tailwind.d.ts +0 -5
  105. package/cjs/Table/index.d.ts +0 -3
  106. package/esm/Table/Table.tailwind.d.ts +0 -5
  107. package/esm/Table/index.d.ts +0 -3
  108. package/esm/Table/index.js +0 -3
@@ -0,0 +1,49 @@
1
+ /// <reference types="react" />
2
+ export declare type Status = "loading" | "error" | "success";
3
+ export declare type SelectMode = "single" | "multi" | "none";
4
+ export declare type SortingDirection = "asc" | "desc" | "none";
5
+ export declare type Sorting = [columnId: string, direction: SortingDirection];
6
+ export declare type GetItemId<Item> = string | ((item: Item, idx: number) => string);
7
+ export interface Row<Item> {
8
+ item: Item;
9
+ id: string;
10
+ hovered: boolean;
11
+ selected: boolean;
12
+ selectable: boolean;
13
+ }
14
+ export interface CellProps<Item> {
15
+ value: any;
16
+ row: Row<Item>;
17
+ column: AdvancedColumnDefinition<Item>;
18
+ }
19
+ export interface HeaderProps<Item> {
20
+ column: AdvancedColumnDefinition<Item>;
21
+ }
22
+ export interface AdvancedColumnDefinition<Item> {
23
+ /** The ID of the column - Should be unique */
24
+ id: string;
25
+ /** A string or a function which determines how to get the column data */
26
+ accessor: string | ((item: Item) => any);
27
+ sort?: boolean;
28
+ Header?: React.ComponentType<HeaderProps<Item>>;
29
+ Cell?: React.ComponentType<CellProps<Item>>;
30
+ className?: string;
31
+ }
32
+ export declare type ColumnDefinition<Item> = string | AdvancedColumnDefinition<Item>;
33
+ export interface IndeterminatePagination {
34
+ currentPage: number;
35
+ itemsPerPage: number;
36
+ isLastPage?: boolean;
37
+ }
38
+ export interface DeterminatePagination {
39
+ currentPage: number;
40
+ itemsPerPage: number;
41
+ totalItemsCount: number;
42
+ }
43
+ export declare type PaginationConfiguration = false | IndeterminatePagination | DeterminatePagination;
44
+ export interface DataConfiguration {
45
+ /** The current pagination configuration */
46
+ pagination: PaginationConfiguration;
47
+ /** The current sorting configuration */
48
+ sorting: Sorting[];
49
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { Row, DeterminatePagination, IndeterminatePagination, PaginationConfiguration, AdvancedColumnDefinition } from "./types";
2
+ export declare const isDeterminatePagination: (pagination: PaginationConfiguration) => pagination is DeterminatePagination;
3
+ export declare const isIndeterminatePagination: (pagination: PaginationConfiguration) => pagination is IndeterminatePagination;
4
+ export declare const getCellValue: <Item extends {}>(column: AdvancedColumnDefinition<Item>, row: Row<Item>) => any;
@@ -0,0 +1,14 @@
1
+ import get from "lodash/get";
2
+ export var isDeterminatePagination = function isDeterminatePagination(pagination) {
3
+ return pagination !== false && "totalItemsCount" in pagination;
4
+ };
5
+ export var isIndeterminatePagination = function isIndeterminatePagination(pagination) {
6
+ return pagination !== false && !("totalItemsCount" in pagination) && "currentPage" in pagination && typeof pagination.currentPage === "number";
7
+ };
8
+ export var getCellValue = function getCellValue(column, row) {
9
+ if (typeof column.accessor === "string") {
10
+ return get(row.item, column.accessor);
11
+ }
12
+
13
+ return column.accessor(row.item);
14
+ };
@@ -6,7 +6,7 @@ export interface TableProps extends React.DetailedHTMLProps<React.TableHTMLAttri
6
6
  highlight?: boolean;
7
7
  }
8
8
  /**
9
- * Data tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
9
+ * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
10
10
  *
11
11
  * #### Do
12
12
  *
@@ -2,15 +2,16 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
 
5
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
5
+ var _templateObject, _templateObject2, _templateObject3;
6
6
 
7
7
  var _excluded = ["className", "footer", "smallFooter", "hasActions", "highlight"];
8
8
  import React from "react";
9
9
  import cx from "classnames";
10
- import stl from "../styles/helpers/satellitePrefixer";
10
+ import stl from "../../styles/helpers/satellitePrefixer";
11
+ import Footer from "./components/Footer";
11
12
 
12
13
  /**
13
- * Data tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
14
+ * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
14
15
  *
15
16
  * #### Do
16
17
  *
@@ -39,13 +40,13 @@ export var Table = function Table(_ref) {
39
40
  props = _objectWithoutProperties(_ref, _excluded);
40
41
 
41
42
  return /*#__PURE__*/React.createElement("div", {
42
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["table-wrapper rounded text-grey-900 bg-white display-body"]))), className)
43
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["rounded text-grey-900 bg-white display-body"]))), className)
43
44
  }, /*#__PURE__*/React.createElement("div", {
44
45
  className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["overflow-x-auto"])))
45
46
  }, /*#__PURE__*/React.createElement("table", _extends({}, props, {
46
47
  className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["table ", " ", ""])), hasActions && "table-with-actions", highlight && "table-with-highlight")
47
- }))), footer && /*#__PURE__*/React.createElement("div", {
48
- className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["table-footer ", ""])), smallFooter && "table-footer-small")
48
+ }))), footer && /*#__PURE__*/React.createElement(Footer, {
49
+ size: smallFooter ? "small" : "default"
49
50
  }, footer));
50
51
  };
51
52
  export default Table;
@@ -0,0 +1,5 @@
1
+ export = tablePlugin;
2
+ /**
3
+ * @type {import('../../tailwind-types').TailwindPlugin}
4
+ */
5
+ declare const tablePlugin: import('../../tailwind-types').TailwindPlugin;
@@ -1,18 +1,12 @@
1
- import _rgba from "../styles/rgba";
2
- // @ts-check
3
- var rgba = _rgba; // purgecss whitelist: th, td, tr
1
+ // purgecss whitelist: th, td, tr
4
2
 
5
3
  /**
6
- * @type {import('../tailwind-types').TailwindPlugin}
4
+ * @type {import('../../tailwind-types').TailwindPlugin}
7
5
  */
8
-
9
6
  var tablePlugin = function tablePlugin(_ref) {
10
7
  var addComponents = _ref.addComponents,
11
8
  theme = _ref.theme;
12
9
  addComponents({
13
- ".table-wrapper": {
14
- border: "1px solid ".concat(theme("colors.grey.200"))
15
- },
16
10
  ".table": {
17
11
  width: "100%",
18
12
  borderCollapse: "collapse",
@@ -20,6 +14,9 @@ var tablePlugin = function tablePlugin(_ref) {
20
14
  "th, td": {
21
15
  padding: "14px 16px"
22
16
  },
17
+ thead: {
18
+ backgroundColor: theme("colors.grey.50")
19
+ },
23
20
  th: {
24
21
  borderBottom: "1px solid ".concat(theme("colors.grey.200")),
25
22
  fontWeight: "normal"
@@ -35,19 +32,8 @@ var tablePlugin = function tablePlugin(_ref) {
35
32
  },
36
33
  ".table-with-highlight": {
37
34
  "tr:hover td": {
38
- backgroundColor: rgba(theme("colors.grey.100"), 0.6)
35
+ backgroundColor: theme("colors.grey.50")
39
36
  }
40
- },
41
- ".table-footer": {
42
- backgroundColor: theme("colors.grey.100"),
43
- display: "flex",
44
- alignItems: "center",
45
- justifyContent: "center",
46
- color: theme("colors.grey.600"),
47
- padding: "12px 16px"
48
- },
49
- ".table-footer-small": {
50
- padding: "4px 16px"
51
37
  }
52
38
  });
53
39
  };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export declare type FooterSizes = "default" | "small";
3
+ export interface FooterProps {
4
+ size?: FooterSizes;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const Footer: ({ size, children }: FooterProps) => JSX.Element;
8
+ export default Footer;
@@ -0,0 +1,20 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+
3
+ var _templateObject, _templateObject2, _templateObject3;
4
+
5
+ import React from "react";
6
+ import cx from "classnames";
7
+ import stl from "../../../styles/helpers/satellitePrefixer";
8
+ export var Footer = function Footer(_ref) {
9
+ var _ref$size = _ref.size,
10
+ size = _ref$size === void 0 ? "default" : _ref$size,
11
+ children = _ref.children;
12
+ var SIZE_CLASSNAMES = {
13
+ "default": stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["py-3 px-4"]))),
14
+ small: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["py-1 px-4"])))
15
+ };
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: cx(stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-grey-100 border-t border-grey-200 text-grey-600 flex items-center justify-center"]))), SIZE_CLASSNAMES[size])
18
+ }, children);
19
+ };
20
+ export default Footer;
@@ -0,0 +1,2 @@
1
+ export * from "./Table";
2
+ export { default } from "./Table";
@@ -0,0 +1,2 @@
1
+ export * from "./Table";
2
+ export { default } from "./Table";
@@ -0,0 +1,3 @@
1
+ export * from "./Table";
2
+ export * from "./DataTable";
3
+ export { default } from "./Table";
@@ -0,0 +1,3 @@
1
+ export * from "./Table";
2
+ export * from "./DataTable";
3
+ export { default } from "./Table";
package/esm/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export * from "./Satellite";
34
34
  export * from "./Select";
35
35
  export * from "./Sidebar";
36
36
  export * from "./Switch";
37
- export * from "./Table";
37
+ export * from "./Tables";
38
38
  export * from "./Tabs";
39
39
  export * from "./Tag";
40
40
  export * from "./TextArea";
package/esm/index.js CHANGED
@@ -34,7 +34,7 @@ export * from "./Satellite";
34
34
  export * from "./Select";
35
35
  export * from "./Sidebar";
36
36
  export * from "./Switch";
37
- export * from "./Table";
37
+ export * from "./Tables";
38
38
  export * from "./Tabs";
39
39
  export * from "./Tag";
40
40
  export * from "./TextArea";
@@ -146,5 +146,5 @@ export default {
146
146
  borderWidth: ["responsive", "first"],
147
147
  visibility: ["responsive", "group-hover"]
148
148
  },
149
- plugins: [require("./base.tailwind"), typography.plugin, require("../FlexGrid/FlexGrid.tailwind"), require("../AutoComplete/AutoComplete.tailwind"), require("../Button/Button.tailwind"), require("../Card/Card.tailwind"), require("../Checkbox/Checkbox.tailwind"), require("../EmptyState/EmptyState.tailwind"), require("../Flag/Flag.tailwind"), require("../HelpUnderline/HelpUnderline.tailwind"), require("../Input/Input.tailwind"), require("../InstantSearch/InstantSearch.tailwind"), require("../Medallion/Medallion.tailwind"), require("../Modal/Modal.tailwind"), require("../ProgressBar/ProgressBar.tailwind"), require("../ProgressSpinner/ProgressSpinner.tailwind"), require("../RadioGroup/RadioButton.tailwind"), require("../RangeSlider/RangeSlider.tailwind"), require("../ScrollIndicator/ScrollIndicator.tailwind"), require("../Select/Select.tailwind"), require("../Sidebar/Sidebar.tailwind"), require("../Switch/Switch.tailwind"), require("../Tabs/Tabs.tailwind"), require("../Table/Table.tailwind"), require("../Tag/Tag.tailwind"), require("../TextArea/TextArea.tailwind"), require("../Toggle/Toggle.tailwind"), require("../Tooltip/Tooltip.tailwind"), require("../UserContent/UserContent.tailwind"), require("../DatePicker/DatePicker.tailwind")]
149
+ plugins: [require("./base.tailwind"), typography.plugin, require("../FlexGrid/FlexGrid.tailwind"), require("../AutoComplete/AutoComplete.tailwind"), require("../Button/Button.tailwind"), require("../Card/Card.tailwind"), require("../Checkbox/Checkbox.tailwind"), require("../EmptyState/EmptyState.tailwind"), require("../Flag/Flag.tailwind"), require("../HelpUnderline/HelpUnderline.tailwind"), require("../Input/Input.tailwind"), require("../InstantSearch/InstantSearch.tailwind"), require("../Medallion/Medallion.tailwind"), require("../Modal/Modal.tailwind"), require("../ProgressBar/ProgressBar.tailwind"), require("../ProgressSpinner/ProgressSpinner.tailwind"), require("../RadioGroup/RadioButton.tailwind"), require("../RangeSlider/RangeSlider.tailwind"), require("../ScrollIndicator/ScrollIndicator.tailwind"), require("../Select/Select.tailwind"), require("../Sidebar/Sidebar.tailwind"), require("../Switch/Switch.tailwind"), require("../Tabs/Tabs.tailwind"), require("../Tables/DataTable/DataTable.tailwind"), require("../Tables/Table/Table.tailwind"), require("../Tag/Tag.tailwind"), require("../TextArea/TextArea.tailwind"), require("../Toggle/Toggle.tailwind"), require("../Tooltip/Tooltip.tailwind"), require("../UserContent/UserContent.tailwind"), require("../DatePicker/DatePicker.tailwind")]
150
150
  };
@@ -4,4 +4,5 @@ export { range } from "./range";
4
4
  export { uniqBy } from "./uniqBy";
5
5
  export { uniqueId } from "./uniqueId";
6
6
  export { isNil } from "./isNil";
7
+ export { toSentenceCase } from "./toSentenceCase";
7
8
  export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
@@ -3,4 +3,5 @@ export { pluralize } from "./pluralize";
3
3
  export { range } from "./range";
4
4
  export { uniqBy } from "./uniqBy";
5
5
  export { uniqueId } from "./uniqueId";
6
- export { isNil } from "./isNil";
6
+ export { isNil } from "./isNil";
7
+ export { toSentenceCase } from "./toSentenceCase";
@@ -0,0 +1,3 @@
1
+ /** Converts PascalCase and camelCase to Sentence case */
2
+ export declare const toSentenceCase: (str: string) => string;
3
+ export default toSentenceCase;
@@ -0,0 +1,9 @@
1
+ import capitalize from "lodash/capitalize";
2
+ /** Converts PascalCase and camelCase to Sentence case */
3
+
4
+ export var toSentenceCase = function toSentenceCase(str) {
5
+ var firstChar = str.charAt(0);
6
+ var remainingChars = str.slice(1).replace(/\s/g, "").replace(/([A-Z]+)/g, "$1").replace(/([A-Z][a-z])/g, " $1").trim();
7
+ return capitalize("".concat(firstChar).concat(remainingChars));
8
+ };
9
+ export default toSentenceCase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "1.0.0-beta.120",
3
+ "version": "1.0.0-beta.124",
4
4
  "description": "Algolia design system React components",
5
5
  "scripts": {
6
6
  "clean": "del dist",
package/satellite.css CHANGED
@@ -2602,8 +2602,12 @@ html, body {
2602
2602
  outline: none;
2603
2603
  }
2604
2604
 
2605
- .stl-table-wrapper {
2606
- border: 1px solid #d6d6e7;
2605
+ .stl-datatable tr.stl-row-disabled td {
2606
+ cursor: not-allowed;
2607
+ }
2608
+
2609
+ .stl-datatable tr:not(.stl-row-disabled):hover td {
2610
+ background-color: #fcfcfd;
2607
2611
  }
2608
2612
 
2609
2613
  .stl-table {
@@ -2616,6 +2620,10 @@ html, body {
2616
2620
  padding: 14px 16px;
2617
2621
  }
2618
2622
 
2623
+ .stl-table thead {
2624
+ background-color: #fcfcfd;
2625
+ }
2626
+
2619
2627
  .stl-table th {
2620
2628
  border-bottom: 1px solid #d6d6e7;
2621
2629
  font-weight: normal;
@@ -2630,20 +2638,7 @@ html, body {
2630
2638
  }
2631
2639
 
2632
2640
  .stl-table-with-highlight tr:hover td {
2633
- background-color: rgba(245, 245, 250, 0.6);
2634
- }
2635
-
2636
- .stl-table-footer {
2637
- background-color: #f5f5fa;
2638
- display: flex;
2639
- align-items: center;
2640
- justify-content: center;
2641
- color: #5a5e9a;
2642
- padding: 12px 16px;
2643
- }
2644
-
2645
- .stl-table-footer-small {
2646
- padding: 4px 16px;
2641
+ background-color: #fcfcfd;
2647
2642
  }
2648
2643
 
2649
2644
  .stl-tag {
@@ -3104,6 +3099,10 @@ input:disabled ~ .stl-toggle {
3104
3099
  text-align: center;
3105
3100
  }
3106
3101
 
3102
+ .stl-date-picker .DayPicker-Months, .stl-date-range-picker .DayPicker-Months {
3103
+ align-items: start;
3104
+ }
3105
+
3107
3106
  .stl-date-picker .DayPicker-Day, .stl-date-range-picker .DayPicker-Day {
3108
3107
  border-radius: 3px;
3109
3108
  }
@@ -3122,8 +3121,9 @@ input:disabled ~ .stl-toggle {
3122
3121
  border-radius: 9999px;
3123
3122
  width: 32px;
3124
3123
  height: 32px;
3125
- left: 2px;
3126
- top: 4px;
3124
+ left: 50%;
3125
+ top: 50%;
3126
+ transform: translate(-50%, -50%);
3127
3127
  z-index: -1;
3128
3128
  }
3129
3129