@design-system-rte/react 0.1.2 → 0.3.0
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/icon/Icon.d.ts +1 -1
- package/dist/components/icon/IconMap.d.ts +1 -0
- package/dist/components/iconButton/IconButton.d.ts +8 -0
- package/dist/components/iconButtonToggle/IconButtonToggle.d.ts +8 -0
- package/dist/components/splitButton/SplitButton.d.ts +10 -0
- package/dist/index.d.ts +4 -1
- package/dist/react-package.cjs +1 -1
- package/dist/react-package.js +1427 -1386
- package/dist/style.css +1 -1
- package/package.json +9 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconProps as coreIconProps, IconWrapperProps as CoreIconWrapperProps } from '../../../../core/components/icon/icon.interface';
|
|
2
2
|
import { IconIds, TogglableIcons } from './IconMap';
|
|
3
3
|
export type RegularIconIdKey = keyof typeof IconIds;
|
|
4
4
|
export type TogglableIconIdKey = keyof typeof TogglableIcons;
|
|
@@ -298,3 +298,4 @@ export declare const IconIds: {
|
|
|
298
298
|
"zoom-out": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
299
299
|
"zoom-in": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
300
300
|
};
|
|
301
|
+
export declare const isValidIconName: (name: string) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconButtonProps as CoreIconButtonProps } from '../../../../core/components/button/icon-button/icon-button.interface';
|
|
2
|
+
import { RegularIconIdKey, TogglableIconIdKey } from '../icon/Icon';
|
|
3
|
+
interface IconButtonProps extends Omit<CoreIconButtonProps, "disabled" | "name">, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
4
|
+
name: RegularIconIdKey | TogglableIconIdKey;
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const IconButton: import('react').ForwardRefExoticComponent<IconButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export default IconButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconButtonToggleProps as CoreIconButtonToggleProps } from '../../../../core/components/button/icon-button/icon-button.interface';
|
|
2
|
+
import { TogglableIconIdKey } from '../icon/Icon';
|
|
3
|
+
interface IconButtonToggleProps extends Omit<CoreIconButtonToggleProps, "icon">, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
4
|
+
name: TogglableIconIdKey;
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const IconButtonToggle: import('react').ForwardRefExoticComponent<IconButtonToggleProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export default IconButtonToggle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SplitButtonProps as CoreSplitButtonProps } from '../../../../core/components/split-button/split-button.interface';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IconIds, TogglableIcons } from '../icon/IconMap';
|
|
4
|
+
interface SplitButtonProps extends CoreSplitButtonProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "children"> {
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
icon?: keyof typeof IconIds | keyof typeof TogglableIcons;
|
|
8
|
+
}
|
|
9
|
+
declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLButtonElement | HTMLElement>>;
|
|
10
|
+
export default SplitButton;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,10 @@ import { default as Button } from './components/button/Button';
|
|
|
2
2
|
import { default as Checkbox } from './components/checkbox/Checkbox.tsx';
|
|
3
3
|
import { default as CheckboxGroup } from './components/checkboxGroup/CheckboxGroup.tsx';
|
|
4
4
|
import { default as Grid } from './components/grid/Grid.tsx';
|
|
5
|
+
import { default as Icon } from './components/icon/Icon.tsx';
|
|
6
|
+
import { default as IconButton } from './components/iconButton/IconButton.tsx';
|
|
7
|
+
import { default as IconButtonToggle } from './components/iconButtonToggle/IconButtonToggle.tsx';
|
|
5
8
|
import { default as Link } from './components/link/Link.tsx';
|
|
6
9
|
import { default as RadioButton } from './components/radioButton/RadioButton.tsx';
|
|
7
10
|
import { default as RadioButtonGroup } from './components/radioButtonGroup/RadioButtonGroup.tsx';
|
|
8
|
-
export { Button, Grid, Checkbox, CheckboxGroup, Link, RadioButton, RadioButtonGroup };
|
|
11
|
+
export { Button, Grid, Checkbox, CheckboxGroup, Link, RadioButton, RadioButtonGroup, Icon, IconButton, IconButtonToggle, };
|