@admin-layout/tailwind-ui 12.0.16-alpha.9 → 12.0.16-alpha.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +20 -0
  2. package/lib/components/Button/Button.js.map +1 -1
  3. package/lib/components/DatePicker/utils.js.map +1 -1
  4. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
  5. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +5 -9
  6. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js.map +1 -1
  7. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +5 -0
  8. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -0
  9. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +61 -0
  10. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -0
  11. package/lib/components/LanguageMenuDropdown/index.d.ts +2 -0
  12. package/lib/components/LanguageMenuDropdown/index.d.ts.map +1 -0
  13. package/lib/components/OTP/utils.js.map +1 -1
  14. package/lib/components/PageContainer/PageContainer.d.ts.map +1 -1
  15. package/lib/components/PageContainer/PageContainer.js +11 -5
  16. package/lib/components/PageContainer/PageContainer.js.map +1 -1
  17. package/lib/components/PageLoading/index.js.map +1 -1
  18. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +11 -0
  19. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -0
  20. package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts +8 -0
  21. package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts.map +1 -0
  22. package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts +4 -0
  23. package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts.map +1 -0
  24. package/lib/components/RJSFPreview/PreviewDateWidget.d.ts +8 -0
  25. package/lib/components/RJSFPreview/PreviewDateWidget.d.ts.map +1 -0
  26. package/lib/components/RJSFPreview/PreviewDialog.d.ts +9 -0
  27. package/lib/components/RJSFPreview/PreviewDialog.d.ts.map +1 -0
  28. package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts +8 -0
  29. package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts.map +1 -0
  30. package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts +4 -0
  31. package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts.map +1 -0
  32. package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts +4 -0
  33. package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts.map +1 -0
  34. package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts +16 -0
  35. package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts.map +1 -0
  36. package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts +4 -0
  37. package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts.map +1 -0
  38. package/lib/components/RJSFPreview/PreviewInputWidget.d.ts +4 -0
  39. package/lib/components/RJSFPreview/PreviewInputWidget.d.ts.map +1 -0
  40. package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts +4 -0
  41. package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts.map +1 -0
  42. package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts +8 -0
  43. package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts.map +1 -0
  44. package/lib/components/RJSFPreview/PreviewStepper.d.ts +9 -0
  45. package/lib/components/RJSFPreview/PreviewStepper.d.ts.map +1 -0
  46. package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts +9 -0
  47. package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts.map +1 -0
  48. package/lib/components/RJSFPreview/PreviewTab.d.ts +17 -0
  49. package/lib/components/RJSFPreview/PreviewTab.d.ts.map +1 -0
  50. package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts +8 -0
  51. package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts.map +1 -0
  52. package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts +9 -0
  53. package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts.map +1 -0
  54. package/lib/components/RJSFPreview/index.d.ts +2 -0
  55. package/lib/components/RJSFPreview/index.d.ts.map +1 -0
  56. package/lib/components/ReactTable/TableFilters.js.map +1 -1
  57. package/lib/components/Search/SearchInput.d.ts +11 -0
  58. package/lib/components/Search/SearchInput.d.ts.map +1 -0
  59. package/lib/components/Search/SearchInput.js +33 -0
  60. package/lib/components/Search/SearchInput.js.map +1 -0
  61. package/lib/components/Search/index.d.ts +2 -0
  62. package/lib/components/Search/index.d.ts.map +1 -0
  63. package/lib/components/Select/Select.d.ts +35 -0
  64. package/lib/components/Select/Select.d.ts.map +1 -0
  65. package/lib/components/Select/Select.js +257 -0
  66. package/lib/components/Select/Select.js.map +1 -0
  67. package/lib/components/Select/index.d.ts +2 -0
  68. package/lib/components/Select/index.d.ts.map +1 -0
  69. package/lib/components/Spin/index.js.map +1 -1
  70. package/lib/components/ThemeProvider/ThemeProvider.d.ts +2 -0
  71. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  72. package/lib/components/ThemeProvider/ThemeProvider.js +44 -15
  73. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  74. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
  75. package/lib/components/ThemeProvider/types.d.ts +2 -0
  76. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  77. package/lib/components/index.d.ts +3 -0
  78. package/lib/components/index.d.ts.map +1 -1
  79. package/lib/hooks/index.d.ts +1 -0
  80. package/lib/hooks/index.d.ts.map +1 -1
  81. package/lib/hooks/useMediaQuery.d.ts +14 -0
  82. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  83. package/lib/hooks/useMediaQuery.js +48 -0
  84. package/lib/hooks/useMediaQuery.js.map +1 -0
  85. package/lib/hooks/useToast.js.map +1 -1
  86. package/lib/index.d.ts +1 -0
  87. package/lib/index.d.ts.map +1 -1
  88. package/lib/index.js +1 -1
  89. package/lib/shardui/accordion.js.map +1 -1
  90. package/lib/shardui/alert-dialog.js.map +1 -1
  91. package/lib/shardui/alert.js.map +1 -1
  92. package/lib/shardui/aspect-ratio.js.map +1 -1
  93. package/lib/shardui/avatar.js.map +1 -1
  94. package/lib/shardui/badge.d.ts +1 -1
  95. package/lib/shardui/badge.js.map +1 -1
  96. package/lib/shardui/breadcrumb.js.map +1 -1
  97. package/lib/shardui/button.d.ts +1 -1
  98. package/lib/shardui/button.js.map +1 -1
  99. package/lib/shardui/calendar.js.map +1 -1
  100. package/lib/shardui/card.js.map +1 -1
  101. package/lib/shardui/carousel.js.map +1 -1
  102. package/lib/shardui/chart.d.ts +1 -1
  103. package/lib/shardui/chart.js.map +1 -1
  104. package/lib/shardui/collapsible.js.map +1 -1
  105. package/lib/shardui/command.d.ts +7 -7
  106. package/lib/shardui/command.js.map +1 -1
  107. package/lib/shardui/context-menu.js.map +1 -1
  108. package/lib/shardui/dialog.js.map +1 -1
  109. package/lib/shardui/drawer.js.map +1 -1
  110. package/lib/shardui/dropdown-menu.js.map +1 -1
  111. package/lib/shardui/form.js.map +1 -1
  112. package/lib/shardui/hover-card.js.map +1 -1
  113. package/lib/shardui/index.d.ts +1 -1
  114. package/lib/shardui/index.d.ts.map +1 -1
  115. package/lib/shardui/index.js +1 -1
  116. package/lib/shardui/input-otp.js.map +1 -1
  117. package/lib/shardui/menubar.js.map +1 -1
  118. package/lib/shardui/navigation-menu.js.map +1 -1
  119. package/lib/shardui/pagination.js.map +1 -1
  120. package/lib/shardui/popover.js.map +1 -1
  121. package/lib/shardui/resizable.d.ts +1 -1
  122. package/lib/shardui/resizable.js.map +1 -1
  123. package/lib/shardui/select.js.map +1 -1
  124. package/lib/shardui/sheet.js.map +1 -1
  125. package/lib/shardui/sidebar.js.map +1 -1
  126. package/lib/shardui/sonner.js.map +1 -1
  127. package/lib/shardui/table.js.map +1 -1
  128. package/lib/shardui/tabs.js.map +1 -1
  129. package/lib/shardui/textarea.js.map +1 -1
  130. package/lib/shardui/toast.js.map +1 -1
  131. package/lib/shardui/toggle.js.map +1 -1
  132. package/lib/shardui/tooltip.js.map +1 -1
  133. package/lib/utils/hooks/use-toast.js.map +1 -1
  134. package/lib/utils/isBrowser/index.js.map +1 -1
  135. package/package.json +14 -6
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":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":"4EAIM,MAAA,MAAM;AAEZ,EAAM,OAAA,GAAA;MACK,GAAA,QAAG;WACH,GAAA,KAAA;WACE,GAAC,KAAE;WACH,GAAC,EAAE;AACZ,EAAA,QAAA;AACH,EAAA,QAAA;AAED,EAAA,GAAA;AAwDA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":"4EAIA,MAAM,MAAM;AAEZ,EAAA,OAAM,GAAA;MACF,GAAA,QAAU;WACH,GAAA,KAAA;WACP,GAAU,KAAE;WACZ,GAAU,EAAE;AACZ,EAAA,QAAA;AACH,EAAA,QAAA;AAED,EAAA,GAAA;AAwDA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../src/components/DatePicker/utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;AACH,MAAA,UAAuB,GAAA,IAAA,IAAI;AAQ3B,EAAA,OAAA,IAAA,CAAA,kBAAA,CAAA,OAAA,EAAA;;AAEG,IAAA,KAAA,EAAA,OAAA;AACH,IAAO,GAAA,EAAA;AAIP,GAAA,CAAA;;AAEG;AACH;AAIA;;AAEG,EAAA,OAAA,IAAA,IAAA,CAAA,IAAA,EAAA,KAAA,GAAA,CAAA,EAAA,CAAA,CAAA,CAAA,OAAA,EAAA;AACH;;;;;;;;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../src/components/DatePicker/utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;AACH,MAAA,UAAa,GAAA,IAAA,IAAc;AAQ3B,EAAA,OAAA,IAAA,CAAA,kBAAA,CAAA,OAAA,EAAA;;AAEG,IAAA,KAAA,EAAA,OAAA;AACH,IAAA,GAAA,EAAA;AAIA,GAAA,CAAA;;AAEG;AACH;AAIA;;AAEG,EAAA,OAAA,IAAA,IAAA,CAAA,IAAA,EAAA,KAAA,GAAA,CAAA,EAAA,CAAA,CAAA,CAAA,OAAA,EAAA;AACH;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorHandlers/ApplicationErrorHandler.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,uBAAuB,GAAI,UAAK,4CAG5C,CAAC"}
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 {useToast}from'../../hooks/useToast.js';const FallbackComponent = ({
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
- position: 'top',
9
- title: 'Server Errors. Please try again later...',
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
- }, [toast]);
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":";;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ export declare const LanguageMenuDropdown: ({ className, i18nConfig }: {
2
+ className?: string;
3
+ i18nConfig?: any;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=LanguageMenuDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguageMenuDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenuDropdown/LanguageMenuDropdown.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,GAAI,2BAA2B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,GAAG,CAAA;CAAE,4CAmDvG,CAAC"}
@@ -0,0 +1,61 @@
1
+ import {jsx}from'react/jsx-runtime';import {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
+ className,
3
+ i18nConfig
4
+ }) => {
5
+ const {
6
+ i18n
7
+ } = useTranslation();
8
+ const {
9
+ i18n: i18nextInstance
10
+ } = i18nConfig;
11
+ const filteredLanguages = languages.filter(language => i18nextInstance.supportedLngs.includes(language.key));
12
+ const {
13
+ isMobile
14
+ } = useMediaQuery();
15
+ const {
16
+ settings,
17
+ setSettings
18
+ } = useLayoutSettings();
19
+ const [currentLang, setCurrentLang] = useState(filteredLanguages.find(language => language.key === settings.language) || {
20
+ key: 'en',
21
+ label: 'English',
22
+ flag: '🇬🇧',
23
+ global: true
24
+ });
25
+ useEffect(() => {
26
+ i18n.changeLanguage(settings.language);
27
+ }, []);
28
+ const handleLanguageChange = value => {
29
+ const language = filteredLanguages.find(lang => lang.key === value);
30
+ if (language) {
31
+ setCurrentLang(language);
32
+ i18n.changeLanguage(language.key);
33
+ setSettings(settings, {
34
+ language: language.key
35
+ });
36
+ }
37
+ };
38
+ return jsx("div", {
39
+ className: "relative",
40
+ children: jsx("div", {
41
+ className: "custom-select-container w-[180px]",
42
+ children: jsx("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
+ children: filteredLanguages.map(language => jsx("option", {
48
+ value: language.key,
49
+ className: "p-2",
50
+ children: jsx("div", {
51
+ className: "p-2",
52
+ children: jsx("span", {
53
+ className: "text-sm",
54
+ children: isMobile ? language.key : language.label
55
+ })
56
+ })
57
+ }, language.key))
58
+ })
59
+ })
60
+ });
61
+ };export{LanguageMenuDropdown};//# sourceMappingURL=LanguageMenuDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguageMenuDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './LanguageMenuDropdown';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenuDropdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../src/components/OTP/utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;AAGA;AAEA;;AAEG,MAAA,iBAAA,GAAA,CAAA,KAAA,EAAA,UAAA,KAAA;AACH,EAAO,MAAA,WAAA,GAAuB,UAAA,GAAA,CAAA,KAAI,CAAO,MAAA,CAAA,KAAM,EAAE,GAAY,OAAA,KAAA,KAAU,QAAA;AAKvE,EAAA,OAAA,WAAA,IAAA,KAAA,CAAA,IAAA,EAAA,CAAA,MAAA,KAAA,CAAA;;AAEG;AACH;AAEA;;AAEG;AACH;AAGA;;AAEG;AACH;AAaA;;AAEG,EAAA,IAAA,OAAA,WAAA,KAAA,QAAA,EAAA;AACH,IAAA,IAAA,kBAA8B,KAAA,SAAA,EAAkB;;;;;;;;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../src/components/OTP/utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;AAGA;AAEA;;AAEG,MAAA,iBAAA,GAAA,CAAA,KAAA,EAAA,UAAA,KAAA;AACH,EAAA,MAAA,WAAO,GAAM,UAAA,GAAA,CAAA,KAAqB,CAAA,MAAO,CAAA,KAAM,EAAE,GAAA,OAAA,KAAY,KAAO,QAAG;AAKvE,EAAA,OAAA,WAAA,IAAA,KAAA,CAAA,IAAA,EAAA,CAAA,MAAA,KAAA,CAAA;;AAEG;AACH;AAEA;;AAEG;AACH;AAGA;;AAEG;AACH;AAaA;;AAEG,EAAA,IAAA,OAAA,WAAA,KAAA,QAAA,EAAA;AACH,IAAA,IAAA,kBAAa,KAAA,SAAiB,EAAI;;;;;;;;;;;;"}
@@ -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,CA0DtD,CAAC"}
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,CAgEtD,CAAC"}
@@ -12,7 +12,8 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
12
12
  useEffect(() => {
13
13
  if (tabList && tabList.length > 0) {
14
14
  const currentPath = location.pathname;
15
- const matchedTab = tabList.find(tab => currentPath === tab.path);
15
+ // Find a tab where the current path starts with the tab's path (to handle child routes)
16
+ const matchedTab = tabList.find(tab => currentPath.startsWith(tab.path));
16
17
  const defaultKey = tabList[0]?.path;
17
18
  setActiveTabKey(matchedTab ? matchedTab.path : defaultKey);
18
19
  }
@@ -30,9 +31,9 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
30
31
  return jsx(Spin, {});
31
32
  }
32
33
  return jsxs("div", {
33
- className: "custom-page-container",
34
+ className: "themed-card p-4",
34
35
  children: [tabList && tabList.length > 0 && jsx("div", {
35
- className: "mb-4 border-b border-gray-200",
36
+ className: "border-b border-border mb-4",
36
37
  children: jsxs("div", {
37
38
  className: "flex items-center justify-between",
38
39
  children: [jsx("ul", {
@@ -41,16 +42,21 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
41
42
  className: "mr-2",
42
43
  children: jsx("button", {
43
44
  onClick: () => handleTabChange(tab.path),
44
- className: `inline-block p-4 ${activeTabKey === tab.path ? 'border-b-2 border-blue-500 text-blue-500' : 'border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600'}`,
45
+ className: `
46
+ inline-block p-4 transition-colors
47
+ ${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
+ focus-themed
49
+ `,
45
50
  children: tab.tab
46
51
  })
47
52
  }, tab.path))
48
53
  }), tabBarExtraContent && jsx("div", {
54
+ className: "text-muted-foreground",
49
55
  children: tabBarExtraContent
50
56
  })]
51
57
  })
52
58
  }), jsx("div", {
53
- className: "page-content",
59
+ className: "page-content text-foreground",
54
60
  children: props.children
55
61
  })]
