@admin-layout/tailwind-ui 12.0.16-alpha.3 → 12.0.16-alpha.30
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/README.md +20 -0
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +5 -9
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js.map +1 -1
- package/lib/components/PageContainer/PageContainer.d.ts.map +1 -1
- package/lib/components/PageContainer/PageContainer.js +9 -4
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +11 -0
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewDateWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewDateWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewDialog.d.ts +9 -0
- package/lib/components/RJSFPreview/PreviewDialog.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts +16 -0
- package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewInputWidget.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewInputWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewStepper.d.ts +9 -0
- package/lib/components/RJSFPreview/PreviewStepper.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts +9 -0
- package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewTab.d.ts +17 -0
- package/lib/components/RJSFPreview/PreviewTab.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts +9 -0
- package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts.map +1 -0
- package/lib/components/RJSFPreview/index.d.ts +2 -0
- package/lib/components/RJSFPreview/index.d.ts.map +1 -0
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +11 -0
- package/lib/components/Search/SearchInput.d.ts.map +1 -0
- package/lib/components/Search/SearchInput.js +33 -0
- package/lib/components/Search/SearchInput.js.map +1 -0
- package/lib/components/Search/index.d.ts +2 -0
- package/lib/components/Search/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useTheme.js +1 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize.js +20 -0
- package/lib/hooks/useWindowSize.js.map +1 -0
- package/lib/index.d.ts +1 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/shardui/button.d.ts +1 -1
- package/lib/shardui/command.d.ts +1 -1
- package/lib/shardui/index.js +1 -0
- package/lib/shardui/index.js.map +1 -0
- package/lib/shardui/resizable.d.ts +1 -1
- package/lib/shardui/sheet.d.ts +1 -1
- package/lib/shardui/sonner.js +3 -3
- package/lib/shardui/sonner.js.map +1 -1
- package/package.json +52 -4
package/README.md
CHANGED
|
@@ -18,6 +18,26 @@ We use Tailwind utility classes directly in our components. This approach provid
|
|
|
18
18
|
3. Ensures consistent styling across the application
|
|
19
19
|
4. Reduces overall bundle size by removing unnecessary CSS
|
|
20
20
|
|
|
21
|
+
## How to Use
|
|
22
|
+
|
|
23
|
+
### Importing Components from Admin Layout
|
|
24
|
+
|
|
25
|
+
**✅ Correct Import Method:**
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
import { Button } from '@admin-layout/tailwind-ui/shardui/button.js';
|
|
29
|
+
import { Input } from '@admin-layout/tailwind-ui/shardui/input.js';
|
|
30
|
+
import { Card } from '@admin-layout/tailwind-ui/shardui/card.js';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**❌ Avoid Importing from lib:**
|
|
34
|
+
|
|
35
|
+
```jsx
|
|
36
|
+
// DON'T DO THIS
|
|
37
|
+
import { Button } from '@admin-layout/tailwind-ui/lib/components/Button';
|
|
38
|
+
import { Button } from '@admin-layout/tailwind-ui';
|
|
39
|
+
```
|
|
40
|
+
|
|
21
41
|
## Tailwind CSS Implementation Guidelines
|
|
22
42
|
|
|
23
43
|
Follow these guidelines when implementing components with Tailwind:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/ApplicationErrorHandler.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/ApplicationErrorHandler.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,uBAAuB,GAAI,UAAK,4CAG5C,CAAC"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {ApplicationErrorHandlerCommon}from'@admin-layout/client';import*as React from'react';import {logger}from'@cdm-logger/client';import {
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {ApplicationErrorHandlerCommon}from'@admin-layout/client';import*as React from'react';import {logger}from'@cdm-logger/client';import'../ThemeProvider/ThemeProvider.js';import {toast}from'sonner';const FallbackComponent = ({
|
|
2
2
|
error
|
|
3
3
|
}) => {
|
|
4
|
-
const toast = useToast();
|
|
5
4
|
React.useLayoutEffect(() => {
|
|
6
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
7
|
-
toast({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
status: 'error',
|
|
11
|
-
duration: 9000,
|
|
12
|
-
isClosable: true
|
|
6
|
+
toast.error('Server Errors. Please try again later...', {
|
|
7
|
+
description: error?.payload.message,
|
|
8
|
+
duration: 9000
|
|
13
9
|
});
|
|
14
10
|
}
|
|
15
11
|
logger.error('Application Backend Error', error?.payload.message);
|
|
16
|
-
}, [
|
|
12
|
+
}, []);
|
|
17
13
|
return null;
|
|
18
14
|
};
|
|
19
15
|
const ApplicationErrorHandler = props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationErrorHandler.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandler.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/components/PageContainer/PageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/components/PageContainer/PageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+DtD,CAAC"}
|
|
@@ -30,9 +30,9 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
|
|
|
30
30
|
return jsx(Spin, {});
|
|
31
31
|
}
|
|
32
32
|
return jsxs("div", {
|
|
33
|
-
className: "
|
|
33
|
+
className: "themed-card p-4",
|
|
34
34
|
children: [tabList && tabList.length > 0 && jsx("div", {
|
|
35
|
-
className: "
|
|
35
|
+
className: "border-b border-border mb-4",
|
|
36
36
|
children: jsxs("div", {
|
|
37
37
|
className: "flex items-center justify-between",
|
|
38
38
|
children: [jsx("ul", {
|
|
@@ -41,16 +41,21 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
|
|
|
41
41
|
className: "mr-2",
|
|
42
42
|
children: jsx("button", {
|
|
43
43
|
onClick: () => handleTabChange(tab.path),
|
|
44
|
-
className: `
|
|
44
|
+
className: `
|
|
45
|
+
inline-block p-4 transition-colors
|
|
46
|
+
${activeTabKey === tab.path ? 'text-primary border-b-2 border-primary' : 'text-muted-foreground hover:text-foreground border-b-2 border-transparent hover:border-accent'}
|
|
47
|
+
focus-themed
|
|
48
|
+
`,
|
|
45
49
|
children: tab.tab
|
|
46
50
|
})
|
|
47
51
|
}, tab.path))
|
|
48
52
|
}), tabBarExtraContent && jsx("div", {
|
|
53
|
+
className: "text-muted-foreground",
|
|
49
54
|
children: tabBarExtraContent
|
|
50
55
|
})]
|
|
51
56
|
})
|
|
52
57
|
}), jsx("div", {
|
|
53
|
-
className: "page-content",
|
|
58
|
+
className: "page-content text-foreground",
|
|
54
59
|
children: props.children
|
|
55
60
|
})]
|
|
56
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
2
|
+
export interface SelectWidgetProps extends WidgetProps {
|
|
3
|
+
multiple?: boolean;
|
|
4
|
+
widgetContext?: {
|
|
5
|
+
fetcher?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
6
|
+
formData: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare const PreviewAsyncDropdown: (props: SelectWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default PreviewAsyncDropdown;
|
|
11
|
+
//# sourceMappingURL=PreviewAsyncDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewAsyncDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewAsyncDropdown.tsx"],"names":[],"mappings":"AACA,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,4CA6GrD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
interface PreviewCheckboxWidgetProps extends WidgetProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PreviewCheckboxWidget: React.FC<PreviewCheckboxWidgetProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=PreviewCheckboxWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewCheckboxWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewCheckboxWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,UAAU,0BAA2B,SAAQ,WAAW;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAwHtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewCustomFieldTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewCustomFieldTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAMjD,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoPnE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
interface PreviewDateWidgetProps extends WidgetProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PreviewDateWidget: React.FC<PreviewDateWidgetProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=PreviewDateWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewDateWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewDateWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAiB1C,UAAU,sBAAuB,SAAQ,WAAW;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6K9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewDialog.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,kBAAkB;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmBtD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
interface PreviewDropdownWidgetProps extends WidgetProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PreviewDropdownWidget: React.FC<PreviewDropdownWidgetProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=PreviewDropdownWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewDropdownWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewDropdownWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,UAAU,0BAA2B,SAAQ,WAAW;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqEtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewFieldTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewFieldTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgE7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewFileUploadWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewFileUploadWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmHzD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PreviewFormRendererProps {
|
|
3
|
+
schema: any;
|
|
4
|
+
uiSchema: any;
|
|
5
|
+
stepName?: string;
|
|
6
|
+
onNext?: (data: Record<string, any>) => void;
|
|
7
|
+
onPrevious?: () => void;
|
|
8
|
+
initialData?: Record<string, any>;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
isLastStep?: boolean;
|
|
11
|
+
customValidateFunction?: (formData: any, errors: any, uiSchema: any) => any;
|
|
12
|
+
validator?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const PreviewFormRenderer: React.FC<PreviewFormRendererProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=PreviewFormRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewFormRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC,UAAU,wBAAwB;IAC9B,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;IAC5E,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA2OlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewImageUploadWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewImageUploadWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4G1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewInputWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewInputWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6EpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewObjectFieldTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewObjectFieldTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgCzE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
interface PreviewRadioWidgetProps extends WidgetProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PreviewRadioWidget: React.FC<PreviewRadioWidgetProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=PreviewRadioWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewRadioWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewRadioWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,UAAU,uBAAwB,SAAQ,WAAW;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAwEhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewStepper.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewStepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,mBAAmB;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmDxD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
interface PreviewSwitchWidgetProps extends WidgetProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
showTitle?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const PreviewSwitchWidget: React.FC<PreviewSwitchWidgetProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=PreviewSwitchWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewSwitchWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewSwitchWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,UAAU,wBAAyB,SAAQ,WAAW;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAoFlE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PreviewTabProps {
|
|
3
|
+
formSchema: any;
|
|
4
|
+
uiSchema: any;
|
|
5
|
+
customValidateFunction: (formData: any, errors: any, uiSchema: any) => any;
|
|
6
|
+
validator: any;
|
|
7
|
+
handleSubmit: ({ formData, generatedSchema, amenitiesFragmentSchema, }: {
|
|
8
|
+
formData: any;
|
|
9
|
+
generatedSchema?: any;
|
|
10
|
+
amenitiesFragmentSchema?: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
isConfigurationSchema?: boolean;
|
|
13
|
+
extensionData?: any;
|
|
14
|
+
}
|
|
15
|
+
export declare const PreviewTab: React.FC<PreviewTabProps>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=PreviewTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewTab.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,UAAU,eAAe;IACrB,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAC;IACd,sBAAsB,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;IAC3E,SAAS,EAAE,GAAG,CAAC;IACf,YAAY,EAAE,CAAC,EACX,QAAQ,EACR,eAAe,EACf,uBAAuB,GAC1B,EAAE;QACC,QAAQ,EAAE,GAAG,CAAC;QACd,eAAe,CAAC,EAAE,GAAG,CAAC;QACtB,uBAAuB,CAAC,EAAE,GAAG,CAAC;KACjC,KAAK,IAAI,CAAC;IACX,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,GAAG,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4XhD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
interface PreviewTextareaWidgetProps extends WidgetProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PreviewTextareaWidget: React.FC<PreviewTextareaWidgetProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=PreviewTextareaWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewTextareaWidget.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/PreviewTextareaWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,UAAU,0BAA2B,SAAQ,WAAW;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAiDtE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a JSON schema with input values embedded in the properties
|
|
3
|
+
*/
|
|
4
|
+
export declare function generateSchemaWithInputs(formSchema: any, formData: any): any;
|
|
5
|
+
export declare function extractConfigurationFormData(formData: any): any;
|
|
6
|
+
export declare function extractMultiStepFormData(formData: any): any;
|
|
7
|
+
export declare function extractConfigurationAnswers(extensionData: any): any;
|
|
8
|
+
export declare function generateAmenitiesFragmentSchema(formSchema: any): any;
|
|
9
|
+
//# sourceMappingURL=generateSchemaWithInputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateSchemaWithInputs.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/generateSchemaWithInputs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,GAAG,GAAG,CA0D5E;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,CAE/D;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,CAQ3D;AAED,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,GAAG,GAAG,GAAG,CAsFnE;AAED,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG,CAmEpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RJSFPreview/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -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":"AAsCA,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,4CAgNrD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface SearchInputProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
iconSize?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const SearchInput: ({ placeholder, value, onChange, disabled, className, iconSize, }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,GAAI,kEAOzB,gBAAgB,4CA4BlB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import React__default from'react';import {Search}from'lucide-react';import {cn}from'../../utils/util.js';const SearchInput = ({
|
|
2
|
+
placeholder = 'Search',
|
|
3
|
+
value,
|
|
4
|
+
onChange,
|
|
5
|
+
disabled,
|
|
6
|
+
className,
|
|
7
|
+
iconSize = 16
|
|
8
|
+
}) => {
|
|
9
|
+
const isControlled = value !== undefined;
|
|
10
|
+
const [localValue, setLocalValue] = React__default.useState(isControlled ? value : '');
|
|
11
|
+
const handleOnChange = event => {
|
|
12
|
+
if (!isControlled) {
|
|
13
|
+
setLocalValue(event.target.value);
|
|
14
|
+
}
|
|
15
|
+
onChange?.(event.target.value);
|
|
16
|
+
};
|
|
17
|
+
React__default.useEffect(() => {
|
|
18
|
+
setLocalValue(value || '');
|
|
19
|
+
}, [value]);
|
|
20
|
+
return jsxs("div", {
|
|
21
|
+
className: "relative",
|
|
22
|
+
children: [jsx(Search, {
|
|
23
|
+
size: iconSize,
|
|
24
|
+
className: "absolute top-1/2 left-3 -translate-y-1/2 text-gray-400"
|
|
25
|
+
}), jsx("input", {
|
|
26
|
+
placeholder: placeholder,
|
|
27
|
+
value: localValue,
|
|
28
|
+
onChange: handleOnChange,
|
|
29
|
+
disabled: disabled,
|
|
30
|
+
className: cn('pl-8 rounded-lg border-gray-300 bg-gray-100', className)
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
};export{SearchInput};//# sourceMappingURL=SearchInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sources":["../../../src/components/Search/SearchInput.tsx"],"sourcesContent":[null],"names":[],"mappings":"kJAQY,MAAC,WAAU,GAAA,CAAA;aACV,GAAG,QAAO;OACX;AACX,EAAA,QAAA;AAED,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Search/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
|
package/lib/hooks/useTheme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {useContext}from'react';import {ThemeContext}from'../components/ThemeProvider/ThemeProvider.js';
|
|
1
|
+
import {useContext}from'react';import {ThemeContext}from'../components/ThemeProvider/ThemeProvider.js';function useTheme() {
|
|
2
2
|
const context = useContext(ThemeContext);
|
|
3
3
|
if (context === undefined) {
|
|
4
4
|
throw new Error('useTheme must be used within a ThemeProvider');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa;;;EAsB5B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {useState,useEffect}from'react';function useWindowSize() {
|
|
2
|
+
const [windowSize, setWindowSize] = useState({
|
|
3
|
+
width: typeof window !== 'undefined' ? window.innerWidth : 0,
|
|
4
|
+
// Check if window is defined
|
|
5
|
+
height: typeof window !== 'undefined' ? window.innerHeight : 0 // Check if window is defined
|
|
6
|
+
});
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
function handleResize() {
|
|
9
|
+
setWindowSize({
|
|
10
|
+
width: window.innerWidth,
|
|
11
|
+
height: window.innerHeight
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
// Add event listener for window resize
|
|
15
|
+
window.addEventListener('resize', handleResize);
|
|
16
|
+
// Cleanup the event listener on component unmount
|
|
17
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
18
|
+
}, []);
|
|
19
|
+
return windowSize;
|
|
20
|
+
}export{useWindowSize};//# sourceMappingURL=useWindowSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWindowSize.js","sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAwBC,IAAA,KAAA,EAAA,OAAA,MAAA,KAAA,WAAA,GAAA,MAAA,CAAA,UAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
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{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{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{
|
|
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{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{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{useTheme}from'./hooks/useTheme.js';export{useWindowSize}from'./hooks/useWindowSize.js';export{ToastContainer,useToast,useToastCloseAll}from'./hooks/useToast.js';//# sourceMappingURL=index.js.map
|
package/lib/shardui/button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: {
|
|
4
4
|
variant?: "default" | "link" | "secondary" | "outline" | "ghost" | "destructive";
|
|
5
|
-
size?: "default" | "sm" | "
|
|
5
|
+
size?: "default" | "sm" | "icon" | "lg";
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
package/lib/shardui/command.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
24
24
|
ref?: React.Ref<HTMLInputElement>;
|
|
25
25
|
} & {
|
|
26
26
|
asChild?: boolean;
|
|
27
|
-
}, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "
|
|
27
|
+
}, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "type" | "onChange"> & {
|
|
28
28
|
value?: string;
|
|
29
29
|
onValueChange?: (search: string) => void;
|
|
30
30
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from'./accordion.js';export{Alert,AlertDescription,AlertTitle}from'./alert.js';export{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogTitle,AlertDialogTrigger}from'./alert-dialog.js';export{AspectRatio}from'./aspect-ratio.js';export{Avatar,AvatarFallback,AvatarImage}from'./avatar.js';export{Badge,badgeVariants}from'./badge.js';export{Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator}from'./breadcrumb.js';export{Button,buttonVariants}from'./button.js';export{Calendar}from'./calendar.js';export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from'./card.js';export{Carousel,CarouselContent,CarouselItem,CarouselNext,CarouselPrevious}from'./carousel.js';export{ChartContainer,ChartLegend,ChartLegendContent,ChartStyle,ChartTooltip,ChartTooltipContent}from'./chart.js';export{Checkbox}from'./checkbox.js';export{Collapsible,CollapsibleContent,CollapsibleTrigger}from'./collapsible.js';export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from'./command.js';export{ContextMenu,ContextMenuCheckboxItem,ContextMenuContent,ContextMenuGroup,ContextMenuItem,ContextMenuLabel,ContextMenuPortal,ContextMenuRadioGroup,ContextMenuRadioItem,ContextMenuSeparator,ContextMenuShortcut,ContextMenuSub,ContextMenuSubContent,ContextMenuSubTrigger,ContextMenuTrigger}from'./context-menu.js';export{Dialog,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogTitle,DialogTrigger}from'./dialog.js';export{Drawer,DrawerClose,DrawerContent,DrawerDescription,DrawerFooter,DrawerHeader,DrawerTitle,DrawerTrigger}from'./drawer.js';export{DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger}from'./dropdown-menu.js';export{Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,useFormField}from'./form.js';export{HoverCard,HoverCardContent,HoverCardTrigger}from'./hover-card.js';export{Input}from'./input.js';export{InputOTP,InputOTPGroup,InputOTPSlot}from'./input-otp.js';export{Label}from'./label.js';export{Menubar,MenubarCheckboxItem,MenubarContent,MenubarGroup,MenubarItem,MenubarLabel,MenubarMenu,MenubarPortal,MenubarRadioGroup,MenubarRadioItem,MenubarSeparator,MenubarShortcut,MenubarSub,MenubarSubContent,MenubarSubTrigger,MenubarTrigger}from'./menubar.js';export{NavigationMenu,NavigationMenuContent,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,navigationMenuTriggerStyle}from'./navigation-menu.js';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious}from'./pagination.js';export{Popover,PopoverContent,PopoverTrigger}from'./popover.js';export{Progress}from'./progress.js';export{RadioGroup,RadioGroupItem}from'./radio-group.js';export{ResizableHandle,ResizablePanel,ResizablePanelGroup}from'./resizable.js';export{ScrollArea,ScrollBar}from'./scroll-area.js';export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectSeparator,SelectTrigger,SelectValue}from'./select.js';export{Separator}from'./separator.js';export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetTitle,SheetTrigger}from'./sheet.js';export{Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarSeparator,SidebarTrigger,useSidebar}from'./sidebar.js';export{Skeleton}from'./skeleton.js';export{Slider}from'./slider.js';export{Toaster as Sonner}from'./sonner.js';export{Switch}from'./switch.js';export{Table,TableBody,TableCaption,TableCell,TableHead,TableHeader,TableRow}from'./table.js';export{Tabs,TabsContent,TabsList,TabsTrigger}from'./tabs.js';export{Textarea}from'./textarea.js';export{Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport}from'./toast.js';export{Toaster}from'./toaster.js';export{Toggle,toggleVariants}from'./toggle.js';export{ToggleGroup,ToggleGroupItem}from'./toggle-group.js';export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from'./tooltip.js';import'../utils/isBrowser/index.js';import'clsx';import'tailwind-merge';import'react';import'fast-deep-equal/react.js';export{useToast as useToastHook}from'../utils/hooks/use-toast.js';//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement |
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLLabelElement | HTMLTextAreaElement | HTMLStyleElement | HTMLHRElement | HTMLOListElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
package/lib/shardui/sheet.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
7
7
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
8
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const sheetVariants: (props?: {
|
|
10
|
-
side?: "
|
|
10
|
+
side?: "bottom" | "left" | "right" | "top";
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
12
12
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
}
|
package/lib/shardui/sonner.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {useTheme}from'
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {useTheme}from'../hooks/useTheme.js';import {Toaster as Toaster$1}from'sonner';export{toast}from'sonner';const Toaster = ({
|
|
2
2
|
...props
|
|
3
3
|
}) => {
|
|
4
4
|
const {
|
|
5
|
-
|
|
5
|
+
mode = 'light'
|
|
6
6
|
} = useTheme();
|
|
7
7
|
return jsx(Toaster$1, {
|
|
8
|
-
theme:
|
|
8
|
+
theme: mode,
|
|
9
9
|
className: "toaster group",
|
|
10
10
|
toastOptions: {
|
|
11
11
|
classNames: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.js","sources":["../../src/shardui/sonner.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sonner.js","sources":["../../src/shardui/sonner.tsx"],"sourcesContent":[null],"names":[],"mappings":"oJAyBA,MAAA,OAAS,GAAO,CAAE;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-ui",
|
|
3
|
-
"version": "12.0.16-alpha.
|
|
3
|
+
"version": "12.0.16-alpha.30",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./lib/index.js",
|
|
10
|
-
"./
|
|
10
|
+
"./components/*": "./lib/components/*",
|
|
11
|
+
"./hooks/*": "./lib/hooks/*",
|
|
12
|
+
"./shardui": "./lib/shardui/*",
|
|
13
|
+
"./shardui/*": "./lib/shardui/*"
|
|
11
14
|
},
|
|
12
15
|
"main": "lib/index.js",
|
|
13
16
|
"module": "lib/index.js",
|
|
@@ -25,7 +28,52 @@
|
|
|
25
28
|
"watch": "npm run build:lib:watch"
|
|
26
29
|
},
|
|
27
30
|
"dependencies": {
|
|
28
|
-
"@admin-layout/client": "12.0.16-alpha.
|
|
31
|
+
"@admin-layout/client": "12.0.16-alpha.28",
|
|
32
|
+
"@radix-ui/react-accordion": "^1.2.0",
|
|
33
|
+
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
34
|
+
"@radix-ui/react-aspect-ratio": "^1.1.0",
|
|
35
|
+
"@radix-ui/react-avatar": "^1.1.0",
|
|
36
|
+
"@radix-ui/react-checkbox": "^1.1.1",
|
|
37
|
+
"@radix-ui/react-collapsible": "^1.1.0",
|
|
38
|
+
"@radix-ui/react-context-menu": "^2.2.1",
|
|
39
|
+
"@radix-ui/react-dialog": "^1.1.2",
|
|
40
|
+
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
41
|
+
"@radix-ui/react-hover-card": "^1.1.1",
|
|
42
|
+
"@radix-ui/react-label": "^2.1.0",
|
|
43
|
+
"@radix-ui/react-menubar": "^1.1.1",
|
|
44
|
+
"@radix-ui/react-navigation-menu": "^1.2.0",
|
|
45
|
+
"@radix-ui/react-popover": "^1.1.1",
|
|
46
|
+
"@radix-ui/react-progress": "^1.1.0",
|
|
47
|
+
"@radix-ui/react-radio-group": "^1.2.0",
|
|
48
|
+
"@radix-ui/react-scroll-area": "^1.1.0",
|
|
49
|
+
"@radix-ui/react-select": "^2.1.1",
|
|
50
|
+
"@radix-ui/react-separator": "^1.1.0",
|
|
51
|
+
"@radix-ui/react-slider": "^1.2.0",
|
|
52
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
53
|
+
"@radix-ui/react-switch": "^1.1.0",
|
|
54
|
+
"@radix-ui/react-tabs": "^1.1.0",
|
|
55
|
+
"@radix-ui/react-toast": "^1.2.1",
|
|
56
|
+
"@radix-ui/react-toggle": "^1.1.0",
|
|
57
|
+
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
58
|
+
"@radix-ui/react-tooltip": "^1.1.4",
|
|
59
|
+
"@tanstack/react-table": "^8.21.3",
|
|
60
|
+
"class-variance-authority": "^0.7.0",
|
|
61
|
+
"clsx": "^1.2.1",
|
|
62
|
+
"cmdk": "^1.0.0",
|
|
63
|
+
"embla-carousel-react": "^8.3.0",
|
|
64
|
+
"input-otp": "^1.2.4",
|
|
65
|
+
"lucide-react": "^0.437.0",
|
|
66
|
+
"react-day-picker": "^8.10.1",
|
|
67
|
+
"react-hook-form": "^7.62.0",
|
|
68
|
+
"react-resizable-panels": "^2.1.3",
|
|
69
|
+
"sonner": "^1.5.0",
|
|
70
|
+
"tailwind-merge": "^2.5.2",
|
|
71
|
+
"tailwindcss-animate": "^1.0.6",
|
|
72
|
+
"vaul": "^0.9.3"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"rc-field-form": "^2.7.0",
|
|
76
|
+
"scroll-into-view-if-needed": "^3.1.0"
|
|
29
77
|
},
|
|
30
78
|
"peerDependencies": {
|
|
31
79
|
"history": "*",
|
|
@@ -38,5 +86,5 @@
|
|
|
38
86
|
"typescript": {
|
|
39
87
|
"definition": "lib/index.d.ts"
|
|
40
88
|
},
|
|
41
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "cbe79fe329942371ece94cc30ed0dbd7b4c390cb"
|
|
42
90
|
}
|