@rededor/cura 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
Files changed (67) hide show
  1. package/dist/cjs/app-globals-bcffd819.js.map +1 -1
  2. package/dist/cjs/{cura-button-transparent_2.cjs.entry.js → cura-accordion_12.cjs.entry.js} +814 -40
  3. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -0
  4. package/dist/cjs/cura-button-transparent.cjs.entry.js +103 -0
  5. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +1 -0
  6. package/dist/cjs/cura-dropdown-search.cjs.entry.js +5 -3
  7. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +3 -0
  11. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +22 -2
  12. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  13. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +10 -43
  14. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +3 -2
  15. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  16. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +1 -5
  17. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
  18. package/dist/collection/components/forms/cura-select/cura-select.css +11 -44
  19. package/dist/collection/components/forms/cura-select/cura-select.js +68 -44
  20. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  21. package/dist/components/cura-dropdown-search.js +6 -3
  22. package/dist/components/cura-dropdown-search.js.map +1 -1
  23. package/dist/components/cura-input-text2.js +4 -7
  24. package/dist/components/cura-input-text2.js.map +1 -1
  25. package/dist/components/cura-select2.js +67 -45
  26. package/dist/components/cura-select2.js.map +1 -1
  27. package/dist/components/index.js.map +1 -1
  28. package/dist/cura/cura.esm.js +1 -1
  29. package/dist/cura/cura.esm.js.map +1 -1
  30. package/dist/cura/p-0b1829ed.entry.js +2 -0
  31. package/dist/cura/p-0b1829ed.entry.js.map +1 -0
  32. package/dist/cura/p-335323b5.entry.js +2 -0
  33. package/dist/cura/p-335323b5.entry.js.map +1 -0
  34. package/dist/cura/p-70c369b1.js.map +1 -1
  35. package/dist/cura/p-89014323.entry.js +2 -0
  36. package/dist/cura/p-89014323.entry.js.map +1 -0
  37. package/dist/esm/app-globals-f2da2b14.js.map +1 -1
  38. package/dist/esm/{cura-button-transparent_2.entry.js → cura-accordion_12.entry.js} +804 -40
  39. package/dist/esm/cura-accordion_12.entry.js.map +1 -0
  40. package/dist/esm/cura-button-transparent.entry.js +99 -0
  41. package/dist/esm/cura-button-transparent.entry.js.map +1 -0
  42. package/dist/esm/cura-dropdown-search.entry.js +5 -3
  43. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  44. package/dist/esm/cura.js +1 -1
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +6 -0
  47. package/dist/types/components/forms/cura-select/cura-select.d.ts +8 -11
  48. package/dist/types/components.d.ts +8 -0
  49. package/package.json +2 -2
  50. package/dist/cjs/cura-accordion_9.cjs.entry.js +0 -545
  51. package/dist/cjs/cura-accordion_9.cjs.entry.js.map +0 -1
  52. package/dist/cjs/cura-button-transparent_2.cjs.entry.js.map +0 -1
  53. package/dist/cjs/cura-select_2.cjs.entry.js +0 -325
  54. package/dist/cjs/cura-select_2.cjs.entry.js.map +0 -1
  55. package/dist/cura/p-11e828b5.entry.js +0 -2
  56. package/dist/cura/p-11e828b5.entry.js.map +0 -1
  57. package/dist/cura/p-25de72c5.entry.js +0 -2
  58. package/dist/cura/p-25de72c5.entry.js.map +0 -1
  59. package/dist/cura/p-539fce94.entry.js +0 -2
  60. package/dist/cura/p-539fce94.entry.js.map +0 -1
  61. package/dist/cura/p-a5e53dd4.entry.js +0 -2
  62. package/dist/cura/p-a5e53dd4.entry.js.map +0 -1
  63. package/dist/esm/cura-accordion_9.entry.js +0 -533
  64. package/dist/esm/cura-accordion_9.entry.js.map +0 -1
  65. package/dist/esm/cura-button-transparent_2.entry.js.map +0 -1
  66. package/dist/esm/cura-select_2.entry.js +0 -320
  67. package/dist/esm/cura-select_2.entry.js.map +0 -1
