@mattilsynet/design 2.2.29 → 2.2.31
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/mtds/alert/alert.js +8 -9
- package/mtds/alert/alert.js.map +1 -1
- package/mtds/analytics/analytics.js +104 -165
- package/mtds/analytics/analytics.js.map +1 -1
- package/mtds/app/app-observer.js +28 -74
- package/mtds/app/app-observer.js.map +1 -1
- package/mtds/app/app-toggle.js +10 -4
- package/mtds/app/app-toggle.js.map +1 -1
- package/mtds/app/app-toggle2.js +26 -16
- package/mtds/app/app-toggle2.js.map +1 -1
- package/mtds/app/app.js +32 -36
- package/mtds/app/app.js.map +1 -1
- package/mtds/atlas/atlas-element.d.ts +27 -0
- package/mtds/atlas/atlas-element.js +63 -84
- package/mtds/atlas/atlas-element.js.map +1 -1
- package/mtds/atlas/atlas-marker.js +28 -48
- package/mtds/atlas/atlas-marker.js.map +1 -1
- package/mtds/atlas/atlas-matgeo.d.ts +3 -8
- package/mtds/atlas/atlas-matgeo.js +36 -66
- package/mtds/atlas/atlas-matgeo.js.map +1 -1
- package/mtds/atlas/atlas-wms.js +11 -21
- package/mtds/atlas/atlas-wms.js.map +1 -1
- package/mtds/atlas/atlas.css.js +5 -4
- package/mtds/atlas/atlas.css.js.map +1 -1
- package/mtds/atlas/atlas.js +23 -23
- package/mtds/atlas/atlas.js.map +1 -1
- package/mtds/atlas/atlas.stories.d.ts +1 -0
- package/mtds/atlas/cluster.js +697 -1576
- package/mtds/atlas/cluster.js.map +1 -1
- package/mtds/atlas.iife.js +7 -6
- package/mtds/atlas.js +11 -10
- package/mtds/avatar/avatar.js +8 -8
- package/mtds/avatar/avatar.js.map +1 -1
- package/mtds/badge/badge.js +7 -7
- package/mtds/badge/badge.js.map +1 -1
- package/mtds/breadcrumbs/breadcrumbs-observer.js +9 -10
- package/mtds/breadcrumbs/breadcrumbs-observer.js.map +1 -1
- package/mtds/breadcrumbs/breadcrumbs.js +13 -14
- package/mtds/breadcrumbs/breadcrumbs.js.map +1 -1
- package/mtds/button/button.js +14 -16
- package/mtds/button/button.js.map +1 -1
- package/mtds/card/card.js +12 -14
- package/mtds/card/card.js.map +1 -1
- package/mtds/chart/chart-axis.js +15 -27
- package/mtds/chart/chart-axis.js.map +1 -1
- package/mtds/chart/chart-bars.js +13 -15
- package/mtds/chart/chart-bars.js.map +1 -1
- package/mtds/chart/chart-element.js +48 -83
- package/mtds/chart/chart-element.js.map +1 -1
- package/mtds/chart/chart-lines.js +32 -54
- package/mtds/chart/chart-lines.js.map +1 -1
- package/mtds/chart/chart-pies.js +14 -34
- package/mtds/chart/chart-pies.js.map +1 -1
- package/mtds/chart/chart.css.js +2 -2
- package/mtds/chart/chart.css.js.map +1 -1
- package/mtds/chart/chart.js +12 -12
- package/mtds/chart/chart.js.map +1 -1
- package/mtds/chip/chip.js +8 -8
- package/mtds/chip/chip.js.map +1 -1
- package/mtds/details/details.js +12 -14
- package/mtds/details/details.js.map +1 -1
- package/mtds/dialog/dialog-observer.js +22 -35
- package/mtds/dialog/dialog-observer.js.map +1 -1
- package/mtds/dialog/dialog.js +12 -12
- package/mtds/dialog/dialog.js.map +1 -1
- package/mtds/divider/divider.js +10 -10
- package/mtds/divider/divider.js.map +1 -1
- package/mtds/errorsummary/errorsummary-observer.js +8 -11
- package/mtds/errorsummary/errorsummary-observer.js.map +1 -1
- package/mtds/errorsummary/errorsummary.js +11 -11
- package/mtds/errorsummary/errorsummary.js.map +1 -1
- package/mtds/external/@turf/boolean-point-in-polygon/dist/esm/index.js +19 -27
- package/mtds/external/@turf/boolean-point-in-polygon/dist/esm/index.js.map +1 -1
- package/mtds/external/@turf/helpers/dist/esm/index.js +16 -29
- package/mtds/external/@turf/helpers/dist/esm/index.js.map +1 -1
- package/mtds/external/@turf/invariant/dist/esm/index.js +13 -20
- package/mtds/external/@turf/invariant/dist/esm/index.js.map +1 -1
- package/mtds/external/leaflet/dist/leaflet-src.js +3099 -6007
- package/mtds/external/leaflet/dist/leaflet-src.js.map +1 -1
- package/mtds/external/leaflet/dist/leaflet.css.js +2 -2
- package/mtds/external/leaflet/dist/leaflet.css.js.map +1 -1
- package/mtds/external/point-in-polygon-hao/dist/esm/index.js +16 -46
- package/mtds/external/point-in-polygon-hao/dist/esm/index.js.map +1 -1
- package/mtds/external/robust-predicates/esm/orient2d.js +19 -163
- package/mtds/external/robust-predicates/esm/orient2d.js.map +1 -1
- package/mtds/external/robust-predicates/esm/util.js +25 -85
- package/mtds/external/robust-predicates/esm/util.js.map +1 -1
- package/mtds/field/field-observer.js +53 -101
- package/mtds/field/field-observer.js.map +1 -1
- package/mtds/field/field.js +145 -177
- package/mtds/field/field.js.map +1 -1
- package/mtds/fieldset/fieldset-observer.js +14 -24
- package/mtds/fieldset/fieldset-observer.js.map +1 -1
- package/mtds/fieldset/fieldset.js +20 -23
- package/mtds/fieldset/fieldset.js.map +1 -1
- package/mtds/fileupload/fileupload.js +8 -9
- package/mtds/fileupload/fileupload.js.map +1 -1
- package/mtds/helptext/helptext.js +15 -15
- package/mtds/helptext/helptext.js.map +1 -1
- package/mtds/illustrations/index.json +2 -2
- package/mtds/index.d.ts +1 -0
- package/mtds/index.iife.js +165 -15
- package/mtds/index.js +29 -26
- package/mtds/index.js.map +1 -1
- package/mtds/input/input.js +28 -30
- package/mtds/input/input.js.map +1 -1
- package/mtds/law/law-helper.js +77 -143
- package/mtds/law/law-helper.js.map +1 -1
- package/mtds/law/law.js +6 -6
- package/mtds/law/law.js.map +1 -1
- package/mtds/layout/layout.js +10 -13
- package/mtds/layout/layout.js.map +1 -1
- package/mtds/link/link.js +7 -8
- package/mtds/link/link.js.map +1 -1
- package/mtds/logo/logo-observer.js +12 -18
- package/mtds/logo/logo-observer.js.map +1 -1
- package/mtds/logo/logo.js +8 -8
- package/mtds/logo/logo.js.map +1 -1
- package/mtds/package.json.js +2 -2
- package/mtds/pagination/pagination-helper.js +11 -17
- package/mtds/pagination/pagination-helper.js.map +1 -1
- package/mtds/pagination/pagination.js +30 -30
- package/mtds/pagination/pagination.js.map +1 -1
- package/mtds/popover/popover-observer.js +33 -45
- package/mtds/popover/popover-observer.js.map +1 -1
- package/mtds/popover/popover.js +12 -13
- package/mtds/popover/popover.js.map +1 -1
- package/mtds/print/print.css.js +155 -0
- package/mtds/print/print.css.js.map +1 -0
- package/mtds/print/print.stories.d.ts +15 -0
- package/mtds/progress/progress.js +8 -8
- package/mtds/progress/progress.js.map +1 -1
- package/mtds/react-atlas.js +13 -12
- package/mtds/react.js +80 -80
- package/mtds/skeleton/skeleton.js +8 -8
- package/mtds/skeleton/skeleton.js.map +1 -1
- package/mtds/spinner/spinner.js +8 -8
- package/mtds/spinner/spinner.js.map +1 -1
- package/mtds/steps/steps.js +7 -7
- package/mtds/steps/steps.js.map +1 -1
- package/mtds/styles.css +1 -4605
- package/mtds/styles.json +43 -43
- package/mtds/styles.module.css.js +112 -167
- package/mtds/styles.module.css.js.map +1 -1
- package/mtds/table/table-observer.js +19 -22
- package/mtds/table/table-observer.js.map +1 -1
- package/mtds/table/table.d.ts +7 -0
- package/mtds/table/table.js +43 -18
- package/mtds/table/table.js.map +1 -1
- package/mtds/tabs/tabs.js +21 -25
- package/mtds/tabs/tabs.js.map +1 -1
- package/mtds/tag/tag.js +8 -8
- package/mtds/tag/tag.js.map +1 -1
- package/mtds/tailwind.css +4 -24
- package/mtds/toast/toast-helper.js +20 -35
- package/mtds/toast/toast-helper.js.map +1 -1
- package/mtds/toast/toast-observer.js +15 -30
- package/mtds/toast/toast-observer.js.map +1 -1
- package/mtds/toast/toast.js +37 -45
- package/mtds/toast/toast.js.map +1 -1
- package/mtds/togglegroup/togglegroup-observer.js +10 -15
- package/mtds/togglegroup/togglegroup-observer.js.map +1 -1
- package/mtds/togglegroup/togglegroup.js +24 -21
- package/mtds/togglegroup/togglegroup.js.map +1 -1
- package/mtds/tooltip/tooltip-observer.js +32 -48
- package/mtds/tooltip/tooltip-observer.js.map +1 -1
- package/mtds/typography/typography.js +19 -28
- package/mtds/typography/typography.js.map +1 -1
- package/mtds/utils.js +89 -129
- package/mtds/utils.js.map +1 -1
- package/mtds/validation/validation-observer.js +25 -31
- package/mtds/validation/validation-observer.js.map +1 -1
- package/mtds/validation/validation.js +12 -12
- package/mtds/validation/validation.js.map +1 -1
- package/package.json +13 -12
package/mtds/styles.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
"alert": "
|
|
3
|
-
"app": "
|
|
4
|
-
"sticky": "
|
|
5
|
-
"avatar": "
|
|
6
|
-
"badge": "
|
|
7
|
-
"breadcrumbs": "
|
|
8
|
-
"button": "
|
|
9
|
-
"card": "
|
|
10
|
-
"group": "
|
|
11
|
-
"chip": "
|
|
12
|
-
"details": "
|
|
13
|
-
"dialog": "
|
|
14
|
-
"divider": "
|
|
15
|
-
"errorsummary": "
|
|
16
|
-
"field": "
|
|
17
|
-
"affixes": "
|
|
18
|
-
"fieldset": "
|
|
19
|
-
"fileupload": "
|
|
20
|
-
"helptext": "
|
|
21
|
-
"input": "
|
|
22
|
-
"law": "
|
|
23
|
-
"grid": "
|
|
24
|
-
"flex": "
|
|
25
|
-
"link": "
|
|
26
|
-
"logo": "
|
|
27
|
-
"pagination": "
|
|
28
|
-
"popover": "
|
|
29
|
-
"progress": "
|
|
30
|
-
"skeleton": "
|
|
31
|
-
"spinner": "
|
|
32
|
-
"steps": "
|
|
33
|
-
"table": "
|
|
34
|
-
"tabs": "
|
|
35
|
-
"tag": "
|
|
36
|
-
"toast": "
|
|
37
|
-
"togglegroup": "
|
|
38
|
-
"heading": "
|
|
39
|
-
"ingress": "
|
|
40
|
-
"muted": "
|
|
41
|
-
"info": "
|
|
42
|
-
"prose": "
|
|
43
|
-
"validation": "
|
|
44
|
-
"body": "
|
|
2
|
+
"alert": "_alert_q3oeq_1 _ds-alert_62kyp_3",
|
|
3
|
+
"app": "_app_q3oeq_1",
|
|
4
|
+
"sticky": "_sticky_q3oeq_1",
|
|
5
|
+
"avatar": "_avatar_q3oeq_1 _ds-avatar_62kyp_1",
|
|
6
|
+
"badge": "_badge_q3oeq_1",
|
|
7
|
+
"breadcrumbs": "_breadcrumbs_q3oeq_1 _ds-breadcrumbs_62kyp_5",
|
|
8
|
+
"button": "_button_q3oeq_1 _ds-button_62kyp_1",
|
|
9
|
+
"card": "_card_q3oeq_1",
|
|
10
|
+
"group": "_group_q3oeq_1",
|
|
11
|
+
"chip": "_chip_q3oeq_1 _ds-chip_62kyp_5",
|
|
12
|
+
"details": "_details_q3oeq_1 _ds-details_62kyp_3",
|
|
13
|
+
"dialog": "_dialog_q3oeq_1 _ds-dialog_62kyp_5",
|
|
14
|
+
"divider": "_divider_q3oeq_1",
|
|
15
|
+
"errorsummary": "_errorsummary_q3oeq_1 _ds-error-summary_62kyp_5",
|
|
16
|
+
"field": "_field_q3oeq_1 _ds-field_62kyp_1",
|
|
17
|
+
"affixes": "_affixes_q3oeq_1 _ds-field-affixes_62kyp_3",
|
|
18
|
+
"fieldset": "_fieldset_q3oeq_1 _ds-fieldset_62kyp_3",
|
|
19
|
+
"fileupload": "_fileupload_q3oeq_1",
|
|
20
|
+
"helptext": "_helptext_q3oeq_1 _ds-focus_62kyp_1",
|
|
21
|
+
"input": "_input_q3oeq_1 _ds-input_62kyp_1",
|
|
22
|
+
"law": "_law_q3oeq_1",
|
|
23
|
+
"grid": "_grid_q3oeq_1",
|
|
24
|
+
"flex": "_flex_q3oeq_1",
|
|
25
|
+
"link": "_link_q3oeq_1",
|
|
26
|
+
"logo": "_logo_q3oeq_1",
|
|
27
|
+
"pagination": "_pagination_q3oeq_1 _ds-pagination_62kyp_5",
|
|
28
|
+
"popover": "_popover_q3oeq_1",
|
|
29
|
+
"progress": "_progress_q3oeq_1",
|
|
30
|
+
"skeleton": "_skeleton_q3oeq_1 _ds-skeleton_62kyp_5",
|
|
31
|
+
"spinner": "_spinner_q3oeq_1",
|
|
32
|
+
"steps": "_steps_q3oeq_1",
|
|
33
|
+
"table": "_table_q3oeq_1 _ds-table_62kyp_5",
|
|
34
|
+
"tabs": "_tabs_q3oeq_1 _ds-tabs_62kyp_5",
|
|
35
|
+
"tag": "_tag_q3oeq_1 _ds-tag_62kyp_5",
|
|
36
|
+
"toast": "_toast_q3oeq_1",
|
|
37
|
+
"togglegroup": "_togglegroup_q3oeq_1",
|
|
38
|
+
"heading": "_heading_q3oeq_1 _ds-heading_62kyp_1",
|
|
39
|
+
"ingress": "_ingress_q3oeq_1",
|
|
40
|
+
"muted": "_muted_q3oeq_1",
|
|
41
|
+
"info": "_info_q3oeq_1",
|
|
42
|
+
"prose": "_prose_q3oeq_1",
|
|
43
|
+
"validation": "_validation_q3oeq_1 _ds-validation-message_62kyp_1",
|
|
44
|
+
"body": "_body_q3oeq_183"
|
|
45
45
|
}
|
|
@@ -1,171 +1,116 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
alert,
|
|
58
|
-
app,
|
|
59
|
-
sticky,
|
|
60
|
-
avatar,
|
|
61
|
-
badge,
|
|
62
|
-
breadcrumbs,
|
|
63
|
-
button,
|
|
64
|
-
card,
|
|
65
|
-
group,
|
|
66
|
-
chip,
|
|
67
|
-
details,
|
|
68
|
-
dialog,
|
|
69
|
-
_drawer,
|
|
70
|
-
divider,
|
|
71
|
-
errorsummary,
|
|
72
|
-
_errorsummary,
|
|
73
|
-
field,
|
|
74
|
-
_datalist,
|
|
75
|
-
affixes,
|
|
76
|
-
fieldset,
|
|
77
|
-
fileupload,
|
|
78
|
-
helptext,
|
|
79
|
-
input,
|
|
80
|
-
law,
|
|
81
|
-
grid,
|
|
82
|
-
flex,
|
|
83
|
-
link,
|
|
84
|
-
logo,
|
|
85
|
-
pagination,
|
|
86
|
-
popover,
|
|
87
|
-
progress,
|
|
88
|
-
_indeterminate,
|
|
89
|
-
skeleton,
|
|
90
|
-
_skeleton,
|
|
91
|
-
spinner,
|
|
92
|
-
steps,
|
|
93
|
-
table,
|
|
94
|
-
_scrollShadow,
|
|
95
|
-
tabs,
|
|
96
|
-
_scrollMask,
|
|
97
|
-
tag,
|
|
98
|
-
toast,
|
|
99
|
-
_toastClose,
|
|
100
|
-
_toastOpen,
|
|
101
|
-
_toastTimeout,
|
|
102
|
-
togglegroup,
|
|
103
|
-
_tooltip,
|
|
104
|
-
heading,
|
|
105
|
-
ingress,
|
|
106
|
-
muted,
|
|
107
|
-
info,
|
|
108
|
-
prose,
|
|
109
|
-
validation,
|
|
110
|
-
body,
|
|
111
|
-
_checked
|
|
1
|
+
const _ = "_alert_q3oeq_1 _ds-alert_62kyp_3", o = "_app_q3oeq_1", e = "_sticky_q3oeq_1", t = "_avatar_q3oeq_1 _ds-avatar_62kyp_1", s = "_badge_q3oeq_1", a = "_breadcrumbs_q3oeq_1 _ds-breadcrumbs_62kyp_5", n = "_button_q3oeq_1 _ds-button_62kyp_1", q = "_card_q3oeq_1", r = "_group_q3oeq_1", i = "_chip_q3oeq_1 _ds-chip_62kyp_5", d = "_details_q3oeq_1 _ds-details_62kyp_3", c = "_dialog_q3oeq_1 _ds-dialog_62kyp_5", l = "__drawer_q3oeq_1", p = "_divider_q3oeq_1", g = "_errorsummary_q3oeq_1 _ds-error-summary_62kyp_5", k = "__errorsummary_q3oeq_1", u = "_field_q3oeq_1 _ds-field_62kyp_1", y = "__datalist_q3oeq_1", f = "_affixes_q3oeq_1 _ds-field-affixes_62kyp_3", m = "_fieldset_q3oeq_1 _ds-fieldset_62kyp_3", b = "_fileupload_q3oeq_1", h = "_helptext_q3oeq_1 _ds-focus_62kyp_1", v = "_input_q3oeq_1 _ds-input_62kyp_1", x = "_law_q3oeq_1", w = "_grid_q3oeq_1", C = "_flex_q3oeq_1", M = "_link_q3oeq_1", O = "_logo_q3oeq_1", S = "_pagination_q3oeq_1 _ds-pagination_62kyp_5", T = "_popover_q3oeq_1", j = "_progress_q3oeq_1", z = "__indeterminate_q3oeq_1", A = "_skeleton_q3oeq_1 _ds-skeleton_62kyp_5", B = "__skeleton_q3oeq_1", D = "_spinner_q3oeq_1", E = "_steps_q3oeq_1", F = "_table_q3oeq_1 _ds-table_62kyp_5", G = "__scrollShadow_q3oeq_1", H = "_tabs_q3oeq_1 _ds-tabs_62kyp_5", I = "__scrollMask_q3oeq_1", J = "_tag_q3oeq_1 _ds-tag_62kyp_5", K = "_toast_q3oeq_1", L = "__toastClose_q3oeq_1", N = "__toastOpen_q3oeq_1", P = "__toastTimeout_q3oeq_1", Q = "_togglegroup_q3oeq_1", R = "__tooltip_q3oeq_1", U = "_heading_q3oeq_1 _ds-heading_62kyp_1", V = "_ingress_q3oeq_1", W = "_muted_q3oeq_1", X = "_info_q3oeq_1", Y = "_prose_q3oeq_1", Z = "_validation_q3oeq_1 _ds-validation-message_62kyp_1", $ = "_body_q3oeq_183", __ = "__checked_q3oeq_1", o_ = {
|
|
2
|
+
alert: _,
|
|
3
|
+
app: o,
|
|
4
|
+
sticky: e,
|
|
5
|
+
avatar: t,
|
|
6
|
+
badge: s,
|
|
7
|
+
breadcrumbs: a,
|
|
8
|
+
button: n,
|
|
9
|
+
card: q,
|
|
10
|
+
group: r,
|
|
11
|
+
chip: i,
|
|
12
|
+
details: d,
|
|
13
|
+
dialog: c,
|
|
14
|
+
_drawer: l,
|
|
15
|
+
divider: p,
|
|
16
|
+
errorsummary: g,
|
|
17
|
+
_errorsummary: k,
|
|
18
|
+
field: u,
|
|
19
|
+
_datalist: y,
|
|
20
|
+
affixes: f,
|
|
21
|
+
fieldset: m,
|
|
22
|
+
fileupload: b,
|
|
23
|
+
helptext: h,
|
|
24
|
+
input: v,
|
|
25
|
+
law: x,
|
|
26
|
+
grid: w,
|
|
27
|
+
flex: C,
|
|
28
|
+
link: M,
|
|
29
|
+
logo: O,
|
|
30
|
+
pagination: S,
|
|
31
|
+
popover: T,
|
|
32
|
+
progress: j,
|
|
33
|
+
_indeterminate: z,
|
|
34
|
+
skeleton: A,
|
|
35
|
+
_skeleton: B,
|
|
36
|
+
spinner: D,
|
|
37
|
+
steps: E,
|
|
38
|
+
table: F,
|
|
39
|
+
_scrollShadow: G,
|
|
40
|
+
tabs: H,
|
|
41
|
+
_scrollMask: I,
|
|
42
|
+
tag: J,
|
|
43
|
+
toast: K,
|
|
44
|
+
_toastClose: L,
|
|
45
|
+
_toastOpen: N,
|
|
46
|
+
_toastTimeout: P,
|
|
47
|
+
togglegroup: Q,
|
|
48
|
+
_tooltip: R,
|
|
49
|
+
heading: U,
|
|
50
|
+
ingress: V,
|
|
51
|
+
muted: W,
|
|
52
|
+
info: X,
|
|
53
|
+
prose: Y,
|
|
54
|
+
validation: Z,
|
|
55
|
+
body: $,
|
|
56
|
+
_checked: __
|
|
112
57
|
};
|
|
113
58
|
export {
|
|
114
|
-
_checked,
|
|
115
|
-
_datalist,
|
|
116
|
-
_drawer,
|
|
117
|
-
_errorsummary,
|
|
118
|
-
_indeterminate,
|
|
119
|
-
_scrollMask,
|
|
120
|
-
_scrollShadow,
|
|
121
|
-
_skeleton,
|
|
122
|
-
_toastClose,
|
|
123
|
-
_toastOpen,
|
|
124
|
-
_toastTimeout,
|
|
125
|
-
_tooltip,
|
|
126
|
-
affixes,
|
|
127
|
-
alert,
|
|
128
|
-
app,
|
|
129
|
-
avatar,
|
|
130
|
-
badge,
|
|
131
|
-
body,
|
|
132
|
-
breadcrumbs,
|
|
133
|
-
button,
|
|
134
|
-
card,
|
|
135
|
-
chip,
|
|
136
|
-
|
|
137
|
-
details,
|
|
138
|
-
dialog,
|
|
139
|
-
divider,
|
|
140
|
-
errorsummary,
|
|
141
|
-
field,
|
|
142
|
-
fieldset,
|
|
143
|
-
fileupload,
|
|
144
|
-
flex,
|
|
145
|
-
grid,
|
|
146
|
-
group,
|
|
147
|
-
heading,
|
|
148
|
-
helptext,
|
|
149
|
-
info,
|
|
150
|
-
ingress,
|
|
151
|
-
input,
|
|
152
|
-
law,
|
|
153
|
-
link,
|
|
154
|
-
logo,
|
|
155
|
-
muted,
|
|
156
|
-
pagination,
|
|
157
|
-
popover,
|
|
158
|
-
progress,
|
|
159
|
-
prose,
|
|
160
|
-
skeleton,
|
|
161
|
-
spinner,
|
|
162
|
-
steps,
|
|
163
|
-
sticky,
|
|
164
|
-
table,
|
|
165
|
-
tabs,
|
|
166
|
-
tag,
|
|
167
|
-
toast,
|
|
168
|
-
togglegroup,
|
|
169
|
-
validation
|
|
59
|
+
__ as _checked,
|
|
60
|
+
y as _datalist,
|
|
61
|
+
l as _drawer,
|
|
62
|
+
k as _errorsummary,
|
|
63
|
+
z as _indeterminate,
|
|
64
|
+
I as _scrollMask,
|
|
65
|
+
G as _scrollShadow,
|
|
66
|
+
B as _skeleton,
|
|
67
|
+
L as _toastClose,
|
|
68
|
+
N as _toastOpen,
|
|
69
|
+
P as _toastTimeout,
|
|
70
|
+
R as _tooltip,
|
|
71
|
+
f as affixes,
|
|
72
|
+
_ as alert,
|
|
73
|
+
o as app,
|
|
74
|
+
t as avatar,
|
|
75
|
+
s as badge,
|
|
76
|
+
$ as body,
|
|
77
|
+
a as breadcrumbs,
|
|
78
|
+
n as button,
|
|
79
|
+
q as card,
|
|
80
|
+
i as chip,
|
|
81
|
+
o_ as default,
|
|
82
|
+
d as details,
|
|
83
|
+
c as dialog,
|
|
84
|
+
p as divider,
|
|
85
|
+
g as errorsummary,
|
|
86
|
+
u as field,
|
|
87
|
+
m as fieldset,
|
|
88
|
+
b as fileupload,
|
|
89
|
+
C as flex,
|
|
90
|
+
w as grid,
|
|
91
|
+
r as group,
|
|
92
|
+
U as heading,
|
|
93
|
+
h as helptext,
|
|
94
|
+
X as info,
|
|
95
|
+
V as ingress,
|
|
96
|
+
v as input,
|
|
97
|
+
x as law,
|
|
98
|
+
M as link,
|
|
99
|
+
O as logo,
|
|
100
|
+
W as muted,
|
|
101
|
+
S as pagination,
|
|
102
|
+
T as popover,
|
|
103
|
+
j as progress,
|
|
104
|
+
Y as prose,
|
|
105
|
+
A as skeleton,
|
|
106
|
+
D as spinner,
|
|
107
|
+
E as steps,
|
|
108
|
+
e as sticky,
|
|
109
|
+
F as table,
|
|
110
|
+
H as tabs,
|
|
111
|
+
J as tag,
|
|
112
|
+
K as toast,
|
|
113
|
+
Q as togglegroup,
|
|
114
|
+
Z as validation
|
|
170
115
|
};
|
|
171
116
|
//# sourceMappingURL=styles.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { isBrowser, onLoaded, on, onMutation, attr } from "../utils.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
table.tHead?.rows[0]?.cells || [],
|
|
10
|
-
(th) => th.innerText.trim()
|
|
1
|
+
import c from "../styles.module.css.js";
|
|
2
|
+
import { isBrowser as r, onLoaded as l, on as a, onMutation as i, attr as f } from "../utils.js";
|
|
3
|
+
const m = c.table.split(" ")[0], d = 'a,button,label,input,select,textarea,[role="button"]', u = r() ? document.getElementsByClassName(m) : [];
|
|
4
|
+
function b() {
|
|
5
|
+
for (const t of u) {
|
|
6
|
+
const e = Array.from(
|
|
7
|
+
t.tHead?.rows[0]?.cells || [],
|
|
8
|
+
(o) => o.innerText.trim()
|
|
11
9
|
);
|
|
12
|
-
for (const
|
|
13
|
-
for (const
|
|
14
|
-
for (const
|
|
15
|
-
|
|
10
|
+
for (const o of t.tBodies)
|
|
11
|
+
for (const s of o.rows)
|
|
12
|
+
for (const n of s.cells)
|
|
13
|
+
f(n, "data-th", e[n.cellIndex] || ":empty");
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
|
-
function
|
|
19
|
-
if (!(
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
if (action && !el.closest(INTERACTIVE)) action.click?.();
|
|
16
|
+
function w({ target: t }) {
|
|
17
|
+
if (!(t instanceof Element)) return;
|
|
18
|
+
const o = t.closest("tr")?.querySelector('[data-command="row"]');
|
|
19
|
+
o && !t.closest(d) && o.click?.();
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
l(() => [
|
|
22
|
+
a(document, "click", w),
|
|
23
|
+
i(b, "class")
|
|
27
24
|
]);
|
|
28
25
|
//# sourceMappingURL=table-observer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-observer.js","sources":["../../designsystem/table/table-observer.ts"],"sourcesContent":["import styles from \"../styles.module.css\";\nimport { attr, isBrowser, on, onLoaded, onMutation } from \"../utils\";\n\nconst CSS_TABLE = styles.table.split(\" \")[0];\nconst INTERACTIVE = 'a,button,label,input,select,textarea,[role=\"button\"]';\nconst TABLES = isBrowser() ? document.getElementsByClassName(CSS_TABLE) : [];\n\nfunction handleTableMutation() {\n\tfor (const table of TABLES as HTMLCollectionOf<HTMLTableElement>) {\n\t\tconst ths = Array.from(table.tHead?.rows[0]?.cells || [], (th) =>\n\t\t\tth.innerText.trim(),\n\t\t);\n\n\t\tfor (const tbody of table.tBodies)\n\t\t\tfor (const row of tbody.rows)\n\t\t\t\tfor (const cell of row.cells)\n\t\t\t\t\tattr(cell, \"data-th\", ths[cell.cellIndex] || \":empty\");\n\t}\n}\n\nfunction handleTableClick({ target: el }: Event) {\n\tif (!(el instanceof Element)) return;\n\tconst row = el.closest(\"tr\");\n\tconst action = row?.querySelector<HTMLInputElement>('[data-command=\"row\"]');\n\tif (action && !el.closest(INTERACTIVE)) action.click?.(); // Forward click to data-command=\"row\" element\n}\n\nonLoaded(() => [\n\ton(document, \"click\", handleTableClick),\n\tonMutation(handleTableMutation, \"class\"),\n]);\n"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"table-observer.js","sources":["../../designsystem/table/table-observer.ts"],"sourcesContent":["import styles from \"../styles.module.css\";\nimport { attr, isBrowser, on, onLoaded, onMutation } from \"../utils\";\n\nconst CSS_TABLE = styles.table.split(\" \")[0];\nconst INTERACTIVE = 'a,button,label,input,select,textarea,[role=\"button\"]';\nconst TABLES = isBrowser() ? document.getElementsByClassName(CSS_TABLE) : [];\n\nfunction handleTableMutation() {\n\tfor (const table of TABLES as HTMLCollectionOf<HTMLTableElement>) {\n\t\tconst ths = Array.from(table.tHead?.rows[0]?.cells || [], (th) =>\n\t\t\tth.innerText.trim(),\n\t\t);\n\n\t\tfor (const tbody of table.tBodies)\n\t\t\tfor (const row of tbody.rows)\n\t\t\t\tfor (const cell of row.cells)\n\t\t\t\t\tattr(cell, \"data-th\", ths[cell.cellIndex] || \":empty\");\n\t}\n}\n\nfunction handleTableClick({ target: el }: Event) {\n\tif (!(el instanceof Element)) return;\n\tconst row = el.closest(\"tr\");\n\tconst action = row?.querySelector<HTMLInputElement>('[data-command=\"row\"]');\n\tif (action && !el.closest(INTERACTIVE)) action.click?.(); // Forward click to data-command=\"row\" element\n}\n\nonLoaded(() => [\n\ton(document, \"click\", handleTableClick),\n\tonMutation(handleTableMutation, \"class\"),\n]);\n"],"names":["CSS_TABLE","styles","INTERACTIVE","TABLES","isBrowser","handleTableMutation","table","ths","th","tbody","row","cell","attr","handleTableClick","el","action","onLoaded","on","onMutation"],"mappings":";;AAGA,MAAMA,IAAYC,EAAO,MAAM,MAAM,GAAG,EAAE,CAAC,GACrCC,IAAc,wDACdC,IAASC,EAAA,IAAc,SAAS,uBAAuBJ,CAAS,IAAI,CAAA;AAE1E,SAASK,IAAsB;AAC9B,aAAWC,KAASH,GAA8C;AACjE,UAAMI,IAAM,MAAM;AAAA,MAAKD,EAAM,OAAO,KAAK,CAAC,GAAG,SAAS,CAAA;AAAA,MAAI,CAACE,MAC1DA,EAAG,UAAU,KAAA;AAAA,IAAK;AAGnB,eAAWC,KAASH,EAAM;AACzB,iBAAWI,KAAOD,EAAM;AACvB,mBAAWE,KAAQD,EAAI;AACtB,UAAAE,EAAKD,GAAM,WAAWJ,EAAII,EAAK,SAAS,KAAK,QAAQ;AAAA,EACzD;AACD;AAEA,SAASE,EAAiB,EAAE,QAAQC,KAAa;AAChD,MAAI,EAAEA,aAAc,SAAU;AAE9B,QAAMC,IADMD,EAAG,QAAQ,IAAI,GACP,cAAgC,sBAAsB;AAC1E,EAAIC,KAAU,CAACD,EAAG,QAAQZ,CAAW,OAAU,QAAA;AAChD;AAEAc,EAAS,MAAM;AAAA,EACdC,EAAG,UAAU,SAASJ,CAAgB;AAAA,EACtCK,EAAWb,GAAqB,OAAO;AACxC,CAAC;"}
|
package/mtds/table/table.d.ts
CHANGED
|
@@ -14,6 +14,13 @@ export declare const Table: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
14
14
|
"data-fixed"?: boolean;
|
|
15
15
|
"data-mobile"?: "divided" | "spaced" | "stacked";
|
|
16
16
|
} & import('react').RefAttributes<HTMLTableElement>> & {
|
|
17
|
+
Td: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
18
|
+
Th: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
19
|
+
Tr: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
20
|
+
Thead: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
21
|
+
Tbody: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
22
|
+
Tfoot: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
23
|
+
Caption: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLTableCaptionElement>>;
|
|
17
24
|
ThSortable: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref">, "aria-sort" | "onClick"> & {
|
|
18
25
|
onClick?: React.ComponentPropsWithoutRef<"button">["onClick"];
|
|
19
26
|
"aria-sort"?: "" | "acending" | "asc" | "desc" | "descending" | "down" | "false" | "none" | "up" | false | null;
|
package/mtds/table/table.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import u from "clsx";
|
|
3
|
+
import { forwardRef as e } from "react";
|
|
4
|
+
import d from "../styles.module.css.js";
|
|
5
|
+
const p = {
|
|
6
6
|
"": "none",
|
|
7
7
|
asc: "ascending",
|
|
8
8
|
ascending: "ascending",
|
|
@@ -13,26 +13,51 @@ const SORT = {
|
|
|
13
13
|
none: "none",
|
|
14
14
|
null: "none",
|
|
15
15
|
up: "ascending"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
}, c = e(function({ className: r, ...n }, s) {
|
|
17
|
+
return /* @__PURE__ */ t("table", { className: u(d.table, r), ref: s, ...n });
|
|
18
|
+
}), y = Object.assign(c, {
|
|
19
|
+
Td: e(
|
|
20
|
+
function(r, n) {
|
|
21
|
+
return /* @__PURE__ */ t("td", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
Th: e(
|
|
25
|
+
function(r, n) {
|
|
26
|
+
return /* @__PURE__ */ t("th", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
Tr: e(
|
|
30
|
+
function(r, n) {
|
|
31
|
+
return /* @__PURE__ */ t("tr", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
Thead: e(function(r, n) {
|
|
35
|
+
return /* @__PURE__ */ t("thead", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
36
|
+
}),
|
|
37
|
+
Tbody: e(function(r, n) {
|
|
38
|
+
return /* @__PURE__ */ t("tbody", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
39
|
+
}),
|
|
40
|
+
Tfoot: e(function(r, n) {
|
|
41
|
+
return /* @__PURE__ */ t("tfoot", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
42
|
+
}),
|
|
43
|
+
Caption: e(function(r, n) {
|
|
44
|
+
return /* @__PURE__ */ t("caption", { suppressHydrationWarning: !0, ref: n, ...r });
|
|
45
|
+
}),
|
|
46
|
+
ThSortable: e(
|
|
47
|
+
function({ "aria-sort": r, children: n, onClick: s, ...a }, i) {
|
|
48
|
+
return /* @__PURE__ */ t(
|
|
24
49
|
"th",
|
|
25
50
|
{
|
|
26
|
-
ref,
|
|
27
|
-
"aria-sort":
|
|
28
|
-
...
|
|
29
|
-
children:
|
|
51
|
+
ref: i,
|
|
52
|
+
"aria-sort": s ? p[`${r}`] : void 0,
|
|
53
|
+
...a,
|
|
54
|
+
children: s ? /* @__PURE__ */ t("button", { type: "button", onClick: s, children: n }) : n
|
|
30
55
|
}
|
|
31
56
|
);
|
|
32
57
|
}
|
|
33
58
|
)
|
|
34
59
|
});
|
|
35
60
|
export {
|
|
36
|
-
Table
|
|
61
|
+
y as Table
|
|
37
62
|
};
|
|
38
63
|
//# sourceMappingURL=table.js.map
|
package/mtds/table/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":["../../designsystem/table/table.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef } from \"react\";\nimport styles from \"../styles.module.css\";\n\nexport type TableProps = React.ComponentPropsWithoutRef<\"table\"> & {\n\t\"data-align\"?: \"start\" | \"center\";\n\t\"data-border\"?: boolean | \"true\" | \"false\" | \"none\";\n\t\"data-fixed\"?: boolean;\n\t\"data-mobile\"?: \"divided\" | \"spaced\" | \"stacked\";\n};\n\nexport type ThSortableProps = Omit<\n\tReact.ComponentPropsWithoutRef<\"th\">,\n\t\"aria-sort\" | \"onClick\"\n> & {\n\tonClick?: React.ComponentPropsWithoutRef<\"button\">[\"onClick\"];\n\t\"aria-sort\"?:\n\t\t| \"\"\n\t\t| \"acending\"\n\t\t| \"asc\"\n\t\t| \"desc\"\n\t\t| \"descending\"\n\t\t| \"down\"\n\t\t| \"false\"\n\t\t| \"none\"\n\t\t| \"up\"\n\t\t| false\n\t\t| null;\n};\n\ntype SORT_KEYS = keyof typeof SORT;\nconst SORT = {\n\t\"\": \"none\",\n\tasc: \"ascending\",\n\tascending: \"ascending\",\n\tdesc: \"descending\",\n\tdescending: \"descending\",\n\tdown: \"descending\",\n\tfalse: \"none\",\n\tnone: \"none\",\n\tnull: \"none\",\n\tup: \"ascending\",\n} as const;\n\nconst TableComp = forwardRef<HTMLTableElement, TableProps>(function Table(\n\t{ className, ...rest },\n\tref,\n) {\n\treturn (\n\t\t<table className={clsx(styles.table, className)} ref={ref} {...rest} />\n\t);\n});\n\nexport const Table = Object.assign(TableComp, {\n\tThSortable: forwardRef<HTMLTableCellElement, ThSortableProps>(\n\t\tfunction ThSortable(\n\t\t\t{ \"aria-sort\": sort, children, onClick, ...rest },\n\t\t\tref,\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<th\n\t\t\t\t\tref={ref}\n\t\t\t\t\taria-sort={onClick ? SORT[`${sort}` as SORT_KEYS] : undefined}\n\t\t\t\t\t{...rest}\n\t\t\t\t>\n\t\t\t\t\t{onClick ? (\n\t\t\t\t\t\t<button type=\"button\" onClick={onClick}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t) : (\n\t\t\t\t\t\tchildren\n\t\t\t\t\t)}\n\t\t\t\t</th>\n\t\t\t);\n\t\t},\n\t),\n});\n"],"names":["Table"],"mappings":";;;;AA+BA,
|
|
1
|
+
{"version":3,"file":"table.js","sources":["../../designsystem/table/table.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef } from \"react\";\nimport styles from \"../styles.module.css\";\n\nexport type TableProps = React.ComponentPropsWithoutRef<\"table\"> & {\n\t\"data-align\"?: \"start\" | \"center\";\n\t\"data-border\"?: boolean | \"true\" | \"false\" | \"none\";\n\t\"data-fixed\"?: boolean;\n\t\"data-mobile\"?: \"divided\" | \"spaced\" | \"stacked\";\n};\n\nexport type ThSortableProps = Omit<\n\tReact.ComponentPropsWithoutRef<\"th\">,\n\t\"aria-sort\" | \"onClick\"\n> & {\n\tonClick?: React.ComponentPropsWithoutRef<\"button\">[\"onClick\"];\n\t\"aria-sort\"?:\n\t\t| \"\"\n\t\t| \"acending\"\n\t\t| \"asc\"\n\t\t| \"desc\"\n\t\t| \"descending\"\n\t\t| \"down\"\n\t\t| \"false\"\n\t\t| \"none\"\n\t\t| \"up\"\n\t\t| false\n\t\t| null;\n};\n\ntype SORT_KEYS = keyof typeof SORT;\nconst SORT = {\n\t\"\": \"none\",\n\tasc: \"ascending\",\n\tascending: \"ascending\",\n\tdesc: \"descending\",\n\tdescending: \"descending\",\n\tdown: \"descending\",\n\tfalse: \"none\",\n\tnone: \"none\",\n\tnull: \"none\",\n\tup: \"ascending\",\n} as const;\n\nconst TableComp = forwardRef<HTMLTableElement, TableProps>(function Table(\n\t{ className, ...rest },\n\tref,\n) {\n\treturn (\n\t\t<table className={clsx(styles.table, className)} ref={ref} {...rest} />\n\t);\n});\n\nexport const Table = Object.assign(TableComp, {\n\tTd: forwardRef<HTMLTableCellElement, React.ComponentPropsWithoutRef<\"td\">>(\n\t\tfunction Td(props, ref) {\n\t\t\treturn <td suppressHydrationWarning ref={ref} {...props} />;\n\t\t},\n\t),\n\tTh: forwardRef<HTMLTableCellElement, React.ComponentPropsWithoutRef<\"th\">>(\n\t\tfunction Th(props, ref) {\n\t\t\treturn <th suppressHydrationWarning ref={ref} {...props} />;\n\t\t},\n\t),\n\tTr: forwardRef<HTMLTableRowElement, React.ComponentPropsWithoutRef<\"tr\">>(\n\t\tfunction Tr(props, ref) {\n\t\t\treturn <tr suppressHydrationWarning ref={ref} {...props} />;\n\t\t},\n\t),\n\tThead: forwardRef<\n\t\tHTMLTableSectionElement,\n\t\tReact.ComponentPropsWithoutRef<\"tbody\">\n\t>(function Thead(props, ref) {\n\t\treturn <thead suppressHydrationWarning ref={ref} {...props} />;\n\t}),\n\tTbody: forwardRef<\n\t\tHTMLTableSectionElement,\n\t\tReact.ComponentPropsWithoutRef<\"tbody\">\n\t>(function Tbody(props, ref) {\n\t\treturn <tbody suppressHydrationWarning ref={ref} {...props} />;\n\t}),\n\tTfoot: forwardRef<\n\t\tHTMLTableSectionElement,\n\t\tReact.ComponentPropsWithoutRef<\"tfoot\">\n\t>(function Tfoot(props, ref) {\n\t\treturn <tfoot suppressHydrationWarning ref={ref} {...props} />;\n\t}),\n\tCaption: forwardRef<\n\t\tHTMLTableCaptionElement,\n\t\tReact.ComponentPropsWithoutRef<\"caption\">\n\t>(function Caption(props, ref) {\n\t\treturn <caption suppressHydrationWarning ref={ref} {...props} />;\n\t}),\n\tThSortable: forwardRef<HTMLTableCellElement, ThSortableProps>(\n\t\tfunction ThSortable(\n\t\t\t{ \"aria-sort\": sort, children, onClick, ...rest },\n\t\t\tref,\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<th\n\t\t\t\t\tref={ref}\n\t\t\t\t\taria-sort={onClick ? SORT[`${sort}` as SORT_KEYS] : undefined}\n\t\t\t\t\t{...rest}\n\t\t\t\t>\n\t\t\t\t\t{onClick ? (\n\t\t\t\t\t\t<button type=\"button\" onClick={onClick}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t) : (\n\t\t\t\t\t\tchildren\n\t\t\t\t\t)}\n\t\t\t\t</th>\n\t\t\t);\n\t\t},\n\t),\n});\n"],"names":["SORT","TableComp","forwardRef","className","rest","ref","jsx","clsx","styles","Table","props","sort","children","onClick"],"mappings":";;;;AA+BA,MAAMA,IAAO;AAAA,EACZ,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,IAAI;AACL,GAEMC,IAAYC,EAAyC,SAC1D,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAChBC,GACC;AACD,SACC,gBAAAC,EAAC,SAAA,EAAM,WAAWC,EAAKC,EAAO,OAAOL,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAA,CAAM;AAEvE,CAAC,GAEYK,IAAQ,OAAO,OAAOR,GAAW;AAAA,EAC7C,IAAIC;AAAA,IACH,SAAYQ,GAAOL,GAAK;AACvB,+BAAQ,MAAA,EAAG,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,IAC1D;AAAA,EAAA;AAAA,EAED,IAAIR;AAAA,IACH,SAAYQ,GAAOL,GAAK;AACvB,+BAAQ,MAAA,EAAG,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,IAC1D;AAAA,EAAA;AAAA,EAED,IAAIR;AAAA,IACH,SAAYQ,GAAOL,GAAK;AACvB,+BAAQ,MAAA,EAAG,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,IAC1D;AAAA,EAAA;AAAA,EAED,OAAOR,EAGL,SAAeQ,GAAOL,GAAK;AAC5B,6BAAQ,SAAA,EAAM,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,EAC7D,CAAC;AAAA,EACD,OAAOR,EAGL,SAAeQ,GAAOL,GAAK;AAC5B,6BAAQ,SAAA,EAAM,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,EAC7D,CAAC;AAAA,EACD,OAAOR,EAGL,SAAeQ,GAAOL,GAAK;AAC5B,6BAAQ,SAAA,EAAM,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,EAC7D,CAAC;AAAA,EACD,SAASR,EAGP,SAAiBQ,GAAOL,GAAK;AAC9B,6BAAQ,WAAA,EAAQ,0BAAwB,IAAC,KAAAA,GAAW,GAAGK,GAAO;AAAA,EAC/D,CAAC;AAAA,EACD,YAAYR;AAAA,IACX,SACC,EAAE,aAAaS,GAAM,UAAAC,GAAU,SAAAC,GAAS,GAAGT,EAAA,GAC3CC,GACC;AACD,aACC,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,KAAAD;AAAA,UACA,aAAWQ,IAAUb,EAAK,GAAGW,CAAI,EAAe,IAAI;AAAA,UACnD,GAAGP;AAAA,UAEH,cACA,gBAAAE,EAAC,UAAA,EAAO,MAAK,UAAS,SAAAO,GACpB,UAAAD,GACF,IAEAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAIJ;AAAA,EAAA;AAEF,CAAC;"}
|
package/mtds/tabs/tabs.js
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { toCustomElementProps } from "../utils.js";
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import b from "../styles.module.css.js";
|
|
4
|
+
import { toCustomElementProps as o } from "../utils.js";
|
|
5
|
+
const e = n(
|
|
6
|
+
function(t, s) {
|
|
7
|
+
return /* @__PURE__ */ a("u-tabs", { ref: s, ...o(t, b.tabs) });
|
|
8
8
|
}
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */ jsx("u-tablist", { ref, ...toCustomElementProps(props) });
|
|
9
|
+
), i = n(
|
|
10
|
+
function(t, s) {
|
|
11
|
+
return /* @__PURE__ */ a("u-tablist", { ref: s, ...o(t) });
|
|
13
12
|
}
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /* @__PURE__ */ jsx("u-tabpanel", { ref, ...toCustomElementProps(props) });
|
|
13
|
+
), u = n(
|
|
14
|
+
function(t, s) {
|
|
15
|
+
return /* @__PURE__ */ a("u-tabpanel", { ref: s, ...o(t) });
|
|
18
16
|
}
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return /* @__PURE__ */ jsx("u-tab", { ref, ...toCustomElementProps(props) });
|
|
17
|
+
), T = n(
|
|
18
|
+
function(t, s) {
|
|
19
|
+
return /* @__PURE__ */ a("u-tab", { ref: s, ...o(t) });
|
|
23
20
|
}
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Tab: TabsTab
|
|
21
|
+
), l = Object.assign(e, {
|
|
22
|
+
List: i,
|
|
23
|
+
Panel: u,
|
|
24
|
+
Tab: T
|
|
29
25
|
});
|
|
30
26
|
export {
|
|
31
|
-
Tabs
|
|
27
|
+
l as Tabs
|
|
32
28
|
};
|
|
33
29
|
//# sourceMappingURL=tabs.js.map
|
package/mtds/tabs/tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sources":["../../designsystem/tabs/tabs.tsx"],"sourcesContent":["import type * as UTabs from \"@u-elements/u-tabs\";\nimport { forwardRef } from \"react\";\nimport styles from \"../styles.module.css\";\nimport { toCustomElementProps } from \"../utils\";\n\nexport type TabsProps = UTabs.ReactUtabs;\nconst TabsComp = forwardRef<UTabs.UHTMLTabsElement, TabsProps>(\n\tfunction Tabs(props, ref) {\n\t\treturn <u-tabs ref={ref} {...toCustomElementProps(props, styles.tabs)} />;\n\t},\n);\n\nexport type TabsListProps = UTabs.ReactUtablist;\nconst TabsList = forwardRef<UTabs.UHTMLTabListElement, TabsListProps>(\n\tfunction TabsList(props, ref) {\n\t\treturn <u-tablist ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsPanelProps = UTabs.ReactUtabpanel;\nconst TabsPanel = forwardRef<UTabs.UHTMLTabPanelElement, TabsPanelProps>(\n\tfunction TabsPanel(props, ref) {\n\t\treturn <u-tabpanel ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsTabProps = UTabs.ReactUtab;\nconst TabsTab = forwardRef<UTabs.UHTMLTabElement, TabsTabProps>(\n\tfunction TabsTab(props, ref) {\n\t\treturn <u-tab ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport const Tabs = Object.assign(TabsComp, {\n\tList: TabsList,\n\tPanel: TabsPanel,\n\tTab: TabsTab,\n});\n"],"names":["
|
|
1
|
+
{"version":3,"file":"tabs.js","sources":["../../designsystem/tabs/tabs.tsx"],"sourcesContent":["import type * as UTabs from \"@u-elements/u-tabs\";\nimport { forwardRef } from \"react\";\nimport styles from \"../styles.module.css\";\nimport { toCustomElementProps } from \"../utils\";\n\nexport type TabsProps = UTabs.ReactUtabs;\nconst TabsComp = forwardRef<UTabs.UHTMLTabsElement, TabsProps>(\n\tfunction Tabs(props, ref) {\n\t\treturn <u-tabs ref={ref} {...toCustomElementProps(props, styles.tabs)} />;\n\t},\n);\n\nexport type TabsListProps = UTabs.ReactUtablist;\nconst TabsList = forwardRef<UTabs.UHTMLTabListElement, TabsListProps>(\n\tfunction TabsList(props, ref) {\n\t\treturn <u-tablist ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsPanelProps = UTabs.ReactUtabpanel;\nconst TabsPanel = forwardRef<UTabs.UHTMLTabPanelElement, TabsPanelProps>(\n\tfunction TabsPanel(props, ref) {\n\t\treturn <u-tabpanel ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsTabProps = UTabs.ReactUtab;\nconst TabsTab = forwardRef<UTabs.UHTMLTabElement, TabsTabProps>(\n\tfunction TabsTab(props, ref) {\n\t\treturn <u-tab ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport const Tabs = Object.assign(TabsComp, {\n\tList: TabsList,\n\tPanel: TabsPanel,\n\tTab: TabsTab,\n});\n"],"names":["TabsComp","forwardRef","props","ref","jsx","toCustomElementProps","styles","TabsList","TabsPanel","TabsTab","Tabs"],"mappings":";;;;AAMA,MAAMA,IAAWC;AAAA,EAChB,SAAcC,GAAOC,GAAK;AACzB,WAAO,gBAAAC,EAAC,YAAO,KAAAD,GAAW,GAAGE,EAAqBH,GAAOI,EAAO,IAAI,GAAG;AAAA,EACxE;AACD,GAGMC,IAAWN;AAAA,EAChB,SAAkBC,GAAOC,GAAK;AAC7B,6BAAQ,aAAA,EAAU,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC9D;AACD,GAGMM,IAAYP;AAAA,EACjB,SAAmBC,GAAOC,GAAK;AAC9B,6BAAQ,cAAA,EAAW,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC/D;AACD,GAGMO,IAAUR;AAAA,EACf,SAAiBC,GAAOC,GAAK;AAC5B,6BAAQ,SAAA,EAAM,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC1D;AACD,GAEaQ,IAAO,OAAO,OAAOV,GAAU;AAAA,EAC3C,MAAMO;AAAA,EACN,OAAOC;AAAA,EACP,KAAKC;AACN,CAAC;"}
|