@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.
Files changed (48) hide show
  1. package/{color-0ba8ed56.esm.js → color-bb472c37.esm.js} +2 -2
  2. package/color-primary-palette_6.entry.esm.js +106 -106
  3. package/correct-use-of-colors.entry.esm.js +57 -57
  4. package/{eds-alert_28.entry.esm.js → eds-accordion_33.entry.esm.js} +187 -45
  5. package/eds-card-project.entry.esm.js +1 -1
  6. package/eds-card-section.entry.esm.js +18 -8
  7. package/eds-card-tags.entry.esm.js +1 -1
  8. package/eds-card-tool.entry.esm.js +1 -1
  9. package/eds-card-wrapper.entry.esm.js +4 -4
  10. package/eds-code-block.entry.esm.js +55 -8
  11. package/eds-components-section.entry.esm.js +57 -24
  12. package/eds-docs-palettes.entry.esm.js +1 -1
  13. package/eds-docs-tokens.entry.esm.js +1 -1
  14. package/eds-login.entry.esm.js +4 -12
  15. package/eds-logo-variations.entry.esm.js +29 -0
  16. package/eds-matomo-notice.entry.esm.js +1 -1
  17. package/{eds-pagination.entry.esm.js → eds-pagination_2.entry.esm.js} +222 -7
  18. package/eds-progress-bar.entry.esm.js +36 -0
  19. package/eds-rating.entry.esm.js +7 -9
  20. package/eds-svg-repository.entry.esm.js +12 -3
  21. package/eds-tabs-content.entry.esm.js +5 -5
  22. package/eds-tabs.entry.esm.js +27 -8
  23. package/eds-timeline.entry.esm.js +131 -0
  24. package/eds-tooltip.entry.esm.js +13 -3
  25. package/eds-trl.entry.esm.js +68 -0
  26. package/incorrect-use-of-colors.entry.esm.js +11 -10
  27. package/index.esm.js +1 -1
  28. package/index.esm2.js +20 -37
  29. package/logo-space.entry.esm.js +4 -4
  30. package/logo-variations-horizontal_2.entry.esm.js +116 -0
  31. package/logo-wrong-usage.entry.esm.js +39 -39
  32. package/package.json +1 -1
  33. package/src/components.d.ts +1 -0
  34. package/token-list_3.entry.esm.js +5 -5
  35. package/token-ratios.entry.esm.js +3 -3
  36. package/token-spacing.entry.esm.js +26 -26
  37. package/token-typography.entry.esm.js +2 -2
  38. package/eds-accordion.entry.esm.js +0 -132
  39. package/eds-block-break.entry.esm.js +0 -22
  40. package/eds-breadcrumb.entry.esm.js +0 -169
  41. package/eds-footer.entry.esm.js +0 -110
  42. package/eds-frame.entry.esm.js +0 -117
  43. package/eds-fullscreen-menu.entry.esm.js +0 -143
  44. package/eds-modal.entry.esm.js +0 -114
  45. package/eds-social-networks.entry.esm.js +0 -74
  46. package/eds-table.entry.esm.js +0 -196
  47. package/logo-variations-horizontal.entry.esm.js +0 -50
  48. 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: '9aa8a3f496e779f561e54a6ee656528b2e55a500',
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: '735e61f1189decb4fef74b5f9f481f94f51c304e',
18
+ key: '07d6a5b930dd8ae652e63310c4232e8c3e6858b2',
19
19
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
20
20
  }, h("div", {
21
- key: '8d8859bef157051ca9493bac1fd35e0db80414c0',
21
+ key: '5d3dd01a67f41f839e79aa3d449ba319dcc0209c',
22
22
  class: "example"
23
23
  }, h("div", {
24
- key: '6ee9ce679339e1189439239889a60d8cba39c4b1',
24
+ key: '6b51ea71b6b4072ec6c66223a4f92c1232e8691a',
25
25
  class: "bg-dark "
26
26
  }, h("div", {
27
- key: '492054f20250a9572ac3c641d05bbb955c050be4',
27
+ key: '03a476635bc1112f1ea2d4ed10df0415ead7f0f8',
28
28
  class: "no-other-bg-color logo",
29
29
  innerHTML: hLogoColor
30
30
  })), h("p", {
31
- key: 'c9f49c3c44fb7446e6e4e02c1f79ac15827633ba',
31
+ key: '084116335e9f8ed4c9d2a04a9551097dc2a53c4a',
32
32
  class: "f-ui-02"
33
33
  }, "Do not use with backgrounds that make legibility difficult"))), h("span", {
34
- key: 'd5cbda2472d3396f08fdb600676852708991ce0f',
34
+ key: 'e67f1bdeee28928f4f6f8fb5d1e0b59160edd949',
35
35
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
36
36
  }, h("div", {
37
- key: 'dacbf3bcf4dd4914b4332a663a81732a196457f4',
37
+ key: 'b0e909eb57a6771b32a93dd0932ef5b848a19ff2',
38
38
  class: "example"
39
39
  }, h("div", {
40
- key: '9f9bb9b86a840658cf7311a2b035dbadd6a3e0af',
40
+ key: '19bc9f29ddbffd1c308cb429100f0af3d58237a1',
41
41
  class: "no-other-color p-16"
42
42
  }, h("div", {
43
- key: '9e96d60f66801638898c12b190640ae0dcc18d24',
43
+ key: '301c5cb926b9ad167f1ba096f99a874577617fb1',
44
44
  class: "logo non-brand-color",
45
45
  innerHTML: hLogoColor
46
46
  })), h("p", {
47
- key: '5e0470cb9f81e4bba14104746715704fed2fddeb',
47
+ key: 'b41ab53c2af9efeafb46d41a515eba2f801d49e4',
48
48
  class: "f-ui-02"
49
49
  }, "Do not apply other colors"))), h("span", {
50
- key: '5e9e1943ab5d4cda7d6b4cb51b76f9da4370a50b',
50
+ key: '826ae54f62c5a3880adf1833dbc19bbb9e1ec6f2',
51
51
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
52
52
  }, h("div", {
53
- key: '9821754465969edcf1ea98aa7a353ff04140612f',
53
+ key: '092d5fc3176845532ecf577c66d6e3a349ebfe45',
54
54
  class: "example"
55
55
  }, h("div", {
56
- key: '513bb5879746d5979cf7f5360ea60c97196e5379',
56
+ key: '1d1d3cc86e728fc21f898c59ff1511c5fa728f9f',
57
57
  class: "bg-light p-16"
58
58
  }, h("div", {
59
- key: '25f615bf82c51f8601960cb705fa5983667a4943',
59
+ key: 'df05102398d3de9916a23d0998529d8ca8a66257',
60
60
  class: "logo distorted",
61
61
  innerHTML: hLogoColor
62
62
  })), h("p", {
63
- key: '636efd5a54620ca8248b5e1adbf453a7d5292d0f',
63
+ key: '377e38a762855d563d087eb275481de6a17ddbbb',
64
64
  class: "f-ui-02"
65
65
  }, "Do not deform the logo"))), h("span", {
66
- key: 'a006b91c704b1df8f7adf1cad1d0033bd11378d8',
66
+ key: '766c4ea568c8bf2fa1efa207ff5f602e5128aef3',
67
67
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
68
68
  }, h("div", {
69
- key: '6a494fdace1e6a2ff48e02a6a8a79f31ca101e02',
69
+ key: 'cf4e883370c0ee284167bea7f2c0c603932d1682',
70
70
  class: "example"
71
71
  }, h("div", {
72
- key: '09ea335ac52cb395cc3173263b4a956aba59cc4e',
72
+ key: 'de160646456f91316bf966db6568c20ff382dd3b',
73
73
  class: "bg-white p-16"
74
74
  }, h("div", {
75
- key: '9acf37c882acb0a04fddc5754b8e91e6789f36ee',
75
+ key: '5aa03093e5e483547919eaeca58643e54a286405',
76
76
  class: "logo effects",
77
77
  innerHTML: hLogoColor
78
78
  })), h("p", {
79
- key: 'f648aefe81578e9768c24de085e53e2484c1bb7b',
79
+ key: 'aa65e295008001d6fe2b2168d8f7f43a770ec8e3',
80
80
  class: "f-ui-02"
81
81
  }, "Do not apply effects"))), h("span", {
82
- key: '70f90abc0d6a3292101e29bdfc311ebb0192a585',
82
+ key: 'd0eb2536e430b6e9fdb9a37d638d5c31ee81e205',
83
83
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
84
84
  }, h("div", {
85
- key: '9eb3aa4276d7b0a9f7c5e76ffa9fefe7f3def0a3',
85
+ key: '43ec87b4632c2709404aff9d3e7bbcb2910426ca',
86
86
  class: "example"
87
87
  }, h("div", {
88
- key: '5a38e80d567d2c2faf08fbcb66a62c24973c3fea',
88
+ key: '36cd6dc2b23070e5c7fdfc09444d3ccbb8681216',
89
89
  class: "bg-white p-16"
90
90
  }, h("div", {
91
- key: '7edbadc8850a9babefea43be9c5f9697021712d5',
91
+ key: 'a1077b322d113220e05ee3edce627c60547cb49a',
92
92
  class: "logo rotated",
93
93
  innerHTML: hLogoColor
94
94
  })), h("p", {
95
- key: '96d30acd52838a03f33fd6c8dcf89a72417ce925',
95
+ key: '86c384f5cf362d16bd6ac5ac8448e3e0d591fa18',
96
96
  class: "f-ui-02"
97
97
  }, "Do not rotate the logo"))), h("span", {
98
- key: '41d476bd66b39e796f03c669945024720771216f',
98
+ key: 'b267f6024a4e7bad6348d323606922888db5264b',
99
99
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
100
100
  }, h("div", {
101
- key: '3fd7f690559195125d633097b578b1cc2ff4ccc1',
101
+ key: '0bd0c5d62e454ce133a187e7d3917afc0c26c551',
102
102
  class: "example"
103
103
  }, h("div", {
104
- key: '684387318cfffdfbc5592486095a28a923e5af07',
104
+ key: '71e4c1681cfbb64970237b410e0925a0f22e1141',
105
105
  class: "bg-light p-16"
106
106
  }, h("div", {
107
- key: '7593acd61c1ea52ce613a1f3395c8769a09f9aed',
107
+ key: '01ab5d75102b9f476fecebcc31c975f6d4720c12',
108
108
  class: "logo outlined",
109
109
  innerHTML: hLogoColor
110
110
  })), h("p", {
111
- key: '51d6d974c005a0b5059cd002dff682dc50cfb19a',
111
+ key: '0734a049d710d1f6406989668f60da1249e29c7b',
112
112
  class: "f-ui-02"
113
113
  }, "Do not apply outlines"))), h("span", {
114
- key: '605db4b33b7aab4d0e81e30f658f639689a433b6',
114
+ key: '830b7b2a8cdf6dfc7f395dc92db42fbe626a7ae4',
115
115
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
116
116
  }), h("span", {
117
- key: '1dc1e6be701572fb7d31b435f8b25dbaf0bf30c8',
117
+ key: 'ca40bb4ea839eacf62e93f7fbec41f076f7b12a6',
118
118
  class: `grid-col-span-12 md:grid-col-span-4 flex flex-col`
119
119
  }, h("div", {
120
- key: '30b239799a7d8acf93eba73d3d5dba3cc7117fb5',
120
+ key: '641a963ba81294eefe8fc00dd0a3bdca91af94a2',
121
121
  class: "example"
122
122
  }, h("div", {
123
- key: '16a146193f1ec233f37a9472dfe5fa92de10864d',
123
+ key: '70691be08e9081899fb2928d5d287aaebef3b399',
124
124
  class: "bg-accent p-16"
125
125
  }, h("div", {
126
- key: 'cc5924ad51847399ec52c2ece993bdd22305892f',
126
+ key: '556135fd6596b530bf959bb9984641f185cd9f96',
127
127
  class: "text-inverse",
128
128
  innerHTML: hLogoColor
129
129
  })), h("p", {
130
- key: 'bdcd59e968000ecd459b65aaa42e75fa9e06f8ef',
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebrains/react",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.4.0-alpha.0",
4
4
  "module": "./index.esm.js",
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",
@@ -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: '12f2874bbc9a74aea2a37e3c9314e85b5cf96d8c',
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: '8b66cda1370f366c46ed2772ee0a5a18878cdc13',
320
+ key: '84dabcd5a39d49e116f8fc9e9b26e00455c7fbb3',
321
321
  class: "w-full mt-28"
322
322
  }, h("ul", {
323
- key: '652f4812de4a40c94646b25429b16683bfc8f54c',
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: '6651a6dcd282a9f9df84249c73ab08a6e8d83597',
361
+ key: '4575feac8b5bff23aed39733e638fbb62916988f',
362
362
  class: "w-full mt-28"
363
363
  }, h("ul", {
364
- key: '12bda2b4a1306c9a8d1bc4f41da4edd5258e381f',
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: 'd6df281aee2b33d5dd1087c9d06aff6656bf9145',
20
+ key: '9c4dc70bd40a40fbeedc88280ea3fdd4b2597e40',
21
21
  class: "w-full"
22
22
  }, h("eds-section-core", {
23
- key: 'fdf31da89f0fa75f5a724ae9bdb26d59dd22fe9e',
23
+ key: '039b72b762e48f62a4fa58d5af7803d0ed73bf6a',
24
24
  tag: "div",
25
25
  "section-title": "Aspect Ratios",
26
26
  "heading-level": "h3"
27
27
  }, h("ul", {
28
- key: '01473ff27842d278c1269870463fb0c1a0658406',
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: 'ae388def4474fbd6e9766c2e04eb382ac9022bb8',
12
+ key: '5f72b8386e92973faca8b22ebadcffa5b8ca8744',
13
13
  class: "w-full"
14
14
  }, h("ul", {
15
- key: 'a2a51b9494dbd1bbb8b8d454117bc254e9602938',
15
+ key: '619cc2546059aaac566dc89f56b098f72f7c2bde',
16
16
  class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
17
17
  }, h("li", {
18
- key: '9e48e3551369f35ae6ec72d493ae888ebee3cceb',
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: '65b5b1192cdfef841bd4beed6eedf0068393ba8d',
21
+ key: 'd98ea95c641209ba592aae8c695e278549840420',
22
22
  class: "container p-8 item-center border-2 border-soft"
23
23
  }, h("div", {
24
- key: '770870c171999d004aba77b6058fe32525b1703e',
24
+ key: '6dd84540a213d98fa09480eac823fe030dfb2404',
25
25
  class: "spacing-sample m-32 bg-darker"
26
26
  }, h("span", {
27
- key: 'fdba92dbc2c78e55481277c2858de4ea220b2397',
27
+ key: 'ad0493ba8d97cdcc15535505db4d726d6f69bd38',
28
28
  class: "text-white"
29
29
  }, "Margin: 2rem / m-32")))), h("li", {
30
- key: '9420b6110f30e9f3cff94d409362627d32782023',
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: '2e438e9ee4291d1326acb2630ccb55f981acfeaa',
33
+ key: '95adc2b10d3962378de300e00b749b691fda88af',
34
34
  class: "container p-8 item-center border-2 border-soft"
35
35
  }, h("div", {
36
- key: 'b199e19274f23490485347d2ef102741f583b612',
36
+ key: '8bad94397c9fe8112b49933a508958000f9cd99d',
37
37
  class: "spacing-sample ml-64 bg-darker"
38
38
  }, h("span", {
39
- key: '2cde99dd7d0bb469b7f69b852f20abc4f61d6a01',
39
+ key: '04229385104243a5ce9a194c4f8056f7341a6736',
40
40
  class: "text-white"
41
41
  }, "Margin Left: 4rem / ml-64")))), h("li", {
42
- key: 'b8cdd7b7245cd3e7c8fe59297b76f2e9e20a1c2e',
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: '0f9cf988220669a2ebe2e93d33d904ee045af74a',
45
+ key: '38e12800b2c8502ea2f9e912af929f71d3ec9699',
46
46
  class: "container p-8 item-center border-2 border-soft"
47
47
  }, h("div", {
48
- key: '88f5a191b1f9878ae6012efd5ec7365cf2f28da4',
48
+ key: 'f4e93d89576ab3de7f44ce3a85d9838f21bfa7f6',
49
49
  class: "spacing-sample mt-32 bg-darker"
50
50
  }, h("span", {
51
- key: 'af8f876d8cdc7620af861620173ea32fc706378f',
51
+ key: 'e85e2e1c7c4c7e765dfafd25dc9f2c33b6bd5069',
52
52
  class: "text-white"
53
53
  }, "Margin Top: 2rem / mt-32")))), h("li", {
54
- key: 'e65780c7ecfc9685791c40970350ba511e888283',
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: 'c1a8e22fde087ac9f5e69602e23c8b7f429c0e3e',
57
+ key: 'f54a9e32893ac6f1b0384e79e2959d1e65a251e2',
58
58
  class: "container p-8 item-center border-2 border-soft"
59
59
  }, h("div", {
60
- key: '19aaa0273c1c818f1f6d57a0fd41d9be14aa4d1b',
60
+ key: '4209fa0c979a1d55d42d7b892bc94cc0f3788e88',
61
61
  class: "spacing-sample p-32 bg-darker"
62
62
  }, h("span", {
63
- key: '18cbdee711f04e90e663d93bd8b752ec0d0b33ee',
63
+ key: '1d9249c56d3a42500dfb8cc1d3eae1f89e79cdcd',
64
64
  class: "text-white"
65
65
  }, "Padding: 2rem / p-32")))), h("li", {
66
- key: 'f2831db3170703786946a12a5b0c0e188c4f944a',
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: '68ac92294defd683a3c49e38ce0f4366a8b91208',
69
+ key: '9950970e66b8a382e7b0158b54e980a5e5f45774',
70
70
  class: "container p-8 item-center border-2 border-soft"
71
71
  }, h("div", {
72
- key: '6bfd849d0f841d6fefb39d91a4be49ae1db8d43f',
72
+ key: '40e96cd046eaddf3a23387995affbfc399d171ae',
73
73
  class: "spacing-sample pt-32 bg-darker"
74
74
  }, h("span", {
75
- key: '7f3b5868baf86913d172b07347b15ca1e8901d21',
75
+ key: '2d120273f7a6d4429061d0ade2164ada9a14b506',
76
76
  class: "text-white"
77
77
  }, "Padding Top: 2rem / pt-32")))), h("li", {
78
- key: 'f3608f5562949c9fb82d987719753bc0b59ba999',
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: 'fe9d90cf206906742000da310a53873ecefaa77c',
81
+ key: 'c0be38039770c54577f073e1a707110cd0807ab5',
82
82
  class: "container p-8 item-center border-2 border-soft"
83
83
  }, h("div", {
84
- key: 'd6590820496db0ba1009deea6a4b56c9195814e6',
84
+ key: 'd8085da375e734ed11fe580f1a9004f6fddef679',
85
85
  class: "spacing-sample pl-32 bg-darker"
86
86
  }, h("span", {
87
- key: 'c65179e127861a66ca1c0d6ff429b07bc0d88945',
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: '2078622c91b8906b71ee3aebdadcda0ac2c49512',
205
+ key: '23815518d694435812ed3d7b9aab850043941b96',
206
206
  class: "w-full"
207
207
  }, h("ul", {
208
- key: 'fe9212731cddcd43e3d5f5518245911d9d4cd493',
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 };