@youngonesworks/ui 0.1.36 → 0.1.38
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/AccordionItem.d.ts +3 -4
- package/dist/components/accordion/AccordionWrapper.d.ts +1 -2
- package/dist/components/actionIcon/index.d.ts +3 -3
- package/dist/components/alert/index.d.ts +1 -2
- package/dist/components/autoCompleteInput/index.d.ts +3 -3
- package/dist/components/badge/index.d.ts +3 -4
- package/dist/components/bigBadge/index.d.ts +2 -2
- package/dist/components/breadCrumb/index.d.ts +3 -3
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/favouriteButton/index.d.ts +4 -4
- package/dist/components/island/index.d.ts +1 -2
- package/dist/components/label/index.d.ts +1 -2
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/pageUnavailable/index.d.ts +1 -2
- package/dist/components/popover/index.d.ts +2 -3
- package/dist/components/regionSelector/index.d.ts +1 -2
- package/dist/components/settingsCard/index.d.ts +2 -3
- package/dist/components/stickyMobileButton/index.d.ts +1 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/tableCell/index.d.ts +2 -2
- package/dist/components/table/tableHeader/index.d.ts +1 -2
- package/dist/components/table/tableHeaderItem/index.d.ts +2 -2
- package/dist/components/table/tableHeaderRow/index.d.ts +2 -2
- package/dist/components/table/tableRow/index.d.ts +2 -2
- package/dist/components/tabs/Tab.d.ts +3 -3
- package/dist/components/tabs/TabsBadge.d.ts +1 -2
- package/dist/components/tabs/TabsWrapper.d.ts +2 -2
- package/dist/components/textArea/index.d.ts +2 -2
- package/dist/components/textInput/index.d.ts +7 -7
- package/dist/components/themeIcon/index.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -3
- package/dist/components/unorderedList/index.d.ts +2 -3
- package/dist/components/unorderedListItem/index.d.ts +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/formatIcon.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
interface IAccordionItem {
|
|
3
|
-
controlContent: ReactNode;
|
|
4
|
-
panelContent: ReactNode;
|
|
5
|
-
endContent?: ReactNode;
|
|
2
|
+
controlContent: React.ReactNode;
|
|
3
|
+
panelContent: React.ReactNode;
|
|
4
|
+
endContent?: React.ReactNode;
|
|
6
5
|
style?: 'light' | 'dark' | 'onboarding';
|
|
7
6
|
border?: boolean;
|
|
8
7
|
disabled?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
interface AccordionProps {
|
|
3
|
-
children?: ReactNode;
|
|
2
|
+
children?: React.ReactNode;
|
|
4
3
|
className?: string;
|
|
5
4
|
}
|
|
6
5
|
export declare const AccordionWrapper: ({ children, className }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MouseEvent
|
|
1
|
+
import type { MouseEvent } from 'react';
|
|
2
2
|
export interface ActionIconProps {
|
|
3
3
|
'data-testid'?: string;
|
|
4
4
|
title: string;
|
|
@@ -6,11 +6,11 @@ export interface ActionIconProps {
|
|
|
6
6
|
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
7
7
|
styleVariant?: 'default' | 'transparent' | 'small' | 'round';
|
|
8
8
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
icon?: ReactNode;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
10
|
iconSize?: number;
|
|
11
11
|
strokeWidth?: number;
|
|
12
12
|
className?: string;
|
|
13
|
-
children?: ReactNode;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated Can be removed and replaced by iconSize
|
|
16
16
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChangeEvent, type KeyboardEvent, type
|
|
1
|
+
import { type ChangeEvent, type KeyboardEvent, type Ref } from 'react';
|
|
2
2
|
import { type TextInputProps } from '../textInput';
|
|
3
3
|
interface ISearchLocationFormProps extends TextInputProps {
|
|
4
4
|
label: string;
|
|
@@ -7,9 +7,9 @@ interface ISearchLocationFormProps extends TextInputProps {
|
|
|
7
7
|
inputValue?: string;
|
|
8
8
|
showSuggestions: boolean;
|
|
9
9
|
handleOnKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
10
|
-
children: ReactNode;
|
|
10
|
+
children: React.ReactNode;
|
|
11
11
|
loading?: boolean;
|
|
12
|
-
rightSection?: ReactNode;
|
|
12
|
+
rightSection?: React.ReactNode;
|
|
13
13
|
inputRef?: Ref<HTMLInputElement>;
|
|
14
14
|
}
|
|
15
15
|
export declare const AutoCompleteInput: ({ label, onChange, onFocus, inputValue, showSuggestions, handleOnKeyDown, children, error, rightSection, inputRef, }: ISearchLocationFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
interface IBadgeProps {
|
|
3
2
|
styleVariant?: 'green-light' | 'red' | 'accent-blue' | 'warning' | 'gray' | 'black' | 'purple' | 'pink' | 'pink-light' | 'gray' | 'white';
|
|
4
3
|
color?: 'dark' | 'gray' | 'red' | 'pink' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'green' | 'lime' | 'yellow' | 'orange' | 'teal';
|
|
@@ -11,12 +10,12 @@ interface IBadgeProps {
|
|
|
11
10
|
/** Sets badge width to 100% of parent element, hides overflow text with text-overflow: ellipsis */
|
|
12
11
|
fullWidth?: boolean;
|
|
13
12
|
/** Section rendered on the left side of label */
|
|
14
|
-
leftSection?: ReactNode;
|
|
13
|
+
leftSection?: React.ReactNode;
|
|
15
14
|
/** Section rendered on the right side of label */
|
|
16
|
-
rightSection?: ReactNode;
|
|
15
|
+
rightSection?: React.ReactNode;
|
|
17
16
|
favorite?: boolean;
|
|
18
17
|
/** Badge label */
|
|
19
|
-
children?: ReactNode;
|
|
18
|
+
children?: React.ReactNode;
|
|
20
19
|
mobile?: boolean;
|
|
21
20
|
className?: string;
|
|
22
21
|
badgeBorder?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
interface IBigBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
styleVariant?: 'green' | 'red' | 'white' | 'accent-blue' | 'orange';
|
|
5
5
|
'data-testid'?: string;
|
|
6
|
-
children: ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
export declare const BigBadge: ({ styleVariant, className, children, ...props }: IBigBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type FC
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
interface IBreadCrumb {
|
|
3
|
-
children: ReactNode;
|
|
3
|
+
children: React.ReactNode;
|
|
4
4
|
LinkText: FC<{
|
|
5
5
|
classNames: string;
|
|
6
|
-
children: ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
7
|
}>;
|
|
8
8
|
}
|
|
9
9
|
export declare const BreadCrumb: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes
|
|
1
|
+
import { type ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { buttonVariants } from './buttonVariants';
|
|
3
3
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
4
4
|
variant?: keyof typeof buttonVariants;
|
|
@@ -6,9 +6,9 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
6
6
|
isLoading?: boolean;
|
|
7
7
|
block?: boolean;
|
|
8
8
|
dataTestId?: string;
|
|
9
|
-
icon?: ReactNode;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
10
|
iconRight?: boolean;
|
|
11
|
-
children?: ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
12
|
}
|
|
13
13
|
export declare function Button({ type, variant, ariaLabel, block, isLoading, icon: iconFromProps, iconRight, onClick, className, children, dataTestId, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare namespace Button {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type JSX
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
2
|
interface ICheckbox extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
3
|
className?: string;
|
|
4
4
|
mediumBoldText?: boolean;
|
|
5
5
|
error?: string;
|
|
6
|
-
label?: ReactNode;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
size?: 'sm' | 'md';
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes, type JSX, type
|
|
1
|
+
import { type ButtonHTMLAttributes, type JSX, type Ref } from 'react';
|
|
2
2
|
interface IFavouriteButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'size'> {
|
|
3
3
|
onClick: () => void;
|
|
4
4
|
favourite: boolean;
|
|
5
|
-
iconOutline?: ReactNode;
|
|
6
|
-
iconFilled?: ReactNode;
|
|
5
|
+
iconOutline?: React.ReactNode;
|
|
6
|
+
iconFilled?: React.ReactNode;
|
|
7
7
|
iconSize?: number;
|
|
8
8
|
className?: string;
|
|
9
9
|
favouriteTitle?: string;
|
|
@@ -11,7 +11,7 @@ interface IFavouriteButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
|
|
|
11
11
|
iconColor?: string;
|
|
12
12
|
iconColorSelected?: string;
|
|
13
13
|
styleVariant?: 'transparent' | 'small' | 'default' | 'round' | undefined;
|
|
14
|
-
children?: ReactNode;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare const FavouriteButton: (props: IFavouriteButtonProps & {
|
|
17
17
|
ref?: Ref<HTMLButtonElement>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import { type AlignedPlacement, type Side } from '@floating-ui/react';
|
|
3
2
|
type ITooltipProps = {
|
|
4
|
-
content: ReactNode;
|
|
5
|
-
children: ReactNode;
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
children: React.ReactNode;
|
|
6
5
|
hoverEnabled?: boolean;
|
|
7
6
|
passedOpen?: boolean;
|
|
8
7
|
placement?: AlignedPlacement | Side;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
interface ISettingsCardProps {
|
|
3
|
-
icon: ReactNode;
|
|
2
|
+
icon: React.ReactNode;
|
|
4
3
|
title: string;
|
|
5
4
|
link: string;
|
|
6
5
|
ManageText: string;
|
|
7
6
|
LinkComponent: React.FC<{
|
|
8
7
|
className: string;
|
|
9
8
|
href: string;
|
|
10
|
-
children: ReactNode;
|
|
9
|
+
children: React.ReactNode;
|
|
11
10
|
}>;
|
|
12
11
|
}
|
|
13
12
|
export declare const SettingsCard: ({ icon, title, link, ManageText, LinkComponent }: ISettingsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
interface IStickyMobileButton {
|
|
3
|
-
children: ReactNode;
|
|
2
|
+
children: React.ReactNode;
|
|
4
3
|
}
|
|
5
4
|
export declare const StickyMobileButtonWrapper: ({ children }: IStickyMobileButton) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
interface ITable extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children?: ReactNode;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
4
|
}
|
|
5
5
|
export declare const Table: ({ children, className }: ITable) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
interface ITableCell extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children?: ReactNode;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
4
|
smallPadding?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const TableCell: ({ children, smallPadding, className }: ITableCell) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
interface ITableHeaderItem extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children?: ReactNode;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
4
|
smallPadding?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const TableHeaderItem: ({ children, smallPadding, className }: ITableHeaderItem) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
interface ITableRow extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children: ReactNode;
|
|
3
|
+
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
5
|
export declare const TableHeaderRow: ({ children, ...props }: ITableRow) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
interface ITableRow extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
3
|
-
children: ReactNode;
|
|
3
|
+
children: React.ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
header?: boolean;
|
|
6
6
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { type
|
|
1
|
+
import React, { type RefObject } from 'react';
|
|
2
2
|
export interface TabProps {
|
|
3
3
|
setActiveTab: (tab: string) => void;
|
|
4
4
|
tabId: string;
|
|
5
5
|
ref: RefObject<HTMLButtonElement | null>;
|
|
6
6
|
activeTab: boolean;
|
|
7
|
-
tabContent: ReactNode | ReactNode[] | string;
|
|
8
|
-
rightSection?: ReactNode | undefined;
|
|
7
|
+
tabContent: React.ReactNode | React.ReactNode[] | string;
|
|
8
|
+
rightSection?: React.ReactNode | undefined;
|
|
9
9
|
clickFnc: (tabId: string) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
2
|
interface ITab {
|
|
3
3
|
name: string;
|
|
4
4
|
value: string;
|
|
@@ -7,7 +7,7 @@ interface ITab {
|
|
|
7
7
|
requiredPermissions?: string[];
|
|
8
8
|
}
|
|
9
9
|
interface TabsWrapperProps {
|
|
10
|
-
children?: ReactNode | ReactNode[];
|
|
10
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
11
11
|
defaultActive?: string;
|
|
12
12
|
setActiveTab: (value: string) => void;
|
|
13
13
|
activeTab?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type TextareaHTMLAttributes } from 'react';
|
|
2
2
|
export interface ITextarea extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'className' | 'rows'> {
|
|
3
|
-
label?: ReactNode;
|
|
3
|
+
label?: React.ReactNode;
|
|
4
4
|
error?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
rows?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ChangeEvent, type FocusEvent, type InputHTMLAttributes, type KeyboardEvent
|
|
2
|
+
import { type ChangeEvent, type FocusEvent, type InputHTMLAttributes, type KeyboardEvent } from 'react';
|
|
3
3
|
export type TextInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
-
rightSection?: ReactNode;
|
|
5
|
-
leftSection?: ReactNode;
|
|
6
|
-
label?: ReactNode;
|
|
4
|
+
rightSection?: React.ReactNode;
|
|
5
|
+
leftSection?: React.ReactNode;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
min?: string | undefined | number;
|
|
9
9
|
max?: string | undefined | number;
|
|
@@ -21,9 +21,9 @@ export type TextInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
21
21
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
22
22
|
};
|
|
23
23
|
export declare const TextInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
24
|
-
rightSection?: ReactNode;
|
|
25
|
-
leftSection?: ReactNode;
|
|
26
|
-
label?: ReactNode;
|
|
24
|
+
rightSection?: React.ReactNode;
|
|
25
|
+
leftSection?: React.ReactNode;
|
|
26
|
+
label?: React.ReactNode;
|
|
27
27
|
className?: string;
|
|
28
28
|
min?: string | undefined | number;
|
|
29
29
|
max?: string | undefined | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type HTMLAttributes
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
export interface IThemeIcon extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
3
3
|
styleVariant?: 'black' | 'gray' | 'pink' | 'pink-with-background' | 'turquoise' | 'accent-blue' | 'check' | 'warning' | 'error';
|
|
4
|
-
icon: ReactNode;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
adjustedSize?: string | number;
|
|
7
7
|
title: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
type IUnorderedListProps = {
|
|
3
|
-
children: ReactNode;
|
|
2
|
+
children: React.ReactNode;
|
|
4
3
|
className?: string;
|
|
5
|
-
actionItem?: ReactNode;
|
|
4
|
+
actionItem?: React.ReactNode;
|
|
6
5
|
};
|
|
7
6
|
export declare const UnorderedList: ({ children, className, actionItem, ...props }: IUnorderedListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|