@mozaic-ds/web-components 0.4.1-beta.0 → 0.5.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/package.json +1 -1
- package/public/ClickOutside-63071e7a.js +15 -1
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-4da4dc44.js +759 -1
- package/public/DataTableDefaultAction.nested-4da4dc44.js.map +1 -1
- package/public/DataTableUtilities-60220c78.js +370 -1
- package/public/DataTableUtilities-60220c78.js.map +1 -1
- package/public/EventForward-8492ff62.js +109 -1
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +15 -1
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/array-5b770a93.js +13 -1
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +174 -1
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +186 -1
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/components/accordion/Accordion.js +365 -1
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1515 -1
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/badge/Badge.js +155 -1
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +101 -1
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +372 -1
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +319 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1138 -1
- package/public/components/button/Button.js.map +1 -1
- package/public/components/card/Card.js +369 -1
- package/public/components/card/Card.js.map +1 -1
- package/public/components/chart/BarChart.js +582 -1
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1189 -1
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +750 -1
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1731 -1
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +729 -1
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +745 -1
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +307 -1
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js +404 -1
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/datatable/DataTable.js +3064 -1
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js +4 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +164 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +380 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +424 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +263 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +637 -1
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/dropdown/Dropdown.js +1426 -1
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +375 -1
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +555 -1
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/ResultFile.nested.js +265 -1
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +174 -1
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +903 -1
- package/public/components/header/Header.js.map +1 -1
- package/public/components/hero/Hero.js +271 -1
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/layer/Layer.js +453 -1
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/link/Link.js +380 -1
- package/public/components/link/Link.js.map +1 -1
- package/public/components/listbox/Listbox.js +595 -1
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +629 -1
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +246 -1
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +176 -1
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +395 -1
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +458 -1
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +316 -1
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +104 -1
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +151 -1
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +613 -1
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +291 -1
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +6894 -1
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.svelte +72 -9
- package/public/components/price/Price.js +768 -1
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +278 -1
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +333 -1
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/radio/Radio.js +273 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +414 -1
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/ratings/StarsInput.js +292 -1
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +246 -1
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/select/Select.js +451 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +784 -1
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +594 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +402 -1
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +394 -1
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +200 -1
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +49 -1
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +312 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +733 -1
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/stepper/Stepper.js +371 -1
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +615 -1
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +472 -1
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +665 -1
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +554 -1
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/taglist/TagList.js +475 -1
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +303 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +497 -1
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +320 -1
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +278 -1
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +173 -1
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/index-c33b3772.js +873 -1
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +700 -1
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/path-1b5da959.js +186 -1
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +129 -1
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/symbol-b05a6e2b.js +169 -1
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +2743 -1
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +1 -1
|
@@ -1,2 +1,473 @@
|
|
|
1
|
-
import{P as
|
|
1
|
+
import { P as SvelteComponent, i as init, s as safe_not_equal, Q as append_styles, e as element, g as attr, b as insert, j as append, n as noop, o as detach, J as destroy_each, d as space, v as binding_callbacks, t as text, R as null_to_empty, l as listen, k as set_data, K as empty } from '../../index-c33b3772.js';
|
|
2
|
+
import { E as EventHandler } from '../../EventHandler-02058705.js';
|
|
3
|
+
|
|
4
|
+
/* src/components/tabs/Tabs.nested.svelte generated by Svelte v3.58.0 */
|
|
5
|
+
|
|
6
|
+
function add_css(target) {
|
|
7
|
+
append_styles(target, "svelte-1ygf0po", ".mc-tabs.svelte-1ygf0po.svelte-1ygf0po{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;background-color:#ffffff;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;width:100%}.mc-tabs.svelte-1ygf0po.svelte-1ygf0po::after{background:#b3b3b3;content:\"\";display:block;margin:0 auto;height:1px;width:100%;bottom:0;left:0;position:absolute}.mc-tabs--no-shadow.svelte-1ygf0po.svelte-1ygf0po::after,.mc-tabs--no-divider.svelte-1ygf0po.svelte-1ygf0po::after{display:none}.mc-tabs__nav.svelte-1ygf0po.svelte-1ygf0po{list-style:none;margin-left:0;padding-left:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:0;margin-bottom:0}.mc-tabs__nav.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs__select.svelte-1ygf0po.svelte-1ygf0po{position:relative}.mc-tabs__link.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs__element.svelte-1ygf0po.svelte-1ygf0po{font-size:0.875rem;line-height:1.2857142857;font-weight:600;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:none;border:none;color:#666666;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:3.5rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;outline:none;padding-left:0.75rem;padding-right:0.75rem;position:relative;text-decoration:none}.mc-tabs__link.svelte-1ygf0po.svelte-1ygf0po::before,.mc-tabs__element.svelte-1ygf0po.svelte-1ygf0po::before{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;bottom:-0.125rem;top:-0.125rem}.mc-tabs__link.svelte-1ygf0po.svelte-1ygf0po::after,.mc-tabs__element.svelte-1ygf0po.svelte-1ygf0po::after{background-color:transparent;bottom:0;content:\"\";height:0.25rem;left:1.5rem;position:absolute;right:1.5rem}.mc-tabs__link.svelte-1ygf0po:hover .mc-tabs__text.svelte-1ygf0po,.mc-tabs__element.svelte-1ygf0po:hover .mc-tabs__text.svelte-1ygf0po{background-color:#eeeff1}.mc-tabs__link.svelte-1ygf0po.svelte-1ygf0po:active,.mc-tabs__element.svelte-1ygf0po.svelte-1ygf0po:active{color:#333333}.mc-tabs__link.svelte-1ygf0po:active .mc-tabs__text.svelte-1ygf0po,.mc-tabs__element.svelte-1ygf0po:active .mc-tabs__text.svelte-1ygf0po{background-color:#cfd2d8}.mc-tabs__link.svelte-1ygf0po.svelte-1ygf0po:focus::before,.mc-tabs__element.svelte-1ygf0po.svelte-1ygf0po:focus::before{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-tabs__link--selected.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs__element--selected.svelte-1ygf0po.svelte-1ygf0po{color:#000000}.mc-tabs__link--selected.svelte-1ygf0po.svelte-1ygf0po::after,.mc-tabs__element--selected.svelte-1ygf0po.svelte-1ygf0po::after{background-color:#000000}.mc-tabs__link--disabled.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs__element--disabled.svelte-1ygf0po.svelte-1ygf0po{cursor:not-allowed;background-color:#cccccc;pointer-events:none}.mc-tabs__link--disabled.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs__link--disabled.svelte-1ygf0po.svelte-1ygf0po:hover,.mc-tabs__link--disabled.svelte-1ygf0po.svelte-1ygf0po:focus,.mc-tabs__link--disabled.svelte-1ygf0po.svelte-1ygf0po:active,.mc-tabs__element--disabled.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs__element--disabled.svelte-1ygf0po.svelte-1ygf0po:hover,.mc-tabs__element--disabled.svelte-1ygf0po.svelte-1ygf0po:focus,.mc-tabs__element--disabled.svelte-1ygf0po.svelte-1ygf0po:active{-webkit-box-shadow:none;box-shadow:none}.mc-tabs__text.svelte-1ygf0po.svelte-1ygf0po{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:0.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;gap:0.25rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;padding:0.4375rem 0.75rem;pointer-events:none}.mc-tabs__icon.svelte-1ygf0po.svelte-1ygf0po{fill:currentColor;height:1.5rem;width:1.5rem}.mc-tabs--full-centered.svelte-1ygf0po.svelte-1ygf0po{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-tabs--dropdown.svelte-1ygf0po.svelte-1ygf0po{padding:1rem;width:auto}@media screen and (min-width: 680px){.mc-tabs.svelte-1ygf0po.svelte-1ygf0po{width:auto}.mc-tabs--full.svelte-1ygf0po.svelte-1ygf0po,.mc-tabs--full-centered.svelte-1ygf0po.svelte-1ygf0po{width:100%}}@media screen and (max-width: 679px){.mc-tabs.svelte-1ygf0po.svelte-1ygf0po:not(.mc-tabs--dropdown)::before{bottom:0.125rem}.mc-tabs__nav.svelte-1ygf0po.svelte-1ygf0po{overflow:auto hidden;white-space:nowrap}}");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function get_each_context(ctx, list, i) {
|
|
11
|
+
const child_ctx = ctx.slice();
|
|
12
|
+
child_ctx[12] = list[i];
|
|
13
|
+
child_ctx[14] = i;
|
|
14
|
+
return child_ctx;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// (75:8) {:else}
|
|
18
|
+
function create_else_block_1(ctx) {
|
|
19
|
+
let button;
|
|
20
|
+
let span;
|
|
21
|
+
let t_value = /*tab*/ ctx[12].text + "";
|
|
22
|
+
let t;
|
|
23
|
+
let button_class_value;
|
|
24
|
+
let button_id_value;
|
|
25
|
+
let button_disabled_value;
|
|
26
|
+
let button_aria_selected_value;
|
|
27
|
+
let mounted;
|
|
28
|
+
let dispose;
|
|
29
|
+
|
|
30
|
+
function click_handler_1(...args) {
|
|
31
|
+
return /*click_handler_1*/ ctx[9](/*index*/ ctx[14], /*tab*/ ctx[12], ...args);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
c() {
|
|
36
|
+
button = element("button");
|
|
37
|
+
span = element("span");
|
|
38
|
+
t = text(t_value);
|
|
39
|
+
attr(span, "class", "mc-tabs__text svelte-1ygf0po");
|
|
40
|
+
attr(button, "role", "tab");
|
|
41
|
+
attr(button, "type", "button");
|
|
42
|
+
attr(button, "class", button_class_value = "" + (null_to_empty(setActiveClass(/*tab*/ ctx[12])) + " svelte-1ygf0po"));
|
|
43
|
+
attr(button, "id", button_id_value = /*tab*/ ctx[12].id);
|
|
44
|
+
button.disabled = button_disabled_value = /*tab*/ ctx[12].disabled;
|
|
45
|
+
attr(button, "aria-selected", button_aria_selected_value = /*tab*/ ctx[12].isActive ? 'true' : 'false');
|
|
46
|
+
},
|
|
47
|
+
m(target, anchor) {
|
|
48
|
+
insert(target, button, anchor);
|
|
49
|
+
append(button, span);
|
|
50
|
+
append(span, t);
|
|
51
|
+
|
|
52
|
+
if (!mounted) {
|
|
53
|
+
dispose = listen(button, "click", click_handler_1);
|
|
54
|
+
mounted = true;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
p(new_ctx, dirty) {
|
|
58
|
+
ctx = new_ctx;
|
|
59
|
+
if (dirty & /*parsedTabs*/ 32 && t_value !== (t_value = /*tab*/ ctx[12].text + "")) set_data(t, t_value);
|
|
60
|
+
|
|
61
|
+
if (dirty & /*parsedTabs*/ 32 && button_class_value !== (button_class_value = "" + (null_to_empty(setActiveClass(/*tab*/ ctx[12])) + " svelte-1ygf0po"))) {
|
|
62
|
+
attr(button, "class", button_class_value);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (dirty & /*parsedTabs*/ 32 && button_id_value !== (button_id_value = /*tab*/ ctx[12].id)) {
|
|
66
|
+
attr(button, "id", button_id_value);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (dirty & /*parsedTabs*/ 32 && button_disabled_value !== (button_disabled_value = /*tab*/ ctx[12].disabled)) {
|
|
70
|
+
button.disabled = button_disabled_value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (dirty & /*parsedTabs*/ 32 && button_aria_selected_value !== (button_aria_selected_value = /*tab*/ ctx[12].isActive ? 'true' : 'false')) {
|
|
74
|
+
attr(button, "aria-selected", button_aria_selected_value);
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
d(detaching) {
|
|
78
|
+
if (detaching) detach(button);
|
|
79
|
+
mounted = false;
|
|
80
|
+
dispose();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// (48:8) {#if tab.href}
|
|
86
|
+
function create_if_block(ctx) {
|
|
87
|
+
let if_block_anchor;
|
|
88
|
+
|
|
89
|
+
function select_block_type_1(ctx, dirty) {
|
|
90
|
+
if (!/*tab*/ ctx[12].disabled) return create_if_block_1;
|
|
91
|
+
return create_else_block;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
let current_block_type = select_block_type_1(ctx);
|
|
95
|
+
let if_block = current_block_type(ctx);
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
c() {
|
|
99
|
+
if_block.c();
|
|
100
|
+
if_block_anchor = empty();
|
|
101
|
+
},
|
|
102
|
+
m(target, anchor) {
|
|
103
|
+
if_block.m(target, anchor);
|
|
104
|
+
insert(target, if_block_anchor, anchor);
|
|
105
|
+
},
|
|
106
|
+
p(ctx, dirty) {
|
|
107
|
+
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) {
|
|
108
|
+
if_block.p(ctx, dirty);
|
|
109
|
+
} else {
|
|
110
|
+
if_block.d(1);
|
|
111
|
+
if_block = current_block_type(ctx);
|
|
112
|
+
|
|
113
|
+
if (if_block) {
|
|
114
|
+
if_block.c();
|
|
115
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
d(detaching) {
|
|
120
|
+
if_block.d(detaching);
|
|
121
|
+
if (detaching) detach(if_block_anchor);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// (63:10) {:else}
|
|
127
|
+
function create_else_block(ctx) {
|
|
128
|
+
let span1;
|
|
129
|
+
let span0;
|
|
130
|
+
let t_value = /*tab*/ ctx[12].text + "";
|
|
131
|
+
let t;
|
|
132
|
+
let span1_class_value;
|
|
133
|
+
let span1_id_value;
|
|
134
|
+
let span1_aria_selected_value;
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
c() {
|
|
138
|
+
span1 = element("span");
|
|
139
|
+
span0 = element("span");
|
|
140
|
+
t = text(t_value);
|
|
141
|
+
attr(span0, "class", "mc-tabs__text svelte-1ygf0po");
|
|
142
|
+
attr(span1, "role", "tab");
|
|
143
|
+
attr(span1, "class", span1_class_value = "" + (null_to_empty(setActiveClass(/*tab*/ ctx[12])) + " svelte-1ygf0po"));
|
|
144
|
+
attr(span1, "id", span1_id_value = /*tab*/ ctx[12].id);
|
|
145
|
+
attr(span1, "aria-selected", span1_aria_selected_value = /*tab*/ ctx[12].isActive ? 'true' : 'false');
|
|
146
|
+
},
|
|
147
|
+
m(target, anchor) {
|
|
148
|
+
insert(target, span1, anchor);
|
|
149
|
+
append(span1, span0);
|
|
150
|
+
append(span0, t);
|
|
151
|
+
},
|
|
152
|
+
p(ctx, dirty) {
|
|
153
|
+
if (dirty & /*parsedTabs*/ 32 && t_value !== (t_value = /*tab*/ ctx[12].text + "")) set_data(t, t_value);
|
|
154
|
+
|
|
155
|
+
if (dirty & /*parsedTabs*/ 32 && span1_class_value !== (span1_class_value = "" + (null_to_empty(setActiveClass(/*tab*/ ctx[12])) + " svelte-1ygf0po"))) {
|
|
156
|
+
attr(span1, "class", span1_class_value);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (dirty & /*parsedTabs*/ 32 && span1_id_value !== (span1_id_value = /*tab*/ ctx[12].id)) {
|
|
160
|
+
attr(span1, "id", span1_id_value);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (dirty & /*parsedTabs*/ 32 && span1_aria_selected_value !== (span1_aria_selected_value = /*tab*/ ctx[12].isActive ? 'true' : 'false')) {
|
|
164
|
+
attr(span1, "aria-selected", span1_aria_selected_value);
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
d(detaching) {
|
|
168
|
+
if (detaching) detach(span1);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// (49:10) {#if !tab.disabled}
|
|
174
|
+
function create_if_block_1(ctx) {
|
|
175
|
+
let a;
|
|
176
|
+
let span;
|
|
177
|
+
let t_value = /*tab*/ ctx[12].text + "";
|
|
178
|
+
let t;
|
|
179
|
+
let a_href_value;
|
|
180
|
+
let a_class_value;
|
|
181
|
+
let a_id_value;
|
|
182
|
+
let a_aria_selected_value;
|
|
183
|
+
let mounted;
|
|
184
|
+
let dispose;
|
|
185
|
+
|
|
186
|
+
function click_handler(...args) {
|
|
187
|
+
return /*click_handler*/ ctx[8](/*index*/ ctx[14], /*tab*/ ctx[12], ...args);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
c() {
|
|
192
|
+
a = element("a");
|
|
193
|
+
span = element("span");
|
|
194
|
+
t = text(t_value);
|
|
195
|
+
attr(span, "class", "mc-tabs__text svelte-1ygf0po");
|
|
196
|
+
attr(a, "href", a_href_value = /*tab*/ ctx[12].href);
|
|
197
|
+
attr(a, "role", "tab");
|
|
198
|
+
attr(a, "class", a_class_value = "" + (null_to_empty(setActiveClass(/*tab*/ ctx[12])) + " svelte-1ygf0po"));
|
|
199
|
+
attr(a, "id", a_id_value = /*tab*/ ctx[12].id);
|
|
200
|
+
attr(a, "aria-selected", a_aria_selected_value = /*tab*/ ctx[12].isActive ? 'true' : 'false');
|
|
201
|
+
},
|
|
202
|
+
m(target, anchor) {
|
|
203
|
+
insert(target, a, anchor);
|
|
204
|
+
append(a, span);
|
|
205
|
+
append(span, t);
|
|
206
|
+
|
|
207
|
+
if (!mounted) {
|
|
208
|
+
dispose = listen(a, "click", click_handler);
|
|
209
|
+
mounted = true;
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
p(new_ctx, dirty) {
|
|
213
|
+
ctx = new_ctx;
|
|
214
|
+
if (dirty & /*parsedTabs*/ 32 && t_value !== (t_value = /*tab*/ ctx[12].text + "")) set_data(t, t_value);
|
|
215
|
+
|
|
216
|
+
if (dirty & /*parsedTabs*/ 32 && a_href_value !== (a_href_value = /*tab*/ ctx[12].href)) {
|
|
217
|
+
attr(a, "href", a_href_value);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (dirty & /*parsedTabs*/ 32 && a_class_value !== (a_class_value = "" + (null_to_empty(setActiveClass(/*tab*/ ctx[12])) + " svelte-1ygf0po"))) {
|
|
221
|
+
attr(a, "class", a_class_value);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (dirty & /*parsedTabs*/ 32 && a_id_value !== (a_id_value = /*tab*/ ctx[12].id)) {
|
|
225
|
+
attr(a, "id", a_id_value);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (dirty & /*parsedTabs*/ 32 && a_aria_selected_value !== (a_aria_selected_value = /*tab*/ ctx[12].isActive ? 'true' : 'false')) {
|
|
229
|
+
attr(a, "aria-selected", a_aria_selected_value);
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
d(detaching) {
|
|
233
|
+
if (detaching) detach(a);
|
|
234
|
+
mounted = false;
|
|
235
|
+
dispose();
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// (46:4) {#each parsedTabs as tab, index}
|
|
241
|
+
function create_each_block(ctx) {
|
|
242
|
+
let li;
|
|
243
|
+
let t;
|
|
244
|
+
|
|
245
|
+
function select_block_type(ctx, dirty) {
|
|
246
|
+
if (/*tab*/ ctx[12].href) return create_if_block;
|
|
247
|
+
return create_else_block_1;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
let current_block_type = select_block_type(ctx);
|
|
251
|
+
let if_block = current_block_type(ctx);
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
c() {
|
|
255
|
+
li = element("li");
|
|
256
|
+
if_block.c();
|
|
257
|
+
t = space();
|
|
258
|
+
attr(li, "class", "mc-tabs__item");
|
|
259
|
+
attr(li, "role", "presentation");
|
|
260
|
+
},
|
|
261
|
+
m(target, anchor) {
|
|
262
|
+
insert(target, li, anchor);
|
|
263
|
+
if_block.m(li, null);
|
|
264
|
+
append(li, t);
|
|
265
|
+
},
|
|
266
|
+
p(ctx, dirty) {
|
|
267
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
268
|
+
if_block.p(ctx, dirty);
|
|
269
|
+
} else {
|
|
270
|
+
if_block.d(1);
|
|
271
|
+
if_block = current_block_type(ctx);
|
|
272
|
+
|
|
273
|
+
if (if_block) {
|
|
274
|
+
if_block.c();
|
|
275
|
+
if_block.m(li, t);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
d(detaching) {
|
|
280
|
+
if (detaching) detach(li);
|
|
281
|
+
if_block.d();
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
function create_fragment(ctx) {
|
|
287
|
+
let div;
|
|
288
|
+
let ul;
|
|
289
|
+
let div_class_value;
|
|
290
|
+
let each_value = /*parsedTabs*/ ctx[5];
|
|
291
|
+
let each_blocks = [];
|
|
292
|
+
|
|
293
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
294
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
return {
|
|
298
|
+
c() {
|
|
299
|
+
div = element("div");
|
|
300
|
+
ul = element("ul");
|
|
301
|
+
|
|
302
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
303
|
+
each_blocks[i].c();
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
attr(ul, "class", "mc-tabs__nav svelte-1ygf0po");
|
|
307
|
+
attr(ul, "role", "tablist");
|
|
308
|
+
attr(ul, "aria-label", /*description*/ ctx[1]);
|
|
309
|
+
|
|
310
|
+
attr(div, "class", div_class_value = "mc-tabs " + (/*align*/ ctx[0] && /*align*/ ctx[0] === 'full'
|
|
311
|
+
? ' mc-tabs--full'
|
|
312
|
+
: '') + " " + (/*align*/ ctx[0] && /*align*/ ctx[0] === 'centered'
|
|
313
|
+
? ' mc-tabs--full-centered'
|
|
314
|
+
: '') + " " + (/*type*/ ctx[3] ? ` mc-tabs--${/*type*/ ctx[3]}` : '') + (/*nodivider*/ ctx[2] ? ' mc-tabs--no-divider' : '') + " svelte-1ygf0po");
|
|
315
|
+
},
|
|
316
|
+
m(target, anchor) {
|
|
317
|
+
insert(target, div, anchor);
|
|
318
|
+
append(div, ul);
|
|
319
|
+
|
|
320
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
321
|
+
if (each_blocks[i]) {
|
|
322
|
+
each_blocks[i].m(ul, null);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/*ul_binding*/ ctx[10](ul);
|
|
327
|
+
},
|
|
328
|
+
p(ctx, [dirty]) {
|
|
329
|
+
if (dirty & /*parsedTabs, setActiveClass, manageTabs, Object*/ 96) {
|
|
330
|
+
each_value = /*parsedTabs*/ ctx[5];
|
|
331
|
+
let i;
|
|
332
|
+
|
|
333
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
334
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
|
335
|
+
|
|
336
|
+
if (each_blocks[i]) {
|
|
337
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
338
|
+
} else {
|
|
339
|
+
each_blocks[i] = create_each_block(child_ctx);
|
|
340
|
+
each_blocks[i].c();
|
|
341
|
+
each_blocks[i].m(ul, null);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
for (; i < each_blocks.length; i += 1) {
|
|
346
|
+
each_blocks[i].d(1);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
each_blocks.length = each_value.length;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (dirty & /*description*/ 2) {
|
|
353
|
+
attr(ul, "aria-label", /*description*/ ctx[1]);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
if (dirty & /*align, type, nodivider*/ 13 && div_class_value !== (div_class_value = "mc-tabs " + (/*align*/ ctx[0] && /*align*/ ctx[0] === 'full'
|
|
357
|
+
? ' mc-tabs--full'
|
|
358
|
+
: '') + " " + (/*align*/ ctx[0] && /*align*/ ctx[0] === 'centered'
|
|
359
|
+
? ' mc-tabs--full-centered'
|
|
360
|
+
: '') + " " + (/*type*/ ctx[3] ? ` mc-tabs--${/*type*/ ctx[3]}` : '') + (/*nodivider*/ ctx[2] ? ' mc-tabs--no-divider' : '') + " svelte-1ygf0po")) {
|
|
361
|
+
attr(div, "class", div_class_value);
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
i: noop,
|
|
365
|
+
o: noop,
|
|
366
|
+
d(detaching) {
|
|
367
|
+
if (detaching) detach(div);
|
|
368
|
+
destroy_each(each_blocks, detaching);
|
|
369
|
+
/*ul_binding*/ ctx[10](null);
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
function setActiveClass(tab) {
|
|
375
|
+
const tabClasses = ['mc-tabs__element'];
|
|
376
|
+
|
|
377
|
+
if (tab.isActive) {
|
|
378
|
+
tabClasses.push('mc-tabs__element--selected');
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (tab.disabled) {
|
|
382
|
+
tabClasses.push('mc-tabs__element--disabled');
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return tabClasses.join(' ');
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
function instance($$self, $$props, $$invalidate) {
|
|
389
|
+
let parsedTabs;
|
|
390
|
+
let { align = 'auto' } = $$props;
|
|
391
|
+
let { description = 'Tabs' } = $$props;
|
|
392
|
+
let { nodivider = false } = $$props;
|
|
393
|
+
let { tabs } = $$props;
|
|
394
|
+
let { type = 'tabs' } = $$props;
|
|
395
|
+
let eventHandler = new EventHandler();
|
|
396
|
+
let tablist;
|
|
397
|
+
|
|
398
|
+
function manageTabs(e, tabItem) {
|
|
399
|
+
const currentEl = e.target;
|
|
400
|
+
|
|
401
|
+
tablist.querySelectorAll('.mc-tabs__element').forEach(el => {
|
|
402
|
+
el.classList.remove('mc-tabs__element--selected');
|
|
403
|
+
el.setAttribute('aria-selected', 'false');
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
currentEl.classList.add('mc-tabs__element--selected');
|
|
407
|
+
currentEl.setAttribute('aria-selected', 'true');
|
|
408
|
+
eventHandler.dispatch('tab-clicked', Object.assign(tabItem, { target: currentEl }));
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
const click_handler = (index, tab, event) => manageTabs(event, Object.assign({ index }, tab));
|
|
412
|
+
const click_handler_1 = (index, tab, event) => manageTabs(event, Object.assign({ index }, tab));
|
|
413
|
+
|
|
414
|
+
function ul_binding($$value) {
|
|
415
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
416
|
+
tablist = $$value;
|
|
417
|
+
$$invalidate(4, tablist);
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
$$self.$$set = $$props => {
|
|
422
|
+
if ('align' in $$props) $$invalidate(0, align = $$props.align);
|
|
423
|
+
if ('description' in $$props) $$invalidate(1, description = $$props.description);
|
|
424
|
+
if ('nodivider' in $$props) $$invalidate(2, nodivider = $$props.nodivider);
|
|
425
|
+
if ('tabs' in $$props) $$invalidate(7, tabs = $$props.tabs);
|
|
426
|
+
if ('type' in $$props) $$invalidate(3, type = $$props.type);
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
$$self.$$.update = () => {
|
|
430
|
+
if ($$self.$$.dirty & /*tabs*/ 128) {
|
|
431
|
+
$$invalidate(5, parsedTabs = tabs ? JSON.parse(tabs) : []);
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
return [
|
|
436
|
+
align,
|
|
437
|
+
description,
|
|
438
|
+
nodivider,
|
|
439
|
+
type,
|
|
440
|
+
tablist,
|
|
441
|
+
parsedTabs,
|
|
442
|
+
manageTabs,
|
|
443
|
+
tabs,
|
|
444
|
+
click_handler,
|
|
445
|
+
click_handler_1,
|
|
446
|
+
ul_binding
|
|
447
|
+
];
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
class Tabs_nested extends SvelteComponent {
|
|
451
|
+
constructor(options) {
|
|
452
|
+
super();
|
|
453
|
+
|
|
454
|
+
init(
|
|
455
|
+
this,
|
|
456
|
+
options,
|
|
457
|
+
instance,
|
|
458
|
+
create_fragment,
|
|
459
|
+
safe_not_equal,
|
|
460
|
+
{
|
|
461
|
+
align: 0,
|
|
462
|
+
description: 1,
|
|
463
|
+
nodivider: 2,
|
|
464
|
+
tabs: 7,
|
|
465
|
+
type: 3
|
|
466
|
+
},
|
|
467
|
+
add_css
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export { Tabs_nested as default };
|
|
2
473
|
//# sourceMappingURL=Tabs.nested.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.nested.js","sources":["../../../src/components/tabs/Tabs.nested.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import type { TabsAlign, TabsItems, TabsType } from './tabs.types';\n import { EventHandler } from '../../utilities/EventHandler';\n\n export let align: TabsAlign = 'auto';\n export let description = 'Tabs';\n export let nodivider = false;\n export let tabs: string;\n export let type: TabsType = 'tabs';\n let eventHandler = new EventHandler();\n let tablist: HTMLElement;\n $: parsedTabs = tabs ? (JSON.parse(tabs) as TabsItems[]) : [];\n\n function setActiveClass(tab: TabsItems): string {\n const tabClasses = ['mc-tabs__element'];\n\n if (tab.isActive) {\n tabClasses.push('mc-tabs__element--selected');\n }\n\n if (tab.disabled) {\n tabClasses.push('mc-tabs__element--disabled');\n }\n\n return tabClasses.join(' ');\n }\n\n function manageTabs(e: Event, tabItem: TabsItems): void {\n const currentEl = e.target as HTMLElement;\n\n tablist.querySelectorAll('.mc-tabs__element').forEach((el): void => {\n el.classList.remove('mc-tabs__element--selected');\n el.setAttribute('aria-selected', 'false');\n });\n\n currentEl.classList.add('mc-tabs__element--selected');\n currentEl.setAttribute('aria-selected', 'true');\n\n eventHandler.dispatch(\n 'tab-clicked',\n Object.assign(tabItem, { target: currentEl }),\n );\n }\n</script>\n\n<div\n class=\"mc-tabs\n {align && align === 'full' ? ' mc-tabs--full' : ''}\n {align && align === 'centered' ? ' mc-tabs--full-centered' : ''}\n {type ? ` mc-tabs--${type}` : ''}{nodivider ? ' mc-tabs--no-divider' : ''}\"\n>\n <ul\n class=\"mc-tabs__nav\"\n bind:this={tablist}\n role=\"tablist\"\n aria-label={description}\n >\n {#each parsedTabs as tab, index}\n <li class=\"mc-tabs__item\" role=\"presentation\">\n {#if tab.href}\n {#if !tab.disabled}\n <a\n href={tab.href}\n role=\"tab\"\n class={setActiveClass(tab)}\n id={tab.id}\n aria-selected={tab.isActive ? 'true' : 'false'}\n on:click={(event) =>\n manageTabs(event, Object.assign({ index: index }, tab))}\n >\n <span class=\"mc-tabs__text\">\n {tab.text}\n </span>\n </a>\n {:else}\n <span\n role=\"tab\"\n class={setActiveClass(tab)}\n id={tab.id}\n aria-selected={tab.isActive ? 'true' : 'false'}\n >\n <span class=\"mc-tabs__text\">\n {tab.text}\n </span>\n </span>\n {/if}\n {:else}\n <button\n role=\"tab\"\n type=\"button\"\n class={setActiveClass(tab)}\n id={tab.id}\n disabled={tab.disabled}\n aria-selected={tab.isActive ? 'true' : 'false'}\n on:click={(event) =>\n manageTabs(event, Object.assign({ index: index }, tab))}\n >\n <span class=\"mc-tabs__text\">\n {tab.text}\n </span>\n </button>\n {/if}\n </li>\n {/each}\n </ul>\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.tabs';\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"Tabs.nested.js","sources":["../../../src/components/tabs/Tabs.nested.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import type { TabsAlign, TabsItems, TabsType } from './tabs.types';\n import { EventHandler } from '../../utilities/EventHandler';\n\n export let align: TabsAlign = 'auto';\n export let description = 'Tabs';\n export let nodivider = false;\n export let tabs: string;\n export let type: TabsType = 'tabs';\n let eventHandler = new EventHandler();\n let tablist: HTMLElement;\n $: parsedTabs = tabs ? (JSON.parse(tabs) as TabsItems[]) : [];\n\n function setActiveClass(tab: TabsItems): string {\n const tabClasses = ['mc-tabs__element'];\n\n if (tab.isActive) {\n tabClasses.push('mc-tabs__element--selected');\n }\n\n if (tab.disabled) {\n tabClasses.push('mc-tabs__element--disabled');\n }\n\n return tabClasses.join(' ');\n }\n\n function manageTabs(e: Event, tabItem: TabsItems): void {\n const currentEl = e.target as HTMLElement;\n\n tablist.querySelectorAll('.mc-tabs__element').forEach((el): void => {\n el.classList.remove('mc-tabs__element--selected');\n el.setAttribute('aria-selected', 'false');\n });\n\n currentEl.classList.add('mc-tabs__element--selected');\n currentEl.setAttribute('aria-selected', 'true');\n\n eventHandler.dispatch(\n 'tab-clicked',\n Object.assign(tabItem, { target: currentEl }),\n );\n }\n</script>\n\n<div\n class=\"mc-tabs\n {align && align === 'full' ? ' mc-tabs--full' : ''}\n {align && align === 'centered' ? ' mc-tabs--full-centered' : ''}\n {type ? ` mc-tabs--${type}` : ''}{nodivider ? ' mc-tabs--no-divider' : ''}\"\n>\n <ul\n class=\"mc-tabs__nav\"\n bind:this={tablist}\n role=\"tablist\"\n aria-label={description}\n >\n {#each parsedTabs as tab, index}\n <li class=\"mc-tabs__item\" role=\"presentation\">\n {#if tab.href}\n {#if !tab.disabled}\n <a\n href={tab.href}\n role=\"tab\"\n class={setActiveClass(tab)}\n id={tab.id}\n aria-selected={tab.isActive ? 'true' : 'false'}\n on:click={(event) =>\n manageTabs(event, Object.assign({ index: index }, tab))}\n >\n <span class=\"mc-tabs__text\">\n {tab.text}\n </span>\n </a>\n {:else}\n <span\n role=\"tab\"\n class={setActiveClass(tab)}\n id={tab.id}\n aria-selected={tab.isActive ? 'true' : 'false'}\n >\n <span class=\"mc-tabs__text\">\n {tab.text}\n </span>\n </span>\n {/if}\n {:else}\n <button\n role=\"tab\"\n type=\"button\"\n class={setActiveClass(tab)}\n id={tab.id}\n disabled={tab.disabled}\n aria-selected={tab.isActive ? 'true' : 'false'}\n on:click={(event) =>\n manageTabs(event, Object.assign({ index: index }, tab))}\n >\n <span class=\"mc-tabs__text\">\n {tab.text}\n </span>\n </button>\n {/if}\n </li>\n {/each}\n </ul>\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.tabs';\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAoGe,CAAA,IAAA,OAAA,WAAA,GAAG,KAAC,IAAI,GAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;AARJ,GAAA,IAAA,CAAA,MAAA,EAAA,OAAA,EAAA,kBAAA,GAAA,EAAA,IAAA,aAAA,CAAA,cAAc,SAAC,GAAG,CAAA,EAAA,CAAA,CAAA,CAAA,GAAA,iBAAA,CAAA,CAAA,CAAA;AACrB,GAAA,IAAA,CAAA,MAAA,EAAA,IAAA,EAAA,eAAA,WAAA,GAAG,KAAC,EAAE,CAAA,CAAA;AACA,GAAA,MAAA,CAAA,QAAA,GAAA,qBAAA,WAAA,GAAG,KAAC,QAAQ,CAAA;AACP,GAAA,IAAA,CAAA,MAAA,EAAA,eAAA,EAAA,0BAAA,WAAA,GAAG,CAAC,EAAA,CAAA,CAAA,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA,CAAA;;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