@byline/ui 1.10.2 → 1.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.
Files changed (182) hide show
  1. package/dist/components/accordion/accordion.js +5 -5
  2. package/dist/components/accordion/accordion_module.css +6 -6
  3. package/dist/components/avatar/avatar.js +4 -4
  4. package/dist/components/avatar/avatar_module.css +4 -4
  5. package/dist/components/badge/badge.js +1 -1
  6. package/dist/components/badge/badge_module.css +8 -8
  7. package/dist/components/button/button-group_module.css +2 -2
  8. package/dist/components/button/button.js +1 -1
  9. package/dist/components/button/button_module.css +38 -38
  10. package/dist/components/button/combo-button_module.css +6 -6
  11. package/dist/components/button/control-buttons.js +1 -1
  12. package/dist/components/button/control-buttons_module.css +1 -1
  13. package/dist/components/button/copy-button.js +2 -2
  14. package/dist/components/button/copy-button_module.css +7 -7
  15. package/dist/components/card/card.js +6 -6
  16. package/dist/components/card/card_module.css +9 -9
  17. package/dist/components/chips/chip.js +5 -5
  18. package/dist/components/chips/chip_module.css +35 -35
  19. package/dist/components/container/container.js +1 -1
  20. package/dist/components/container/container_module.css +4 -4
  21. package/dist/components/dropdown/dropdown.js +8 -8
  22. package/dist/components/dropdown/dropdown_module.css +8 -8
  23. package/dist/components/hamburger/hamburger.js +3 -3
  24. package/dist/components/hamburger/hamburger_module.css +16 -16
  25. package/dist/components/inputs/autocomplete.js +9 -9
  26. package/dist/components/inputs/autocomplete_module.css +36 -36
  27. package/dist/components/inputs/checkbox-group.js +1 -1
  28. package/dist/components/inputs/checkbox-group_module.css +1 -1
  29. package/dist/components/inputs/checkbox.js +5 -5
  30. package/dist/components/inputs/checkbox_module.css +31 -31
  31. package/dist/components/inputs/error-text_module.css +4 -4
  32. package/dist/components/inputs/help-text.js +1 -1
  33. package/dist/components/inputs/help-text_module.css +4 -4
  34. package/dist/components/inputs/input-adornment.js +1 -1
  35. package/dist/components/inputs/input-adornment_module.css +3 -3
  36. package/dist/components/inputs/input.js +5 -5
  37. package/dist/components/inputs/input_module.css +38 -38
  38. package/dist/components/inputs/label_module.css +2 -2
  39. package/dist/components/inputs/radio-group.js +1 -1
  40. package/dist/components/inputs/radio-group_module.css +18 -18
  41. package/dist/components/inputs/select.js +3 -3
  42. package/dist/components/inputs/select_module.css +8 -8
  43. package/dist/components/inputs/text-area.js +1 -1
  44. package/dist/components/inputs/text-area_module.css +3 -3
  45. package/dist/components/notifications/alert.js +10 -10
  46. package/dist/components/notifications/alert_module.css +16 -16
  47. package/dist/components/notifications/toast.js +7 -7
  48. package/dist/components/notifications/toast_module.css +24 -24
  49. package/dist/components/pager/pagination.js +2 -2
  50. package/dist/components/pager/pagination_module.css +6 -6
  51. package/dist/components/scroll-area/scroll-area.js +7 -7
  52. package/dist/components/scroll-area/scroll-area_module.css +9 -9
  53. package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
  54. package/dist/components/scroll-to-top/scroll-to-top_module.css +9 -9
  55. package/dist/components/section/section.js +1 -1
  56. package/dist/components/section/section_module.css +1 -1
  57. package/dist/components/shimmer/shimmer_module.css +6 -6
  58. package/dist/components/table/table.js +8 -8
  59. package/dist/components/table/table_module.css +15 -15
  60. package/dist/components/tabs/tabs.js +4 -4
  61. package/dist/components/tabs/tabs_module.css +9 -9
  62. package/dist/components/tooltip/tooltip.js +2 -2
  63. package/dist/components/tooltip/tooltip_module.css +6 -6
  64. package/dist/fields/checkbox/checkbox-field.js +2 -1
  65. package/dist/fields/checkbox/checkbox-field.module.js +6 -0
  66. package/dist/fields/checkbox/checkbox-field_module.css +4 -0
  67. package/dist/forms/form-context.d.ts +1 -0
  68. package/dist/forms/form-context.js +3 -2
  69. package/dist/loaders/ellipses.js +2 -2
  70. package/dist/loaders/ellipses_module.css +2 -2
  71. package/dist/loaders/ring.js +2 -2
  72. package/dist/loaders/ring_module.css +2 -2
  73. package/dist/loaders/spinner.js +3 -3
  74. package/dist/loaders/spinner_module.css +3 -3
  75. package/dist/styles/styles.css +12 -0
  76. package/dist/widgets/datepicker/datepicker.js +11 -11
  77. package/dist/widgets/datepicker/datepicker_module.css +21 -21
  78. package/dist/widgets/drawer/drawer-container.js +1 -1
  79. package/dist/widgets/drawer/drawer-content.js +1 -1
  80. package/dist/widgets/drawer/drawer-header.js +1 -1
  81. package/dist/widgets/drawer/drawer-top-actions.js +1 -1
  82. package/dist/widgets/drawer/drawer.js +2 -2
  83. package/dist/widgets/drawer/drawer_module.css +11 -11
  84. package/dist/widgets/modal/modal-actions.js +1 -1
  85. package/dist/widgets/modal/modal-container.js +1 -1
  86. package/dist/widgets/modal/modal-content.js +1 -1
  87. package/dist/widgets/modal/modal-header.js +1 -1
  88. package/dist/widgets/modal/modal.js +2 -2
  89. package/dist/widgets/modal/modal_module.css +12 -12
  90. package/dist/widgets/search/search.js +6 -0
  91. package/dist/widgets/timeline/timeline_module.css +10 -10
  92. package/package.json +4 -4
  93. package/src/components/accordion/accordion.module.css +4 -4
  94. package/src/components/accordion/accordion.tsx +5 -5
  95. package/src/components/avatar/avatar.module.css +4 -4
  96. package/src/components/avatar/avatar.tsx +4 -4
  97. package/src/components/badge/badge.module.css +8 -8
  98. package/src/components/badge/badge.tsx +2 -2
  99. package/src/components/button/button-group.module.css +2 -2
  100. package/src/components/button/button.module.css +50 -50
  101. package/src/components/button/button.tsx +4 -4
  102. package/src/components/button/combo-button.module.css +7 -7
  103. package/src/components/button/control-buttons.module.css +5 -5
  104. package/src/components/button/control-buttons.tsx +1 -1
  105. package/src/components/button/copy-button.module.css +7 -7
  106. package/src/components/button/copy-button.tsx +5 -5
  107. package/src/components/card/card.module.css +9 -9
  108. package/src/components/card/card.tsx +6 -6
  109. package/src/components/chips/chip.module.css +45 -45
  110. package/src/components/chips/chip.tsx +8 -12
  111. package/src/components/container/container.module.css +4 -4
  112. package/src/components/container/container.tsx +1 -1
  113. package/src/components/dropdown/dropdown.module.css +7 -7
  114. package/src/components/dropdown/dropdown.tsx +8 -8
  115. package/src/components/hamburger/hamburger.module.css +16 -16
  116. package/src/components/hamburger/hamburger.tsx +3 -3
  117. package/src/components/inputs/autocomplete.module.css +42 -42
  118. package/src/components/inputs/autocomplete.tsx +12 -14
  119. package/src/components/inputs/checkbox-group.module.css +1 -1
  120. package/src/components/inputs/checkbox-group.tsx +1 -1
  121. package/src/components/inputs/checkbox.module.css +33 -33
  122. package/src/components/inputs/checkbox.tsx +8 -11
  123. package/src/components/inputs/error-text.module.css +4 -4
  124. package/src/components/inputs/help-text.module.css +4 -4
  125. package/src/components/inputs/help-text.tsx +1 -3
  126. package/src/components/inputs/input-adornment.module.css +3 -3
  127. package/src/components/inputs/input-adornment.tsx +2 -2
  128. package/src/components/inputs/input.module.css +45 -45
  129. package/src/components/inputs/input.tsx +8 -12
  130. package/src/components/inputs/label.module.css +2 -2
  131. package/src/components/inputs/radio-group.module.css +17 -17
  132. package/src/components/inputs/radio-group.tsx +1 -1
  133. package/src/components/inputs/select.module.css +8 -8
  134. package/src/components/inputs/select.tsx +3 -3
  135. package/src/components/inputs/text-area.module.css +4 -4
  136. package/src/components/inputs/text-area.tsx +3 -3
  137. package/src/components/notifications/alert.module.css +16 -16
  138. package/src/components/notifications/alert.tsx +11 -11
  139. package/src/components/notifications/toast.module.css +26 -26
  140. package/src/components/notifications/toast.tsx +7 -9
  141. package/src/components/pager/pagination.module.css +6 -6
  142. package/src/components/pager/pagination.tsx +2 -2
  143. package/src/components/scroll-area/scroll-area.module.css +5 -5
  144. package/src/components/scroll-area/scroll-area.tsx +7 -7
  145. package/src/components/scroll-to-top/scroll-to-top.module.css +9 -9
  146. package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
  147. package/src/components/section/section.module.css +1 -1
  148. package/src/components/section/section.tsx +1 -1
  149. package/src/components/shimmer/shimmer.module.css +6 -6
  150. package/src/components/table/table.module.css +15 -15
  151. package/src/components/table/table.tsx +8 -8
  152. package/src/components/tabs/tabs.module.css +4 -4
  153. package/src/components/tabs/tabs.tsx +4 -4
  154. package/src/components/tooltip/tooltip.module.css +2 -2
  155. package/src/components/tooltip/tooltip.tsx +2 -2
  156. package/src/fields/checkbox/checkbox-field.module.css +4 -0
  157. package/src/fields/checkbox/checkbox-field.tsx +2 -1
  158. package/src/forms/form-context.tsx +10 -2
  159. package/src/icons/source/icon-infonomic.svg +2 -2
  160. package/src/loaders/ellipses.module.css +2 -2
  161. package/src/loaders/ellipses.tsx +2 -2
  162. package/src/loaders/ring.module.css +2 -2
  163. package/src/loaders/ring.tsx +2 -2
  164. package/src/loaders/spinner.module.css +3 -3
  165. package/src/loaders/spinner.tsx +3 -6
  166. package/src/styles/styles.css +12 -0
  167. package/src/widgets/datepicker/datepicker.module.css +15 -15
  168. package/src/widgets/datepicker/datepicker.tsx +11 -21
  169. package/src/widgets/drawer/drawer-container.tsx +1 -1
  170. package/src/widgets/drawer/drawer-content.tsx +1 -1
  171. package/src/widgets/drawer/drawer-header.tsx +1 -1
  172. package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
  173. package/src/widgets/drawer/drawer.module.css +11 -11
  174. package/src/widgets/drawer/drawer.tsx +2 -2
  175. package/src/widgets/modal/modal-actions.tsx +1 -1
  176. package/src/widgets/modal/modal-container.tsx +1 -1
  177. package/src/widgets/modal/modal-content.tsx +1 -1
  178. package/src/widgets/modal/modal-header.tsx +1 -1
  179. package/src/widgets/modal/modal.module.css +12 -12
  180. package/src/widgets/modal/modal.tsx +2 -2
  181. package/src/widgets/search/search.tsx +2 -0
  182. package/src/widgets/timeline/timeline.module.css +10 -10
