@byline/ui 4.11.0 → 4.11.2
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 +13 -13
- 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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Accordion } from "@base-ui/react/accordion";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import accordion_module from "./accordion.module.js";
|
|
6
6
|
const Root = ({ children, className, ref, ...props })=>/*#__PURE__*/ jsx(Accordion.Root, {
|
|
7
7
|
ref: ref,
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('byline-accordion-root', className),
|
|
9
9
|
...props,
|
|
10
10
|
children: children
|
|
11
11
|
});
|
|
12
12
|
const Item = function({ ref, children, className, ...props }) {
|
|
13
13
|
return /*#__PURE__*/ jsx(Accordion.Item, {
|
|
14
|
-
className:
|
|
14
|
+
className: clsx('byline-accordion-item', className),
|
|
15
15
|
...props,
|
|
16
16
|
ref: ref,
|
|
17
17
|
children: children
|
|
@@ -19,7 +19,7 @@ const Item = function({ ref, children, className, ...props }) {
|
|
|
19
19
|
};
|
|
20
20
|
const Header = function({ ref, children, className, ...props }) {
|
|
21
21
|
return /*#__PURE__*/ jsx(Accordion.Header, {
|
|
22
|
-
className:
|
|
22
|
+
className: clsx('byline-accordion-header', className),
|
|
23
23
|
...props,
|
|
24
24
|
ref: ref,
|
|
25
25
|
children: children
|
|
@@ -28,14 +28,14 @@ const Header = function({ ref, children, className, ...props }) {
|
|
|
28
28
|
const Trigger = function({ ref, children, className, ...props }) {
|
|
29
29
|
return /*#__PURE__*/ jsx(Accordion.Trigger, {
|
|
30
30
|
ref: ref,
|
|
31
|
-
className:
|
|
31
|
+
className: clsx('byline-accordion-trigger', accordion_module.trigger, className),
|
|
32
32
|
...props,
|
|
33
33
|
children: children
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
const Panel = function({ ref, children, className, ...props }) {
|
|
37
37
|
return /*#__PURE__*/ jsx(Accordion.Panel, {
|
|
38
|
-
className:
|
|
38
|
+
className: clsx('byline-accordion-content', accordion_module.content, className),
|
|
39
39
|
...props,
|
|
40
40
|
ref: ref,
|
|
41
41
|
children: children
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Avatar } from "@base-ui/react/avatar";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import avatar_module from "./avatar.module.js";
|
|
6
6
|
const url = 'https://picsum.photos/150';
|
|
7
7
|
const avatar_Avatar = ({ initials })=>/*#__PURE__*/ jsxs(Avatar.Root, {
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('byline-avatar-root', avatar_module["avatar-root"]),
|
|
9
9
|
children: [
|
|
10
10
|
/*#__PURE__*/ jsx(Avatar.Image, {
|
|
11
11
|
src: url,
|
|
12
12
|
alt: "Avatar",
|
|
13
|
-
className:
|
|
13
|
+
className: clsx('byline-avatar-image', avatar_module["avatar-image"])
|
|
14
14
|
}),
|
|
15
15
|
/*#__PURE__*/ jsx(Avatar.Fallback, {
|
|
16
|
-
className:
|
|
16
|
+
className: clsx('byline-avatar-fallback', avatar_module["avatar-fallback"]),
|
|
17
17
|
delay: 600,
|
|
18
18
|
children: /*#__PURE__*/ jsx("span", {
|
|
19
|
-
className:
|
|
19
|
+
className: clsx('byline-avatar-text', avatar_module["avatar-text"]),
|
|
20
20
|
children: initials
|
|
21
21
|
})
|
|
22
22
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import badge_module from "./badge.module.js";
|
|
4
4
|
const Badge = ({ className, intent = 'primary', children, render, ref, ...rest })=>{
|
|
5
5
|
const element = useRender({
|
|
@@ -8,7 +8,7 @@ const Badge = ({ className, intent = 'primary', children, render, ref, ...rest }
|
|
|
8
8
|
ref,
|
|
9
9
|
props: {
|
|
10
10
|
...rest,
|
|
11
|
-
className:
|
|
11
|
+
className: clsx('byline-badge', `byline-badge-${intent}`, badge_module.badge, badge_module[intent], className),
|
|
12
12
|
children
|
|
13
13
|
}
|
|
14
14
|
});
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import react from "react";
|
|
4
4
|
import { Toggle } from "@base-ui/react/toggle";
|
|
5
5
|
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
6
|
-
import
|
|
6
|
+
import clsx from "clsx";
|
|
7
7
|
import { Button } from "./button.js";
|
|
8
8
|
import button_group_module from "./button-group.module.js";
|
|
9
9
|
const ButtonGroupContext = /*#__PURE__*/ react.createContext({
|
|
@@ -32,7 +32,7 @@ const ButtonGroup = ({ className, variant = 'filled', size = 'md', ripple = true
|
|
|
32
32
|
value: normalizedValue,
|
|
33
33
|
ref: ref,
|
|
34
34
|
onValueChange: handleValueChange,
|
|
35
|
-
className:
|
|
35
|
+
className: clsx(button_group_module["button-group"], className),
|
|
36
36
|
...props,
|
|
37
37
|
children: /*#__PURE__*/ jsx(ButtonGroupContext, {
|
|
38
38
|
value: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { Ripple } from "../../lib/ripple.js";
|
|
6
6
|
import button_module from "./button.module.js";
|
|
7
7
|
const Button = ({ variant = 'filled', size = 'md', type = 'button', intent = 'primary', fullWidth = false, ripple = true, className, children, render, ref, ...rest })=>{
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
type,
|
|
10
|
-
className:
|
|
10
|
+
className: clsx('byline-button', `byline-button-${intent}`, `byline-button-${variant}`, `byline-button-${size}`, button_module.button, button_module[variant], button_module[size], button_module[intent], {
|
|
11
11
|
[button_module.fullWidth]: true === fullWidth
|
|
12
12
|
}, className),
|
|
13
13
|
children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import { ChevronDownIcon } from "../../icons/chevron-down-icon.js";
|
|
5
5
|
import { Dropdown } from "../dropdown/dropdown.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
@@ -10,13 +10,13 @@ const ComboButton = ({ options, onButtonClick, onOptionSelect, disabled = false,
|
|
|
10
10
|
const wrapperRef = useRef(null);
|
|
11
11
|
return /*#__PURE__*/ jsxs("div", {
|
|
12
12
|
ref: wrapperRef,
|
|
13
|
-
className:
|
|
13
|
+
className: clsx('combo-button-wrapper', combo_button_module["combo-button-wrapper"], className),
|
|
14
14
|
style: {
|
|
15
15
|
'--ring-color': `var(--ring-${intent})`
|
|
16
16
|
},
|
|
17
17
|
children: [
|
|
18
18
|
/*#__PURE__*/ jsx(Button, {
|
|
19
|
-
className:
|
|
19
|
+
className: clsx('combo-button-button', combo_button_module["combo-button-button"], buttonClassName),
|
|
20
20
|
disabled: disabled || buttonDisabled,
|
|
21
21
|
intent: intent,
|
|
22
22
|
...rest,
|
|
@@ -26,7 +26,7 @@ const ComboButton = ({ options, onButtonClick, onOptionSelect, disabled = false,
|
|
|
26
26
|
/*#__PURE__*/ jsxs(Dropdown.Root, {
|
|
27
27
|
children: [
|
|
28
28
|
/*#__PURE__*/ jsx(Dropdown.Trigger, {
|
|
29
|
-
className:
|
|
29
|
+
className: clsx('combo-button-trigger', combo_button_module["combo-button-trigger"], triggerClassName),
|
|
30
30
|
render: /*#__PURE__*/ jsx(Button, {
|
|
31
31
|
disabled: disabled || optionsDisabled,
|
|
32
32
|
intent: intent,
|
|
@@ -39,7 +39,7 @@ const ComboButton = ({ options, onButtonClick, onOptionSelect, disabled = false,
|
|
|
39
39
|
}),
|
|
40
40
|
options.length > 0 && /*#__PURE__*/ jsx(Dropdown.Portal, {
|
|
41
41
|
children: /*#__PURE__*/ jsx(Dropdown.Content, {
|
|
42
|
-
className:
|
|
42
|
+
className: clsx('combo-button-options', combo_button_module["combo-button-options"]),
|
|
43
43
|
align: align,
|
|
44
44
|
anchor: wrapperRef,
|
|
45
45
|
"data-side": dataSide,
|
|
@@ -47,15 +47,15 @@ const ComboButton = ({ options, onButtonClick, onOptionSelect, disabled = false,
|
|
|
47
47
|
children: options.map((option)=>/*#__PURE__*/ jsx(Dropdown.Item, {
|
|
48
48
|
onClick: ()=>onOptionSelect?.(option.value),
|
|
49
49
|
children: /*#__PURE__*/ jsxs("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: clsx('combo-button-options-item', combo_button_module["combo-button-options-item"]),
|
|
51
51
|
children: [
|
|
52
52
|
anyOptionHasIcon && /*#__PURE__*/ jsx("span", {
|
|
53
|
-
className:
|
|
53
|
+
className: clsx('combo-button-options-item-icon', combo_button_module["combo-button-options-item-icon"]),
|
|
54
54
|
"aria-hidden": "true",
|
|
55
55
|
children: option.icon
|
|
56
56
|
}),
|
|
57
57
|
/*#__PURE__*/ jsx("span", {
|
|
58
|
-
className:
|
|
58
|
+
className: clsx('combo-button-options-item-label', combo_button_module["combo-button-options-item-label"]),
|
|
59
59
|
children: option.label
|
|
60
60
|
})
|
|
61
61
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import control_buttons_module from "./control-buttons.module.js";
|
|
5
5
|
const DirectionalButton = ({ size = 'md', direction, className, onClick, ref, ...rest })=>{
|
|
6
6
|
const handleClick = ()=>{
|
|
@@ -12,7 +12,7 @@ const DirectionalButton = ({ size = 'md', direction, className, onClick, ref, ..
|
|
|
12
12
|
onClick: handleClick,
|
|
13
13
|
type: "button",
|
|
14
14
|
"aria-label": direction,
|
|
15
|
-
className:
|
|
15
|
+
className: clsx('byline-control-button', direction, size, control_buttons_module["directional-button"], control_buttons_module[direction], control_buttons_module[size], className),
|
|
16
16
|
children: /*#__PURE__*/ jsx("span", {
|
|
17
17
|
children: /*#__PURE__*/ jsx("svg", {
|
|
18
18
|
className: "icon",
|
|
@@ -37,7 +37,7 @@ const PlayButton = ({ size = 'md', className, onClick, ref, ...rest })=>{
|
|
|
37
37
|
onClick: handleClick,
|
|
38
38
|
type: "button",
|
|
39
39
|
"aria-label": "play",
|
|
40
|
-
className:
|
|
40
|
+
className: clsx('control-button', 'play', size, control_buttons_module["play-button"], control_buttons_module[size], className),
|
|
41
41
|
children: /*#__PURE__*/ jsx("span", {
|
|
42
42
|
children: /*#__PURE__*/ jsx("svg", {
|
|
43
43
|
className: "icon",
|
|
@@ -65,7 +65,7 @@ const StopButton = ({ size = 'md', className, onClick, ref, ...rest })=>{
|
|
|
65
65
|
onClick: handleClick,
|
|
66
66
|
type: "button",
|
|
67
67
|
"aria-label": "stop",
|
|
68
|
-
className:
|
|
68
|
+
className: clsx('control-button', 'stop', size, control_buttons_module["stop-button"], control_buttons_module[size], className),
|
|
69
69
|
children: /*#__PURE__*/ jsx("span", {
|
|
70
70
|
children: /*#__PURE__*/ jsx("svg", {
|
|
71
71
|
className: "icon",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
7
|
import copy_button_module from "./copy-button.module.js";
|
|
@@ -31,7 +31,7 @@ function CopyButton({ text, hoverText = 'Copy', copiedText = 'Copied!', variant,
|
|
|
31
31
|
]);
|
|
32
32
|
const tooltipText = copied ? copiedText : hoverText;
|
|
33
33
|
return /*#__PURE__*/ jsx("div", {
|
|
34
|
-
className:
|
|
34
|
+
className: clsx('byline-copy-button-container', copy_button_module["copy-button-container"], containerClassName),
|
|
35
35
|
children: /*#__PURE__*/ jsx(Tooltip, {
|
|
36
36
|
side: "top",
|
|
37
37
|
sideOffset: 2,
|
|
@@ -47,7 +47,7 @@ function CopyButton({ text, hoverText = 'Copy', copiedText = 'Copied!', variant,
|
|
|
47
47
|
intent: intent,
|
|
48
48
|
fullWidth: fullWidth,
|
|
49
49
|
ripple: ripple,
|
|
50
|
-
className:
|
|
50
|
+
className: clsx('byline-copy-button', `byline-copy-button-${variant}`, `byline-copy-button-${size}`, `byline-copy-button-${intent}`, copy_button_module[size], className),
|
|
51
51
|
onClick: handleCopied,
|
|
52
52
|
...rest,
|
|
53
53
|
children: /*#__PURE__*/ jsx("svg", {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
import button_module from "./button.module.js";
|
|
6
6
|
const IconButton = ({ square = false, round = true, variant, size = 'sm', intent, className, children, ...rest })=>/*#__PURE__*/ jsx(Button, {
|
|
7
7
|
variant: variant,
|
|
8
8
|
size: size,
|
|
9
9
|
intent: intent,
|
|
10
|
-
className:
|
|
10
|
+
className: clsx('icon-button', variant, size, intent, {
|
|
11
11
|
[button_module.square]: square
|
|
12
12
|
}, {
|
|
13
13
|
[button_module.round]: !square && round
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import card_module from "./card.module.js";
|
|
5
5
|
const Card = ({ className, hover, children, render, ref, ...rest })=>{
|
|
6
6
|
const hoverClasses = null != hover && true === hover ? card_module["card-hover"] : void 0;
|
|
7
|
-
const classes =
|
|
7
|
+
const classes = clsx('byline-card', card_module.card, hoverClasses, className);
|
|
8
8
|
const element = useRender({
|
|
9
9
|
defaultTagName: 'div',
|
|
10
10
|
render,
|
|
@@ -20,31 +20,31 @@ const Card = ({ className, hover, children, render, ref, ...rest })=>{
|
|
|
20
20
|
Card.displayName = 'Card';
|
|
21
21
|
const Header = ({ className, ref, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
22
22
|
ref: ref,
|
|
23
|
-
className:
|
|
23
|
+
className: clsx('byline-card-header', card_module["card-header"], className),
|
|
24
24
|
...props
|
|
25
25
|
});
|
|
26
26
|
Header.displayName = 'CardHeader';
|
|
27
27
|
const Title = ({ className, ref, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
28
28
|
ref: ref,
|
|
29
|
-
className:
|
|
29
|
+
className: clsx('byline-card-title', card_module["card-title"], className),
|
|
30
30
|
...props
|
|
31
31
|
});
|
|
32
32
|
Title.displayName = 'CardTitle';
|
|
33
33
|
const Description = ({ className, ref, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
34
34
|
ref: ref,
|
|
35
|
-
className:
|
|
35
|
+
className: clsx("byline-card-description", card_module["card-description"], className),
|
|
36
36
|
...props
|
|
37
37
|
});
|
|
38
38
|
Description.displayName = "CardDescription";
|
|
39
39
|
const Content = ({ className, ref, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
40
40
|
ref: ref,
|
|
41
|
-
className:
|
|
41
|
+
className: clsx('byline-card-content', card_module["card-content"], className),
|
|
42
42
|
...props
|
|
43
43
|
});
|
|
44
44
|
Content.displayName = 'CardContent';
|
|
45
45
|
const Footer = ({ className, ref, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
46
46
|
ref: ref,
|
|
47
|
-
className:
|
|
47
|
+
className: clsx('byline-card-footer', card_module["card-footer"], className),
|
|
48
48
|
...props
|
|
49
49
|
});
|
|
50
50
|
Footer.displayName = 'CardFooter';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import { CheckIcon } from "../../icons/check-icon.js";
|
|
7
7
|
import { CloseIcon } from "../../icons/close-icon.js";
|
|
8
8
|
import chip_module from "./chip.module.js";
|
|
@@ -54,7 +54,7 @@ const Chip = ({ variant = 'assist', intent = 'primary', size = 'md', selected =
|
|
|
54
54
|
onClick: handleRemoveClick,
|
|
55
55
|
onKeyDown: handleRemoveKeyDown,
|
|
56
56
|
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
57
|
-
className:
|
|
57
|
+
className: clsx('byline-chip-close-icon', chip_module.icon, chip_module["close-icon"])
|
|
58
58
|
})
|
|
59
59
|
}) : endIcon;
|
|
60
60
|
const appliedVariant = isSelected ? 'filled' : 'outlined';
|
|
@@ -65,7 +65,7 @@ const Chip = ({ variant = 'assist', intent = 'primary', size = 'md', selected =
|
|
|
65
65
|
'aria-disabled': disabled || void 0,
|
|
66
66
|
'aria-pressed': isSelectable ? isSelected : void 0,
|
|
67
67
|
'aria-selected': isSelectable ? isSelected : void 0,
|
|
68
|
-
className:
|
|
68
|
+
className: clsx('byline-chip', `byline-chip-${variant}`, `byline-chip-${intent}`, `byline-chip-${size}`, {
|
|
69
69
|
selected: isSelected,
|
|
70
70
|
disabled,
|
|
71
71
|
removable: isRemovable
|
|
@@ -76,15 +76,15 @@ const Chip = ({ variant = 'assist', intent = 'primary', size = 'md', selected =
|
|
|
76
76
|
children: /*#__PURE__*/ jsxs(Fragment, {
|
|
77
77
|
children: [
|
|
78
78
|
null != leadingIcon && /*#__PURE__*/ jsx("span", {
|
|
79
|
-
className:
|
|
79
|
+
className: clsx('byline-chip-icon-wrapper', chip_module.iconWrapper),
|
|
80
80
|
children: leadingIcon
|
|
81
81
|
}),
|
|
82
82
|
/*#__PURE__*/ jsx("span", {
|
|
83
|
-
className:
|
|
83
|
+
className: clsx('byline-chip-label', chip_module.label),
|
|
84
84
|
children: children
|
|
85
85
|
}),
|
|
86
86
|
null != trailingIcon && /*#__PURE__*/ jsx("span", {
|
|
87
|
-
className:
|
|
87
|
+
className: clsx('byline-chip-icon-wrapper', chip_module.iconWrapper),
|
|
88
88
|
children: trailingIcon
|
|
89
89
|
})
|
|
90
90
|
]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import container_module from "./container.module.js";
|
|
4
4
|
const container_Container = function({ ref, className, children, ...rest }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("div", {
|
|
6
6
|
ref: ref,
|
|
7
7
|
...rest,
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('byline-container', container_module.container, className),
|
|
9
9
|
children: children
|
|
10
10
|
});
|
|
11
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Menu } from "@base-ui/react/menu";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import dropdown_module from "./dropdown.module.js";
|
|
6
6
|
function Root({ children, ...rest }) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Menu.Root, {
|
|
@@ -10,7 +10,7 @@ function Root({ children, ...rest }) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
const Trigger = ({ ref, className, children, ...rest })=>/*#__PURE__*/ jsx(Menu.Trigger, {
|
|
13
|
-
className:
|
|
13
|
+
className: clsx('byline-dropdown-trigger', className),
|
|
14
14
|
ref: ref,
|
|
15
15
|
...rest,
|
|
16
16
|
children: children
|
|
@@ -31,7 +31,7 @@ const Content = ({ ref, className, children, side, sideOffset, align, alignOffse
|
|
|
31
31
|
anchor: anchor,
|
|
32
32
|
children: /*#__PURE__*/ jsx(Menu.Popup, {
|
|
33
33
|
ref: ref,
|
|
34
|
-
className:
|
|
34
|
+
className: clsx('byline-dropdown-content', dropdown_module["dropdown-content"], className),
|
|
35
35
|
...rest,
|
|
36
36
|
children: children
|
|
37
37
|
})
|
|
@@ -39,28 +39,28 @@ const Content = ({ ref, className, children, side, sideOffset, align, alignOffse
|
|
|
39
39
|
Content.displayName = 'Content';
|
|
40
40
|
const Group = ({ ref, className, children, ...rest })=>/*#__PURE__*/ jsx(Menu.Group, {
|
|
41
41
|
ref: ref,
|
|
42
|
-
className:
|
|
42
|
+
className: clsx('byline-dropdown-group', className),
|
|
43
43
|
...rest,
|
|
44
44
|
children: children
|
|
45
45
|
});
|
|
46
46
|
Group.displayName = 'Group';
|
|
47
47
|
const Item = ({ ref, className, children, ...rest })=>/*#__PURE__*/ jsx(Menu.Item, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
className:
|
|
49
|
+
className: clsx('byline-dropdown-item', dropdown_module["dropdown-item"], className),
|
|
50
50
|
...rest,
|
|
51
51
|
children: children
|
|
52
52
|
});
|
|
53
53
|
Item.displayName = 'Item';
|
|
54
54
|
const Label = ({ ref, className, children, ...rest })=>/*#__PURE__*/ jsx(Menu.GroupLabel, {
|
|
55
55
|
ref: ref,
|
|
56
|
-
className:
|
|
56
|
+
className: clsx('byline-dropdown-label', className),
|
|
57
57
|
...rest,
|
|
58
58
|
children: children
|
|
59
59
|
});
|
|
60
60
|
Label.displayName = 'Label';
|
|
61
61
|
const Separator = ({ ref, className, ...props })=>/*#__PURE__*/ jsx(Menu.Separator, {
|
|
62
62
|
ref: ref,
|
|
63
|
-
className:
|
|
63
|
+
className: clsx('byline-dropdown-separator', dropdown_module["dropdown-separator"], className),
|
|
64
64
|
...props
|
|
65
65
|
});
|
|
66
66
|
Separator.displayName = 'Separator';
|
|
@@ -78,7 +78,7 @@ const SubContent = ({ ref, className, children, side, sideOffset, align, alignOf
|
|
|
78
78
|
collisionPadding: collisionPadding,
|
|
79
79
|
children: /*#__PURE__*/ jsx(Menu.Popup, {
|
|
80
80
|
ref: ref,
|
|
81
|
-
className:
|
|
81
|
+
className: clsx('byline-dropdown-subcontent', dropdown_module["dropdown-subcontent"], className),
|
|
82
82
|
...rest,
|
|
83
83
|
children: children
|
|
84
84
|
})
|
|
@@ -86,7 +86,7 @@ const SubContent = ({ ref, className, children, side, sideOffset, align, alignOf
|
|
|
86
86
|
SubContent.displayName = 'SubContent';
|
|
87
87
|
const SubTrigger = ({ ref, className, children, ...rest })=>/*#__PURE__*/ jsx(Menu.SubmenuTrigger, {
|
|
88
88
|
ref: ref,
|
|
89
|
-
className:
|
|
89
|
+
className: clsx('byline-dropdown-subtrigger', className),
|
|
90
90
|
...rest,
|
|
91
91
|
children: children
|
|
92
92
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect } from "react";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import hamburger_module from "./hamburger.module.js";
|
|
6
6
|
function Hamburger({ className, colorScheme = 'auto', open = false, onChange, ariaLabel = 'Toggle menu', ariaControls, ...other }) {
|
|
7
7
|
const handleClick = (event)=>{
|
|
@@ -25,7 +25,7 @@ function Hamburger({ className, colorScheme = 'auto', open = false, onChange, ar
|
|
|
25
25
|
return /*#__PURE__*/ jsx("button", {
|
|
26
26
|
type: "button",
|
|
27
27
|
onClick: handleClick,
|
|
28
|
-
className:
|
|
28
|
+
className: clsx('byline-hamburger', hamburger_module.hamburger, {
|
|
29
29
|
[hamburger_module.open]: open,
|
|
30
30
|
[hamburger_module.onDark]: 'onDark' === colorScheme,
|
|
31
31
|
[hamburger_module.onLight]: 'onLight' === colorScheme
|
|
@@ -35,10 +35,10 @@ function Hamburger({ className, colorScheme = 'auto', open = false, onChange, ar
|
|
|
35
35
|
"aria-expanded": open,
|
|
36
36
|
...other,
|
|
37
37
|
children: /*#__PURE__*/ jsx("span", {
|
|
38
|
-
className:
|
|
38
|
+
className: clsx('byline-hamburger-box', hamburger_module.box),
|
|
39
39
|
"aria-hidden": "true",
|
|
40
40
|
children: /*#__PURE__*/ jsx("span", {
|
|
41
|
-
className:
|
|
41
|
+
className: clsx('byline-hamburger-inner', hamburger_module.inner)
|
|
42
42
|
})
|
|
43
43
|
})
|
|
44
44
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import autocomplete_module from "./autocomplete.module.js";
|
|
6
6
|
import { ErrorText } from "./error-text.js";
|
|
7
7
|
import { HelpText } from "./help-text.js";
|
|
8
8
|
import { Label } from "./label.js";
|
|
9
9
|
function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize = 'md', intent = 'primary', required, placeholder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', emptyText = 'No results found.', className, inputClassName, wrapperClassName, items, children, sideOffset = 4, ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className:
|
|
11
|
+
className: clsx('byline-autocomplete-wrapper', autocomplete_module["autocomplete-wrapper"], wrapperClassName),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs(Autocomplete.Root, {
|
|
14
14
|
items: items,
|
|
@@ -29,23 +29,23 @@ function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize
|
|
|
29
29
|
"aria-required": required,
|
|
30
30
|
"aria-errormessage": error ? errorText : void 0,
|
|
31
31
|
"aria-describedby": error ? `error-for-${id}` : void 0,
|
|
32
|
-
className:
|
|
32
|
+
className: clsx('byline-autocomplete-input', `byline-autocomplete-input-${variant}`, `byline-autocomplete-input-${inputSize}`, `byline-autocomplete-input-${intent}`, autocomplete_module.input, autocomplete_module[variant], autocomplete_module[inputSize], autocomplete_module[intent], {
|
|
33
33
|
[autocomplete_module.error]: error
|
|
34
34
|
}, className, inputClassName)
|
|
35
35
|
}),
|
|
36
36
|
/*#__PURE__*/ jsx(Autocomplete.Portal, {
|
|
37
37
|
children: /*#__PURE__*/ jsx(Autocomplete.Positioner, {
|
|
38
|
-
className:
|
|
38
|
+
className: clsx('byline-autocomplete-positioner', autocomplete_module.positioner),
|
|
39
39
|
sideOffset: sideOffset,
|
|
40
40
|
children: /*#__PURE__*/ jsxs(Autocomplete.Popup, {
|
|
41
|
-
className:
|
|
41
|
+
className: clsx('byline-autocomplete-popup', autocomplete_module.popup, null != inputSize && autocomplete_module[`popup-${inputSize}`]),
|
|
42
42
|
children: [
|
|
43
43
|
/*#__PURE__*/ jsx(Autocomplete.Empty, {
|
|
44
|
-
className:
|
|
44
|
+
className: clsx('byline-autocomplete-empty', autocomplete_module.empty),
|
|
45
45
|
children: emptyText
|
|
46
46
|
}),
|
|
47
47
|
/*#__PURE__*/ jsx(Autocomplete.List, {
|
|
48
|
-
className:
|
|
48
|
+
className: clsx('byline-autocomplete-list', autocomplete_module.list),
|
|
49
49
|
children: children
|
|
50
50
|
})
|
|
51
51
|
]
|
|
@@ -66,7 +66,7 @@ function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
const AutocompleteItem = ({ ref: forwardedRef, children, className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.Item, {
|
|
69
|
-
className:
|
|
69
|
+
className: clsx('byline-autocomplete-item', autocomplete_module["autocomplete-item"], className),
|
|
70
70
|
...props,
|
|
71
71
|
ref: forwardedRef,
|
|
72
72
|
children: children
|
|
@@ -74,13 +74,13 @@ const AutocompleteItem = ({ ref: forwardedRef, children, className, ...props })=
|
|
|
74
74
|
AutocompleteItem.displayName = 'AutocompleteItem';
|
|
75
75
|
const AutocompleteGroup = Autocomplete.Group;
|
|
76
76
|
const AutocompleteGroupLabel = ({ children, className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.GroupLabel, {
|
|
77
|
-
className:
|
|
77
|
+
className: clsx('byline-autocomplete-group-label', autocomplete_module["group-label"], className),
|
|
78
78
|
...props,
|
|
79
79
|
children: children
|
|
80
80
|
});
|
|
81
81
|
AutocompleteGroupLabel.displayName = 'AutocompleteGroupLabel';
|
|
82
82
|
const AutocompleteSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.Separator, {
|
|
83
|
-
className:
|
|
83
|
+
className: clsx('byline-autocomplete-separator', autocomplete_module.separator, className),
|
|
84
84
|
...props
|
|
85
85
|
});
|
|
86
86
|
AutocompleteSeparator.displayName = 'AutocompleteSeparator';
|