56
62
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/PageLoading/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"wEAIO,MAAA,WAAU,GAAA,CAAA;AAChB,EAIA;AAED,CAAA,KAAAA,GAAA,CAAA;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/PageLoading/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"wEAII,MAAA,WAAa,GAAA,CAAA;AAChB,EAIA;AAED,CAAA,KAAAA,GAAA,CAAA;;;;;;"}
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { FieldTemplateProps } from '@rjsf/utils';
3
+ export declare const PreviewCustomFieldTemplate: React.FC<FieldTemplateProps>;
4
+ //# sourceMappingURL=PreviewCustomFieldTemplate.d.ts.map
@@ -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,9 @@
1
+ import React from 'react';
2
+ interface PreviewDialogProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const PreviewDialog: React.FC<PreviewDialogProps>;
8
+ export {};
9
+ //# sourceMappingURL=PreviewDialog.d.ts.map
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { FieldTemplateProps } from '@rjsf/utils';
3
+ export declare const PreviewFieldTemplate: React.FC<FieldTemplateProps>;
4
+ //# sourceMappingURL=PreviewFieldTemplate.d.ts.map
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ export declare const PreviewFileUploadWidget: React.FC<WidgetProps>;
4
+ //# sourceMappingURL=PreviewFileUploadWidget.d.ts.map
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ export declare const PreviewImageUploadWidget: React.FC<WidgetProps>;
4
+ //# sourceMappingURL=PreviewImageUploadWidget.d.ts.map
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { WidgetProps } from '@rjsf/utils';
3
+ export declare const PreviewInputWidget: React.FC<WidgetProps>;
4
+ //# sourceMappingURL=PreviewInputWidget.d.ts.map
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { ObjectFieldTemplateProps } from '@rjsf/utils';
3
+ export declare const PreviewObjectFieldTemplate: React.FC<ObjectFieldTemplateProps>;
4
+ //# sourceMappingURL=PreviewObjectFieldTemplate.d.ts.map
@@ -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,9 @@
1
+ import React from 'react';
2
+ interface PreviewStepperProps {
3
+ steps: string[];
4
+ currentStep: string;
5
+ schema: any;
6
+ }
7
+ export declare const PreviewStepper: React.FC<PreviewStepperProps>;
8
+ export {};
9
+ //# sourceMappingURL=PreviewStepper.d.ts.map
@@ -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,2 @@
1
+ export { PreviewTab } from './PreviewTab';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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":"TableFilters.js","sources":["../../../src/components/ReactTable/TableFilters.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;MAgEC,OAAA,CAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"TableFilters.js","sources":["../../../src/components/ReactTable/TableFilters.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;MAoC0E,OAAA,CAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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;OACnB;AACH,EAAA,QAAA;AAED,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './SearchInput';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Search/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ export declare const SelectContent: ({ children, className }: {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ type SelectItemProps<T extends keyof JSX.IntrinsicElements = 'button'> = Omit<React.ComponentPropsWithoutRef<T>, 'value'> & {
7
+ value?: any;
8
+ closeOnClick?: boolean;
9
+ tag?: T;
10
+ onClick?: () => void;
11
+ };
12
+ export declare const SelectItem: <T extends keyof JSX.IntrinsicElements = "button">({ children, className, value, onClick, closeOnClick, tag, ...rest }: SelectItemProps<T>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const SelectValue: ({ placeholder, icon: _icon, label, }: {
14
+ placeholder: string;
15
+ icon?: React.ReactNode;
16
+ label?: (selectedValue: any) => string;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const SelectTrigger: ({ children, className }: {
19
+ children: React.ReactNode;
20
+ className?: string;
21
+ }) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const SelectSearch: ({ placeholder, onChange, }: {
23
+ placeholder: string;
24
+ onChange?: (value: string) => void;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
+ interface SelectProps {
27
+ children: React.ReactNode;
28
+ onChange?: (selectedValue: any) => void;
29
+ disabled?: boolean;
30
+ value?: any;
31
+ loading?: boolean;
32
+ }
33
+ export declare const Select: ({ children, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
34
+ export {};
35
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +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,4CA2EvG,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,4CAqBpB,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,4CAsCA,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,yBAAyB;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAkBvG,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4BAG1B;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,4CAoBA,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,4CAMzD,CAAC"}