@sito/ui 0.1.6 → 0.2.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.
Files changed (79) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +33 -2
  3. package/dist/components/Button/Button.d.ts +2 -3
  4. package/dist/components/Button/index.d.ts +2 -2
  5. package/dist/components/Button/types.d.ts +26 -6
  6. package/dist/components/Dialog/Dialog.d.ts +7 -0
  7. package/dist/components/Dialog/DialogActions.d.ts +7 -0
  8. package/dist/components/Dialog/constants.d.ts +3 -0
  9. package/dist/components/Dialog/index.d.ts +3 -0
  10. package/dist/components/Dialog/types.d.ts +58 -0
  11. package/dist/components/Dialog/utils.d.ts +19 -0
  12. package/dist/components/IconButton/IconButton.d.ts +2 -3
  13. package/dist/components/IconButton/index.d.ts +2 -2
  14. package/dist/components/IconButton/types.d.ts +13 -5
  15. package/dist/components/index.d.ts +6 -10
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/useDialog/index.d.ts +2 -0
  18. package/dist/hooks/useDialog/types.d.ts +7 -0
  19. package/dist/hooks/useDialog/useDialog.d.ts +7 -0
  20. package/dist/main.d.ts +4 -3
  21. package/dist/styles.css +327 -0
  22. package/dist/theme.css +76 -0
  23. package/dist/ui.cjs +1 -11
  24. package/dist/ui.d.ts +2 -1
  25. package/dist/ui.js +210 -1732
  26. package/dist/utils/classNames.d.ts +6 -0
  27. package/dist/utils/index.d.ts +1 -0
  28. package/package.json +82 -54
  29. package/dist/components/Button/styles.d.ts +0 -5
  30. package/dist/components/Error/Error.d.ts +0 -3
  31. package/dist/components/Error/Handler.d.ts +0 -3
  32. package/dist/components/Error/index.d.ts +0 -4
  33. package/dist/components/Error/styles.d.ts +0 -4
  34. package/dist/components/Error/types.d.ts +0 -18
  35. package/dist/components/Image/Image.d.ts +0 -3
  36. package/dist/components/Image/index.d.ts +0 -3
  37. package/dist/components/Image/styles.d.ts +0 -9
  38. package/dist/components/Image/types.d.ts +0 -4
  39. package/dist/components/InputControl/Input.d.ts +0 -4
  40. package/dist/components/InputControl/Select.d.ts +0 -4
  41. package/dist/components/InputControl/Textarea.d.ts +0 -4
  42. package/dist/components/InputControl/index.d.ts +0 -5
  43. package/dist/components/InputControl/styles.d.ts +0 -4
  44. package/dist/components/InputControl/types.d.ts +0 -33
  45. package/dist/components/Loading/Loading.d.ts +0 -3
  46. package/dist/components/Loading/index.d.ts +0 -3
  47. package/dist/components/Loading/styles.d.ts +0 -11
  48. package/dist/components/Loading/types.d.ts +0 -8
  49. package/dist/components/Notification/Notification.d.ts +0 -2
  50. package/dist/components/Notification/index.d.ts +0 -3
  51. package/dist/components/Notification/styles.d.ts +0 -9
  52. package/dist/components/Notification/types.d.ts +0 -4
  53. package/dist/components/PrintAfter/PrintAfter.d.ts +0 -4
  54. package/dist/components/PrintAfter/index.d.ts +0 -3
  55. package/dist/components/PrintAfter/types.d.ts +0 -7
  56. package/dist/components/SplashScreen/SplashScreen.d.ts +0 -3
  57. package/dist/components/SplashScreen/index.d.ts +0 -3
  58. package/dist/components/SplashScreen/styles.d.ts +0 -9
  59. package/dist/components/SplashScreen/types.d.ts +0 -9
  60. package/dist/components/Switch/Switch.d.ts +0 -4
  61. package/dist/components/Switch/index.d.ts +0 -3
  62. package/dist/components/Switch/styles.d.ts +0 -4
  63. package/dist/components/Switch/types.d.ts +0 -8
  64. package/dist/hooks/useIsElementInViewport/index.d.ts +0 -5
  65. package/dist/hooks/useScreenHandler/index.d.ts +0 -7
  66. package/dist/lib/Notification.d.ts +0 -11
  67. package/dist/lib/index.d.ts +0 -3
  68. package/dist/main.css +0 -1
  69. package/dist/providers/ModeProvider/ModeProvider.d.ts +0 -3
  70. package/dist/providers/ModeProvider/index.d.ts +0 -2
  71. package/dist/providers/ModeProvider/types.d.ts +0 -10
  72. package/dist/providers/NotificationProvider/NotificationProvider.d.ts +0 -7
  73. package/dist/providers/NotificationProvider/index.d.ts +0 -2
  74. package/dist/providers/NotificationProvider/types.d.ts +0 -20
  75. package/dist/providers/StyleProvider/StyleProvider.d.ts +0 -4
  76. package/dist/providers/StyleProvider/data.d.ts +0 -4
  77. package/dist/providers/StyleProvider/index.d.ts +0 -3
  78. package/dist/providers/StyleProvider/types.d.ts +0 -27
  79. package/dist/providers/index.d.ts +0 -3
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Joins class name values while omitting falsy entries.
3
+ * @param values Class name values to include when truthy.
4
+ * @returns A space-delimited class name string.
5
+ */
6
+ export declare const classNames: (...values: Array<string | false | null | undefined>) => string;
@@ -0,0 +1 @@
1
+ export { classNames } from './classNames';
package/package.json CHANGED
@@ -1,54 +1,82 @@
1
- {
2
- "name": "@sito/ui",
3
- "private": false,
4
- "version": "0.1.6",
5
- "type": "module",
6
- "files": [
7
- "dist/"
8
- ],
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/SitoNumbis/ui.git"
12
- },
13
- "main": "./dist/ui.cjs",
14
- "module": "./dist/ui.js",
15
- "types": "./dist/ui.d.ts",
16
- "exports": {
17
- ".": {
18
- "import": "./dist/ui.js",
19
- "require": "./dist/ui.cjs"
20
- }
21
- },
22
- "sideEffects": [
23
- "**/*.css"
24
- ],
25
- "scripts": {
26
- "dev": "vite",
27
- "build": "tsc && vite build --base=./",
28
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
29
- "preview": "vite preview"
30
- },
31
- "dependencies": {
32
- "@emotion/css": "11.11.2",
33
- "react": "18.2.0",
34
- "react-dom": "18.2.0"
35
- },
36
- "devDependencies": {
37
- "@types/node": "20.8.10",
38
- "@types/react": "18.2.34",
39
- "@types/react-dom": "18.2.14",
40
- "@typescript-eslint/eslint-plugin": "6.0.0",
41
- "@typescript-eslint/parser": "6.0.0",
42
- "@vitejs/plugin-react": "4.0.3",
43
- "autoprefixer": "10.4.16",
44
- "eslint": "8.45.0",
45
- "eslint-plugin-react-hooks": "4.6.0",
46
- "eslint-plugin-react-refresh": "0.4.3",
47
- "react-error-boundary": "3.1.4",
48
- "typescript": "5.0.2",
49
- "use-screen-width": "1.0.3",
50
- "vite": "4.4.5",
51
- "vite-plugin-dts": "3.6.3",
52
- "vite-plugin-lib-inject-css": "1.3.0"
53
- }
54
- }
1
+ {
2
+ "name": "@sito/ui",
3
+ "private": false,
4
+ "version": "0.2.0",
5
+ "type": "module",
6
+ "packageManager": "pnpm@10.34.4",
7
+ "files": [
8
+ "dist/"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/SitoNumbis/ui.git"
13
+ },
14
+ "main": "./dist/ui.cjs",
15
+ "module": "./dist/ui.js",
16
+ "types": "./dist/ui.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/ui.d.ts",
20
+ "import": "./dist/ui.js",
21
+ "require": "./dist/ui.cjs"
22
+ },
23
+ "./styles.css": "./dist/styles.css",
24
+ "./theme.css": "./dist/theme.css"
25
+ },
26
+ "sideEffects": [
27
+ "**/*.css"
28
+ ],
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build": "tsc && vite build --base=./",
32
+ "lint": "oxlint --type-aware --max-warnings 0",
33
+ "lint:fix": "oxlint --type-aware --fix --max-warnings 0",
34
+ "format": "prettier . --write",
35
+ "preview": "vite preview"
36
+ },
37
+ "engines": {
38
+ "node": "^20.19.0 || ^22.13.0 || >=24"
39
+ },
40
+ "peerDependencies": {
41
+ "react": "^19.0.0",
42
+ "react-dom": "^19.0.0"
43
+ },
44
+ "overrides": {
45
+ "@microsoft/api-extractor": "7.58.9",
46
+ "ajv": "6.15.0",
47
+ "brace-expansion": "1.1.16",
48
+ "cross-spawn": "7.0.6",
49
+ "flatted": "3.4.2",
50
+ "lodash": "4.18.1",
51
+ "minimatch": "3.1.5",
52
+ "validator": "13.15.35"
53
+ },
54
+ "pnpm": {
55
+ "overrides": {
56
+ "@microsoft/api-extractor": "7.58.9",
57
+ "ajv": "6.15.0",
58
+ "brace-expansion": "1.1.16",
59
+ "cross-spawn": "7.0.6",
60
+ "flatted": "3.4.2",
61
+ "lodash": "4.18.1",
62
+ "minimatch": "3.1.5",
63
+ "validator": "13.15.35"
64
+ }
65
+ },
66
+ "devDependencies": {
67
+ "@types/node": "26.1.1",
68
+ "@types/react": "19.2.17",
69
+ "@types/react-dom": "19.2.3",
70
+ "@typescript/typescript6": "^6.0.2",
71
+ "@vitejs/plugin-react": "6.0.3",
72
+ "autoprefixer": "10.5.2",
73
+ "oxlint": "1.73.0",
74
+ "oxlint-tsgolint": "0.24.0",
75
+ "prettier": "3.9.4",
76
+ "react": "19.2.7",
77
+ "react-dom": "19.2.7",
78
+ "typescript": "7.0.2",
79
+ "vite": "8.1.4",
80
+ "vite-plugin-dts": "5.0.3"
81
+ }
82
+ }
@@ -1,5 +0,0 @@
1
- import { ColorPalette, ColorVariants } from '../../providers/StyleProvider/types';
2
- import { ButtonShapes } from "./types";
3
- export declare const makeStyles: (colors: ColorPalette, color: ColorVariants, shape: ButtonShapes) => {
4
- root: string;
5
- };
@@ -1,3 +0,0 @@
1
- import { ErrorProps } from "./types";
2
- export declare const Error: (props: ErrorProps) => import("react/jsx-runtime").JSX.Element;
3
- export default Error;
@@ -1,3 +0,0 @@
1
- import { ErrorFallbackProps, HandlerProps } from "./types";
2
- export declare const ErrorFallback: (props: ErrorFallbackProps) => import("react/jsx-runtime").JSX.Element;
3
- export default function Handler(props: HandlerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Error } from "./Error";
2
- import Handler, { ErrorFallback } from "./Handler";
3
- export type { HandlerProps, ErrorFallbackProps, ErrorProps } from "./types";
4
- export { Handler, ErrorFallback, Error };
@@ -1,4 +0,0 @@
1
- import { ColorPalette } from '../../providers/StyleProvider/types';
2
- export declare const makeStyles: (colors: ColorPalette) => {
3
- root: string;
4
- };
@@ -1,18 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { ButtonProps } from '../Button';
3
- export interface ErrorProps {
4
- onRetry?: () => void | undefined;
5
- title?: string | undefined;
6
- text: string;
7
- button?: string | undefined;
8
- buttonProps?: ButtonProps;
9
- className?: string | undefined;
10
- }
11
- export interface ErrorFallbackProps {
12
- error: Error;
13
- resetErrorBoundary?: () => void | undefined;
14
- }
15
- export interface HandlerProps {
16
- children: ReactNode;
17
- onRetry?: () => void | undefined;
18
- }
@@ -1,3 +0,0 @@
1
- import { ImageProps } from "./types";
2
- declare function Image(props: ImageProps): import("react/jsx-runtime").JSX.Element;
3
- export default Image;
@@ -1,3 +0,0 @@
1
- import Image from "./Image";
2
- export type { ImageProps } from "./types";
3
- export { Image };
@@ -1,9 +0,0 @@
1
- import { ColorPalette } from '../../providers/StyleProvider';
2
- /**
3
- *
4
- * @param colors
5
- * @param color
6
- */
7
- export declare const makeStyles: (colors: ColorPalette) => {
8
- root: string;
9
- };
@@ -1,4 +0,0 @@
1
- import { HTMLProps } from "react";
2
- export interface ImageProps extends HTMLProps<HTMLImageElement> {
3
- container: HTMLProps<HTMLDivElement>;
4
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { InputControlProps } from "./types";
3
- declare const InputControl: import("react").ForwardRefExoticComponent<Omit<InputControlProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
4
- export default InputControl;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectControlProps } from "./types";
3
- declare const SelectControl: import("react").ForwardRefExoticComponent<Omit<SelectControlProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
4
- export default SelectControl;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { TextareaControlProps } from "./types";
3
- declare const TextareaControl: import("react").ForwardRefExoticComponent<Omit<TextareaControlProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
4
- export default TextareaControl;
@@ -1,5 +0,0 @@
1
- import TextareaControl from "./Textarea";
2
- import SelectControl from "./Select";
3
- import InputControl from "./Input";
4
- export { TextareaControl, SelectControl, InputControl };
5
- export * from "./types";
@@ -1,4 +0,0 @@
1
- import { ColorPalette, ColorVariants } from '../../providers/StyleProvider/types';
2
- export declare const makeStyles: (colors: ColorPalette, color: ColorVariants) => {
3
- input: string;
4
- };
@@ -1,33 +0,0 @@
1
- import { HTMLProps, ReactNode } from "react";
2
- import { ColorVariants } from '../../providers/StyleProvider';
3
- export interface InputControlProps extends HTMLProps<HTMLInputElement> {
4
- leftComponent?: ReactNode | undefined;
5
- rightComponent?: ReactNode | undefined;
6
- color?: ColorVariants | undefined;
7
- orientation?: "column" | "row" | undefined;
8
- label: string | undefined;
9
- labelClassName?: ColorVariants | string | undefined;
10
- helperText?: string | undefined;
11
- helperTextClassName?: ColorVariants | string | undefined;
12
- type?: "date" | "datetime-local" | "email" | "number" | "password" | "search" | "tel" | "time" | "url" | "text" | undefined;
13
- }
14
- export interface SelectControlProps extends HTMLProps<HTMLSelectElement> {
15
- leftComponent?: ReactNode | undefined;
16
- rightComponent?: ReactNode | undefined;
17
- color?: ColorVariants | undefined;
18
- orientation?: "column" | "row" | undefined;
19
- label: string | undefined;
20
- labelClassName?: ColorVariants | string | undefined;
21
- helperText?: string | undefined;
22
- helperTextClassName?: ColorVariants | string | undefined;
23
- }
24
- export interface TextareaControlProps extends HTMLProps<HTMLTextAreaElement> {
25
- leftComponent?: ReactNode | undefined;
26
- rightComponent?: ReactNode | undefined;
27
- color?: ColorVariants | undefined;
28
- orientation?: "column" | "row" | undefined;
29
- label: string | undefined;
30
- labelClassName?: ColorVariants | string | undefined;
31
- helperText?: string | undefined;
32
- helperTextClassName?: ColorVariants | string | undefined;
33
- }
@@ -1,3 +0,0 @@
1
- import { LoadingProps } from "./types";
2
- declare const Loading: (props: LoadingProps) => import("react/jsx-runtime").JSX.Element;
3
- export default Loading;
@@ -1,3 +0,0 @@
1
- import Loading from "./Loading";
2
- export type { LoadingProps } from "./types";
3
- export { Loading };
@@ -1,11 +0,0 @@
1
- import { ColorPalette, ColorVariants } from '../../providers/StyleProvider/types';
2
- /**
3
- *
4
- * @param colors to set background color
5
- * @param color to set stroke color
6
- * @param inverted to invert background color with stroke color
7
- * @returns
8
- */
9
- export declare const makeStyles: (colors: ColorPalette, color: ColorVariants, inverted: boolean) => {
10
- root: string;
11
- };
@@ -1,8 +0,0 @@
1
- import { HTMLProps } from "react";
2
- import { ColorVariants } from '../../providers/StyleProvider/types';
3
- export interface LoadingProps extends HTMLProps<HTMLDivElement> {
4
- color?: ColorVariants | undefined;
5
- colorInverted?: boolean | undefined;
6
- loaderClass?: string | undefined;
7
- strokeWidth?: string | undefined;
8
- }
@@ -1,2 +0,0 @@
1
- import { NotificationProps } from "./types";
2
- export default function Notification(props: NotificationProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import Notification from "./Notification";
2
- export type { NotificationProps } from "./types";
3
- export { Notification };
@@ -1,9 +0,0 @@
1
- import { ColorPalette, ColorVariants } from '../../providers/StyleProvider/types';
2
- /**
3
- *
4
- * @param colors
5
- * @param color
6
- */
7
- export declare const makeStyles: (colors: ColorPalette, color: ColorVariants) => {
8
- root: string;
9
- };
@@ -1,4 +0,0 @@
1
- import { IconButtonProps } from '../IconButton/types';
2
- export interface NotificationProps {
3
- closeProps?: IconButtonProps | undefined;
4
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { PrintAfterProps } from "./types";
3
- declare const PrintAfter: import("react").MemoExoticComponent<(props: PrintAfterProps) => import("react/jsx-runtime").JSX.Element>;
4
- export default PrintAfter;
@@ -1,3 +0,0 @@
1
- import PrintAfter from "./PrintAfter";
2
- export type { PrintAfterProps } from "./types";
3
- export { PrintAfter };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PrintAfterProps {
3
- children: React.ReactNode;
4
- delay?: number | undefined;
5
- animation?: "appear" | "aGrow" | "aShrink" | string | undefined;
6
- onVisible?: boolean | undefined;
7
- }
@@ -1,3 +0,0 @@
1
- import { SplashScreenProps } from "./types";
2
- declare function SplashScreen(props: SplashScreenProps): import("react/jsx-runtime").JSX.Element | null;
3
- export default SplashScreen;
@@ -1,3 +0,0 @@
1
- import SplashScreen from "./SplashScreen";
2
- export { SplashScreen };
3
- export type { SplashScreenProps } from "./types";
@@ -1,9 +0,0 @@
1
- import { ColorPalette, ColorVariants } from '../../providers/StyleProvider';
2
- /**
3
- *
4
- * @param colors
5
- * @param color
6
- */
7
- export declare const makeStyles: (colors: ColorPalette, color: ColorVariants) => {
8
- root: string;
9
- };
@@ -1,9 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { ColorVariants } from '../../providers/StyleProvider';
3
- export interface SplashScreenProps {
4
- color?: ColorVariants;
5
- appName?: string;
6
- logo: ReactNode | string;
7
- logoClass?: string;
8
- visible?: boolean;
9
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { SwitcherProps } from "./types";
3
- declare const Switcher: import("react").ForwardRefExoticComponent<SwitcherProps & import("react").RefAttributes<HTMLInputElement>>;
4
- export default Switcher;
@@ -1,3 +0,0 @@
1
- import Switcher from "./Switch";
2
- export type { SwitcherProps } from "./types";
3
- export { Switcher };
@@ -1,4 +0,0 @@
1
- import { ColorPalette, ColorVariants } from '../../providers/StyleProvider/types';
2
- export declare const makeStyles: (colors: ColorPalette, activeColor: ColorVariants, inactiveColor: ColorVariants) => {
3
- root: string;
4
- };
@@ -1,8 +0,0 @@
1
- import { InputHTMLAttributes } from "react";
2
- import { ColorVariants } from '../../providers/StyleProvider';
3
- export interface SwitcherProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value"> {
4
- value?: boolean | undefined;
5
- activeColor?: ColorVariants | undefined;
6
- inactiveColor?: ColorVariants | undefined;
7
- label: string | undefined;
8
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const useIsElementInViewport: () => {
3
- elementRef: import("react").MutableRefObject<null>;
4
- isElementInViewport: boolean;
5
- };
@@ -1,7 +0,0 @@
1
- export type Breakpoints = "2xl" | "xl" | "lg" | "md" | "sm" | "xs";
2
- export declare const useMediaQuery: (query: string) => boolean;
3
- export declare const useScreenHandler: () => {
4
- width: number;
5
- height: number;
6
- breakpoint: Breakpoints;
7
- };
@@ -1,11 +0,0 @@
1
- export declare enum NotificationEnumType {
2
- success = "success",
3
- error = "error",
4
- warning = "warning",
5
- info = "info"
6
- }
7
- export type NotificationType = {
8
- message: string;
9
- type: NotificationEnumType;
10
- id: number;
11
- };
@@ -1,3 +0,0 @@
1
- import { NotificationType, NotificationEnumType } from "./Notification";
2
- export { NotificationEnumType };
3
- export type { NotificationType };
package/dist/main.css DELETED
@@ -1 +0,0 @@
1
- .appear{animation:appear .5s ease 1}.disappear{animation:disappear .5s ease 1}@keyframes appear{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes disappear{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(15px)}}.aGrow{transform:scale(0);animation-name:aGrow;animation-fill-mode:forwards;animation-timing-function:ease-in-out;animation-duration:.3s}.aShrink{transform:scale(1);animation-name:aShrink;animation-fill-mode:forwards;animation-timing-function:ease-in-out;animation-duration:.3s}@keyframes aGrow{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes aShrink{0%{transform:scale(1)}to{transform:scale(0)}}.shake{animation:shake 1 .5s linear}.horizontal-shake{animation:horizontalShake 1 .5s linear}@keyframes shake{0%{transform:rotate(-15deg)}20%{transform:rotate(15deg)}30%{transform:rotate(-15deg)}50%{transform:rotate(0)}}@keyframes horizontalShake{0%{transform:translate(-10px)}20%{transform:translate(+10px)}30%{transform:translate(-10px)}50%{transform:translate(0)}}.button{display:flex;font-weight:600;cursor:default;align-items:center;justify-content:center;padding:.5rem 1.75rem;border-radius:1.5rem;transition-duration:.3s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.outlined.button{border-width:2px}.icon-button{border-radius:100%;font-size:1.25rem;line-height:1.75rem;padding:0}.icon-button.normal{min-width:2.5rem;min-height:2.5rem;width:2.5rem;height:2.5rem}.icon-button.small{min-width:2rem;min-height:2rem;width:2rem;height:2rem}.image{font-style:italic;max-width:100%;height:auto;vertical-align:middle}.box{background-size:0;opacity:1;position:relative;overflow:hidden}.box:before{content:"";position:absolute;height:100%;top:0;right:0;width:calc(200% + 200px);bottom:0;background-image:inherit;animation:move 2s linear infinite}@keyframes move{to{transform:translate(calc(50% + 100px))}}.s-no-padding-left{padding-left:0!important}.s-no-padding-right{padding-right:0!important}.s-small-padding-left{padding-left:.5rem!important}.s-small-padding-right{padding-right:.5rem!important}.sub{display:flex;align-items:center;justify-content:space-between;padding:0 .75rem}.input-control{display:flex;gap:.25rem;align-items:flex-start;justify-content:flex-start;width:100%}.column{flex-direction:column}.row{flex-direction:row}.input-control textarea{width:100%;padding:.5rem 1rem;border-radius:20px;resize:none}.input-control input,.input-control select{width:100%;padding:.5rem 1rem;border-radius:1.5rem}.input-control .sub{width:100%;position:relative;border-radius:1.5rem}.input-control .sub input{border-radius:0}.input-control textarea:focus-visible,.input-control textarea,.input-control input:focus-visible,.input-control input{outline:none!important}.error-root{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:100vh;min-height:100svh}.s-error-body{width:60%;white-space:break-spaces;text-align:center}.s-error-icon{filter:invert(1);width:40px;height:40px}.loader-container{padding:5%}.loader{width:40px;position:relative;margin:0 auto}.loader:before{content:"";padding-top:100%;display:block}.circular{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;-webkit-transform-origin:center center;transform-origin:center center}.path{stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round}@-webkit-keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.loading{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.notification-portal{position:fixed;left:0;bottom:0;z-index:40;gap:8px;padding:8px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;pointer-events:none}.notification-root{min-width:160px;padding:12px 44px 12px 16px;position:relative;border-radius:100px;z-index:10;gap:8px;pointer-events:auto;display:flex;justify-content:space-between;align-items:center}.notification-close-button{position:absolute;top:50%;transform:translateY(-50%);right:.25rem}.close-notification-icon{width:14px;height:15px}.check-input{height:0;width:0;display:none!important}.switcher-root{display:flex;gap:.75rem;align-items:center;justify-content:flex-start}.switcher{width:55px;height:25px;border-radius:100px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;position:relative}.ball{width:20px;height:14px;border-radius:20px;top:50%;transition:all .5s ease;position:absolute}.deactivated{transform:translate(20%,-50%)}.activated{transform:translate(150%,-50%)}.splash-screen{height:100vh;height:100svh;display:flex;width:100%;position:fixed;top:0;left:0;z-index:50;flex-direction:column;align-items:center;overflow:hidden;transition-duration:.3s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.logo-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.splash-loading-show{opacity:1}.splash-loading-hide{opacity:0}.splash-loading{transition:opacity .3s cubic-bezier(.4,0,.2,1)}.splash-image{width:100px;height:100px;object-fit:cover;object-position:center;border-radius:100%}.brand{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:1.25rem}.brand p{font-size:15px}.brand-name{display:flex;align-items:flex-end}.brand-name p{font-size:1.25rem}.splash-sito-logo{width:100px;height:60px;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.splash-loading{background-color:#0000!important;height:70px!important}.splash-loading .loader{width:30px}.slide-in-bck-center{-webkit-animation:slide-in-bck-center .7s cubic-bezier(.25,.46,.45,.94) both;animation:slide-in-bck-center .7s cubic-bezier(.25,.46,.45,.94) both}@-webkit-keyframes slide-in-bck-center{0%{-webkit-transform:translateZ(600px);transform:translateZ(600px);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes slide-in-bck-center{0%{-webkit-transform:translateZ(600px);transform:translateZ(600px);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.puff-in-center{-webkit-animation:puff-in-center .7s cubic-bezier(.47,0,.745,.715) both;animation:puff-in-center .7s cubic-bezier(.47,0,.745,.715) both}@-webkit-keyframes puff-in-center{0%{-webkit-transform:scale(2);transform:scale(2);-webkit-filter:blur(4px);filter:blur(4px);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);-webkit-filter:blur(0px);filter:blur(0px);opacity:1}}@keyframes puff-in-center{0%{-webkit-transform:scale(2);transform:scale(2);-webkit-filter:blur(4px);filter:blur(4px);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);-webkit-filter:blur(0px);filter:blur(0px);opacity:1}}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,120%,0);transform:translate3d(0,120%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}.animated{animation-delay:1s;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}
@@ -1,3 +0,0 @@
1
- import { ModeProviderData, ModeProviderProps } from "./types";
2
- export declare const ModeProvider: (props: ModeProviderProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const useMode: () => ModeProviderData;
@@ -1,2 +0,0 @@
1
- export { ModeProvider, useMode } from "./ModeProvider";
2
- export * from "./types";
@@ -1,10 +0,0 @@
1
- import { ReactNode } from "react";
2
- export interface ModeProviderData {
3
- mode: "dark" | "light" | "OS";
4
- setMode: React.Dispatch<React.SetStateAction<"dark" | "light" | "OS">>;
5
- toggleMode: () => void;
6
- }
7
- export interface ModeProviderProps {
8
- children: ReactNode;
9
- defaultMode: "dark" | "light" | "OS";
10
- }
@@ -1,7 +0,0 @@
1
- import { NotificationProviderProps, NotificationContextType } from "./types";
2
- export declare function NotificationProvider(props: NotificationProviderProps): import("react/jsx-runtime").JSX.Element;
3
- /**
4
- *
5
- * @returns notification context
6
- */
7
- export declare const useNotification: () => NotificationContextType;
@@ -1,2 +0,0 @@
1
- export { NotificationProvider, useNotification } from "./NotificationProvider";
2
- export * from "./types";
@@ -1,20 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { NotificationType } from '../../lib';
3
- export interface NotificationProviderProps {
4
- children: ReactNode;
5
- container: Element | DocumentFragment;
6
- }
7
- export type NotificationActionType = {
8
- type: "set" | "remove";
9
- items?: NotificationType[];
10
- index?: number;
11
- };
12
- export type NotificationContextType = {
13
- notification: NotificationType[];
14
- container: Element | DocumentFragment;
15
- removeNotification: (index?: number) => void;
16
- showErrorNotification: (options: NotificationType) => void;
17
- showNotification: (options: NotificationType) => void;
18
- showSuccessNotification: (options: NotificationType) => void;
19
- showStackNotifications: (notifications: NotificationType[]) => void;
20
- };
@@ -1,4 +0,0 @@
1
- import { StyleProviderData, StyleProviderProps } from "./types";
2
- declare const StyleProvider: (props: StyleProviderProps) => import("react/jsx-runtime").JSX.Element;
3
- declare const useStyle: () => StyleProviderData;
4
- export { StyleProvider, useStyle };
@@ -1,4 +0,0 @@
1
- import { ColorType, UiTheme } from "./types";
2
- export declare const defaultDark: ColorType;
3
- export declare const defaultLight: ColorType;
4
- export declare const defaultTheme: UiTheme;
@@ -1,3 +0,0 @@
1
- import { StyleProvider, useStyle } from "./StyleProvider";
2
- export * from "./types";
3
- export { StyleProvider, useStyle };
@@ -1,27 +0,0 @@
1
- import { ReactNode } from "react";
2
- export interface UiTheme {
3
- [key: string]: ColorPalette;
4
- }
5
- export interface ColorPalette {
6
- primary: ColorType;
7
- secondary: ColorType;
8
- basics: ColorType;
9
- error: ColorType;
10
- warning: ColorType;
11
- success: ColorType;
12
- info: ColorType;
13
- }
14
- export type ColorType = {
15
- text: string;
16
- light: string;
17
- default: string;
18
- dark: string;
19
- };
20
- export type ColorVariants = "primary" | "secondary" | "basics" | "error" | "warning" | "success" | "info";
21
- export interface StyleProviderProps {
22
- children: ReactNode;
23
- theme?: UiTheme;
24
- }
25
- export interface StyleProviderData {
26
- colors: ColorPalette;
27
- }
@@ -1,3 +0,0 @@
1
- export * from "./ModeProvider";
2
- export * from "./NotificationProvider";
3
- export * from "./StyleProvider";