@lion-npm/ui 1.0.3 → 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.
Files changed (34) hide show
  1. package/dist/components/buttons/AndroidButton.d.ts +16 -0
  2. package/dist/components/buttons/BootstrapButton.d.ts +16 -0
  3. package/dist/components/buttons/IOSButton.d.ts +16 -0
  4. package/dist/components/buttons/LionButton.d.ts +18 -0
  5. package/dist/components/inputs/AndroidInput.d.ts +20 -0
  6. package/dist/components/inputs/BootstrapInput.d.ts +16 -0
  7. package/dist/components/inputs/IOSInput.d.ts +21 -0
  8. package/dist/components/inputs/LionInput.d.ts +27 -0
  9. package/dist/components/loadings/LoadingBar.d.ts +5 -0
  10. package/dist/components/modals/LionModal.d.ts +17 -0
  11. package/dist/context/LionUIComponentsContext.d.ts +5 -0
  12. package/dist/index.d.ts +37 -0
  13. package/dist/index.js +579 -594
  14. package/dist/interfaces/LionUIComponentsProviderProps.d.ts +6 -0
  15. package/dist/interfaces/LionUIContextProps.d.ts +5 -0
  16. package/dist/interfaces/LionUIState.d.ts +12 -0
  17. package/dist/types/Android/AndroidButtonShapeTypes.d.ts +5 -0
  18. package/dist/types/Android/AndroidButtonStyleTypes.d.ts +8 -0
  19. package/dist/types/Android/AndroidInputShapeTypes.d.ts +5 -0
  20. package/dist/types/Android/AndroidInputStyleTypes.d.ts +5 -0
  21. package/dist/types/ButtonTypes.d.ts +7 -0
  22. package/dist/types/IOS/IOSButtonShapeTypes.d.ts +5 -0
  23. package/dist/types/IOS/IOSButtonStyleTypes.d.ts +7 -0
  24. package/dist/types/IOS/IOSInputShapeTypes.d.ts +6 -0
  25. package/dist/types/IOS/IOSInputStyleTypes.d.ts +8 -0
  26. package/dist/types/InputTypes.d.ts +11 -0
  27. package/dist/types/PlatformTypes.d.ts +7 -0
  28. package/dist/types/SizeTypes.d.ts +9 -0
  29. package/dist/types/VariantTypes.d.ts +17 -0
  30. package/dist/types/Web/BootstrapButtonShapeTypes.d.ts +6 -0
  31. package/dist/types/Web/BootstrapButtonStyleTypes.d.ts +5 -0
  32. package/dist/types/Web/BootstrapInputShapeTypes.d.ts +6 -0
  33. package/dist/types/Web/BootstrapInputStyleTypes.d.ts +5 -0
  34. package/package.json +1 -2
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import type { PlatformTypes } from "../types/PlatformTypes.tsx";
3
+ export interface LionUIComponentsProviderProps {
4
+ children: React.ReactNode;
5
+ defaultPlatform?: PlatformTypes;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { LionUIState } from "./LionUIState.tsx";
2
+ export interface LionUIContextProps {
3
+ state: LionUIState;
4
+ updateState: (partial: Partial<LionUIState>) => void;
5
+ }
@@ -0,0 +1,12 @@
1
+ import type { PlatformTypes } from "../types/PlatformTypes.tsx";
2
+ export interface LionUIState {
3
+ platform: PlatformTypes;
4
+ loading: boolean;
5
+ reload: boolean;
6
+ booting: boolean;
7
+ sidebar: boolean;
8
+ version: string | null;
9
+ modal?: string | null;
10
+ logo: File | string | null;
11
+ background: File | string | null;
12
+ }
@@ -0,0 +1,5 @@
1
+ export declare const AndroidButtonShapeTypes: {
2
+ readonly PILL: "pill";
3
+ readonly ROUNDED: "rounded";
4
+ };
5
+ export type AndroidButtonShapeTypes = (typeof AndroidButtonShapeTypes)[keyof typeof AndroidButtonShapeTypes];
@@ -0,0 +1,8 @@
1
+ export declare const AndroidButtonStyleTypes: {
2
+ readonly FILLED: "filled";
3
+ readonly ELEVATED: "elevated";
4
+ readonly TONAL: "tonal";
5
+ readonly OUTLINED: "outlined";
6
+ readonly TEXT: "text";
7
+ };
8
+ export type AndroidButtonStyleTypes = (typeof AndroidButtonStyleTypes)[keyof typeof AndroidButtonStyleTypes];
@@ -0,0 +1,5 @@
1
+ export declare const AndroidInputShapeTypes: {
2
+ readonly SMALL: "small";
3
+ readonly NORMAL: "normal";
4
+ };
5
+ export type AndroidInputShapeTypes = (typeof AndroidInputShapeTypes)[keyof typeof AndroidInputShapeTypes];
@@ -0,0 +1,5 @@
1
+ export declare const AndroidInputStyleTypes: {
2
+ readonly FILLED: "filled";
3
+ readonly OUTLINED: "outlined";
4
+ };
5
+ export type AndroidInputStyleTypes = (typeof AndroidInputStyleTypes)[keyof typeof AndroidInputStyleTypes];
@@ -0,0 +1,7 @@
1
+ export declare const ButtonTypes: {
2
+ readonly SUBMIT: "submit";
3
+ readonly BUTTON: "button";
4
+ readonly RESET: "reset";
5
+ readonly UNDEFINED: undefined;
6
+ };
7
+ export type ButtonTypes = (typeof ButtonTypes)[keyof typeof ButtonTypes];
@@ -0,0 +1,5 @@
1
+ export declare const IOSButtonShapeTypes: {
2
+ readonly ROUNDED: "rounded";
3
+ readonly CAPSULE: "capsule";
4
+ };
5
+ export type IOSButtonShapeTypes = (typeof IOSButtonShapeTypes)[keyof typeof IOSButtonShapeTypes];
@@ -0,0 +1,7 @@
1
+ export declare const IOSButtonStyleTypes: {
2
+ readonly FILLED: "filled";
3
+ readonly TINTED: "tinted";
4
+ readonly GRAY: "gray";
5
+ readonly PLAIN: "plain";
6
+ };
7
+ export type IOSButtonStyleTypes = (typeof IOSButtonStyleTypes)[keyof typeof IOSButtonStyleTypes];
@@ -0,0 +1,6 @@
1
+ export declare const IOSInputShapeTypes: {
2
+ readonly ROUNDED: "rounded";
3
+ readonly PILL: "pill";
4
+ readonly SQUARE: "square";
5
+ };
6
+ export type IOSInputShapeTypes = (typeof IOSInputShapeTypes)[keyof typeof IOSInputShapeTypes];
@@ -0,0 +1,8 @@
1
+ export declare const IOSInputStyleTypes: {
2
+ readonly FORM: "form";
3
+ readonly ROUNDED_BORDER: "rounded-border";
4
+ readonly FILLED: "filled";
5
+ readonly OUTLINED: "outlined";
6
+ readonly PLAIN: "plain";
7
+ };
8
+ export type IOSInputStyleTypes = (typeof IOSInputStyleTypes)[keyof typeof IOSInputStyleTypes];
@@ -0,0 +1,11 @@
1
+ export declare const InputTypes: {
2
+ readonly TEXT: "text";
3
+ readonly PASSWORD: "password";
4
+ readonly EMAIL: "email";
5
+ readonly NUMBER: "number";
6
+ readonly TEL: "tel";
7
+ readonly URL: "url";
8
+ readonly DATE: "date";
9
+ readonly DATETIME: "datetime";
10
+ };
11
+ export type InputTypes = (typeof InputTypes)[keyof typeof InputTypes];
@@ -0,0 +1,7 @@
1
+ export declare const PlatformTypes: {
2
+ WEB: string;
3
+ ANDROID: string;
4
+ IOS: string;
5
+ DESKTOP: string;
6
+ };
7
+ export type PlatformTypes = (typeof PlatformTypes)[keyof typeof PlatformTypes];
@@ -0,0 +1,9 @@
1
+ export declare const SizeTypes: {
2
+ readonly SX: "sx";
3
+ readonly SM: "sm";
4
+ readonly MD: "md";
5
+ readonly LG: "lg";
6
+ readonly XL: "lg";
7
+ readonly XXL: "lg";
8
+ };
9
+ export type SizeTypes = (typeof SizeTypes)[keyof typeof SizeTypes];
@@ -0,0 +1,17 @@
1
+ export declare const VariantTypes: {
2
+ readonly SECONDARY: "secondary";
3
+ readonly PRIMARY: "primary";
4
+ readonly SUCCESS: "success";
5
+ readonly DANGER: "danger";
6
+ readonly WARNING: "warning";
7
+ readonly INFO: "info";
8
+ readonly LIGHT: "light";
9
+ readonly LINK: "link";
10
+ readonly DARK: "dark";
11
+ readonly MODAL: "modal";
12
+ readonly LION_PACKAGES: "lion-packages";
13
+ readonly LION_PARKING: "lion-parking";
14
+ readonly LION_TECH: "lion-tech";
15
+ readonly LION_GLAM: "lion-glam";
16
+ };
17
+ export type VariantTypes = (typeof VariantTypes)[keyof typeof VariantTypes];
@@ -0,0 +1,6 @@
1
+ export declare const BootstrapButtonShapeTypes: {
2
+ readonly STANDARD: "standard";
3
+ readonly PILL: "pill";
4
+ readonly SQUARE: "square";
5
+ };
6
+ export type BootstrapButtonShapeTypes = (typeof BootstrapButtonShapeTypes)[keyof typeof BootstrapButtonShapeTypes];
@@ -0,0 +1,5 @@
1
+ export declare const BootstrapButtonStyleTypes: {
2
+ readonly FILLED: "filled";
3
+ readonly OUTLINED: "outlined";
4
+ };
5
+ export type BootstrapButtonStyleTypes = (typeof BootstrapButtonStyleTypes)[keyof typeof BootstrapButtonStyleTypes];
@@ -0,0 +1,6 @@
1
+ export declare const BootstrapInputShapeTypes: {
2
+ readonly ROUNDED: "rounded";
3
+ readonly PILL: "rounded-pill";
4
+ readonly SQUARE: "rounded-0";
5
+ };
6
+ export type BootstrapInputShapeTypes = (typeof BootstrapInputShapeTypes)[keyof typeof BootstrapInputShapeTypes];
@@ -0,0 +1,5 @@
1
+ export declare const BootstrapInputStyleTypes: {
2
+ readonly FLOATING: "floating";
3
+ readonly STANDARD: "standard";
4
+ };
5
+ export type BootstrapInputStyleTypes = (typeof BootstrapInputStyleTypes)[keyof typeof BootstrapInputStyleTypes];
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
-
2
1
  {
3
2
  "name": "@lion-npm/ui",
4
3
  "private": false,
5
- "version": "1.0.3",
4
+ "version": "1.0.5",
6
5
  "type": "module",
7
6
  "main": "./dist/index.js",
8
7
  "module": "./dist/index.js",