@ebrains/react 1.2.0 → 1.4.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.
@@ -11,47 +11,47 @@ const LogoVariationsHorizontal = class {
11
11
  }
12
12
  render() {
13
13
  return h("div", {
14
- key: '987c614ac28a196ef8fff32c776b286269377dec',
14
+ key: 'b8329902e5b54186ff70883b7629ce713f9916e3',
15
15
  class: "container"
16
16
  }, h("ul", {
17
- key: 'fc9335a57da5e088f50a4c22ff40546554251515',
17
+ key: 'bef5503199fa5390fe3690bf8398702b39f6ce43',
18
18
  class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16"
19
19
  }, h("li", {
20
- key: '714701eb21a78f77f5294ec8bf4799443311ca73',
20
+ key: 'd5d87badeb69da37aa05c0265079cdadfa7b06ec',
21
21
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
22
22
  }, h("p", {
23
- key: 'd60bf8e9307aa9243cade43a4cc43df8d11fd561',
23
+ key: '6e263eca9ee6d917b73314a9fed6843e90ab9ad1',
24
24
  class: "f-body-01 text-center my-4"
25
25
  }, "#1 Coloured"), h("div", {
26
- key: 'a1357c422ecfb85210692c5686f2e1c295094858',
26
+ key: 'dca876e83d4a3196f937204d1f36a22e5e554edb',
27
27
  class: "coloured"
28
28
  }, h("eds-logo", {
29
- key: '07ac7f715db7c573bcf40e9023c5189fbbe0958c',
29
+ key: '6fadb6eb40b3771e808718ab19e1dcbdb838af14',
30
30
  type: "no-bg",
31
31
  href: "#"
32
32
  }))), h("li", {
33
- key: 'c452df580d16d70b5dc00485e9ba05a6738b0293',
33
+ key: '913d4163183e8df4978e5030e2049b9627f355ac',
34
34
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
35
35
  }, h("p", {
36
- key: '55eebb8ae1b53b26ce8505f648a7f079f15521b9',
36
+ key: '94b74970ae70cd4a97ce07c8f2435995b6224e7b',
37
37
  class: "f-body-01 text-center my-4"
38
38
  }, "#2 Black & White"), h("div", {
39
- key: 'c7394e8f6e044b260b9450f3b06b0ebb44fba4e1',
39
+ key: '7a10955ff26e151c467e55ce839fa5377509cbca',
40
40
  class: "bg-default"
41
41
  }, h("eds-logo", {
42
- key: '0febbfc78be2a064c0ff7f768936f1521dcac11c',
42
+ key: '5bf7bc14877a77acf069e1067d67aebfb993c148',
43
43
  type: "black",
44
44
  href: "#"
45
45
  }))), h("li", {
46
- key: '9473120a767856f6a18b8973b6d0cc12f736f239',
46
+ key: '7b1d286ae816ce932c51bf944e606ce0a0dd692f',
47
47
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
48
48
  }, h("p", {
49
- key: '8d2eb712f5d7c862fa8ac633177bb07dc4ac7c1e',
49
+ key: '1385573e0cba33124c068536a6df0cc809d2e872',
50
50
  class: "f-body-01 text-center my-4"
51
51
  }, "#3 Dark"), h("div", {
52
- key: '594c586462a164e790ba224e902605363322561c'
52
+ key: '0d0febe112256ef7372f86886da3d25b2cb8c7d9'
53
53
  }, h("eds-logo", {
54
- key: 'bd19f2348abf5a9e347fa1b171f8ced2598093c7',
54
+ key: '104ee7af8e721feaf91f6e96909181afea93ebc6',
55
55
  type: "color-white",
56
56
  href: "#"
57
57
  })))));
@@ -68,50 +68,50 @@ const LogoVariationsVertical = class {
68
68
  }
69
69
  render() {
70
70
  return h("div", {
71
- key: '1e9f6ca3f43c6818c6213c581dcf0743958c9b5f',
71
+ key: 'c5edd87842f2f02818087806b4e2f582da663277',
72
72
  class: "container"
73
73
  }, h("ul", {
74
- key: 'd6cae4ea607afe3cad7b7eb675efe2c27fee8bce',
74
+ key: 'e2d3e77fbcc9f6cbbe8c293e3548ab5b5b9be53c',
75
75
  class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16"
76
76
  }, h("li", {
77
- key: '2c08ccbd732b2e33c7ee75a62bd743d0977a212d',
77
+ key: '87864a42ddab2c0816e9ff46c8122ea645f077aa',
78
78
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
79
79
  }, h("p", {
80
- key: '8996d851b5041d7b3f2349034f6ba858b9564937',
80
+ key: '8187e615b2701e6496cd567882ea338d3e50150d',
81
81
  class: "f-body-01 text-center my-4"
82
82
  }, "#1 Coloured"), h("div", {
83
- key: '623832731b38e02f69f795b1f959052425a233df',
83
+ key: '2368fe2ad41d8e325d4a54dac24786bc5a05ab56',
84
84
  class: "mx-auto coloured w-[300px]"
85
85
  }, h("eds-logo", {
86
- key: 'dd8c635e0dd09b4c972c0d201e6bc6cbd899a896',
86
+ key: '8efcfe38b1dc0498fa5f132bf01feb3fbfdf05fe',
87
87
  orientation: "vertical",
88
88
  type: "no-bg",
89
89
  href: "#"
90
90
  }))), h("li", {
91
- key: 'f99951011003ed2409a44a5175ab67a2478ee22c',
91
+ key: '780ca8af41665e5bc92c6c25efd1e9a3552eacbe',
92
92
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
93
93
  }, h("p", {
94
- key: '45c69ba60358e36f980df1fa1db4521dbcc38fc1',
94
+ key: 'ea00627b69008f8438a74d84cd00ac76bcbc36f3',
95
95
  class: "f-body-01 text-center my-4"
96
96
  }, "#2 Black & White"), h("div", {
97
- key: 'd026d40d15b4e5e8a3d7718298130414198d5699',
97
+ key: '5d91c7b29a539118254bfbca8d553794f96e00e5',
98
98
  class: "mx-auto bg-default w-[300px]"
99
99
  }, h("eds-logo", {
100
- key: '62ca0a1c8bd93f3b780ba91d5b9bbd31d7bbe1f0',
100
+ key: '5f9a4fc71340ab9c45fabdacaea00eb01771d8b3',
101
101
  orientation: "vertical",
102
102
  type: "black",
103
103
  href: "#"
104
104
  }))), h("li", {
105
- key: 'b1c75a34b36bec4dde679f5bde1129e0315cac37',
105
+ key: '5c9306edbd30774b35431b5af16956545e7bc973',
106
106
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
107
107
  }, h("p", {
108
- key: '16c68f40c6a4bcaf3d618f8787682a974a8c900c',
108
+ key: '8dbc48fd5256198bb0b50ce11267ac408c6e286c',
109
109
  class: "f-body-01 text-center my-4"
110
110
  }, "#3 Dark"), h("div", {
111
- key: 'ce3b8ee8b54fabccd816388bb1a3acf642147c28',
111
+ key: '495a4c78848efe16898a7e37a802ca33ebe78989',
112
112
  class: "mx-auto w-[300px]"
113
113
  }, h("eds-logo", {
114
- key: '8baa9d4f187e515d5a274156976fb134d79bd004',
114
+ key: 'ed7793faeff06e70d05b829d7b361c8e52372232',
115
115
  orientation: "vertical",
116
116
  type: "color-white",
117
117
  href: "#"
@@ -20,7 +20,7 @@ const LogoVariationsTabs = class {
20
20
  }
21
21
  render() {
22
22
  return h("div", {
23
- key: '2403a062886a97ebbc34bb9f95e755ab1a278731',
23
+ key: '978803ba74596825489ce19690036162c5d2d6fb',
24
24
  class: "container"
25
25
  }, this.renderContent());
26
26
  }
@@ -12,86 +12,86 @@ const LogoWrongUsage = class {
12
12
  }
13
13
  render() {
14
14
  return h("div", {
15
- key: '40d75361172edb23a89faa173ce3518c8750f0f0',
15
+ key: 'ca22a0f8284bd418c0307e9b18443cf93dbd5ef7',
16
16
  class: "container"
17
17
  }, h("ul", {
18
- key: '064c760800e2aceba08c3953292f421eae003896',
18
+ key: 'dae3e5fdf852e1684effe028fcb12f3a4a765c92',
19
19
  class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16"
20
20
  }, h("li", {
21
- key: 'd3213a50ed4d217c195bd9a9f1eff60406027892',
21
+ key: 'f938ed546e420f7f3c9629b3029623d8b0b3cb33',
22
22
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
23
23
  }, h("div", {
24
- key: '4a3cd51e083d28149bc96c611d2fb4bbb7db37b3',
24
+ key: 'eecaba67c1506aa8192bdeb07dfe92417c200520',
25
25
  class: "mx-auto no-other-bg-color logo",
26
26
  innerHTML: hLogoColor
27
27
  }), h("p", {
28
- key: '81ec640d08f3aa79098e02ecbf0575787c61cd5a',
28
+ key: '1057f9c302bc7e4b9ccdc5db8bdc5c92066b9efd',
29
29
  class: "f-ui-02 text-center"
30
30
  }, "Do not use with backgrounds that make legibility difficult")), h("li", {
31
- key: '7eb0f204779fe3852ce732fec83cf7efccc8bfd7',
31
+ key: '2b4ea9b064c01b08daa1a236f9f427aab55155df',
32
32
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
33
33
  }, h("div", {
34
- key: '1e287231328b32ce97aee6c2d793b2a4885e5434',
34
+ key: '9d42d01d4c2cacf71ab151bcd136a9b427ae2f61',
35
35
  class: "mx-auto no-other-color logo non-brand-color",
36
36
  innerHTML: hLogoColor
37
37
  }), h("p", {
38
- key: 'f68bd11f49ca1fc5998ce9dbbd7d062ac30170cd',
38
+ key: 'abc8b7da35ff02d255c7101b963216a6176876be',
39
39
  class: "f-ui-02 text-center"
40
40
  }, "Do not apply other colors")), h("li", {
41
- key: '06c5eb937c3ca8e556a987905281e3196c67da5c',
41
+ key: '180f04ec0804841dff6aa1aadb4abcf39cd9795b',
42
42
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
43
43
  }, h("div", {
44
- key: 'a165382706515bcff0f4acdfc5ee505021ef8ec3',
44
+ key: 'b28e00dd5e87f8dfa0115c2a617755d0ad3615bf',
45
45
  class: "mx-auto distorted logo",
46
46
  innerHTML: hLogoColor
47
47
  }), h("p", {
48
- key: '9675a3a6f0e52db908fdac0e34dc307c2ea85235',
48
+ key: '93724268eeedcc799ec3c90087ce2e7ac61dc07e',
49
49
  class: "f-ui-02 text-center"
50
50
  }, "Do not deform the logo")), h("li", {
51
- key: 'c7f53a6c25eeafb8704c500c6daa07746c493d1f',
51
+ key: '5063815d8df9ed7eb13d83734f23978916ade66a',
52
52
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
53
53
  }, h("div", {
54
- key: '2f8e8be3799a2eaae186412fd923da15ecd7ba14',
54
+ key: '8f8624744ed71aebc2d42815f8012ed5c18c1cb7',
55
55
  class: "mx-auto effects logo",
56
56
  innerHTML: hLogoColor
57
57
  }), h("p", {
58
- key: '725a2a98e0c221d3edfda11b709ae9c9d4bc07b6',
58
+ key: '14040538adcea3c5650ddb3e94a3a5186d009a2a',
59
59
  class: "f-ui-02 text-center"
60
60
  }, "Do not apply effects")), h("li", {
61
- key: 'e8de87168e68efaf2afe99fe83e4d336a5c0a106',
61
+ key: 'a80a2e6f66d27bd28a52d9ea45aa3352519f8973',
62
62
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
63
63
  }, h("div", {
64
- key: 'f1e0aa5ed1f402bdb6314c156d2f554626701123',
64
+ key: 'ab16f170fde233d8e05c8b93babc83f6a54fe4df',
65
65
  class: "mx-auto rotated logo",
66
66
  innerHTML: hLogoColor
67
67
  }), h("p", {
68
- key: '5360e8d9dc65987adbe5b689a7dbf97a27d47aba',
68
+ key: '12eb2d4f8c48b51397295e84fd13f9cdb7fe1291',
69
69
  class: "f-ui-02 text-center"
70
70
  }, "Do not rotate the logo")), h("li", {
71
- key: '8e21d4edf6a714c41f6add93d70996abd8ad23aa',
71
+ key: 'e93cc98bcb8594ea9cc715c3593bbbb05ef0a584',
72
72
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
73
73
  }, h("div", {
74
- key: '9510ae79414b2b74d15f8c3fafa92cb2a9b34959',
74
+ key: 'e06d8c08690e542a9906526f31083cd19d36377c',
75
75
  class: "mx-auto outlined logo",
76
76
  innerHTML: hLogoColor
77
77
  }), h("p", {
78
- key: 'ef077ee715e907cd5d6e22f03f1f490ed1e159a3',
78
+ key: '28ffd7eb8d963d8fbaca70bdacb408d1ad2b5628',
79
79
  class: "f-ui-02 text-center"
80
80
  }, "Do not apply outlines")), h("li", {
81
- key: '397110091fb08f7e34c16c8a264314153ac16ac3',
81
+ key: '762de4272afb3425d05854efcebdbac901e3434e',
82
82
  class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col"
83
83
  }, h("div", {
84
- key: '0b8e2644362c8131f6df52af19aaa0b37fb3331a',
84
+ key: 'b886b389d207ffdb8b135fdc0fd26e5e72f40a42',
85
85
  class: "mx-auto"
86
86
  }, h("div", {
87
- key: '7d8b31e4b27bcc28847dd6c912a95bb1b9c08694',
87
+ key: '2b03b5762338e7af827635e16f5a8da8a0322174',
88
88
  class: "bg-accent p-16"
89
89
  }, h("div", {
90
- key: '29b1988e197e997ce13c962dd872310bd61a545a',
90
+ key: 'c6db8ce985ce69f68973d59acabd846ec3b296ed',
91
91
  class: "text-inverse",
92
92
  innerHTML: hLogoColor
93
93
  })), h("p", {
94
- key: '6336def9b4ada2e13a43c037aec0ff59aa142e8c',
94
+ key: '3c2424662345ce48f2db344a5efd0aa2dc5ef002',
95
95
  class: "f-ui-02 text-center"
96
96
  }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
97
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebrains/react",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "module": "./index.esm.js",
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",
@@ -18,6 +18,8 @@ export declare const EdsHeader: import("react").ForwardRefExoticComponent<JSX.Ed
18
18
  export declare const EdsIconWrapper: import("react").ForwardRefExoticComponent<JSX.EdsIconWrapper & Omit<import("react").HTMLAttributes<HTMLEdsIconWrapperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsIconWrapperElement>>;
19
19
  export declare const EdsImg: import("react").ForwardRefExoticComponent<JSX.EdsImg & Omit<import("react").HTMLAttributes<HTMLEdsImgElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsImgElement>>;
20
20
  export declare const EdsInputField: import("react").ForwardRefExoticComponent<JSX.EdsInputField & Omit<import("react").HTMLAttributes<HTMLEdsInputFieldElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsInputFieldElement>>;
21
+ export declare const EdsInputFooter: import("react").ForwardRefExoticComponent<JSX.EdsInputFooter & Omit<import("react").HTMLAttributes<HTMLEdsInputFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsInputFooterElement>>;
22
+ export declare const EdsInputLabel: import("react").ForwardRefExoticComponent<JSX.EdsInputLabel & Omit<import("react").HTMLAttributes<HTMLEdsInputLabelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsInputLabelElement>>;
21
23
  export declare const EdsLink: import("react").ForwardRefExoticComponent<JSX.EdsLink & Omit<import("react").HTMLAttributes<HTMLEdsLinkElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsLinkElement>>;
22
24
  export declare const EdsLogo: import("react").ForwardRefExoticComponent<JSX.EdsLogo & Omit<import("react").HTMLAttributes<HTMLEdsLogoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsLogoElement>>;
23
25
  export declare const EdsMatomoNotice: import("react").ForwardRefExoticComponent<JSX.EdsMatomoNotice & Omit<import("react").HTMLAttributes<HTMLEdsMatomoNoticeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEdsMatomoNoticeElement>>;
@@ -317,10 +317,10 @@ const SvgRepository = class {
317
317
  }
318
318
  };
319
319
  return h("div", {
320
- key: '48b9bd49dc2521db7fc1676544530f6bd9cd6287',
320
+ key: 'c8c6a714522ff3e122b58c4bb931af7f95d281fa',
321
321
  class: "full-width"
322
322
  }, h("eds-table", {
323
- key: 'c3b5bdecde28ad6ec8a5172d883d49a8b0436f18',
323
+ key: 'f3251327f43c5b18f7677738f37b60ff0e604c3f',
324
324
  "table-data": JSON.stringify(svgData),
325
325
  config: JSON.stringify(tableConfig),
326
326
  "rows-per-page": 10,
@@ -296,7 +296,7 @@ const TokenList = class {
296
296
  [this.show]: colors[this.show]
297
297
  } : colors;
298
298
  return h("section", {
299
- key: '1c949c3777a159f1a52baa4f27d1acf07bf86114',
299
+ key: '0ba9dbb1b98cb398c2eb989391f6e978f9dc21ef',
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: '07f9d8424b849e486379f81764ad946b0b632fa7',
320
+ key: '0b0ccb9adcfa77ea898828ddbb244e959f93e2e4',
321
321
  class: "w-full mt-28"
322
322
  }, h("ul", {
323
- key: 'ec8cb4aaad010b24dc82b556fbc143c52f9824c2',
323
+ key: '94f17ad36ec9fcc47b645e323c7e5a8f3e040dda',
324
324
  class: "not-prose 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: '50f470109606938085ed98480892d94ebcc2878c',
361
+ key: '18d2b4cdcc3b6d6ce8864a9c36e869be9b9e5cb4',
362
362
  class: "w-full mt-28"
363
363
  }, h("ul", {
364
- key: 'e9c982816b9117eacd1a9f721e7428f317087211',
364
+ key: '63e646788009d3315d2f4e03f1a780811486d9a0',
365
365
  class: "not-prose 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: 'a68e1101a6dfd99b0b48540f96792622b9837efc',
20
+ key: '0fb029d34cba573e04e15030b3fdd1497ac9974e',
21
21
  class: "w-full"
22
22
  }, h("eds-section-core", {
23
- key: '1f32847d415fad34b9add511d7bc49907f351fe9',
23
+ key: 'd6914b95ef74d590d58b0c90600fc44f5d9d6678',
24
24
  tag: "div",
25
25
  "section-title": "Aspect Ratios",
26
26
  "heading-level": "h3"
27
27
  }, h("ul", {
28
- key: 'e1dc4d7772bc3cd009458e781f5de0c078f686c0',
28
+ key: 'f08511f07380707795b810fd0f34c1acdc47d37d',
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: 'ad89d21ec01f11c77d85853f7c0dbefd8ea9f07f',
12
+ key: '144e643ff3f26d09b932b3bfa2086164134728c0',
13
13
  class: "w-full"
14
14
  }, h("ul", {
15
- key: '6108fb2870c358de8e5c48e6d14f6c1e76af856f',
15
+ key: 'fabddc807bcd5cefbfced6391117e9eb065ffff0',
16
16
  class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
17
17
  }, h("li", {
18
- key: 'cd0d1986b416f12164b8d0458262987a445662ca',
18
+ key: 'cc0fba19927a1c3ad33008dc1087ee75e0c9fe2d',
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: 'f2cfd77fcba601b89605dabf109f599816bb118e',
21
+ key: '328054d7cfe6a0678e9e592b91dba6a8524c2039',
22
22
  class: "container p-8 item-center border-2 border-soft"
23
23
  }, h("div", {
24
- key: '69e4cb5660f5c51d2b9c1ba30a38f3b7decacc58',
24
+ key: 'e50e3533e36feb7021cac8ac10cc9a05e7f24c0a',
25
25
  class: "spacing-sample m-16 bg-strong"
26
26
  }, h("span", {
27
- key: '70a07326b0a95655db3aad083637499f5ed4aa73',
27
+ key: '87165037495881426a3c9848953e049ec7e96b7a',
28
28
  class: "f-body-01 text-inverse"
29
29
  }, "Margin: 1rem / m-16")))), h("li", {
30
- key: '97b8c127e9bbe9af4ec8f6876ebae3f87a52d130',
30
+ key: 'a6a98204655e53b6ef9ce9f2fd90b561c79c185d',
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: '58537d6aa824b489ae9c5150400af21f11f1f447',
33
+ key: '385ae898ce1f1f96cbb236ded619a05d8326c304',
34
34
  class: "container p-8 item-center border-2 border-soft"
35
35
  }, h("div", {
36
- key: '3f2913d232cb9de1b678b7f7903bef0642ef42df',
36
+ key: '4e6c11ae90e22efa73fb6c9481ee2c1511365394',
37
37
  class: "spacing-sample ml-64 bg-strong"
38
38
  }, h("span", {
39
- key: 'fe56d1a501dc219a1bac474b674586609499f3de',
39
+ key: 'a13a1886b5019ca48a19d24ba03b3caa1c51bc3f',
40
40
  class: "f-body-01 text-inverse"
41
41
  }, "Margin Left: 4rem / ml-64")))), h("li", {
42
- key: 'e2dee648fd4bce503414d76f3afe64655285523c',
42
+ key: '7b2f325ced5281668e6ece98d56caf864b34c7e8',
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: 'e788fa22248ac92fb8bc89566c5b8a77cf14578f',
45
+ key: '3e1a69b9983bc993686426ec84dd70b4803538a6',
46
46
  class: "container p-8 item-center border-2 border-soft"
47
47
  }, h("div", {
48
- key: '9629958b453aa831a1d871bb4e846d0926d9e57c',
48
+ key: '66804ce21771e53210bc385ac8cefce4c554d188',
49
49
  class: "spacing-sample mt-32 bg-strong"
50
50
  }, h("span", {
51
- key: '0efde7eaed0fe3e14f476617e7e9bf2e20131f2c',
51
+ key: '91cee3a9cf00777f1d2b4cde4ce484fcddef52f5',
52
52
  class: "f-body-01 text-inverse"
53
53
  }, "Margin Top: 2rem / mt-32")))), h("li", {
54
- key: '6dabfeb0086c784c50843abd12d5a505a56e0933',
54
+ key: '9d9074db464e7ecc36977c69b0fdd053e8025dec',
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: '164e7eec6ed3aad2847c4ede97f4bbfed34138d1',
57
+ key: 'e6a2d7d1ded9c92ca41d211dca3dcca9f03ad707',
58
58
  class: "container p-8 item-center border-2 border-soft"
59
59
  }, h("div", {
60
- key: '9be99b05ba29204f6163df2c1522e7aa6211bd3d',
60
+ key: 'c87e88d711ec5298525f1d901958a035837b3db0',
61
61
  class: "spacing-sample p-32 bg-strong"
62
62
  }, h("span", {
63
- key: 'ae0a7ea74e31ea324015b844848c3d5a68930e8d',
63
+ key: '6276cb3c19a8fd1262c5002e682099f13d38b512',
64
64
  class: "f-body-01 text-inverse"
65
65
  }, "Padding: 2rem / p-32")))), h("li", {
66
- key: '3804dbfb6a64a1dfd478bd0132ff83f51bcff33e',
66
+ key: 'c8614add23a4802ccbb3086c74ac2871ad0a0340',
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: '75c96b0762c3fac8b4de897ab8147b2c5614a360',
69
+ key: '68b73e788596e32a696e012d08ec11cf479a5d45',
70
70
  class: "container p-8 item-center border-2 border-soft"
71
71
  }, h("div", {
72
- key: 'd00487531406fa89112bee34e05306c59dc4f497',
72
+ key: 'b057f25cdeda7c6cc3f0ce21e199d84d90bb0bfa',
73
73
  class: "spacing-sample pt-32 bg-strong"
74
74
  }, h("span", {
75
- key: '8a750b7ac07739a71949b236421427b8bb05b067',
75
+ key: 'a72e385bdaed3c6c8a06fb7951f6b326eb8f2e4f',
76
76
  class: "f-body-01 text-inverse"
77
77
  }, "Padding Top: 2rem / pt-32")))), h("li", {
78
- key: '5e5fe43383f13b4377aca7cfb07c97b6ac1dd79b',
78
+ key: '11be77901177c2372b29076072dd7544f7371aa4',
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: 'ed2ac88c543eba8c580d029ccacb1a8b26c1cae7',
81
+ key: '5606d88389c6aaa16a9941fefe2bc34e881b22a3',
82
82
  class: "container p-8 item-center border-2 border-soft"
83
83
  }, h("div", {
84
- key: 'cf9a94b61e598c0ee6da9e771717574b48264333',
84
+ key: '1341d44c62567c8b5078046644cda8ddcec59809',
85
85
  class: "spacing-sample pl-32 bg-strong"
86
86
  }, h("span", {
87
- key: 'a2d3fce66240c6b0d49d1a655c0b5a84be9c630d',
87
+ key: 'b9208571277fced609ea55a113a30dc7a424c2a8',
88
88
  class: "f-body-01 text-inverse"
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: '60710505ef0a06883d83c6838b1eb246485bd548',
205
+ key: 'b831c9707b00d17768f585e2015de8a7289b11d2',
206
206
  class: "w-full"
207
207
  }, h("ul", {
208
- key: '3cac0e7f35f878e29ee45e21407609753099e077',
208
+ key: '472e46f2c903597d24e8f24cf28b6f475c7d7a82',
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,93 +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 edsToastCss = ".relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}";
8
- const EdsToastStyle0 = edsToastCss;
9
- const toastStyles = cva(['relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md'], {
10
- variants: {
11
- intent: {
12
- default: 'bg-dark text-light',
13
- success: 'bg-success text-dark',
14
- error: 'bg-error text-light',
15
- warning: 'bg-warning text-dark'
16
- }
17
- },
18
- defaultVariants: {
19
- intent: 'default'
20
- }
21
- });
22
- const EdsToast = class {
23
- constructor(hostRef) {
24
- registerInstance(this, hostRef);
25
- /**
26
- * Dismisses the toast.
27
- */
28
- this.dismissToast = () => {
29
- this.visible = false;
30
- };
31
- this.message = undefined;
32
- this.intent = 'default';
33
- this.duration = undefined;
34
- this.visible = true;
35
- }
36
- componentDidLoad() {
37
- const btn = this.el.shadowRoot.querySelector('eds-button');
38
- this.emitContext(btn);
39
- }
40
- /**
41
- * Emits a custom event called `parentContext` for a given button element.
42
- * This event provides context information about the toast component.
43
- *
44
- * @param btnElement - The link element to which the event will be dispatched.
45
- */
46
- emitContext(btnElement) {
47
- const event = new CustomEvent('parentContext', {
48
- detail: {
49
- componentName: this.el.tagName.toLowerCase(),
50
- identifier: null
51
- }
52
- });
53
- btnElement.dispatchEvent(event);
54
- }
55
- connectedCallback() {
56
- if (this.duration && this.duration > 0) {
57
- this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
58
- }
59
- }
60
- disconnectedCallback() {
61
- // Clear the timeout when the component is removed
62
- clearTimeout(this.dismissTimeout);
63
- }
64
- render() {
65
- if (!this.visible) {
66
- return null;
67
- }
68
- const classes = toastStyles({
69
- intent: this.intent
70
- });
71
- return h("div", {
72
- class: classes,
73
- role: "alert",
74
- "aria-live": "assertive"
75
- }, h("div", {
76
- class: "flex items-center justify-between gap-4"
77
- }, h("span", {
78
- class: "f-ui-01"
79
- }, this.message), h("eds-button", {
80
- intent: "tertiary",
81
- icon: "close",
82
- "aria-label": "Close Toast",
83
- onClick: () => this.dismissToast(),
84
- "extra-class": "ml-8"
85
- })));
86
- }
87
- get el() {
88
- return getElement(this);
89
- }
90
- };
91
- EdsToast.style = EdsToastStyle0;
92
-
93
- export { EdsToast as eds_toast };