@byline/ui 1.10.2 → 1.10.3

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 +46 -42
  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 +41 -38
  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 +25 -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 +162 -86
  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 +126 -71
  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 +38 -34
  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 +41 -28
  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 +18 -8
  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
@@ -10,7 +10,7 @@
10
10
  byline-utilities;
11
11
  @layer byline-components {
12
12
  .combo-button-wrapper,
13
- :global(.infonomic-combo-button-wrapper) {
13
+ :global(.byline-combo-button-wrapper) {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  gap: 0.075rem;
@@ -22,13 +22,13 @@
22
22
 
23
23
  .combo-button-wrapper:focus-within,
24
24
  .combo-button-wrapper:has([data-popup-open]),
25
- :global(.infonomic-combo-button-wrapper):focus-within,
26
- :global(.infonomic-combo-button-wrapper):has([data-popup-open]) {
25
+ :global(.byline-combo-button-wrapper):focus-within,
26
+ :global(.byline-combo-button-wrapper):has([data-popup-open]) {
27
27
  outline-color: var(--ring-color);
28
28
  }
29
29
 
30
30
  .combo-button-button,
31
- :global(.infonomic-combo-button-button) {
31
+ :global(.byline-combo-button-button) {
32
32
  border-bottom-right-radius: 0;
33
33
  border-top-right-radius: 0;
34
34
  }
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  .combo-button-trigger,
42
- :global(.infonomic-combo-button-trigger) {
42
+ :global(.byline-combo-button-trigger) {
43
43
  border-bottom-left-radius: 0;
44
44
  border-top-left-radius: 0;
45
45
  }
@@ -50,11 +50,11 @@
50
50
  }
51
51
 
52
52
  .combo-button-options,
53
- :global(.infonomic-combo-button-options) {
53
+ :global(.byline-combo-button-options) {
54
54
  min-width: 120px;
55
55
  }
56
56
 
57
57
  .combo-button-options-item,
58
- :global(.infonomic-combo-button-options-item) {
58
+ :global(.byline-combo-button-options-item) {
59
59
  }
60
60
  }
@@ -12,9 +12,9 @@
12
12
  .stop-button,
13
13
  .play-button,
14
14
  .directional-button,
15
- :global(.infonomic-stop-button),
16
- :global(.infonomic-play-button),
17
- :global(.infonomic-directional-button) {
15
+ :global(.byline-stop-button),
16
+ :global(.byline-play-button),
17
+ :global(.byline-directional-button) {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: center;
@@ -136,7 +136,7 @@
136
136
  transform: translateX(5px);
137
137
  }
138
138
 
139
- /* No dark theme overrides needed!
140
- * Tokens automatically switch in .dark and respect .not-dark
139
+ /* No dark theme overrides needed!
140
+ * Tokens automatically switch in .dark and respect .not-dark
141
141
  */
142
142
  }
@@ -42,7 +42,7 @@ export const DirectionalButton = ({
42
42
  type="button"
43
43
  aria-label={direction}
44
44
  className={cx(
45
- 'infonomic-control-button',
45
+ 'byline-control-button',
46
46
  direction,
47
47
  size,
48
48
  styles['directional-button'],
@@ -11,12 +11,12 @@
11
11
 
12
12
  @layer byline-components {
13
13
  .copy-button-container,
14
- :global(.infonomic-copy-button-container) {
14
+ :global(.byline-copy-button-container) {
15
15
  display: inline-block;
16
16
  }
17
17
 
18
18
  .copy-button svg,
19
- :global(.infonomic-copy-button) svg {
19
+ :global(.byline-copy-button) svg {
20
20
  width: 90%;
21
21
  height: 90%;
22
22
  display: block;
@@ -24,7 +24,7 @@
24
24
 
25
25
  /* Sizes */
26
26
  .xs,
27
- :global(.infonomic-copy-button-xs) {
27
+ :global(.byline-copy-button-xs) {
28
28
  width: 26px;
29
29
  height: 26px;
30
30
  min-height: 26px;
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .sm,
35
- :global(.infonomic-copy-button-sm) {
35
+ :global(.byline-copy-button-sm) {
36
36
  width: 32px;
37
37
  height: 32px;
38
38
  min-height: 32px;
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  .md,
43
- :global(.infonomic-copy-button-md) {
43
+ :global(.byline-copy-button-md) {
44
44
  width: 38px;
45
45
  height: 38px;
46
46
  min-height: 38px;
@@ -48,7 +48,7 @@
48
48
  }
49
49
 
50
50
  .lg,
51
- :global(.infonomic-copy-button-lg) {
51
+ :global(.byline-copy-button-lg) {
52
52
  width: 46px;
53
53
  height: 46px;
54
54
  min-height: 46px;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .xl,
59
- :global(.infonomic-copy-button-xl) {
59
+ :global(.byline-copy-button-xl) {
60
60
  width: 54px;
61
61
  height: 54px;
62
62
  min-height: 54px;
@@ -67,7 +67,7 @@ export function CopyButton({
67
67
  return (
68
68
  <div
69
69
  className={cx(
70
- 'infonomic-copy-button-container',
70
+ 'byline-copy-button-container',
71
71
  styles['copy-button-container'],
72
72
  containerClassName
73
73
  )}
@@ -91,10 +91,10 @@ export function CopyButton({
91
91
  fullWidth={fullWidth}
92
92
  ripple={ripple}
93
93
  className={cx(
94
- 'infonomic-copy-button',
95
- `infonomic-copy-button-${variant}`,
96
- `infonomic-copy-button-${size}`,
97
- `infonomic-copy-button-${intent}`,
94
+ 'byline-copy-button',
95
+ `byline-copy-button-${variant}`,
96
+ `byline-copy-button-${size}`,
97
+ `byline-copy-button-${intent}`,
98
98
  styles[size],
99
99
  className
100
100
  )}
@@ -11,7 +11,7 @@
11
11
 
12
12
  @layer byline-components {
13
13
  .card,
14
- :global(.infonomic-card) {
14
+ :global(.byline-card) {
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  text-decoration: none;
@@ -27,25 +27,25 @@
27
27
  }
28
28
 
29
29
  .card-hover,
30
- :global(.infonomic-card-hover) {
30
+ :global(.byline-card-hover) {
31
31
  transition: background 0.2s ease-in-out;
32
32
  }
33
33
 
34
34
  .card-hover:hover,
35
- :global(.infonomic-card-hover):hover {
35
+ :global(.byline-card-hover):hover {
36
36
  background: oklch(from var(--theme-50) 1 0.03 h);
37
37
  }
38
38
 
39
39
  :global(.dark),
40
40
  :global([data-theme="dark"]) {
41
41
  .card-hover:hover,
42
- :global(.infonomic-card-hover):hover {
42
+ :global(.byline-card-hover):hover {
43
43
  background: oklch(from var(--canvas-800) 0.2 c h);
44
44
  }
45
45
  }
46
46
 
47
47
  .card-header,
48
- :global(.infonomic-card-header) {
48
+ :global(.byline-card-header) {
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  gap: 0.5rem;
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  .card-title,
56
- :global(.infonomic-card-title) {
56
+ :global(.byline-card-title) {
57
57
  color: var(--headings);
58
58
  font-size: 1.8rem;
59
59
  font-weight: bold;
@@ -62,20 +62,20 @@
62
62
  }
63
63
 
64
64
  .card-description,
65
- :global(.infonomic-card-description) {
65
+ :global(.byline-card-description) {
66
66
  font-size: 0.875rem;
67
67
  color: var(--muted);
68
68
  }
69
69
 
70
70
  .card-content,
71
- :global(.infonomic-card-content) {
71
+ :global(.byline-card-content) {
72
72
  flex: 1;
73
73
  padding: 1rem;
74
74
  padding-top: 0;
75
75
  }
76
76
 
77
77
  .card-footer,
78
- :global(.infonomic-card-footer) {
78
+ :global(.byline-card-footer) {
79
79
  display: flex;
80
80
  align-items: center;
81
81
  padding: 1rem;
@@ -14,7 +14,7 @@ export type CardProps = useRender.ComponentProps<'div'> & {
14
14
 
15
15
  const Card = ({ className, hover, children, render, ref, ...rest }: CardProps) => {
16
16
  const hoverClasses = hover != null && hover === true ? styles['card-hover'] : undefined
17
- const classes = cx('infonomic-card', styles.card, hoverClasses, className)
17
+ const classes = cx('byline-card', styles.card, hoverClasses, className)
18
18
 
19
19
  const element = useRender({
20
20
  defaultTagName: 'div',
@@ -39,7 +39,7 @@ interface OtherProps extends React.HTMLAttributes<HTMLDivElement> {
39
39
  const Header = ({ className, ref, ...props }: OtherProps) => (
40
40
  <div
41
41
  ref={ref}
42
- className={cx('infonomic-card-header', styles['card-header'], className)}
42
+ className={cx('byline-card-header', styles['card-header'], className)}
43
43
  {...props}
44
44
  />
45
45
  )
@@ -49,7 +49,7 @@ Header.displayName = 'CardHeader'
49
49
  const Title = ({ className, ref, ...props }: OtherProps) => (
50
50
  <div
51
51
  ref={ref as React.Ref<HTMLDivElement>}
52
- className={cx('infonomic-card-title', styles['card-title'], className)}
52
+ className={cx('byline-card-title', styles['card-title'], className)}
53
53
  {...props}
54
54
  />
55
55
  )
@@ -58,7 +58,7 @@ Title.displayName = 'CardTitle'
58
58
  const Description = ({ className, ref, ...props }: OtherProps) => (
59
59
  <div
60
60
  ref={ref}
61
- className={cx('infonomic-card-description', styles['card-description'], className)}
61
+ className={cx('byline-card-description', styles['card-description'], className)}
62
62
  {...props}
63
63
  />
64
64
  )
@@ -67,7 +67,7 @@ Description.displayName = 'CardDescription'
67
67
  const Content = ({ className, ref, ...props }: OtherProps) => (
68
68
  <div
69
69
  ref={ref}
70
- className={cx('infonomic-card-content', styles['card-content'], className)}
70
+ className={cx('byline-card-content', styles['card-content'], className)}
71
71
  {...props}
72
72
  />
73
73
  )
@@ -76,7 +76,7 @@ Content.displayName = 'CardContent'
76
76
  const Footer = ({ className, ref, ...props }: OtherProps) => (
77
77
  <div
78
78
  ref={ref}
79
- className={cx('infonomic-card-footer', styles['card-footer'], className)}
79
+ className={cx('byline-card-footer', styles['card-footer'], className)}
80
80
  {...props}
81
81
  />
82
82
  )