@wavv/ui 2.3.11 → 2.3.13

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.
@@ -26,8 +26,9 @@ declare const Accordion: {
26
26
  displayName: string;
27
27
  };
28
28
  Header: {
29
- ({ children, triggerIconPosition, background, title, iconLeft, iconRight, ...props }: {
29
+ ({ children, triggerIconPosition, background, title, subtitle, iconLeft, iconRight, ...props }: {
30
30
  title: React.ReactNode;
31
+ subtitle?: React.ReactNode;
31
32
  children?: React.ReactNode;
32
33
  background?: string;
33
34
  triggerIconPosition?: "left" | "right";
@@ -5,6 +5,8 @@ type ElAttributes = Omit<Attributes<HTMLDivElement>, 'title'>;
5
5
  type HeaderProps = {
6
6
  /** The header title of the item */
7
7
  title: React.ReactNode;
8
+ /** The subtitle of the item */
9
+ subtitle?: React.ReactNode;
8
10
  /** The content of the item (displayed to the right of the title) */
9
11
  children?: React.ReactNode;
10
12
  /** The background color of the header */
@@ -19,7 +21,7 @@ type HeaderProps = {
19
21
  style?: React.CSSProperties;
20
22
  } & Padding & Height & ElAttributes;
21
23
  declare const Header: {
22
- ({ children, triggerIconPosition, background, title, iconLeft, iconRight, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
24
+ ({ children, triggerIconPosition, background, title, subtitle, iconLeft, iconRight, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
23
25
  displayName: string;
24
26
  };
25
27
  export default Header;
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import styled from "@emotion/styled";
3
3
  import { useRef } from "react";
4
- import { Heading } from "react-aria-components";
4
+ import { Heading, Text } from "react-aria-components";
5
5
  import Ellipsis from "../Ellipsis.js";
6
6
  import getIcon from "../helpers/getIcon.js";
7
7
  import isPropAllowed from "../helpers/isPropAllowed.js";
8
8
  import { paddingProps } from "../helpers/styledProps.js";
9
9
  import Icon from "../Icon/index.js";
10
10
  import AriaButton from "../Inputs/helpers/AriaButton.js";
11
- const Header = ({ children, triggerIconPosition = 'right', background, title, iconLeft, iconRight, ...props })=>{
11
+ const Header = ({ children, triggerIconPosition = 'right', background, title, subtitle, iconLeft, iconRight, ...props })=>{
12
12
  const triggerRef = useRef(null);
13
13
  return /*#__PURE__*/ jsxs(HeaderContainer, {
14
14
  onClick: ()=>triggerRef.current?.click(),
@@ -21,13 +21,20 @@ const Header = ({ children, triggerIconPosition = 'right', background, title, ic
21
21
  }),
22
22
  iconLeft && getIcon(iconLeft),
23
23
  /*#__PURE__*/ jsx(Title, {
24
- children: /*#__PURE__*/ jsx(AriaButton, {
24
+ children: /*#__PURE__*/ jsxs(TitleButton, {
25
25
  slot: "trigger",
26
26
  ref: triggerRef,
27
27
  width: "100%",
28
- children: /*#__PURE__*/ jsx(Ellipsis, {
29
- children: title
30
- })
28
+ children: [
29
+ /*#__PURE__*/ jsx(Ellipsis, {
30
+ children: title
31
+ }),
32
+ subtitle && /*#__PURE__*/ jsx(Subtitle, {
33
+ children: /*#__PURE__*/ jsx(Ellipsis, {
34
+ children: subtitle
35
+ })
36
+ })
37
+ ]
31
38
  })
32
39
  }),
33
40
  /*#__PURE__*/ jsx(Content, {
@@ -58,6 +65,11 @@ const HeaderContainer = styled.div(({ theme, background, height })=>({
58
65
  transition: 'transform 300ms'
59
66
  }
60
67
  }), paddingProps);
68
+ const TitleButton = styled(AriaButton)({
69
+ display: 'flex',
70
+ alignItems: 'flex-start',
71
+ gap: 8
72
+ });
61
73
  const Title = styled(Heading, {
62
74
  shouldForwardProp: (prop)=>isPropAllowed(prop, [
63
75
  'reverse',
@@ -76,6 +88,10 @@ const Title = styled(Heading, {
76
88
  textAlign: 'left',
77
89
  overflow: 'hidden'
78
90
  }));
91
+ const Subtitle = styled(Text)(({ theme })=>({
92
+ fontSize: theme.font.size.md,
93
+ color: theme.scale6
94
+ }));
79
95
  const Content = styled.div({
80
96
  display: 'flex',
81
97
  alignItems: 'center',
@@ -35,6 +35,7 @@ const Avatar = ({ size = 32, url, icon, initials, acceptedFileTypes, onSelect, o
35
35
  })
36
36
  }),
37
37
  hasUpload && /*#__PURE__*/ jsxs(ButtonContainer, {
38
+ className: "upload-container",
38
39
  children: [
39
40
  /*#__PURE__*/ jsx(FileTrigger, {
40
41
  acceptedFileTypes: acceptedFileTypes,
@@ -95,11 +96,9 @@ const AvatarContainer = styled.div(({ theme, size, isImage, isPlaceholder })=>{
95
96
  ...isImage && {
96
97
  backgroundColor: 'transparent'
97
98
  },
98
- '&:hover': {
99
- [`${ButtonContainer}`]: {
100
- opacity: 1,
101
- visibility: 'visible'
102
- }
99
+ '&:hover .upload-container': {
100
+ opacity: 1,
101
+ visibility: 'visible'
103
102
  }
104
103
  };
105
104
  }, marginProps, paddingProps);
@@ -52,7 +52,7 @@ declare const DropdownMenu: {
52
52
  title?: string;
53
53
  children: ReactNode;
54
54
  }) => import("react/jsx-runtime").JSX.Element;
55
- Separator: import("@emotion/styled").StyledComponent<import("react-aria-components").SeparatorProps & import("react").RefAttributes<object> & {
55
+ Separator: import("@emotion/styled").StyledComponent<import("react-aria-components").SeparatorProps & import("react").RefAttributes<HTMLElement> & {
56
56
  theme?: import("@emotion/react").Theme;
57
57
  } & ThemeProp, {}, {}>;
58
58
  };
@@ -8,10 +8,10 @@ import icons from "./icons.js";
8
8
  const Icon = ({ name, svg, external, size, width, height, color, hoverColor, pointer = false, animation, style, onClick, ref, ...props })=>{
9
9
  let SvgComponent = null;
10
10
  let svgContent = null;
11
- let iconName;
11
+ let WrappedIconComponent = null;
12
12
  if (name) {
13
13
  if (name in customIcons) SvgComponent = customIcons[name];
14
- else if (name in icons) iconName = icons[name];
14
+ else if (name in icons) WrappedIconComponent = icons[name];
15
15
  } else if (svg) {
16
16
  let element = svg;
17
17
  if ('function' == typeof svg) element = svg();
@@ -29,10 +29,21 @@ const Icon = ({ name, svg, external, size, width, height, color, hoverColor, poi
29
29
  };
30
30
  let iconSize = 'number' == typeof size ? size : iconSizes.medium;
31
31
  if ('tiny' === size || 'small' === size || 'medium' === size || 'large' === size) iconSize = iconSizes[size];
32
- const finalLucideName = external ?? iconName;
33
- if (!SvgComponent && finalLucideName) return /*#__PURE__*/ jsx(DynamicIcon, {
32
+ if (external) return /*#__PURE__*/ jsx(DynamicIcon, {
33
+ ...props,
34
+ name: external,
35
+ size: iconSize,
36
+ pointer: pointer,
37
+ hoverColor: hoverColor,
38
+ color: color,
39
+ style: style,
40
+ onClick: onClick,
41
+ tabIndex: onClick ? 0 : void 0,
42
+ animation: animation,
43
+ ref: ref
44
+ });
45
+ if (WrappedIconComponent) return /*#__PURE__*/ jsx(WrappedIconComponent, {
34
46
  ...props,
35
- name: finalLucideName,
36
47
  size: iconSize,
37
48
  pointer: pointer,
38
49
  hoverColor: hoverColor,
@@ -0,0 +1,22 @@
1
+ import type { LucideProps } from 'lucide-react';
2
+ import type { ComponentType, Ref } from 'react';
3
+ import type { Margin } from '../types';
4
+ export type WrappedIconProps = {
5
+ /** Sets the color of the icon */
6
+ color?: string;
7
+ /** Sets the color of the icon when hovered */
8
+ hoverColor?: string;
9
+ /** Sets the width and height of the icon */
10
+ size?: number;
11
+ /** Sets the cursor as a pointer when hovered */
12
+ pointer?: boolean;
13
+ /** CSS Animation shorthand property */
14
+ animation?: string;
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onClick?: () => void;
18
+ tabIndex?: number;
19
+ ref?: Ref<SVGSVGElement>;
20
+ } & Margin;
21
+ declare const createWrappedIcon: <T extends ComponentType<LucideProps>>(IconComponent: T) => ComponentType<WrappedIconProps>;
22
+ export default createWrappedIcon;
@@ -0,0 +1,52 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import styled from "@emotion/styled";
3
+ import isPropAllowed from "../helpers/isPropAllowed.js";
4
+ import { marginProps } from "../helpers/styledProps.js";
5
+ const createWrappedIcon = (IconComponent)=>{
6
+ const StyledIcon = styled(IconComponent, {
7
+ shouldForwardProp: (prop)=>isPropAllowed(prop, [
8
+ 'pointer',
9
+ 'hoverColor',
10
+ 'margin',
11
+ 'marginLeft',
12
+ 'marginRight',
13
+ 'marginTop',
14
+ 'marginBottom'
15
+ ])
16
+ })(({ theme, hoverColor, pointer, animation, size })=>({
17
+ display: 'flex',
18
+ width: size,
19
+ height: size,
20
+ minWidth: size,
21
+ minHeight: size,
22
+ cursor: pointer ? 'pointer' : 'inherit',
23
+ animation,
24
+ outline: 'none',
25
+ '&:hover': {
26
+ stroke: hoverColor
27
+ },
28
+ '&:focus-visible': {
29
+ outline: `${theme.accent} solid 1px`,
30
+ outlineOffset: -1
31
+ }
32
+ }), marginProps);
33
+ const WrappedIcon = ({ size, onClick, color, ...props })=>{
34
+ const handleKeyDown = (event)=>{
35
+ if ('Enter' === event.key || ' ' === event.key) {
36
+ event.preventDefault();
37
+ onClick?.();
38
+ }
39
+ };
40
+ return /*#__PURE__*/ jsx(StyledIcon, {
41
+ ...props,
42
+ size: size,
43
+ strokeWidth: 1.5,
44
+ color: color,
45
+ onClick: onClick,
46
+ onKeyDown: onClick ? handleKeyDown : void 0
47
+ });
48
+ };
49
+ return WrappedIcon;
50
+ };
51
+ const Icon_createWrappedIcon = createWrappedIcon;
52
+ export { Icon_createWrappedIcon as default };
@@ -1,145 +1,147 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { WrappedIconProps } from './createWrappedIcon';
1
3
  declare const icons: {
2
- readonly 'activity-history': "id-card";
3
- readonly add: "plus";
4
- readonly 'add-circle': "circle-plus";
5
- readonly 'arrow-down': "arrow-down";
6
- readonly 'arrow-left': "arrow-left";
7
- readonly 'arrow-right': "arrow-right";
8
- readonly 'arrow-up': "arrow-up";
9
- readonly attachment: "paperclip";
10
- readonly auto: "refresh-ccw-dot";
11
- readonly bell: "bell";
12
- readonly 'bell-dot': "bell-dot";
13
- readonly blockquote: "text-quote";
14
- readonly bold: "bold";
15
- readonly bot: "bot";
16
- readonly bug: "bug";
17
- readonly bulb: "lightbulb";
18
- readonly calendar: "calendar-days";
19
- readonly camera: "camera";
20
- readonly card: "credit-card";
21
- readonly check: "check";
22
- readonly 'check-badge': "badge-check";
23
- readonly 'check-circle': "circle-check";
24
- readonly 'chevron-down': "chevron-down";
25
- readonly 'chevron-left': "chevron-left";
26
- readonly 'chevron-right': "chevron-right";
27
- readonly 'chevron-up': "chevron-up";
28
- readonly circle: "circle";
29
- readonly clapperboard: "clapperboard";
30
- readonly close: "x";
31
- readonly 'close-circle': "circle-x";
32
- readonly copy: "copy";
33
- readonly 'copy-check': "copy-check";
34
- readonly 'copy-plus': "copy-plus";
35
- readonly cycle: "refresh-cw";
36
- readonly dash: "minus";
37
- readonly devices: "monitor-smartphone";
38
- readonly 'double-arrow-left': "chevrons-left";
39
- readonly 'double-arrow-right': "chevrons-right";
40
- readonly download: "download";
41
- readonly drag: "grip-vertical";
42
- readonly edit: "pencil";
43
- readonly 'emoji-happy': "smile";
44
- readonly 'emoji-neutral': "meh";
45
- readonly 'emoji-sad': "frown";
46
- readonly 'eye-off': "eye-off";
47
- readonly 'eye-on': "eye";
48
- readonly facebook: "facebook";
49
- readonly filter: "list-filter";
50
- readonly flag: "flag";
51
- readonly flask: "flask-conical";
52
- readonly funnel: "funnel";
53
- readonly globe: "globe";
54
- readonly group: "users";
55
- readonly hash: "hash";
56
- readonly heading: "heading";
57
- readonly 'heading-1': "heading-1";
58
- readonly 'heading-2': "heading-2";
59
- readonly 'heading-3': "heading-3";
60
- readonly 'heading-4': "heading-4";
61
- readonly 'heading-5': "heading-5";
62
- readonly 'heading-6': "heading-6";
63
- readonly headset: "headset";
64
- readonly hearing: "ear";
65
- readonly heart: "heart";
66
- readonly help: "circle-question-mark";
67
- readonly highlight: "highlighter";
68
- readonly home: "house";
69
- readonly hourglass: "hourglass";
70
- readonly info: "info";
71
- readonly instagram: "instagram";
72
- readonly italic: "italic";
73
- readonly join: "log-in";
74
- readonly 'kebab-menu': "ellipsis-vertical";
75
- readonly kanban: "kanban";
76
- readonly 'layout-dashboard': "layout-dashboard";
77
- readonly link: "link";
78
- readonly linkedin: "linkedin";
79
- readonly 'list-bullet': "list";
80
- readonly 'list-checks': "list-checks";
81
- readonly 'list-ordered': "list-ordered";
82
- readonly 'list-task': "list-todo";
83
- readonly loading: "loader";
84
- readonly 'local-area': "map-pinned";
85
- readonly location: "map-pin";
86
- readonly logout: "log-out";
87
- readonly maximize: "maximize-2";
88
- readonly menu: "menu";
89
- readonly merge: "merge";
90
- readonly 'merge-field': "braces";
91
- readonly message: "message-square-more";
92
- readonly mic: "mic";
93
- readonly 'mic-off': "mic-off";
94
- readonly minimize: "minimize-2";
95
- readonly mobile: "smartphone";
96
- readonly 'not-allowed': "ban";
97
- readonly notes: "notebook-pen";
98
- readonly open: "external-link";
99
- readonly paragraph: "pilcrow";
100
- readonly pause: "pause";
101
- readonly 'pause-circle': "circle-pause";
102
- readonly person: "user-round";
103
- readonly 'person-add': "user-round-plus";
104
- readonly play: "play";
105
- readonly 'play-circle': "circle-play";
106
- readonly priority: "arrow-up-wide-narrow";
107
- readonly 'profile-user': "circle-user-round";
108
- readonly redo: "redo";
109
- readonly refresh: "rotate-cw";
110
- readonly rocket: "rocket";
111
- readonly schedule: "clock";
112
- readonly search: "search";
113
- readonly settings: "settings";
114
- readonly share: "share-2";
115
- readonly 'share-arrow': "share";
116
- readonly shield: "shield";
117
- readonly 'shield-check': "shield-check";
118
- readonly 'shield-health': "shield-plus";
119
- readonly 'shield-slash': "shield-off";
120
- readonly sort: "arrow-down-wide-narrow";
121
- readonly 'sort-arrows': "chevrons-up-down";
122
- readonly 'square-stack': "square-stack";
123
- readonly stack: "layers-2";
124
- readonly star: "star";
125
- readonly stars: "sparkles";
126
- readonly stats: "chart-column";
127
- readonly stop: "square";
128
- readonly 'stop-circle': "circle-stop";
129
- readonly strikethrough: "strikethrough";
130
- readonly template: "file-text";
131
- readonly transfer: "arrow-right-left";
132
- readonly trash: "trash-2";
133
- readonly trophy: "trophy";
134
- readonly underline: "underline";
135
- readonly undo: "undo";
136
- readonly upload: "upload";
137
- readonly video: "video";
138
- readonly voicemail: "voicemail";
139
- readonly 'vol-on': "volume-2";
140
- readonly warning: "triangle-alert";
141
- readonly 'warning-circle': "circle-alert";
142
- readonly youtube: "youtube";
4
+ readonly 'activity-history': ComponentType<WrappedIconProps>;
5
+ readonly add: ComponentType<WrappedIconProps>;
6
+ readonly 'add-circle': ComponentType<WrappedIconProps>;
7
+ readonly 'arrow-down': ComponentType<WrappedIconProps>;
8
+ readonly 'arrow-left': ComponentType<WrappedIconProps>;
9
+ readonly 'arrow-right': ComponentType<WrappedIconProps>;
10
+ readonly 'arrow-up': ComponentType<WrappedIconProps>;
11
+ readonly attachment: ComponentType<WrappedIconProps>;
12
+ readonly auto: ComponentType<WrappedIconProps>;
13
+ readonly bell: ComponentType<WrappedIconProps>;
14
+ readonly 'bell-dot': ComponentType<WrappedIconProps>;
15
+ readonly blockquote: ComponentType<WrappedIconProps>;
16
+ readonly bold: ComponentType<WrappedIconProps>;
17
+ readonly bot: ComponentType<WrappedIconProps>;
18
+ readonly bug: ComponentType<WrappedIconProps>;
19
+ readonly bulb: ComponentType<WrappedIconProps>;
20
+ readonly calendar: ComponentType<WrappedIconProps>;
21
+ readonly camera: ComponentType<WrappedIconProps>;
22
+ readonly card: ComponentType<WrappedIconProps>;
23
+ readonly check: ComponentType<WrappedIconProps>;
24
+ readonly 'check-badge': ComponentType<WrappedIconProps>;
25
+ readonly 'check-circle': ComponentType<WrappedIconProps>;
26
+ readonly 'chevron-down': ComponentType<WrappedIconProps>;
27
+ readonly 'chevron-left': ComponentType<WrappedIconProps>;
28
+ readonly 'chevron-right': ComponentType<WrappedIconProps>;
29
+ readonly 'chevron-up': ComponentType<WrappedIconProps>;
30
+ readonly circle: ComponentType<WrappedIconProps>;
31
+ readonly clapperboard: ComponentType<WrappedIconProps>;
32
+ readonly close: ComponentType<WrappedIconProps>;
33
+ readonly 'close-circle': ComponentType<WrappedIconProps>;
34
+ readonly copy: ComponentType<WrappedIconProps>;
35
+ readonly 'copy-check': ComponentType<WrappedIconProps>;
36
+ readonly 'copy-plus': ComponentType<WrappedIconProps>;
37
+ readonly cycle: ComponentType<WrappedIconProps>;
38
+ readonly dash: ComponentType<WrappedIconProps>;
39
+ readonly devices: ComponentType<WrappedIconProps>;
40
+ readonly 'double-arrow-left': ComponentType<WrappedIconProps>;
41
+ readonly 'double-arrow-right': ComponentType<WrappedIconProps>;
42
+ readonly download: ComponentType<WrappedIconProps>;
43
+ readonly drag: ComponentType<WrappedIconProps>;
44
+ readonly edit: ComponentType<WrappedIconProps>;
45
+ readonly 'emoji-happy': ComponentType<WrappedIconProps>;
46
+ readonly 'emoji-neutral': ComponentType<WrappedIconProps>;
47
+ readonly 'emoji-sad': ComponentType<WrappedIconProps>;
48
+ readonly 'eye-off': ComponentType<WrappedIconProps>;
49
+ readonly 'eye-on': ComponentType<WrappedIconProps>;
50
+ readonly facebook: ComponentType<WrappedIconProps>;
51
+ readonly filter: ComponentType<WrappedIconProps>;
52
+ readonly flag: ComponentType<WrappedIconProps>;
53
+ readonly flask: ComponentType<WrappedIconProps>;
54
+ readonly funnel: ComponentType<WrappedIconProps>;
55
+ readonly globe: ComponentType<WrappedIconProps>;
56
+ readonly group: ComponentType<WrappedIconProps>;
57
+ readonly hash: ComponentType<WrappedIconProps>;
58
+ readonly heading: ComponentType<WrappedIconProps>;
59
+ readonly 'heading-1': ComponentType<WrappedIconProps>;
60
+ readonly 'heading-2': ComponentType<WrappedIconProps>;
61
+ readonly 'heading-3': ComponentType<WrappedIconProps>;
62
+ readonly 'heading-4': ComponentType<WrappedIconProps>;
63
+ readonly 'heading-5': ComponentType<WrappedIconProps>;
64
+ readonly 'heading-6': ComponentType<WrappedIconProps>;
65
+ readonly headset: ComponentType<WrappedIconProps>;
66
+ readonly hearing: ComponentType<WrappedIconProps>;
67
+ readonly heart: ComponentType<WrappedIconProps>;
68
+ readonly help: ComponentType<WrappedIconProps>;
69
+ readonly highlight: ComponentType<WrappedIconProps>;
70
+ readonly home: ComponentType<WrappedIconProps>;
71
+ readonly hourglass: ComponentType<WrappedIconProps>;
72
+ readonly info: ComponentType<WrappedIconProps>;
73
+ readonly instagram: ComponentType<WrappedIconProps>;
74
+ readonly italic: ComponentType<WrappedIconProps>;
75
+ readonly join: ComponentType<WrappedIconProps>;
76
+ readonly 'kebab-menu': ComponentType<WrappedIconProps>;
77
+ readonly kanban: ComponentType<WrappedIconProps>;
78
+ readonly 'layout-dashboard': ComponentType<WrappedIconProps>;
79
+ readonly link: ComponentType<WrappedIconProps>;
80
+ readonly linkedin: ComponentType<WrappedIconProps>;
81
+ readonly 'list-bullet': ComponentType<WrappedIconProps>;
82
+ readonly 'list-checks': ComponentType<WrappedIconProps>;
83
+ readonly 'list-ordered': ComponentType<WrappedIconProps>;
84
+ readonly 'list-task': ComponentType<WrappedIconProps>;
85
+ readonly loading: ComponentType<WrappedIconProps>;
86
+ readonly 'local-area': ComponentType<WrappedIconProps>;
87
+ readonly location: ComponentType<WrappedIconProps>;
88
+ readonly logout: ComponentType<WrappedIconProps>;
89
+ readonly maximize: ComponentType<WrappedIconProps>;
90
+ readonly menu: ComponentType<WrappedIconProps>;
91
+ readonly merge: ComponentType<WrappedIconProps>;
92
+ readonly 'merge-field': ComponentType<WrappedIconProps>;
93
+ readonly message: ComponentType<WrappedIconProps>;
94
+ readonly mic: ComponentType<WrappedIconProps>;
95
+ readonly 'mic-off': ComponentType<WrappedIconProps>;
96
+ readonly minimize: ComponentType<WrappedIconProps>;
97
+ readonly mobile: ComponentType<WrappedIconProps>;
98
+ readonly 'not-allowed': ComponentType<WrappedIconProps>;
99
+ readonly notes: ComponentType<WrappedIconProps>;
100
+ readonly open: ComponentType<WrappedIconProps>;
101
+ readonly paragraph: ComponentType<WrappedIconProps>;
102
+ readonly pause: ComponentType<WrappedIconProps>;
103
+ readonly 'pause-circle': ComponentType<WrappedIconProps>;
104
+ readonly person: ComponentType<WrappedIconProps>;
105
+ readonly 'person-add': ComponentType<WrappedIconProps>;
106
+ readonly play: ComponentType<WrappedIconProps>;
107
+ readonly 'play-circle': ComponentType<WrappedIconProps>;
108
+ readonly priority: ComponentType<WrappedIconProps>;
109
+ readonly 'profile-user': ComponentType<WrappedIconProps>;
110
+ readonly redo: ComponentType<WrappedIconProps>;
111
+ readonly refresh: ComponentType<WrappedIconProps>;
112
+ readonly rocket: ComponentType<WrappedIconProps>;
113
+ readonly schedule: ComponentType<WrappedIconProps>;
114
+ readonly search: ComponentType<WrappedIconProps>;
115
+ readonly settings: ComponentType<WrappedIconProps>;
116
+ readonly share: ComponentType<WrappedIconProps>;
117
+ readonly 'share-arrow': ComponentType<WrappedIconProps>;
118
+ readonly shield: ComponentType<WrappedIconProps>;
119
+ readonly 'shield-check': ComponentType<WrappedIconProps>;
120
+ readonly 'shield-health': ComponentType<WrappedIconProps>;
121
+ readonly 'shield-slash': ComponentType<WrappedIconProps>;
122
+ readonly sort: ComponentType<WrappedIconProps>;
123
+ readonly 'sort-arrows': ComponentType<WrappedIconProps>;
124
+ readonly 'square-stack': ComponentType<WrappedIconProps>;
125
+ readonly stack: ComponentType<WrappedIconProps>;
126
+ readonly star: ComponentType<WrappedIconProps>;
127
+ readonly stars: ComponentType<WrappedIconProps>;
128
+ readonly stats: ComponentType<WrappedIconProps>;
129
+ readonly stop: ComponentType<WrappedIconProps>;
130
+ readonly 'stop-circle': ComponentType<WrappedIconProps>;
131
+ readonly strikethrough: ComponentType<WrappedIconProps>;
132
+ readonly template: ComponentType<WrappedIconProps>;
133
+ readonly transfer: ComponentType<WrappedIconProps>;
134
+ readonly trash: ComponentType<WrappedIconProps>;
135
+ readonly trophy: ComponentType<WrappedIconProps>;
136
+ readonly underline: ComponentType<WrappedIconProps>;
137
+ readonly undo: ComponentType<WrappedIconProps>;
138
+ readonly upload: ComponentType<WrappedIconProps>;
139
+ readonly video: ComponentType<WrappedIconProps>;
140
+ readonly voicemail: ComponentType<WrappedIconProps>;
141
+ readonly 'vol-on': ComponentType<WrappedIconProps>;
142
+ readonly warning: ComponentType<WrappedIconProps>;
143
+ readonly 'warning-circle': ComponentType<WrappedIconProps>;
144
+ readonly youtube: ComponentType<WrappedIconProps>;
143
145
  };
144
146
  export type IconNames = keyof typeof icons;
145
147
  export default icons;
@@ -1,145 +1,147 @@
1
+ import { ArrowDown, ArrowDownWideNarrow, ArrowLeft, ArrowRight, ArrowRightLeft, ArrowUp, ArrowUpWideNarrow, BadgeCheck, Ban, Bell, BellDot, Bold, Bot, Braces, Bug, CalendarDays, Camera, ChartColumn, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CirclePause, CirclePlay, CirclePlus, CircleQuestionMark, CircleStop, CircleUserRound, CircleX, Clapperboard, Clock, Copy, CopyCheck, CopyPlus, CreditCard, Download, Ear, EllipsisVertical, ExternalLink, Eye, EyeOff, Facebook, FileText, Flag, FlaskConical, Frown, Funnel, Globe, GripVertical, Hash, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Headset, Heart, Highlighter, Hourglass, House, IdCard, Info, Instagram, Italic, Kanban, Layers2, LayoutDashboard, Lightbulb, Link, Linkedin, List, ListChecks, ListFilter, ListOrdered, ListTodo, Loader, LogIn, LogOut, MapPin, MapPinned, Maximize2, Meh, Menu, Merge, MessageSquareMore, Mic, MicOff, Minimize2, Minus, MonitorSmartphone, NotebookPen, Paperclip, Pause, Pencil, Pilcrow, Play, Plus, Redo, RefreshCcwDot, RefreshCw, Rocket, RotateCw, Search, Settings, Share, Share2, Shield, ShieldCheck, ShieldOff, ShieldPlus, Smartphone, Smile, Sparkles, Square, SquareStack, Star, Strikethrough, TextQuote, Trash2, TriangleAlert, Trophy, Underline, Undo, Upload, UserRound, UserRoundPlus, Users, Video, Voicemail, Volume2, X, Youtube } from "lucide-react";
2
+ import createWrappedIcon from "./createWrappedIcon.js";
1
3
  const icons = {
2
- 'activity-history': 'id-card',
3
- add: 'plus',
4
- 'add-circle': 'circle-plus',
5
- 'arrow-down': 'arrow-down',
6
- 'arrow-left': 'arrow-left',
7
- 'arrow-right': 'arrow-right',
8
- 'arrow-up': 'arrow-up',
9
- attachment: 'paperclip',
10
- auto: 'refresh-ccw-dot',
11
- bell: 'bell',
12
- 'bell-dot': 'bell-dot',
13
- blockquote: 'text-quote',
14
- bold: 'bold',
15
- bot: 'bot',
16
- bug: 'bug',
17
- bulb: 'lightbulb',
18
- calendar: 'calendar-days',
19
- camera: 'camera',
20
- card: 'credit-card',
21
- check: 'check',
22
- 'check-badge': 'badge-check',
23
- 'check-circle': 'circle-check',
24
- 'chevron-down': 'chevron-down',
25
- 'chevron-left': 'chevron-left',
26
- 'chevron-right': 'chevron-right',
27
- 'chevron-up': 'chevron-up',
28
- circle: 'circle',
29
- clapperboard: 'clapperboard',
30
- close: 'x',
31
- 'close-circle': 'circle-x',
32
- copy: 'copy',
33
- 'copy-check': 'copy-check',
34
- 'copy-plus': 'copy-plus',
35
- cycle: 'refresh-cw',
36
- dash: 'minus',
37
- devices: 'monitor-smartphone',
38
- 'double-arrow-left': 'chevrons-left',
39
- 'double-arrow-right': 'chevrons-right',
40
- download: 'download',
41
- drag: 'grip-vertical',
42
- edit: 'pencil',
43
- 'emoji-happy': 'smile',
44
- 'emoji-neutral': 'meh',
45
- 'emoji-sad': 'frown',
46
- 'eye-off': 'eye-off',
47
- 'eye-on': 'eye',
48
- facebook: 'facebook',
49
- filter: 'list-filter',
50
- flag: 'flag',
51
- flask: 'flask-conical',
52
- funnel: 'funnel',
53
- globe: 'globe',
54
- group: 'users',
55
- hash: 'hash',
56
- heading: 'heading',
57
- 'heading-1': 'heading-1',
58
- 'heading-2': 'heading-2',
59
- 'heading-3': 'heading-3',
60
- 'heading-4': 'heading-4',
61
- 'heading-5': 'heading-5',
62
- 'heading-6': 'heading-6',
63
- headset: 'headset',
64
- hearing: 'ear',
65
- heart: 'heart',
66
- help: 'circle-question-mark',
67
- highlight: 'highlighter',
68
- home: 'house',
69
- hourglass: 'hourglass',
70
- info: 'info',
71
- instagram: 'instagram',
72
- italic: 'italic',
73
- join: 'log-in',
74
- 'kebab-menu': 'ellipsis-vertical',
75
- kanban: 'kanban',
76
- 'layout-dashboard': 'layout-dashboard',
77
- link: 'link',
78
- linkedin: 'linkedin',
79
- 'list-bullet': 'list',
80
- 'list-checks': 'list-checks',
81
- 'list-ordered': 'list-ordered',
82
- 'list-task': 'list-todo',
83
- loading: 'loader',
84
- 'local-area': 'map-pinned',
85
- location: 'map-pin',
86
- logout: 'log-out',
87
- maximize: 'maximize-2',
88
- menu: 'menu',
89
- merge: 'merge',
90
- 'merge-field': 'braces',
91
- message: 'message-square-more',
92
- mic: 'mic',
93
- 'mic-off': 'mic-off',
94
- minimize: 'minimize-2',
95
- mobile: 'smartphone',
96
- 'not-allowed': 'ban',
97
- notes: 'notebook-pen',
98
- open: 'external-link',
99
- paragraph: 'pilcrow',
100
- pause: 'pause',
101
- 'pause-circle': 'circle-pause',
102
- person: 'user-round',
103
- 'person-add': 'user-round-plus',
104
- play: 'play',
105
- 'play-circle': 'circle-play',
106
- priority: 'arrow-up-wide-narrow',
107
- 'profile-user': 'circle-user-round',
108
- redo: 'redo',
109
- refresh: 'rotate-cw',
110
- rocket: 'rocket',
111
- schedule: 'clock',
112
- search: 'search',
113
- settings: 'settings',
114
- share: 'share-2',
115
- 'share-arrow': 'share',
116
- shield: 'shield',
117
- 'shield-check': 'shield-check',
118
- 'shield-health': 'shield-plus',
119
- 'shield-slash': 'shield-off',
120
- sort: 'arrow-down-wide-narrow',
121
- 'sort-arrows': 'chevrons-up-down',
122
- 'square-stack': 'square-stack',
123
- stack: 'layers-2',
124
- star: 'star',
125
- stars: 'sparkles',
126
- stats: 'chart-column',
127
- stop: 'square',
128
- 'stop-circle': 'circle-stop',
129
- strikethrough: 'strikethrough',
130
- template: 'file-text',
131
- transfer: 'arrow-right-left',
132
- trash: 'trash-2',
133
- trophy: 'trophy',
134
- underline: 'underline',
135
- undo: 'undo',
136
- upload: 'upload',
137
- video: 'video',
138
- voicemail: 'voicemail',
139
- 'vol-on': 'volume-2',
140
- warning: 'triangle-alert',
141
- 'warning-circle': 'circle-alert',
142
- youtube: 'youtube'
4
+ 'activity-history': createWrappedIcon(IdCard),
5
+ add: createWrappedIcon(Plus),
6
+ 'add-circle': createWrappedIcon(CirclePlus),
7
+ 'arrow-down': createWrappedIcon(ArrowDown),
8
+ 'arrow-left': createWrappedIcon(ArrowLeft),
9
+ 'arrow-right': createWrappedIcon(ArrowRight),
10
+ 'arrow-up': createWrappedIcon(ArrowUp),
11
+ attachment: createWrappedIcon(Paperclip),
12
+ auto: createWrappedIcon(RefreshCcwDot),
13
+ bell: createWrappedIcon(Bell),
14
+ 'bell-dot': createWrappedIcon(BellDot),
15
+ blockquote: createWrappedIcon(TextQuote),
16
+ bold: createWrappedIcon(Bold),
17
+ bot: createWrappedIcon(Bot),
18
+ bug: createWrappedIcon(Bug),
19
+ bulb: createWrappedIcon(Lightbulb),
20
+ calendar: createWrappedIcon(CalendarDays),
21
+ camera: createWrappedIcon(Camera),
22
+ card: createWrappedIcon(CreditCard),
23
+ check: createWrappedIcon(Check),
24
+ 'check-badge': createWrappedIcon(BadgeCheck),
25
+ 'check-circle': createWrappedIcon(CircleCheck),
26
+ 'chevron-down': createWrappedIcon(ChevronDown),
27
+ 'chevron-left': createWrappedIcon(ChevronLeft),
28
+ 'chevron-right': createWrappedIcon(ChevronRight),
29
+ 'chevron-up': createWrappedIcon(ChevronUp),
30
+ circle: createWrappedIcon(Circle),
31
+ clapperboard: createWrappedIcon(Clapperboard),
32
+ close: createWrappedIcon(X),
33
+ 'close-circle': createWrappedIcon(CircleX),
34
+ copy: createWrappedIcon(Copy),
35
+ 'copy-check': createWrappedIcon(CopyCheck),
36
+ 'copy-plus': createWrappedIcon(CopyPlus),
37
+ cycle: createWrappedIcon(RefreshCw),
38
+ dash: createWrappedIcon(Minus),
39
+ devices: createWrappedIcon(MonitorSmartphone),
40
+ 'double-arrow-left': createWrappedIcon(ChevronsLeft),
41
+ 'double-arrow-right': createWrappedIcon(ChevronsRight),
42
+ download: createWrappedIcon(Download),
43
+ drag: createWrappedIcon(GripVertical),
44
+ edit: createWrappedIcon(Pencil),
45
+ 'emoji-happy': createWrappedIcon(Smile),
46
+ 'emoji-neutral': createWrappedIcon(Meh),
47
+ 'emoji-sad': createWrappedIcon(Frown),
48
+ 'eye-off': createWrappedIcon(EyeOff),
49
+ 'eye-on': createWrappedIcon(Eye),
50
+ facebook: createWrappedIcon(Facebook),
51
+ filter: createWrappedIcon(ListFilter),
52
+ flag: createWrappedIcon(Flag),
53
+ flask: createWrappedIcon(FlaskConical),
54
+ funnel: createWrappedIcon(Funnel),
55
+ globe: createWrappedIcon(Globe),
56
+ group: createWrappedIcon(Users),
57
+ hash: createWrappedIcon(Hash),
58
+ heading: createWrappedIcon(Heading),
59
+ 'heading-1': createWrappedIcon(Heading1),
60
+ 'heading-2': createWrappedIcon(Heading2),
61
+ 'heading-3': createWrappedIcon(Heading3),
62
+ 'heading-4': createWrappedIcon(Heading4),
63
+ 'heading-5': createWrappedIcon(Heading5),
64
+ 'heading-6': createWrappedIcon(Heading6),
65
+ headset: createWrappedIcon(Headset),
66
+ hearing: createWrappedIcon(Ear),
67
+ heart: createWrappedIcon(Heart),
68
+ help: createWrappedIcon(CircleQuestionMark),
69
+ highlight: createWrappedIcon(Highlighter),
70
+ home: createWrappedIcon(House),
71
+ hourglass: createWrappedIcon(Hourglass),
72
+ info: createWrappedIcon(Info),
73
+ instagram: createWrappedIcon(Instagram),
74
+ italic: createWrappedIcon(Italic),
75
+ join: createWrappedIcon(LogIn),
76
+ 'kebab-menu': createWrappedIcon(EllipsisVertical),
77
+ kanban: createWrappedIcon(Kanban),
78
+ 'layout-dashboard': createWrappedIcon(LayoutDashboard),
79
+ link: createWrappedIcon(Link),
80
+ linkedin: createWrappedIcon(Linkedin),
81
+ 'list-bullet': createWrappedIcon(List),
82
+ 'list-checks': createWrappedIcon(ListChecks),
83
+ 'list-ordered': createWrappedIcon(ListOrdered),
84
+ 'list-task': createWrappedIcon(ListTodo),
85
+ loading: createWrappedIcon(Loader),
86
+ 'local-area': createWrappedIcon(MapPinned),
87
+ location: createWrappedIcon(MapPin),
88
+ logout: createWrappedIcon(LogOut),
89
+ maximize: createWrappedIcon(Maximize2),
90
+ menu: createWrappedIcon(Menu),
91
+ merge: createWrappedIcon(Merge),
92
+ 'merge-field': createWrappedIcon(Braces),
93
+ message: createWrappedIcon(MessageSquareMore),
94
+ mic: createWrappedIcon(Mic),
95
+ 'mic-off': createWrappedIcon(MicOff),
96
+ minimize: createWrappedIcon(Minimize2),
97
+ mobile: createWrappedIcon(Smartphone),
98
+ 'not-allowed': createWrappedIcon(Ban),
99
+ notes: createWrappedIcon(NotebookPen),
100
+ open: createWrappedIcon(ExternalLink),
101
+ paragraph: createWrappedIcon(Pilcrow),
102
+ pause: createWrappedIcon(Pause),
103
+ 'pause-circle': createWrappedIcon(CirclePause),
104
+ person: createWrappedIcon(UserRound),
105
+ 'person-add': createWrappedIcon(UserRoundPlus),
106
+ play: createWrappedIcon(Play),
107
+ 'play-circle': createWrappedIcon(CirclePlay),
108
+ priority: createWrappedIcon(ArrowUpWideNarrow),
109
+ 'profile-user': createWrappedIcon(CircleUserRound),
110
+ redo: createWrappedIcon(Redo),
111
+ refresh: createWrappedIcon(RotateCw),
112
+ rocket: createWrappedIcon(Rocket),
113
+ schedule: createWrappedIcon(Clock),
114
+ search: createWrappedIcon(Search),
115
+ settings: createWrappedIcon(Settings),
116
+ share: createWrappedIcon(Share2),
117
+ 'share-arrow': createWrappedIcon(Share),
118
+ shield: createWrappedIcon(Shield),
119
+ 'shield-check': createWrappedIcon(ShieldCheck),
120
+ 'shield-health': createWrappedIcon(ShieldPlus),
121
+ 'shield-slash': createWrappedIcon(ShieldOff),
122
+ sort: createWrappedIcon(ArrowDownWideNarrow),
123
+ 'sort-arrows': createWrappedIcon(ChevronsUpDown),
124
+ 'square-stack': createWrappedIcon(SquareStack),
125
+ stack: createWrappedIcon(Layers2),
126
+ star: createWrappedIcon(Star),
127
+ stars: createWrappedIcon(Sparkles),
128
+ stats: createWrappedIcon(ChartColumn),
129
+ stop: createWrappedIcon(Square),
130
+ 'stop-circle': createWrappedIcon(CircleStop),
131
+ strikethrough: createWrappedIcon(Strikethrough),
132
+ template: createWrappedIcon(FileText),
133
+ transfer: createWrappedIcon(ArrowRightLeft),
134
+ trash: createWrappedIcon(Trash2),
135
+ trophy: createWrappedIcon(Trophy),
136
+ underline: createWrappedIcon(Underline),
137
+ undo: createWrappedIcon(Undo),
138
+ upload: createWrappedIcon(Upload),
139
+ video: createWrappedIcon(Video),
140
+ voicemail: createWrappedIcon(Voicemail),
141
+ 'vol-on': createWrappedIcon(Volume2),
142
+ warning: createWrappedIcon(TriangleAlert),
143
+ 'warning-circle': createWrappedIcon(CircleAlert),
144
+ youtube: createWrappedIcon(Youtube)
143
145
  };
144
146
  const Icon_icons = icons;
145
147
  export { Icon_icons as default };
@@ -41,7 +41,7 @@ const ImageViewer = ({ visible, close, images, startIndex, alt, maxWidth, maxHei
41
41
  }
42
42
  };
43
43
  useEffect(()=>{
44
- const ssr = 'undefined' == typeof window;
44
+ const ssr = "u" < typeof window;
45
45
  const cleanup = ssr ? ()=>null : ()=>window.removeEventListener('keydown', handleKeyPress);
46
46
  if (visible && !ssr) window.addEventListener('keydown', handleKeyPress);
47
47
  return cleanup;
@@ -1,5 +1,5 @@
1
1
  import type { ThemeProp } from '../types';
2
- declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<object> & {
2
+ declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement> & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  } & ThemeProp, {}, {}>;
5
5
  export default ListHeader;
@@ -1,5 +1,5 @@
1
1
  import type { ThemeProp } from '../types';
2
- declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<object> & {
2
+ declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement> & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  } & ThemeProp, {}, {}>;
5
5
  export default ListHeader;
@@ -24,9 +24,9 @@ type ModalProps = {
24
24
  /** Overrides the overflow of the modal container */
25
25
  overflow?: CSSProperties['overflow'];
26
26
  /** Removes the overlay background, and allows the modal to be positioned anywhere on the page */
27
- noOverlay?: boolean;
27
+ showOverlay?: boolean;
28
28
  /** Removes the background color of the modal container */
29
- noBackground?: boolean;
29
+ showBackground?: boolean;
30
30
  /** Prevents the modal from being interacted with */
31
31
  inert?: boolean;
32
32
  /** Renders the Modal as a full-height sliding drawer */
@@ -55,7 +55,7 @@ type ModalProps = {
55
55
  'aria-label'?: string;
56
56
  } & WidthHeight & MaxWidthHeight & MinWidthHeight & Padding & DivAttributes;
57
57
  declare const Modal: {
58
- ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor, noOverlay, noBackground, inert, drawer, drawerDirection, scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
58
+ ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor, showOverlay, showBackground, inert, drawer, drawerDirection, scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
59
59
  Header: {
60
60
  ({ children, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
61
61
  displayName: string;
@@ -5,7 +5,7 @@ import { Dialog, Heading, Modal, ModalOverlay } from "react-aria-components";
5
5
  import { marginProps, maxWidthHeightProps, minWidthHeightProps, paddingProps } from "./helpers/styledProps.js";
6
6
  import Icon from "./Icon/index.js";
7
7
  import PortalScope from "./PortalScope.js";
8
- const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur = true, overlayColor, backgroundColor, noOverlay, noBackground, inert, drawer, drawerDirection = 'right', scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props })=>{
8
+ const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur = true, overlayColor, backgroundColor, showOverlay = true, showBackground = true, inert, drawer, drawerDirection = 'right', scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props })=>{
9
9
  const { 'aria-label': ariaLabel, ...rest } = props;
10
10
  const handleOpenChange = (open)=>{
11
11
  if (!open) onClose();
@@ -15,7 +15,7 @@ const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, pre
15
15
  isOpen: visible,
16
16
  onOpenChange: handleOpenChange,
17
17
  color: overlayColor,
18
- noOverlay: noOverlay,
18
+ noOverlay: !showOverlay,
19
19
  centerX: centerX,
20
20
  centerY: centerY,
21
21
  position: scopeRef ? 'absolute' : position,
@@ -41,8 +41,8 @@ const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, pre
41
41
  width: width,
42
42
  height: height,
43
43
  backgroundColor: backgroundColor,
44
- noBackground: noBackground,
45
- noOverlay: noOverlay,
44
+ noBackground: !showBackground,
45
+ noOverlay: !showOverlay,
46
46
  drawer: drawer,
47
47
  drawerDirection: drawerDirection,
48
48
  centerX: centerX,
@@ -6,7 +6,7 @@ const useWindowSize = ()=>{
6
6
  };
7
7
  const [windowSize, setWindowSize] = useState(initialState);
8
8
  useEffect(()=>{
9
- const ssr = 'undefined' == typeof window;
9
+ const ssr = "u" < typeof window;
10
10
  const handleResize = ()=>{
11
11
  if (ssr) return;
12
12
  setWindowSize({
@@ -198,9 +198,9 @@ const dark = {
198
198
  },
199
199
  link: {
200
200
  color: {
201
- default: darkScale.accentShade2,
201
+ default: darkScale.accent,
202
202
  hover: darkScale.accentShade1,
203
- active: darkScale.accent
203
+ active: darkScale.accentShade2
204
204
  },
205
205
  outlineColor: {
206
206
  default: colors.brandShade2,
@@ -198,9 +198,9 @@ const dark = {
198
198
  },
199
199
  link: {
200
200
  color: {
201
- default: darkScale.accentShade2,
201
+ default: darkScale.accent,
202
202
  hover: darkScale.accentShade1,
203
- active: darkScale.accent
203
+ active: darkScale.accentShade2
204
204
  },
205
205
  outlineColor: {
206
206
  default: colors.brandShade2,
@@ -18,8 +18,8 @@ const legacyCopy = (text)=>{
18
18
  }
19
19
  };
20
20
  const copyToClipboard = (text)=>{
21
- if ('undefined' == typeof window || 'undefined' == typeof document) return;
22
- const canUseModernApi = 'undefined' != typeof navigator && navigator.clipboard && 'function' == typeof navigator.clipboard.writeText;
21
+ if ("u" < typeof window || "u" < typeof document) return;
22
+ const canUseModernApi = "u" > typeof navigator && navigator.clipboard && 'function' == typeof navigator.clipboard.writeText;
23
23
  if (canUseModernApi) return void navigator.clipboard.writeText(text).catch(()=>{
24
24
  legacyCopy(text);
25
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "2.3.11",
3
+ "version": "2.3.13",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -29,28 +29,28 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@emotion/styled": "^11.14.1",
32
- "@internationalized/date": "3.10.0",
32
+ "@internationalized/date": "3.10.1",
33
33
  "@react-hook/resize-observer": "^2.0.2",
34
- "@tiptap/core": "^3.13.0",
35
- "@tiptap/extension-character-count": "^3.13.0",
36
- "@tiptap/extension-highlight": "^3.13.0",
37
- "@tiptap/extension-placeholder": "^3.13.0",
38
- "@tiptap/extension-task-item": "^3.13.0",
39
- "@tiptap/extension-task-list": "^3.13.0",
40
- "@tiptap/markdown": "^3.13.0",
41
- "@tiptap/pm": "^3.13.0",
42
- "@tiptap/react": "^3.13.0",
43
- "@tiptap/starter-kit": "^3.13.0",
34
+ "@tiptap/core": "^3.14.0",
35
+ "@tiptap/extension-character-count": "^3.14.0",
36
+ "@tiptap/extension-highlight": "^3.14.0",
37
+ "@tiptap/extension-placeholder": "^3.14.0",
38
+ "@tiptap/extension-task-item": "^3.14.0",
39
+ "@tiptap/extension-task-list": "^3.14.0",
40
+ "@tiptap/markdown": "^3.14.0",
41
+ "@tiptap/pm": "^3.14.0",
42
+ "@tiptap/react": "^3.14.0",
43
+ "@tiptap/starter-kit": "^3.14.0",
44
44
  "cmdk": "^1.1.1",
45
45
  "date-fns": "^4.1.0",
46
46
  "draft-js": "^0.11.7",
47
47
  "es-toolkit": "^1.43.0",
48
- "libphonenumber-js": "^1.12.31",
49
- "lucide-react": "^0.561.0",
48
+ "libphonenumber-js": "^1.12.33",
49
+ "lucide-react": "^0.562.0",
50
50
  "polished": "^4.1.4",
51
51
  "prism-react-renderer": "^2.4.1",
52
- "react-aria": "3.44.0",
53
- "react-aria-components": "1.13.0",
52
+ "react-aria": "3.45.0",
53
+ "react-aria-components": "1.14.0",
54
54
  "react-keyed-flatten-children": "^5.1.1",
55
55
  "react-phone-input-auto-format": "^0.1.0",
56
56
  "recharts": "^3.6.0",
@@ -61,17 +61,17 @@
61
61
  "@babel/core": "^7.28.5",
62
62
  "@babel/preset-env": "^7.28.5",
63
63
  "@babel/preset-typescript": "^7.28.5",
64
- "@biomejs/biome": "2.3.9",
64
+ "@biomejs/biome": "2.3.10",
65
65
  "@chromatic-com/storybook": "^4.1.3",
66
66
  "@emotion/babel-plugin": "^11.13.5",
67
67
  "@emotion/react": "^11.14.0",
68
- "@rsbuild/core": "1.6.14",
68
+ "@rsbuild/core": "1.6.15",
69
69
  "@rsbuild/plugin-react": "^1.4.2",
70
70
  "@rsbuild/plugin-svgr": "^1.2.3",
71
- "@rslib/core": "^0.18.4",
72
- "@storybook/addon-docs": "^10.1.9",
73
- "@storybook/addon-links": "^10.1.9",
74
- "@storybook/addon-themes": "^10.1.9",
71
+ "@rslib/core": "^0.18.5",
72
+ "@storybook/addon-docs": "^10.1.10",
73
+ "@storybook/addon-links": "^10.1.10",
74
+ "@storybook/addon-themes": "^10.1.10",
75
75
  "@storybook/test-runner": "^0.24.2",
76
76
  "@svgr/core": "^8.1.0",
77
77
  "@svgr/plugin-jsx": "^8.1.0",
@@ -80,7 +80,7 @@
80
80
  "@types/draft-js": "^0.11.20",
81
81
  "@types/jest": "^30.0.0",
82
82
  "@types/ncp": "^2.0.8",
83
- "@types/node": "^25.0.2",
83
+ "@types/node": "^25.0.3",
84
84
  "@types/prompts": "^2.4.9",
85
85
  "@types/randomcolor": "^0.5.9",
86
86
  "@types/react": "^19.2.7",
@@ -94,7 +94,7 @@
94
94
  "lefthook": "^2.0.12",
95
95
  "ncp": "^2.0.0",
96
96
  "path": "^0.12.7",
97
- "phone": "^3.1.68",
97
+ "phone": "^3.1.69",
98
98
  "playwright": "^1.57.0",
99
99
  "postcss": "^8.5.6",
100
100
  "prettier": "^3.7.4",
@@ -104,8 +104,8 @@
104
104
  "react-dom": "^19.2.3",
105
105
  "replace": "^1.2.2",
106
106
  "signale": "^1.4.0",
107
- "storybook": "^10.1.9",
108
- "storybook-react-rsbuild": "^3.1.0",
107
+ "storybook": "^10.1.10",
108
+ "storybook-react-rsbuild": "^3.2.0",
109
109
  "tsc-files": "^1.1.4",
110
110
  "tslib": "^2.8.1",
111
111
  "tsx": "^4.21.0",