@ebrains/react 1.4.0 → 2.1.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/bin-37cad2f0.esm.js +3 -0
- package/clone-dab56639.esm.js +3 -0
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/components-section.entry.esm.js +1 -1
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/docs-palettes.entry.esm.js +1 -1
- package/docs-tokens.entry.esm.js +1 -1
- package/draft-dd5dada2.esm.js +3 -0
- package/edit-3893a517.esm.js +3 -0
- package/eds-accordion_33.entry.esm.js +1123 -0
- package/eds-app-root.entry.esm.js +4 -4
- package/eds-card-desc_2.entry.esm.js +4 -4
- package/eds-card-generic.entry.esm.js +4 -5
- package/eds-card-project.entry.esm.js +10 -11
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +4 -4
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-footer.entry.esm.js +135 -0
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +124 -0
- package/eds-gauge.entry.esm.js +4 -4
- package/eds-icon-arrow-diagonal.entry.esm.js +1 -1
- package/eds-icon-arrow-right.entry.esm.js +1 -1
- package/eds-icon-bin.entry.esm.js +21 -0
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-bookmark.entry.esm.js +1 -1
- package/eds-icon-chevron-down.entry.esm.js +1 -1
- package/eds-icon-chevron-left.entry.esm.js +1 -1
- package/eds-icon-chevron-right.entry.esm.js +1 -1
- package/eds-icon-chevron-up.entry.esm.js +1 -1
- package/eds-icon-clone.entry.esm.js +21 -0
- package/eds-icon-close.entry.esm.js +1 -1
- package/eds-icon-copy.entry.esm.js +1 -1
- package/eds-icon-draft.entry.esm.js +21 -0
- package/eds-icon-edit.entry.esm.js +21 -0
- package/eds-icon-eu.entry.esm.js +1 -1
- package/eds-icon-external.entry.esm.js +1 -1
- package/eds-icon-facebook.entry.esm.js +1 -1
- package/eds-icon-gitlab.entry.esm.js +1 -1
- package/eds-icon-linkedin.entry.esm.js +1 -1
- package/eds-icon-loader.entry.esm.js +1 -1
- package/eds-icon-mastodon.entry.esm.js +1 -1
- package/eds-icon-menu.entry.esm.js +1 -1
- package/eds-icon-minus.entry.esm.js +1 -1
- package/eds-icon-more.entry.esm.js +1 -1
- package/eds-icon-paper.entry.esm.js +1 -1
- package/eds-icon-plus.entry.esm.js +1 -1
- package/eds-icon-portal.entry.esm.js +1 -1
- package/eds-icon-private.entry.esm.js +1 -1
- package/eds-icon-public.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +1 -1
- package/eds-icon-start.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +1 -1
- package/eds-icon-thumbs-up.entry.esm.js +1 -1
- package/eds-icon-tutorial.entry.esm.js +1 -1
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-unknown.entry.esm.js +1 -1
- package/eds-icon-updown.entry.esm.js +1 -1
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-view.entry.esm.js +21 -0
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +150 -0
- package/eds-progress-bar.entry.esm.js +4 -4
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-social-networks.entry.esm.js +74 -0
- package/eds-spinner.entry.esm.js +51 -14
- package/eds-splash-screen.entry.esm.js +1 -4
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-tooltip.entry.esm.js +12 -6
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm.js +1 -1
- package/index.esm2.js +37 -26
- package/logo-space.entry.esm.js +9 -9
- package/logo-variations-horizontal_2.entry.esm.js +28 -28
- package/logo-variations-tabs.entry.esm.js +1 -1
- package/logo-wrong-usage.entry.esm.js +25 -25
- package/package.json +1 -1
- package/src/components.d.ts +1 -0
- package/start-65126a4f.esm.js +3 -0
- package/svg-repository.entry.esm.js +15 -3
- package/token-list_3.entry.esm.js +5 -5
- package/token-ratios.entry.esm.js +3 -3
- package/token-spacing.entry.esm.js +26 -26
- package/token-typography.entry.esm.js +2 -2
- package/view-e900f2d4.esm.js +3 -0
- package/eds-accordion.entry.esm.js +0 -132
- package/eds-alert.entry.esm.js +0 -112
- package/eds-avatar_29.entry.esm.js +0 -3660
- package/eds-breadcrumb.entry.esm.js +0 -179
- package/eds-code-block.entry.esm.js +0 -2290
- package/eds-matomo-notice.entry.esm.js +0 -159
- package/eds-rating.entry.esm.js +0 -79
- package/eds-switch.entry.esm.js +0 -68
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import 'react-dom';
|
|
6
|
-
|
|
7
|
-
const edsAccordionCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.break-words{overflow-wrap:break-word}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.pr-32{padding-right:2rem}.pr-36{padding-right:2.25rem}.pr-40{padding-right:2.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-4{padding-top:0.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
|
|
8
|
-
const EdsAccordionStyle0 = edsAccordionCss;
|
|
9
|
-
const EdsAccordion = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.accordion = createEvent(this, "accordion", 7);
|
|
13
|
-
/**
|
|
14
|
-
* Handles the click event on the accordion header to toggle expansion.
|
|
15
|
-
* Toggles the `isExpanded` state and emits the `accordion` event.
|
|
16
|
-
*/
|
|
17
|
-
this.handleClick = () => {
|
|
18
|
-
var _a;
|
|
19
|
-
this.isExpanded = !this.isExpanded;
|
|
20
|
-
this.accordion.emit(this.isExpanded);
|
|
21
|
-
this.setPanelHeight();
|
|
22
|
-
sendAnalytics({
|
|
23
|
-
category: 'ui-component',
|
|
24
|
-
parentContext: null,
|
|
25
|
-
tag: this.el.tagName.toLowerCase(),
|
|
26
|
-
name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
27
|
-
action: this.isExpanded ? 'expanded' : 'collapsed'
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Calculates and sets the panel height based on the content height
|
|
32
|
-
* and adjusts based on the `shortContent` and `isExpanded` states.
|
|
33
|
-
*/
|
|
34
|
-
this.setPanelHeight = () => {
|
|
35
|
-
if (this.childContentRef) {
|
|
36
|
-
this.shortContent = this.wrapperRef.scrollWidth > 830 && !this.description ? this.childContentRef.scrollHeight <= 80 : this.childContentRef.scrollHeight <= 20;
|
|
37
|
-
this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
|
|
38
|
-
}
|
|
39
|
-
if (this.headerRef) {
|
|
40
|
-
this.headerHeight = this.headerRef.scrollHeight - 30;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
this.heading = undefined;
|
|
44
|
-
this.description = undefined;
|
|
45
|
-
this.switchBg = true;
|
|
46
|
-
this.expanded = false;
|
|
47
|
-
this.clampText = true;
|
|
48
|
-
this.isExpanded = this.expanded;
|
|
49
|
-
this.panelHeight = 0;
|
|
50
|
-
this.shortContent = false;
|
|
51
|
-
this.headerHeight = 0;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
55
|
-
* to recalculate height on window resize.
|
|
56
|
-
*/
|
|
57
|
-
componentDidLoad() {
|
|
58
|
-
this.setPanelHeight();
|
|
59
|
-
window.addEventListener('resize', this.setPanelHeight);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
63
|
-
*/
|
|
64
|
-
disconnectedCallback() {
|
|
65
|
-
window.removeEventListener('resize', this.setPanelHeight);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
69
|
-
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
70
|
-
*/
|
|
71
|
-
render() {
|
|
72
|
-
return h("div", {
|
|
73
|
-
key: 'addeb5f79d497efcd3eab9f849890adf48a5e275',
|
|
74
|
-
ref: el => this.wrapperRef = el,
|
|
75
|
-
class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
76
|
-
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
77
|
-
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
78
|
-
${this.description ? 'min-h-56' : ''}`
|
|
79
|
-
}, h("h3", {
|
|
80
|
-
key: 'c522c074c205e471f9e95991a03f703bec8d3219',
|
|
81
|
-
ref: el => this.headerRef = el,
|
|
82
|
-
class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40"
|
|
83
|
-
}, this.heading), h("div", {
|
|
84
|
-
key: '5ee474856bf9a3cdc732c27c6fccb68c24e0dc3b',
|
|
85
|
-
class: "ml-auto"
|
|
86
|
-
}, h("eds-button", {
|
|
87
|
-
key: 'a274b1d82f30607f61103433aa6ceb745464f530',
|
|
88
|
-
id: "toggleAccordion",
|
|
89
|
-
intent: "tertiary",
|
|
90
|
-
"aria-expanded": this.isExpanded || this.shortContent,
|
|
91
|
-
"aria-label": "Toggle accordion",
|
|
92
|
-
"aria-controls": "accordionSection",
|
|
93
|
-
class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`,
|
|
94
|
-
onClick: this.handleClick,
|
|
95
|
-
icon: "chevron-down"
|
|
96
|
-
})), h("div", {
|
|
97
|
-
key: '69a638f2dc3c5ebff95fc4049c47abd4884b13ad',
|
|
98
|
-
class: `w-full`,
|
|
99
|
-
style: Number.isFinite(this.headerHeight) ? {
|
|
100
|
-
marginTop: `${this.headerHeight}px`
|
|
101
|
-
} : {}
|
|
102
|
-
}, this.description ? h("span", {
|
|
103
|
-
class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}`
|
|
104
|
-
}, this.description) : null, h("section", {
|
|
105
|
-
key: '820f39174c6e6d42e7c4407a2a4175fb077f86ac',
|
|
106
|
-
id: "accordionSection",
|
|
107
|
-
role: "region",
|
|
108
|
-
"aria-labelledby": "accordionHeader",
|
|
109
|
-
"aria-hidden": !this.isExpanded,
|
|
110
|
-
class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`,
|
|
111
|
-
style: {
|
|
112
|
-
height: this.isExpanded ? 'auto' : '0'
|
|
113
|
-
}
|
|
114
|
-
}, h("div", {
|
|
115
|
-
key: '3d9ea33856d350434d26c07ddc9d230e28d8c344',
|
|
116
|
-
ref: el => this.childContentRef = el,
|
|
117
|
-
class: `accordion-content effect-color pt-4`,
|
|
118
|
-
"aria-hidden": !this.isExpanded
|
|
119
|
-
}, h("span", {
|
|
120
|
-
key: '1d0761d7894d5ba4d7c7f5051031857555ce0b0c',
|
|
121
|
-
class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}`
|
|
122
|
-
}, h("slot", {
|
|
123
|
-
key: 'ed31f44736a8ce85a7df4216b2f90c2ca7d9b873'
|
|
124
|
-
}))))));
|
|
125
|
-
}
|
|
126
|
-
get el() {
|
|
127
|
-
return getElement(this);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
EdsAccordion.style = EdsAccordionStyle0;
|
|
131
|
-
|
|
132
|
-
export { EdsAccordion as eds_accordion };
|
package/eds-alert.entry.esm.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { c as cva } from './index-39c58238.esm.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import 'react-dom';
|
|
6
|
-
|
|
7
|
-
const edsAlertCss = "*,\n::before,\n::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n}\n\np {\n margin: 0;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.flex {\n display: flex;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n\n.space-y-12> :not([hidden])~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-error {\n background-color: var(--red-200);\n}\n\n.bg-success {\n background-color: var(--green-200);\n}\n\n.bg-warning {\n background-color: var(--yellow-200);\n}\n\n.p-16 {\n padding: 1rem;\n}\n\n.p-20 {\n padding: 1.25rem;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pr-12 {\n padding-right: 0.75rem;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n[class*=underline-] {\n text-decoration-line: underline;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}";
|
|
8
|
-
const EdsAlertStyle0 = edsAlertCss;
|
|
9
|
-
const alertStyles = cva(['w-full bg-dark'], {
|
|
10
|
-
variants: {
|
|
11
|
-
intent: {
|
|
12
|
-
default: '',
|
|
13
|
-
warning: 'bg-warning',
|
|
14
|
-
error: 'bg-error',
|
|
15
|
-
success: 'bg-success'
|
|
16
|
-
},
|
|
17
|
-
brd: {
|
|
18
|
-
rounded: 'rounded-lg border-inside after:border-softest after:rounded-lg',
|
|
19
|
-
normal: ''
|
|
20
|
-
},
|
|
21
|
-
direction: {
|
|
22
|
-
vertical: 'space-y-12',
|
|
23
|
-
horizontal: 'flex flex-row items-center justify-between gap-x-12'
|
|
24
|
-
},
|
|
25
|
-
withBtn: {
|
|
26
|
-
false: '',
|
|
27
|
-
true: ''
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
compoundVariants: [{
|
|
31
|
-
direction: 'horizontal',
|
|
32
|
-
withBtn: true,
|
|
33
|
-
class: 'px-20 pr-12 py-12'
|
|
34
|
-
}, {
|
|
35
|
-
direction: 'horizontal',
|
|
36
|
-
withBtn: false,
|
|
37
|
-
class: 'p-20'
|
|
38
|
-
}, {
|
|
39
|
-
direction: 'vertical',
|
|
40
|
-
withBtn: true,
|
|
41
|
-
class: 'p-16'
|
|
42
|
-
}, {
|
|
43
|
-
direction: 'vertical',
|
|
44
|
-
withBtn: false,
|
|
45
|
-
class: 'px-12 py-20'
|
|
46
|
-
}],
|
|
47
|
-
defaultVariants: {
|
|
48
|
-
intent: 'default',
|
|
49
|
-
brd: 'rounded',
|
|
50
|
-
direction: 'horizontal'
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const EdsAlert = class {
|
|
54
|
-
constructor(hostRef) {
|
|
55
|
-
registerInstance(this, hostRef);
|
|
56
|
-
this.message = undefined;
|
|
57
|
-
this.pressableLabel = undefined;
|
|
58
|
-
this.pressableUrl = undefined;
|
|
59
|
-
this.direction = 'horizontal';
|
|
60
|
-
this.intent = 'default';
|
|
61
|
-
this.brd = 'rounded';
|
|
62
|
-
this.withBtn = false;
|
|
63
|
-
}
|
|
64
|
-
componentWillLoad() {
|
|
65
|
-
this.withBtn = Boolean(this.pressableLabel);
|
|
66
|
-
}
|
|
67
|
-
componentDidLoad() {
|
|
68
|
-
var _a;
|
|
69
|
-
// Query for the 'eds-link' element inside the shadow root.
|
|
70
|
-
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
71
|
-
if (lnk) {
|
|
72
|
-
this.emitContext(lnk);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
emitContext(linkElement) {
|
|
76
|
-
const event = new CustomEvent('parentContext', {
|
|
77
|
-
detail: {
|
|
78
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
79
|
-
identifier: null
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
linkElement.dispatchEvent(event);
|
|
83
|
-
}
|
|
84
|
-
render() {
|
|
85
|
-
return h("div", {
|
|
86
|
-
key: '5252aca583e87d8c3249c501e55368e340ef0d64',
|
|
87
|
-
class: alertStyles({
|
|
88
|
-
intent: this.intent,
|
|
89
|
-
brd: this.brd,
|
|
90
|
-
direction: this.direction,
|
|
91
|
-
withBtn: this.withBtn
|
|
92
|
-
}),
|
|
93
|
-
role: "alert"
|
|
94
|
-
}, h("p", {
|
|
95
|
-
key: 'bb23c94e802ec5e287a2b8619277e83de173b498',
|
|
96
|
-
class: "f-ui-01 py-8",
|
|
97
|
-
innerHTML: this.message
|
|
98
|
-
}), this.withBtn && (this.pressableUrl ? h("eds-link", {
|
|
99
|
-
class: "eds-alert-link",
|
|
100
|
-
label: this.pressableLabel,
|
|
101
|
-
url: this.pressableUrl,
|
|
102
|
-
intent: "secondary",
|
|
103
|
-
external: true
|
|
104
|
-
}) : null));
|
|
105
|
-
}
|
|
106
|
-
get el() {
|
|
107
|
-
return getElement(this);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
EdsAlert.style = EdsAlertStyle0;
|
|
111
|
-
|
|
112
|
-
export { EdsAlert as eds_alert };
|