@@ -1,533 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-1ad98520.js';
2
- import { m as microIcons, i as iconSizes } from './cura-icon.definitions-aaa4e80f.js';
3
-
4
- const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}:host::after{content:\"\";display:block;border-bottom:solid 1px var(--neutral-base);width:100%}";
5
- const CuraAccordionStyle0 = curaAccordionCss;
6
-
7
- const CuraAccordion = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.mutationObserverCallback = (mutations, _) => {
11
- var _a;
12
- for (const mutation of mutations) {
13
- if (mutation.type === 'attributes' && mutation.attributeName === 'opened' && ((_a = mutation.target) === null || _a === void 0 ? void 0 : _a['opened'])) {
14
- if (this.behavior !== 'default')
15
- continue;
16
- this.host.querySelectorAll('cura-accordion-item').forEach(item => {
17
- if (item != mutation.target) {
18
- item.opened = false;
19
- }
20
- });
21
- }
22
- if (mutation.type === 'childList') {
23
- const addedNodes = Array.from(mutation.addedNodes || []);
24
- for (let node of addedNodes) {
25
- this.setChildProperties(node);
26
- }
27
- }
28
- }
29
- };
30
- this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
31
- this.color = 'primary';
32
- this.activeColor = 'accent';
33
- this.colorMode = 'dark';
34
- this.iconSize = 32;
35
- this.openIcon = 'down';
36
- this.closeIcon = 'up';
37
- this.iconColor = '';
38
- this.iconActiveColor = '';
39
- this.behavior = 'default';
40
- this.styles = {};
41
- }
42
- handleChangeColor() {
43
- this.setColors();
44
- }
45
- connectedCallback() {
46
- const weights = window.CuraAPI.theme.fonts.getWeights();
47
- this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
48
- this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
49
- this.styles['--neutral-lighter'] = window.CuraAPI.theme.colors.getColor(`neutral-lighter`);
50
- this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
51
- this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
52
- this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
53
- this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
54
- this.styles['--font-weight-regular'] = weights.regular;
55
- this.setColors();
56
- }
57
- componentDidLoad() {
58
- this.host.querySelectorAll('cura-accordion-item').forEach(item => {
59
- this.setChildProperties(item);
60
- });
61
- const options = { childList: true, subtree: true, attributes: true };
62
- this.mutationObserver.observe(this.host, options);
63
- }
64
- disconnectedCallback() {
65
- this.mutationObserver.disconnect();
66
- }
67
- setChildProperties(item) {
68
- // Theme
69
- item.colorMode = this.colorMode;
70
- item.iconColor = this.iconColor || this.color;
71
- item.iconActiveColor = this.iconActiveColor || this.activeColor;
72
- // Icon
73
- item.iconSize = this.iconSize;
74
- item.openIcon = this.openIcon;
75
- item.closeIcon = this.closeIcon;
76
- }
77
- setColors() {
78
- this.styles = Object.assign(Object.assign({}, this.styles), { '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`), '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`), '--color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-lighter`), '--color-active-light': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-light`), '--color-active-base': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-base`), '--color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-dark`), '--icon-color-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-lighter`), '--icon-color-light': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-light`), '--icon-color-base': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-base`), '--icon-color-dark': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-dark`), '--icon-color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-lighter`), '--icon-color-active-light': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-light`), '--icon-color-active-base': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-base`), '--icon-color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-dark`) });
79
- }
80
- render() {
81
- return (h(Host, { key: '6d25b84df610918423ce8eac4213e4f012af6a20', style: this.styles }, h("slot", { key: '812c3195ec83ecee009a221bc3bec303903c1e68', name: 'accordion-item' })));
82
- }
83
- get host() { return getElement(this); }
84
- static get watchers() { return {
85
- "color": ["handleChangeColor"],
86
- "activeColor": ["handleChangeColor"]
87
- }; }
88
- };
89
- CuraAccordion.style = CuraAccordionStyle0;
90
-
91
- const curaAccordionItemCss = ":host{display:block}:host .accordion-item{width:100%}:host .accordion-item .label{display:flex;flex-direction:column}:host .accordion-item .label::before{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item .label .label-container{display:flex;flex-grow:1;justify-content:space-between;align-items:center;gap:calc(var(--base-spacing) * 2px);min-height:40px;word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular);color:var(--color-base);padding:0px}:host .accordion-item .label .label-container cura-icon{margin-right:4px}:host .accordion-item .label .label-container:hover{color:var(--color-light)}:host .accordion-item .label .label-container:hover cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item .label .label-container:active{color:var(--color-dark)}:host .accordion-item .label .label-container:active cura-icon{--color:var(--icon-color-dark) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;transition:max-height 0.25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--base-spacing) * 2px) 0px;border-top:solid 1px var(--neutral-base)}:host .accordion-item.active .label .label-container{color:var(--color-active-base)}:host .accordion-item.active .label .label-container:hover{color:var(--color-active-light)}:host .accordion-item.active .label .label-container:hover cura-icon{--color:var(--icon-color-active-light) !important}:host .accordion-item.active .label .label-container:active{color:var(--color-active-dark)}:host .accordion-item.active .label .label-container:active cura-icon{--color:var(--icon-color-active-dark) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;transition:max-height 0.5s ease 0.14s}:host .accordion-item.inverted .label .label-container{color:var(--neutral-lighter)}:host .accordion-item.inverted .label .label-container:hover{color:var(--color-lighter)}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-lighter) !important}:host .accordion-item.inverted .label .label-container:active{color:var(--color-light)}:host .accordion-item.inverted .label .label-container:active cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item.active.inverted .label .label-container{color:var(--neutral-purewhite)}:host .accordion-item.active.inverted .label .label-container:hover{color:var(--color-active-lighter)}:host .accordion-item.active.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-active-lighter) !important}:host .accordion-item.active.inverted .label .label-container:active{color:var(--color-active-light)}:host .accordion-item.active.inverted .label .label-container:active cura-icon{--color:var(--icon-color-active-light) !important}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}";
92
- const CuraAccordionItemStyle0 = curaAccordionItemCss;
93
-
94
- const CuraAccordionItem = class {
95
- constructor(hostRef) {
96
- registerInstance(this, hostRef);
97
- this.label = '';
98
- this.iconSize = 32;
99
- this.openIcon = 'down';
100
- this.closeIcon = 'up';
101
- this.iconColor = '';
102
- this.iconActiveColor = '';
103
- this.colorMode = 'dark';
104
- this.opened = false;
105
- this.styles = {};
106
- }
107
- getIconColor() {
108
- const inverted = this.colorMode === 'light';
109
- const iconColor = inverted ? 'neutral-lighter' : `${this.iconColor}-base`;
110
- const iconActiveColor = inverted ? 'neutral-purewhite' : `${this.iconActiveColor}-base`;
111
- return this.opened ? iconActiveColor : iconColor;
112
- }
113
- getClasses() {
114
- const classes = {};
115
- classes['accordion-item'] = true;
116
- classes['active'] = this.opened;
117
- classes['inverted'] = this.colorMode === 'light';
118
- return classes;
119
- }
120
- accordionItemClick(_) {
121
- this.opened = !this.opened;
122
- }
123
- render() {
124
- return (h(Host, { key: '8d46e9fd7c698c049a9020375cd77b5ebb9d38fd', slot: "accordion-item" }, h("div", { key: 'fdc11f228f3051f2452b0beb56e232de836fa382', class: this.getClasses(), style: this.styles }, h("div", { key: '7507b6c72d3433550b1590530c8070fe07431389', class: "label", onClick: e => this.accordionItemClick(e) }, h("div", { key: '8f6d6deb3fc2e864ac81abb744c5d4a32ad6b974', class: "label-container" }, h("span", { key: '7b1a4e96fa8c3dfdfffa7890c17ed8afacf3032f' }, this.label), h("cura-icon", { key: '0f9c6f9dc664ad96a7b02c084700fd8f75fbc677', name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: this.getIconColor() }))), h("div", { key: 'fb1860aa74170ff18edc03b8171356cd1a1fd271', class: 'content' }, h("div", { key: '4d3c9252658e9c30521353579f0b3ef9bc8a3087', class: "content-wrapper" }, h("slot", { key: '067f12a534860a5942d01d5945d1e4d272e5a541' }))))));
125
- }
126
- };
127
- CuraAccordionItem.style = CuraAccordionItemStyle0;
128
-
129
- const curaButtonCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:var(--color-base-neutral-purewhite);box-sizing:border-box;border:2px solid transparent}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button:not(.disabled):not(.isLoading),:host a:not(.disabled):not(.isLoading){border:2px solid var(--color-base-color-light)}:host button:not(.disabled):hover,:host a:not(.disabled):hover{border-color:var(--color-dark-color-base);background:var(--color-base-color-light);box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark-color-light);border-color:var(--color-dark-color-light)}:host button:hover,:host a:hover{box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{box-shadow:none !important}:host button.large,:host a.large{padding:calc(var(--base-spacing) * 6.12px) calc(var(--base-spacing) * 9.96px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 33.7px)}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 3.44px) calc(var(--base-spacing) * 9.96px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 29.95px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 3.24px) calc(var(--base-spacing) * 7.44px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 21.67px)}:host button:not(.isLoading).large,:host a:not(.isLoading).large{padding:calc(var(--base-spacing) * 3.5px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 13px)}:host button:not(.isLoading).medium,:host a:not(.isLoading).medium{padding:calc(var(--base-spacing) * 2.75px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 11px)}:host button:not(.isLoading).small,:host a:not(.isLoading).small{padding:calc(var(--base-spacing) * 1.5px) calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button cura-label,:host a cura-label{flex:1;font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:1.43em;line-height:1.2em;text-align:var(--text-align, \"left\")}:host button.medium cura-label,:host a.medium cura-label{font-size:1.14em}:host button.small cura-label,:host a.small cura-label{font-size:1em}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host a.medium.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.7px)}:host button.medium.icon-right cura-icon,:host a.medium.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.7px)}:host button.small.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.5px)}:host button.small.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.5px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-pale-neutral-black)}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3.5px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 2.75px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 1.5px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0.3}:host button.isLoading.icon-only .button-container,:host a.isLoading.icon-only .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}:host button.isLoading cura-label,:host a.isLoading cura-label{display:none}";
130
- const CuraButtonStyle0 = curaButtonCss;
131
-
132
- const CuraButton = class {
133
- constructor(hostRef) {
134
- registerInstance(this, hostRef);
135
- if (hostRef.$hostElement$["s-ei"]) {
136
- this.internals = hostRef.$hostElement$["s-ei"];
137
- }
138
- else {
139
- this.internals = hostRef.$hostElement$.attachInternals();
140
- hostRef.$hostElement$["s-ei"] = this.internals;
141
- }
142
- this.type = 'button';
143
- this.size = 'large';
144
- this.disabled = false;
145
- this.isLoading = false;
146
- this.iconName = undefined;
147
- this.iconset = 'default';
148
- this.iconPosition = 'left';
149
- this.iconOnly = false;
150
- this.href = undefined;
151
- this.target = "_self";
152
- this.color = 'accent';
153
- this.background = 'light';
154
- this.fontColor = 'dark';
155
- this.textAlign = 'left';
156
- this.styles = {};
157
- this.hovered = false;
158
- }
159
- connectedCallback() {
160
- this.weights = window.CuraAPI.theme.fonts.getWeights();
161
- this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
162
- this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
163
- this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
164
- this.styles['--font-weight-medium'] = this.weights.medium;
165
- this.styles['--text-align'] = this.textAlign;
166
- this.setColors();
167
- }
168
- setColors() {
169
- const colors = [
170
- { name: '--color-base-neutral-purewhite', theme: `${this.background === 'light' ? `${this.color}-base` : 'neutral-pale'}` },
171
- { name: '--color-base-color-light', theme: `${this.background === 'light' ? `${this.color}-base` : `${this.color}-lighter`}` },
172
- { name: '--color-dark-color-light', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-light`}` },
173
- { name: '--color-dark-color-base', theme: `${this.background === 'light' ? `${this.color}-dark` : `${this.color}-base`}` },
174
- { name: '--neutral-pale-neutral-black', theme: `${this.background === 'light' ? 'neutral-pale' : 'neutral-black'}` },
175
- ];
176
- colors.forEach(color => this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.theme));
177
- this.styles = Object.assign({}, this.styles);
178
- }
179
- handleMouseEnter() {
180
- if (this.disabled)
181
- return;
182
- this.hovered = true;
183
- }
184
- handleMouseLeave() {
185
- this.hovered = false;
186
- }
187
- getClasses() {
188
- var _a, _b;
189
- const classes = {};
190
- classes[`${(_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`] = true;
191
- classes[`icon-${(_b = this.iconPosition) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`] = true;
192
- classes[`icon-only`] = this.iconOnly;
193
- classes['disabled'] = this.disabled;
194
- classes['isLoading'] = this.isLoading;
195
- return classes;
196
- }
197
- getIcon() {
198
- if (!this.iconName || this.isLoading)
199
- return '';
200
- const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
201
- return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: this.getSymbolColor() });
202
- }
203
- getSymbolColor() {
204
- if (this.isLoading && this.fontColor === 'light' ? 'neutral-white' : 'neutral-black')
205
- return this.disabled
206
- ? 'neutral-dark'
207
- : this.fontColor === 'light'
208
- ? 'neutral-white'
209
- : 'neutral-black';
210
- }
211
- handleClick(e) {
212
- if (this.disabled || this.isLoading) {
213
- e.preventDefault();
214
- return;
215
- }
216
- if (!this.href) {
217
- if (this.type === 'submit' && this.internals.form)
218
- this.internals.form.submit();
219
- if (this.type === 'reset' && this.internals.form)
220
- this.internals.form.reset();
221
- }
222
- }
223
- render() {
224
- return (h(Host, { key: '5a7c983dcae745239e7f81bc172a2aa52b5de8de' }, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { class: "label", lineHeight: '0%', color: this.getSymbolColor() }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, h("span", { class: "button-container" }, this.getIcon(), h("cura-label", { class: "label", lineHeight: '0%', color: this.getSymbolColor() }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
225
- }
226
- static get formAssociated() { return true; }
227
- static get watchers() { return {
228
- "background": ["setColors"],
229
- "color": ["setColors"]
230
- }; }
231
- };
232
- CuraButton.style = CuraButtonStyle0;
233
-
234
- const curaHeadingCss = ":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.714em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.857em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-medium)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host ::slotted(u){text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}:host ::slotted(i),:host ::slotted(em){font-weight:var(--font-weight-medium)}";
235
- const CuraHeadingStyle0 = curaHeadingCss;
236
-
237
- const CuraHeading = class {
238
- constructor(hostRef) {
239
- registerInstance(this, hostRef);
240
- this.theme = window.CuraAPI.theme;
241
- this.level = 1;
242
- this.size = 'medium';
243
- this.weight = 'regular';
244
- this.spotColor = 'accent-dark';
245
- this.color = undefined;
246
- this.marginBlock = '1.25em';
247
- this.lineHeight = '130%';
248
- this.styles = {};
249
- }
250
- handleChangeColor() {
251
- this.setColors();
252
- }
253
- connectedCallback() {
254
- this.setFontProperties();
255
- this.setColors();
256
- }
257
- getClasses() {
258
- const classes = {};
259
- classes[this.size.toLowerCase()] = true;
260
- classes[`${this.weight.toLowerCase()}-weight`] = true;
261
- return classes;
262
- }
263
- setFontProperties() {
264
- this.weights = this.theme.fonts.getWeights();
265
- this.fontSizeBase = this.theme.fonts.getSize();
266
- this.styles = {
267
- '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
268
- '--font-weight-regular': this.weights.regular,
269
- '--font-weight-medium': this.weights.medium,
270
- '--font-weight-bold': this.weights.bold,
271
- '--font-weight-black': this.weights.black
272
- };
273
- }
274
- hostCSSProperties() {
275
- return {
276
- '--margin-block': this.marginBlock,
277
- '--font-size-base': this.fontSizeBase,
278
- '--line-height': this.lineHeight
279
- };
280
- }
281
- setColors() {
282
- const fontColor = this.color
283
- ? this.theme.colors.getColor(this.color)
284
- : this.theme.fonts.getColor();
285
- this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
286
- }
287
- getHeadingTag() {
288
- const tags = {
289
- '1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
290
- '2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
291
- '3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
292
- '4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
293
- '5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
294
- '6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
295
- 'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
296
- };
297
- return tags[`${this.level}`] || tags['default'];
298
- }
299
- render() {
300
- return (h(Host, { key: '55016d81f72ce0b506a7e2f2fbca3aa92448d581', style: this.hostCSSProperties() }, this.getHeadingTag()));
301
- }
302
- get host() { return getElement(this); }
303
- static get watchers() { return {
304
- "color": ["handleChangeColor"],
305
- "spotColor": ["handleChangeColor"]
306
- }; }
307
- };
308
- CuraHeading.style = CuraHeadingStyle0;
309
-
310
- const curaIconCss = ":host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
311
- const CuraIconStyle0 = curaIconCss;
312
-
313
- const CuraIcon = class {
314
- constructor(hostRef) {
315
- registerInstance(this, hostRef);
316
- this.name = '';
317
- this.color = 'neutral-base';
318
- this.size = undefined;
319
- this.iconset = 'default';
320
- this.disabled = false;
321
- }
322
- sizeHandler(size) {
323
- if (size === 'micro' && !microIcons.includes(this.name)) {
324
- size = 16;
325
- console.warn(`Icon ${this.name} doesn't support micro size. Minimum size of 16 was applied instead.`);
326
- }
327
- const scaledStroke = (iconSize) => {
328
- return `${iconSizes[iconSize].stroke * (iconSizes.default.size / iconSizes[iconSize].size)}px`;
329
- };
330
- this.setHostProperty('--size', iconSizes[`${size}`] ? `${iconSizes[size].size}px` : `${iconSizes.default.size}px`);
331
- this.setHostProperty('--stroke', iconSizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
332
- }
333
- colorHandler() {
334
- this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color || 'neutral'));
335
- }
336
- connectedCallback() {
337
- this.assetsPath = window.CuraAPI.localAssetsPath;
338
- this.sizeHandler(this.size);
339
- this.colorHandler();
340
- }
341
- setHostProperty(prop, value) {
342
- this.host.style.setProperty(prop, value);
343
- }
344
- render() {
345
- return (h(Host, { key: 'd49f752d12f9babd6a82fe97ef384f89879e1db9' }, h("svg", { key: '0c6d9dad5f8f8b571dd422ebb5f7941a75b46336', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { key: '88eab15bcbbff03713282d99055f140ccd424108', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
346
- }
347
- get host() { return getElement(this); }
348
- static get watchers() { return {
349
- "size": ["sizeHandler"],
350
- "color": ["colorHandler"],
351
- "disabled": ["colorHandler"]
352
- }; }
353
- };
354
- CuraIcon.style = CuraIconStyle0;
355
-
356
- const curaLabelCss = ":host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:1.143em;font-weight:var(--font-weight-medium);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.32px}:host p.bold-weight,:host p ::slotted(b),:host p ::slotted(strong),:host p ::slotted(u){font-weight:var(--font-weight-bold)}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) - 4%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 4%);letter-spacing:0.56px}:host p.xsmall{font-size:0.857em;line-height:calc(var(--line-height) - 17%);letter-spacing:0.72px}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%}:host ::slotted(u){text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
357
- const CuraLabelStyle0 = curaLabelCss;
358
-
359
- const CuraLabel = class {
360
- constructor(hostRef) {
361
- registerInstance(this, hostRef);
362
- this.theme = window.CuraAPI.theme;
363
- this.size = 'medium';
364
- this.weight = 'regular';
365
- this.spotColor = 'accent-dark';
366
- this.color = undefined;
367
- this.marginBlock = '0';
368
- this.lineHeight = '125%';
369
- this.styles = {};
370
- }
371
- handleChangeColor() {
372
- this.setColors();
373
- }
374
- connectedCallback() {
375
- this.setFontProperties();
376
- this.setColors();
377
- }
378
- getClasses() {
379
- const sizeclass = {};
380
- sizeclass[this.size.toLowerCase()] = true;
381
- sizeclass[`${this.weight.toLowerCase()}-weight`] = true;
382
- return sizeclass;
383
- }
384
- setFontProperties() {
385
- this.weights = this.theme.fonts.getWeights();
386
- this.fontSizeBase = this.theme.fonts.getSize();
387
- this.styles = {
388
- '--font-family': this.theme.fonts.getFamily('body'),
389
- '--font-weight-medium': this.weights.medium,
390
- '--font-weight-bold': this.weights.bold
391
- };
392
- }
393
- setColors() {
394
- const fontColor = this.color
395
- ? this.theme.colors.getColor(this.color)
396
- : this.theme.fonts.getColor();
397
- this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
398
- }
399
- hostCSSProperties() {
400
- return {
401
- '--margin-block': this.marginBlock,
402
- '--font-size-base': this.fontSizeBase,
403
- '--line-height': this.lineHeight
404
- };
405
- }
406
- render() {
407
- return (h(Host, { key: '34d418859c8067e879a089240d36b58f5e91c8fc', style: this.hostCSSProperties() }, h("p", { key: '4a28171e079f80d8e61ebe840b858d65dd6d62c3', style: this.styles, class: this.getClasses() }, h("slot", { key: '0796484498caddf7935ff3458e13cfab47759a4b' }))));
408
- }
409
- get host() { return getElement(this); }
410
- static get watchers() { return {
411
- "color": ["handleChangeColor"],
412
- "spotColor": ["handleChangeColor"]
413
- }; }
414
- };
415
- CuraLabel.style = CuraLabelStyle0;
416
-
417
- const curaLoaderCircleCss = ":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);animation:rotate 0.7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:0.14}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}";
418
- const CuraLoaderCircleStyle0 = curaLoaderCircleCss;
419
-
420
- const CuraLoaderCircle = class {
421
- constructor(hostRef) {
422
- registerInstance(this, hostRef);
423
- this.sizes = {
424
- xlarge: 32,
425
- large: 24,
426
- medium: 20,
427
- small: 16,
428
- default: 16,
429
- };
430
- this.getPxSize = () => this.sizes[this.size] || this.sizes['default'];
431
- this.size = 'medium';
432
- this.color = 'neutral-white';
433
- }
434
- getStyles() {
435
- return {
436
- '--size': `${this.getPxSize()}px`,
437
- '--color': window.CuraAPI.theme.colors.getColor(this.color)
438
- };
439
- }
440
- render() {
441
- return (h(Host, { key: 'dd0c9e5b82f8f3b41511d31333af00e46435e9db', style: this.getStyles() }, h("svg", { key: '2a6a1edab6501c7788bebed93bbc87143d10fbaf', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '8dd113e23ffc4f5df091738a878eee76e030c904' }, h("circle", { key: 'a6e06aad2260ffb8cec65aed59ef8f09459765a1', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: '88ac6f03cac1030593e06e6062d8d9947474aa62', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '6bae1e73907f3f8a17560ef055290c4ac41959e7' }, h("linearGradient", { key: 'c2510effd844984927f4b32fbb7f770ebcb09a3c', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '477e90e9eadf1385a8b897917886e1fe352c41d0' }), h("stop", { key: '135e22c3a11916fa1ce4bc5870774ecf37512e6f', offset: "1" }))))));
442
- }
443
- };
444
- CuraLoaderCircle.style = CuraLoaderCircleStyle0;
445
-
446
- const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}";
447
- const CuraPageTemplateStyle0 = curaPageTemplateCss;
448
-
449
- const CuraPageTemplate = class {
450
- constructor(hostRef) {
451
- registerInstance(this, hostRef);
452
- this.contentwidth = 'default';
453
- }
454
- connectedCallback() {
455
- this.styles = {
456
- '--spacing': window.CuraAPI.theme.spacing.getSpacing(),
457
- };
458
- }
459
- getClasses() {
460
- const classes = {};
461
- classes[this.contentwidth.toLowerCase()] = true;
462
- return classes;
463
- }
464
- render() {
465
- return (h(Host, { key: 'b420fd773b337fbf64107124c3a65b7d543aa0f9' }, h("div", { key: '00e031bf40ed01904107f07367ee5b3042c1871f', style: this.styles, class: "grid-template" }, h("div", { key: '4c5c8112fe739d2b330a5a71bfdd6f6339206b15', id: "sub-header" }, h("slot", { key: '8b9896a17e6016bc791da8fd01f562a41d7f5bb1', name: 'sub-header' })), h("div", { key: '9d45f7a18ce35ae550521b281cfc0d9ea5009343', id: "header" }, h("slot", { key: '79ecbfb33b818b41c98f8a1f09243f6c2082b7bd', name: 'header' })), h("div", { key: '129b9928ddd3c0f0c357fa71494b3b77876ecd49', id: "pre-content" }, h("slot", { key: '71b6fbe0755848ac8df0a800e65b8ebc6909aff3', name: 'pre-content' })), h("div", { key: '80389bc85c71768906aa2ab564a80b84a045705d', id: "content-container", class: this.getClasses() }, h("div", { key: '438eb89b07be453c1a7caf31eb78879a6b000fc3', id: "sidebar-left" }, h("slot", { key: '8e0dd99e31be8d03d767acdee8bd18f4f6fe80bd', name: 'sidebar-left' })), h("div", { key: '21edd321d65ff1a685c699314a2d4617a14b6d09', id: "content" }, h("slot", { key: '125f790bc5d5ecade8946c154b00fdb7591ec26f', name: "content" }), h("slot", { key: 'e52dfd04c751d893335037f6dc970902a37a7d4f' })), h("div", { key: '3d35da8b265ca7a96fe36d8f037c6db0e0857537', id: "sidebar-right" }, h("slot", { key: '1d812f29d7cc068b0c4f6e705a60defc91da7145', name: 'sidebar-right' }))), h("div", { key: '10f23a4d4e837bbb11e140a5fd09be05836a27ba', id: "post-body" }, h("slot", { key: '8f3bd8fea091a0b025e69f1a0916016f1354aeb8', name: 'post-body' })), h("div", { key: '474062139aa0dd1ed49bc9c8594820fa2ff0ba83', id: "footer" }, h("slot", { key: 'ad46b1122b0875390822df6db770413980090f5e', name: 'footer' })), h("div", { key: 'c3de6dd778e675e38099d85d248e7923e276a25c', id: "sub-footer" }, h("slot", { key: '81a48964dc8912a225ea9ea49478d674d8d7271b', name: 'sub-footer' })))));
466
- }
467
- get host() { return getElement(this); }
468
- };
469
- CuraPageTemplate.style = CuraPageTemplateStyle0;
470
-
471
- const curaParagraphCss = ":host{display:block;font-size:var(--font-size-base)}:host p{font-family:var(--font-family);font-size:var(--font-size-base);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0.28px}:host p.large{font-size:1.214em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.48px}:host p.caption,:host p.xsmall{font-size:0.714em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.6px}@media (min-width: 769px) and (max-width: 1920px){:host p{font-size:1.143em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.32px}:host p.large{font-size:1.357em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.56px}:host p.caption,:host p.xsmall{font-size:0.85em;line-height:calc(var(--line-height) - 5%);letter-spacing:0.72px}}@media (min-width: 1921px){:host p{font-size:1.429em;line-height:calc(var(--line-height) + 10%);letter-spacing:0px}:host p.large{font-size:1.714em;line-height:calc(var(--line-height) + 20%)}:host p.small{font-size:1.21em;line-height:calc(var(--line-height) + 5%);letter-spacing:0px}:host p.caption,:host p.xsmall{font-size:1em;line-height:calc(var(--line-height) + 5%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-medium);color:var(--color-link);text-underline-offset:10%}:host ::slotted(u){font-weight:var(--font-weight-medium);text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
472
- const CuraParagraphStyle0 = curaParagraphCss;
473
-
474
- const CuraParagraph = class {
475
- constructor(hostRef) {
476
- registerInstance(this, hostRef);
477
- this.theme = window.CuraAPI.theme;
478
- this.size = 'medium';
479
- this.spotColor = 'accent-dark';
480
- this.color = undefined;
481
- this.marginBlock = '1.25em';
482
- this.lineHeight = '140%';
483
- this.styles = {};
484
- }
485
- handleChangeColor() {
486
- this.setColors();
487
- }
488
- connectedCallback() {
489
- this.setFontProperties();
490
- this.setColors();
491
- }
492
- setsizeClass() {
493
- const sizeclass = {};
494
- sizeclass[this.size.toLowerCase()] = true;
495
- return sizeclass;
496
- }
497
- setFontProperties() {
498
- this.weights = this.theme.fonts.getWeights();
499
- this.fontSizeBase = this.theme.fonts.getSize();
500
- this.styles = {
501
- '--font-family': this.theme.fonts.getFamily('body'),
502
- '--font-weight-regular': this.weights.regular,
503
- '--font-weight-medium': this.weights.medium,
504
- '--font-weight-bold': this.weights.bold
505
- };
506
- }
507
- setColors() {
508
- const fontColor = this.color
509
- ? this.theme.colors.getColor(this.color)
510
- : this.theme.fonts.getColor();
511
- this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
512
- }
513
- hostCSSProperties() {
514
- return {
515
- '--margin-block': this.marginBlock,
516
- '--font-size-base': this.fontSizeBase,
517
- '--line-height': this.lineHeight
518
- };
519
- }
520
- render() {
521
- return (h(Host, { key: '2c9903f885ae8346efdbb1569264fc078aee9224', style: this.hostCSSProperties() }, h("p", { key: '287c656408d2e9876497f70784ae7ce166417272', style: this.styles, class: this.setsizeClass() }, h("slot", { key: 'dde5f8d46c384a76605c1ef33b73c8f442c7a48b' }))));
522
- }
523
- get host() { return getElement(this); }
524
- static get watchers() { return {
525
- "color": ["handleChangeColor"],
526
- "spotColor": ["handleChangeColor"]
527
- }; }
528
- };
529
- CuraParagraph.style = CuraParagraphStyle0;
530
-
531
- export { CuraAccordion as cura_accordion, CuraAccordionItem as cura_accordion_item, CuraButton as cura_button, CuraHeading as cura_heading, CuraIcon as cura_icon, CuraLabel as cura_label, CuraLoaderCircle as cura_loader_circle, CuraPageTemplate as cura_page_template, CuraParagraph as cura_paragraph };
532
-
533
- //# sourceMappingURL=cura-accordion_9.entry.js.map