@wavv/ui 2.0.0-alpha.90 → 2.0.0-alpha.91
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/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/Notification.d.ts +3 -2
- package/build/colors.ts +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/Notification.d.ts +3 -2
- package/build/index.d.ts +6 -5
- package/build/types/components/Notification.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { HTMLProps, ReactNode } from 'react';
|
|
2
2
|
import type { Margin, Position } from './types';
|
|
3
|
+
type DivAttributes = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'>;
|
|
3
4
|
type NotificationProps = {
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
/** The color of the dot */
|
|
@@ -8,6 +9,6 @@ type NotificationProps = {
|
|
|
8
9
|
size?: number | string;
|
|
9
10
|
/** Styles the dot to accommodate containing a number */
|
|
10
11
|
number?: boolean;
|
|
11
|
-
} & Margin & Position;
|
|
12
|
+
} & Margin & Position & DivAttributes;
|
|
12
13
|
declare const Notification: ({ children, ...props }: NotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default Notification;
|
package/build/index.d.ts
CHANGED
|
@@ -354,7 +354,7 @@ declare const icons: {
|
|
|
354
354
|
type IconNames = keyof typeof icons;
|
|
355
355
|
|
|
356
356
|
type Sizes = number | 'small' | 'medium' | 'large';
|
|
357
|
-
type DivAttributes$
|
|
357
|
+
type DivAttributes$2 = Omit<HTMLProps<HTMLDivElement>, 'size'>;
|
|
358
358
|
type ConditionalProps = {
|
|
359
359
|
/** Name of the specific icon to use */
|
|
360
360
|
name: IconNames;
|
|
@@ -386,7 +386,7 @@ type IconProps = {
|
|
|
386
386
|
[key: string]: string | number;
|
|
387
387
|
};
|
|
388
388
|
ref?: React.Ref<HTMLDivElement>;
|
|
389
|
-
} & ConditionalProps & MarginPadding & AsProp & DivAttributes$
|
|
389
|
+
} & ConditionalProps & MarginPadding & AsProp & DivAttributes$2;
|
|
390
390
|
declare const Icon: ({ name, svg, size, width, height, color, hoverColor, pointer, inheritColor, animation, style, onClick, ref, ...props }: IconProps) => react_jsx_runtime.JSX.Element | null;
|
|
391
391
|
|
|
392
392
|
type TooltipProps = {
|
|
@@ -1997,13 +1997,13 @@ type Props$g = {
|
|
|
1997
1997
|
} & Width & Margin;
|
|
1998
1998
|
declare const DropdownSelect: ({ label, options, width, search, onChange, ...props }: Props$g) => react_jsx_runtime.JSX.Element;
|
|
1999
1999
|
|
|
2000
|
-
type DivAttributes = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'>;
|
|
2000
|
+
type DivAttributes$1 = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'>;
|
|
2001
2001
|
type Props$f = {
|
|
2002
2002
|
children: ReactNode;
|
|
2003
2003
|
/** Number of lines to clamp */
|
|
2004
2004
|
clampLines?: number;
|
|
2005
2005
|
textAlign?: CSSProperties['textAlign'];
|
|
2006
|
-
} & MarginPadding & Width & DivAttributes;
|
|
2006
|
+
} & MarginPadding & Width & DivAttributes$1;
|
|
2007
2007
|
declare const Ellipsis: ({ children, ...props }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
2008
2008
|
|
|
2009
2009
|
type CheckboxAttributes = Omit<HTMLProps<HTMLInputElement>, 'onChange'>;
|
|
@@ -2465,6 +2465,7 @@ type MultiSelectProps = {
|
|
|
2465
2465
|
} & Width & Margin & DropdownProps;
|
|
2466
2466
|
declare const MultiSelect: ({ options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, accepts, disabled, hideItemsInfo, compact, backgroundColor, borderless, autoFocus, addItem, removeItem, onTextChange, ref, ...props }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
|
|
2467
2467
|
|
|
2468
|
+
type DivAttributes = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'>;
|
|
2468
2469
|
type NotificationProps = {
|
|
2469
2470
|
children?: ReactNode;
|
|
2470
2471
|
/** The color of the dot */
|
|
@@ -2473,7 +2474,7 @@ type NotificationProps = {
|
|
|
2473
2474
|
size?: number | string;
|
|
2474
2475
|
/** Styles the dot to accommodate containing a number */
|
|
2475
2476
|
number?: boolean;
|
|
2476
|
-
} & Margin & Position;
|
|
2477
|
+
} & Margin & Position & DivAttributes;
|
|
2477
2478
|
declare const Notification: ({ children, ...props }: NotificationProps) => react_jsx_runtime.JSX.Element;
|
|
2478
2479
|
|
|
2479
2480
|
type OptionsItemProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { HTMLProps, ReactNode } from 'react';
|
|
2
2
|
import type { Margin, Position } from './types';
|
|
3
|
+
type DivAttributes = Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'as'>;
|
|
3
4
|
type NotificationProps = {
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
/** The color of the dot */
|
|
@@ -8,6 +9,6 @@ type NotificationProps = {
|
|
|
8
9
|
size?: number | string;
|
|
9
10
|
/** Styles the dot to accommodate containing a number */
|
|
10
11
|
number?: boolean;
|
|
11
|
-
} & Margin & Position;
|
|
12
|
+
} & Margin & Position & DivAttributes;
|
|
12
13
|
declare const Notification: ({ children, ...props }: NotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default Notification;
|