@admin-layout/tailwind-ui 12.0.16-alpha.91 → 12.2.1-alpha.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.
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +6 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +139 -157
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
- package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
- package/lib/components/ErrorPages/403.d.ts +2 -1
- package/lib/components/ErrorPages/403.d.ts.map +1 -1
- package/lib/components/ErrorPages/403.js +18 -26
- package/lib/components/ErrorPages/403.js.map +1 -1
- package/lib/components/ErrorPages/404.d.ts +2 -1
- package/lib/components/ErrorPages/404.d.ts.map +1 -1
- package/lib/components/ErrorPages/404.js +18 -26
- package/lib/components/ErrorPages/404.js.map +1 -1
- package/lib/components/ErrorPages/500.d.ts +2 -1
- package/lib/components/ErrorPages/500.d.ts.map +1 -1
- package/lib/components/ErrorPages/500.js +18 -26
- package/lib/components/ErrorPages/500.js.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +2 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +19 -24
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
- package/lib/components/OTP/OTPInput.js +30 -32
- package/lib/components/OTP/OTPInput.js.map +1 -1
- package/lib/components/OTP/OTPVerification.js +55 -75
- package/lib/components/OTP/OTPVerification.js.map +1 -1
- package/lib/components/OTP/SingleInput.js +2 -2
- package/lib/components/OTP/SingleInput.js.map +1 -1
- package/lib/components/PageContainer/PageContainer.js +22 -29
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/PageLoading/index.js +7 -8
- package/lib/components/PageLoading/index.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +2 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.d.ts +2 -1
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.js +71 -92
- package/lib/components/ReactTable/Table.js.map +1 -1
- package/lib/components/ReactTable/TableFilters.d.ts +3 -2
- package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
- package/lib/components/ReactTable/TableFilters.js +34 -40
- package/lib/components/ReactTable/TableFilters.js.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +2 -1
- package/lib/components/Search/SearchInput.d.ts.map +1 -1
- package/lib/components/Search/SearchInput.js +13 -14
- package/lib/components/Search/SearchInput.js.map +1 -1
- package/lib/components/Select/Select.d.ts +6 -6
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +45 -60
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Spin/index.js +11 -14
- package/lib/components/Spin/index.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +4 -5
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +24 -27
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
- package/lib/hooks/useToast.d.ts +1 -1
- package/lib/hooks/useToast.d.ts.map +1 -1
- package/lib/hooks/useToast.js +37 -46
- package/lib/hooks/useToast.js.map +1 -1
- package/lib/shardui/accordion.js +16 -20
- package/lib/shardui/accordion.js.map +1 -1
- package/lib/shardui/alert-dialog.d.ts +2 -2
- package/lib/shardui/alert-dialog.js +13 -15
- package/lib/shardui/alert-dialog.js.map +1 -1
- package/lib/shardui/alert.d.ts +1 -1
- package/lib/shardui/alert.d.ts.map +1 -1
- package/lib/shardui/alert.js +4 -4
- package/lib/shardui/alert.js.map +1 -1
- package/lib/shardui/avatar.js +4 -4
- package/lib/shardui/avatar.js.map +1 -1
- package/lib/shardui/badge.d.ts +2 -2
- package/lib/shardui/badge.d.ts.map +1 -1
- package/lib/shardui/badge.js +2 -2
- package/lib/shardui/badge.js.map +1 -1
- package/lib/shardui/breadcrumb.d.ts +2 -2
- package/lib/shardui/breadcrumb.js +16 -19
- package/lib/shardui/breadcrumb.js.map +1 -1
- package/lib/shardui/button.d.ts +1 -1
- package/lib/shardui/button.d.ts.map +1 -1
- package/lib/shardui/button.js +2 -2
- package/lib/shardui/button.js.map +1 -1
- package/lib/shardui/calendar.d.ts +1 -1
- package/lib/shardui/calendar.d.ts.map +1 -1
- package/lib/shardui/calendar.js +4 -4
- package/lib/shardui/card.js +7 -7
- package/lib/shardui/card.js.map +1 -1
- package/lib/shardui/carousel.js +33 -40
- package/lib/shardui/carousel.js.map +1 -1
- package/lib/shardui/chart.d.ts +1 -1
- package/lib/shardui/chart.d.ts.map +1 -1
- package/lib/shardui/chart.js +66 -81
- package/lib/shardui/chart.js.map +1 -1
- package/lib/shardui/checkbox.js +8 -10
- package/lib/shardui/checkbox.js.map +1 -1
- package/lib/shardui/command.d.ts +2 -2
- package/lib/shardui/command.d.ts.map +1 -1
- package/lib/shardui/command.js +24 -28
- package/lib/shardui/command.js.map +1 -1
- package/lib/shardui/context-menu.d.ts +1 -1
- package/lib/shardui/context-menu.js +30 -41
- package/lib/shardui/context-menu.js.map +1 -1
- package/lib/shardui/dialog.d.ts +2 -2
- package/lib/shardui/dialog.js +17 -22
- package/lib/shardui/dialog.js.map +1 -1
- package/lib/shardui/drawer.d.ts +3 -3
- package/lib/shardui/drawer.js +14 -17
- package/lib/shardui/drawer.js.map +1 -1
- package/lib/shardui/dropdown-menu.d.ts +1 -1
- package/lib/shardui/dropdown-menu.js +31 -42
- package/lib/shardui/dropdown-menu.js.map +1 -1
- package/lib/shardui/form.d.ts +1 -1
- package/lib/shardui/form.d.ts.map +1 -1
- package/lib/shardui/form.js +19 -22
- package/lib/shardui/form.js.map +1 -1
- package/lib/shardui/hover-card.js +2 -2
- package/lib/shardui/hover-card.js.map +1 -1
- package/lib/shardui/input-otp.js +13 -16
- package/lib/shardui/input-otp.js.map +1 -1
- package/lib/shardui/input.js +2 -2
- package/lib/shardui/input.js.map +1 -1
- package/lib/shardui/label.d.ts +1 -1
- package/lib/shardui/label.d.ts.map +1 -1
- package/lib/shardui/label.js +2 -2
- package/lib/shardui/label.js.map +1 -1
- package/lib/shardui/menubar.d.ts +1 -1
- package/lib/shardui/menubar.js +35 -46
- package/lib/shardui/menubar.js.map +1 -1
- package/lib/shardui/navigation-menu.d.ts +1 -1
- package/lib/shardui/navigation-menu.d.ts.map +1 -1
- package/lib/shardui/navigation-menu.js +24 -28
- package/lib/shardui/navigation-menu.js.map +1 -1
- package/lib/shardui/pagination.d.ts +5 -5
- package/lib/shardui/pagination.js +22 -30
- package/lib/shardui/pagination.js.map +1 -1
- package/lib/shardui/popover.js +8 -10
- package/lib/shardui/popover.js.map +1 -1
- package/lib/shardui/progress.js +9 -10
- package/lib/shardui/progress.js.map +1 -1
- package/lib/shardui/radio-group.js +9 -11
- package/lib/shardui/radio-group.js.map +1 -1
- package/lib/shardui/resizable.d.ts +5 -4
- package/lib/shardui/resizable.d.ts.map +1 -1
- package/lib/shardui/resizable.js +9 -11
- package/lib/shardui/resizable.js.map +1 -1
- package/lib/shardui/scroll-area.js +11 -14
- package/lib/shardui/scroll-area.js.map +1 -1
- package/lib/shardui/select.js +35 -49
- package/lib/shardui/select.js.map +1 -1
- package/lib/shardui/separator.js +2 -2
- package/lib/shardui/separator.js.map +1 -1
- package/lib/shardui/sheet.d.ts +3 -3
- package/lib/shardui/sheet.d.ts.map +1 -1
- package/lib/shardui/sheet.js +19 -24
- package/lib/shardui/sheet.js.map +1 -1
- package/lib/shardui/sidebar.d.ts +1 -1
- package/lib/shardui/sidebar.d.ts.map +1 -1
- package/lib/shardui/sidebar.js +88 -104
- package/lib/shardui/sidebar.js.map +1 -1
- package/lib/shardui/skeleton.d.ts +2 -1
- package/lib/shardui/skeleton.d.ts.map +1 -1
- package/lib/shardui/skeleton.js +2 -2
- package/lib/shardui/skeleton.js.map +1 -1
- package/lib/shardui/slider.js +10 -12
- package/lib/shardui/slider.js.map +1 -1
- package/lib/shardui/sonner.d.ts +2 -1
- package/lib/shardui/sonner.d.ts.map +1 -1
- package/lib/shardui/sonner.js +2 -2
- package/lib/shardui/sonner.js.map +1 -1
- package/lib/shardui/switch.js +6 -7
- package/lib/shardui/switch.js.map +1 -1
- package/lib/shardui/table.js +15 -16
- package/lib/shardui/table.js.map +1 -1
- package/lib/shardui/tabs.js +4 -4
- package/lib/shardui/tabs.js.map +1 -1
- package/lib/shardui/textarea.js +2 -2
- package/lib/shardui/textarea.js.map +1 -1
- package/lib/shardui/toast.d.ts +1 -1
- package/lib/shardui/toast.d.ts.map +1 -1
- package/lib/shardui/toast.js +11 -12
- package/lib/shardui/toast.js.map +1 -1
- package/lib/shardui/toaster.d.ts +2 -1
- package/lib/shardui/toaster.d.ts.map +1 -1
- package/lib/shardui/toaster.js +14 -21
- package/lib/shardui/toaster.js.map +1 -1
- package/lib/shardui/toggle-group.d.ts +2 -2
- package/lib/shardui/toggle-group.d.ts.map +1 -1
- package/lib/shardui/toggle-group.js +12 -15
- package/lib/shardui/toggle-group.js.map +1 -1
- package/lib/shardui/toggle.d.ts +2 -2
- package/lib/shardui/toggle.d.ts.map +1 -1
- package/lib/shardui/toggle.js +2 -2
- package/lib/shardui/toggle.js.map +1 -1
- package/lib/shardui/tooltip.js +2 -2
- package/lib/shardui/tooltip.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"403.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"403.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"404.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPages/404.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"404.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPages/404.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,QAAQ,yBAuBpB,CAAC"}
|
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {useNavigate}from'@remix-run/react';import assets from'@admin-layout/assets';const Error404 = () => {
|
|
2
2
|
const navigate = useNavigate();
|
|
3
3
|
const goBack = () => navigate(-1);
|
|
4
|
-
return
|
|
5
|
-
className: "flex justify-center items-center"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children: jsx("button", {
|
|
22
|
-
className: "mt-8 mb-8 w-64 h-20 bg-yellow-400 rounded-full text-white hover:bg-yellow-500 transition-colors",
|
|
23
|
-
onClick: goBack,
|
|
24
|
-
children: "Go Home"
|
|
25
|
-
})
|
|
26
|
-
})]
|
|
27
|
-
})
|
|
28
|
-
});
|
|
4
|
+
return React.createElement("div", {
|
|
5
|
+
className: "flex justify-center items-center"
|
|
6
|
+
}, React.createElement("div", null, React.createElement("div", {
|
|
7
|
+
className: "text-center"
|
|
8
|
+
}, React.createElement("h5", {
|
|
9
|
+
className: "text-2xl font-bold"
|
|
10
|
+
}, "Error: 404 Page Not Found")), React.createElement("div", {
|
|
11
|
+
className: "mt-10"
|
|
12
|
+
}, React.createElement("img", {
|
|
13
|
+
src: assets['error-404-540x432.png'],
|
|
14
|
+
alt: "404 Error"
|
|
15
|
+
})), React.createElement("div", {
|
|
16
|
+
className: "flex justify-center"
|
|
17
|
+
}, React.createElement("button", {
|
|
18
|
+
className: "mt-8 mb-8 w-64 h-20 bg-yellow-400 rounded-full text-white hover:bg-yellow-500 transition-colors",
|
|
19
|
+
onClick: goBack
|
|
20
|
+
}, "Go Home"))));
|
|
29
21
|
};export{Error404};//# sourceMappingURL=404.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"404.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"404.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"500.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPages/500.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"500.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPages/500.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,QAAQ,yBAuBpB,CAAC"}
|
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {useNavigate}from'@remix-run/react';import assets from'@admin-layout/assets';const Error500 = () => {
|
|
2
2
|
const navigate = useNavigate();
|
|
3
3
|
const goBack = () => navigate(-1);
|
|
4
|
-
return
|
|
5
|
-
className: "flex justify-center items-center"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children: jsx("button", {
|
|
22
|
-
className: "mt-8 mb-8 w-64 h-20 bg-yellow-400 rounded-full text-white hover:bg-yellow-500 transition-colors",
|
|
23
|
-
onClick: goBack,
|
|
24
|
-
children: "Go Home"
|
|
25
|
-
})
|
|
26
|
-
})]
|
|
27
|
-
})
|
|
28
|
-
});
|
|
4
|
+
return React.createElement("div", {
|
|
5
|
+
className: "flex justify-center items-center"
|
|
6
|
+
}, React.createElement("div", null, React.createElement("div", {
|
|
7
|
+
className: "text-center"
|
|
8
|
+
}, React.createElement("h5", {
|
|
9
|
+
className: "text-2xl font-bold"
|
|
10
|
+
}, "Error: 500 Unexpected Error")), React.createElement("div", {
|
|
11
|
+
className: "mt-10"
|
|
12
|
+
}, React.createElement("img", {
|
|
13
|
+
src: assets['error-500-252x475.png'],
|
|
14
|
+
alt: "500 Error"
|
|
15
|
+
})), React.createElement("div", {
|
|
16
|
+
className: "flex justify-center"
|
|
17
|
+
}, React.createElement("button", {
|
|
18
|
+
className: "mt-8 mb-8 w-64 h-20 bg-yellow-400 rounded-full text-white hover:bg-yellow-500 transition-colors",
|
|
19
|
+
onClick: goBack
|
|
20
|
+
}, "Go Home"))));
|
|
29
21
|
};export{Error500};//# sourceMappingURL=500.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"500.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"500.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const LanguageMenuDropdown: ({ className, i18nConfig }: {
|
|
2
3
|
className?: string;
|
|
3
4
|
i18nConfig?: any;
|
|
4
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element;
|
|
5
6
|
//# sourceMappingURL=LanguageMenuDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageMenuDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenuDropdown/LanguageMenuDropdown.tsx"],"names":[],"mappings":"
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React__default,{useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {useMediaQuery}from'../../hooks/useMediaQuery.js';import {languages,useLayoutSettings}from'@admin-layout/client';import'../../utils/isBrowser/index.js';import {cn}from'../../utils/util.js';import'fast-deep-equal/react.js';const LanguageMenuDropdown = ({
|
|
2
2
|
className,
|
|
3
3
|
i18nConfig
|
|
4
4
|
}) => {
|
|
@@ -35,27 +35,22 @@ import {jsx}from'react/jsx-runtime';import {useState,useEffect}from'react';impor
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
return
|
|
39
|
-
className: "relative"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
})
|
|
57
|
-
}, language.key))
|
|
58
|
-
})
|
|
59
|
-
})
|
|
60
|
-
});
|
|
38
|
+
return React__default.createElement("div", {
|
|
39
|
+
className: "relative"
|
|
40
|
+
}, React__default.createElement("div", {
|
|
41
|
+
className: "custom-select-container w-[180px]"
|
|
42
|
+
}, React__default.createElement("select", {
|
|
43
|
+
className: cn('w-full h-10 rounded-md outline-none border border-input bg-background px-3 py-2 pl-10 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 appearance-none cursor-pointer', className),
|
|
44
|
+
value: currentLang.key,
|
|
45
|
+
onChange: e => handleLanguageChange(e.target.value),
|
|
46
|
+
"aria-label": "Select language"
|
|
47
|
+
}, filteredLanguages.map(language => React__default.createElement("option", {
|
|
48
|
+
key: language.key,
|
|
49
|
+
value: language.key,
|
|
50
|
+
className: "p-2"
|
|
51
|
+
}, React__default.createElement("div", {
|
|
52
|
+
className: "p-2"
|
|
53
|
+
}, React__default.createElement("span", {
|
|
54
|
+
className: "text-sm"
|
|
55
|
+
}, isMobile ? language.key : language.label)))))));
|
|
61
56
|
};export{LanguageMenuDropdown};//# sourceMappingURL=LanguageMenuDropdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageMenuDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LanguageMenuDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from'react';import {useOTPInput}from'./hooks.js';import {SingleInput}from'./SingleInput.js';import {getPlaceholderValue,isInputNumeric}from'./utils.js';const OTPInput = ({
|
|
2
2
|
value = '',
|
|
3
3
|
numInputs = 4,
|
|
4
4
|
onChange,
|
|
@@ -23,7 +23,7 @@ import {jsx,jsxs}from'react/jsx-runtime';import React__default from'react';impor
|
|
|
23
23
|
handlePaste
|
|
24
24
|
}, inputRefs] = useOTPInput(value, numInputs, onChange, inputType, shouldAutoFocus);
|
|
25
25
|
// Create default input renderer if not provided
|
|
26
|
-
const defaultRenderInput = (props, index) =>
|
|
26
|
+
const defaultRenderInput = (props, index) => React__default.createElement(SingleInput, {
|
|
27
27
|
...props,
|
|
28
28
|
focused: activeInput === index
|
|
29
29
|
});
|
|
@@ -47,36 +47,34 @@ import {jsx,jsxs}from'react/jsx-runtime';import React__default from'react';impor
|
|
|
47
47
|
// Let the hook handle the paste logic
|
|
48
48
|
handlePaste(e);
|
|
49
49
|
};
|
|
50
|
-
return
|
|
50
|
+
return React__default.createElement("div", {
|
|
51
51
|
className: `flex items-center justify-center space-x-2 md:space-x-4 ${containerClassName || ''}`,
|
|
52
52
|
onPaste: handleComponentPaste,
|
|
53
|
-
"data-testid": "otp-input-container"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}, index))
|
|
81
|
-
});
|
|
53
|
+
"data-testid": "otp-input-container"
|
|
54
|
+
}, Array.from({
|
|
55
|
+
length: numInputs
|
|
56
|
+
}, (_, index) => React__default.createElement(React__default.Fragment, {
|
|
57
|
+
key: index
|
|
58
|
+
}, inputRenderer({
|
|
59
|
+
value: otp[index] || '',
|
|
60
|
+
placeholder: placeholderValue?.[index],
|
|
61
|
+
ref: element => {
|
|
62
|
+
if (inputRefs.current) {
|
|
63
|
+
inputRefs.current[index] = element;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
onChange: handleChange,
|
|
67
|
+
onFocus: event => handleFocus(event)(index),
|
|
68
|
+
onBlur: handleBlur,
|
|
69
|
+
onKeyDown: handleKeyDown,
|
|
70
|
+
onPaste: handlePaste,
|
|
71
|
+
autoComplete: 'off',
|
|
72
|
+
'aria-label': `Please enter OTP character ${index + 1}`,
|
|
73
|
+
className: skipDefaultStyles ? inputClassName || '' : `${inputClassName || ''}`,
|
|
74
|
+
type: inputType,
|
|
75
|
+
inputMode: isInputNum ? 'numeric' : 'text',
|
|
76
|
+
onInput: handleInputChange
|
|
77
|
+
}, index), index < numInputs - 1 && (typeof renderSeparator === 'function' ? renderSeparator(index) : renderSeparator || React__default.createElement("span", {
|
|
78
|
+
className: "text-gray-400"
|
|
79
|
+
}, "-")))));
|
|
82
80
|
};export{OTPInput};//# sourceMappingURL=OTPInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTPInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OTPInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default,{useState,useEffect}from'react';import {OTPInput}from'./OTPInput.js';import {icons}from'../../icons/index.js';const OTPVerification = ({
|
|
2
2
|
length = 4,
|
|
3
3
|
onVerificationSuccess,
|
|
4
4
|
onVerificationFailed,
|
|
@@ -78,78 +78,58 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useEffect}fro
|
|
|
78
78
|
alert('Code resent!');
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
return
|
|
82
|
-
className: "max-w-fit w-full bg-white rounded-2xl shadow-xl overflow-hidden"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
className: "w-full py-3 bg-green-600 text-white rounded-lg font-medium hover:bg-green-700 transition-colors",
|
|
136
|
-
onClick: handleContinue,
|
|
137
|
-
children: continueButtonText
|
|
138
|
-
})]
|
|
139
|
-
}), showFooter && jsx("div", {
|
|
140
|
-
className: "bg-gray-50 py-4 px-8 border-t border-gray-100",
|
|
141
|
-
children: jsxs("p", {
|
|
142
|
-
className: "text-xs text-center text-gray-500",
|
|
143
|
-
children: ["By continuing, you agree to our", ' ', jsx("a", {
|
|
144
|
-
href: "#",
|
|
145
|
-
className: "text-blue-600",
|
|
146
|
-
children: "Terms of Service"
|
|
147
|
-
}), ' ', "and", ' ', jsx("a", {
|
|
148
|
-
href: "#",
|
|
149
|
-
className: "text-blue-600",
|
|
150
|
-
children: "Privacy Policy"
|
|
151
|
-
})]
|
|
152
|
-
})
|
|
153
|
-
})]
|
|
154
|
-
});
|
|
81
|
+
return React__default.createElement("div", {
|
|
82
|
+
className: "max-w-fit w-full bg-white rounded-2xl shadow-xl overflow-hidden"
|
|
83
|
+
}, React__default.createElement("div", {
|
|
84
|
+
className: "p-8"
|
|
85
|
+
}, React__default.createElement("div", {
|
|
86
|
+
className: `flex items-center justify-center w-16 h-16 rounded-full mx-auto mb-6 transition-colors duration-300 ${isVerified ? 'bg-green-100' : isInvalid ? 'bg-red-100' : 'bg-blue-100'}`
|
|
87
|
+
}, isVerified ? React__default.createElement(CheckIcon, {
|
|
88
|
+
className: "w-8 h-8 text-green-600"
|
|
89
|
+
}) : isInvalid ? React__default.createElement(AlertIcon, {
|
|
90
|
+
className: "w-8 h-8 text-red-600"
|
|
91
|
+
}) : React__default.createElement(LockIcon, {
|
|
92
|
+
className: "w-8 h-8 text-blue-600"
|
|
93
|
+
})), React__default.createElement("h1", {
|
|
94
|
+
className: `text-2xl font-bold text-center mb-2 ${isVerified ? 'text-green-800' : isInvalid ? 'text-red-800' : 'text-gray-800'}`
|
|
95
|
+
}, isVerified ? 'Verification Complete' : title), React__default.createElement("p", {
|
|
96
|
+
className: `text-center mb-8 ${isVerified ? 'text-green-600' : isInvalid ? 'text-red-600' : 'text-gray-600'}`
|
|
97
|
+
}, isVerified ? successMessage : isInvalid ? errorMessage : description), !isVerified ? React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
98
|
+
className: "mb-6"
|
|
99
|
+
}, React__default.createElement(OTPInput, {
|
|
100
|
+
value: otp,
|
|
101
|
+
onChange: handleChange,
|
|
102
|
+
numInputs: length,
|
|
103
|
+
shouldAutoFocus: true,
|
|
104
|
+
inputType: "number",
|
|
105
|
+
renderSeparator: React__default.createElement("span", {
|
|
106
|
+
className: "text-gray-300"
|
|
107
|
+
}, "\u2022"),
|
|
108
|
+
containerClassName: `justify-center ${isInvalid ? 'animate-shake' : ''}`,
|
|
109
|
+
inputClassName: isInvalid ? 'border-red-500 text-red-500' : ''
|
|
110
|
+
})), React__default.createElement("div", {
|
|
111
|
+
className: "text-center mb-6"
|
|
112
|
+
}, React__default.createElement("p", {
|
|
113
|
+
className: "text-sm text-gray-500"
|
|
114
|
+
}, "Didn't receive a code?"), React__default.createElement("button", {
|
|
115
|
+
className: "text-blue-600 font-medium text-sm hover:text-blue-800 transition-colors mt-1",
|
|
116
|
+
onClick: handleResendCode
|
|
117
|
+
}, resendCodeText)), React__default.createElement("div", {
|
|
118
|
+
className: "flex items-center justify-center text-sm text-gray-600"
|
|
119
|
+
}, React__default.createElement(KeyIcon, {
|
|
120
|
+
className: "w-4 h-4 mr-2"
|
|
121
|
+
}), React__default.createElement("span", null, "Secured with end-to-end encryption"))) : React__default.createElement("button", {
|
|
122
|
+
className: "w-full py-3 bg-green-600 text-white rounded-lg font-medium hover:bg-green-700 transition-colors",
|
|
123
|
+
onClick: handleContinue
|
|
124
|
+
}, continueButtonText)), showFooter && React__default.createElement("div", {
|
|
125
|
+
className: "bg-gray-50 py-4 px-8 border-t border-gray-100"
|
|
126
|
+
}, React__default.createElement("p", {
|
|
127
|
+
className: "text-xs text-center text-gray-500"
|
|
128
|
+
}, "By continuing, you agree to our", ' ', React__default.createElement("a", {
|
|
129
|
+
href: "#",
|
|
130
|
+
className: "text-blue-600"
|
|
131
|
+
}, "Terms of Service"), ' ', "and", ' ', React__default.createElement("a", {
|
|
132
|
+
href: "#",
|
|
133
|
+
className: "text-blue-600"
|
|
134
|
+
}, "Privacy Policy"))));
|
|
155
135
|
};export{OTPVerification};//# sourceMappingURL=OTPVerification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTPVerification.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OTPVerification.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React__default,{forwardRef}from'react';const SingleInput = forwardRef(({
|
|
2
2
|
value,
|
|
3
3
|
focused,
|
|
4
4
|
type,
|
|
@@ -13,7 +13,7 @@ import {jsx}from'react/jsx-runtime';import {forwardRef}from'react';const SingleI
|
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
15
|
}, ref) => {
|
|
16
|
-
return
|
|
16
|
+
return React__default.createElement("input", {
|
|
17
17
|
ref: ref,
|
|
18
18
|
className: `
|
|
19
19
|
w-12 h-12 md:w-14 md:h-14
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"SingleInput.js","sources":["../../../src/components/OTP/SingleInput.tsx"],"sourcesContent":[null],"names":[],"mappings":"8CAGA,MAAA,WAAa,GAAA,UAAW,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default,{useState,useEffect}from'react';import {useLocation,useNavigate}from'@remix-run/react';import {Spin}from'../Spin/index.js';const PageContainer = props => {
|
|
2
2
|
const {
|
|
3
3
|
tabList,
|
|
4
4
|
tabActiveKey,
|
|
@@ -28,36 +28,29 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
|
|
|
28
28
|
key: tab.path
|
|
29
29
|
}));
|
|
30
30
|
if (loading) {
|
|
31
|
-
return
|
|
31
|
+
return React__default.createElement(Spin, null);
|
|
32
32
|
}
|
|
33
|
-
return
|
|
34
|
-
className: "themed-card p-4"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
return React__default.createElement("div", {
|
|
34
|
+
className: "themed-card p-4"
|
|
35
|
+
}, tabList && tabList.length > 0 && React__default.createElement("div", {
|
|
36
|
+
className: "border-b border-border mb-4"
|
|
37
|
+
}, React__default.createElement("div", {
|
|
38
|
+
className: "flex items-center justify-between"
|
|
39
|
+
}, React__default.createElement("ul", {
|
|
40
|
+
className: "flex flex-wrap -mb-px"
|
|
41
|
+
}, tabList.map(tab => React__default.createElement("li", {
|
|
42
|
+
key: tab.path,
|
|
43
|
+
className: "mr-2"
|
|
44
|
+
}, React__default.createElement("button", {
|
|
45
|
+
onClick: () => handleTabChange(tab.path),
|
|
46
|
+
className: `
|
|
46
47
|
inline-block p-4 transition-colors
|
|
47
48
|
${activeTabKey === tab.path ? 'text-primary border-b-2 border-primary' : 'text-muted-foreground hover:text-foreground border-b-2 border-transparent hover:border-accent'}
|
|
48
49
|
focus-themed
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
children: tabBarExtraContent
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
}), jsx("div", {
|
|
59
|
-
className: "page-content text-foreground",
|
|
60
|
-
children: props.children
|
|
61
|
-
})]
|
|
62
|
-
});
|
|
50
|
+
`
|
|
51
|
+
}, tab.tab)))), tabBarExtraContent && React__default.createElement("div", {
|
|
52
|
+
className: "text-muted-foreground"
|
|
53
|
+
}, tabBarExtraContent))), React__default.createElement("div", {
|
|
54
|
+
className: "page-content text-foreground"
|
|
55
|
+
}, props.children));
|
|
63
56
|
};export{PageContainer};//# sourceMappingURL=PageContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from'react';import {Spin}from'../Spin/index.js';const PageLoading = ({
|
|
2
2
|
tip
|
|
3
|
-
}) =>
|
|
4
|
-
className: "pt-24 text-center"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
});export{PageLoading as default};//# sourceMappingURL=index.js.map
|
|
3
|
+
}) => React__default.createElement("div", {
|
|
4
|
+
className: "pt-24 text-center"
|
|
5
|
+
}, React__default.createElement(Spin, {
|
|
6
|
+
size: "large",
|
|
7
|
+
tip: tip
|
|
8
|
+
}));export{PageLoading as default};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/PageLoading/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/PageLoading/index.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"sEAII,MAAA,WAAa,GAAA,CAAA;AAChB,EAIA;AAED,CAAA,KAAAA,cAAA,CAAA,cAA0B,KAAC,EAAA;;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { WidgetProps } from '@rjsf/utils';
|
|
2
3
|
export interface SelectWidgetProps extends WidgetProps {
|
|
3
4
|
multiple?: boolean;
|
|
@@ -6,6 +7,6 @@ export interface SelectWidgetProps extends WidgetProps {
|
|
|
6
7
|
formData: Record<string, any>;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
|
-
declare const PreviewAsyncDropdown: (props: SelectWidgetProps) =>
|
|
10
|
+
declare const PreviewAsyncDropdown: (props: SelectWidgetProps) => React.JSX.Element;
|
|
10
11
|
export default PreviewAsyncDropdown;
|
|
11
12
|
//# sourceMappingURL=PreviewAsyncDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewAsyncDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewAsyncDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PreviewAsyncDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewAsyncDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE;QACZ,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC9E,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACjC,CAAC;CACL;AAOD,QAAA,MAAM,oBAAoB,GAAI,OAAO,iBAAiB,sBA6GrD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface IReactTableInterface {
|
|
2
3
|
columns: any[];
|
|
3
4
|
data: any[];
|
|
@@ -14,5 +15,5 @@ export interface IReactTableInterface {
|
|
|
14
15
|
showFilters?: Boolean;
|
|
15
16
|
onSelectedRowsChange?: Function;
|
|
16
17
|
}
|
|
17
|
-
export declare const ReactTable: (props: IReactTableInterface) =>
|
|
18
|
+
export declare const ReactTable: (props: IReactTableInterface) => React.JSX.Element;
|
|
18
19
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/ReactTable/Table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/ReactTable/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsC1B,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAC5B,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,QAAQ,CAAC;CACnC;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,oBAAoB,sBAgNrD,CAAC"}
|