@umami/react-zen 0.96.0 → 0.97.0
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/index.css +25 -17
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/styles.css +25 -17
package/dist/index.css
CHANGED
|
@@ -3714,59 +3714,67 @@ body a.Button_button__NDYwM {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
|
|
3716
3716
|
/* virtual-css:css:eedba9fc7e3d8030bbd07387da49f358 */
|
|
3717
|
-
.
|
|
3717
|
+
.Table_table__YjllN {
|
|
3718
3718
|
font-size: var(--font-size);
|
|
3719
3719
|
color: var(--font-color);
|
|
3720
3720
|
border-collapse: collapse;
|
|
3721
3721
|
width: 100%;
|
|
3722
3722
|
position: relative;
|
|
3723
3723
|
}
|
|
3724
|
-
.
|
|
3725
|
-
.
|
|
3724
|
+
.Table_table__YjllN th,
|
|
3725
|
+
.Table_table__YjllN td {
|
|
3726
3726
|
min-width: 0;
|
|
3727
3727
|
}
|
|
3728
|
-
.
|
|
3729
|
-
.
|
|
3728
|
+
.Table_header__NmE0Y,
|
|
3729
|
+
.Table_body__ZWYwN {
|
|
3730
3730
|
display: contents;
|
|
3731
3731
|
}
|
|
3732
|
-
.
|
|
3732
|
+
.Table_header__NmE0Y {
|
|
3733
3733
|
display: grid;
|
|
3734
3734
|
border-bottom: 1px solid var(--border-color);
|
|
3735
3735
|
}
|
|
3736
|
-
.
|
|
3736
|
+
.Table_header__NmE0Y tr {
|
|
3737
3737
|
display: contents;
|
|
3738
3738
|
}
|
|
3739
|
-
.
|
|
3739
|
+
.Table_row__Y2M0Y {
|
|
3740
3740
|
display: grid;
|
|
3741
3741
|
border-bottom: 1px solid color-mix(in srgb, var(--border-color), 50% transparent);
|
|
3742
3742
|
}
|
|
3743
|
-
.
|
|
3744
|
-
.
|
|
3743
|
+
.Table_header__NmE0Y .Table_column__ZGY2M:first-child,
|
|
3744
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM:first-child {
|
|
3745
3745
|
padding-left: 0;
|
|
3746
3746
|
}
|
|
3747
|
-
.
|
|
3748
|
-
.
|
|
3747
|
+
.Table_header__NmE0Y .Table_column__ZGY2M:last-child,
|
|
3748
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM:last-child {
|
|
3749
3749
|
padding-right: 0;
|
|
3750
3750
|
}
|
|
3751
|
-
.
|
|
3751
|
+
.Table_column__ZGY2M {
|
|
3752
3752
|
display: flex;
|
|
3753
3753
|
padding: var(--padding);
|
|
3754
3754
|
text-align: left;
|
|
3755
3755
|
font-weight: 700;
|
|
3756
3756
|
flex: 1;
|
|
3757
3757
|
}
|
|
3758
|
-
.
|
|
3758
|
+
.Table_cell__MmZjM {
|
|
3759
3759
|
display: flex;
|
|
3760
3760
|
padding: var(--padding);
|
|
3761
3761
|
flex: 1;
|
|
3762
3762
|
}
|
|
3763
|
-
.
|
|
3763
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM a {
|
|
3764
|
+
font-weight: 500;
|
|
3765
|
+
text-decoration: underline var(--base-color-6);
|
|
3766
|
+
text-underline-offset: 4px;
|
|
3767
|
+
}
|
|
3768
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM a:hover {
|
|
3769
|
+
text-decoration: underline var(--base-color-10);
|
|
3770
|
+
}
|
|
3771
|
+
.Table_start__NGFiN {
|
|
3764
3772
|
justify-content: flex-start;
|
|
3765
3773
|
}
|
|
3766
|
-
.
|
|
3774
|
+
.Table_center__NzFjM {
|
|
3767
3775
|
justify-content: center;
|
|
3768
3776
|
}
|
|
3769
|
-
.
|
|
3777
|
+
.Table_end__NmQyY {
|
|
3770
3778
|
justify-content: flex-end;
|
|
3771
3779
|
}
|
|
3772
3780
|
|
package/dist/index.js
CHANGED
|
@@ -30290,7 +30290,7 @@ var import_react179 = require("react");
|
|
|
30290
30290
|
var import_classnames23 = __toESM(require_classnames());
|
|
30291
30291
|
|
|
30292
30292
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
30293
|
-
var Table_default = { "table": "
|
|
30293
|
+
var Table_default = { "table": "Table_table__YjllN", "header": "Table_header__NmE0Y", "body": "Table_body__ZWYwN", "row": "Table_row__Y2M0Y", "column": "Table_column__ZGY2M", "cell": "Table_cell__MmZjM", "start": "Table_start__NGFiN", "center": "Table_center__NzFjM", "end": "Table_end__NmQyY" };
|
|
30294
30294
|
|
|
30295
30295
|
// src/components/Table.tsx
|
|
30296
30296
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
@@ -30345,7 +30345,7 @@ var DataTable_default = { "datatable": "DataTable_datatable__ZmQ3Z", "cell": "Da
|
|
|
30345
30345
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
30346
30346
|
var import_react180 = require("react");
|
|
30347
30347
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30348
|
-
const items = data.length && data?.[0]?.id === void 0 ? data.map((
|
|
30348
|
+
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
30349
30349
|
const widths = [];
|
|
30350
30350
|
const columns = import_react179.Children.map(children, (child) => {
|
|
30351
30351
|
widths.push(child?.props?.width || "1fr");
|
package/dist/index.mjs
CHANGED
|
@@ -30179,7 +30179,7 @@ import { Children as Children2, createElement as createElement5 } from "react";
|
|
|
30179
30179
|
var import_classnames23 = __toESM(require_classnames());
|
|
30180
30180
|
|
|
30181
30181
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
30182
|
-
var Table_default = { "table": "
|
|
30182
|
+
var Table_default = { "table": "Table_table__YjllN", "header": "Table_header__NmE0Y", "body": "Table_body__ZWYwN", "row": "Table_row__Y2M0Y", "column": "Table_column__ZGY2M", "cell": "Table_cell__MmZjM", "start": "Table_start__NGFiN", "center": "Table_center__NzFjM", "end": "Table_end__NmQyY" };
|
|
30183
30183
|
|
|
30184
30184
|
// src/components/Table.tsx
|
|
30185
30185
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
@@ -30234,7 +30234,7 @@ var DataTable_default = { "datatable": "DataTable_datatable__ZmQ3Z", "cell": "Da
|
|
|
30234
30234
|
import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
30235
30235
|
import { createElement as createElement6 } from "react";
|
|
30236
30236
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30237
|
-
const items = data.length && data?.[0]?.id === void 0 ? data.map((
|
|
30237
|
+
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
30238
30238
|
const widths = [];
|
|
30239
30239
|
const columns = Children2.map(children, (child) => {
|
|
30240
30240
|
widths.push(child?.props?.width || "1fr");
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -4030,59 +4030,67 @@ body a.Button_button__NDYwM {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
|
|
4032
4032
|
/* virtual-css:css:eedba9fc7e3d8030bbd07387da49f358 */
|
|
4033
|
-
.
|
|
4033
|
+
.Table_table__YjllN {
|
|
4034
4034
|
font-size: var(--font-size);
|
|
4035
4035
|
color: var(--font-color);
|
|
4036
4036
|
border-collapse: collapse;
|
|
4037
4037
|
width: 100%;
|
|
4038
4038
|
position: relative;
|
|
4039
4039
|
}
|
|
4040
|
-
.
|
|
4041
|
-
.
|
|
4040
|
+
.Table_table__YjllN th,
|
|
4041
|
+
.Table_table__YjllN td {
|
|
4042
4042
|
min-width: 0;
|
|
4043
4043
|
}
|
|
4044
|
-
.
|
|
4045
|
-
.
|
|
4044
|
+
.Table_header__NmE0Y,
|
|
4045
|
+
.Table_body__ZWYwN {
|
|
4046
4046
|
display: contents;
|
|
4047
4047
|
}
|
|
4048
|
-
.
|
|
4048
|
+
.Table_header__NmE0Y {
|
|
4049
4049
|
display: grid;
|
|
4050
4050
|
border-bottom: 1px solid var(--border-color);
|
|
4051
4051
|
}
|
|
4052
|
-
.
|
|
4052
|
+
.Table_header__NmE0Y tr {
|
|
4053
4053
|
display: contents;
|
|
4054
4054
|
}
|
|
4055
|
-
.
|
|
4055
|
+
.Table_row__Y2M0Y {
|
|
4056
4056
|
display: grid;
|
|
4057
4057
|
border-bottom: 1px solid color-mix(in srgb, var(--border-color), 50% transparent);
|
|
4058
4058
|
}
|
|
4059
|
-
.
|
|
4060
|
-
.
|
|
4059
|
+
.Table_header__NmE0Y .Table_column__ZGY2M:first-child,
|
|
4060
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM:first-child {
|
|
4061
4061
|
padding-left: 0;
|
|
4062
4062
|
}
|
|
4063
|
-
.
|
|
4064
|
-
.
|
|
4063
|
+
.Table_header__NmE0Y .Table_column__ZGY2M:last-child,
|
|
4064
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM:last-child {
|
|
4065
4065
|
padding-right: 0;
|
|
4066
4066
|
}
|
|
4067
|
-
.
|
|
4067
|
+
.Table_column__ZGY2M {
|
|
4068
4068
|
display: flex;
|
|
4069
4069
|
padding: var(--padding);
|
|
4070
4070
|
text-align: left;
|
|
4071
4071
|
font-weight: 700;
|
|
4072
4072
|
flex: 1;
|
|
4073
4073
|
}
|
|
4074
|
-
.
|
|
4074
|
+
.Table_cell__MmZjM {
|
|
4075
4075
|
display: flex;
|
|
4076
4076
|
padding: var(--padding);
|
|
4077
4077
|
flex: 1;
|
|
4078
4078
|
}
|
|
4079
|
-
.
|
|
4079
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM a {
|
|
4080
|
+
font-weight: 500;
|
|
4081
|
+
text-decoration: underline var(--base-color-6);
|
|
4082
|
+
text-underline-offset: 4px;
|
|
4083
|
+
}
|
|
4084
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM a:hover {
|
|
4085
|
+
text-decoration: underline var(--base-color-10);
|
|
4086
|
+
}
|
|
4087
|
+
.Table_start__NGFiN {
|
|
4080
4088
|
justify-content: flex-start;
|
|
4081
4089
|
}
|
|
4082
|
-
.
|
|
4090
|
+
.Table_center__NzFjM {
|
|
4083
4091
|
justify-content: center;
|
|
4084
4092
|
}
|
|
4085
|
-
.
|
|
4093
|
+
.Table_end__NmQyY {
|
|
4086
4094
|
justify-content: flex-end;
|
|
4087
4095
|
}
|
|
4088
4096
|
|