@js-empire/emperor-ui 1.3.8 → 1.3.10

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 (271) hide show
  1. package/dist/emperor-ui.js +3967 -3889
  2. package/dist/src/animations/blink.d.ts +7 -0
  3. package/dist/src/animations/floating.d.ts +2 -0
  4. package/dist/src/animations/index.d.ts +2 -0
  5. package/dist/src/components/atoms/brand/brand.d.ts +14 -0
  6. package/dist/src/components/atoms/brand/index.d.ts +1 -0
  7. package/dist/src/components/atoms/brand/styles/classes.d.ts +3 -0
  8. package/dist/src/components/atoms/brand/styles/index.d.ts +2 -0
  9. package/dist/src/components/atoms/brand/styles/styles.d.ts +1 -0
  10. package/dist/src/components/atoms/color-picker/color-picker.d.ts +2 -0
  11. package/dist/src/components/atoms/color-picker/free-color-picker.d.ts +2 -0
  12. package/dist/src/components/atoms/color-picker/index.d.ts +3 -0
  13. package/dist/src/components/atoms/color-picker/preset-color-picker.d.ts +2 -0
  14. package/dist/src/components/atoms/column/column.d.ts +2 -0
  15. package/dist/src/components/atoms/column/index.d.ts +1 -0
  16. package/dist/src/components/atoms/container/container.d.ts +2 -0
  17. package/dist/src/components/atoms/container/index.d.ts +1 -0
  18. package/dist/src/components/atoms/copy-button/copy-button.d.ts +3 -0
  19. package/dist/src/components/atoms/copy-button/index.d.ts +1 -0
  20. package/dist/src/components/atoms/field/field.d.ts +3 -0
  21. package/dist/src/components/atoms/field/index.d.ts +3 -0
  22. package/dist/src/components/atoms/field/styles/classes.d.ts +3 -0
  23. package/dist/src/components/atoms/field/styles/index.d.ts +1 -0
  24. package/dist/src/components/atoms/field/units/autocomplete-field.d.ts +3 -0
  25. package/dist/src/components/atoms/field/units/checkbox-field.d.ts +3 -0
  26. package/dist/src/components/atoms/field/units/index.d.ts +7 -0
  27. package/dist/src/components/atoms/field/units/input-field.d.ts +3 -0
  28. package/dist/src/components/atoms/field/units/radio-field.d.ts +3 -0
  29. package/dist/src/components/atoms/field/units/select-field.d.ts +3 -0
  30. package/dist/src/components/atoms/field/units/switch-field.d.ts +3 -0
  31. package/dist/src/components/atoms/field/units/textarea-field.d.ts +3 -0
  32. package/dist/src/components/atoms/filter/filter.d.ts +2 -0
  33. package/dist/src/components/atoms/filter/index.d.ts +3 -0
  34. package/dist/src/components/atoms/filter/styles/classes.d.ts +3 -0
  35. package/dist/src/components/atoms/filter/styles/index.d.ts +1 -0
  36. package/dist/src/components/atoms/filter/units/autocomplete-filter.d.ts +2 -0
  37. package/dist/src/components/atoms/filter/units/checkbox-filter.d.ts +2 -0
  38. package/dist/src/components/atoms/filter/units/checkbox-group-filter.d.ts +2 -0
  39. package/dist/src/components/atoms/filter/units/date-filter.d.ts +2 -0
  40. package/dist/src/components/atoms/filter/units/index.d.ts +9 -0
  41. package/dist/src/components/atoms/filter/units/numeric-filter.d.ts +2 -0
  42. package/dist/src/components/atoms/filter/units/range-filter.d.ts +2 -0
  43. package/dist/src/components/atoms/filter/units/search-filter.d.ts +2 -0
  44. package/dist/src/components/atoms/filter/units/select-filter.d.ts +2 -0
  45. package/dist/src/components/atoms/filter/units/switch-filter.d.ts +2 -0
  46. package/dist/src/components/atoms/index.d.ts +11 -0
  47. package/dist/src/components/atoms/portal/index.d.ts +1 -0
  48. package/dist/src/components/atoms/portal/portal.d.ts +2 -0
  49. package/dist/src/components/atoms/row/index.d.ts +1 -0
  50. package/dist/src/components/atoms/row/row.d.ts +2 -0
  51. package/dist/src/components/atoms/theme-switch/index.d.ts +1 -0
  52. package/dist/src/components/atoms/theme-switch/styles/classes.d.ts +3 -0
  53. package/dist/src/components/atoms/theme-switch/styles/index.d.ts +1 -0
  54. package/dist/src/components/atoms/theme-switch/theme-switch.d.ts +2 -0
  55. package/dist/src/components/atoms/uploader/components/avatar-label.d.ts +1 -0
  56. package/dist/src/components/atoms/uploader/components/index.d.ts +8 -0
  57. package/dist/src/components/atoms/uploader/components/upload-file-error-box.d.ts +1 -0
  58. package/dist/src/components/atoms/uploader/components/upload-file-input.d.ts +1 -0
  59. package/dist/src/components/atoms/uploader/components/upload-file-label.d.ts +1 -0
  60. package/dist/src/components/atoms/uploader/components/upload-file-listing.d.ts +1 -0
  61. package/dist/src/components/atoms/uploader/components/uploader-title.d.ts +2 -0
  62. package/dist/src/components/atoms/uploader/components/uploader.d.ts +19 -0
  63. package/dist/src/components/atoms/uploader/components/view-image-modal.d.ts +1 -0
  64. package/dist/src/components/atoms/uploader/index.d.ts +1 -0
  65. package/dist/src/components/index.d.ts +4 -0
  66. package/dist/src/components/molecules/index.d.ts +4 -0
  67. package/dist/src/components/molecules/item-card/components/actions/index.d.ts +3 -0
  68. package/dist/src/components/molecules/item-card/components/actions/item-actions-buttons.d.ts +6 -0
  69. package/dist/src/components/molecules/item-card/components/actions/item-actions-dropdown.d.ts +2 -0
  70. package/dist/src/components/molecules/item-card/components/actions/item-actions-overlay.d.ts +4 -0
  71. package/dist/src/components/molecules/item-card/components/additions/index.d.ts +2 -0
  72. package/dist/src/components/molecules/item-card/components/additions/item-banner.d.ts +2 -0
  73. package/dist/src/components/molecules/item-card/components/additions/loading-item.d.ts +2 -0
  74. package/dist/src/components/molecules/item-card/components/card/index.d.ts +4 -0
  75. package/dist/src/components/molecules/item-card/components/card/item-card-body.d.ts +2 -0
  76. package/dist/src/components/molecules/item-card/components/card/item-card-footer.d.ts +2 -0
  77. package/dist/src/components/molecules/item-card/components/card/item-card-header.d.ts +2 -0
  78. package/dist/src/components/molecules/item-card/components/card/item-card.d.ts +2 -0
  79. package/dist/src/components/molecules/item-card/components/index.d.ts +3 -0
  80. package/dist/src/components/molecules/item-card/index.d.ts +2 -0
  81. package/dist/src/components/molecules/item-card/styles/classes.d.ts +33 -0
  82. package/dist/src/components/molecules/item-card/styles/index.d.ts +1 -0
  83. package/dist/src/components/molecules/nav-bar/index.d.ts +3 -0
  84. package/dist/src/components/molecules/nav-bar/nav-bar-item.d.ts +6 -0
  85. package/dist/src/components/molecules/nav-bar/nav-bar.d.ts +13 -0
  86. package/dist/src/components/molecules/nav-bar/styles/classes.d.ts +11 -0
  87. package/dist/src/components/molecules/nav-bar/styles/index.d.ts +2 -0
  88. package/dist/src/components/molecules/nav-bar/styles/styles.d.ts +5 -0
  89. package/dist/src/components/molecules/nav-bar/sub-items-box.d.ts +2 -0
  90. package/dist/src/components/molecules/scaffold/index.d.ts +2 -0
  91. package/dist/src/components/molecules/scaffold/scaffold.d.ts +3 -0
  92. package/dist/src/components/molecules/scaffold/styles/index.d.ts +1 -0
  93. package/dist/src/components/molecules/scaffold/styles/scaffold-classes.d.ts +1 -0
  94. package/dist/src/components/molecules/side-bar/compact-side-bar.d.ts +2 -0
  95. package/dist/src/components/molecules/side-bar/index.d.ts +1 -0
  96. package/dist/src/components/molecules/side-bar/side-bar-drawer.d.ts +2 -0
  97. package/dist/src/components/molecules/side-bar/side-bar.d.ts +15 -0
  98. package/dist/src/components/molecules/side-bar/styles/classes.d.ts +6 -0
  99. package/dist/src/components/molecules/side-bar/styles/index.d.ts +2 -0
  100. package/dist/src/components/molecules/side-bar/styles/styles.d.ts +3 -0
  101. package/dist/src/components/organisms/deletion-confirmor/deletion-confirmor.d.ts +2 -0
  102. package/dist/src/components/organisms/deletion-confirmor/index.d.ts +3 -0
  103. package/dist/src/components/organisms/deletion-confirmor/stories/components.d.ts +2 -0
  104. package/dist/src/components/organisms/deletion-confirmor/styles/classes.d.ts +4 -0
  105. package/dist/src/components/organisms/deletion-confirmor/styles/index.d.ts +2 -0
  106. package/dist/src/components/organisms/deletion-confirmor/styles/styles.d.ts +2 -0
  107. package/dist/src/components/organisms/footer/copy-rights-box.d.ts +2 -0
  108. package/dist/src/components/organisms/footer/footer.d.ts +11 -0
  109. package/dist/src/components/organisms/footer/index.d.ts +5 -0
  110. package/dist/src/components/organisms/footer/policies-box.d.ts +2 -0
  111. package/dist/src/components/organisms/footer/quick-links-box.d.ts +2 -0
  112. package/dist/src/components/organisms/footer/social-links-box.d.ts +2 -0
  113. package/dist/src/components/organisms/footer/styles/classes.d.ts +9 -0
  114. package/dist/src/components/organisms/footer/styles/index.d.ts +2 -0
  115. package/dist/src/components/organisms/footer/styles/styles.d.ts +2 -0
  116. package/dist/src/components/organisms/form-builder/form-builder.d.ts +3 -0
  117. package/dist/src/components/organisms/form-builder/index.d.ts +1 -0
  118. package/dist/src/components/organisms/header/header.d.ts +8 -0
  119. package/dist/src/components/organisms/header/index.d.ts +1 -0
  120. package/dist/src/components/organisms/header/segmented-header-content.d.ts +2 -0
  121. package/dist/src/components/organisms/header/styles/classes.d.ts +3 -0
  122. package/dist/src/components/organisms/header/styles/index.d.ts +2 -0
  123. package/dist/src/components/organisms/header/styles/styles.d.ts +6 -0
  124. package/dist/src/components/organisms/index.d.ts +6 -0
  125. package/dist/src/components/organisms/item-details/index.d.ts +1 -0
  126. package/dist/src/components/organisms/item-details/item-details.d.ts +2 -0
  127. package/dist/src/components/organisms/listings/empty-listings.d.ts +9 -0
  128. package/dist/src/components/organisms/listings/index.d.ts +3 -0
  129. package/dist/src/components/organisms/listings/listings.d.ts +2 -0
  130. package/dist/src/components/organisms/listings/styles/classes.d.ts +10 -0
  131. package/dist/src/components/organisms/listings/styles/index.d.ts +2 -0
  132. package/dist/src/components/organisms/listings/styles/styles.d.ts +2 -0
  133. package/dist/src/components/templates/index.d.ts +1 -0
  134. package/dist/src/components/templates/landing-page/index.d.ts +1 -0
  135. package/dist/src/components/templates/landing-page/landing-page.d.ts +10 -0
  136. package/dist/src/components/templates/landing-page/styles/classes.d.ts +3 -0
  137. package/dist/src/components/templates/landing-page/styles/index.d.ts +1 -0
  138. package/dist/src/constants/animations.d.ts +5 -0
  139. package/dist/src/constants/card.d.ts +3 -0
  140. package/dist/src/constants/defaults.d.ts +2 -0
  141. package/dist/src/constants/fake.d.ts +2 -0
  142. package/dist/src/constants/footer.d.ts +6 -0
  143. package/dist/src/constants/index.d.ts +6 -0
  144. package/dist/src/constants/uploader.d.ts +8 -0
  145. package/dist/src/context/emperor-ui-context.d.ts +2 -0
  146. package/dist/src/context/form-builder-context.d.ts +3 -0
  147. package/dist/src/context/index.d.ts +4 -0
  148. package/dist/src/context/navigation-context.d.ts +2 -0
  149. package/dist/src/context/uploader-context.d.ts +2 -0
  150. package/dist/src/enums/index.d.ts +2 -0
  151. package/dist/src/enums/placeholders.d.ts +5 -0
  152. package/dist/src/enums/preserved-keys.d.ts +3 -0
  153. package/dist/src/examples/index.d.ts +1 -0
  154. package/dist/src/hooks/index.d.ts +8 -0
  155. package/dist/src/hooks/use-emperor-ui.d.ts +1 -0
  156. package/dist/src/hooks/use-filters.d.ts +4 -0
  157. package/dist/src/hooks/use-form-builder-context.d.ts +3 -0
  158. package/dist/src/hooks/use-navigation.d.ts +1 -0
  159. package/dist/src/hooks/use-search-params-handler.d.ts +17 -0
  160. package/dist/src/hooks/use-uploader-context.d.ts +1 -0
  161. package/dist/src/hooks/use-uploader.d.ts +2 -0
  162. package/dist/src/hooks/use-window-size.d.ts +7 -0
  163. package/dist/src/i18n/configs/i18n.d.ts +6 -0
  164. package/dist/src/i18n/configs/index.d.ts +1 -0
  165. package/dist/src/i18n/constants/index.d.ts +1 -0
  166. package/dist/src/i18n/constants/locales.d.ts +4 -0
  167. package/dist/src/i18n/index.d.ts +5 -0
  168. package/dist/src/i18n/locales/ar.d.ts +32 -0
  169. package/dist/src/i18n/locales/atoms/ar.d.ts +16 -0
  170. package/dist/src/i18n/locales/atoms/en.d.ts +16 -0
  171. package/dist/src/i18n/locales/atoms/index.d.ts +2 -0
  172. package/dist/src/i18n/locales/common/ar.d.ts +1 -0
  173. package/dist/src/i18n/locales/common/en.d.ts +1 -0
  174. package/dist/src/i18n/locales/common/index.d.ts +2 -0
  175. package/dist/src/i18n/locales/en.d.ts +32 -0
  176. package/dist/src/i18n/locales/index.d.ts +4 -0
  177. package/dist/src/i18n/locales/molecules/ar.d.ts +1 -0
  178. package/dist/src/i18n/locales/molecules/en.d.ts +1 -0
  179. package/dist/src/i18n/locales/molecules/index.d.ts +2 -0
  180. package/dist/src/i18n/locales/organisms/ar.d.ts +10 -0
  181. package/dist/src/i18n/locales/organisms/en.d.ts +10 -0
  182. package/dist/src/i18n/locales/organisms/index.d.ts +2 -0
  183. package/dist/src/i18n/locales/templates/ar.d.ts +1 -0
  184. package/dist/src/i18n/locales/templates/en.d.ts +1 -0
  185. package/dist/src/i18n/locales/templates/index.d.ts +2 -0
  186. package/dist/src/i18n/locales/toasts/ar.d.ts +1 -0
  187. package/dist/src/i18n/locales/toasts/en.d.ts +1 -0
  188. package/dist/src/i18n/locales/toasts/index.d.ts +2 -0
  189. package/dist/src/i18n/types/index.d.ts +2 -0
  190. package/dist/src/i18n/types/locale.d.ts +3 -0
  191. package/dist/src/i18n/types/toasts.d.ts +2 -0
  192. package/dist/src/i18n/utils/get-locales.d.ts +2 -0
  193. package/dist/src/i18n/utils/index.d.ts +2 -0
  194. package/dist/src/i18n/utils/localize.d.ts +6 -0
  195. package/dist/src/index.d.ts +10 -0
  196. package/dist/src/mocks/constants.d.ts +10 -0
  197. package/dist/src/mocks/deletion-confirmor.d.ts +7 -0
  198. package/dist/src/mocks/header.d.ts +5 -0
  199. package/dist/src/mocks/index.d.ts +6 -0
  200. package/dist/src/mocks/listings.d.ts +14 -0
  201. package/dist/src/mocks/locales/index.d.ts +1 -0
  202. package/dist/src/mocks/locales/uploader.d.ts +2 -0
  203. package/dist/src/mocks/types.d.ts +28 -0
  204. package/dist/src/providers/config-provider.d.ts +2 -0
  205. package/dist/src/providers/emperor-ui-provider.d.ts +4 -0
  206. package/dist/src/providers/form-builder-provider-context.d.ts +7 -0
  207. package/dist/src/providers/index.d.ts +6 -0
  208. package/dist/src/providers/navigation-provider.d.ts +2 -0
  209. package/dist/src/providers/theme-provider.d.ts +5 -0
  210. package/dist/src/providers/uploader-provider.d.ts +2 -0
  211. package/dist/src/styles/hero.d.ts +2 -0
  212. package/dist/src/types/components/atoms/brand.d.ts +12 -0
  213. package/dist/src/types/components/atoms/color-picker/color-picker.d.ts +10 -0
  214. package/dist/src/types/components/atoms/color-picker/index.d.ts +1 -0
  215. package/dist/src/types/components/atoms/column.d.ts +2 -0
  216. package/dist/src/types/components/atoms/container.d.ts +2 -0
  217. package/dist/src/types/components/atoms/field/field.d.ts +36 -0
  218. package/dist/src/types/components/atoms/field/index.d.ts +1 -0
  219. package/dist/src/types/components/atoms/filter/filter.d.ts +35 -0
  220. package/dist/src/types/components/atoms/filter/index.d.ts +2 -0
  221. package/dist/src/types/components/atoms/filter/select-filter.d.ts +7 -0
  222. package/dist/src/types/components/atoms/index.d.ts +9 -0
  223. package/dist/src/types/components/atoms/portal.d.ts +5 -0
  224. package/dist/src/types/components/atoms/row.d.ts +2 -0
  225. package/dist/src/types/components/atoms/uploader.d.ts +84 -0
  226. package/dist/src/types/components/index.d.ts +4 -0
  227. package/dist/src/types/components/molecules/footer/footer.d.ts +60 -0
  228. package/dist/src/types/components/molecules/footer/index.d.ts +1 -0
  229. package/dist/src/types/components/molecules/header/header.d.ts +38 -0
  230. package/dist/src/types/components/molecules/header/index.d.ts +1 -0
  231. package/dist/src/types/components/molecules/index.d.ts +9 -0
  232. package/dist/src/types/components/molecules/item-card/index.d.ts +1 -0
  233. package/dist/src/types/components/molecules/item-card/item-card.d.ts +57 -0
  234. package/dist/src/types/components/molecules/item-details/index.d.ts +1 -0
  235. package/dist/src/types/components/molecules/item-details/item-details.d.ts +7 -0
  236. package/dist/src/types/components/molecules/listings/index.d.ts +1 -0
  237. package/dist/src/types/components/molecules/listings/listings.d.ts +22 -0
  238. package/dist/src/types/components/molecules/nav-bar/index.d.ts +1 -0
  239. package/dist/src/types/components/molecules/nav-bar/nav-bar.d.ts +45 -0
  240. package/dist/src/types/components/molecules/scaffold/index.d.ts +1 -0
  241. package/dist/src/types/components/molecules/scaffold/scaffold.d.ts +7 -0
  242. package/dist/src/types/components/molecules/side-bar/index.d.ts +1 -0
  243. package/dist/src/types/components/molecules/side-bar/side-bar.d.ts +36 -0
  244. package/dist/src/types/components/molecules/theme-switch/index.d.ts +1 -0
  245. package/dist/src/types/components/molecules/theme-switch/theme-switch.d.ts +7 -0
  246. package/dist/src/types/components/organisms/deletion-confirmor/deletion-confirmor.d.ts +20 -0
  247. package/dist/src/types/components/organisms/deletion-confirmor/index.d.ts +1 -0
  248. package/dist/src/types/components/organisms/filters/filters.d.ts +9 -0
  249. package/dist/src/types/components/organisms/filters/index.d.ts +1 -0
  250. package/dist/src/types/components/organisms/form-builder/context.d.ts +5 -0
  251. package/dist/src/types/components/organisms/form-builder/form-builder.d.ts +26 -0
  252. package/dist/src/types/components/organisms/form-builder/index.d.ts +2 -0
  253. package/dist/src/types/components/organisms/index.d.ts +3 -0
  254. package/dist/src/types/components/templates/index.d.ts +1 -0
  255. package/dist/src/types/components/templates/landing-page.d.ts +8 -0
  256. package/dist/src/types/context/config.d.ts +19 -0
  257. package/dist/src/types/context/index.d.ts +4 -0
  258. package/dist/src/types/context/localization.d.ts +17 -0
  259. package/dist/src/types/context/navigation.d.ts +15 -0
  260. package/dist/src/types/context/theme.d.ts +32 -0
  261. package/dist/src/types/index.d.ts +3 -0
  262. package/dist/src/types/shared/components.d.ts +10 -0
  263. package/dist/src/types/shared/index.d.ts +1 -0
  264. package/dist/src/utils/cn.d.ts +2 -0
  265. package/dist/src/utils/compress-images.d.ts +2 -0
  266. package/dist/src/utils/index.d.ts +5 -0
  267. package/dist/src/utils/locales.d.ts +10 -0
  268. package/dist/src/utils/storybook.d.ts +4 -0
  269. package/dist/src/utils/uploader.d.ts +40 -0
  270. package/package.json +3 -3
  271. package/dist/index.d.ts +0 -1357
