elseware-ui 2.2.30 → 2.2.31

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.
@@ -0,0 +1,6 @@
1
+ declare const useDrawer: (defaultVisibility?: boolean) => {
2
+ show: boolean;
3
+ openDrawer: () => void;
4
+ closeDrawer: () => void;
5
+ };
6
+ export default useDrawer;
@@ -0,0 +1,5 @@
1
+ /// <reference types="@types/react" />
2
+ import { MutableRefObject } from "react";
3
+ type ClickOutsideCallback = () => void;
4
+ export default function useClickOutside(ref: MutableRefObject<HTMLElement | null>, fun?: ClickOutsideCallback): void;
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elseware-ui",
3
- "version": "2.2.30",
3
+ "version": "2.2.31",
4
4
  "private": false,
5
5
  "description": "A modern and customizable React UI component library by elseware Technology.",
6
6
  "types": "build/index.d.ts",
@@ -1,116 +0,0 @@
1
- module.exports = {
2
- content: [
3
- "./src/**/*.{js,jsx,ts,tsx}",
4
- "./public/index.html",
5
- "!./src/**/*.stories.tsx", // Exclude all Storybook stories
6
- ],
7
- darkMode: "class", // or 'darkMode' or 'class'
8
- safelist: [
9
- { pattern: /(sm|md|lg|xl|2xl):.*/ }, // Safelist all responsive variants
10
- ],
11
- theme: {
12
- extend: {
13
- colors: {
14
- // New color mappings
15
- primary: {
16
- 50: "#e6e8ec",
17
- 100: "#c3c8d2",
18
- 200: "#9aa2b3",
19
- 300: "#707a93",
20
- 400: "#4c5673",
21
- 500: "#00040f", // Base (Deep navy blue)
22
- 600: "#00030d",
23
- 700: "#00020a",
24
- 800: "#000106",
25
- 900: "#000003",
26
- },
27
- secondary: {
28
- 50: "#e6ffcc",
29
- 100: "#c0ff8c",
30
- 200: "#a3ff5f",
31
- 300: "#7aff2f",
32
- 400: "#64e245",
33
- 500: "#4cd900", // Base
34
- 600: "#17b800",
35
- 700: "#149900",
36
- 800: "#107a00",
37
- 900: "#0a5a00",
38
- },
39
- success: {
40
- 50: "#b0e8d0",
41
- 100: "#8ddbb9",
42
- 200: "#6bcfa2",
43
- 300: "#48c28b",
44
- 400: "#26b674",
45
- 500: "#198754", // Base
46
- 600: "#146b42",
47
- 700: "#0f4e31",
48
- 800: "#0a321f",
49
- 900: "#05170e",
50
- },
51
- danger: {
52
- 50: "#f9c3c7",
53
- 100: "#f49aa1",
54
- 200: "#ef717b",
55
- 300: "#ea4855",
56
- 400: "#e51f2f",
57
- 500: "#dc3545", // Base
58
- 600: "#af2a37",
59
- 700: "#821f29",
60
- 800: "#56151b",
61
- 900: "#2a0a0e",
62
- },
63
- warning: {
64
- 50: "#fff3cd",
65
- 100: "#ffe89b",
66
- 200: "#ffdc69",
67
- 300: "#ffd137",
68
- 400: "#ffc606",
69
- 500: "#ffc107", // Base
70
- 600: "#cc9905",
71
- 700: "#997104",
72
- 800: "#664902",
73
- 900: "#332401",
74
- },
75
- info: {
76
- 50: "#a7effa",
77
- 100: "#82e6f8",
78
- 200: "#5dddf6",
79
- 300: "#38d3f4",
80
- 400: "#14caf2",
81
- 500: "#0dcaf0", // Base
82
- 600: "#0aa0c0",
83
- 700: "#087690",
84
- 800: "#054c60",
85
- 900: "#032330",
86
- },
87
- light: {
88
- 50: "#ffffff",
89
- 100: "#fefefe",
90
- 200: "#fdfdfd",
91
- 300: "#fcfcfc",
92
- 400: "#fbfbfb",
93
- 500: "#f8f9fa", // Base
94
- 600: "#c6c7c8",
95
- 700: "#949596",
96
- 800: "#626263",
97
- 900: "#313132",
98
- },
99
- dark: {
100
- 50: "#9ea1a4",
101
- 100: "#868a8d",
102
- 200: "#6f7376",
103
- 300: "#575c5f",
104
- 400: "#404547",
105
- 500: "#212529", // Base
106
- 600: "#1a1d20",
107
- 700: "#141618",
108
- 800: "#0d0e10",
109
- 900: "#070708",
110
- },
111
- },
112
- },
113
- fontFamily: { poppins: ["Poppins", "sans-serif"] },
114
- },
115
- plugins: [],
116
- };