@byline/ui 4.11.0 → 4.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.
Files changed (233) hide show
  1. package/dist/components/accordion/accordion.js +6 -6
  2. package/dist/components/avatar/avatar.js +5 -5
  3. package/dist/components/badge/badge.js +2 -2
  4. package/dist/components/button/button-group.js +2 -2
  5. package/dist/components/button/button.js +2 -2
  6. package/dist/components/button/combo-button.js +8 -8
  7. package/dist/components/button/control-buttons.js +4 -4
  8. package/dist/components/button/copy-button.js +3 -3
  9. package/dist/components/button/icon-button.js +2 -2
  10. package/dist/components/card/card.js +7 -7
  11. package/dist/components/chips/chip.js +6 -6
  12. package/dist/components/container/container.js +2 -2
  13. package/dist/components/dropdown/dropdown.js +9 -9
  14. package/dist/components/hamburger/hamburger.js +4 -4
  15. package/dist/components/inputs/autocomplete.js +10 -10
  16. package/dist/components/inputs/calendar.js +24 -24
  17. package/dist/components/inputs/checkbox-group.js +2 -2
  18. package/dist/components/inputs/checkbox.js +6 -6
  19. package/dist/components/inputs/error-text.js +2 -2
  20. package/dist/components/inputs/help-text.js +2 -2
  21. package/dist/components/inputs/input-adornment.js +2 -2
  22. package/dist/components/inputs/input.js +6 -6
  23. package/dist/components/inputs/label.js +2 -2
  24. package/dist/components/inputs/radio-group.js +3 -3
  25. package/dist/components/inputs/select.js +6 -6
  26. package/dist/components/inputs/text-area.js +3 -3
  27. package/dist/components/notifications/alert.js +11 -11
  28. package/dist/components/notifications/toast.js +8 -8
  29. package/dist/components/pager/ellipses.js +2 -2
  30. package/dist/components/pager/first-button.js +2 -2
  31. package/dist/components/pager/last-button.js +2 -2
  32. package/dist/components/pager/next-button.js +2 -2
  33. package/dist/components/pager/number-button.js +3 -3
  34. package/dist/components/pager/pagination.js +3 -3
  35. package/dist/components/pager/previous-button.js +2 -2
  36. package/dist/components/scroll-area/scroll-area.js +8 -8
  37. package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
  38. package/dist/components/section/section.js +2 -2
  39. package/dist/components/shimmer/shimmer.js +4 -4
  40. package/dist/components/table/table.js +10 -10
  41. package/dist/components/tabs/tabs.js +5 -5
  42. package/dist/components/tooltip/tooltip.js +3 -3
  43. package/dist/dnd/draggable-sortable/demo/draggable-list-demo.js +5 -5
  44. package/dist/icons/activity-icon.js +3 -3
  45. package/dist/icons/ai-icon.js +3 -3
  46. package/dist/icons/byline-icon.js +3 -3
  47. package/dist/icons/calendar-icon.js +3 -3
  48. package/dist/icons/check-icon.js +3 -3
  49. package/dist/icons/chevron-down-icon.js +3 -3
  50. package/dist/icons/chevron-left-double-icon.js +3 -3
  51. package/dist/icons/chevron-left-icon.js +3 -3
  52. package/dist/icons/chevron-right-double-icon.js +3 -3
  53. package/dist/icons/chevron-right-icon.js +3 -3
  54. package/dist/icons/chevron-up-icon.js +3 -3
  55. package/dist/icons/chevrons-up-down.js +3 -3
  56. package/dist/icons/close-icon.js +3 -3
  57. package/dist/icons/copy-icon.js +3 -3
  58. package/dist/icons/danger-icon.js +3 -3
  59. package/dist/icons/dashboard-icon.js +3 -3
  60. package/dist/icons/delete-icon.js +3 -3
  61. package/dist/icons/document-icon.js +3 -3
  62. package/dist/icons/download-icon.js +3 -3
  63. package/dist/icons/edit-icon.js +3 -3
  64. package/dist/icons/ellipsis-icon.js +3 -3
  65. package/dist/icons/email-icon.js +3 -3
  66. package/dist/icons/external-link-icon.js +3 -3
  67. package/dist/icons/eye-closed-icon.js +3 -3
  68. package/dist/icons/eye-open-icon.js +3 -3
  69. package/dist/icons/github-icon.js +3 -3
  70. package/dist/icons/globe-icon.js +3 -3
  71. package/dist/icons/google-icon.js +2 -2
  72. package/dist/icons/gripper-vertical-icon.js +3 -3
  73. package/dist/icons/history-icon.js +3 -3
  74. package/dist/icons/home-icon.js +3 -3
  75. package/dist/icons/icon-element.js +2 -2
  76. package/dist/icons/info-icon.js +3 -3
  77. package/dist/icons/infonomic-icon.js +3 -3
  78. package/dist/icons/light-icon.js +3 -3
  79. package/dist/icons/location-pin-icon.js +3 -3
  80. package/dist/icons/markdown-icon.js +3 -3
  81. package/dist/icons/moon-icon.js +3 -3
  82. package/dist/icons/plus-icon.js +3 -3
  83. package/dist/icons/primary-icon.js +3 -3
  84. package/dist/icons/refresh-icon.js +3 -3
  85. package/dist/icons/return-icon.js +3 -3
  86. package/dist/icons/roles-icon.js +3 -3
  87. package/dist/icons/search-icon.js +3 -3
  88. package/dist/icons/search-menu-icon.js +3 -3
  89. package/dist/icons/settings-gear-icon.js +3 -3
  90. package/dist/icons/settings-sliders-icon.js +3 -3
  91. package/dist/icons/sign-out-icon.js +3 -3
  92. package/dist/icons/stop-icon.js +3 -3
  93. package/dist/icons/stopwatch-icon.js +3 -3
  94. package/dist/icons/success-icon.js +3 -3
  95. package/dist/icons/user-icon.js +3 -3
  96. package/dist/icons/users-icon.js +3 -3
  97. package/dist/icons/video-icon.js +3 -3
  98. package/dist/icons/wallet-icon.js +3 -3
  99. package/dist/icons/warning-icon.js +3 -3
  100. package/dist/icons/x-icon.js +3 -3
  101. package/dist/loaders/ellipses.js +3 -3
  102. package/dist/loaders/ring.js +3 -3
  103. package/dist/loaders/spinner.js +4 -4
  104. package/dist/widgets/datepicker/datepicker.js +12 -12
  105. package/dist/widgets/drawer/drawer-container.js +2 -2
  106. package/dist/widgets/drawer/drawer-content.js +2 -2
  107. package/dist/widgets/drawer/drawer-header.js +2 -2
  108. package/dist/widgets/drawer/drawer-top-actions.js +2 -2
  109. package/dist/widgets/drawer/drawer.js +4 -4
  110. package/dist/widgets/image-lightbox/image-lightbox.js +9 -9
  111. package/dist/widgets/modal/modal-actions.js +2 -2
  112. package/dist/widgets/modal/modal-container.js +2 -2
  113. package/dist/widgets/modal/modal-content.js +2 -2
  114. package/dist/widgets/modal/modal-header.js +2 -2
  115. package/dist/widgets/modal/modal.js +3 -3
  116. package/dist/widgets/timeline/timeline.js +8 -8
  117. package/package.json +2 -2
  118. package/src/components/accordion/accordion.tsx +1 -1
  119. package/src/components/avatar/avatar.tsx +1 -1
  120. package/src/components/badge/badge.tsx +1 -1
  121. package/src/components/button/button-group.tsx +1 -1
  122. package/src/components/button/button.tsx +1 -1
  123. package/src/components/button/combo-button.tsx +1 -1
  124. package/src/components/button/control-buttons.tsx +1 -1
  125. package/src/components/button/copy-button.tsx +1 -1
  126. package/src/components/button/icon-button.tsx +1 -1
  127. package/src/components/card/card.tsx +1 -1
  128. package/src/components/chips/chip.tsx +1 -1
  129. package/src/components/container/container.tsx +1 -1
  130. package/src/components/dropdown/dropdown.tsx +1 -1
  131. package/src/components/hamburger/hamburger.tsx +1 -1
  132. package/src/components/inputs/autocomplete.tsx +1 -1
  133. package/src/components/inputs/calendar.tsx +1 -1
  134. package/src/components/inputs/checkbox-group.tsx +1 -1
  135. package/src/components/inputs/checkbox.tsx +1 -1
  136. package/src/components/inputs/error-text.tsx +1 -1
  137. package/src/components/inputs/help-text.tsx +1 -1
  138. package/src/components/inputs/input-adornment.tsx +1 -1
  139. package/src/components/inputs/input.tsx +1 -1
  140. package/src/components/inputs/label.tsx +1 -1
  141. package/src/components/inputs/radio-group.tsx +1 -1
  142. package/src/components/inputs/select.tsx +1 -1
  143. package/src/components/inputs/text-area.tsx +1 -1
  144. package/src/components/notifications/alert.tsx +1 -1
  145. package/src/components/notifications/toast.tsx +1 -1
  146. package/src/components/pager/ellipses.tsx +1 -1
  147. package/src/components/pager/first-button.tsx +1 -1
  148. package/src/components/pager/last-button.tsx +1 -1
  149. package/src/components/pager/next-button.tsx +1 -1
  150. package/src/components/pager/number-button.tsx +1 -1
  151. package/src/components/pager/pagination.tsx +1 -1
  152. package/src/components/pager/previous-button.tsx +1 -1
  153. package/src/components/scroll-area/scroll-area.tsx +1 -1
  154. package/src/components/scroll-to-top/scroll-to-top.tsx +1 -1
  155. package/src/components/section/section.tsx +1 -1
  156. package/src/components/shimmer/shimmer.tsx +1 -1
  157. package/src/components/table/table.tsx +1 -1
  158. package/src/components/tabs/tabs.tsx +1 -1
  159. package/src/components/tooltip/tooltip.tsx +1 -1
  160. package/src/dnd/draggable-sortable/demo/draggable-list-demo.tsx +1 -1
  161. package/src/icons/activity-icon.tsx +1 -1
  162. package/src/icons/ai-icon.tsx +1 -1
  163. package/src/icons/byline-icon.tsx +1 -1
  164. package/src/icons/calendar-icon.tsx +1 -1
  165. package/src/icons/check-icon.tsx +1 -1
  166. package/src/icons/chevron-down-icon.tsx +1 -1
  167. package/src/icons/chevron-left-double-icon.tsx +1 -1
  168. package/src/icons/chevron-left-icon.tsx +1 -1
  169. package/src/icons/chevron-right-double-icon.tsx +1 -1
  170. package/src/icons/chevron-right-icon.tsx +1 -1
  171. package/src/icons/chevron-up-icon.tsx +1 -1
  172. package/src/icons/chevrons-up-down.tsx +1 -1
  173. package/src/icons/close-icon.tsx +1 -1
  174. package/src/icons/copy-icon.tsx +1 -1
  175. package/src/icons/danger-icon.tsx +1 -1
  176. package/src/icons/dashboard-icon.tsx +1 -1
  177. package/src/icons/delete-icon.tsx +1 -1
  178. package/src/icons/document-icon.tsx +1 -1
  179. package/src/icons/download-icon.tsx +1 -1
  180. package/src/icons/edit-icon.tsx +1 -1
  181. package/src/icons/ellipsis-icon.tsx +1 -1
  182. package/src/icons/email-icon.tsx +1 -1
  183. package/src/icons/external-link-icon.tsx +1 -1
  184. package/src/icons/eye-closed-icon.tsx +1 -1
  185. package/src/icons/eye-open-icon.tsx +1 -1
  186. package/src/icons/github-icon.tsx +1 -1
  187. package/src/icons/globe-icon.tsx +1 -1
  188. package/src/icons/google-icon.tsx +1 -1
  189. package/src/icons/gripper-vertical-icon.tsx +1 -1
  190. package/src/icons/history-icon.tsx +1 -1
  191. package/src/icons/home-icon.tsx +1 -1
  192. package/src/icons/icon-element.tsx +1 -1
  193. package/src/icons/info-icon.tsx +1 -1
  194. package/src/icons/infonomic-icon.tsx +1 -1
  195. package/src/icons/light-icon.tsx +1 -1
  196. package/src/icons/location-pin-icon.tsx +1 -1
  197. package/src/icons/markdown-icon.tsx +1 -1
  198. package/src/icons/moon-icon.tsx +1 -1
  199. package/src/icons/plus-icon.tsx +1 -1
  200. package/src/icons/primary-icon.tsx +1 -1
  201. package/src/icons/refresh-icon.tsx +1 -1
  202. package/src/icons/return-icon.tsx +1 -1
  203. package/src/icons/roles-icon.tsx +1 -1
  204. package/src/icons/search-icon.tsx +1 -1
  205. package/src/icons/search-menu-icon.tsx +1 -1
  206. package/src/icons/settings-gear-icon.tsx +1 -1
  207. package/src/icons/settings-sliders-icon.tsx +1 -1
  208. package/src/icons/sign-out-icon.tsx +1 -1
  209. package/src/icons/stop-icon.tsx +1 -1
  210. package/src/icons/stopwatch-icon.tsx +1 -1
  211. package/src/icons/success-icon.tsx +1 -1
  212. package/src/icons/user-icon.tsx +1 -1
  213. package/src/icons/users-icon.tsx +1 -1
  214. package/src/icons/video-icon.tsx +1 -1
  215. package/src/icons/wallet-icon.tsx +1 -1
  216. package/src/icons/warning-icon.tsx +1 -1
  217. package/src/icons/x-icon.tsx +1 -1
  218. package/src/loaders/ellipses.tsx +1 -1
  219. package/src/loaders/ring.tsx +1 -1
  220. package/src/loaders/spinner.tsx +1 -1
  221. package/src/widgets/datepicker/datepicker.tsx +1 -1
  222. package/src/widgets/drawer/drawer-container.tsx +1 -1
  223. package/src/widgets/drawer/drawer-content.tsx +1 -1
  224. package/src/widgets/drawer/drawer-header.tsx +1 -1
  225. package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
  226. package/src/widgets/drawer/drawer.tsx +1 -1
  227. package/src/widgets/image-lightbox/image-lightbox.tsx +1 -1
  228. package/src/widgets/modal/modal-actions.tsx +1 -1
  229. package/src/widgets/modal/modal-container.tsx +1 -1
  230. package/src/widgets/modal/modal-content.tsx +1 -1
  231. package/src/widgets/modal/modal-header.tsx +1 -1
  232. package/src/widgets/modal/modal.tsx +1 -1
  233. package/src/widgets/timeline/timeline.tsx +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import classnames from "classnames";
