@hyphen/hyphen-components 2.10.1 → 2.11.1

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.
@@ -29,4 +29,4 @@
29
29
  .TableRow-module_table-row__-Y9FQ.TableRow-module_hoverable__53-l9{background-color:var(--table-row-hover-background)}
30
30
  .TableBodyCell-module_table-cell__pKl29{border-bottom-style:solid;border-color:var(--color-border-default);border-width:0 0 var(--size-border-width-sm) 0;color:var(--color-font-base);padding:var(--size-spacing-md) var(--size-spacing-lg)}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_borderless__qwKQA{border-width:0}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_compact__zfdBf{padding:var(--size-spacing-sm) var(--size-spacing-md)}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_truncated__4YtPF{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_sticky-column-left__tKIGW{background-color:var(--color-background-primary);left:0}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_sticky-column-right__680hS{background-color:var(--color-background-primary);right:0}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_sticky-column__QpEbV{background-color:var(--color-background-primary);box-shadow:5px 0 5px -2px rgba(0,0,0,.1),-5px 0 5px -2px rgba(0,0,0,.1);position:sticky;z-index:calc(var(--size-z-index-sticky) - 1)}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_align-right__j-VqN{text-align:right}.TableBodyCell-module_table-cell__pKl29.TableBodyCell-module_align-center__saqzC{text-align:center}
31
31
  .TableHeaderCell-module_table-header-cell__aufSm{background-color:var(--color-background-primary);border-bottom-style:solid;border-color:var(--color-border-default);border-width:0 0 var(--size-border-width-sm) 0;color:var(--color-font-primary);font-size:var(--size-font-size-sm);font-weight:var(--size-font-weight-bold);letter-spacing:.05em;padding:var(--size-spacing-md) var(--size-spacing-lg);text-align:left;text-transform:uppercase;white-space:nowrap}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_sortable__qjrkY{cursor:pointer}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_borderless__uos2k{border-width:0}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_truncated__wmNfw{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_compact__ujtrZ{padding:var(--size-spacing-sm) var(--size-spacing-md)}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_sticky-header__PEP9t{position:sticky;top:0;z-index:var(--size-z-index-sticky)}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_sticky-column-left__t8qIz{left:0}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_sticky-column-right__6D8-X{right:0}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_sticky-column__g9ybV{background-color:var(--color-background-primary);box-shadow:5px 0 5px -2px rgba(0,0,0,.1),-5px 0 5px -2px rgba(0,0,0,.1);position:sticky;z-index:calc(var(--size-z-index-sticky) + 1)}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_align-right__Qw0YQ{text-align:right}.TableHeaderCell-module_table-header-cell__aufSm.TableHeaderCell-module_align-center__1RmCS{text-align:center}.TableHeaderCell-module_table-header-cell__aufSm .TableHeaderCell-module_heading__fEcYT{white-space:nowrap}.TableHeaderCell-module_table-header-cell__aufSm .TableHeaderCell-module_heading__fEcYT .TableHeaderCell-module_sort-icon__SHgic{margin-left:var(--size-spacing-xs)}
32
- .ToastNotification-module_toast-notification__2xiTW{background-color:var(--color-background-primary);border:1px solid var(--color-border-subtle);border-radius:var(--size-border-radius-lg);box-shadow:var(--size-box-shadow-md);color:var(--color-font-primary);font-size:var(--size-font-size-sm);pointer-events:auto;will-change:transform}.ToastNotification-module_toast-dismiss__xxmkb{border-color:var(--color-border-default);color:var(--color-font-primary)}.ToastNotification-module_toast-notification-enter-top__ZZDCr{animation:enterTop .25s cubic-bezier(.21,1.02,.73,1) forwards}.ToastNotification-module_toast-notification-exit-top__fOIkZ{animation:exitTop .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-enter-bottom__So3w7{animation:enterBottom .25s cubic-bezier(.21,1.02,.73,1) forwards}.ToastNotification-module_toast-notification-exit-bottom__DDthi{animation:exitBottom .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-exit-left__Fh1hC{animation:exitLeft .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-exit-right__C1jQ9{animation:exitRight .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-fade-in__JlSGi{animation:fadeIn .25s cubic-bezier(.21,1.02,.73,1) forwards}.ToastNotification-module_toast-notification-fade-out__r6q4Q{animation:fadeOut .3s cubic-bezier(.06,.71,.55,1) forwards}
32
+ .ToastNotification-module_toast-notification__2xiTW{background-color:var(--color-background-toast);border:1px solid var(--color-border-toast);border-radius:var(--size-border-radius-lg);box-shadow:var(--size-box-shadow-md);color:var(--color-font-toast);font-size:var(--size-font-size-sm);pointer-events:auto;will-change:transform}.ToastNotification-module_toast-error__4ArAY{background-color:var(--color-background-toast-error);border-color:var(--color-border-toast-error);color:var(--color-font-white)}.ToastNotification-module_toast-error__4ArAY .ToastNotification-module_toast-dismiss__xxmkb{color:var(--color-font-white)}.ToastNotification-module_toast-dismiss__xxmkb{color:var(--color-font-toast)}.ToastNotification-module_toast-notification-enter-top__ZZDCr{animation:enterTop .25s cubic-bezier(.21,1.02,.73,1) forwards}.ToastNotification-module_toast-notification-exit-top__fOIkZ{animation:exitTop .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-enter-bottom__So3w7{animation:enterBottom .25s cubic-bezier(.21,1.02,.73,1) forwards}.ToastNotification-module_toast-notification-exit-bottom__DDthi{animation:exitBottom .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-exit-left__Fh1hC{animation:exitLeft .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-exit-right__C1jQ9{animation:exitRight .3s cubic-bezier(.06,.71,.55,1) forwards}.ToastNotification-module_toast-notification-fade-in__JlSGi{animation:fadeIn .25s cubic-bezier(.21,1.02,.73,1) forwards}.ToastNotification-module_toast-notification-fade-out__r6q4Q{animation:fadeOut .3s cubic-bezier(.06,.71,.55,1) forwards}
@@ -3,7 +3,7 @@
3
3
  \***************************************************************************************************************************/
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Tue, 06 Aug 2024 00:21:00 GMT
6
+ * Generated on Tue, 20 Aug 2024 18:59:17 GMT
7
7
  */
8
8
 
9
9
  .font-family-monospace { font-family: var(--assets-font-family-monospace); }
@@ -144,6 +144,18 @@
144
144
 
145
145
  .focus\:background-color-button-danger-active:focus { background: var(--color-background-button-danger-active); }
146
146
 
147
+ .background-color-toast { background: var(--color-background-toast); }
148
+
149
+ .hover\:background-color-toast:hover { background: var(--color-background-toast); }
150
+
151
+ .focus\:background-color-toast:focus { background: var(--color-background-toast); }
152
+
153
+ .background-color-toast-error { background: var(--color-background-toast-error); }
154
+
155
+ .hover\:background-color-toast-error:hover { background: var(--color-background-toast-error); }
156
+
157
+ .focus\:background-color-toast-error:focus { background: var(--color-background-toast-error); }
158
+
147
159
  .background-color-brand-gradient { background: var(--color-background-brand-gradient); }
148
160
 
149
161
  .hover\:background-color-brand-gradient:hover { background: var(--color-background-brand-gradient); }
@@ -228,6 +240,18 @@
228
240
 
229
241
  .focus\:background-color-chart-2:focus { background: var(--color-background-chart-2); }
230
242
 
243
+ .background-color-chart-3 { background: var(--color-background-chart-3); }
244
+
245
+ .hover\:background-color-chart-3:hover { background: var(--color-background-chart-3); }
246
+
247
+ .focus\:background-color-chart-3:focus { background: var(--color-background-chart-3); }
248
+
249
+ .background-color-white { background: var(--color-background-white); }
250
+
251
+ .hover\:background-color-white:hover { background: var(--color-background-white); }
252
+
253
+ .focus\:background-color-white:focus { background: var(--color-background-white); }
254
+
231
255
  .border-color-default { border-color: var(--color-border-default); }
232
256
 
233
257
  .hover\:border-color-default:hover { border-color: var(--color-border-default); }
@@ -312,6 +336,18 @@
312
336
 
313
337
  .focus\:border-color-button-tertiary-active:focus { border-color: var(--color-border-button-tertiary-active); }
314
338
 
339
+ .border-color-toast { border-color: var(--color-border-toast); }
340
+
341
+ .hover\:border-color-toast:hover { border-color: var(--color-border-toast); }
342
+
343
+ .focus\:border-color-toast:focus { border-color: var(--color-border-toast); }
344
+
345
+ .border-color-toast-error { border-color: var(--color-border-toast-error); }
346
+
347
+ .hover\:border-color-toast-error:hover { border-color: var(--color-border-toast-error); }
348
+
349
+ .focus\:border-color-toast-error:focus { border-color: var(--color-border-toast-error); }
350
+
315
351
  .border-color-brand-yellow { border-color: var(--color-border-brand-yellow); }
316
352
 
317
353
  .hover\:border-color-brand-yellow:hover { border-color: var(--color-border-brand-yellow); }
@@ -576,6 +612,18 @@
576
612
 
577
613
  .focus\:font-color-button-danger-active:focus { color: var(--color-font-button-danger-active); }
578
614
 
615
+ .font-color-toast { color: var(--color-font-toast); }
616
+
617
+ .hover\:font-color-toast:hover { color: var(--color-font-toast); }
618
+
619
+ .focus\:font-color-toast:focus { color: var(--color-font-toast); }
620
+
621
+ .font-color-toast-error { color: var(--color-font-toast-error); }
622
+
623
+ .hover\:font-color-toast-error:hover { color: var(--color-font-toast-error); }
624
+
625
+ .focus\:font-color-toast-error:focus { color: var(--color-font-toast-error); }
626
+
579
627
  .font-color-placeholder { color: var(--color-font-placeholder); }
580
628
 
581
629
  .hover\:font-color-placeholder:hover { color: var(--color-font-placeholder); }
@@ -3,7 +3,7 @@
3
3
  \*********************************************************************************************************************/
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Tue, 06 Aug 2024 00:21:00 GMT
6
+ * Generated on Tue, 20 Aug 2024 18:59:17 GMT
7
7
  */
8
8
 
9
9
  :root {
@@ -32,6 +32,8 @@
32
32
  --color-background-button-danger: #ef4444;
33
33
  --color-background-button-danger-hover: #dc2626;
34
34
  --color-background-button-danger-active: #b91c1c;
35
+ --color-background-toast: #262626;
36
+ --color-background-toast-error: #ef4444;
35
37
  --color-background-brand-gradient: linear-gradient(60deg, #eab308 0%, #fa0a64 100%);
36
38
  --color-background-brand-gradient-purple: linear-gradient(60deg, #b47dff 0%, #4b32aa 100%);
37
39
  --color-background-brand-gradient-cyan: linear-gradient(60deg, #00b4ff 0%, #dc50ff 100%);
@@ -46,6 +48,8 @@
46
48
  --color-background-brand-dark-purple: #1e1e5a;
47
49
  --color-background-chart-1: #1d4ed8;
48
50
  --color-background-chart-2: #93c5fd;
51
+ --color-background-chart-3: #3b82f6;
52
+ --color-background-white: #ffffff;
49
53
  --color-base-black: #000000;
50
54
  --color-base-white: #ffffff;
51
55
  --color-base-magenta: #fa0a64;
@@ -133,6 +137,8 @@
133
137
  --color-border-button-tertiary: rgba(0, 0, 0, 0);
134
138
  --color-border-button-tertiary-hover: rgba(0, 0, 0, 0);
135
139
  --color-border-button-tertiary-active: rgba(0, 0, 0, 0);
140
+ --color-border-toast: #171717;
141
+ --color-border-toast-error: #dc2626;
136
142
  --color-border-brand-yellow: #ffd200;
137
143
  --color-border-brand-orange: #ff911e;
138
144
  --color-border-brand-magenta: #ff3278;
@@ -168,15 +174,17 @@
168
174
  --color-font-button-primary: #ffffff;
169
175
  --color-font-button-primary-hover: #ffffff;
170
176
  --color-font-button-primary-active: #ffffff;
171
- --color-font-button-secondary: #1e1e1e;
177
+ --color-font-button-secondary: #4b4b4b;
172
178
  --color-font-button-secondary-hover: #1e1e1e;
173
179
  --color-font-button-secondary-active: #1e1e1e;
174
- --color-font-button-tertiary: #1e1e1e;
180
+ --color-font-button-tertiary: #4b4b4b;
175
181
  --color-font-button-tertiary-hover: #1e1e1e;
176
182
  --color-font-button-tertiary-active: #1e1e1e;
177
183
  --color-font-button-danger: #ffffff;
178
184
  --color-font-button-danger-hover: #ffffff;
179
185
  --color-font-button-danger-active: #ffffff;
186
+ --color-font-toast: #f5f5f5;
187
+ --color-font-toast-error: #ffffff;
180
188
  --color-font-placeholder: #a3a3a3; /* Placeholder color for input fields */
181
189
  --color-font-brand-yellow: #ffd200;
182
190
  --color-font-brand-orange: #ff911e;
@@ -196,8 +204,8 @@
196
204
  --size-border-radius-sm: 0.25rem;
197
205
  --size-border-radius-md: 0.5rem;
198
206
  --size-border-radius-lg: 0.625rem;
199
- --size-border-radius-xl: 1rem;
200
- --size-border-radius-2xl: 1.25rem;
207
+ --size-border-radius-xl: 0.75rem;
208
+ --size-border-radius-2xl: 1rem;
201
209
  --size-border-radius-3xl: 2rem;
202
210
  --size-box-shadow-0: 0 0 #000000;
203
211
  --size-box-shadow-2xs: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
@@ -298,7 +306,7 @@
298
306
  \*******************************************************************************************************************************/
299
307
  /**
300
308
  * Do not edit directly
301
- * Generated on Tue, 06 Aug 2024 00:21:00 GMT
309
+ * Generated on Tue, 20 Aug 2024 18:59:17 GMT
302
310
  */
303
311
 
304
312
  :root.dark {
@@ -324,6 +332,7 @@
324
332
  --color-background-button-danger: #ef4444;
325
333
  --color-background-button-danger-hover: #dc2626;
326
334
  --color-background-button-danger-active: #b91c1c;
335
+ --color-background-toast: #f5f5f5;
327
336
  --color-border-default: #525252;
328
337
  --color-border-subtle: #404040;
329
338
  --color-border-hover: #404040;
@@ -338,9 +347,9 @@
338
347
  --color-border-button-tertiary: transparent;
339
348
  --color-border-button-tertiary-hover: transparent;
340
349
  --color-border-button-tertiary-active: transparent;
350
+ --color-border-toast: #e5e5e5;
341
351
  --color-font-base: #f5f5f5;
342
352
  --color-font-secondary: #d4d4d4;
343
- --color-font-white: #ffffff;
344
353
  --color-font-inverse: #404040;
345
354
  --color-font-disabled: #525252;
346
355
  --color-font-success: #16a34a;
@@ -360,6 +369,7 @@
360
369
  --color-font-button-tertiary: #ffffff;
361
370
  --color-font-button-tertiary-hover: #ffffff;
362
371
  --color-font-button-tertiary-active: #ffffff;
372
+ --color-font-toast: #404040;
363
373
  --color-font-placeholder: #737373; /* Placeholder color for input fields */
364
374
  }
365
375
 
@@ -4024,7 +4024,7 @@ var useTheme = function useTheme() {
4024
4024
  return context;
4025
4025
  };
4026
4026
 
4027
- var styles = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4027
+ var styles = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4028
4028
 
4029
4029
  var getAnimationClass = function getAnimationClass(position, visible) {
4030
4030
  var verticalPosition = position.includes('top') ? 'top' : 'bottom';
@@ -4046,7 +4046,7 @@ var renderToastIcon = function renderToastIcon(toast) {
4046
4046
  }
4047
4047
  if (type === 'error') {
4048
4048
  iconName = 'c-warning';
4049
- iconColor = 'danger';
4049
+ iconColor = 'white';
4050
4050
  }
4051
4051
  var icon = type !== 'loading' ? React.createElement(Icon, {
4052
4052
  name: iconName,
@@ -4063,7 +4063,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
4063
4063
  // eslint-disable-next-line consistent-return
4064
4064
  return React.createElement(Box, {
4065
4065
  as: "button",
4066
- borderWidth: "0 0 0 sm",
4066
+ borderWidth: "0",
4067
4067
  className: styles['toast-dismiss'],
4068
4068
  padding: "0 0 0 sm",
4069
4069
  alignItems: "center",
@@ -4080,6 +4080,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
4080
4080
  };
4081
4081
  // eslint-disable-next-line import/prefer-default-export
4082
4082
  var ToastNotification = /*#__PURE__*/React.memo(function (_ref2) {
4083
+ var _classNames;
4083
4084
  var toast = _ref2.toast,
4084
4085
  _ref2$position = _ref2.position,
4085
4086
  position = _ref2$position === void 0 ? 'top-center' : _ref2$position,
@@ -4094,9 +4095,9 @@ var ToastNotification = /*#__PURE__*/React.memo(function (_ref2) {
4094
4095
  }
4095
4096
  }, toast.ariaProps), resolveValue(toast.message, toast));
4096
4097
  var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
4097
- var classes = classNames(toast.className, styles['toast-notification'], animationClass, {
4098
+ var classes = classNames(toast.className, styles['toast-notification'], animationClass, (_classNames = {
4098
4099
  'toast-notification--not-visible': !toast.visible
4099
- });
4100
+ }, _classNames[styles['toast-error']] = toast.type === 'error', _classNames));
4100
4101
  return React.createElement(Box, {
4101
4102
  alignItems: "center",
4102
4103
  maxWidth: "300px",