@@ -0,0 +1,2 @@
1
+ import { DeletionConfirmorProps } from '../../../types';
2
+ export declare function DeletionConfirmor({ isOpen, onClose, title, description, className, classNames, confirmProps, declineProps, }: DeletionConfirmorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './deletion-confirmor';
2
+ export * from './styles';
3
+ export * from './stories/components';
@@ -0,0 +1,2 @@
1
+ import { DeletionConfirmorProps } from '../../../../types';
2
+ export declare const DeletionConfirmorWithTrigger: (args: DeletionConfirmorProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const deletionConfirmorContentClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
2
+ export declare const deletionConfirmorHeaderClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
3
+ export declare const deletionConfirmorBodyClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ export declare const deletionConfirmorFooterClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export * from './classes';
2
+ export * from './styles';
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const deletionConfirmorStyles: ({}: {}) => CSSProperties;
@@ -0,0 +1,2 @@
1
+ import { FooterProps } from '../../../types';
2
+ export declare function CopyRightsBox({ copyRights, classNames }: FooterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const Footer: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLElement> & import('react').HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
3
+ variant?: "default" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('../../../types').SharedComponentProps & {
5
+ classNames?: import('../../../types').FooterClassnames;
6
+ policies?: import('../../../types').QuickLink[];
7
+ quickLinks?: import('../../../types').QuickLinkCollection[];
8
+ socialLinks?: import('../../../types').SocialLink[];
9
+ copyRights?: import('../../../types').CopyRights;
10
+ contacts?: import('../../../types').Contacts;
11
+ }, "ref"> & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1,5 @@
1
+ export * from './footer';
2
+ export * from './policies-box';
3
+ export * from './copy-rights-box';
4
+ export * from './social-links-box';
5
+ export * from './quick-links-box';
@@ -0,0 +1,2 @@
1
+ import { FooterProps } from '../../../types';
2
+ export declare function PoliciesBox({ policies, classNames }: FooterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { FooterProps } from '../../../types';
2
+ export declare function QuickLinksBox({ quickLinks, classNames }: FooterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { FooterProps } from '../../../types';
2
+ export declare function SocialLinksBox({ socialLinks, classNames }: FooterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const footerClasses: (props?: ({
2
+ variant?: "default" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ export declare const contentClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export declare const policiesClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export declare const socialLinksClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export declare const copyRightsClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export declare const contactsClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export declare const quickLinksClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export * from './classes';
2
+ export * from './styles';
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const footerStyles: ({}: {}) => CSSProperties;
@@ -0,0 +1,3 @@
1
+ import { FormBuilderProps } from '../../../types';
2
+ import { ZodType } from 'zod';
3
+ export declare function FormBuilder<TSchema extends ZodType<any, any, any>>({ children, className, classNames, formProps, onSubmit, onSuccess, onError, onValuesChange, }: FormBuilderProps<TSchema>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './form-builder';
@@ -0,0 +1,8 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const Header: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLElement> & import('react').HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
3
+ variant?: "default" | "floating" | "light" | "segmented-floating" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('../../../types').SharedComponentProps & {
5
+ variant?: import('../../../types').HeaderVariant;
6
+ classNames?: import('../../../types').HeaderClassnames;
7
+ glassEffect?: import('../../../types').HeaderGlassEffect;
8
+ }, "ref"> & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1 @@
1
+ export * from './header';
@@ -0,0 +1,2 @@
1
+ import { SegmentedHeaderContentProps } from '../../../types';
2
+ export declare const SegmentedHeaderContent: ({ children, glassEffect, }: SegmentedHeaderContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const headerClasses: (props?: ({
2
+ variant?: "default" | "floating" | "light" | "segmented-floating" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export * from './classes';
2
+ export * from './styles';
@@ -0,0 +1,6 @@
1
+ import { CSSProperties } from 'react';
2
+ import { HeaderGlassEffect, HeaderStylesProps } from '../../../../types';
3
+ export declare const getGlassEffectStyles: ({ glassEffect, }: {
4
+ glassEffect: HeaderGlassEffect;
5
+ }) => CSSProperties;
6
+ export declare const headerStyles: ({ primaryColor, foregroundColor, variant, glassEffect, }: HeaderStylesProps) => CSSProperties;
@@ -0,0 +1,6 @@
1
+ export * from './deletion-confirmor';
2
+ export * from './item-details';
3
+ export * from './listings';
4
+ export * from './footer';
5
+ export * from './header';
6
+ export * from './form-builder';
@@ -0,0 +1 @@
1
+ export * from './item-details';
@@ -0,0 +1,2 @@
1
+ import { ItemDetailsProps } from '../../../types';
2
+ export declare function ItemDetails({ className }: ItemDetailsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare function EmptyListings({ className, classNames, }: {
2
+ className?: string;
3
+ classNames?: {
4
+ wrapper?: string;
5
+ iconWrapper?: string;
6
+ title?: string;
7
+ description?: string;
8
+ };
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './listings';
2
+ export * from './empty-listings';
3
+ export * from './styles';
@@ -0,0 +1,2 @@
1
+ import { ListingsProps } from '../../../types';
2
+ export declare function Listings({ items, isLoading, className, classNames, layout, actions, onActionClick, pagination, }: ListingsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const listingsClasses: (props?: ({
2
+ layout?: "grid" | "list" | "carousel" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ export declare const listingsItemClasses: (props?: ({
5
+ layout?: "grid" | "list" | "carousel" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export declare const listingsPaginationClasses: (props?: ({
8
+ layout?: "grid" | "list" | "carousel" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ export declare const emptyListingsClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export * from './classes';
2
+ export * from './styles';
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const listingsStyles: ({}: {}) => CSSProperties;
@@ -0,0 +1 @@
1
+ export * from './landing-page';
@@ -0,0 +1 @@
1
+ export * from './landing-page';
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ /**
3
+ * This component is not for general use nor it is reusable, it is intended to be used as a demo page.
4
+ */
5
+ export declare const LandingPage: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLElement> & import('react').HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
6
+ variant?: "default" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('../../../types').SharedComponentProps & {
8
+ classNames?: import('../../../types').LandingPageClassnames;
9
+ variant?: "default";
10
+ }, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const landingPageClasses: (props?: ({
2
+ variant?: "default" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export * from './classes';
@@ -0,0 +1,5 @@
1
+ import { ItemCardHoverEffect } from '../types';
2
+ import { MotionProps } from 'framer-motion';
3
+ export declare const getCardMotion: ({}: {
4
+ hoverEffect: ItemCardHoverEffect;
5
+ }) => MotionProps;
@@ -0,0 +1,3 @@
1
+ import { ItemCardAction } from '../types';
2
+ export declare const ITEM_CARD_ACTIONS: ItemCardAction[];
3
+ export declare const ITEM_CARD_ACTIONS_OVERLAY: ItemCardAction[];
@@ -0,0 +1,2 @@
1
+ import { EmperorUIConfig } from '../types';
2
+ export declare const defaultEmperorUIConfig: EmperorUIConfig;
@@ -0,0 +1,2 @@
1
+ export declare const FAKE_SENTENCE = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.";
2
+ export declare const FAKE_PARAGRAPH = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,";
@@ -0,0 +1,6 @@
1
+ import { CopyRights, Contacts, QuickLink, QuickLinkCollection, SocialLink } from '../types';
2
+ export declare const quickLinks: QuickLinkCollection[];
3
+ export declare const policies: QuickLink[];
4
+ export declare const copyRights: CopyRights;
5
+ export declare const contacts: Contacts;
6
+ export declare const socialLinks: SocialLink[];
@@ -0,0 +1,6 @@
1
+ export * from './defaults';
2
+ export * from './fake';
3
+ export * from './uploader';
4
+ export * from './footer';
5
+ export * from './animations';
6
+ export * from './card';
@@ -0,0 +1,8 @@
1
+ export declare const ALLOWED_IMAGES_TYPES: string[];
2
+ export declare const ALLOWED_PDF_TYPES: string[];
3
+ export declare const ALLOWED_DOC_TYPES: string[];
4
+ export declare const ALLOWED_SHEET_TYPES: string[];
5
+ export declare const ONE_MEGABYTE = 1024;
6
+ export declare const fileTypesMapping: {
7
+ [key: string]: string[];
8
+ };
@@ -0,0 +1,2 @@
1
+ import { ConfigContextState } from '../types';
2
+ export declare const EmperorUIContext: import('react').Context<ConfigContextState | undefined>;
@@ -0,0 +1,3 @@
1
+ import { FormBuilderValue } from '../types';
2
+ import { FieldValues } from 'react-hook-form';
3
+ export declare const FormBuilderContext: import('react').Context<FormBuilderValue<FieldValues> | null>;
@@ -0,0 +1,4 @@
1
+ export * from './emperor-ui-context';
2
+ export * from './navigation-context';
3
+ export * from './uploader-context';
4
+ export * from './form-builder-context';
@@ -0,0 +1,2 @@
1
+ import { NavigationContextState } from '../types';
2
+ export declare const NavigationContext: import('react').Context<NavigationContextState | undefined>;
@@ -0,0 +1,2 @@
1
+ import { UploaderContextState } from '../types';
2
+ export declare const UploaderContext: import('react').Context<UploaderContextState | undefined>;
@@ -0,0 +1,2 @@
1
+ export * from './preserved-keys';
2
+ export * from './placeholders';
@@ -0,0 +1,5 @@
1
+ /** Stable external URLs so the published package does not ship image assets. */
2
+ export declare enum Placeholders {
3
+ PLACEHOLDER_MALE_AVATAR = "https://api.dicebear.com/7.x/avataaars/svg?seed=male",
4
+ PLACEHOLDER_FEMALE_AVATAR = "https://api.dicebear.com/7.x/avataaars/svg?seed=female"
5
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum PreservedKeys {
2
+ COMPACT_SIDEBAR_ID = "emperor-compact-sidebar"
3
+ }
@@ -0,0 +1 @@
1
+ export * from './';
@@ -0,0 +1,8 @@
1
+ export * from './use-emperor-ui';
2
+ export * from './use-navigation';
3
+ export * from './use-search-params-handler';
4
+ export * from './use-uploader-context';
5
+ export * from './use-uploader';
6
+ export * from './use-window-size';
7
+ export * from './use-filters';
8
+ export * from './use-form-builder-context';
@@ -0,0 +1 @@
1
+ export declare function useEmperorUI(): import('..').ConfigContextState;
@@ -0,0 +1,4 @@
1
+ export declare function useFilters<FiltersType extends Record<string, string | number | boolean>>(): {
2
+ filters: FiltersType | null;
3
+ clearFilters: () => void;
4
+ };
@@ -0,0 +1,3 @@
1
+ import { FormBuilderValue } from '../types';
2
+ import { FieldValues } from 'react-hook-form';
3
+ export declare function useFormBuilder<TSchema extends FieldValues>(): FormBuilderValue<TSchema>;
@@ -0,0 +1 @@
1
+ export declare function useNavigation(): import('..').NavigationContextState;
@@ -0,0 +1,17 @@
1
+ export declare function useSearchParamsHandler(): {
2
+ getParam: (name: string) => string | null;
3
+ allParams: Record<string, string>;
4
+ setParams: ({ params, options, }: {
5
+ params: Record<string, string | number | boolean | undefined | null>;
6
+ options?: {
7
+ replace?: boolean;
8
+ };
9
+ }) => void;
10
+ deleteParam: ({ key }: {
11
+ key: string;
12
+ }) => void;
13
+ deleteParams: ({ keys }: {
14
+ keys: string[];
15
+ }) => void;
16
+ clearParams: () => void;
17
+ };
@@ -0,0 +1 @@
1
+ export declare function useUploaderContext(): import('..').UploaderContextState;
@@ -0,0 +1,2 @@
1
+ import { UseUploadFileProps, UseUploadFileReturn } from '../types';
2
+ export declare const useUploader: ({ labelContent, labelId, fileTypes, isRequired, isDraggable, isMulti, preventDuplicates, maxCount, maxFileSize, compressFiles, onChange, locales, }: UseUploadFileProps) => UseUploadFileReturn;
@@ -0,0 +1,7 @@
1
+ export declare const useWindowSize: () => {
2
+ viewportWidth: number;
3
+ viewportHeight: number;
4
+ currentScreen: "base" | "sm" | "md" | "lg" | "xl" | "2xl";
5
+ isSmallDevice: boolean;
6
+ isExtraSmallDevice: boolean;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { LangKey } from '../constants/locales';
2
+ export declare const i18n: {
3
+ defaultLocale: string;
4
+ locales: LangKey[];
5
+ localDetection: boolean;
6
+ };
@@ -0,0 +1 @@
1
+ export * from './i18n';
@@ -0,0 +1 @@
1
+ export * from './locales';
@@ -0,0 +1,4 @@
1
+ export declare enum LangKey {
2
+ ARABIC = "ar",
3
+ ENGLISH = "en"
4
+ }
@@ -0,0 +1,5 @@
1
+ export * from './configs';
2
+ export * from './types';
3
+ export * from './utils';
4
+ export * from './constants';
5
+ export * from './locales';
@@ -0,0 +1,32 @@
1
+ export declare const ar: {
2
+ common: {};
3
+ toasts: {};
4
+ atoms: {
5
+ colorPicker: {
6
+ invalidColorFormat: string;
7
+ };
8
+ uploader: {
9
+ dropHere: string;
10
+ selectFile: string;
11
+ selectionTypes: string;
12
+ selectBtn: string;
13
+ errorUploadingFile: string;
14
+ maxNumImages: string;
15
+ errorUploadedTypes: string;
16
+ maxSizeExceededError: string;
17
+ duplicatesDenied: string;
18
+ };
19
+ };
20
+ molecules: {};
21
+ organisms: {
22
+ deletionConfirmor: {
23
+ confirm: string;
24
+ decline: string;
25
+ };
26
+ listings: {
27
+ emptyTitle: string;
28
+ emptyDescription: string;
29
+ };
30
+ };
31
+ templates: {};
32
+ };
@@ -0,0 +1,16 @@
1
+ export declare const atomsAr: {
2
+ colorPicker: {
3
+ invalidColorFormat: string;
4
+ };
5
+ uploader: {
6
+ dropHere: string;
7
+ selectFile: string;
8
+ selectionTypes: string;
9
+ selectBtn: string;
10
+ errorUploadingFile: string;
11
+ maxNumImages: string;
12
+ errorUploadedTypes: string;
13
+ maxSizeExceededError: string;
14
+ duplicatesDenied: string;
15
+ };
16
+ };
@@ -0,0 +1,16 @@
1
+ export declare const atomsEn: {
2
+ colorPicker: {
3
+ invalidColorFormat: string;
4
+ };
5
+ uploader: {
6
+ dropHere: string;
7
+ selectFile: string;
8
+ selectionTypes: string;
9
+ selectBtn: string;
10
+ errorUploadingFile: string;
11
+ maxNumImages: string;
12
+ errorUploadedTypes: string;
13
+ maxSizeExceededError: string;
14
+ duplicatesDenied: string;
15
+ };
16
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ar';
2
+ export * from './en';
@@ -0,0 +1 @@
1
+ export declare const commonAr: {};
@@ -0,0 +1 @@
1
+ export declare const commonEn: {};
@@ -0,0 +1,2 @@
1
+ export * from './ar';
2
+ export * from './en';
@@ -0,0 +1,32 @@
1
+ export declare const en: {
2
+ common: {};
3
+ toasts: {};
4
+ atoms: {
5
+ colorPicker: {
6
+ invalidColorFormat: string;
7
+ };
8
+ uploader: {
9
+ dropHere: string;
10
+ selectFile: string;
11
+ selectionTypes: string;
12
+ selectBtn: string;
13
+ errorUploadingFile: string;
14
+ maxNumImages: string;
15
+ errorUploadedTypes: string;
16
+ maxSizeExceededError: string;
17
+ duplicatesDenied: string;
18
+ };
19
+ };
20
+ molecules: {};
21
+ organisms: {
22
+ deletionConfirmor: {
23
+ confirm: string;
24
+ decline: string;
25
+ };
26
+ listings: {
27
+ emptyTitle: string;
28
+ emptyDescription: string;
29
+ };
30
+ };
31
+ templates: {};
32
+ };
@@ -0,0 +1,4 @@
1
+ export * from './ar';
2
+ export * from './en';
3
+ export * from './common';
4
+ export * from './toasts';
@@ -0,0 +1 @@
1
+ export declare const moleculesAr: {};
@@ -0,0 +1 @@
1
+ export declare const moleculesEn: {};
@@ -0,0 +1,2 @@
1
+ export * from './ar';
2
+ export * from './en';
@@ -0,0 +1,10 @@
1
+ export declare const organismsAr: {
2
+ deletionConfirmor: {
3
+ confirm: string;
4
+ decline: string;
5
+ };
6
+ listings: {
7
+ emptyTitle: string;
8
+ emptyDescription: string;
9
+ };
10
+ };
@@ -0,0 +1,10 @@
1
+ export declare const organismsEn: {
2
+ deletionConfirmor: {
3
+ confirm: string;
4
+ decline: string;
5
+ };
6
+ listings: {
7
+ emptyTitle: string;
8
+ emptyDescription: string;
9
+ };
10
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ar';
2
+ export * from './en';
@@ -0,0 +1 @@
1
+ export declare const templatesAr: {};
@@ -0,0 +1 @@
1
+ export declare const templatesEn: {};
@@ -0,0 +1,2 @@
1
+ export * from './ar';
2
+ export * from './en';
@@ -0,0 +1 @@
1
+ export declare const toastsAr: {};
@@ -0,0 +1 @@
1
+ export declare const toastsEn: {};
@@ -0,0 +1,2 @@
1
+ export * from './ar';
2
+ export * from './en';
@@ -0,0 +1,2 @@
1
+ export type * from './locale';
2
+ export type * from './toasts';
@@ -0,0 +1,3 @@
1
+ import { ar, en, i18n } from '..';
2
+ export type Lang = (typeof i18n)["locales"][number];
3
+ export type Locale = typeof ar | typeof en;
@@ -0,0 +1,2 @@
1
+ import { toastsAr, toastsEn } from '..';
2
+ export type ToastKey = keyof typeof toastsAr & keyof typeof toastsEn;
@@ -0,0 +1,2 @@
1
+ import { Lang, Locale } from '..';
2
+ export declare const getLocales: (lang: string | Lang) => Locale;
@@ -0,0 +1,2 @@
1
+ export * from './get-locales';
2
+ export * from './localize';