2
+ import clsx from "clsx";
3
3
  import ring_module from "./ring.module.js";
4
4
  function LoaderRing({ color, size, className, style, ...rest }) {
5
5
  const ringStyle = {
@@ -10,10 +10,10 @@ function LoaderRing({ color, size, className, style, ...rest }) {
10
10
  const circles = [
11
11
  ...Array(4)
12
12
  ].map((_, index)=>/*#__PURE__*/ jsx("div", {
13
- className: classnames('byline-loader-ring-arc', ring_module["loader-ring-arc"])
13
+ className: clsx('byline-loader-ring-arc', ring_module["loader-ring-arc"])
14
14
  }, index));
15
15
  return /*#__PURE__*/ jsx("div", {
16
- className: classnames('byline-loader-ring', ring_module["loader-ring"], className),
16
+ className: clsx('byline-loader-ring', ring_module["loader-ring"], className),
17
17
  style: ringStyle,
18
18
  ...rest,
19
19
  children: circles
@@ -1,13 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import classnames from "classnames";
2
+ import clsx from "clsx";
3
3
  import spinner_module from "./spinner.module.js";
4
4
  function LoaderSpinner({ color, size, className, style, ...rest }) {
5
5
  const circles = [
6
6
  ...Array(12)
7
7
  ].map((_, index)=>/*#__PURE__*/ jsx("div", {
8
- className: classnames('byline-loader-spinner-blade', spinner_module["loader-spinner-blade"]),
8
+ className: clsx('byline-loader-spinner-blade', spinner_module["loader-spinner-blade"]),
9
9
  children: /*#__PURE__*/ jsx("div", {
10
- className: classnames('byline-loader-spinner-blade-inner', spinner_module["loader-spinner-blade-inner"])
10
+ className: clsx('byline-loader-spinner-blade-inner', spinner_module["loader-spinner-blade-inner"])
11
11
  })
12
12
  }, index));
13
13
  const spinnerStyle = {
@@ -16,7 +16,7 @@ function LoaderSpinner({ color, size, className, style, ...rest }) {
16
16
  if (null != size) spinnerStyle['--loader-spinner-size'] = 'number' == typeof size ? `${size}px` : size;
17
17
  if (color) spinnerStyle['--loader-spinner-color'] = color;
18
18
  return /*#__PURE__*/ jsx("div", {
19
- className: classnames('byline-loader-spinner', spinner_module["loader-spinner"], className),
19
+ className: clsx('byline-loader-spinner', spinner_module["loader-spinner"], className),
20
20
  style: spinnerStyle,
21
21
  ...rest,
22
22
  children: circles
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { Popover } from "@base-ui/react/popover";
5
- import classnames from "classnames";
5
+ import clsx from "clsx";
6
6
  import { format } from "date-fns";
7
7
  import { Button } from "../../components/button/button.js";
8
8
  import { IconButton } from "../../components/button/icon-button.js";
@@ -47,7 +47,7 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
47
47
  }
48
48
  });
49
49
  return /*#__PURE__*/ jsxs("div", {
50
- className: classnames('byline-datepicker-container', datepicker_module.container, containerClassName),
50
+ className: clsx('byline-datepicker-container', datepicker_module.container, containerClassName),
51
51
  children: [
52
52
  /*#__PURE__*/ jsx("div", {
53
53
  style: {
@@ -65,8 +65,8 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
65
65
  intent: intent,
66
66
  inputSize: inputSize,
67
67
  ref: inputRef,
68
- className: classnames('byline-datepicker-input', datepicker_module.input, inputClassName),
69
- inputWrapperClassName: classnames('byline-datepicker-input-wrapper', datepicker_module["input-wrapper"], inputWrapperClassName),
68
+ className: clsx('byline-datepicker-input', datepicker_module.input, inputClassName),
69
+ inputWrapperClassName: clsx('byline-datepicker-input-wrapper', datepicker_module["input-wrapper"], inputWrapperClassName),
70
70
  onKeyDown: handleOnKeyDown,
71
71
  onClick: (e)=>{
72
72
  e.preventDefault();
@@ -135,10 +135,10 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
135
135
  children: /*#__PURE__*/ jsx(Popover.Positioner, {
136
136
  sideOffset: 5,
137
137
  children: /*#__PURE__*/ jsxs(Popover.Popup, {
138
- className: classnames('byline-datepicker-content', datepicker_module.content, contentClassName),
138
+ className: clsx('byline-datepicker-content', datepicker_module.content, contentClassName),
139
139
  children: [
140
140
  /*#__PURE__*/ jsxs("div", {
141
- className: classnames('byline-datepicker-content-components', datepicker_module["content-components"]),
141
+ className: clsx('byline-datepicker-content-components', datepicker_module["content-components"]),
142
142
  children: [
143
143
  /*#__PURE__*/ jsx("div", {
144
144
  ref: calendarRef,
@@ -196,20 +196,20 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
196
196
  ]
197
197
  }),
198
198
  /*#__PURE__*/ jsxs("div", {
199
- className: classnames('byline-datepicker-status-and-actions', datepicker_module["status-and-actions"]),
199
+ className: clsx('byline-datepicker-status-and-actions', datepicker_module["status-and-actions"]),
200
200
  children: [
201
201
  /*#__PURE__*/ jsx("div", {
202
- className: classnames('byline-datepicker-content-status', datepicker_module["content-status"]),
202
+ className: clsx('byline-datepicker-content-status', datepicker_module["content-status"]),
203
203
  children: date ? format(date, 'datetime' === mode ? 'PPPp' : 'PPP') : 'No date selected'
204
204
  }),
205
205
  /*#__PURE__*/ jsxs("div", {
206
- className: classnames('byline-datepicker-content-actions', datepicker_module["content-actions"]),
206
+ className: clsx('byline-datepicker-content-actions', datepicker_module["content-actions"]),
207
207
  children: [
208
208
  /*#__PURE__*/ jsx("div", {
209
209
  children: /*#__PURE__*/ jsx(Button, {
210
210
  variant: "outlined",
211
211
  size: "sm",
212
- className: classnames('byline-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
212
+ className: clsx('byline-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
213
213
  onClick: ()=>{
214
214
  const today = new Date();
215
215
  setDate(today);
@@ -228,7 +228,7 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
228
228
  /*#__PURE__*/ jsx(Button, {
229
229
  size: "sm",
230
230
  intent: "noeffect",
231
- className: classnames('byline-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
231
+ className: clsx('byline-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
232
232
  onClick: ()=>{
233
233
  setIsOpen(false);
234
234
  },
@@ -237,7 +237,7 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
237
237
  /*#__PURE__*/ jsx(Button, {
238
238
  variant: "outlined",
239
239
  size: "sm",
240
- className: classnames('byline-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
240
+ className: clsx('byline-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
241
241
  onClick: ()=>{
242
242
  setIsOpen(false);
243
243
  handleOnDateChange(date);
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import drawer_module from "./drawer.module.js";
5
5
  function DrawerContainer({ ref, children, className, ...rest }) {
6
6
  return /*#__PURE__*/ jsx("div", {
7
7
  ref: ref,
8
- className: classnames('byline-drawer-container', drawer_module["drawer-container"], className),
8
+ className: clsx('byline-drawer-container', drawer_module["drawer-container"], className),
9
9
  ...rest,
10
10
  children: children
11
11
  });
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import drawer_module from "./drawer.module.js";
5
5
  function DrawerContent({ ref, children, className, ...rest }) {
6
6
  return /*#__PURE__*/ jsx("div", {
7
7
  ref: ref,
8
8
  ...rest,
9
- className: classnames('byline-drawer-content', drawer_module["drawer-content"], className),
9
+ className: clsx('byline-drawer-content', drawer_module["drawer-content"], className),
10
10
  children: children
11
11
  });
12
12
  }
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import drawer_module from "./drawer.module.js";
5
5
  const drawer_header_DrawerHeader = function({ ref, children, className, ...rest }) {
6
- const classes = classnames('byline-drawer-header', drawer_module["drawer-header"], className);
6
+ const classes = clsx('byline-drawer-header', drawer_module["drawer-header"], className);
7
7
  return /*#__PURE__*/ jsx("div", {
8
8
  style: {
9
9
  overflowWrap: 'anywhere'
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import drawer_module from "./drawer.module.js";
5
5
  const DrawerTopActions = function({ ref, children, className, ...rest }) {
6
- const classes = classnames('byline-drawer-top-actions', drawer_module["drawer-top-actions"], className);
6
+ const classes = clsx('byline-drawer-top-actions', drawer_module["drawer-top-actions"], className);
7
7
  return /*#__PURE__*/ jsx("div", {
8
8
  style: {
9
9
  whiteSpace: 'nowrap'
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect } from "react";
4
4
  import { Drawer } from "@base-ui/react/drawer";
5
- import classnames from "classnames";
5
+ import clsx from "clsx";
6
6
  import drawer_module from "./drawer.module.js";
7
7
  import { DrawerContainer } from "./drawer-container.js";
8
8
  import { DrawerContent } from "./drawer-content.js";
@@ -35,15 +35,15 @@ const drawer_Drawer = ({ id, isOpen, onDismiss, closeOnOverlayClick, children, w
35
35
  children: /*#__PURE__*/ jsxs(Drawer.Portal, {
36
36
  children: [
37
37
  /*#__PURE__*/ jsx(Drawer.Backdrop, {
38
- className: classnames('byline-drawer-backdrop', drawer_module.backdrop),
38
+ className: clsx('byline-drawer-backdrop', drawer_module.backdrop),
39
39
  style: hasTopOffset ? {
40
40
  top: topOffset
41
41
  } : void 0
42
42
  }),
43
43
  /*#__PURE__*/ jsx(Drawer.Viewport, {
44
- className: classnames('byline-drawer-viewport', drawer_module.viewport),
44
+ className: clsx('byline-drawer-viewport', drawer_module.viewport),
45
45
  children: /*#__PURE__*/ jsx(Drawer.Popup, {
46
- className: classnames('byline-drawer-wrapper', drawer_module["drawer-wrapper"], typedStyles[`drawer-${width}`], typedStyles[`drawer-depth-${depth.toString()}`], className),
46
+ className: clsx('byline-drawer-wrapper', drawer_module["drawer-wrapper"], typedStyles[`drawer-${width}`], typedStyles[`drawer-depth-${depth.toString()}`], className),
47
47
  style: hasTopOffset ? {
48
48
  top: topOffset
49
49
  } : void 0,
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import { IconButton } from "../../components/button/icon-button.js";
5
5
  import { CloseIcon } from "../../icons/close-icon.js";
6
6
  import { DownloadIcon } from "../../icons/download-icon.js";
@@ -30,20 +30,20 @@ function ImageLightbox({ isOpen, onDismiss, src, alt, downloadFilename, title, m
30
30
  closeOnOverlayClick: true,
31
31
  onDismiss: onDismiss,
32
32
  children: /*#__PURE__*/ jsxs(Modal.Container, {
33
- className: classnames('byline-image-lightbox-container', image_lightbox_module.container),
33
+ className: clsx('byline-image-lightbox-container', image_lightbox_module.container),
34
34
  children: [
35
35
  /*#__PURE__*/ jsxs(Modal.Header, {
36
- className: classnames('byline-image-lightbox-header', image_lightbox_module.header),
36
+ className: clsx('byline-image-lightbox-header', image_lightbox_module.header),
37
37
  children: [
38
38
  /*#__PURE__*/ jsxs("div", {
39
- className: classnames('byline-image-lightbox-title-stack', image_lightbox_module["title-stack"]),
39
+ className: clsx('byline-image-lightbox-title-stack', image_lightbox_module["title-stack"]),
40
40
  children: [
41
41
  /*#__PURE__*/ jsx("h3", {
42
- className: classnames('byline-image-lightbox-title', image_lightbox_module.title),
42
+ className: clsx('byline-image-lightbox-title', image_lightbox_module.title),
43
43
  children: headingText
44
44
  }),
45
45
  meta?.width != null && meta?.height != null && /*#__PURE__*/ jsxs("p", {
46
- className: classnames('byline-image-lightbox-subtitle', image_lightbox_module.subtitle),
46
+ className: clsx('byline-image-lightbox-subtitle', image_lightbox_module.subtitle),
47
47
  children: [
48
48
  meta.width,
49
49
  "\xd7",
@@ -55,7 +55,7 @@ function ImageLightbox({ isOpen, onDismiss, src, alt, downloadFilename, title, m
55
55
  ]
56
56
  }),
57
57
  /*#__PURE__*/ jsxs("div", {
58
- className: classnames('byline-image-lightbox-actions', image_lightbox_module["header-actions"]),
58
+ className: clsx('byline-image-lightbox-actions', image_lightbox_module["header-actions"]),
59
59
  children: [
60
60
  /*#__PURE__*/ jsx(IconButton, {
61
61
  onClick: ()=>triggerDownload(src, downloadFilename),
@@ -80,11 +80,11 @@ function ImageLightbox({ isOpen, onDismiss, src, alt, downloadFilename, title, m
80
80
  ]
81
81
  }),
82
82
  /*#__PURE__*/ jsx(Modal.Content, {
83
- className: classnames('byline-image-lightbox-content', image_lightbox_module.content),
83
+ className: clsx('byline-image-lightbox-content', image_lightbox_module.content),
84
84
  children: /*#__PURE__*/ jsx("img", {
85
85
  src: src,
86
86
  alt: altText,
87
- className: classnames('byline-image-lightbox-image', image_lightbox_module.image)
87
+ className: clsx('byline-image-lightbox-image', image_lightbox_module.image)
88
88
  })
89
89
  })
90
90
  ]
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import modal_module from "./modal.module.js";
5
5
  const modal_actions_ModalActions = function({ ref, children, className, ...rest }) {
6
6
  return /*#__PURE__*/ jsx("div", {
7
7
  ref: ref,
8
8
  ...rest,
9
- className: classnames('byline-modal-actions', modal_module["modal-actions"], className),
9
+ className: clsx('byline-modal-actions', modal_module["modal-actions"], className),
10
10
  children: children
11
11
  });
12
12
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import modal_module from "./modal.module.js";
5
5
  const modal_container_ModalContainer = function({ ref, children, className, ...rest }) {
6
6
  return /*#__PURE__*/ jsx("div", {
7
7
  ref: ref,
8
- className: classnames('byline-modal-container', modal_module["modal-container"], className),
8
+ className: clsx('byline-modal-container', modal_module["modal-container"], className),
9
9
  ...rest,
10
10
  children: children
11
11
  });
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import modal_module from "./modal.module.js";
5
5
  const modal_content_ModalContent = function({ ref, children, className, ...rest }) {
6
6
  return /*#__PURE__*/ jsx("div", {
7
7
  ref: ref,
8
8
  ...rest,
9
- className: classnames('byline-modal-content', modal_module["modal-content"], className),
9
+ className: clsx('byline-modal-content', modal_module["modal-content"], className),
10
10
  children: children
11
11
  });
12
12
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import modal_module from "./modal.module.js";
5
5
  const modal_header_ModalHeader = function({ ref, children, className, ...rest }) {
6
- const classes = classnames('byline-modal-header', modal_module["modal-header"], 'prose', className);
6
+ const classes = clsx('byline-modal-header', modal_module["modal-header"], 'prose', className);
7
7
  return /*#__PURE__*/ jsx("div", {
8
8
  style: {
9
9
  overflowWrap: 'anywhere'
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { createContext, useCallback, useRef, useState } from "react";
4
4
  import { Dialog } from "@base-ui/react/dialog";
5
- import classnames from "classnames";
5
+ import clsx from "clsx";
6
6
  import modal_module from "./modal.module.js";
7
7
  import { ModalActions } from "./modal-actions.js";
8
8
  import { ModalContainer } from "./modal-container.js";
@@ -50,10 +50,10 @@ function Modal({ isOpen, onDismiss, closeOnOverlayClick, children }) {
50
50
  children: /*#__PURE__*/ jsxs(Dialog.Portal, {
51
51
  children: [
52
52
  /*#__PURE__*/ jsx(Dialog.Backdrop, {
53
- className: classnames('byline-modal-backdrop', modal_module.backdrop)
53
+ className: clsx('byline-modal-backdrop', modal_module.backdrop)
54
54
  }),
55
55
  /*#__PURE__*/ jsx(Dialog.Popup, {
56
- className: classnames('byline-modal-wrapper', modal_module["modal-wrapper"]),
56
+ className: clsx('byline-modal-wrapper', modal_module["modal-wrapper"]),
57
57
  onPointerDown: handleOverlayPointerDown,
58
58
  onClick: handleOverlayClick,
59
59
  children: children
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import timeline_module from "./timeline.module.js";
5
5
  const Timeline = ({ id, className, children, ...rest })=>/*#__PURE__*/ jsx("div", {
6
6
  id: id,
7
- className: classnames(timeline_module.timeline, 'timeline', className),
7
+ className: clsx(timeline_module.timeline, 'timeline', className),
8
8
  ...rest,
9
9
  children: children
10
10
  });
11
11
  const Root = function({ ref, children, className, ...props }) {
12
- const classes = classnames(timeline_module["timeline-root"], 'timeline-root', className);
12
+ const classes = clsx(timeline_module["timeline-root"], 'timeline-root', className);
13
13
  return /*#__PURE__*/ jsx("ol", {
14
14
  ref: ref,
15
15
  ...props,
@@ -21,7 +21,7 @@ const Item = function({ ref, children, className, ...props }) {
21
21
  return /*#__PURE__*/ jsx("li", {
22
22
  ref: ref,
23
23
  ...props,
24
- className: classnames(timeline_module["timeline-item"], 'timeline-item', className),
24
+ className: clsx(timeline_module["timeline-item"], 'timeline-item', className),
25
25
  children: children
26
26
  });
27
27
  };
@@ -29,7 +29,7 @@ const Icon = function({ ref, children, className, ...props }) {
29
29
  return /*#__PURE__*/ jsx("span", {
30
30
  ref: ref,
31
31
  ...props,
32
- className: classnames(timeline_module["timeline-icon"], 'time-line-icon', className),
32
+ className: clsx(timeline_module["timeline-icon"], 'time-line-icon', className),
33
33
  children: /*#__PURE__*/ jsx("svg", {
34
34
  "aria-hidden": "true",
35
35
  xmlns: "http://www.w3.org/2000/svg",
@@ -45,7 +45,7 @@ const Heading = function({ ref, children, className, ...props }) {
45
45
  return /*#__PURE__*/ jsx("h3", {
46
46
  ref: ref,
47
47
  ...props,
48
- className: classnames(timeline_module["timeline-heading"], 'timeline-heading', className),
48
+ className: clsx(timeline_module["timeline-heading"], 'timeline-heading', className),
49
49
  children: children
50
50
  });
51
51
  };
@@ -53,7 +53,7 @@ const DateItem = function({ ref, children, className, ...props }) {
53
53
  return /*#__PURE__*/ jsx("time", {
54
54
  ref: ref,
55
55
  ...props,
56
- className: classnames(timeline_module["timeline-date"], 'timeline-date', className),
56
+ className: clsx(timeline_module["timeline-date"], 'timeline-date', className),
57
57
  children: children
58
58
  });
59
59
  };
@@ -61,7 +61,7 @@ const Content = function({ ref, children, className, ...props }) {
61
61
  return /*#__PURE__*/ jsx("div", {
62
62
  ref: ref,
63
63
  ...props,
64
- className: classnames(timeline_module["timeline-content"], 'timeline-content', className),
64
+ className: clsx(timeline_module["timeline-content"], 'timeline-content', className),
65
65
  children: children
66
66
  });
67
67
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "type": "module",
5
5
  "license": "MPL-2.0",
6
- "version": "4.11.0",
6
+ "version": "4.11.1",
7
7
  "engines": {
8
8
  "node": ">=20.9.0"
9
9
  },
@@ -54,7 +54,7 @@
54
54
  "@base-ui/react": "^1.6.0",
55
55
  "@dnd-kit/core": "^6.3.1",
56
56
  "@dnd-kit/sortable": "^10.0.0",
57
- "classnames": "^2.5.1",
57
+ "clsx": "^2.1.1",
58
58
  "date-fns": "^4.4.0",
59
59
  "motion": "^12.42.2",
60
60
  "react-day-picker": "^10.0.1",
@@ -9,7 +9,7 @@
9
9
  import type React from 'react'
10
10
 
11
11
  import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion'
12
- import cx from 'classnames'
12
+ import cx from 'clsx'
13
13
 
14
14
  import styles from './accordion.module.css'
15
15
 
@@ -3,7 +3,7 @@
3
3
  import type React from 'react'
4
4
 
5
5
  import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar'
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import styles from './avatar.module.css'
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { useRender } from '@base-ui/react/use-render'
2
- import cx from 'classnames'
2
+ import cx from 'clsx'
3
3
 
4
4
  import styles from './badge.module.css'
5
5
  import type { Intent } from '../@types/shared'
@@ -4,7 +4,7 @@ import React, { type Ref } from 'react'
4
4
 
5
5
  import { Toggle } from '@base-ui/react/toggle'
6
6
  import { ToggleGroup } from '@base-ui/react/toggle-group'
7
- import cx from 'classnames'
7
+ import cx from 'clsx'
8
8
 
9
9
  import { Button } from './button'
10
10
  import styles from './button-group.module.css'
@@ -4,7 +4,7 @@ import type React from 'react'
4
4
 
5
5
  import { mergeProps } from '@base-ui/react/merge-props'
6
6
  import { useRender } from '@base-ui/react/use-render'
7
- import cx from 'classnames'
7
+ import cx from 'clsx'
8
8
 
9
9
  import { Ripple } from '../../lib/ripple.js'
10
10
  import styles from './button.module.css'
@@ -1,6 +1,6 @@
1
1
  import { useRef } from 'react'
2
2
 
3
- import cx from 'classnames'
3
+ import cx from 'clsx'
4
4
 
5
5
  import { ChevronDownIcon } from '../../icons/chevron-down-icon'
6
6
  import { Dropdown as DropdownComponent } from '../dropdown/dropdown'
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './control-buttons.module.css'
8
8
  import type { Size } from './@types/button.js'
@@ -3,7 +3,7 @@
3
3
  import type React from 'react'
4
4
  import { useEffect, useState } from 'react'
5
5
 
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import { Tooltip } from '../tooltip/tooltip.js'
9
9
  import { Button } from './button.js'
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
 
3
- import cx from 'classnames'
3
+ import cx from 'clsx'
4
4
 
5
5
  import { Button } from './button'
6
6
  import styles from './button.module.css'
@@ -1,7 +1,7 @@
1
1
  import type React from 'react'
2
2
 
3
3
  import { useRender } from '@base-ui/react/use-render'
4
- import cx from 'classnames'
4
+ import cx from 'clsx'
5
5
 
6
6
  import styles from './card.module.css'
7
7
 
@@ -4,7 +4,7 @@ import type React from 'react'
4
4
 
5
5
  import { mergeProps } from '@base-ui/react/merge-props'
6
6
  import { useRender } from '@base-ui/react/use-render'
7
- import cx from 'classnames'
7
+ import cx from 'clsx'
8
8
 
9
9
  import { CheckIcon } from '../../icons/check-icon.js'
10
10
  import { CloseIcon } from '../../icons/close-icon.js'
@@ -1,6 +1,6 @@
1
1
  import type React from 'react'
2
2
 
3
- import cx from 'classnames'
3
+ import cx from 'clsx'
4
4
 
5
5
  import styles from './container.module.css'
6
6
 
@@ -3,7 +3,7 @@
3
3
  import type React from 'react'
4
4
 
5
5
  import { Menu } from '@base-ui/react/menu'
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import styles from './dropdown.module.css'
9
9
 
@@ -3,7 +3,7 @@
3
3
  import type React from 'react'
4
4
  import { useCallback, useEffect } from 'react'
5
5
 
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import styles from './hamburger.module.css'
9
9
 
@@ -3,7 +3,7 @@
3
3
  import type React from 'react'
4
4
 
5
5
  import { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete'
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import styles from './autocomplete.module.css'
9
9
  import { ErrorText } from './error-text.jsx'
@@ -11,7 +11,7 @@
11
11
  import * as React from 'react'
12
12
 
13
13
  import { Select as SelectPrimitive } from '@base-ui/react/select'
14
- import cx from 'classnames'
14
+ import cx from 'clsx'
15
15
  import {
16
16
  DayPicker,
17
17
  type DayPickerProps,
@@ -3,7 +3,7 @@
3
3
  import type React from 'react'
4
4
  import { useEffect, useState } from 'react'
5
5
 
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import { Checkbox } from './checkbox.jsx'
9
9
  import styles from './checkbox-group.module.css'
@@ -3,7 +3,7 @@
3
3
  import type * as React from 'react'
4
4
 
5
5
  import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox'
6
- import cx from 'classnames'
6
+ import cx from 'clsx'
7
7
 
8
8
  import { CheckIcon } from '../../icons/check-icon'
9
9
  import styles from './checkbox.module.css'
@@ -1,6 +1,6 @@
1
1
  import type React from 'react'
2
2
 
3
- import cx from 'classnames'
3
+ import cx from 'clsx'
4
4
 
5
5
  import styles from './error-text.module.css'
6
6