@lion-npm/ui 1.0.4 → 1.0.5
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/buttons/AndroidButton.d.ts +4 -4
- package/dist/components/buttons/BootstrapButton.d.ts +4 -4
- package/dist/components/buttons/IOSButton.d.ts +4 -4
- package/dist/components/buttons/LionButton.d.ts +8 -8
- package/dist/components/inputs/LionInput.d.ts +8 -8
- package/dist/index.d.ts +17 -5
- package/dist/index.js +579 -594
- package/dist/types/Android/AndroidButtonShapeTypes.d.ts +5 -0
- package/dist/types/Android/{AndroidStyleTypes.d.ts → AndroidButtonStyleTypes.d.ts} +2 -2
- package/dist/types/IOS/IOSButtonShapeTypes.d.ts +5 -0
- package/dist/types/IOS/IOSButtonStyleTypes.d.ts +7 -0
- package/dist/types/Web/BootstrapButtonShapeTypes.d.ts +6 -0
- package/dist/types/Web/BootstrapButtonStyleTypes.d.ts +5 -0
- package/package.json +1 -1
- package/dist/types/Android/AndroidShapeTypes.d.ts +0 -5
- package/dist/types/IOS/IOSShapeTypes.d.ts +0 -5
- package/dist/types/IOS/IOSStyleTypes.d.ts +0 -7
- package/dist/types/Web/BootstrapShapeTypes.d.ts +0 -6
- package/dist/types/Web/BootstrapStyleTypes.d.ts +0 -5
|
@@ -2,13 +2,13 @@ import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
|
2
2
|
import { VariantTypes } from '../../types/VariantTypes';
|
|
3
3
|
import { SizeTypes } from '../../types/SizeTypes';
|
|
4
4
|
import { ButtonTypes } from '../../types/ButtonTypes';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { AndroidButtonStyleTypes } from '../../types/Android/AndroidButtonStyleTypes.tsx';
|
|
6
|
+
import { AndroidButtonShapeTypes } from '../../types/Android/AndroidButtonShapeTypes.tsx';
|
|
7
7
|
export interface AndroidButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'size'> {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
variant?: VariantTypes;
|
|
10
|
-
styleType?:
|
|
11
|
-
shape?:
|
|
10
|
+
styleType?: AndroidButtonStyleTypes;
|
|
11
|
+
shape?: AndroidButtonShapeTypes;
|
|
12
12
|
size?: SizeTypes;
|
|
13
13
|
type?: ButtonTypes;
|
|
14
14
|
className?: string;
|
|
@@ -2,13 +2,13 @@ import { type ButtonHTMLAttributes, type ReactNode } from "react";
|
|
|
2
2
|
import { VariantTypes } from "../../types/VariantTypes.tsx";
|
|
3
3
|
import { SizeTypes } from "../../types/SizeTypes.tsx";
|
|
4
4
|
import { ButtonTypes } from "../../types/ButtonTypes.tsx";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { BootstrapButtonStyleTypes } from "../../types/Web/BootstrapButtonStyleTypes.tsx";
|
|
6
|
+
import { BootstrapButtonShapeTypes } from "../../types/Web/BootstrapButtonShapeTypes.tsx";
|
|
7
7
|
export interface BootstrapButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "size"> {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
variant?: VariantTypes;
|
|
10
|
-
styleType?:
|
|
11
|
-
shape?:
|
|
10
|
+
styleType?: BootstrapButtonStyleTypes;
|
|
11
|
+
shape?: BootstrapButtonShapeTypes;
|
|
12
12
|
size?: SizeTypes;
|
|
13
13
|
type?: ButtonTypes;
|
|
14
14
|
className?: string;
|
|
@@ -2,13 +2,13 @@ import { type ButtonHTMLAttributes, type ReactNode } from "react";
|
|
|
2
2
|
import { VariantTypes } from "../../types/VariantTypes";
|
|
3
3
|
import { SizeTypes } from "../../types/SizeTypes";
|
|
4
4
|
import { ButtonTypes } from "../../types/ButtonTypes";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { IOSButtonStyleTypes } from "../../types/IOS/IOSButtonStyleTypes.tsx";
|
|
6
|
+
import { IOSButtonShapeTypes } from "../../types/IOS/IOSButtonShapeTypes.tsx";
|
|
7
7
|
export interface IOSButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "size"> {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
variant?: VariantTypes;
|
|
10
|
-
styleType?:
|
|
11
|
-
shape?:
|
|
10
|
+
styleType?: IOSButtonStyleTypes;
|
|
11
|
+
shape?: IOSButtonShapeTypes;
|
|
12
12
|
size?: SizeTypes;
|
|
13
13
|
type?: ButtonTypes;
|
|
14
14
|
className?: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
2
|
+
import type { AndroidButtonStyleTypes } from "../../types/Android/AndroidButtonStyleTypes.tsx";
|
|
3
|
+
import type { AndroidButtonShapeTypes } from "../../types/Android/AndroidButtonShapeTypes.tsx";
|
|
4
|
+
import type { BootstrapButtonShapeTypes } from "../../types/Web/BootstrapButtonShapeTypes.tsx";
|
|
5
|
+
import type { BootstrapButtonStyleTypes } from "../../types/Web/BootstrapButtonStyleTypes.tsx";
|
|
6
|
+
import type { IOSButtonShapeTypes } from "../../types/IOS/IOSButtonShapeTypes.tsx";
|
|
7
|
+
import type { IOSButtonStyleTypes } from "../../types/IOS/IOSButtonStyleTypes.tsx";
|
|
8
8
|
type PlatformMapping<T> = {};
|
|
9
9
|
export type LionButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
variant?: string;
|
|
12
12
|
platform?: string;
|
|
13
13
|
size?: SizeTypes.SM | SizeTypes.MD | SizeTypes.LG;
|
|
14
|
-
shape?:
|
|
15
|
-
styleType?:
|
|
14
|
+
shape?: BootstrapButtonShapeTypes | AndroidButtonShapeTypes | IOSButtonShapeTypes | string | PlatformMapping<BootstrapButtonShapeTypes | AndroidButtonShapeTypes | IOSButtonShapeTypes | string>;
|
|
15
|
+
styleType?: BootstrapButtonStyleTypes | AndroidButtonStyleTypes | IOSButtonStyleTypes | string | PlatformMapping<BootstrapButtonStyleTypes | AndroidButtonStyleTypes | IOSButtonStyleTypes | string>;
|
|
16
16
|
};
|
|
17
17
|
export default function LionButton({ children, shape, styleType, platform, ...props }: LionButtonProps): import("react").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
2
|
+
import type { AndroidButtonStyleTypes } from "../../types/Android/AndroidButtonStyleTypes.tsx";
|
|
3
|
+
import type { AndroidButtonShapeTypes } from "../../types/Android/AndroidButtonShapeTypes.tsx";
|
|
4
|
+
import type { BootstrapButtonShapeTypes } from "../../types/Web/BootstrapButtonShapeTypes.tsx";
|
|
5
|
+
import type { BootstrapButtonStyleTypes } from "../../types/Web/BootstrapButtonStyleTypes.tsx";
|
|
6
|
+
import type { IOSButtonShapeTypes } from "../../types/IOS/IOSButtonShapeTypes.tsx";
|
|
7
|
+
import type { IOSButtonStyleTypes } from "../../types/IOS/IOSButtonStyleTypes.tsx";
|
|
8
8
|
type PlatformMapping<T> = {};
|
|
9
9
|
export type LionInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "shape"> & {
|
|
10
10
|
variant?: string;
|
|
11
11
|
platform?: string;
|
|
12
12
|
sizeType?: string;
|
|
13
|
-
shape?:
|
|
14
|
-
styleType?:
|
|
13
|
+
shape?: BootstrapButtonShapeTypes | AndroidButtonShapeTypes | IOSButtonShapeTypes | string | PlatformMapping<BootstrapButtonShapeTypes | AndroidButtonShapeTypes | IOSButtonShapeTypes | string>;
|
|
14
|
+
styleType?: BootstrapButtonStyleTypes | AndroidButtonStyleTypes | IOSButtonStyleTypes | string | PlatformMapping<BootstrapButtonStyleTypes | AndroidButtonStyleTypes | IOSButtonStyleTypes | string>;
|
|
15
15
|
label?: string;
|
|
16
16
|
required?: boolean;
|
|
17
17
|
helperText?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,23 @@ import "./assets/css/inputs/inputs-ios.css";
|
|
|
7
7
|
import "./assets/css/inputs/inputs-bootstrap.css";
|
|
8
8
|
import "./assets/css/modals/modals.css";
|
|
9
9
|
import "./assets/css/loadings/loading-bar.css";
|
|
10
|
+
export * from './types/Android/AndroidButtonShapeTypes.tsx';
|
|
11
|
+
export * from './types/Android/AndroidButtonStyleTypes.tsx';
|
|
12
|
+
export * from './types/Android/AndroidInputShapeTypes';
|
|
13
|
+
export * from './types/Android/AndroidInputStyleTypes';
|
|
14
|
+
export * from './types/IOS/IOSButtonShapeTypes.tsx';
|
|
15
|
+
export * from './types/IOS/IOSButtonStyleTypes.tsx';
|
|
16
|
+
export * from './types/IOS/IOSInputShapeTypes.tsx';
|
|
17
|
+
export * from './types/IOS/IOSInputStyleTypes.tsx';
|
|
18
|
+
export * from './types/Web/BootstrapButtonShapeTypes.tsx';
|
|
19
|
+
export * from './types/Web/BootstrapButtonStyleTypes.tsx';
|
|
20
|
+
export * from './types/Web/BootstrapInputShapeTypes.tsx';
|
|
21
|
+
export * from './types/Web/BootstrapInputStyleTypes.tsx';
|
|
22
|
+
export * from './types/ButtonTypes';
|
|
23
|
+
export * from './types/InputTypes';
|
|
24
|
+
export * from './types/PlatformTypes';
|
|
25
|
+
export * from './types/SizeTypes';
|
|
26
|
+
export * from './types/VariantTypes';
|
|
10
27
|
export { LionUIComponentsProvider } from './context/LionUIComponentsContext';
|
|
11
28
|
export { default as AndroidButton } from './components/buttons/AndroidButton';
|
|
12
29
|
export { default as BootstrapButton } from './components/buttons/BootstrapButton';
|
|
@@ -18,8 +35,3 @@ export { default as IOSInput } from './components/inputs/IOSInput';
|
|
|
18
35
|
export { default as LionInput } from './components/inputs/LionInput';
|
|
19
36
|
export { default as LoadingBar } from './components/loadings/LoadingBar';
|
|
20
37
|
export { default as LionModal } from './components/modals/LionModal';
|
|
21
|
-
export * from './types/ButtonTypes';
|
|
22
|
-
export * from './types/InputTypes';
|
|
23
|
-
export * from './types/PlatformTypes';
|
|
24
|
-
export * from './types/SizeTypes';
|
|
25
|
-
export * from './types/VariantTypes';
|