@hyphen/hyphen-components 2.10.0 → 2.11.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.
@@ -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 Thu, 15 Aug 2024 15:18:26 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,12 @@
228
240
 
229
241
  .focus\:background-color-chart-2:focus { background: var(--color-background-chart-2); }
230
242
 
243
+ .background-color-white { background: var(--color-background-white); }
244
+
245
+ .hover\:background-color-white:hover { background: var(--color-background-white); }
246
+
247
+ .focus\:background-color-white:focus { background: var(--color-background-white); }
248
+
231
249
  .border-color-default { border-color: var(--color-border-default); }
232
250
 
233
251
  .hover\:border-color-default:hover { border-color: var(--color-border-default); }
@@ -312,6 +330,18 @@
312
330
 
313
331
  .focus\:border-color-button-tertiary-active:focus { border-color: var(--color-border-button-tertiary-active); }
314
332
 
333
+ .border-color-toast { border-color: var(--color-border-toast); }
334
+
335
+ .hover\:border-color-toast:hover { border-color: var(--color-border-toast); }
336
+
337
+ .focus\:border-color-toast:focus { border-color: var(--color-border-toast); }
338
+
339
+ .border-color-toast-error { border-color: var(--color-border-toast-error); }
340
+
341
+ .hover\:border-color-toast-error:hover { border-color: var(--color-border-toast-error); }
342
+
343
+ .focus\:border-color-toast-error:focus { border-color: var(--color-border-toast-error); }
344
+
315
345
  .border-color-brand-yellow { border-color: var(--color-border-brand-yellow); }
316
346
 
317
347
  .hover\:border-color-brand-yellow:hover { border-color: var(--color-border-brand-yellow); }
@@ -576,6 +606,18 @@
576
606
 
577
607
  .focus\:font-color-button-danger-active:focus { color: var(--color-font-button-danger-active); }
578
608
 
609
+ .font-color-toast { color: var(--color-font-toast); }
610
+
611
+ .hover\:font-color-toast:hover { color: var(--color-font-toast); }
612
+
613
+ .focus\:font-color-toast:focus { color: var(--color-font-toast); }
614
+
615
+ .font-color-toast-error { color: var(--color-font-toast-error); }
616
+
617
+ .hover\:font-color-toast-error:hover { color: var(--color-font-toast-error); }
618
+
619
+ .focus\:font-color-toast-error:focus { color: var(--color-font-toast-error); }
620
+
579
621
  .font-color-placeholder { color: var(--color-font-placeholder); }
580
622
 
581
623
  .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 Thu, 15 Aug 2024 15:18:26 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,7 @@
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-white: #ffffff;
49
52
  --color-base-black: #000000;
50
53
  --color-base-white: #ffffff;
51
54
  --color-base-magenta: #fa0a64;
@@ -133,6 +136,8 @@
133
136
  --color-border-button-tertiary: rgba(0, 0, 0, 0);
134
137
  --color-border-button-tertiary-hover: rgba(0, 0, 0, 0);
135
138
  --color-border-button-tertiary-active: rgba(0, 0, 0, 0);
139
+ --color-border-toast: #171717;
140
+ --color-border-toast-error: #dc2626;
136
141
  --color-border-brand-yellow: #ffd200;
137
142
  --color-border-brand-orange: #ff911e;
138
143
  --color-border-brand-magenta: #ff3278;
@@ -177,6 +182,8 @@
177
182
  --color-font-button-danger: #ffffff;
178
183
  --color-font-button-danger-hover: #ffffff;
179
184
  --color-font-button-danger-active: #ffffff;
185
+ --color-font-toast: #f5f5f5;
186
+ --color-font-toast-error: #ffffff;
180
187
  --color-font-placeholder: #a3a3a3; /* Placeholder color for input fields */
181
188
  --color-font-brand-yellow: #ffd200;
182
189
  --color-font-brand-orange: #ff911e;
@@ -298,7 +305,7 @@
298
305
  \*******************************************************************************************************************************/
299
306
  /**
300
307
  * Do not edit directly
301
- * Generated on Tue, 06 Aug 2024 00:21:00 GMT
308
+ * Generated on Thu, 15 Aug 2024 15:18:26 GMT
302
309
  */
303
310
 
304
311
  :root.dark {
@@ -324,6 +331,7 @@
324
331
  --color-background-button-danger: #ef4444;
325
332
  --color-background-button-danger-hover: #dc2626;
326
333
  --color-background-button-danger-active: #b91c1c;
334
+ --color-background-toast: #f5f5f5;
327
335
  --color-border-default: #525252;
328
336
  --color-border-subtle: #404040;
329
337
  --color-border-hover: #404040;
@@ -338,9 +346,9 @@
338
346
  --color-border-button-tertiary: transparent;
339
347
  --color-border-button-tertiary-hover: transparent;
340
348
  --color-border-button-tertiary-active: transparent;
349
+ --color-border-toast: #e5e5e5;
341
350
  --color-font-base: #f5f5f5;
342
351
  --color-font-secondary: #d4d4d4;
343
- --color-font-white: #ffffff;
344
352
  --color-font-inverse: #404040;
345
353
  --color-font-disabled: #525252;
346
354
  --color-font-success: #16a34a;
@@ -360,6 +368,7 @@
360
368
  --color-font-button-tertiary: #ffffff;
361
369
  --color-font-button-tertiary-hover: #ffffff;
362
370
  --color-font-button-tertiary-active: #ffffff;
371
+ --color-font-toast: #404040;
363
372
  --color-font-placeholder: #737373; /* Placeholder color for input fields */
364
373
  }
365
374
 
@@ -809,7 +809,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
809
809
  display: "inline-flex",
810
810
  direction: "row",
811
811
  alignItems: "center",
812
- gap: "xs"
812
+ gap: "md"
813
813
  }, isLoading && React.createElement(Spinner, {
814
814
  className: styles$r['spinner-wrapper']
815
815
  }), iconPrefix && React.createElement(Icon, {
@@ -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",