@mattilsynet/design 0.2.1 → 0.2.3
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/field/field.js +6 -7
- package/mtds/field/field.js.map +1 -1
- package/mtds/fieldset/fieldset.js +11 -12
- package/mtds/fieldset/fieldset.js.map +1 -1
- package/mtds/index.d.ts +98 -2
- package/mtds/index.iife.js +2 -2
- package/mtds/index.iife.js.map +1 -1
- package/mtds/index.js +14 -12
- package/mtds/index.js.map +1 -1
- package/mtds/popover/popover.js +12 -13
- package/mtds/popover/popover.js.map +1 -1
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +126 -30
- package/mtds/styles.module.css.js +150 -54
- package/mtds/styles.module.css.js.map +1 -1
- package/mtds/table/table.js +8 -9
- package/mtds/table/table.js.map +1 -1
- package/package.json +3 -3
package/mtds/styles.json
CHANGED
|
@@ -1,32 +1,128 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"field": "
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
2
|
+
"ds-sr-only": "_ds-sr-only_7o9n0_1",
|
|
3
|
+
"ds-focus": "_ds-focus_7o9n0_1",
|
|
4
|
+
"ds-focus--visible": "_ds-focus--visible_7o9n0_1",
|
|
5
|
+
"ds-heading": "_ds-heading_7o9n0_1",
|
|
6
|
+
"ds-label": "_ds-label_7o9n0_1",
|
|
7
|
+
"ds-paragraph": "_ds-paragraph_7o9n0_1",
|
|
8
|
+
"ds-validation-message": "_ds-validation-message_7o9n0_1",
|
|
9
|
+
"ds-button": "_ds-button_7o9n0_1",
|
|
10
|
+
"ds-field": "_ds-field_7o9n0_1",
|
|
11
|
+
"ds-field-affixes": "_ds-field-affixes_7o9n0_1",
|
|
12
|
+
"ds-field-affix": "_ds-field-affix_7o9n0_1",
|
|
13
|
+
"ds-input": "_ds-input_7o9n0_1",
|
|
14
|
+
"ds-alert": "_ds-alert_7o9n0_1",
|
|
15
|
+
"ds-popover": "_ds-popover_7o9n0_1",
|
|
16
|
+
"ds-skiplink": "_ds-skiplink_7o9n0_1",
|
|
17
|
+
"ds-details": "_ds-details_7o9n0_1",
|
|
18
|
+
"ds-search": "_ds-search_7o9n0_1",
|
|
19
|
+
"ds-textfield": "_ds-textfield_7o9n0_1",
|
|
20
|
+
"ds-textfield__adornment": "_ds-textfield__adornment_7o9n0_1",
|
|
21
|
+
"ds-textfield__input": "_ds-textfield__input_7o9n0_1",
|
|
22
|
+
"ds-textfield--readonly": "_ds-textfield--readonly_7o9n0_1",
|
|
23
|
+
"ds-textfield__field": "_ds-textfield__field_7o9n0_1",
|
|
24
|
+
"ds-textfield--sm": "_ds-textfield--sm_7o9n0_1",
|
|
25
|
+
"ds-textfield--md": "_ds-textfield--md_7o9n0_1",
|
|
26
|
+
"ds-textfield--lg": "_ds-textfield--lg_7o9n0_1",
|
|
27
|
+
"ds-textfield__label": "_ds-textfield__label_7o9n0_1",
|
|
28
|
+
"ds-textfield__description": "_ds-textfield__description_7o9n0_1",
|
|
29
|
+
"ds-textfield--error": "_ds-textfield--error_7o9n0_1",
|
|
30
|
+
"ds-textfield__input--with-prefix": "_ds-textfield__input--with-prefix_7o9n0_1",
|
|
31
|
+
"ds-textfield__input--with-suffix": "_ds-textfield__input--with-suffix_7o9n0_1",
|
|
32
|
+
"ds-textfield__prefix": "_ds-textfield__prefix_7o9n0_1",
|
|
33
|
+
"ds-textfield__suffix": "_ds-textfield__suffix_7o9n0_1",
|
|
34
|
+
"ds-textfield__readonly__icon": "_ds-textfield__readonly__icon_7o9n0_1",
|
|
35
|
+
"ds-textfield__error-message": "_ds-textfield__error-message_7o9n0_1",
|
|
36
|
+
"ds-helptext": "_ds-helptext_7o9n0_1",
|
|
37
|
+
"ds-modal": "_ds-modal_7o9n0_1",
|
|
38
|
+
"fade-in": "_fade-in_7o9n0_1",
|
|
39
|
+
"slide-in": "_slide-in_7o9n0_1",
|
|
40
|
+
"ds-modal__block": "_ds-modal__block_7o9n0_1",
|
|
41
|
+
"ds-list": "_ds-list_7o9n0_1",
|
|
42
|
+
"ds-card": "_ds-card_7o9n0_1",
|
|
43
|
+
"ds-card__block": "_ds-card__block_7o9n0_1",
|
|
44
|
+
"ds-link": "_ds-link_7o9n0_1",
|
|
45
|
+
"ds-fieldset": "_ds-fieldset_7o9n0_1",
|
|
46
|
+
"ds-dropdown": "_ds-dropdown_7o9n0_1",
|
|
47
|
+
"ds-chip": "_ds-chip_7o9n0_1",
|
|
48
|
+
"ds-divider": "_ds-divider_7o9n0_1",
|
|
49
|
+
"ds-tabs": "_ds-tabs_7o9n0_1",
|
|
50
|
+
"ds-tabs__panel": "_ds-tabs__panel_7o9n0_1",
|
|
51
|
+
"ds-tabs__tablist": "_ds-tabs__tablist_7o9n0_1",
|
|
52
|
+
"ds-tabs__tab": "_ds-tabs__tab_7o9n0_1",
|
|
53
|
+
"ds-pagination": "_ds-pagination_7o9n0_1",
|
|
54
|
+
"ds-skeleton": "_ds-skeleton_7o9n0_1",
|
|
55
|
+
"ds-skeleton-opacity-fade": "_ds-skeleton-opacity-fade_7o9n0_1",
|
|
56
|
+
"ds-tag": "_ds-tag_7o9n0_1",
|
|
57
|
+
"ds-error-summary": "_ds-error-summary_7o9n0_1",
|
|
58
|
+
"ds-togglegroup": "_ds-togglegroup_7o9n0_1",
|
|
59
|
+
"ds-tooltip": "_ds-tooltip_7o9n0_1",
|
|
60
|
+
"ds-spinner": "_ds-spinner_7o9n0_1",
|
|
61
|
+
"ds-spinner-rotate-animation": "_ds-spinner-rotate-animation_7o9n0_1",
|
|
62
|
+
"ds-spinner__background": "_ds-spinner__background_7o9n0_1",
|
|
63
|
+
"ds-spinner__circle": "_ds-spinner__circle_7o9n0_1",
|
|
64
|
+
"ds-spinner-stroke-animation": "_ds-spinner-stroke-animation_7o9n0_1",
|
|
65
|
+
"ds-table": "_ds-table_7o9n0_1",
|
|
66
|
+
"ds-combobox": "_ds-combobox_7o9n0_1",
|
|
67
|
+
"ds-combobox__options-wrapper": "_ds-combobox__options-wrapper_7o9n0_1",
|
|
68
|
+
"ds-combobox--readonly": "_ds-combobox--readonly_7o9n0_1",
|
|
69
|
+
"ds-combobox__input": "_ds-combobox__input_7o9n0_1",
|
|
70
|
+
"ds-combobox__input__wrapper": "_ds-combobox__input__wrapper_7o9n0_1",
|
|
71
|
+
"ds-combobox--sm": "_ds-combobox--sm_7o9n0_1",
|
|
72
|
+
"ds-combobox--md": "_ds-combobox--md_7o9n0_1",
|
|
73
|
+
"ds-combobox--lg": "_ds-combobox--lg_7o9n0_1",
|
|
74
|
+
"ds-combobox--error": "_ds-combobox--error_7o9n0_1",
|
|
75
|
+
"ds-combobox__chip-and-input": "_ds-combobox__chip-and-input_7o9n0_1",
|
|
76
|
+
"ds-combobox__arrow": "_ds-combobox__arrow_7o9n0_1",
|
|
77
|
+
"ds-combobox__label": "_ds-combobox__label_7o9n0_1",
|
|
78
|
+
"ds-combobox__description": "_ds-combobox__description_7o9n0_1",
|
|
79
|
+
"ds-combobox__clear-button": "_ds-combobox__clear-button_7o9n0_1",
|
|
80
|
+
"ds-combobox__disabled": "_ds-combobox__disabled_7o9n0_1",
|
|
81
|
+
"ds-combobox__readonly__icon": "_ds-combobox__readonly__icon_7o9n0_1",
|
|
82
|
+
"ds-combobox__error-message": "_ds-combobox__error-message_7o9n0_1",
|
|
83
|
+
"ds-combobox__loading": "_ds-combobox__loading_7o9n0_1",
|
|
84
|
+
"ds-combobox__custom": "_ds-combobox__custom_7o9n0_1",
|
|
85
|
+
"ds-combobox__empty": "_ds-combobox__empty_7o9n0_1",
|
|
86
|
+
"ds-combobox__option": "_ds-combobox__option_7o9n0_1",
|
|
87
|
+
"ds-combobox__option--active": "_ds-combobox__option--active_7o9n0_1",
|
|
88
|
+
"ds-combobox__option--multiple": "_ds-combobox__option--multiple_7o9n0_1",
|
|
89
|
+
"ds-combobox__option__label": "_ds-combobox__option__label_7o9n0_1",
|
|
90
|
+
"ds-combobox__option__icon-wrapper": "_ds-combobox__option__icon-wrapper_7o9n0_1",
|
|
91
|
+
"ds-combobox__option__icon-wrapper--selected": "_ds-combobox__option__icon-wrapper--selected_7o9n0_1",
|
|
92
|
+
"ds-combobox__option__icon-wrapper__icon": "_ds-combobox__option__icon-wrapper__icon_7o9n0_1",
|
|
93
|
+
"ds-combobox__option__description": "_ds-combobox__option__description_7o9n0_1",
|
|
94
|
+
"ds-breadcrumbs": "_ds-breadcrumbs_7o9n0_1",
|
|
95
|
+
"ds-badge": "_ds-badge_7o9n0_1",
|
|
96
|
+
"ds-badge--position": "_ds-badge--position_7o9n0_1",
|
|
97
|
+
"ds-avatar": "_ds-avatar_7o9n0_1",
|
|
98
|
+
"alert": "_alert_7o9n0_1 _ds-alert_14y6r_1",
|
|
99
|
+
"avatar": "_avatar_7o9n0_1 _ds-avatar_14y6r_1",
|
|
100
|
+
"breadcrumbs": "_breadcrumbs_7o9n0_1 _ds-breadcrumbs_14y6r_1",
|
|
101
|
+
"button": "_button_7o9n0_1 _ds-button_14y6r_1",
|
|
102
|
+
"card": "_card_7o9n0_1 _ds-card_14y6r_1",
|
|
103
|
+
"chip": "_chip_7o9n0_1 _ds-chip_14y6r_1",
|
|
104
|
+
"details": "_details_7o9n0_1 _ds-details_14y6r_1",
|
|
105
|
+
"errorsummary": "_errorsummary_7o9n0_1 _ds-error-summary_14y6r_1",
|
|
106
|
+
"field": "_field_7o9n0_1 _ds-field_14y6r_1",
|
|
107
|
+
"fieldChildAdded": "_fieldChildAdded_7o9n0_1",
|
|
108
|
+
"affixes": "_affixes_7o9n0_1 _ds-field-affixes_14y6r_1",
|
|
109
|
+
"count": "_count_7o9n0_1",
|
|
110
|
+
"fieldset": "_fieldset_7o9n0_1 _ds-fieldset_14y6r_1",
|
|
111
|
+
"fieldsetValidationAdded": "_fieldsetValidationAdded_7o9n0_1",
|
|
112
|
+
"input": "_input_7o9n0_1 _ds-input_14y6r_1",
|
|
113
|
+
"grid": "_grid_7o9n0_1",
|
|
114
|
+
"flex": "_flex_7o9n0_1",
|
|
115
|
+
"box": "_box_7o9n0_1",
|
|
116
|
+
"link": "_link_7o9n0_1",
|
|
117
|
+
"logo": "_logo_7o9n0_1 _ds-focus_14y6r_1",
|
|
118
|
+
"modal": "_modal_7o9n0_1 _ds-modal_14y6r_1",
|
|
119
|
+
"pagination": "_pagination_7o9n0_1 _ds-pagination_14y6r_1",
|
|
120
|
+
"popover": "_popover_7o9n0_1",
|
|
121
|
+
"table": "_table_7o9n0_1 _ds-table_14y6r_1",
|
|
122
|
+
"scrollShadow": "_scrollShadow_7o9n0_1",
|
|
123
|
+
"tableChildAdded": "_tableChildAdded_7o9n0_1",
|
|
124
|
+
"tabs": "_tabs_7o9n0_1",
|
|
125
|
+
"tag": "_tag_7o9n0_1 _ds-tag_14y6r_1",
|
|
126
|
+
"validation": "_validation_7o9n0_1 _ds-validation-message_14y6r_1",
|
|
127
|
+
"body": "_body_7o9n0_74"
|
|
32
128
|
}
|
|
@@ -1,66 +1,162 @@
|
|
|
1
|
-
const _ = "
|
|
1
|
+
const _ = "_alert_7o9n0_1 _ds-alert_14y6r_1", o = "_avatar_7o9n0_1 _ds-avatar_14y6r_1", d = "_breadcrumbs_7o9n0_1 _ds-breadcrumbs_14y6r_1", s = "_button_7o9n0_1 _ds-button_14y6r_1", n = "_card_7o9n0_1 _ds-card_14y6r_1", e = "_chip_7o9n0_1 _ds-chip_14y6r_1", t = "_details_7o9n0_1 _ds-details_14y6r_1", i = "_errorsummary_7o9n0_1 _ds-error-summary_14y6r_1", a = "_field_7o9n0_1 _ds-field_14y6r_1", l = "_fieldChildAdded_7o9n0_1", r = "_affixes_7o9n0_1 _ds-field-affixes_14y6r_1", b = "_count_7o9n0_1", c = "_fieldset_7o9n0_1 _ds-fieldset_14y6r_1", p = "_fieldsetValidationAdded_7o9n0_1", x = "_input_7o9n0_1 _ds-input_14y6r_1", m = "_grid_7o9n0_1", f = "_flex_7o9n0_1", u = "_box_7o9n0_1", g = "_link_7o9n0_1", y = "_logo_7o9n0_1 _ds-focus_14y6r_1", h = "_modal_7o9n0_1 _ds-modal_14y6r_1", v = "_pagination_7o9n0_1 _ds-pagination_14y6r_1", k = "_popover_7o9n0_1", w = "_table_7o9n0_1 _ds-table_14y6r_1", A = "_scrollShadow_7o9n0_1", C = "_tableChildAdded_7o9n0_1", S = "_tabs_7o9n0_1", V = "_tag_7o9n0_1 _ds-tag_14y6r_1", j = "_validation_7o9n0_1 _ds-validation-message_14y6r_1", q = "_body_7o9n0_74", z = {
|
|
2
|
+
"ds-sr-only": "_ds-sr-only_7o9n0_1",
|
|
3
|
+
"ds-focus": "_ds-focus_7o9n0_1",
|
|
4
|
+
"ds-focus--visible": "_ds-focus--visible_7o9n0_1",
|
|
5
|
+
"ds-heading": "_ds-heading_7o9n0_1",
|
|
6
|
+
"ds-label": "_ds-label_7o9n0_1",
|
|
7
|
+
"ds-paragraph": "_ds-paragraph_7o9n0_1",
|
|
8
|
+
"ds-validation-message": "_ds-validation-message_7o9n0_1",
|
|
9
|
+
"ds-button": "_ds-button_7o9n0_1",
|
|
10
|
+
"ds-field": "_ds-field_7o9n0_1",
|
|
11
|
+
"ds-field-affixes": "_ds-field-affixes_7o9n0_1",
|
|
12
|
+
"ds-field-affix": "_ds-field-affix_7o9n0_1",
|
|
13
|
+
"ds-input": "_ds-input_7o9n0_1",
|
|
14
|
+
"ds-alert": "_ds-alert_7o9n0_1",
|
|
15
|
+
"ds-popover": "_ds-popover_7o9n0_1",
|
|
16
|
+
"ds-skiplink": "_ds-skiplink_7o9n0_1",
|
|
17
|
+
"ds-details": "_ds-details_7o9n0_1",
|
|
18
|
+
"ds-search": "_ds-search_7o9n0_1",
|
|
19
|
+
"ds-textfield": "_ds-textfield_7o9n0_1",
|
|
20
|
+
"ds-textfield__adornment": "_ds-textfield__adornment_7o9n0_1",
|
|
21
|
+
"ds-textfield__input": "_ds-textfield__input_7o9n0_1",
|
|
22
|
+
"ds-textfield--readonly": "_ds-textfield--readonly_7o9n0_1",
|
|
23
|
+
"ds-textfield__field": "_ds-textfield__field_7o9n0_1",
|
|
24
|
+
"ds-textfield--sm": "_ds-textfield--sm_7o9n0_1",
|
|
25
|
+
"ds-textfield--md": "_ds-textfield--md_7o9n0_1",
|
|
26
|
+
"ds-textfield--lg": "_ds-textfield--lg_7o9n0_1",
|
|
27
|
+
"ds-textfield__label": "_ds-textfield__label_7o9n0_1",
|
|
28
|
+
"ds-textfield__description": "_ds-textfield__description_7o9n0_1",
|
|
29
|
+
"ds-textfield--error": "_ds-textfield--error_7o9n0_1",
|
|
30
|
+
"ds-textfield__input--with-prefix": "_ds-textfield__input--with-prefix_7o9n0_1",
|
|
31
|
+
"ds-textfield__input--with-suffix": "_ds-textfield__input--with-suffix_7o9n0_1",
|
|
32
|
+
"ds-textfield__prefix": "_ds-textfield__prefix_7o9n0_1",
|
|
33
|
+
"ds-textfield__suffix": "_ds-textfield__suffix_7o9n0_1",
|
|
34
|
+
"ds-textfield__readonly__icon": "_ds-textfield__readonly__icon_7o9n0_1",
|
|
35
|
+
"ds-textfield__error-message": "_ds-textfield__error-message_7o9n0_1",
|
|
36
|
+
"ds-helptext": "_ds-helptext_7o9n0_1",
|
|
37
|
+
"ds-modal": "_ds-modal_7o9n0_1",
|
|
38
|
+
"fade-in": "_fade-in_7o9n0_1",
|
|
39
|
+
"slide-in": "_slide-in_7o9n0_1",
|
|
40
|
+
"ds-modal__block": "_ds-modal__block_7o9n0_1",
|
|
41
|
+
"ds-list": "_ds-list_7o9n0_1",
|
|
42
|
+
"ds-card": "_ds-card_7o9n0_1",
|
|
43
|
+
"ds-card__block": "_ds-card__block_7o9n0_1",
|
|
44
|
+
"ds-link": "_ds-link_7o9n0_1",
|
|
45
|
+
"ds-fieldset": "_ds-fieldset_7o9n0_1",
|
|
46
|
+
"ds-dropdown": "_ds-dropdown_7o9n0_1",
|
|
47
|
+
"ds-chip": "_ds-chip_7o9n0_1",
|
|
48
|
+
"ds-divider": "_ds-divider_7o9n0_1",
|
|
49
|
+
"ds-tabs": "_ds-tabs_7o9n0_1",
|
|
50
|
+
"ds-tabs__panel": "_ds-tabs__panel_7o9n0_1",
|
|
51
|
+
"ds-tabs__tablist": "_ds-tabs__tablist_7o9n0_1",
|
|
52
|
+
"ds-tabs__tab": "_ds-tabs__tab_7o9n0_1",
|
|
53
|
+
"ds-pagination": "_ds-pagination_7o9n0_1",
|
|
54
|
+
"ds-skeleton": "_ds-skeleton_7o9n0_1",
|
|
55
|
+
"ds-skeleton-opacity-fade": "_ds-skeleton-opacity-fade_7o9n0_1",
|
|
56
|
+
"ds-tag": "_ds-tag_7o9n0_1",
|
|
57
|
+
"ds-error-summary": "_ds-error-summary_7o9n0_1",
|
|
58
|
+
"ds-togglegroup": "_ds-togglegroup_7o9n0_1",
|
|
59
|
+
"ds-tooltip": "_ds-tooltip_7o9n0_1",
|
|
60
|
+
"ds-spinner": "_ds-spinner_7o9n0_1",
|
|
61
|
+
"ds-spinner-rotate-animation": "_ds-spinner-rotate-animation_7o9n0_1",
|
|
62
|
+
"ds-spinner__background": "_ds-spinner__background_7o9n0_1",
|
|
63
|
+
"ds-spinner__circle": "_ds-spinner__circle_7o9n0_1",
|
|
64
|
+
"ds-spinner-stroke-animation": "_ds-spinner-stroke-animation_7o9n0_1",
|
|
65
|
+
"ds-table": "_ds-table_7o9n0_1",
|
|
66
|
+
"ds-combobox": "_ds-combobox_7o9n0_1",
|
|
67
|
+
"ds-combobox__options-wrapper": "_ds-combobox__options-wrapper_7o9n0_1",
|
|
68
|
+
"ds-combobox--readonly": "_ds-combobox--readonly_7o9n0_1",
|
|
69
|
+
"ds-combobox__input": "_ds-combobox__input_7o9n0_1",
|
|
70
|
+
"ds-combobox__input__wrapper": "_ds-combobox__input__wrapper_7o9n0_1",
|
|
71
|
+
"ds-combobox--sm": "_ds-combobox--sm_7o9n0_1",
|
|
72
|
+
"ds-combobox--md": "_ds-combobox--md_7o9n0_1",
|
|
73
|
+
"ds-combobox--lg": "_ds-combobox--lg_7o9n0_1",
|
|
74
|
+
"ds-combobox--error": "_ds-combobox--error_7o9n0_1",
|
|
75
|
+
"ds-combobox__chip-and-input": "_ds-combobox__chip-and-input_7o9n0_1",
|
|
76
|
+
"ds-combobox__arrow": "_ds-combobox__arrow_7o9n0_1",
|
|
77
|
+
"ds-combobox__label": "_ds-combobox__label_7o9n0_1",
|
|
78
|
+
"ds-combobox__description": "_ds-combobox__description_7o9n0_1",
|
|
79
|
+
"ds-combobox__clear-button": "_ds-combobox__clear-button_7o9n0_1",
|
|
80
|
+
"ds-combobox__disabled": "_ds-combobox__disabled_7o9n0_1",
|
|
81
|
+
"ds-combobox__readonly__icon": "_ds-combobox__readonly__icon_7o9n0_1",
|
|
82
|
+
"ds-combobox__error-message": "_ds-combobox__error-message_7o9n0_1",
|
|
83
|
+
"ds-combobox__loading": "_ds-combobox__loading_7o9n0_1",
|
|
84
|
+
"ds-combobox__custom": "_ds-combobox__custom_7o9n0_1",
|
|
85
|
+
"ds-combobox__empty": "_ds-combobox__empty_7o9n0_1",
|
|
86
|
+
"ds-combobox__option": "_ds-combobox__option_7o9n0_1",
|
|
87
|
+
"ds-combobox__option--active": "_ds-combobox__option--active_7o9n0_1",
|
|
88
|
+
"ds-combobox__option--multiple": "_ds-combobox__option--multiple_7o9n0_1",
|
|
89
|
+
"ds-combobox__option__label": "_ds-combobox__option__label_7o9n0_1",
|
|
90
|
+
"ds-combobox__option__icon-wrapper": "_ds-combobox__option__icon-wrapper_7o9n0_1",
|
|
91
|
+
"ds-combobox__option__icon-wrapper--selected": "_ds-combobox__option__icon-wrapper--selected_7o9n0_1",
|
|
92
|
+
"ds-combobox__option__icon-wrapper__icon": "_ds-combobox__option__icon-wrapper__icon_7o9n0_1",
|
|
93
|
+
"ds-combobox__option__description": "_ds-combobox__option__description_7o9n0_1",
|
|
94
|
+
"ds-breadcrumbs": "_ds-breadcrumbs_7o9n0_1",
|
|
95
|
+
"ds-badge": "_ds-badge_7o9n0_1",
|
|
96
|
+
"ds-badge--position": "_ds-badge--position_7o9n0_1",
|
|
97
|
+
"ds-avatar": "_ds-avatar_7o9n0_1",
|
|
2
98
|
alert: _,
|
|
3
|
-
avatar:
|
|
4
|
-
breadcrumbs:
|
|
5
|
-
button:
|
|
6
|
-
card:
|
|
7
|
-
chip:
|
|
8
|
-
details:
|
|
9
|
-
errorsummary:
|
|
10
|
-
field:
|
|
11
|
-
fieldChildAdded:
|
|
12
|
-
affixes:
|
|
13
|
-
count:
|
|
99
|
+
avatar: o,
|
|
100
|
+
breadcrumbs: d,
|
|
101
|
+
button: s,
|
|
102
|
+
card: n,
|
|
103
|
+
chip: e,
|
|
104
|
+
details: t,
|
|
105
|
+
errorsummary: i,
|
|
106
|
+
field: a,
|
|
107
|
+
fieldChildAdded: l,
|
|
108
|
+
affixes: r,
|
|
109
|
+
count: b,
|
|
14
110
|
fieldset: c,
|
|
15
|
-
fieldsetValidationAdded:
|
|
16
|
-
input:
|
|
17
|
-
grid:
|
|
18
|
-
flex:
|
|
19
|
-
box:
|
|
20
|
-
link:
|
|
21
|
-
logo:
|
|
22
|
-
modal:
|
|
23
|
-
pagination:
|
|
24
|
-
popover:
|
|
25
|
-
table:
|
|
111
|
+
fieldsetValidationAdded: p,
|
|
112
|
+
input: x,
|
|
113
|
+
grid: m,
|
|
114
|
+
flex: f,
|
|
115
|
+
box: u,
|
|
116
|
+
link: g,
|
|
117
|
+
logo: y,
|
|
118
|
+
modal: h,
|
|
119
|
+
pagination: v,
|
|
120
|
+
popover: k,
|
|
121
|
+
table: w,
|
|
26
122
|
scrollShadow: A,
|
|
27
123
|
tableChildAdded: C,
|
|
28
|
-
tabs:
|
|
29
|
-
tag:
|
|
30
|
-
validation:
|
|
31
|
-
body:
|
|
124
|
+
tabs: S,
|
|
125
|
+
tag: V,
|
|
126
|
+
validation: j,
|
|
127
|
+
body: q
|
|
32
128
|
};
|
|
33
129
|
export {
|
|
34
|
-
|
|
130
|
+
r as affixes,
|
|
35
131
|
_ as alert,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
132
|
+
o as avatar,
|
|
133
|
+
q as body,
|
|
134
|
+
u as box,
|
|
135
|
+
d as breadcrumbs,
|
|
136
|
+
s as button,
|
|
137
|
+
n as card,
|
|
138
|
+
e as chip,
|
|
139
|
+
b as count,
|
|
140
|
+
z as default,
|
|
141
|
+
t as details,
|
|
142
|
+
i as errorsummary,
|
|
143
|
+
a as field,
|
|
144
|
+
l as fieldChildAdded,
|
|
49
145
|
c as fieldset,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
146
|
+
p as fieldsetValidationAdded,
|
|
147
|
+
f as flex,
|
|
148
|
+
m as grid,
|
|
149
|
+
x as input,
|
|
150
|
+
g as link,
|
|
151
|
+
y as logo,
|
|
152
|
+
h as modal,
|
|
153
|
+
v as pagination,
|
|
154
|
+
k as popover,
|
|
59
155
|
A as scrollShadow,
|
|
60
|
-
|
|
156
|
+
w as table,
|
|
61
157
|
C as tableChildAdded,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
158
|
+
S as tabs,
|
|
159
|
+
V as tag,
|
|
160
|
+
j as validation
|
|
65
161
|
};
|
|
66
162
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/mtds/table/table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import f from "../styles.module.css.js";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
import { onAdd as d } from "../utils.js";
|
|
3
|
+
const i = f.table.split(" ")[0], l = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
function b(t) {
|
|
5
5
|
var o, e;
|
|
6
6
|
for (const n of t) if (n instanceof HTMLTableElement) {
|
|
7
7
|
const a = Array.from(((e = (o = n.tHead) == null ? void 0 : o.rows[0]) == null ? void 0 : e.cells) || [], (r) => {
|
|
@@ -14,17 +14,16 @@ function m(t) {
|
|
|
14
14
|
c.setAttribute("data-th", a[c.cellIndex] || "");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const o = t.getElementsByClassName(b), e = i(f.tableChildAdded, () => m(o));
|
|
17
|
+
function u(t) {
|
|
18
|
+
const o = t.getElementsByClassName(i), e = d(f.tableChildAdded, () => b(o));
|
|
20
19
|
l.set(t, e), e.observe(t);
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function A(t) {
|
|
23
22
|
var o;
|
|
24
23
|
(o = l.get(t)) == null || o.disconnect(t);
|
|
25
24
|
}
|
|
26
25
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
u as observe,
|
|
27
|
+
A as unobserve
|
|
29
28
|
};
|
|
30
29
|
//# sourceMappingURL=table.js.map
|
package/mtds/table/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":["../../designsystem/table/table.ts"],"sourcesContent":["import styles from '../styles.module.css';\nimport {
|
|
1
|
+
{"version":3,"file":"table.js","sources":["../../designsystem/table/table.ts"],"sourcesContent":["import styles from '../styles.module.css';\nimport { onAdd } from '../utils';\nconst CSS_TABLE = styles.table.split(' ')[0];\nconst BOUND = new WeakMap<Element | Document, ReturnType<typeof onAdd>>();\n\nfunction process(tables: HTMLCollectionOf<Element>) {\n for(const table of tables) if (table instanceof HTMLTableElement) {\n const ths = Array.from(table.tHead?.rows[0]?.cells || [], (el) => el.innerText?.trim()); // Using innerText to only include visible text\n for (const tbody of table.tBodies) {\n for (const row of tbody.rows) {\n for (const cell of row.cells) {\n cell.setAttribute('data-th', ths[cell.cellIndex] || '');\n }\n }\n }\n }\n}\n\nexport function observe (el: Element | Document) {\n const tables = el.getElementsByClassName(CSS_TABLE);\n const add = onAdd(styles.tableChildAdded, () => process(tables));\n BOUND.set(el, add);\n add.observe(el);\n}\n\nexport function unobserve (el: Element | Document) {\n BOUND.get(el)?.disconnect(el);\n}\n"],"names":["CSS_TABLE","styles","BOUND","process","tables","table","ths","_b","_a","el","tbody","row","cell","observe","add","onAdd","unobserve"],"mappings":";;AAEA,MAAMA,IAAYC,EAAO,MAAM,MAAM,GAAG,EAAE,CAAC,GACrCC,wBAAY,QAAsD;AAExE,SAASC,EAAQC,GAAmC;;AAClD,aAAUC,KAASD,EAAY,KAAAC,aAAiB,kBAAkB;AAChE,UAAMC,IAAM,MAAM,OAAKC,KAAAC,IAAAH,EAAM,UAAN,gBAAAG,EAAa,KAAK,OAAlB,gBAAAD,EAAsB,UAAS,IAAI,CAACE,MAAO;;AAAA,cAAAD,IAAAC,EAAG,cAAH,gBAAAD,EAAc;AAAA,KAAM;AAC3E,eAAAE,KAASL,EAAM;AACb,iBAAAM,KAAOD,EAAM;AACX,mBAAAE,KAAQD,EAAI;AACrB,UAAAC,EAAK,aAAa,WAAWN,EAAIM,EAAK,SAAS,KAAK,EAAE;AAAA,EAG5D;AAEJ;AAEO,SAASC,EAASJ,GAAwB;AACzC,QAAAL,IAASK,EAAG,uBAAuBT,CAAS,GAC5Cc,IAAMC,EAAMd,EAAO,iBAAiB,MAAME,EAAQC,CAAM,CAAC;AACzD,EAAAF,EAAA,IAAIO,GAAIK,CAAG,GACjBA,EAAI,QAAQL,CAAE;AAChB;AAEO,SAASO,EAAWP,GAAwB;;AACjD,GAAAD,IAAAN,EAAM,IAAIO,CAAE,MAAZ,QAAAD,EAAe,WAAWC;AAC5B;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattilsynet/design",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./mtds/index.js",
|
|
6
6
|
"types": "./mtds/index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"build": "vite build && rm -rf mtds/docs/",
|
|
30
30
|
"lint": "npx @biomejs/biome lint",
|
|
31
31
|
"publish:clojure": "npm run build && cd ./clojure && ./publish.sh",
|
|
32
|
-
"publish:minor": "npm
|
|
33
|
-
"publish:patch": "npm
|
|
32
|
+
"publish:minor": "npm version minor --message 'Release %s' && npm run build && git push --tags && npm publish --access public",
|
|
33
|
+
"publish:patch": "npm version patch --message 'Release %s' && npm run build && git push --tags && npm publish --access public",
|
|
34
34
|
"start": "vite",
|
|
35
35
|
"storybook": "storybook dev -p 6006",
|
|
36
36
|
"storybook:build": "npm run build && storybook build"
|