@@ -54,13 +54,13 @@ export const Input = <_C extends React.ElementType = 'input'>({
54
54
  ...rest
55
55
  }: InputProps) => {
56
56
  return (
57
- <div className={cx('infonomic-input-wrapper', styles['input-wrapper'], inputWrapperClassName)}>
57
+ <div className={cx('byline-input-wrapper', styles['input-wrapper'], inputWrapperClassName)}>
58
58
  {label != null && <Label id={id} htmlFor={id} required={required} label={label} />}
59
- <div className={cx('infonomic-input-container', styles['input-container'])}>
59
+ <div className={cx('byline-input-container', styles['input-container'])}>
60
60
  {startAdornment != null && (
61
61
  <div
62
62
  className={cx(
63
- 'infonomic-input-start-adornment',
63
+ 'byline-input-start-adornment',
64
64
  styles['start-adornment'],
65
65
  styles[variant]
66
66
  )}
@@ -82,10 +82,10 @@ export const Input = <_C extends React.ElementType = 'input'>({
82
82
  aria-errormessage={errorText}
83
83
  aria-describedby={error ? `error-for-${id}` : undefined}
84
84
  className={cx(
85
- 'infonomic-input',
86
- `infonomic-input-${variant}`,
87
- `infonomic-input-${inputSize}`,
88
- `infonomic-input-${intent}`,
85
+ 'byline-input',
86
+ `byline-input-${variant}`,
87
+ `byline-input-${inputSize}`,
88
+ `byline-input-${intent}`,
89
89
  styles.input,
90
90
  styles[variant],
91
91
  styles[inputSize],
@@ -99,11 +99,7 @@ export const Input = <_C extends React.ElementType = 'input'>({
99
99
  />
100
100
  {endAdornment != null && (
101
101
  <div
102
- className={cx(
103
- 'infonomic-input-end-adornment',
104
- styles['end-adornment'],
105
- styles[variant]
106
- )}
102
+ className={cx('byline-input-end-adornment', styles['end-adornment'], styles[variant])}
107
103
  >
108
104
  {endAdornment}
109
105
  </div>
@@ -11,14 +11,14 @@
11
11
 
12
12
  @layer byline-components {
13
13
  .label,
14
- :global(.infonomic-label) {
14
+ :global(.byline-label) {
15
15
  display: block;
16
16
  font-weight: 500;
17
17
  color: var(--text);
18
18
  }
19
19
 
20
20
  .required,
21
- :global(.infonomic-label-required) {
21
+ :global(.byline-label-required) {
22
22
  color: var(--text-danger);
23
23
  }
24
24
  }
@@ -12,28 +12,28 @@
12
12
  /* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
13
13
  @layer byline-components {
14
14
  .column,
15
- :global(.infonomic-radio-group-column) {
15
+ :global(.byline-radio-group-column) {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  gap: var(--gap-2);
19
19
  }
20
20
 
21
21
  .row,
22
- :global(.infonomic-radio-group-row) {
22
+ :global(.byline-radio-group-row) {
23
23
  display: flex;
24
24
  flex-direction: row;
25
25
  gap: var(--gap-2);
26
26
  }
27
27
 
28
28
  .item-container,
29
- :global(.infonomic-radio-group-item-container) {
29
+ :global(.byline-radio-group-item-container) {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  gap: var(--gap-2);
33
33
  }
34
34
 
35
35
  .item,
36
- :global(.infonomic-radio-group-item) {
36
+ :global(.byline-radio-group-item) {
37
37
  all: unset;
38
38
  width: 18px;
39
39
  height: 18px;
@@ -43,13 +43,13 @@
43
43
  }
44
44
 
45
45
  .item[data-disabled],
46
- :global(.infonomic-radio-group-item[data-disabled]) {
46
+ :global(.byline-radio-group-item[data-disabled]) {
47
47
  pointer-events: none;
48
48
  }
49
49
 
50
50
  /* Style for the "checked" state */
51
51
  .indicator[data-checked],
52
- :global(.infonomic-radio-group-indicator[data-checked]) {
52
+ :global(.byline-radio-group-indicator[data-checked]) {
53
53
  animation: radioIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
54
54
  opacity: 1;
55
55
  transform: scale(1);
@@ -57,14 +57,14 @@
57
57
 
58
58
  /* Style for the "unchecked" state */
59
59
  .indicator[data-unchecked],
60
- :global(.infonomic-radio-group-indicator[data-unchecked]) {
60
+ :global(.byline-radio-group-indicator[data-unchecked]) {
61
61
  animation: radioOut 0.2s ease-in;
62
62
  opacity: 0;
63
63
  transform: scale(0.8);
64
64
  }
65
65
 
66
66
  .indicator,
67
- :global(.infonomic-radio-group-indicator) {
67
+ :global(.byline-radio-group-indicator) {
68
68
  display: flex;
69
69
  align-items: center;
70
70
  justify-content: center;
@@ -83,7 +83,7 @@
83
83
  }
84
84
 
85
85
  .label,
86
- :global(.infonomic-radio-group-label) {
86
+ :global(.byline-radio-group-label) {
87
87
  color: var(--foreground);
88
88
  font-size: 15px;
89
89
  line-height: 1;
@@ -91,50 +91,50 @@
91
91
  }
92
92
 
93
93
  .row .label,
94
- :global(.infonomic-radio-group-row) :global(.infonomic-radio-group-label) {
94
+ :global(.byline-radio-group-row) :global(.byline-radio-group-label) {
95
95
  padding-left: 0;
96
96
  padding-right: var(--spacing-16);
97
97
  }
98
98
 
99
99
  /* Intents */
100
100
  .primary,
101
- :global(.infonomic-radio-group-primary) {
101
+ :global(.byline-radio-group-primary) {
102
102
  --radio-border: var(--fill-primary-strong);
103
103
  --radio-indicator-color: var(--fill-primary-strong);
104
104
  }
105
105
 
106
106
  .secondary,
107
- :global(.infonomic-radio-group-secondary) {
107
+ :global(.byline-radio-group-secondary) {
108
108
  --radio-border: var(--fill-secondary-strong);
109
109
  --radio-indicator-color: var(--fill-secondary-strong);
110
110
  }
111
111
 
112
112
  .noeffect,
113
- :global(.infonomic-radio-group-noeffect) {
113
+ :global(.byline-radio-group-noeffect) {
114
114
  --radio-border: var(--fill-noeffect-strong);
115
115
  --radio-indicator-color: var(--fill-noeffect-strong);
116
116
  }
117
117
 
118
118
  .success,
119
- :global(.infonomic-radio-group-success) {
119
+ :global(.byline-radio-group-success) {
120
120
  --radio-border: var(--fill-success-strong);
121
121
  --radio-indicator-color: var(--fill-success-strong);
122
122
  }
123
123
 
124
124
  .info,
125
- :global(.infonomic-radio-group-info) {
125
+ :global(.byline-radio-group-info) {
126
126
  --radio-border: var(--fill-info-strong);
127
127
  --radio-indicator-color: var(--fill-info-strong);
128
128
  }
129
129
 
130
130
  .warning,
131
- :global(.infonomic-radio-group-warning) {
131
+ :global(.byline-radio-group-warning) {
132
132
  --radio-border: var(--fill-warning-strong);
133
133
  --radio-indicator-color: var(--fill-warning-strong);
134
134
  }
135
135
 
136
136
  .danger,
137
- :global(.infonomic-radio-group-danger) {
137
+ :global(.byline-radio-group-danger) {
138
138
  --radio-border: var(--fill-danger-strong);
139
139
  --radio-indicator-color: var(--fill-danger-strong);
140
140
  }
@@ -64,7 +64,7 @@ export const RadioGroup = ({
64
64
  }) => (
65
65
  <RadioGroupPrimitive
66
66
  ref={forwardedRef}
67
- className={cx('infonomic-radio-group', styles[direction], className)}
67
+ className={cx('byline-radio-group', styles[direction], className)}
68
68
  {...props}
69
69
  >
70
70
  {children}
@@ -11,12 +11,12 @@
11
11
 
12
12
  @layer byline-components {
13
13
  .positioner,
14
- :global(.infonomic-select-positioner) {
14
+ :global(.byline-select-positioner) {
15
15
  z-index: 50;
16
16
  }
17
17
 
18
18
  .popup,
19
- :global(.infonomic-select-popup) {
19
+ :global(.byline-select-popup) {
20
20
  z-index: 50;
21
21
  margin-top: 2px;
22
22
  border: 1px solid var(--surface-panel-border);
@@ -47,12 +47,12 @@
47
47
  }
48
48
 
49
49
  .list,
50
- :global(.infonomic-select-list) {
50
+ :global(.byline-select-list) {
51
51
  z-index: 50;
52
52
  }
53
53
 
54
54
  .scroll-arrow,
55
- :global(.infonomic-select-scroll-arrow) {
55
+ :global(.byline-select-scroll-arrow) {
56
56
  display: flex;
57
57
  align-items: center;
58
58
  justify-content: center;
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  .select-item,
68
- :global(.infonomic-select-item) {
68
+ :global(.byline-select-item) {
69
69
  position: relative;
70
70
  user-select: none;
71
71
  color: var(--surface-item-text);
@@ -81,20 +81,20 @@
81
81
  }
82
82
 
83
83
  .select-item[data-disabled],
84
- :global(.infonomic-select-item[data-disabled]) {
84
+ :global(.byline-select-item[data-disabled]) {
85
85
  color: var(--surface-item-text-disabled);
86
86
  pointer-events: none;
87
87
  }
88
88
 
89
89
  .select-item[data-highlighted],
90
- :global(.infonomic-select-item[data-highlighted]) {
90
+ :global(.byline-select-item[data-highlighted]) {
91
91
  outline: none;
92
92
  background-color: var(--surface-item-hover);
93
93
  color: var(--surface-item-text-hover);
94
94
  }
95
95
 
96
96
  .select-item-indicator,
97
- :global(.infonomic-select-item-indicator) {
97
+ :global(.byline-select-item-indicator) {
98
98
  position: absolute;
99
99
  left: 0;
100
100
  width: 24px;
@@ -56,7 +56,7 @@ export function Select<Value extends string | number = string>({
56
56
  ...rest
57
57
  }: SelectProps<Value>): React.JSX.Element {
58
58
  return (
59
- <div className={cx('infonomic-select-container', containerClassName)}>
59
+ <div className={cx('byline-select-container', containerClassName)}>
60
60
  <SelectPrimitive.Root<Value> items={items} {...rest}>
61
61
  <SelectPrimitive.Trigger
62
62
  aria-label={ariaLabel ?? 'Select'}
@@ -117,12 +117,12 @@ export const SelectItem = ({
117
117
  }) => {
118
118
  return (
119
119
  <SelectPrimitive.Item
120
- className={cx('infonomic-select-item', styles['select-item'], className)}
120
+ className={cx('byline-select-item', styles['select-item'], className)}
121
121
  {...props}
122
122
  ref={forwardedRef}
123
123
  >
124
124
  <SelectPrimitive.ItemIndicator
125
- className={cx('infonomic-select-item-indicator', styles['select-item-indicator'])}
125
+ className={cx('byline-select-item-indicator', styles['select-item-indicator'])}
126
126
  >
127
127
  <CheckIcon />
128
128
  </SelectPrimitive.ItemIndicator>
@@ -11,22 +11,22 @@
11
11
 
12
12
  @layer byline-components {
13
13
  .text-area,
14
- :global(.infonomic-text-area) {
14
+ :global(.byline-text-area) {
15
15
  font-size: 1rem;
16
16
  width: 100%;
17
17
  padding: 0.5rem;
18
18
  }
19
19
 
20
20
  .underlined,
21
- :global(.infonomic-text-area--underlined) {
21
+ :global(.byline-text-area--underlined) {
22
22
  padding-left: 0;
23
23
  padding-right: 0;
24
24
  }
25
25
 
26
26
  .underlined:focus,
27
27
  .underlined:active,
28
- :global(.infonomic-text-area--underlined):focus,
29
- :global(.infonomic-text-area--underlined):active {
28
+ :global(.byline-text-area--underlined):focus,
29
+ :global(.byline-text-area--underlined):active {
30
30
  outline: none;
31
31
  }
32
32
 
@@ -60,9 +60,9 @@ export const TextArea = function TextArea({
60
60
  aria-errormessage={errorText}
61
61
  aria-describedby={error ? `error-for-${id}` : undefined}
62
62
  className={cx(
63
- 'infonomic-text-area',
64
- `infonomic-text-area-${variant}`,
65
- `infonomic-text-area-${intent}`,
63
+ 'byline-text-area',
64
+ `byline-text-area-${variant}`,
65
+ `byline-text-area-${intent}`,
66
66
  inputStyles.input,
67
67
  inputStyles[variant],
68
68
  inputStyles[intent],
@@ -11,7 +11,7 @@
11
11
 
12
12
  @layer byline-components {
13
13
  .alert,
14
- :global(.infonomic-alert) {
14
+ :global(.byline-alert) {
15
15
  display: flex;
16
16
  align-items: start;
17
17
  width: 100%;
@@ -28,14 +28,14 @@
28
28
  }
29
29
 
30
30
  .alert-with-title,
31
- :global(.infonomic-alert-with-title) {
31
+ :global(.byline-alert-with-title) {
32
32
  display: flex;
33
33
  flex-direction: column;
34
34
  width: 100%;
35
35
  }
36
36
 
37
37
  .icon,
38
- :global(.infonomic-alert-icon) {
38
+ :global(.byline-alert-icon) {
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: center;
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .close,
49
- :global(.infonomic-alert-close) {
49
+ :global(.byline-alert-close) {
50
50
  display: flex;
51
51
  align-items: center;
52
52
  justify-content: center;
@@ -61,13 +61,13 @@
61
61
  }
62
62
 
63
63
  .fade,
64
- :global(.infonomic-alert-fade) {
64
+ :global(.byline-alert-fade) {
65
65
  opacity: 0;
66
66
  transition: opacity 0.4s ease-in-out;
67
67
  }
68
68
 
69
69
  .header,
70
- :global(.infonomic-alert-header) {
70
+ :global(.byline-alert-header) {
71
71
  display: flex;
72
72
  align-items: start;
73
73
  width: 100%;
@@ -76,7 +76,7 @@
76
76
  }
77
77
 
78
78
  .title,
79
- :global(.infonomic-alert-title) {
79
+ :global(.byline-alert-title) {
80
80
  display: flex;
81
81
  font-weight: bold;
82
82
  font-size: 1.2rem;
@@ -85,55 +85,55 @@
85
85
  }
86
86
 
87
87
  .content,
88
- :global(.infonomic-alert-content) {
88
+ :global(.byline-alert-content) {
89
89
  padding-top: 1px;
90
90
  font-size: var(--font-size-sm);
91
91
  }
92
92
 
93
93
  .content:first-child,
94
- :global(.infonomic-alert-content:first-child) {
94
+ :global(.byline-alert-content:first-child) {
95
95
  margin-top: 0;
96
96
  }
97
97
 
98
98
  /* Intents */
99
99
  .primary,
100
- :global(.infonomic-alert-primary) {
100
+ :global(.byline-alert-primary) {
101
101
  --alert-border: var(--stroke-primary);
102
102
  --alert-background: var(--fill-primary-weak);
103
103
  }
104
104
 
105
105
  .secondary,
106
- :global(.infonomic-alert-secondary) {
106
+ :global(.byline-alert-secondary) {
107
107
  --alert-border: var(--stroke-secondary);
108
108
  --alert-background: var(--fill-secondary-weak);
109
109
  }
110
110
 
111
111
  .noeffect,
112
- :global(.infonomic-alert-noeffect) {
112
+ :global(.byline-alert-noeffect) {
113
113
  --alert-border: var(--stroke-noeffect);
114
114
  --alert-background: var(--fill-noeffect-weak);
115
115
  }
116
116
 
117
117
  .success,
118
- :global(.infonomic-alert-success) {
118
+ :global(.byline-alert-success) {
119
119
  --alert-border: var(--stroke-success);
120
120
  --alert-background: var(--fill-success-weak);
121
121
  }
122
122
 
123
123
  .info,
124
- :global(.infonomic-alert-info) {
124
+ :global(.byline-alert-info) {
125
125
  --alert-border: var(--stroke-info);
126
126
  --alert-background: var(--fill-info-weak);
127
127
  }
128
128
 
129
129
  .warning,
130
- :global(.infonomic-alert-warning) {
130
+ :global(.byline-alert-warning) {
131
131
  --alert-border: var(--stroke-warning);
132
132
  --alert-background: var(--fill-warning-weak);
133
133
  }
134
134
 
135
135
  .danger,
136
- :global(.infonomic-alert-danger) {
136
+ :global(.byline-alert-danger) {
137
137
  --alert-border: var(--stroke-danger);
138
138
  --alert-background: var(--fill-danger-weak);
139
139
  }
@@ -66,8 +66,8 @@ export const Alert = function Alert({
66
66
  <div
67
67
  ref={ref}
68
68
  className={cx(
69
- 'infonomic-alert',
70
- `infonomic-alert-${intent}`,
69
+ 'byline-alert',
70
+ `byline-alert-${intent}`,
71
71
  styles.alert,
72
72
  styles[intent],
73
73
  className,
@@ -78,10 +78,10 @@ export const Alert = function Alert({
78
78
  {...rest}
79
79
  >
80
80
  {title != null ? (
81
- <div className={cx('infonomic-alert-with-title', styles['alert-with-title'])}>
82
- <div className={cx('infonomic-alert-header', styles.header)}>
83
- {icon && <Icon className={cx('infonomic-alert-icon', styles.icon)} />}
84
- <div className={cx('infonomic-alert-title', styles.title)}>
81
+ <div className={cx('byline-alert-with-title', styles['alert-with-title'])}>
82
+ <div className={cx('byline-alert-header', styles.header)}>
83
+ {icon && <Icon className={cx('byline-alert-icon', styles.icon)} />}
84
+ <div className={cx('byline-alert-title', styles.title)}>
85
85
  <span>{title}</span>
86
86
  </div>
87
87
  {close === true && (
@@ -89,7 +89,7 @@ export const Alert = function Alert({
89
89
  intent={intent}
90
90
  variant="filled"
91
91
  aria-label="Close"
92
- className={cx('infonomic-alert-close', styles.close)}
92
+ className={cx('byline-alert-close', styles.close)}
93
93
  type="button"
94
94
  onClick={handleOnClose}
95
95
  {...rest}
@@ -98,18 +98,18 @@ export const Alert = function Alert({
98
98
  </Button>
99
99
  )}
100
100
  </div>
101
- <div className={cx('infonomic-alert-content', styles.content)}>{children}</div>
101
+ <div className={cx('byline-alert-content', styles.content)}>{children}</div>
102
102
  </div>
103
103
  ) : (
104
104
  <>
105
- {icon && <Icon className={cx('infonomic-alert-icon', styles.icon)} />}
106
- <div className={cx('infonomic-alert-content', styles.content)}>{children}</div>
105
+ {icon && <Icon className={cx('byline-alert-icon', styles.icon)} />}
106
+ <div className={cx('byline-alert-content', styles.content)}>{children}</div>
107
107
  {close === true && (
108
108
  <Button
109
109
  intent={intent}
110
110
  variant="filled"
111
111
  aria-label="Close"
112
- className={cx('infonomic-alert-close', styles.close)}
112
+ className={cx('byline-alert-close', styles.close)}
113
113
  type="button"
114
114
  onClick={handleOnClose}
115
115
  {...rest}