@ably/ui 14.0.0-dev.99c9769 → 14.0.0-dev.ae75f49

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 (69) hide show
  1. package/core/.DS_Store +0 -0
  2. package/core/Accordion.js +1 -1
  3. package/core/Code.js +1 -1
  4. package/core/ContactFooter/component.css +9 -7
  5. package/core/ContactFooter.js +1 -1
  6. package/core/CookieMessage/component.css +12 -10
  7. package/core/CookieMessage.js +1 -1
  8. package/core/Expander.js +1 -0
  9. package/core/Flash/component.css +21 -19
  10. package/core/Flash.js +1 -1
  11. package/core/Footer/component.css +24 -22
  12. package/core/Footer.js +1 -1
  13. package/core/Meganav/component.css +105 -103
  14. package/core/Meganav/component.js +1 -1
  15. package/core/Meganav.js +1 -1
  16. package/core/Notice/component.css +6 -4
  17. package/core/Notice/component.js +1 -1
  18. package/core/Notice.js +1 -1
  19. package/core/Slider/component.css +38 -4
  20. package/core/Slider/component.js +1 -1
  21. package/core/Slider.js +1 -1
  22. package/core/Table/Table.js +1 -1
  23. package/core/Table/TableCell.js +3 -3
  24. package/core/Table/data.js +1 -1
  25. package/core/Table.js +1 -1
  26. package/core/scripts.js +1 -1
  27. package/core/styles/buttons.css +123 -121
  28. package/core/styles/forms.css +51 -49
  29. package/core/styles/layout.css +16 -14
  30. package/core/styles/properties.css +252 -250
  31. package/core/styles/text.css +167 -165
  32. package/core/styles.components.css +24 -22
  33. package/core/utils/syntax-highlighter.css +59 -55
  34. package/package.json +2 -4
  35. package/src/core/.DS_Store +0 -0
  36. package/src/core/Accordion.tsx +7 -5
  37. package/src/core/Code.tsx +0 -1
  38. package/src/core/ContactFooter/component.css +9 -7
  39. package/src/core/ContactFooter.tsx +0 -1
  40. package/src/core/CookieMessage/component.css +12 -10
  41. package/src/core/CookieMessage.tsx +0 -1
  42. package/src/core/Expander/Expander.stories.tsx +132 -0
  43. package/src/core/Expander.tsx +63 -0
  44. package/src/core/Flash/component.css +21 -19
  45. package/src/core/Flash.tsx +0 -1
  46. package/src/core/Footer/component.css +24 -22
  47. package/src/core/Footer.tsx +0 -1
  48. package/src/core/Meganav/component.css +105 -103
  49. package/src/core/Meganav/component.js +0 -2
  50. package/src/core/Meganav.tsx +0 -1
  51. package/src/core/Notice/component.css +6 -4
  52. package/src/core/Notice/component.js +0 -1
  53. package/src/core/Notice.tsx +0 -1
  54. package/src/core/Slider/Slider.stories.tsx +82 -29
  55. package/src/core/Slider/component.css +38 -4
  56. package/src/core/Slider/component.js +0 -2
  57. package/src/core/Slider.tsx +189 -85
  58. package/src/core/Table/Table.tsx +1 -2
  59. package/src/core/Table/TableCell.tsx +2 -40
  60. package/src/core/Table/data.tsx +21 -1
  61. package/src/core/Table.tsx +1 -12
  62. package/src/core/scripts.js +0 -2
  63. package/src/core/styles/buttons.css +123 -121
  64. package/src/core/styles/forms.css +51 -49
  65. package/src/core/styles/layout.css +16 -14
  66. package/src/core/styles/properties.css +252 -250
  67. package/src/core/styles/text.css +167 -165
  68. package/src/core/styles.components.css +24 -22
  69. package/src/core/utils/syntax-highlighter.css +59 -55
