@admin-layout/tailwind-ui 12.2.4-alpha.0 → 12.2.4-alpha.12

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.
@@ -197,4 +197,4 @@ import React__default,{useRef,useEffect}from'react';import {useActor}from'@xstat
197
197
  className: "px-2 py-0.5 text-xs text-blue-600 hover:bg-blue-50 transition-colors",
198
198
  onClick: () => handleDateSelect(new Date())
199
199
  }, "Today"))));
200
- };export{DatePicker,DatePicker as default};//# sourceMappingURL=DatePicker.js.map
200
+ };export{DatePicker};//# sourceMappingURL=DatePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemixErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/RemixErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,sBA0HjC"}
1
+ {"version":3,"file":"RemixErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/RemixErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,sBAwIjC"}
@@ -29,6 +29,8 @@ function RemixErrorBoundary() {
29
29
  className: "flex h-16 w-16 items-center justify-center rounded-full bg-red-100"
30
30
  }, React.createElement("svg", {
31
31
  className: "h-8 w-8 text-red-500",
32
+ width: "32",
33
+ height: "32",
32
34
  fill: "none",
33
35
  viewBox: "0 0 24 24",
34
36
  stroke: "currentColor"
@@ -97,6 +99,8 @@ function RemixErrorBoundary() {
97
99
  className: "flex h-16 w-16 items-center justify-center rounded-full bg-red-100"
98
100
  }, React.createElement("svg", {
99
101
  className: "h-8 w-8 text-red-500",
102
+ width: "32",
103
+ height: "32",
100
104
  fill: "none",
101
105
  viewBox: "0 0 24 24",
102
106
  stroke: "currentColor"
@@ -1 +1 @@
1
- {"version":3,"file":"RemixErrorBoundary.js","sources":["../../../src/components/ErrorHandlers/RemixErrorBoundary.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAWG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RemixErrorBoundary.js","sources":["../../../src/components/ErrorHandlers/RemixErrorBoundary.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAWG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * SPA/Tauri Root ErrorBoundary Component
4
+ *
5
+ * This error boundary is specifically designed for SPA mode (like Tauri apps)
6
+ * where useLoaderData and useNavigate may not be available in error contexts.
7
+ *
8
+ * Key differences from RemixErrorBoundary:
9
+ * - Does NOT use useLoaderData (causes "Cannot useLoaderData in an errorElement" error)
10
+ * - Does NOT use useNavigate (can fail in root error contexts)
11
+ * - Uses window.location.href for navigation instead
12
+ * - Renders complete HTML document (required for root-level error boundaries)
13
+ *
14
+ * Usage in root.tsx:
15
+ * export { SPAErrorBoundary as ErrorBoundary } from '@admin-layout/tailwind-ui';
16
+ */
17
+ export declare function SPAErrorBoundary(): React.JSX.Element;
18
+ //# sourceMappingURL=SPAErrorBoundary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SPAErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/SPAErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,sBAoI/B"}
@@ -0,0 +1,114 @@
1
+ import*as React from'react';import {useRouteError,isRouteErrorResponse,Meta,Links,Scripts}from'@remix-run/react';import {logger}from'@cdm-logger/client';/**
2
+ * SPA/Tauri Root ErrorBoundary Component
3
+ *
4
+ * This error boundary is specifically designed for SPA mode (like Tauri apps)
5
+ * where useLoaderData and useNavigate may not be available in error contexts.
6
+ *
7
+ * Key differences from RemixErrorBoundary:
8
+ * - Does NOT use useLoaderData (causes "Cannot useLoaderData in an errorElement" error)
9
+ * - Does NOT use useNavigate (can fail in root error contexts)
10
+ * - Uses window.location.href for navigation instead
11
+ * - Renders complete HTML document (required for root-level error boundaries)
12
+ *
13
+ * Usage in root.tsx:
14
+ * export { SPAErrorBoundary as ErrorBoundary } from '@admin-layout/tailwind-ui';
15
+ */
16
+ function SPAErrorBoundary() {
17
+ const error = useRouteError();
18
+ React.useEffect(() => {
19
+ logger.error('Root Route Error:', error);
20
+ console.error('Root Route Error:', error);
21
+ }, [error]);
22
+ const handleGoHome = () => {
23
+ // Use direct location change instead of useNavigate to avoid router context issues
24
+ window.location.href = '/';
25
+ };
26
+ if (isRouteErrorResponse(error)) {
27
+ return React.createElement("html", {
28
+ lang: "en"
29
+ }, React.createElement("head", null, React.createElement("meta", {
30
+ charSet: "utf-8"
31
+ }), React.createElement("meta", {
32
+ name: "viewport",
33
+ content: "width=device-width, initial-scale=1"
34
+ }), React.createElement("title", null, error.status, " - ", error.statusText), React.createElement(Meta, null), React.createElement(Links, null)), React.createElement("body", null, React.createElement("div", {
35
+ className: "flex min-h-screen items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8"
36
+ }, React.createElement("div", {
37
+ className: "w-full max-w-md space-y-8 text-center"
38
+ }, React.createElement("div", {
39
+ className: "mb-4 flex justify-center"
40
+ }, React.createElement("div", {
41
+ className: "flex h-16 w-16 items-center justify-center rounded-full bg-red-100"
42
+ }, React.createElement("svg", {
43
+ className: "h-8 w-8 text-red-500",
44
+ width: "32",
45
+ height: "32",
46
+ fill: "none",
47
+ viewBox: "0 0 24 24",
48
+ stroke: "currentColor"
49
+ }, React.createElement("path", {
50
+ strokeLinecap: "round",
51
+ strokeLinejoin: "round",
52
+ strokeWidth: 2,
53
+ d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
54
+ })))), React.createElement("div", null, React.createElement("h1", {
55
+ className: "text-6xl font-bold text-gray-900"
56
+ }, error.status), React.createElement("h2", {
57
+ className: "mt-2 text-2xl font-bold tracking-tight text-gray-900"
58
+ }, error.statusText), error.data && React.createElement("p", {
59
+ className: "mt-2 text-sm text-gray-600"
60
+ }, error.data)), React.createElement("div", {
61
+ className: "mt-6"
62
+ }, React.createElement("button", {
63
+ onClick: handleGoHome,
64
+ className: "inline-flex items-center rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors"
65
+ }, "Go back home")))), React.createElement(Scripts, null)));
66
+ }
67
+ const errorMessage = error instanceof Error ? error.message : 'An unexpected error occurred';
68
+ const errorStack = error instanceof Error ? error.stack : undefined;
69
+ return React.createElement("html", {
70
+ lang: "en"
71
+ }, React.createElement("head", null, React.createElement("meta", {
72
+ charSet: "utf-8"
73
+ }), React.createElement("meta", {
74
+ name: "viewport",
75
+ content: "width=device-width, initial-scale=1"
76
+ }), React.createElement("title", null, "Application Error"), React.createElement(Meta, null), React.createElement(Links, null)), React.createElement("body", null, React.createElement("div", {
77
+ className: "flex min-h-screen items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8"
78
+ }, React.createElement("div", {
79
+ className: "w-full max-w-2xl space-y-8"
80
+ }, React.createElement("div", {
81
+ className: "mb-4 flex justify-center"
82
+ }, React.createElement("div", {
83
+ className: "flex h-16 w-16 items-center justify-center rounded-full bg-red-100"
84
+ }, React.createElement("svg", {
85
+ className: "h-8 w-8 text-red-500",
86
+ width: "32",
87
+ height: "32",
88
+ fill: "none",
89
+ viewBox: "0 0 24 24",
90
+ stroke: "currentColor"
91
+ }, React.createElement("path", {
92
+ strokeLinecap: "round",
93
+ strokeLinejoin: "round",
94
+ strokeWidth: 2,
95
+ d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
96
+ })))), React.createElement("div", {
97
+ className: "text-center"
98
+ }, React.createElement("h1", {
99
+ className: "text-3xl font-bold tracking-tight text-gray-900"
100
+ }, "Application Error"), React.createElement("p", {
101
+ className: "mt-2 text-lg text-red-600"
102
+ }, errorMessage), errorStack && process.env.NODE_ENV !== 'production' && React.createElement("details", {
103
+ className: "mt-4 text-left"
104
+ }, React.createElement("summary", {
105
+ className: "cursor-pointer text-sm font-medium text-gray-700 hover:text-gray-900"
106
+ }, "Stack trace (development only)"), React.createElement("pre", {
107
+ className: "mt-2 overflow-auto rounded-md bg-gray-100 p-4 text-xs text-gray-800 max-h-96"
108
+ }, errorStack))), React.createElement("div", {
109
+ className: "mt-6 text-center"
110
+ }, React.createElement("button", {
111
+ onClick: handleGoHome,
112
+ className: "inline-flex items-center rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors"
113
+ }, "Go back home")))), React.createElement(Scripts, null)));
114
+ }export{SPAErrorBoundary};//# sourceMappingURL=SPAErrorBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SPAErrorBoundary.js","sources":["../../../src/components/ErrorHandlers/SPAErrorBoundary.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAkBG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,4 +2,5 @@ export * from './ApplicationErrorHandler';
2
2
  export * from './ErrorBoundary';
3
3
  export * from './LayoutErrorBoundary';
4
4
  export * from './RemixErrorBoundary';
5
+ export * from './SPAErrorBoundary';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageMenuDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenuDropdown/LanguageMenuDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,eAAO,MAAM,oBAAoB,GAAI,2BAA2B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,GAAG,CAAA;CAAE,sBAmDvG,CAAC"}
1
+ {"version":3,"file":"LanguageMenuDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenuDropdown/LanguageMenuDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,eAAO,MAAM,oBAAoB,GAAI,2BAA2B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,GAAG,CAAA;CAAE,sBAuDvG,CAAC"}
@@ -23,13 +23,17 @@ import React__default,{useState,useEffect}from'react';import {useTranslation}fro
23
23
  global: true
24
24
  });
25
25
  useEffect(() => {
26
- i18n.changeLanguage(settings.language);
26
+ if (i18n?.changeLanguage) {
27
+ i18n.changeLanguage(settings.language);
28
+ }
27
29
  }, []);
28
30
  const handleLanguageChange = value => {
29
31
  const language = filteredLanguages.find(lang => lang.key === value);
30
32
  if (language) {
31
33
  setCurrentLang(language);
32
- i18n.changeLanguage(language.key);
34
+ if (i18n?.changeLanguage) {
35
+ i18n.changeLanguage(language.key);
36
+ }
33
37
  setSettings(settings, {
34
38
  language: language.key
35
39
  });
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageMenuDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"LanguageMenuDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const SingleInput: React.ForwardRefExoticComponent<Omit<Required<Pick<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onPaste" | "aria-label" | "autoComplete" | "inputMode" | "onInput"> & {
2
+ export declare const SingleInput: React.ForwardRefExoticComponent<Omit<Required<Pick<React.InputHTMLAttributes<HTMLInputElement>, "value" | "autoComplete" | "inputMode" | "aria-label" | "onPaste" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeyDown"> & {
3
3
  ref: React.RefCallback<HTMLInputElement>;
4
4
  placeholder: string | undefined;
5
5
  className: string;
@@ -3,13 +3,13 @@ export declare const SelectContent: ({ children, className }: {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  }) => React.JSX.Element;
6
- type SelectItemProps<T extends keyof JSX.IntrinsicElements = 'button'> = Omit<React.ComponentPropsWithoutRef<T>, 'value'> & {
6
+ type SelectItemProps<T extends React.ElementType = 'button'> = Omit<React.ComponentPropsWithoutRef<T>, 'value'> & {
7
7
  value?: any;
8
8
  closeOnClick?: boolean;
9
9
  tag?: T;
10
- onClick?: () => void;
10
+ onClick?: (value: any) => void;
11
11
  };
12
- export declare const SelectItem: <T extends keyof JSX.IntrinsicElements = "button">({ children, className, value, onClick, closeOnClick, tag, ...rest }: SelectItemProps<T>) => React.JSX.Element;
12
+ export declare const SelectItem: <T extends React.ElementType = "button">({ children, className, value, onClick, closeOnClick, tag, ...rest }: SelectItemProps<T>) => React.JSX.Element;
13
13
  export declare const SelectValue: ({ placeholder, icon: _icon, label, }: {
14
14
  placeholder: string;
15
15
  icon?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4E/B,eAAO,MAAM,aAAa,GAAI,yBAAyB;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,sBA2EvG,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,QAAQ,IAAI,IAAI,CACzE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EACjC,OAAO,CACV,GAAG;IACA,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,QAAQ,EAAE,qEAQ1E,eAAe,CAAC,CAAC,CAAC,sBAqBpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sCAIzB;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,S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AAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,qEAQhE,eAAe,CAAC,CAAC,CAAC,sBAqBpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sCAIzB;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,KAAK,MAAM,CAAC;CAC1C,sBAsCA,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,yBAAyB;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,sBAkBvG,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4BAG1B;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,sBAoBA,CAAC;AAEF,UAAU,WAAW;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,sBAMzD,CAAC"}
@@ -1,4 +1,4 @@
1
- import*as React from'react';import {ChevronDown,Search}from'lucide-react';import {cn}from'../../utils/util.js';const SelectContext = React.createContext(undefined);
1
+ import*as React from'react';import {Search,ChevronDown}from'lucide-react';import {cn}from'../../utils/util.js';const SelectContext = React.createContext(undefined);
2
2
  const SelectProvider = ({
3
3
  children,
4
4
  value,
@@ -1 +1 @@
1
-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export{default as PageLoading}from'./components/PageLoading/index.js';export{ApplicationErrorHandler}from'./components/ErrorHandlers/ApplicationErrorHandler.js';export{ErrorBoundary}from'./components/ErrorHandlers/ErrorBoundary.js';export{LayoutErrorBoundary}from'./components/ErrorHandlers/LayoutErrorBoundary.js';export{RemixErrorBoundary}from'./components/ErrorHandlers/RemixErrorBoundary.js';export{ReactTable}from'./components/ReactTable/Table.js';export{DefaultColumnFilter,SelectColumnFilter}from'./components/ReactTable/TableFilters.js';export{Error404}from'./components/ErrorPages/404.js';export{Error500}from'./components/ErrorPages/500.js';export{Error403}from'./components/ErrorPages/403.js';export{PageContainer}from'./components/PageContainer/PageContainer.js';export{Spin}from'./components/Spin/index.js';export{OTPInput}from'./components/OTP/OTPInput.js';export{SingleInput}from'./components/OTP/SingleInput.js';export{useOTPInput}from'./components/OTP/hooks.js';export{OTPVerification}from'./components/OTP/OTPVerification.js';export{SearchInput}from'./components/Search/SearchInput.js';export{Select,SelectContent,SelectItem,SelectSearch,SelectTrigger,SelectValue}from'./components/Select/Select.js';export{DatePicker}from'./components/DatePicker/DatePicker.js';export{TailwindUiButton}from'./components/Button/Button.js';export{TailwindThemeProvider,ThemeContext,themes}from'./components/ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./components/ThemeProvider/ThemeToggle.js';export{LanguageMenuDropdown}from'./components/LanguageMenuDropdown/LanguageMenuDropdown.js';export{useTheme}from'./hooks/useTheme.js';export{useWindowSize}from'./hooks/useWindowSize.js';export{ToastContainer,useToast,useToastCloseAll}from'./hooks/useToast.js';export{useMediaQuery}from'./hooks/useMediaQuery.js';export{cn}from'./utils/util.js';//# sourceMappingURL=index.js.map
1
+ export{default as PageLoading}from'./components/PageLoading/index.js';export{ApplicationErrorHandler}from'./components/ErrorHandlers/ApplicationErrorHandler.js';export{ErrorBoundary}from'./components/ErrorHandlers/ErrorBoundary.js';export{LayoutErrorBoundary}from'./components/ErrorHandlers/LayoutErrorBoundary.js';export{RemixErrorBoundary}from'./components/ErrorHandlers/RemixErrorBoundary.js';export{SPAErrorBoundary}from'./components/ErrorHandlers/SPAErrorBoundary.js';export{ReactTable}from'./components/ReactTable/Table.js';export{DefaultColumnFilter,SelectColumnFilter}from'./components/ReactTable/TableFilters.js';export{Error404}from'./components/ErrorPages/404.js';export{Error500}from'./components/ErrorPages/500.js';export{Error403}from'./components/ErrorPages/403.js';export{PageContainer}from'./components/PageContainer/PageContainer.js';export{Spin}from'./components/Spin/index.js';export{OTPInput}from'./components/OTP/OTPInput.js';export{SingleInput}from'./components/OTP/SingleInput.js';export{useOTPInput}from'./components/OTP/hooks.js';export{OTPVerification}from'./components/OTP/OTPVerification.js';export{SearchInput}from'./components/Search/SearchInput.js';export{Select,SelectContent,SelectItem,SelectSearch,SelectTrigger,SelectValue}from'./components/Select/Select.js';export{DatePicker}from'./components/DatePicker/DatePicker.js';export{TailwindUiButton}from'./components/Button/Button.js';export{TailwindThemeProvider,ThemeContext,themes}from'./components/ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./components/ThemeProvider/ThemeToggle.js';export{LanguageMenuDropdown}from'./components/LanguageMenuDropdown/LanguageMenuDropdown.js';export{useTheme}from'./hooks/useTheme.js';export{useWindowSize}from'./hooks/useWindowSize.js';export{ToastContainer,useToast,useToastCloseAll}from'./hooks/useToast.js';export{useMediaQuery}from'./hooks/useMediaQuery.js';export{cn}from'./utils/util.js';//# sourceMappingURL=index.js.map
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
6
6
  ref?: React.Ref<HTMLDivElement>;
7
7
  } & {
8
8
  asChild?: boolean;
9
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
9
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
10
  label?: string;
11
11
  shouldFilter?: boolean;
12
12
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -34,7 +34,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
34
34
  ref?: React.Ref<HTMLDivElement>;
35
35
  } & {
36
36
  asChild?: boolean;
37
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
37
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
38
38
  label?: string;
39
39
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
40
40
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
@@ -43,14 +43,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
43
43
  ref?: React.Ref<HTMLDivElement>;
44
44
  } & {
45
45
  asChild?: boolean;
46
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
47
47
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
48
  children?: React.ReactNode;
49
49
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
50
50
  ref?: React.Ref<HTMLDivElement>;
51
51
  } & {
52
52
  asChild?: boolean;
53
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
53
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
54
54
  heading?: React.ReactNode;
55
55
  value?: string;
56
56
  forceMount?: boolean;
@@ -59,7 +59,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
59
59
  ref?: React.Ref<HTMLDivElement>;
60
60
  } & {
61
61
  asChild?: boolean;
62
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
62
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
63
63
  alwaysRender?: boolean;
64
64
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
65
65
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
@@ -68,7 +68,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
68
68
  ref?: React.Ref<HTMLDivElement>;
69
69
  } & {
70
70
  asChild?: boolean;
71
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "disabled" | "onSelect"> & {
71
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
72
72
  disabled?: boolean;
73
73
  onSelect?: (value: string) => void;
74
74
  value?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "maxLength" | "onChange" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
3
3
  value?: string;
4
4
  onChange?: (newValue: string) => unknown;
5
5
  maxLength: number;
@@ -12,7 +12,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
12
12
  } & {
13
13
  render: (props: import("input-otp").RenderProps) => React.ReactNode;
14
14
  children?: never;
15
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
15
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "maxLength" | "onChange" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
16
16
  value?: string;
17
17
  onChange?: (newValue: string) => unknown;
18
18
  maxLength: number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as ResizablePrimitive from 'react-resizable-panels';
3
3
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
4
- declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLDetailsElement | HTMLPreElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
+ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLDetailsElement | HTMLPreElement | HTMLHtmlElement | HTMLHeadElement | HTMLBodyElement | HTMLMetaElement | HTMLTitleElement | HTMLScriptElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHRElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLProgressElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
5
5
  className?: string | undefined;
6
6
  collapsedSize?: number | undefined;
7
7
  collapsible?: boolean | undefined;
@@ -37,7 +37,7 @@ export type ProSchemaValueEnumObj = {
37
37
  * @name ValueEnum type
38
38
  * @description Support Map and Object
39
39
  */
40
- export type ProSchemaValueEnumMap = Map<React.ReactText, ProSchemaValueEnumType | ReactNode>;
40
+ export type ProSchemaValueEnumMap = Map<string | number | symbol, ProSchemaValueEnumType | ReactNode>;
41
41
  export type SearchTransformKeyFn = (value: any, field: string, object: any) => string | {
42
42
  [key: string]: any;
43
43
  };
@@ -47,7 +47,7 @@ export type SearchTransformKeyFn = (value: any, field: string, object: any) => s
47
47
  export type ProSchemaComponentTypes = 'form' | 'list' | 'descriptions' | 'table' | 'cardList' | undefined;
48
48
  export type ProFieldRequestData<T, U = any> = (params: U, props: T) => Promise<{
49
49
  label: React.ReactNode;
50
- value: React.ReactText;
50
+ value: string | number | symbol;
51
51
  [key: string]: any;
52
52
  }[]>;
53
53
  /**
@@ -78,7 +78,7 @@ export type ProSchema<T = unknown, U = string, Extra = unknown> = {
78
78
  /**
79
79
  * @name Determine the unique value of this column
80
80
  */
81
- key?: React.ReactText;
81
+ key?: string | number | symbol;
82
82
  /**
83
83
  * @name Key with entity mapping
84
84
  * @description Support a number, [a, b] will be converted to obj.a.b
@@ -111,7 +111,7 @@ export type ProSchema<T = unknown, U = string, Extra = unknown> = {
111
111
  onChange?: (value: any) => void;
112
112
  onSelect?: (value: any) => void;
113
113
  type: ProSchemaComponentTypes;
114
- defaultRender: (newItem: ProSchema<T, U, Extra>) => JSX.Element | null;
114
+ defaultRender: (newItem: ProSchema<T, U, Extra>) => React.ReactNode | null;
115
115
  }, form: FormInstance) => React.ReactNode;
116
116
  /**
117
117
  * @name Customize render
@@ -1 +1 @@
1
- {"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/utils/typing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AACF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,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,KAAK,GAAG,CAAC;IAErF,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,CAAC;IAE1D;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAEzC;;OAEG;IACH,MAAM,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,GAAG,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/tailwind-ui",
3
- "version": "12.2.4-alpha.0",
3
+ "version": "12.2.4-alpha.12",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -10,7 +10,7 @@
10
10
  "./components/*": "./lib/components/*",
11
11
  "./hooks/*": "./lib/hooks/*",
12
12
  "./shardui/util": "./lib/utils/util.js",
13
- "./shardui": "./lib/shardui/*",
13
+ "./shardui": "./lib/shardui/index.js",
14
14
  "./shardui/*": "./lib/shardui/*"
15
15
  },
16
16
  "main": "lib/index.js",
@@ -29,13 +29,14 @@
29
29
  "watch": "npm run build:lib:watch"
30
30
  },
31
31
  "dependencies": {
32
- "@admin-layout/client": "12.2.4-alpha.0",
32
+ "@admin-layout/client": "12.2.4-alpha.12",
33
33
  "@radix-ui/react-accordion": "^1.2.0",
34
34
  "@radix-ui/react-alert-dialog": "^1.1.1",
35
35
  "@radix-ui/react-aspect-ratio": "^1.1.0",
36
36
  "@radix-ui/react-avatar": "^1.1.0",
37
37
  "@radix-ui/react-checkbox": "^1.1.1",
38
38
  "@radix-ui/react-collapsible": "^1.1.0",
39
+ "@radix-ui/react-compose-refs": "^1.1.0",
39
40
  "@radix-ui/react-context-menu": "^2.2.1",
40
41
  "@radix-ui/react-dialog": "^1.1.1",
41
42
  "@radix-ui/react-dropdown-menu": "^2.1.1",
@@ -89,5 +90,5 @@
89
90
  "typescript": {
90
91
  "definition": "lib/index.d.ts"
91
92
  },
92
- "gitHead": "2aab7f1711e368f44601309301c62082f1ebeec1"
93
+ "gitHead": "ebc266babcf79ef46a60363f21c68edf3d2dd1c0"
93
94
  }