@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.
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/button/button-group.js +2 -2
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/combo-button.js +8 -8
- package/dist/components/button/control-buttons.js +4 -4
- package/dist/components/button/copy-button.js +3 -3
- package/dist/components/button/icon-button.js +2 -2
- package/dist/components/card/card.js +7 -7
- package/dist/components/chips/chip.js +6 -6
- package/dist/components/container/container.js +2 -2
- package/dist/components/dropdown/dropdown.js +9 -9
- package/dist/components/hamburger/hamburger.js +4 -4
- package/dist/components/inputs/autocomplete.js +10 -10
- package/dist/components/inputs/calendar.js +24 -24
- package/dist/components/inputs/checkbox-group.js +2 -2
- package/dist/components/inputs/checkbox.js +6 -6
- package/dist/components/inputs/error-text.js +2 -2
- package/dist/components/inputs/help-text.js +2 -2
- package/dist/components/inputs/input-adornment.js +2 -2
- package/dist/components/inputs/input.js +6 -6
- package/dist/components/inputs/label.js +2 -2
- package/dist/components/inputs/radio-group.js +3 -3
- package/dist/components/inputs/select.js +6 -6
- package/dist/components/inputs/text-area.js +3 -3
- package/dist/components/notifications/alert.js +11 -11
- package/dist/components/notifications/toast.js +8 -8
- package/dist/components/pager/ellipses.js +2 -2
- package/dist/components/pager/first-button.js +2 -2
- package/dist/components/pager/last-button.js +2 -2
- package/dist/components/pager/next-button.js +2 -2
- package/dist/components/pager/number-button.js +3 -3
- package/dist/components/pager/pagination.js +3 -3
- package/dist/components/pager/previous-button.js +2 -2
- package/dist/components/scroll-area/scroll-area.js +8 -8
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/section/section.js +2 -2
- package/dist/components/shimmer/shimmer.js +4 -4
- package/dist/components/table/table.js +10 -10
- package/dist/components/tabs/tabs.js +5 -5
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/dnd/draggable-sortable/demo/draggable-list-demo.js +5 -5
- package/dist/icons/activity-icon.js +3 -3
- package/dist/icons/ai-icon.js +3 -3
- package/dist/icons/byline-icon.js +3 -3
- package/dist/icons/calendar-icon.js +3 -3
- package/dist/icons/check-icon.js +3 -3
- package/dist/icons/chevron-down-icon.js +3 -3
- package/dist/icons/chevron-left-double-icon.js +3 -3
- package/dist/icons/chevron-left-icon.js +3 -3
- package/dist/icons/chevron-right-double-icon.js +3 -3
- package/dist/icons/chevron-right-icon.js +3 -3
- package/dist/icons/chevron-up-icon.js +3 -3
- package/dist/icons/chevrons-up-down.js +3 -3
- package/dist/icons/close-icon.js +3 -3
- package/dist/icons/copy-icon.js +3 -3
- package/dist/icons/danger-icon.js +3 -3
- package/dist/icons/dashboard-icon.js +3 -3
- package/dist/icons/delete-icon.js +3 -3
- package/dist/icons/document-icon.js +3 -3
- package/dist/icons/download-icon.js +3 -3
- package/dist/icons/edit-icon.js +3 -3
- package/dist/icons/ellipsis-icon.js +3 -3
- package/dist/icons/email-icon.js +3 -3
- package/dist/icons/external-link-icon.js +3 -3
- package/dist/icons/eye-closed-icon.js +3 -3
- package/dist/icons/eye-open-icon.js +3 -3
- package/dist/icons/github-icon.js +3 -3
- package/dist/icons/globe-icon.js +3 -3
- package/dist/icons/google-icon.js +2 -2
- package/dist/icons/gripper-vertical-icon.js +3 -3
- package/dist/icons/history-icon.js +3 -3
- package/dist/icons/home-icon.js +3 -3
- package/dist/icons/icon-element.js +2 -2
- package/dist/icons/info-icon.js +3 -3
- package/dist/icons/infonomic-icon.js +3 -3
- package/dist/icons/light-icon.js +3 -3
- package/dist/icons/location-pin-icon.js +3 -3
- package/dist/icons/markdown-icon.js +3 -3
- package/dist/icons/moon-icon.js +3 -3
- package/dist/icons/plus-icon.js +3 -3
- package/dist/icons/primary-icon.js +3 -3
- package/dist/icons/refresh-icon.js +3 -3
- package/dist/icons/return-icon.js +3 -3
- package/dist/icons/roles-icon.js +3 -3
- package/dist/icons/search-icon.js +3 -3
- package/dist/icons/search-menu-icon.js +3 -3
- package/dist/icons/settings-gear-icon.js +3 -3
- package/dist/icons/settings-sliders-icon.js +3 -3
- package/dist/icons/sign-out-icon.js +3 -3
- package/dist/icons/stop-icon.js +3 -3
- package/dist/icons/stopwatch-icon.js +3 -3
- package/dist/icons/success-icon.js +3 -3
- package/dist/icons/user-icon.js +3 -3
- package/dist/icons/users-icon.js +3 -3
- package/dist/icons/video-icon.js +3 -3
- package/dist/icons/wallet-icon.js +3 -3
- package/dist/icons/warning-icon.js +3 -3
- package/dist/icons/x-icon.js +3 -3
- package/dist/loaders/ellipses.js +3 -3
- package/dist/loaders/ring.js +3 -3
- package/dist/loaders/spinner.js +4 -4
- package/dist/widgets/datepicker/datepicker.js +12 -12
- package/dist/widgets/drawer/drawer-container.js +2 -2
- package/dist/widgets/drawer/drawer-content.js +2 -2
- package/dist/widgets/drawer/drawer-header.js +2 -2
- package/dist/widgets/drawer/drawer-top-actions.js +2 -2
- package/dist/widgets/drawer/drawer.js +4 -4
- package/dist/widgets/image-lightbox/image-lightbox.js +9 -9
- package/dist/widgets/modal/modal-actions.js +2 -2
- package/dist/widgets/modal/modal-container.js +2 -2
- package/dist/widgets/modal/modal-content.js +2 -2
- package/dist/widgets/modal/modal-header.js +2 -2
- package/dist/widgets/modal/modal.js +3 -3
- package/dist/widgets/timeline/timeline.js +8 -8
- package/package.json +2 -2
- package/src/components/accordion/accordion.tsx +1 -1
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/badge/badge.tsx +1 -1
- package/src/components/button/button-group.tsx +1 -1
- package/src/components/button/button.tsx +1 -1
- package/src/components/button/combo-button.tsx +1 -1
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.tsx +1 -1
- package/src/components/button/icon-button.tsx +1 -1
- package/src/components/card/card.tsx +1 -1
- package/src/components/chips/chip.tsx +1 -1
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.tsx +1 -1
- package/src/components/hamburger/hamburger.tsx +1 -1
- package/src/components/inputs/autocomplete.tsx +1 -1
- package/src/components/inputs/calendar.tsx +1 -1
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.tsx +1 -1
- package/src/components/inputs/error-text.tsx +1 -1
- package/src/components/inputs/help-text.tsx +1 -1
- package/src/components/inputs/input-adornment.tsx +1 -1
- package/src/components/inputs/input.tsx +1 -1
- package/src/components/inputs/label.tsx +1 -1
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.tsx +1 -1
- package/src/components/inputs/text-area.tsx +1 -1
- package/src/components/notifications/alert.tsx +1 -1
- package/src/components/notifications/toast.tsx +1 -1
- package/src/components/pager/ellipses.tsx +1 -1
- package/src/components/pager/first-button.tsx +1 -1
- package/src/components/pager/last-button.tsx +1 -1
- package/src/components/pager/next-button.tsx +1 -1
- package/src/components/pager/number-button.tsx +1 -1
- package/src/components/pager/pagination.tsx +1 -1
- package/src/components/pager/previous-button.tsx +1 -1
- package/src/components/scroll-area/scroll-area.tsx +1 -1
- package/src/components/scroll-to-top/scroll-to-top.tsx +1 -1
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.tsx +1 -1
- package/src/components/table/table.tsx +1 -1
- package/src/components/tabs/tabs.tsx +1 -1
- package/src/components/tooltip/tooltip.tsx +1 -1
- package/src/dnd/draggable-sortable/demo/draggable-list-demo.tsx +1 -1
- package/src/icons/activity-icon.tsx +1 -1
- package/src/icons/ai-icon.tsx +1 -1
- package/src/icons/byline-icon.tsx +1 -1
- package/src/icons/calendar-icon.tsx +1 -1
- package/src/icons/check-icon.tsx +1 -1
- package/src/icons/chevron-down-icon.tsx +1 -1
- package/src/icons/chevron-left-double-icon.tsx +1 -1
- package/src/icons/chevron-left-icon.tsx +1 -1
- package/src/icons/chevron-right-double-icon.tsx +1 -1
- package/src/icons/chevron-right-icon.tsx +1 -1
- package/src/icons/chevron-up-icon.tsx +1 -1
- package/src/icons/chevrons-up-down.tsx +1 -1
- package/src/icons/close-icon.tsx +1 -1
- package/src/icons/copy-icon.tsx +1 -1
- package/src/icons/danger-icon.tsx +1 -1
- package/src/icons/dashboard-icon.tsx +1 -1
- package/src/icons/delete-icon.tsx +1 -1
- package/src/icons/document-icon.tsx +1 -1
- package/src/icons/download-icon.tsx +1 -1
- package/src/icons/edit-icon.tsx +1 -1
- package/src/icons/ellipsis-icon.tsx +1 -1
- package/src/icons/email-icon.tsx +1 -1
- package/src/icons/external-link-icon.tsx +1 -1
- package/src/icons/eye-closed-icon.tsx +1 -1
- package/src/icons/eye-open-icon.tsx +1 -1
- package/src/icons/github-icon.tsx +1 -1
- package/src/icons/globe-icon.tsx +1 -1
- package/src/icons/google-icon.tsx +1 -1
- package/src/icons/gripper-vertical-icon.tsx +1 -1
- package/src/icons/history-icon.tsx +1 -1
- package/src/icons/home-icon.tsx +1 -1
- package/src/icons/icon-element.tsx +1 -1
- package/src/icons/info-icon.tsx +1 -1
- package/src/icons/infonomic-icon.tsx +1 -1
- package/src/icons/light-icon.tsx +1 -1
- package/src/icons/location-pin-icon.tsx +1 -1
- package/src/icons/markdown-icon.tsx +1 -1
- package/src/icons/moon-icon.tsx +1 -1
- package/src/icons/plus-icon.tsx +1 -1
- package/src/icons/primary-icon.tsx +1 -1
- package/src/icons/refresh-icon.tsx +1 -1
- package/src/icons/return-icon.tsx +1 -1
- package/src/icons/roles-icon.tsx +1 -1
- package/src/icons/search-icon.tsx +1 -1
- package/src/icons/search-menu-icon.tsx +1 -1
- package/src/icons/settings-gear-icon.tsx +1 -1
- package/src/icons/settings-sliders-icon.tsx +1 -1
- package/src/icons/sign-out-icon.tsx +1 -1
- package/src/icons/stop-icon.tsx +1 -1
- package/src/icons/stopwatch-icon.tsx +1 -1
- package/src/icons/success-icon.tsx +1 -1
- package/src/icons/user-icon.tsx +1 -1
- package/src/icons/users-icon.tsx +1 -1
- package/src/icons/video-icon.tsx +1 -1
- package/src/icons/wallet-icon.tsx +1 -1
- package/src/icons/warning-icon.tsx +1 -1
- package/src/icons/x-icon.tsx +1 -1
- package/src/loaders/ellipses.tsx +1 -1
- package/src/loaders/ring.tsx +1 -1
- package/src/loaders/spinner.tsx +1 -1
- package/src/widgets/datepicker/datepicker.tsx +1 -1
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer.tsx +1 -1
- package/src/widgets/image-lightbox/image-lightbox.tsx +1 -1
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal.tsx +1 -1
- package/src/widgets/timeline/timeline.tsx +1 -1
package/dist/loaders/ring.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
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:
|
|
13
|
+
className: clsx('byline-loader-ring-arc', ring_module["loader-ring-arc"])
|
|
14
14
|
}, index));
|
|
15
15
|
return /*#__PURE__*/ jsx("div", {
|
|
16
|
-
className:
|
|
16
|
+
className: clsx('byline-loader-ring', ring_module["loader-ring"], className),
|
|
17
17
|
style: ringStyle,
|
|
18
18
|
...rest,
|
|
19
19
|
children: circles
|
package/dist/loaders/spinner.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
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:
|
|
8
|
+
className: clsx('byline-loader-spinner-blade', spinner_module["loader-spinner-blade"]),
|
|
9
9
|
children: /*#__PURE__*/ jsx("div", {
|
|
10
|
-
className:
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
69
|
-
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:
|
|
138
|
+
className: clsx('byline-datepicker-content', datepicker_module.content, contentClassName),
|
|
139
139
|
children: [
|
|
140
140
|
/*#__PURE__*/ jsxs("div", {
|
|
141
|
-
className:
|
|
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:
|
|
199
|
+
className: clsx('byline-datepicker-status-and-actions', datepicker_module["status-and-actions"]),
|
|
200
200
|
children: [
|
|
201
201
|
/*#__PURE__*/ jsx("div", {
|
|
202
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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
|
|
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:
|
|
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:
|
|
44
|
+
className: clsx('byline-drawer-viewport', drawer_module.viewport),
|
|
45
45
|
children: /*#__PURE__*/ jsx(Drawer.Popup, {
|
|
46
|
-
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
|
|
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:
|
|
33
|
+
className: clsx('byline-image-lightbox-container', image_lightbox_module.container),
|
|
34
34
|
children: [
|
|
35
35
|
/*#__PURE__*/ jsxs(Modal.Header, {
|
|
36
|
-
className:
|
|
36
|
+
className: clsx('byline-image-lightbox-header', image_lightbox_module.header),
|
|
37
37
|
children: [
|
|
38
38
|
/*#__PURE__*/ jsxs("div", {
|
|
39
|
-
className:
|
|
39
|
+
className: clsx('byline-image-lightbox-title-stack', image_lightbox_module["title-stack"]),
|
|
40
40
|
children: [
|
|
41
41
|
/*#__PURE__*/ jsx("h3", {
|
|
42
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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 =
|
|
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
|
|
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:
|
|
53
|
+
className: clsx('byline-modal-backdrop', modal_module.backdrop)
|
|
54
54
|
}),
|
|
55
55
|
/*#__PURE__*/ jsx(Dialog.Popup, {
|
|
56
|
-
className:
|
|
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
|
|
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:
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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
|
-
"
|
|
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",
|
|
@@ -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 '
|
|
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 '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Ripple } from '../../lib/ripple.js'
|
|
10
10
|
import styles from './button.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 '
|
|
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'
|
|
@@ -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 '
|
|
6
|
+
import cx from 'clsx'
|
|
7
7
|
|
|
8
8
|
import styles from './autocomplete.module.css'
|
|
9
9
|
import { ErrorText } from './error-text.jsx'
|