@@ -1,166 +1,168 @@
1
- .ui-text-title {
2
- @apply font-sans font-extrabold text-cool-black;
3
- @apply text-title-xs xs:text-title xl:text-title-xl;
4
- @apply tracking-tighten-0.015 xs:tracking-tighten-0.02 xl:tracking-tighten-0.02;
5
- }
6
-
7
- .ui-text-h1 {
8
- @apply font-sans font-extrabold text-cool-black;
9
- @apply text-h1-xs xs:text-h1 xl:text-h1-xl;
10
- @apply tracking-tighten-0.0125 xs:tracking-tighten-0.015;
11
- }
12
-
13
- .ui-text-h2 {
14
- @apply font-sans font-extrabold text-cool-black;
15
- @apply text-h2-xs xs:text-h2 xl:text-h2-xl;
16
- @apply tracking-tighten-0.015 xs:tracking-tighten-0.01;
17
- }
18
-
19
- .ui-text-h3 {
20
- @apply font-sans font-extrabold text-cool-black;
21
- @apply text-h3;
22
- @apply tracking-tighten-0.005;
23
- }
24
-
25
- .ui-text-h4 {
26
- @apply font-sans font-extrabold text-cool-black;
27
- @apply text-h4;
28
- @apply tracking-tighten-0.0015;
29
- }
30
-
31
- .ui-text-h5 {
32
- @apply font-sans font-extrabold text-cool-black;
33
- @apply text-h5;
34
- @apply tracking-tighten-0.0025;
35
- }
36
-
37
- .ui-text-p1 {
38
- @apply font-sans font-medium text-charcoal-grey;
39
- @apply text-p1;
40
- }
41
-
42
- .ui-text-p2 {
43
- @apply font-sans font-medium text-charcoal-grey;
44
- @apply text-p2;
45
- }
46
-
47
- .ui-text-p3 {
48
- @apply font-sans font-medium text-charcoal-grey;
49
- @apply text-p3;
50
- }
51
-
52
- .ui-text-standfirst {
53
- @apply font-sans font-light text-active-orange;
54
- @apply text-standfirst xl:text-standfirst-xl;
55
- @apply tracking-tighten-0.025 xl:tracking-tighten-0.015;
56
- }
57
-
58
- .ui-text-quote {
59
- @apply font-sans font-normal text-cool-black;
60
- @apply text-quote leading-normal;
61
- @apply tracking-tighten-0.0015;
62
- }
63
-
64
- .ui-text-sub-header {
65
- @apply font-sans font-semibold text-neutral-800;
66
- @apply text-sub-header-xs xs:text-sub-header leading-normal;
67
- }
68
-
69
- .ui-text-overline1 {
70
- @apply font-mono font-medium text-active-orange uppercase;
71
- @apply text-overline1 leading-normal;
72
- @apply tracking-widen-0.16;
73
- }
74
-
75
- .ui-text-overline2 {
76
- @apply font-mono font-medium text-active-orange uppercase;
77
- @apply text-overline2 leading-normal;
78
- @apply tracking-widen-0.16;
79
- }
80
-
81
- .ui-text-menu1 {
82
- @apply font-sans font-medium text-cool-black;
83
- @apply text-menu1 leading-snug;
84
- }
85
-
86
- .ui-text-menu2 {
87
- @apply font-sans font-medium text-cool-black;
88
- @apply text-menu2 leading-snug;
89
- }
90
-
91
- .ui-text-menu3 {
92
- @apply font-sans font-medium text-cool-black;
93
- @apply text-menu3 leading-snug;
94
- }
95
-
96
- .ui-text-code {
97
- @apply font-mono font-normal text-code;
98
- }
99
-
100
- .ui-text-code2 {
101
- @apply font-mono font-normal text-code2;
102
- }
103
-
104
- .ui-text-code-inline {
105
- @apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
106
- }
107
-
108
- .ui-unordered-list {
109
- @apply text-p1 font-medium text-charcoal-grey;
110
- @apply ml-32 my-16;
111
- @apply list-disc;
112
- }
113
-
114
- .ui-ordered-list {
115
- @apply text-p1 font-medium text-charcoal-grey;
116
- @apply ml-32 my-16;
117
- @apply list-decimal;
118
- }
119
-
120
- .ui-ordered-list li,
121
- .ui-unordered-list li {
122
- @apply mb-8;
123
- }
124
-
125
- .ui-unordered-list li > *:last-of-type:not(ul):not(ol),
126
- .ui-ordered-list li > *:last-of-type:not(ul):not(ol) {
127
- margin-bottom: 0;
128
- }
129
-
130
- .ui-unordered-list ul {
131
- @apply ml-24 my-8 list-circle;
132
- }
133
-
134
- .ui-ordered-list ol {
135
- @apply ml-24 my-16 list-decimal;
136
- }
137
-
138
- .ui-unordered-list ul ul {
139
- @apply list-square my-8;
140
- }
141
-
142
- .ui-unordered-list ul ul {
143
- @apply my-8;
144
- }
145
-
146
- .ui-link {
147
- @apply text-gui-default;
148
- @apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
149
- @apply focus:text-gui-default focus:outline-gui-focus;
150
- @apply no-underline;
151
- }
152
-
153
- .ui-link-neutral {
154
- @apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
155
- @apply focus:text-charcoal-grey;
156
- @apply underline;
157
- }
158
-
159
- /* focus:outline-gui-focus-neutral does not get created under Tailwind 3.3.5, not sure why */
160
- .ui-link-neutral:focus {
161
- outline: 2px solid var(--color-neutral-000);
162
- }
163
-
164
- .ui-figcaption {
165
- @apply font-mono text-p3 text-neutral-800;
1
+ @layer components {
2
+ .ui-text-title {
3
+ @apply font-sans font-extrabold text-cool-black;
4
+ @apply text-title-xs xs:text-title xl:text-title-xl;
5
+ @apply tracking-tighten-0.015 xs:tracking-tighten-0.02 xl:tracking-tighten-0.02;
6
+ }
7
+
8
+ .ui-text-h1 {
9
+ @apply font-sans font-extrabold text-cool-black;
10
+ @apply text-h1-xs xs:text-h1 xl:text-h1-xl;
11
+ @apply tracking-tighten-0.0125 xs:tracking-tighten-0.015;
12
+ }
13
+
14
+ .ui-text-h2 {
15
+ @apply font-sans font-extrabold text-cool-black;
16
+ @apply text-h2-xs xs:text-h2 xl:text-h2-xl;
17
+ @apply tracking-tighten-0.015 xs:tracking-tighten-0.01;
18
+ }
19
+
20
+ .ui-text-h3 {
21
+ @apply font-sans font-extrabold text-cool-black;
22
+ @apply text-h3;
23
+ @apply tracking-tighten-0.005;
24
+ }
25
+
26
+ .ui-text-h4 {
27
+ @apply font-sans font-extrabold text-cool-black;
28
+ @apply text-h4;
29
+ @apply tracking-tighten-0.0015;
30
+ }
31
+
32
+ .ui-text-h5 {
33
+ @apply font-sans font-extrabold text-cool-black;
34
+ @apply text-h5;
35
+ @apply tracking-tighten-0.0025;
36
+ }
37
+
38
+ .ui-text-p1 {
39
+ @apply font-sans font-medium text-charcoal-grey;
40
+ @apply text-p1;
41
+ }
42
+
43
+ .ui-text-p2 {
44
+ @apply font-sans font-medium text-charcoal-grey;
45
+ @apply text-p2;
46
+ }
47
+
48
+ .ui-text-p3 {
49
+ @apply font-sans font-medium text-charcoal-grey;
50
+ @apply text-p3;
51
+ }
52
+
53
+ .ui-text-standfirst {
54
+ @apply font-sans font-light text-active-orange;
55
+ @apply text-standfirst xl:text-standfirst-xl;
56
+ @apply tracking-tighten-0.025 xl:tracking-tighten-0.015;
57
+ }
58
+
59
+ .ui-text-quote {
60
+ @apply font-sans font-normal text-cool-black;
61
+ @apply text-quote leading-normal;
62
+ @apply tracking-tighten-0.0015;
63
+ }
64
+
65
+ .ui-text-sub-header {
66
+ @apply font-sans font-semibold text-neutral-800;
67
+ @apply text-sub-header-xs xs:text-sub-header leading-normal;
68
+ }
69
+
70
+ .ui-text-overline1 {
71
+ @apply font-mono font-medium text-active-orange uppercase;
72
+ @apply text-overline1 leading-normal;
73
+ @apply tracking-widen-0.16;
74
+ }
75
+
76
+ .ui-text-overline2 {
77
+ @apply font-mono font-medium text-active-orange uppercase;
78
+ @apply text-overline2 leading-normal;
79
+ @apply tracking-widen-0.16;
80
+ }
81
+
82
+ .ui-text-menu1 {
83
+ @apply font-sans font-medium text-cool-black;
84
+ @apply text-menu1 leading-snug;
85
+ }
86
+
87
+ .ui-text-menu2 {
88
+ @apply font-sans font-medium text-cool-black;
89
+ @apply text-menu2 leading-snug;
90
+ }
91
+
92
+ .ui-text-menu3 {
93
+ @apply font-sans font-medium text-cool-black;
94
+ @apply text-menu3 leading-snug;
95
+ }
96
+
97
+ .ui-text-code {
98
+ @apply font-mono font-normal text-code;
99
+ }
100
+
101
+ .ui-text-code2 {
102
+ @apply font-mono font-normal text-code2;
103
+ }
104
+
105
+ .ui-text-code-inline {
106
+ @apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
107
+ }
108
+
109
+ .ui-unordered-list {
110
+ @apply text-p1 font-medium text-charcoal-grey;
111
+ @apply ml-32 my-16;
112
+ @apply list-disc;
113
+ }
114
+
115
+ .ui-ordered-list {
116
+ @apply text-p1 font-medium text-charcoal-grey;
117
+ @apply ml-32 my-16;
118
+ @apply list-decimal;
119
+ }
120
+
121
+ .ui-ordered-list li,
122
+ .ui-unordered-list li {
123
+ @apply mb-8;
124
+ }
125
+
126
+ .ui-unordered-list li > *:last-of-type:not(ul):not(ol),
127
+ .ui-ordered-list li > *:last-of-type:not(ul):not(ol) {
128
+ margin-bottom: 0;
129
+ }
130
+
131
+ .ui-unordered-list ul {
132
+ @apply ml-24 my-8 list-circle;
133
+ }
134
+
135
+ .ui-ordered-list ol {
136
+ @apply ml-24 my-16 list-decimal;
137
+ }
138
+
139
+ .ui-unordered-list ul ul {
140
+ @apply list-square my-8;
141
+ }
142
+
143
+ .ui-unordered-list ul ul {
144
+ @apply my-8;
145
+ }
146
+
147
+ .ui-link {
148
+ @apply text-gui-default;
149
+ @apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
150
+ @apply focus:text-gui-default focus:outline-gui-focus;
151
+ @apply no-underline;
152
+ }
153
+
154
+ .ui-link-neutral {
155
+ @apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
156
+ @apply focus:text-charcoal-grey;
157
+ @apply underline;
158
+ }
159
+
160
+ /* focus:outline-gui-focus-neutral does not get created under Tailwind 3.3.5, not sure why */
161
+ .ui-link-neutral:focus {
162
+ outline: 2px solid var(--color-neutral-000);
163
+ }
164
+
165
+ .ui-figcaption {
166
+ @apply font-mono text-p3 text-neutral-800;
167
+ }
166
168
  }
@@ -3,31 +3,33 @@
3
3
  @import "./styles/text.css";
4
4
  @import "./styles/forms.css";
5
5
 
6
- .ui-input {
7
- @apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
8
- @apply hover:bg-white hover:shadow-input hover:border-transparent;
9
- @apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
10
- @apply max-w-screen-sm;
11
- }
6
+ @layer components {
7
+ .ui-input {
8
+ @apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
9
+ @apply hover:bg-white hover:shadow-input hover:border-transparent;
10
+ @apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
11
+ @apply max-w-screen-sm;
12
+ }
12
13
 
13
- /* Basis for icon component */
14
- .ui-icon-cool-black {
15
- stroke: var(--color-cool-black);
16
- }
14
+ /* Basis for icon component */
15
+ .ui-icon-cool-black {
16
+ stroke: var(--color-cool-black);
17
+ }
17
18
 
18
- .ui-icon-white {
19
- stroke: var(--color-white);
20
- }
19
+ .ui-icon-white {
20
+ stroke: var(--color-white);
21
+ }
21
22
 
22
- .ui-icon-dark-grey {
23
- stroke: var(--color-dark-grey);
24
- }
23
+ .ui-icon-dark-grey {
24
+ stroke: var(--color-dark-grey);
25
+ }
25
26
 
26
- .ui-version-tag {
27
- @apply inline-block absolute align-top uppercase font-bold whitespace-nowrap;
27
+ .ui-version-tag {
28
+ @apply inline-block absolute align-top uppercase font-bold whitespace-nowrap;
28
29
 
29
- position: relative;
30
- vertical-align: super;
31
- margin-left: 3px;
32
- font-size: 8px;
30
+ position: relative;
31
+ vertical-align: super;
32
+ margin-left: 3px;
33
+ font-size: 8px;
34
+ }
33
35
  }
@@ -1,67 +1,71 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,600;0,700;1,600;1,700&display=swap");
2
- @import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap");
3
- @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
4
-
5
- .hljs {
6
- background: var(--syntax-black);
7
- color: var(--syntax-light-grey);
1
+ @layer base {
2
+ @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,600;0,700;1,600;1,700&display=swap");
3
+ @import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap");
4
+ @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
8
5
  }
9
6
 
10
- .hljs-emphasis {
11
- @apply italic;
12
- }
7
+ @layer components {
8
+ .hljs {
9
+ background: var(--syntax-black);
10
+ color: var(--syntax-light-grey);
11
+ }
13
12
 
14
- .hljs-strong {
15
- @apply font-bold;
16
- }
13
+ .hljs-emphasis {
14
+ @apply italic;
15
+ }
17
16
 
18
- .hljs-comment,
19
- .hljs-quote {
20
- color: var(--syntax-dark-grey);
21
- }
17
+ .hljs-strong {
18
+ @apply font-bold;
19
+ }
22
20
 
23
- .hljs-variable,
24
- .hljs-template-variable,
25
- .hljs-tag,
26
- .hljs-name,
27
- .hljs-selector-id,
28
- .hljs-selector-class,
29
- .hljs-regexp,
30
- .hljs-deletion {
31
- color: var(--syntax-red);
32
- }
21
+ .hljs-comment,
22
+ .hljs-quote {
23
+ color: var(--syntax-dark-grey);
24
+ }
33
25
 
34
- .hljs-number,
35
- .hljs-built_in,
36
- .hljs-literal,
37
- .hljs-type,
38
- .hljs-params,
39
- .hljs-meta,
40
- .hljs-link {
41
- color: var(--syntax-orange);
42
- }
26
+ .hljs-variable,
27
+ .hljs-template-variable,
28
+ .hljs-tag,
29
+ .hljs-name,
30
+ .hljs-selector-id,
31
+ .hljs-selector-class,
32
+ .hljs-regexp,
33
+ .hljs-deletion {
34
+ color: var(--syntax-red);
35
+ }
43
36
 
44
- .hljs-attribute {
45
- color: var(--syntax-yellow);
46
- }
37
+ .hljs-number,
38
+ .hljs-built_in,
39
+ .hljs-literal,
40
+ .hljs-type,
41
+ .hljs-params,
42
+ .hljs-meta,
43
+ .hljs-link {
44
+ color: var(--syntax-orange);
45
+ }
47
46
 
48
- .hljs-string,
49
- .hljs-symbol,
50
- .hljs-bullet,
51
- .hljs-addition {
52
- color: var(--syntax-green);
53
- }
47
+ .hljs-attribute {
48
+ color: var(--syntax-yellow);
49
+ }
54
50
 
55
- .hljs-title,
56
- .hljs-section {
57
- color: var(--syntax-blue);
58
- }
51
+ .hljs-string,
52
+ .hljs-symbol,
53
+ .hljs-bullet,
54
+ .hljs-addition {
55
+ color: var(--syntax-green);
56
+ }
59
57
 
60
- .hljs-keyword,
61
- .hljs-selector-tag {
62
- color: var(--syntax-lilac);
63
- }
58
+ .hljs-title,
59
+ .hljs-section {
60
+ color: var(--syntax-blue);
61
+ }
62
+
63
+ .hljs-keyword,
64
+ .hljs-selector-tag {
65
+ color: var(--syntax-lilac);
66
+ }
64
67
 
65
- .hljs-subst {
66
- color: var(--syntax-mid-grey);
68
+ .hljs-subst {
69
+ color: var(--syntax-mid-grey);
70
+ }
67
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "14.0.0-dev.99c9769",
3
+ "version": "14.0.0-dev.ae75f49",
4
4
  "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,7 @@
15
15
  "tailwind.extend.js"
16
16
  ],
17
17
  "devDependencies": {
18
+ "@mrtkrcm/cypress-plugin-snapshots": "https://github.com/mrtkrcm/cypress-plugin-snapshots#v1.13.0",
18
19
  "@storybook/addon-essentials": "^7.6.17",
19
20
  "@storybook/addon-interactions": "^7.6.17",
20
21
  "@storybook/addon-links": "^7.6.17",
@@ -36,8 +37,6 @@
36
37
  "eslint-plugin-storybook": "^0.6.15",
37
38
  "msw": "1.3.2",
38
39
  "msw-storybook-addon": "^1.10.0",
39
- "postcss": "^8.4.35",
40
- "postcss-import": "^13.0.0",
41
40
  "prettier": "^2.3.0",
42
41
  "storybook": "^7.6.4",
43
42
  "svg-sprite": "^2.0.4",
@@ -65,7 +64,6 @@
65
64
  "build-storybook": "storybook build -o preview"
66
65
  },
67
66
  "dependencies": {
68
- "@mrtkrcm/cypress-plugin-snapshots": "https://github.com/mrtkrcm/cypress-plugin-snapshots#v1.13.0",
69
67
  "addsearch-js-client": "^0.7.0",
70
68
  "array-flat-polyfill": "^1.0.1",
71
69
  "dompurify": "^2.2.9",
Binary file
@@ -7,14 +7,14 @@ type AccordionData = {
7
7
  };
8
8
 
9
9
  type AccordionRowProps = {
10
- bottomBorder: boolean;
11
- topBorder: boolean;
10
+ bottomBorder?: boolean;
11
+ topBorder?: boolean;
12
12
  active: boolean;
13
13
  last: boolean;
14
14
  name: string;
15
15
  index;
16
16
  children: ReactNode;
17
- arrowIcon: boolean;
17
+ arrowIcon?: boolean;
18
18
  setActiveIndex: (index: number) => void;
19
19
  };
20
20
 
@@ -25,6 +25,7 @@ export type AccordionProps = {
25
25
  bottomBorder?: boolean;
26
26
  id?: string;
27
27
  autoClose?: boolean;
28
+ className?: string;
28
29
  };
29
30
 
30
31
  const AccordionRow = ({
@@ -104,8 +105,9 @@ const Accordion = ({
104
105
  bottomBorder,
105
106
  arrowIcon,
106
107
  autoClose,
108
+ className,
107
109
  }: AccordionProps) => {
108
- const [activeIndexes, setActiveIndexes] = useState([]);
110
+ const [activeIndexes, setActiveIndexes] = useState<number[]>([]);
109
111
 
110
112
  const handleSetIndex = (index: number) => {
111
113
  const currentIndexIsActive = activeIndexes.includes(index);
@@ -122,7 +124,7 @@ const Accordion = ({
122
124
  };
123
125
 
124
126
  return (
125
- <div className="ui-grid-mx max-w-screen-sm sm:mx-auto" id={id}>
127
+ <div className={className} id={id}>
126
128
  {data.map((item, currentIndex) => {
127
129
  return (
128
130
  <AccordionRow
package/src/core/Code.tsx CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
 
3
- import "./utils/syntax-highlighter.css";
4
3
  import {
5
4
  highlightSnippet,
6
5
  registerDefaultLanguages,
@@ -1,9 +1,11 @@
1
- .ui-contact-footer {
2
- background-size: 100% 100%;
3
- background-position: right center;
4
- @apply w-full bg-gradient-active-orange;
5
- }
1
+ @layer components {
2
+ .ui-contact-footer {
3
+ background-size: 100% 100%;
4
+ background-position: right center;
5
+ @apply w-full bg-gradient-active-orange;
6
+ }
6
7
 
7
- .ui-contact-footer-box {
8
- @apply p-24 sm:p-32 xl:p-40 bg-white flex flex-col justify-between rounded-sm;
8
+ .ui-contact-footer-box {
9
+ @apply p-24 sm:p-32 xl:p-40 bg-white flex flex-col justify-between rounded-sm;
10
+ }
9
11
  }
@@ -3,7 +3,6 @@ import React, { useEffect } from "react";
3
3
  import Icon from "./Icon";
4
4
  import _absUrl from "./url-base.js";
5
5
  import toggleChatWidget from "./hubspot-chat-toggle";
6
- import "./ContactFooter/component.css";
7
6
 
8
7
  type ContactFooterProps = {
9
8
  urlBase: string;
@@ -1,11 +1,13 @@
1
- .ui-cookie-message {
2
- @apply rounded-lg bg-white font-sans;
3
- @apply justify-between items-center;
4
- @apply opacity-100 z-50 bottom-0 fixed sm:flex;
5
- @apply p-16 mb-16 ml-16;
6
- max-width: 70vw;
7
- box-shadow: 0px 24px 32px 0px #0000000d;
8
- border: 1px solid var(--color-mid-grey);
9
- border-left: 0.5rem solid var(--color-electric-cyan);
10
- transition: bottom 250ms ease-out, opacity 150ms ease-out;
1
+ @layer components {
2
+ .ui-cookie-message {
3
+ @apply rounded-lg bg-white font-sans;
4
+ @apply justify-between items-center;
5
+ @apply opacity-100 z-50 bottom-0 fixed sm:flex;
6
+ @apply p-16 mb-16 ml-16;
7
+ max-width: 70vw;
8
+ box-shadow: 0px 24px 32px 0px #0000000d;
9
+ border: 1px solid var(--color-mid-grey);
10
+ border-left: 0.5rem solid var(--color-electric-cyan);
11
+ transition: bottom 250ms ease-out, opacity 150ms ease-out;
12
+ }
11
13
  }