@midas-ds/components 17.23.1 → 17.23.2
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/CHANGELOG.md +6 -0
- package/assets/table.css +1 -1
- package/chunks/{table-DCAJvtk-.js → table-CM0cx0UW.js} +11 -11
- package/index.js +2 -2
- package/package.json +1 -1
- package/table/Table.stories.d.ts +7 -0
- package/table/index.js +1 -1
package/CHANGELOG.md
CHANGED
package/assets/table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._table_1lyes_1{border-spacing:0;font-family:var(--midas-typography-font-family);font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20)}._table_1lyes_1>div{pointer-events:auto!important}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12{background-color:var(--midas-layer-accent-01-base);color:var(--midas-text-primary);padding:var(--midas-space-75) var(--midas-space-medium);text-align:left;font-weight:500}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-focus-visible]{outline:var(--midas-space-10) solid var(--midas-border-color-primary);outline-offset:-4px}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-allows-sorting]{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-allows-sorting] ._sortIndicator_1lyes_29{margin-left:var(--midas-space-xsmall);vertical-align:text-bottom;justify-content:center;align-items:center;display:inline-flex}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-allows-sorting] ._sortIconNeutral_1lyes_37{opacity:0;transition:opacity var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-in-out)}@media (prefers-reduced-motion){._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-allows-sorting] ._sortIconNeutral_1lyes_37{transition:none}}@media (hover:none){._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-allows-sorting] ._sortIconNeutral_1lyes_37{opacity:.5}}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12[data-allows-sorting]:hover ._sortIconNeutral_1lyes_37{opacity:.5}._table_1lyes_1 ._tableHeader_1lyes_11 ._column_1lyes_12 ._selection_1lyes_56{height:18px}._table_1lyes_1 ._row_1lyes_62{background-color:var(--midas-layer-01-base)}._table_1lyes_1 ._row_1lyes_62[data-focused]{outline:var(--midas-space-10) solid var(--midas-border-color-primary);outline-offset:-4px}._table_1lyes_1 ._row_1lyes_62{height:100%}._table_1lyes_1 ._row_1lyes_62[data-href],._table_1lyes_1 ._row_1lyes_62[data-react-aria-pressable]{cursor:pointer}._table_1lyes_1 ._row_1lyes_62[data-hovered]{background-color:var(--midas-layer-01-hover)}._table_1lyes_1 ._row_1lyes_62 ._cell_1lyes_81{border-bottom:1px var(--midas-border-color-subtle) solid;color:var(--midas-text-primary);padding:calc(var(--midas-space-75) - 1px) var(--midas-space-medium) var(--midas-space-75)}._table_1lyes_1 ._row_1lyes_62 ._cell_1lyes_81[data-focus-visible]{outline-offset:-4px;outline:var(--midas-space-10) solid var(--midas-border-color-primary)}._table_1lyes_1 ._row_1lyes_62 ._cell_1lyes_81 ._selection_1lyes_56{height:18px}._table_1lyes_1._narrow_1lyes_98{font-size:var(--midas-typography-font-size-10);line-height:var(--midas-typography-line-height-10)}._table_1lyes_1._narrow_1lyes_98 ._column_1lyes_12{padding:var(--midas-space-xsmall) var(--midas-space-medium);height:14px}._table_1lyes_1._narrow_1lyes_98 ._column_1lyes_12 ._selection_1lyes_56{height:14px}._table_1lyes_1._narrow_1lyes_98 ._cell_1lyes_81{padding:calc(var(--midas-space-xsmall) - 1px) var(--midas-space-medium) var(--midas-space-xsmall)}._table_1lyes_1._narrow_1lyes_98 ._cell_1lyes_81 ._selection_1lyes_56{height:16px}._table_1lyes_1._medium_1lyes_121:not(._narrow_1lyes_98) ._column_1lyes_12{padding:calc(var(--midas-space-60) - 1px) var(--midas-space-medium)}._table_1lyes_1._medium_1lyes_121:not(._narrow_1lyes_98) ._cell_1lyes_81{padding:calc(var(--midas-space-60) - 2px) var(--midas-space-medium) calc(var(--midas-space-60) - 1px)}._table_1lyes_1._striped_1lyes_132 ._row_1lyes_62:nth-child(odd):not([data-even=false]),._table_1lyes_1._striped_1lyes_132 ._row_1lyes_62[data-even=true]{background-color:#0000}:is(._table_1lyes_1._striped_1lyes_132 ._row_1lyes_62:nth-child(odd):not([data-even=false]),._table_1lyes_1._striped_1lyes_132 ._row_1lyes_62[data-even=true])[data-hovered]{background-color:var(--midas-layer-accent-01-hover)}
|
|
@@ -71,17 +71,17 @@ import '../assets/table.css';var h = t("arrow-down", [["path", {
|
|
|
71
71
|
key: "f4zoj3"
|
|
72
72
|
}]
|
|
73
73
|
]), y = {
|
|
74
|
-
table: "
|
|
75
|
-
tableHeader: "
|
|
76
|
-
column: "
|
|
77
|
-
sortIndicator: "
|
|
78
|
-
sortIconNeutral: "
|
|
79
|
-
selection: "
|
|
80
|
-
row: "
|
|
81
|
-
cell: "
|
|
82
|
-
narrow: "
|
|
83
|
-
medium: "
|
|
84
|
-
striped: "
|
|
74
|
+
table: "_table_1lyes_1",
|
|
75
|
+
tableHeader: "_tableHeader_1lyes_11",
|
|
76
|
+
column: "_column_1lyes_12",
|
|
77
|
+
sortIndicator: "_sortIndicator_1lyes_29",
|
|
78
|
+
sortIconNeutral: "_sortIconNeutral_1lyes_37",
|
|
79
|
+
selection: "_selection_1lyes_56",
|
|
80
|
+
row: "_row_1lyes_62",
|
|
81
|
+
cell: "_cell_1lyes_81",
|
|
82
|
+
narrow: "_narrow_1lyes_98",
|
|
83
|
+
medium: "_medium_1lyes_121",
|
|
84
|
+
striped: "_striped_1lyes_132"
|
|
85
85
|
}, b = ({ size: t = "large", striped: n = !1, className: r, ...i }) => /* @__PURE__ */ p(c, {
|
|
86
86
|
className: e(y.table, r, {
|
|
87
87
|
[y.medium]: t === "medium",
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { t as n } from "./chunks/clsx-BtlV5Vo3.js";
|
|
|
5
5
|
import { t as r } from "./chunks/spinner-C3WiZYld.js";
|
|
6
6
|
import { a as i, i as a, n as o, r as s, t as c } from "./chunks/layout-DibnX6Za.js";
|
|
7
7
|
import { t as l } from "./chunks/link-CZNuhFX6.js";
|
|
8
|
-
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/table-
|
|
8
|
+
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/table-CM0cx0UW.js";
|
|
9
9
|
import { t as g } from "./chunks/link-button-ZsK6UGko.js";
|
|
10
10
|
import { n as _, t as v } from "./chunks/date-picker-D7zsIEas.js";
|
|
11
11
|
import { n as y, t as b } from "./chunks/calendar-C0rlcHfr.js";
|
|
@@ -59,7 +59,7 @@ var $e = {
|
|
|
59
59
|
description: "Midas Components",
|
|
60
60
|
homepage: "https://designsystem.migrationsverket.se/",
|
|
61
61
|
license: "CC0-1.0",
|
|
62
|
-
version: "17.23.
|
|
62
|
+
version: "17.23.2",
|
|
63
63
|
module: "./index.js",
|
|
64
64
|
type: "module",
|
|
65
65
|
main: "./index.js",
|
package/package.json
CHANGED
package/table/Table.stories.d.ts
CHANGED
|
@@ -20,6 +20,13 @@ declare const _default: {
|
|
|
20
20
|
size: {
|
|
21
21
|
control: false;
|
|
22
22
|
};
|
|
23
|
+
selectionMode: {
|
|
24
|
+
options: string[];
|
|
25
|
+
control: {
|
|
26
|
+
type: "radio";
|
|
27
|
+
};
|
|
28
|
+
defaultValue: string;
|
|
29
|
+
};
|
|
23
30
|
};
|
|
24
31
|
render: (args: import('./Table').TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
32
|
};
|
package/table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/table-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/table-CM0cx0UW.js";
|
|
2
2
|
export { a as Cell, n as Column, i as Row, t as Table, e as TableBody, r as TableHeader };
|