@ebrains/react 0.2.0-alpha.0 → 0.4.0-alpha.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/{color-0ba8ed56.esm.js → color-bb472c37.esm.js} +2 -2
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/correct-use-of-colors.entry.esm.js +57 -57
- package/{eds-alert_28.entry.esm.js → eds-accordion_33.entry.esm.js} +187 -45
- package/eds-card-project.entry.esm.js +1 -1
- package/eds-card-section.entry.esm.js +18 -8
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +1 -1
- package/eds-card-wrapper.entry.esm.js +4 -4
- package/eds-code-block.entry.esm.js +55 -8
- package/eds-components-section.entry.esm.js +57 -24
- package/eds-docs-palettes.entry.esm.js +1 -1
- package/eds-docs-tokens.entry.esm.js +1 -1
- package/eds-login.entry.esm.js +4 -12
- package/eds-logo-variations.entry.esm.js +29 -0
- package/eds-matomo-notice.entry.esm.js +1 -1
- package/{eds-pagination.entry.esm.js → eds-pagination_2.entry.esm.js} +222 -7
- package/eds-progress-bar.entry.esm.js +36 -0
- package/eds-rating.entry.esm.js +7 -9
- package/eds-svg-repository.entry.esm.js +12 -3
- package/eds-tabs-content.entry.esm.js +5 -5
- package/eds-tabs.entry.esm.js +27 -8
- package/eds-timeline.entry.esm.js +131 -0
- package/eds-tooltip.entry.esm.js +13 -3
- package/eds-trl.entry.esm.js +68 -0
- package/incorrect-use-of-colors.entry.esm.js +11 -10
- package/index.esm.js +1 -1
- package/index.esm2.js +20 -37
- package/logo-space.entry.esm.js +4 -4
- package/logo-variations-horizontal_2.entry.esm.js +116 -0
- package/logo-wrong-usage.entry.esm.js +39 -39
- package/package.json +1 -1
- package/src/components.d.ts +1 -0
- 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/eds-accordion.entry.esm.js +0 -132
- package/eds-block-break.entry.esm.js +0 -22
- package/eds-breadcrumb.entry.esm.js +0 -169
- package/eds-footer.entry.esm.js +0 -110
- package/eds-frame.entry.esm.js +0 -117
- package/eds-fullscreen-menu.entry.esm.js +0 -143
- package/eds-modal.entry.esm.js +0 -114
- package/eds-social-networks.entry.esm.js +0 -74
- package/eds-table.entry.esm.js +0 -196
- package/logo-variations-horizontal.entry.esm.js +0 -50
- package/logo-variations-vertical.entry.esm.js +0 -53
|
@@ -4,7 +4,7 @@ import 'react';
|
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom';
|
|
6
6
|
|
|
7
|
-
const logoWrongUsageCss = ".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}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";
|
|
7
|
+
const logoWrongUsageCss = ".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}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";
|
|
8
8
|
const LogoWrongUsageStyle0 = logoWrongUsageCss;
|
|
9
9
|
const LogoWrongUsage = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -12,122 +12,122 @@ const LogoWrongUsage = class {
|
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
14
|
return h("ul", {
|
|
15
|
-
key: '
|
|
16
|
-
class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
15
|
+
key: 'e2fbd7802c153f970a457011a5dcaf3163d6290f',
|
|
16
|
+
class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
17
17
|
}, h("span", {
|
|
18
|
-
key: '
|
|
18
|
+
key: '07d6a5b930dd8ae652e63310c4232e8c3e6858b2',
|
|
19
19
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
20
20
|
}, h("div", {
|
|
21
|
-
key: '
|
|
21
|
+
key: '5d3dd01a67f41f839e79aa3d449ba319dcc0209c',
|
|
22
22
|
class: "example"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '6b51ea71b6b4072ec6c66223a4f92c1232e8691a',
|
|
25
25
|
class: "bg-dark "
|
|
26
26
|
}, h("div", {
|
|
27
|
-
key: '
|
|
27
|
+
key: '03a476635bc1112f1ea2d4ed10df0415ead7f0f8',
|
|
28
28
|
class: "no-other-bg-color logo",
|
|
29
29
|
innerHTML: hLogoColor
|
|
30
30
|
})), h("p", {
|
|
31
|
-
key: '
|
|
31
|
+
key: '084116335e9f8ed4c9d2a04a9551097dc2a53c4a',
|
|
32
32
|
class: "f-ui-02"
|
|
33
33
|
}, "Do not use with backgrounds that make legibility difficult"))), h("span", {
|
|
34
|
-
key: '
|
|
34
|
+
key: 'e67f1bdeee28928f4f6f8fb5d1e0b59160edd949',
|
|
35
35
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
36
36
|
}, h("div", {
|
|
37
|
-
key: '
|
|
37
|
+
key: 'b0e909eb57a6771b32a93dd0932ef5b848a19ff2',
|
|
38
38
|
class: "example"
|
|
39
39
|
}, h("div", {
|
|
40
|
-
key: '
|
|
40
|
+
key: '19bc9f29ddbffd1c308cb429100f0af3d58237a1',
|
|
41
41
|
class: "no-other-color p-16"
|
|
42
42
|
}, h("div", {
|
|
43
|
-
key: '
|
|
43
|
+
key: '301c5cb926b9ad167f1ba096f99a874577617fb1',
|
|
44
44
|
class: "logo non-brand-color",
|
|
45
45
|
innerHTML: hLogoColor
|
|
46
46
|
})), h("p", {
|
|
47
|
-
key: '
|
|
47
|
+
key: 'b41ab53c2af9efeafb46d41a515eba2f801d49e4',
|
|
48
48
|
class: "f-ui-02"
|
|
49
49
|
}, "Do not apply other colors"))), h("span", {
|
|
50
|
-
key: '
|
|
50
|
+
key: '826ae54f62c5a3880adf1833dbc19bbb9e1ec6f2',
|
|
51
51
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
52
52
|
}, h("div", {
|
|
53
|
-
key: '
|
|
53
|
+
key: '092d5fc3176845532ecf577c66d6e3a349ebfe45',
|
|
54
54
|
class: "example"
|
|
55
55
|
}, h("div", {
|
|
56
|
-
key: '
|
|
56
|
+
key: '1d1d3cc86e728fc21f898c59ff1511c5fa728f9f',
|
|
57
57
|
class: "bg-light p-16"
|
|
58
58
|
}, h("div", {
|
|
59
|
-
key: '
|
|
59
|
+
key: 'df05102398d3de9916a23d0998529d8ca8a66257',
|
|
60
60
|
class: "logo distorted",
|
|
61
61
|
innerHTML: hLogoColor
|
|
62
62
|
})), h("p", {
|
|
63
|
-
key: '
|
|
63
|
+
key: '377e38a762855d563d087eb275481de6a17ddbbb',
|
|
64
64
|
class: "f-ui-02"
|
|
65
65
|
}, "Do not deform the logo"))), h("span", {
|
|
66
|
-
key: '
|
|
66
|
+
key: '766c4ea568c8bf2fa1efa207ff5f602e5128aef3',
|
|
67
67
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
68
68
|
}, h("div", {
|
|
69
|
-
key: '
|
|
69
|
+
key: 'cf4e883370c0ee284167bea7f2c0c603932d1682',
|
|
70
70
|
class: "example"
|
|
71
71
|
}, h("div", {
|
|
72
|
-
key: '
|
|
72
|
+
key: 'de160646456f91316bf966db6568c20ff382dd3b',
|
|
73
73
|
class: "bg-white p-16"
|
|
74
74
|
}, h("div", {
|
|
75
|
-
key: '
|
|
75
|
+
key: '5aa03093e5e483547919eaeca58643e54a286405',
|
|
76
76
|
class: "logo effects",
|
|
77
77
|
innerHTML: hLogoColor
|
|
78
78
|
})), h("p", {
|
|
79
|
-
key: '
|
|
79
|
+
key: 'aa65e295008001d6fe2b2168d8f7f43a770ec8e3',
|
|
80
80
|
class: "f-ui-02"
|
|
81
81
|
}, "Do not apply effects"))), h("span", {
|
|
82
|
-
key: '
|
|
82
|
+
key: 'd0eb2536e430b6e9fdb9a37d638d5c31ee81e205',
|
|
83
83
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
84
84
|
}, h("div", {
|
|
85
|
-
key: '
|
|
85
|
+
key: '43ec87b4632c2709404aff9d3e7bbcb2910426ca',
|
|
86
86
|
class: "example"
|
|
87
87
|
}, h("div", {
|
|
88
|
-
key: '
|
|
88
|
+
key: '36cd6dc2b23070e5c7fdfc09444d3ccbb8681216',
|
|
89
89
|
class: "bg-white p-16"
|
|
90
90
|
}, h("div", {
|
|
91
|
-
key: '
|
|
91
|
+
key: 'a1077b322d113220e05ee3edce627c60547cb49a',
|
|
92
92
|
class: "logo rotated",
|
|
93
93
|
innerHTML: hLogoColor
|
|
94
94
|
})), h("p", {
|
|
95
|
-
key: '
|
|
95
|
+
key: '86c384f5cf362d16bd6ac5ac8448e3e0d591fa18',
|
|
96
96
|
class: "f-ui-02"
|
|
97
97
|
}, "Do not rotate the logo"))), h("span", {
|
|
98
|
-
key: '
|
|
98
|
+
key: 'b267f6024a4e7bad6348d323606922888db5264b',
|
|
99
99
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
100
100
|
}, h("div", {
|
|
101
|
-
key: '
|
|
101
|
+
key: '0bd0c5d62e454ce133a187e7d3917afc0c26c551',
|
|
102
102
|
class: "example"
|
|
103
103
|
}, h("div", {
|
|
104
|
-
key: '
|
|
104
|
+
key: '71e4c1681cfbb64970237b410e0925a0f22e1141',
|
|
105
105
|
class: "bg-light p-16"
|
|
106
106
|
}, h("div", {
|
|
107
|
-
key: '
|
|
107
|
+
key: '01ab5d75102b9f476fecebcc31c975f6d4720c12',
|
|
108
108
|
class: "logo outlined",
|
|
109
109
|
innerHTML: hLogoColor
|
|
110
110
|
})), h("p", {
|
|
111
|
-
key: '
|
|
111
|
+
key: '0734a049d710d1f6406989668f60da1249e29c7b',
|
|
112
112
|
class: "f-ui-02"
|
|
113
113
|
}, "Do not apply outlines"))), h("span", {
|
|
114
|
-
key: '
|
|
114
|
+
key: '830b7b2a8cdf6dfc7f395dc92db42fbe626a7ae4',
|
|
115
115
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
116
116
|
}), h("span", {
|
|
117
|
-
key: '
|
|
117
|
+
key: 'ca40bb4ea839eacf62e93f7fbec41f076f7b12a6',
|
|
118
118
|
class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
|
|
119
119
|
}, h("div", {
|
|
120
|
-
key: '
|
|
120
|
+
key: '641a963ba81294eefe8fc00dd0a3bdca91af94a2',
|
|
121
121
|
class: "example"
|
|
122
122
|
}, h("div", {
|
|
123
|
-
key: '
|
|
123
|
+
key: '70691be08e9081899fb2928d5d287aaebef3b399',
|
|
124
124
|
class: "bg-accent p-16"
|
|
125
125
|
}, h("div", {
|
|
126
|
-
key: '
|
|
126
|
+
key: '556135fd6596b530bf959bb9984641f185cd9f96',
|
|
127
127
|
class: "text-inverse",
|
|
128
128
|
innerHTML: hLogoColor
|
|
129
129
|
})), h("p", {
|
|
130
|
-
key: '
|
|
130
|
+
key: '7eaded302e41fc1d04f2033add829dfaba6e8012',
|
|
131
131
|
class: "f-ui-02"
|
|
132
132
|
}, "Do not use the green background for the logo version of the logo with backgrounds with the same tones"))));
|
|
133
133
|
}
|
package/package.json
CHANGED
package/src/components.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare const EdsSocialNetworks: import("react").ForwardRefExoticComponen
|
|
|
32
32
|
export declare const EdsTable: import("react").ForwardRefExoticComponent<JSX.EdsTable & Omit<import("react").HTMLAttributes<HTMLEdsTableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsTableElement>>;
|
|
33
33
|
export declare const EdsTabs: import("react").ForwardRefExoticComponent<JSX.EdsTabs & Omit<import("react").HTMLAttributes<HTMLEdsTabsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsTabsElement>>;
|
|
34
34
|
export declare const EdsTag: import("react").ForwardRefExoticComponent<JSX.EdsTag & Omit<import("react").HTMLAttributes<HTMLEdsTagElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsTagElement>>;
|
|
35
|
+
export declare const EdsTimeline: import("react").ForwardRefExoticComponent<JSX.EdsTimeline & Omit<import("react").HTMLAttributes<HTMLEdsTimelineElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsTimelineElement>>;
|
|
35
36
|
export declare const EdsToast: import("react").ForwardRefExoticComponent<JSX.EdsToast & Omit<import("react").HTMLAttributes<HTMLEdsToastElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsToastElement>>;
|
|
36
37
|
export declare const EdsToastManager: import("react").ForwardRefExoticComponent<JSX.EdsToastManager & Omit<import("react").HTMLAttributes<HTMLEdsToastManagerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsToastManagerElement>>;
|
|
37
38
|
export declare const EdsTooltip: import("react").ForwardRefExoticComponent<JSX.EdsTooltip & Omit<import("react").HTMLAttributes<HTMLEdsTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsTooltipElement>>;
|
|
@@ -296,7 +296,7 @@ const TokenList = class {
|
|
|
296
296
|
[this.show]: colors[this.show]
|
|
297
297
|
} : colors;
|
|
298
298
|
return h("section", {
|
|
299
|
-
key: '
|
|
299
|
+
key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3',
|
|
300
300
|
class: "w-full mt-28"
|
|
301
301
|
}, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
302
302
|
// Only render sections that exist in `colors`
|
|
@@ -317,10 +317,10 @@ const TokenRadii = class {
|
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
319
|
return h("section", {
|
|
320
|
-
key: '
|
|
320
|
+
key: '84dabcd5a39d49e116f8fc9e9b26e00455c7fbb3',
|
|
321
321
|
class: "w-full mt-28"
|
|
322
322
|
}, h("ul", {
|
|
323
|
-
key: '
|
|
323
|
+
key: 'a821c747c45b8898ab2e7626d2ead91814549335',
|
|
324
324
|
class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
325
325
|
}, Object.entries(radii).map(([key, value]) => h("li", {
|
|
326
326
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
@@ -358,10 +358,10 @@ const TokenShadows = class {
|
|
|
358
358
|
}
|
|
359
359
|
render() {
|
|
360
360
|
return h("section", {
|
|
361
|
-
key: '
|
|
361
|
+
key: '4575feac8b5bff23aed39733e638fbb62916988f',
|
|
362
362
|
class: "w-full mt-28"
|
|
363
363
|
}, h("ul", {
|
|
364
|
-
key: '
|
|
364
|
+
key: 'c9833aa0d698a7ec33911011ccb9227d43c8261a',
|
|
365
365
|
class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
366
366
|
}, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => h("li", {
|
|
367
367
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16"
|
|
@@ -17,15 +17,15 @@ const TokenRatios = class {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
return h("section", {
|
|
20
|
-
key: '
|
|
20
|
+
key: '9c4dc70bd40a40fbeedc88280ea3fdd4b2597e40',
|
|
21
21
|
class: "w-full"
|
|
22
22
|
}, h("eds-section-core", {
|
|
23
|
-
key: '
|
|
23
|
+
key: '039b72b762e48f62a4fa58d5af7803d0ed73bf6a',
|
|
24
24
|
tag: "div",
|
|
25
25
|
"section-title": "Aspect Ratios",
|
|
26
26
|
"heading-level": "h3"
|
|
27
27
|
}, h("ul", {
|
|
28
|
-
key: '
|
|
28
|
+
key: 'be3e37d842a24536488b7bc03f24399faa1304ff',
|
|
29
29
|
class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
30
30
|
}, Object.entries(ratios).map(([key, value]) => h("li", {
|
|
31
31
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
@@ -9,82 +9,82 @@ const TokenSpacing = class {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
return h("div", {
|
|
12
|
-
key: '
|
|
12
|
+
key: '5f72b8386e92973faca8b22ebadcffa5b8ca8744',
|
|
13
13
|
class: "w-full"
|
|
14
14
|
}, h("ul", {
|
|
15
|
-
key: '
|
|
15
|
+
key: '619cc2546059aaac566dc89f56b098f72f7c2bde',
|
|
16
16
|
class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
17
17
|
}, h("li", {
|
|
18
|
-
key: '
|
|
18
|
+
key: 'b90587543210e02a577854ce061472ef8f3bdc7a',
|
|
19
19
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
20
20
|
}, h("div", {
|
|
21
|
-
key: '
|
|
21
|
+
key: 'd98ea95c641209ba592aae8c695e278549840420',
|
|
22
22
|
class: "container p-8 item-center border-2 border-soft"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '6dd84540a213d98fa09480eac823fe030dfb2404',
|
|
25
25
|
class: "spacing-sample m-32 bg-darker"
|
|
26
26
|
}, h("span", {
|
|
27
|
-
key: '
|
|
27
|
+
key: 'ad0493ba8d97cdcc15535505db4d726d6f69bd38',
|
|
28
28
|
class: "text-white"
|
|
29
29
|
}, "Margin: 2rem / m-32")))), h("li", {
|
|
30
|
-
key: '
|
|
30
|
+
key: 'a0914d288cdb4b9caef6956af0069cd0937ee019',
|
|
31
31
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
32
32
|
}, h("div", {
|
|
33
|
-
key: '
|
|
33
|
+
key: '95adc2b10d3962378de300e00b749b691fda88af',
|
|
34
34
|
class: "container p-8 item-center border-2 border-soft"
|
|
35
35
|
}, h("div", {
|
|
36
|
-
key: '
|
|
36
|
+
key: '8bad94397c9fe8112b49933a508958000f9cd99d',
|
|
37
37
|
class: "spacing-sample ml-64 bg-darker"
|
|
38
38
|
}, h("span", {
|
|
39
|
-
key: '
|
|
39
|
+
key: '04229385104243a5ce9a194c4f8056f7341a6736',
|
|
40
40
|
class: "text-white"
|
|
41
41
|
}, "Margin Left: 4rem / ml-64")))), h("li", {
|
|
42
|
-
key: '
|
|
42
|
+
key: 'f34e1fd5ccafc528ed9359766deaa5c615a2e14b',
|
|
43
43
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
44
44
|
}, h("div", {
|
|
45
|
-
key: '
|
|
45
|
+
key: '38e12800b2c8502ea2f9e912af929f71d3ec9699',
|
|
46
46
|
class: "container p-8 item-center border-2 border-soft"
|
|
47
47
|
}, h("div", {
|
|
48
|
-
key: '
|
|
48
|
+
key: 'f4e93d89576ab3de7f44ce3a85d9838f21bfa7f6',
|
|
49
49
|
class: "spacing-sample mt-32 bg-darker"
|
|
50
50
|
}, h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: 'e85e2e1c7c4c7e765dfafd25dc9f2c33b6bd5069',
|
|
52
52
|
class: "text-white"
|
|
53
53
|
}, "Margin Top: 2rem / mt-32")))), h("li", {
|
|
54
|
-
key: '
|
|
54
|
+
key: 'b42299c17c024a5906bd09c80a2f309b461b6fde',
|
|
55
55
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
56
56
|
}, h("div", {
|
|
57
|
-
key: '
|
|
57
|
+
key: 'f54a9e32893ac6f1b0384e79e2959d1e65a251e2',
|
|
58
58
|
class: "container p-8 item-center border-2 border-soft"
|
|
59
59
|
}, h("div", {
|
|
60
|
-
key: '
|
|
60
|
+
key: '4209fa0c979a1d55d42d7b892bc94cc0f3788e88',
|
|
61
61
|
class: "spacing-sample p-32 bg-darker"
|
|
62
62
|
}, h("span", {
|
|
63
|
-
key: '
|
|
63
|
+
key: '1d9249c56d3a42500dfb8cc1d3eae1f89e79cdcd',
|
|
64
64
|
class: "text-white"
|
|
65
65
|
}, "Padding: 2rem / p-32")))), h("li", {
|
|
66
|
-
key: '
|
|
66
|
+
key: 'ad6f2e33e15c4c21bdfed8478b3d2faa905490fa',
|
|
67
67
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
68
68
|
}, h("div", {
|
|
69
|
-
key: '
|
|
69
|
+
key: '9950970e66b8a382e7b0158b54e980a5e5f45774',
|
|
70
70
|
class: "container p-8 item-center border-2 border-soft"
|
|
71
71
|
}, h("div", {
|
|
72
|
-
key: '
|
|
72
|
+
key: '40e96cd046eaddf3a23387995affbfc399d171ae',
|
|
73
73
|
class: "spacing-sample pt-32 bg-darker"
|
|
74
74
|
}, h("span", {
|
|
75
|
-
key: '
|
|
75
|
+
key: '2d120273f7a6d4429061d0ade2164ada9a14b506',
|
|
76
76
|
class: "text-white"
|
|
77
77
|
}, "Padding Top: 2rem / pt-32")))), h("li", {
|
|
78
|
-
key: '
|
|
78
|
+
key: '8c3327edc63f8959c0cb01cce0a8407bf3a605af',
|
|
79
79
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
80
80
|
}, h("div", {
|
|
81
|
-
key: '
|
|
81
|
+
key: 'c0be38039770c54577f073e1a707110cd0807ab5',
|
|
82
82
|
class: "container p-8 item-center border-2 border-soft"
|
|
83
83
|
}, h("div", {
|
|
84
|
-
key: '
|
|
84
|
+
key: 'd8085da375e734ed11fe580f1a9004f6fddef679',
|
|
85
85
|
class: "spacing-sample pl-32 bg-darker"
|
|
86
86
|
}, h("span", {
|
|
87
|
-
key: '
|
|
87
|
+
key: '029857c00659221390438d8477734d0f130d1b97',
|
|
88
88
|
class: "text-white"
|
|
89
89
|
}, "Padding Left: 2rem / pl-32"))))));
|
|
90
90
|
}
|
|
@@ -202,10 +202,10 @@ const TokenTypography = class {
|
|
|
202
202
|
}
|
|
203
203
|
render() {
|
|
204
204
|
return h("section", {
|
|
205
|
-
key: '
|
|
205
|
+
key: '23815518d694435812ed3d7b9aab850043941b96',
|
|
206
206
|
class: "w-full"
|
|
207
207
|
}, h("ul", {
|
|
208
|
-
key: '
|
|
208
|
+
key: '366ed5bc5933c5b8a563d33b70471f507a21386c',
|
|
209
209
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
210
210
|
}, Object.entries(typography.typesets).filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
211
211
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => h("li", {
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react-dom';
|
|
5
|
-
|
|
6
|
-
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-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.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}.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}.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-20{padding-top:1.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-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.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}";
|
|
7
|
-
const EdsAccordionStyle0 = edsAccordionCss;
|
|
8
|
-
const EdsAccordion = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.accordionChange = createEvent(this, "accordionChange", 7);
|
|
12
|
-
/**
|
|
13
|
-
* Handles the click event on the accordion header to toggle expansion.
|
|
14
|
-
* Toggles the `isExpanded` state and emits the `accordionChange` event.
|
|
15
|
-
*/
|
|
16
|
-
this.handleClick = () => {
|
|
17
|
-
this.isExpanded = !this.isExpanded;
|
|
18
|
-
this.accordionChange.emit(this.isExpanded);
|
|
19
|
-
this.setPanelHeight();
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Calculates and sets the panel height based on the content height
|
|
23
|
-
* and adjusts based on the `shortContent` and `isExpanded` states.
|
|
24
|
-
*/
|
|
25
|
-
this.setPanelHeight = () => {
|
|
26
|
-
if (this.childContentRef) {
|
|
27
|
-
this.shortContent = this.wrapperRef.scrollWidth > 830 && !this.description ? this.childContentRef.scrollHeight <= 80 : this.childContentRef.scrollHeight <= 20;
|
|
28
|
-
this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
this.title = undefined;
|
|
32
|
-
this.description = undefined;
|
|
33
|
-
this.switchBg = true;
|
|
34
|
-
this.expanded = false;
|
|
35
|
-
this.clampText = true;
|
|
36
|
-
this.minHeightContent = false;
|
|
37
|
-
this.isExpanded = this.expanded;
|
|
38
|
-
this.panelHeight = 0;
|
|
39
|
-
this.shortContent = false;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
43
|
-
* to recalculate height on window resize.
|
|
44
|
-
*/
|
|
45
|
-
componentDidLoad() {
|
|
46
|
-
this.setPanelHeight();
|
|
47
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
48
|
-
const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
49
|
-
this.emitContext(btn);
|
|
50
|
-
window.addEventListener('resize', this.setPanelHeight);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
54
|
-
* This event provides context information about the breadcrumb component.
|
|
55
|
-
*
|
|
56
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
57
|
-
*/
|
|
58
|
-
emitContext(linkElement) {
|
|
59
|
-
const event = new CustomEvent('parentContext', {
|
|
60
|
-
detail: {
|
|
61
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
62
|
-
identifier: null
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
linkElement.dispatchEvent(event);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
69
|
-
*/
|
|
70
|
-
disconnectedCallback() {
|
|
71
|
-
window.removeEventListener('resize', this.setPanelHeight);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
75
|
-
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
76
|
-
*/
|
|
77
|
-
render() {
|
|
78
|
-
const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
|
|
79
|
-
return h("div", {
|
|
80
|
-
key: '1f8ea188c4b39f6d1a8d10cdbf43d3df88d1281f',
|
|
81
|
-
ref: el => this.wrapperRef = el,
|
|
82
|
-
class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
83
|
-
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
84
|
-
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
85
|
-
${minHeightContentClass}`
|
|
86
|
-
}, h("h3", {
|
|
87
|
-
key: '4490bdc1a18b99850e8db8ae1c38fcb37912ec0d',
|
|
88
|
-
class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1"
|
|
89
|
-
}, this.title), h("div", {
|
|
90
|
-
key: '82df433a9cc6805a735300fd1bb52f41c639c992',
|
|
91
|
-
class: "ml-auto"
|
|
92
|
-
}, h("eds-button", {
|
|
93
|
-
key: '9965d5eecfa02fbea08c23c44d325417767f6495',
|
|
94
|
-
id: "accordionId",
|
|
95
|
-
intent: "tertiary",
|
|
96
|
-
"aria-expanded": this.isExpanded || this.shortContent,
|
|
97
|
-
"aria-controls": "accordionId",
|
|
98
|
-
class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`,
|
|
99
|
-
onClick: this.handleClick,
|
|
100
|
-
icon: "chevron-down"
|
|
101
|
-
})), h("div", {
|
|
102
|
-
key: '7ab8d2d07d55fa05c5e5647d1d00d1165f0d40ce',
|
|
103
|
-
class: `w-full`
|
|
104
|
-
}, this.description ? h("span", {
|
|
105
|
-
class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}`
|
|
106
|
-
}, this.description) : null, h("section", {
|
|
107
|
-
key: 'cb122dd5433d7012cba6f3769f79e92a155c45d7',
|
|
108
|
-
id: "sectionId",
|
|
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: '0c2e1d9b38f21f0cb7f50aa3923edcc448418e3f',
|
|
116
|
-
ref: el => this.childContentRef = el,
|
|
117
|
-
class: `accordion-content effect-color pt-20`,
|
|
118
|
-
"aria-hidden": !this.isExpanded
|
|
119
|
-
}, h("span", {
|
|
120
|
-
key: 'd119c88d54e8d5e83d4cc3d4d16d1cd53d689bc7',
|
|
121
|
-
class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}`
|
|
122
|
-
}, h("slot", {
|
|
123
|
-
key: 'b2a6917ec65bc808389a2d1c77cd1183f00cbaa1'
|
|
124
|
-
}))))));
|
|
125
|
-
}
|
|
126
|
-
get el() {
|
|
127
|
-
return getElement(this);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
EdsAccordion.style = EdsAccordionStyle0;
|
|
131
|
-
|
|
132
|
-
export { EdsAccordion as eds_accordion };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react-dom';
|
|
5
|
-
|
|
6
|
-
const edsBlockBreakCss = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}";
|
|
7
|
-
const EdsBlockBreakStyle0 = edsBlockBreakCss;
|
|
8
|
-
const EdsBlockBreak = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.extraClass = '';
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return h("hr", {
|
|
15
|
-
key: '85b5253d4abb77072424452d2ff6a0d631e67652',
|
|
16
|
-
class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}`
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
EdsBlockBreak.style = EdsBlockBreakStyle0;
|
|
21
|
-
|
|
22
|
-
export { EdsBlockBreak as eds_block_break };
|