@skalfa/skalfa-component 1.0.0 → 1.0.3

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 (188) hide show
  1. package/dist/accordion/Accordion.component.d.ts +1 -1
  2. package/dist/breadcrumb/Breadcrumb.component.d.ts +1 -1
  3. package/dist/button/Button.component.d.ts +1 -1
  4. package/dist/card/AlertCard.component.d.ts +1 -1
  5. package/dist/card/Card.component.d.ts +1 -1
  6. package/dist/card/DashboardCard.component.d.ts +1 -1
  7. package/dist/card/GalleryCard.component.d.ts +1 -1
  8. package/dist/card/ProductCard.component.d.ts +1 -1
  9. package/dist/card/ProfileCard.component.d.ts +1 -1
  10. package/dist/carousel/Carousel.component.d.ts +1 -1
  11. package/dist/chip/Chip.component.d.ts +1 -1
  12. package/dist/index.js +175 -56
  13. package/dist/input/Checkbox.component.d.ts +1 -1
  14. package/dist/input/Input.component.d.ts +1 -1
  15. package/dist/input/InputCheckbox.component.d.ts +1 -1
  16. package/dist/input/InputCheckbox.component.js +2 -2
  17. package/dist/input/InputCurrency.component.d.ts +1 -1
  18. package/dist/input/InputDate.component.d.ts +1 -1
  19. package/dist/input/InputDate.component.js +9 -7
  20. package/dist/input/InputDatetime.component.d.ts +1 -1
  21. package/dist/input/InputDatetime.component.js +13 -8
  22. package/dist/input/InputDocument.component.d.ts +1 -1
  23. package/dist/input/InputDocument.component.js +6 -4
  24. package/dist/input/InputImage.component.js +5 -3
  25. package/dist/input/InputMap.component.d.ts +1 -1
  26. package/dist/input/InputMap.component.js +5 -3
  27. package/dist/input/InputNumber.component.d.ts +1 -1
  28. package/dist/input/InputPassword.component.d.ts +1 -1
  29. package/dist/input/InputRadio.component.d.ts +1 -1
  30. package/dist/input/InputRadio.component.js +2 -2
  31. package/dist/input/InputTime.component.d.ts +1 -1
  32. package/dist/input/InputTime.component.js +5 -3
  33. package/dist/input/InputValues.component.d.ts +1 -1
  34. package/dist/input/Radio.component.d.ts +1 -1
  35. package/dist/input/Select.component.d.ts +1 -1
  36. package/dist/modal/FloatingPage.component.d.ts +1 -1
  37. package/dist/modal/FloatingPage.component.js +2 -2
  38. package/dist/modal/Modal.component.d.ts +1 -1
  39. package/dist/modal/Modal.component.js +2 -2
  40. package/dist/modal/ModalConfirm.component.d.ts +2 -2
  41. package/dist/modal/ModalConfirm.component.js +5 -3
  42. package/dist/modal/Toast.component.d.ts +1 -1
  43. package/dist/modal/Toast.component.js +2 -2
  44. package/dist/nav/Bottombar.component.d.ts +1 -1
  45. package/dist/nav/Footer.component.d.ts +1 -1
  46. package/dist/nav/Headbar.component.d.ts +4 -11
  47. package/dist/nav/Headbar.component.js +3 -22
  48. package/dist/nav/Navbar.component.d.ts +1 -1
  49. package/dist/nav/Navbar.component.js +2 -2
  50. package/dist/nav/Sidebar.component.d.ts +2 -2
  51. package/dist/nav/Tabbar.component.d.ts +1 -1
  52. package/dist/nav/Wizard.component.d.ts +1 -1
  53. package/dist/supervision/FormSupervision.component.d.ts +14 -2
  54. package/dist/supervision/FormSupervision.component.js +32 -17
  55. package/dist/supervision/TableSupervision.component.d.ts +7 -2
  56. package/dist/supervision/TableSupervision.component.js +25 -19
  57. package/dist/table/ControlBar.component.d.ts +2 -2
  58. package/dist/table/ControlBar.component.js +20 -14
  59. package/dist/table/FilterComponent.d.ts +2 -2
  60. package/dist/table/FilterComponent.js +24 -17
  61. package/dist/table/Pagination.component.d.ts +1 -1
  62. package/dist/table/Pagination.component.js +4 -3
  63. package/dist/table/Table.component.d.ts +4 -2
  64. package/dist/table/Table.component.js +11 -7
  65. package/dist/typography/TypographyArticle.component.d.ts +1 -1
  66. package/dist/typography/TypographyColumn.component.d.ts +1 -1
  67. package/dist/typography/TypographyContent.component.d.ts +1 -1
  68. package/dist/typography/TypographyTips.component.d.ts +1 -1
  69. package/dist/wrap/Image.component.d.ts +1 -1
  70. package/dist/wrap/ScrollContainer.component.d.ts +1 -1
  71. package/dist/wrap/ShortcutProvider.d.ts +1 -1
  72. package/dist/wrap/ShortcutProvider.js +2 -2
  73. package/dist/wrap/Swipe.component.d.ts +1 -1
  74. package/package.json +4 -3
  75. package/dist/src/accordion/Accordion.component.d.ts +0 -13
  76. package/dist/src/accordion/Accordion.component.js +0 -25
  77. package/dist/src/breadcrumb/Breadcrumb.component.d.ts +0 -14
  78. package/dist/src/breadcrumb/Breadcrumb.component.js +0 -21
  79. package/dist/src/button/Button.component.d.ts +0 -21
  80. package/dist/src/button/Button.component.js +0 -19
  81. package/dist/src/card/AlertCard.component.d.ts +0 -11
  82. package/dist/src/card/AlertCard.component.js +0 -9
  83. package/dist/src/card/Card.component.d.ts +0 -5
  84. package/dist/src/card/Card.component.js +0 -9
  85. package/dist/src/card/DashboardCard.component.d.ts +0 -9
  86. package/dist/src/card/DashboardCard.component.js +0 -13
  87. package/dist/src/card/GalleryCard.component.d.ts +0 -7
  88. package/dist/src/card/GalleryCard.component.js +0 -13
  89. package/dist/src/card/ProductCard.component.d.ts +0 -9
  90. package/dist/src/card/ProductCard.component.js +0 -13
  91. package/dist/src/card/ProfileCard.component.d.ts +0 -10
  92. package/dist/src/card/ProfileCard.component.js +0 -13
  93. package/dist/src/carousel/Carousel.component.d.ts +0 -13
  94. package/dist/src/carousel/Carousel.component.js +0 -37
  95. package/dist/src/chip/Chip.component.d.ts +0 -6
  96. package/dist/src/chip/Chip.component.js +0 -12
  97. package/dist/src/index.d.ts +0 -13
  98. package/dist/src/index.js +0 -29
  99. package/dist/src/input/Checkbox.component.d.ts +0 -13
  100. package/dist/src/input/Checkbox.component.js +0 -23
  101. package/dist/src/input/Input.component.d.ts +0 -23
  102. package/dist/src/input/Input.component.js +0 -134
  103. package/dist/src/input/InputCheckbox.component.d.ts +0 -27
  104. package/dist/src/input/InputCheckbox.component.js +0 -53
  105. package/dist/src/input/InputCurrency.component.d.ts +0 -21
  106. package/dist/src/input/InputCurrency.component.js +0 -30
  107. package/dist/src/input/InputDate.component.d.ts +0 -24
  108. package/dist/src/input/InputDate.component.js +0 -107
  109. package/dist/src/input/InputDatetime.component.d.ts +0 -17
  110. package/dist/src/input/InputDatetime.component.js +0 -75
  111. package/dist/src/input/InputDocument.component.d.ts +0 -22
  112. package/dist/src/input/InputDocument.component.js +0 -88
  113. package/dist/src/input/InputImage.component.d.ts +0 -23
  114. package/dist/src/input/InputImage.component.js +0 -260
  115. package/dist/src/input/InputMap.component.d.ts +0 -25
  116. package/dist/src/input/InputMap.component.js +0 -101
  117. package/dist/src/input/InputNumber.component.d.ts +0 -19
  118. package/dist/src/input/InputNumber.component.js +0 -40
  119. package/dist/src/input/InputOtp.component.d.ts +0 -14
  120. package/dist/src/input/InputOtp.component.js +0 -65
  121. package/dist/src/input/InputPassword.component.d.ts +0 -17
  122. package/dist/src/input/InputPassword.component.js +0 -59
  123. package/dist/src/input/InputRadio.component.d.ts +0 -27
  124. package/dist/src/input/InputRadio.component.js +0 -56
  125. package/dist/src/input/InputTime.component.d.ts +0 -23
  126. package/dist/src/input/InputTime.component.js +0 -73
  127. package/dist/src/input/InputValues.component.d.ts +0 -9
  128. package/dist/src/input/InputValues.component.js +0 -19
  129. package/dist/src/input/Radio.component.d.ts +0 -12
  130. package/dist/src/input/Radio.component.js +0 -22
  131. package/dist/src/input/Select.component.d.ts +0 -47
  132. package/dist/src/input/Select.component.js +0 -275
  133. package/dist/src/modal/BottomSheet.component.d.ts +0 -12
  134. package/dist/src/modal/BottomSheet.component.js +0 -161
  135. package/dist/src/modal/FloatingPage.component.d.ts +0 -12
  136. package/dist/src/modal/FloatingPage.component.js +0 -27
  137. package/dist/src/modal/Modal.component.d.ts +0 -12
  138. package/dist/src/modal/Modal.component.js +0 -27
  139. package/dist/src/modal/ModalConfirm.component.d.ts +0 -26
  140. package/dist/src/modal/ModalConfirm.component.js +0 -68
  141. package/dist/src/modal/Toast.component.d.ts +0 -11
  142. package/dist/src/modal/Toast.component.js +0 -58
  143. package/dist/src/nav/Bottombar.component.d.ts +0 -12
  144. package/dist/src/nav/Bottombar.component.js +0 -32
  145. package/dist/src/nav/Footer.component.d.ts +0 -37
  146. package/dist/src/nav/Footer.component.js +0 -49
  147. package/dist/src/nav/Headbar.component.d.ts +0 -14
  148. package/dist/src/nav/Headbar.component.js +0 -32
  149. package/dist/src/nav/Navbar.component.d.ts +0 -22
  150. package/dist/src/nav/Navbar.component.js +0 -26
  151. package/dist/src/nav/Sidebar.component.d.ts +0 -33
  152. package/dist/src/nav/Sidebar.component.js +0 -87
  153. package/dist/src/nav/Tabbar.component.d.ts +0 -13
  154. package/dist/src/nav/Tabbar.component.js +0 -17
  155. package/dist/src/nav/Wizard.component.d.ts +0 -9
  156. package/dist/src/nav/Wizard.component.js +0 -24
  157. package/dist/src/supervision/FormSupervision.component.d.ts +0 -93
  158. package/dist/src/supervision/FormSupervision.component.js +0 -168
  159. package/dist/src/supervision/TableSupervision.component.d.ts +0 -78
  160. package/dist/src/supervision/TableSupervision.component.js +0 -273
  161. package/dist/src/table/ControlBar.component.d.ts +0 -34
  162. package/dist/src/table/ControlBar.component.js +0 -205
  163. package/dist/src/table/FilterComponent.d.ts +0 -45
  164. package/dist/src/table/FilterComponent.js +0 -132
  165. package/dist/src/table/Pagination.component.d.ts +0 -8
  166. package/dist/src/table/Pagination.component.js +0 -32
  167. package/dist/src/table/Table.component.d.ts +0 -61
  168. package/dist/src/table/Table.component.js +0 -101
  169. package/dist/src/typography/TypographyArticle.component.d.ts +0 -8
  170. package/dist/src/typography/TypographyArticle.component.js +0 -7
  171. package/dist/src/typography/TypographyColumn.component.d.ts +0 -6
  172. package/dist/src/typography/TypographyColumn.component.js +0 -7
  173. package/dist/src/typography/TypographyContent.component.d.ts +0 -6
  174. package/dist/src/typography/TypographyContent.component.js +0 -7
  175. package/dist/src/typography/TypographyTips.component.d.ts +0 -6
  176. package/dist/src/typography/TypographyTips.component.js +0 -7
  177. package/dist/src/wrap/Draggable.component.d.ts +0 -34
  178. package/dist/src/wrap/Draggable.component.js +0 -214
  179. package/dist/src/wrap/Image.component.d.ts +0 -2
  180. package/dist/src/wrap/Image.component.js +0 -13
  181. package/dist/src/wrap/OutsideClick.component.d.ts +0 -6
  182. package/dist/src/wrap/OutsideClick.component.js +0 -34
  183. package/dist/src/wrap/ScrollContainer.component.d.ts +0 -10
  184. package/dist/src/wrap/ScrollContainer.component.js +0 -54
  185. package/dist/src/wrap/ShortcutProvider.d.ts +0 -1
  186. package/dist/src/wrap/ShortcutProvider.js +0 -42
  187. package/dist/src/wrap/Swipe.component.d.ts +0 -14
  188. package/dist/src/wrap/Swipe.component.js +0 -61
@@ -10,4 +10,4 @@ export interface AccordionProps {
10
10
  }
11
11
  export declare function AccordionComponent({ items, setActive, horizontal,
12
12
  /** Use custom class with: "container::", "head::", "active::". */
13
- className, }: AccordionProps): import("react").JSX.Element;
13
+ className, }: AccordionProps): import("@types/react").JSX.Element;
@@ -11,4 +11,4 @@ export interface BreadcrumbProps {
11
11
  /** Use custom class with: "container::", "active::". */
12
12
  className?: string;
13
13
  }
14
- export declare function BreadcrumbComponent({ items, className, square, separatorContent, }: BreadcrumbProps): import("react").JSX.Element;
14
+ export declare function BreadcrumbComponent({ items, className, square, separatorContent, }: BreadcrumbProps): import("@types/react").JSX.Element;
@@ -18,4 +18,4 @@ export interface ButtonProps {
18
18
  /** Use custom class with: "icon::", "loading::". */
19
19
  className?: string;
20
20
  }
21
- export declare function ButtonComponent({ type, label, variant, paint, rounded, block, disabled, size, onClick, href, icon, loading, tips, title, className, }: ButtonProps): import("react").JSX.Element;
21
+ export declare function ButtonComponent({ type, label, variant, paint, rounded, block, disabled, size, onClick, href, icon, loading, tips, title, className, }: ButtonProps): import("@types/react").JSX.Element;
@@ -8,4 +8,4 @@ export interface AlertCardProps {
8
8
  /** Use custom class with: "badge::", "title::". */
9
9
  className?: string;
10
10
  }
11
- export declare function AlertCardComponent({ title, leftContent, badge, content, footer, className, }: AlertCardProps): import("react").JSX.Element;
11
+ export declare function AlertCardComponent({ title, leftContent, badge, content, footer, className, }: AlertCardProps): import("@types/react").JSX.Element;
@@ -2,4 +2,4 @@ export interface CardProps {
2
2
  children: React.ReactNode;
3
3
  className?: string;
4
4
  }
5
- export declare function CardComponent({ children, className, }: CardProps): import("react").JSX.Element;
5
+ export declare function CardComponent({ children, className, }: CardProps): import("@types/react").JSX.Element;
@@ -6,4 +6,4 @@ export interface DashboardCardProps {
6
6
  path?: string;
7
7
  className?: string;
8
8
  }
9
- export declare function DashboardCardComponent({ content, title, rightContent, path, className, }: DashboardCardProps): import("react").JSX.Element;
9
+ export declare function DashboardCardComponent({ content, title, rightContent, path, className, }: DashboardCardProps): import("@types/react").JSX.Element;
@@ -4,4 +4,4 @@ export interface GalleryCardProps {
4
4
  /** Use custom class with: "label::", "image::". */
5
5
  className?: string;
6
6
  }
7
- export declare function GalleryCardComponent({ src, alt, className, }: GalleryCardProps): import("react").JSX.Element;
7
+ export declare function GalleryCardComponent({ src, alt, className, }: GalleryCardProps): import("@types/react").JSX.Element;
@@ -6,4 +6,4 @@ export interface ProductCardProps {
6
6
  /** Use custom class with: "image::", "content::". */
7
7
  className?: string;
8
8
  }
9
- export declare function ProductCardComponent({ image, name, price, description, className, }: ProductCardProps): import("react").JSX.Element;
9
+ export declare function ProductCardComponent({ image, name, price, description, className, }: ProductCardProps): import("@types/react").JSX.Element;
@@ -7,4 +7,4 @@ export interface ProfileCardProps {
7
7
  /** Use custom class with: "image::", "content::". */
8
8
  className?: string;
9
9
  }
10
- export declare function ProfileCardComponent({ image, name, short, description, footer, className, }: ProfileCardProps): import("react").JSX.Element;
10
+ export declare function ProfileCardComponent({ image, name, short, description, footer, className, }: ProfileCardProps): import("@types/react").JSX.Element;
@@ -9,5 +9,5 @@ interface CarouselProps {
9
9
  /** Use custom class with: "item::", "prev-button::", "next-button::", "navigation::". */
10
10
  className?: string;
11
11
  }
12
- export declare function CarouselComponent({ items, className, noButton, noNavigation, }: CarouselProps): import("react").JSX.Element;
12
+ export declare function CarouselComponent({ items, className, noButton, noNavigation, }: CarouselProps): import("@types/react").JSX.Element;
13
13
  export {};
@@ -3,4 +3,4 @@ export declare function ChipComponent({ items, onClick, onDelete, className, }:
3
3
  onClick?: (item: any, index: number) => void;
4
4
  onDelete?: (item: any, index: number) => void;
5
5
  className?: string;
6
- }): import("react").JSX.Element;
6
+ }): import("@types/react").JSX.Element;
package/dist/index.js CHANGED
@@ -14,62 +14,181 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./accordion/Accordion.component"), exports);
18
- __exportStar(require("./breadcrumb/Breadcrumb.component"), exports);
19
- __exportStar(require("./button/Button.component"), exports);
20
- __exportStar(require("./card/AlertCard.component"), exports);
21
- __exportStar(require("./card/Card.component"), exports);
22
- __exportStar(require("./card/DashboardCard.component"), exports);
23
- __exportStar(require("./card/GalleryCard.component"), exports);
24
- __exportStar(require("./card/ProductCard.component"), exports);
25
- __exportStar(require("./card/ProfileCard.component"), exports);
26
- __exportStar(require("./carousel/Carousel.component"), exports);
27
- __exportStar(require("./chip/Chip.component"), exports);
28
- __exportStar(require("./input/Checkbox.component"), exports);
29
- __exportStar(require("./input/Input.component"), exports);
30
- __exportStar(require("./input/InputCheckbox.component"), exports);
31
- __exportStar(require("./input/InputCurrency.component"), exports);
32
- __exportStar(require("./input/InputDate.component"), exports);
33
- __exportStar(require("./input/InputDatetime.component"), exports);
34
- __exportStar(require("./input/InputDocument.component"), exports);
35
- __exportStar(require("./input/InputImage.component"), exports);
36
- __exportStar(require("./input/InputMap.component"), exports);
37
- __exportStar(require("./input/InputNumber.component"), exports);
38
- __exportStar(require("./input/InputOtp.component"), exports);
39
- __exportStar(require("./input/InputPassword.component"), exports);
40
- __exportStar(require("./input/InputRadio.component"), exports);
41
- __exportStar(require("./input/InputTime.component"), exports);
42
- __exportStar(require("./input/InputValues.component"), exports);
43
- __exportStar(require("./input/Radio.component"), exports);
44
- __exportStar(require("./input/Select.component"), exports);
45
- __exportStar(require("./modal/BottomSheet.component"), exports);
46
- __exportStar(require("./modal/FloatingPage.component"), exports);
47
- __exportStar(require("./modal/Modal.component"), exports);
48
- __exportStar(require("./modal/ModalConfirm.component"), exports);
49
- __exportStar(require("./modal/Toast.component"), exports);
50
- __exportStar(require("./nav/Bottombar.component"), exports);
51
- __exportStar(require("./nav/Footer.component"), exports);
52
- __exportStar(require("./nav/Headbar.component"), exports);
53
- __exportStar(require("./nav/Navbar.component"), exports);
54
- __exportStar(require("./nav/Sidebar.component"), exports);
55
- __exportStar(require("./nav/Tabbar.component"), exports);
56
- __exportStar(require("./nav/Wizard.component"), exports);
57
- __exportStar(require("./supervision/FormSupervision.component"), exports);
58
- __exportStar(require("./supervision/TableSupervision.component"), exports);
59
- __exportStar(require("./table/ControlBar.component"), exports);
60
- __exportStar(require("./table/FilterComponent"), exports);
61
- __exportStar(require("./table/Pagination.component"), exports);
62
- __exportStar(require("./table/Table.component"), exports);
63
- __exportStar(require("./typography/TypographyArticle.component"), exports);
64
- __exportStar(require("./typography/TypographyColumn.component"), exports);
65
- __exportStar(require("./typography/TypographyContent.component"), exports);
66
- __exportStar(require("./typography/TypographyTips.component"), exports);
67
- __exportStar(require("./wrap/Draggable.component"), exports);
68
- __exportStar(require("./wrap/Image.component"), exports);
69
- __exportStar(require("./wrap/OutsideClick.component"), exports);
70
- __exportStar(require("./wrap/ScrollContainer.component"), exports);
71
- __exportStar(require("./wrap/ShortcutProvider"), exports);
72
- __exportStar(require("./wrap/Swipe.component"), exports);
17
+ // Static export for ./accordion/Accordion.component
18
+ exports.AccordionComponent = require("./accordion/Accordion.component").AccordionComponent;
19
+
20
+ // Static export for ./breadcrumb/Breadcrumb.component
21
+ exports.BreadcrumbComponent = require("./breadcrumb/Breadcrumb.component").BreadcrumbComponent;
22
+
23
+ // Static export for ./button/Button.component
24
+ exports.ButtonComponent = require("./button/Button.component").ButtonComponent;
25
+
26
+ // Static export for ./card/AlertCard.component
27
+ exports.AlertCardComponent = require("./card/AlertCard.component").AlertCardComponent;
28
+
29
+ // Static export for ./card/Card.component
30
+ exports.CardComponent = require("./card/Card.component").CardComponent;
31
+
32
+ // Static export for ./card/DashboardCard.component
33
+ exports.DashboardCardComponent = require("./card/DashboardCard.component").DashboardCardComponent;
34
+
35
+ // Static export for ./card/GalleryCard.component
36
+ exports.GalleryCardComponent = require("./card/GalleryCard.component").GalleryCardComponent;
37
+
38
+ // Static export for ./card/ProductCard.component
39
+ exports.ProductCardComponent = require("./card/ProductCard.component").ProductCardComponent;
40
+
41
+ // Static export for ./card/ProfileCard.component
42
+ exports.ProfileCardComponent = require("./card/ProfileCard.component").ProfileCardComponent;
43
+
44
+ // Static export for ./carousel/Carousel.component
45
+ exports.CarouselComponent = require("./carousel/Carousel.component").CarouselComponent;
46
+
47
+ // Static export for ./chip/Chip.component
48
+ exports.ChipComponent = require("./chip/Chip.component").ChipComponent;
49
+
50
+ // Static export for ./input/Checkbox.component
51
+ exports.CheckboxComponent = require("./input/Checkbox.component").CheckboxComponent;
52
+
53
+ // Static export for ./input/Input.component
54
+ exports.InputComponent = require("./input/Input.component").InputComponent;
55
+
56
+ // Static export for ./input/InputCheckbox.component
57
+ exports.InputCheckboxComponent = require("./input/InputCheckbox.component").InputCheckboxComponent;
58
+
59
+ // Static export for ./input/InputCurrency.component
60
+ exports.InputCurrencyComponent = require("./input/InputCurrency.component").InputCurrencyComponent;
61
+
62
+ // Static export for ./input/InputDate.component
63
+ exports.InputDatePickerComponent = require("./input/InputDate.component").InputDatePickerComponent;
64
+ exports.InputDateComponent = require("./input/InputDate.component").InputDateComponent;
65
+
66
+ // Static export for ./input/InputDatetime.component
67
+ exports.InputDatetimeComponent = require("./input/InputDatetime.component").InputDatetimeComponent;
68
+
69
+ // Static export for ./input/InputDocument.component
70
+ exports.InputDocumentPicker = require("./input/InputDocument.component").InputDocumentPicker;
71
+ exports.InputDocumentComponent = require("./input/InputDocument.component").InputDocumentComponent;
72
+
73
+ // Static export for ./input/InputImage.component
74
+ exports.InputImageComponent = require("./input/InputImage.component").InputImageComponent;
75
+ exports.CanvasCropper = require("./input/InputImage.component").CanvasCropper;
76
+
77
+ // Static export for ./input/InputMap.component
78
+ exports.InputMapPickerComponent = require("./input/InputMap.component").InputMapPickerComponent;
79
+ exports.InputMapComponent = require("./input/InputMap.component").InputMapComponent;
80
+
81
+ // Static export for ./input/InputNumber.component
82
+ exports.InputNumberComponent = require("./input/InputNumber.component").InputNumberComponent;
83
+
84
+ // Static export for ./input/InputOtp.component
85
+ exports.InputOtpComponent = require("./input/InputOtp.component").InputOtpComponent;
86
+
87
+ // Static export for ./input/InputPassword.component
88
+ exports.InputPasswordComponent = require("./input/InputPassword.component").InputPasswordComponent;
89
+
90
+ // Static export for ./input/InputRadio.component
91
+ exports.InputRadioComponent = require("./input/InputRadio.component").InputRadioComponent;
92
+
93
+ // Static export for ./input/InputTime.component
94
+ exports.InputTimePickerComponent = require("./input/InputTime.component").InputTimePickerComponent;
95
+ exports.InputTimeComponent = require("./input/InputTime.component").InputTimeComponent;
96
+
97
+ // Static export for ./input/InputValues.component
98
+ exports.InputValues = require("./input/InputValues.component").InputValues;
99
+
100
+ // Static export for ./input/Radio.component
101
+ exports.RadioComponent = require("./input/Radio.component").RadioComponent;
102
+
103
+ // Static export for ./input/Select.component
104
+ exports.SelectComponent = require("./input/Select.component").SelectComponent;
105
+
106
+ // Static export for ./modal/BottomSheet.component
107
+ exports.BottomSheetComponent = require("./modal/BottomSheet.component").BottomSheetComponent;
108
+
109
+ // Static export for ./modal/FloatingPage.component
110
+ exports.FloatingPageComponent = require("./modal/FloatingPage.component").FloatingPageComponent;
111
+
112
+ // Static export for ./modal/Modal.component
113
+ exports.ModalComponent = require("./modal/Modal.component").ModalComponent;
114
+
115
+ // Static export for ./modal/ModalConfirm.component
116
+ exports.ModalConfirmComponent = require("./modal/ModalConfirm.component").ModalConfirmComponent;
117
+
118
+ // Static export for ./modal/Toast.component
119
+ exports.ToastComponent = require("./modal/Toast.component").ToastComponent;
120
+
121
+ // Static export for ./nav/Bottombar.component
122
+ exports.BottombarComponent = require("./nav/Bottombar.component").BottombarComponent;
123
+
124
+ // Static export for ./nav/Footer.component
125
+ exports.FooterComponent = require("./nav/Footer.component").FooterComponent;
126
+
127
+ // Static export for ./nav/Headbar.component
128
+ exports.HeadbarComponent = require("./nav/Headbar.component").HeadbarComponent;
129
+
130
+ // Static export for ./nav/Navbar.component
131
+ exports.NavbarComponent = require("./nav/Navbar.component").NavbarComponent;
132
+
133
+ // Static export for ./nav/Sidebar.component
134
+ exports.SidebarComponent = require("./nav/Sidebar.component").SidebarComponent;
135
+ exports.SidebarContentComponent = require("./nav/Sidebar.component").SidebarContentComponent;
136
+
137
+ // Static export for ./nav/Tabbar.component
138
+ exports.TabbarComponent = require("./nav/Tabbar.component").TabbarComponent;
139
+
140
+ // Static export for ./nav/Wizard.component
141
+ exports.WizardComponent = require("./nav/Wizard.component").WizardComponent;
142
+
143
+ // Static export for ./supervision/FormSupervision.component
144
+ exports.FormSupervisionComponent = require("./supervision/FormSupervision.component").FormSupervisionComponent;
145
+
146
+ // Static export for ./supervision/TableSupervision.component
147
+ exports.TableSupervisionComponent = require("./supervision/TableSupervision.component").TableSupervisionComponent;
148
+
149
+ // Static export for ./table/ControlBar.component
150
+ exports.ControlBarComponent = require("./table/ControlBar.component").ControlBarComponent;
151
+
152
+ // Static export for ./table/FilterComponent
153
+ exports.FilterComponent = require("./table/FilterComponent").FilterComponent;
154
+ exports.InputFilterValueComponent = require("./table/FilterComponent").InputFilterValueComponent;
155
+
156
+ // Static export for ./table/Pagination.component
157
+ exports.PaginationComponent = require("./table/Pagination.component").PaginationComponent;
158
+
159
+ // Static export for ./table/Table.component
160
+ exports.TableComponent = require("./table/Table.component").TableComponent;
161
+
162
+ // Static export for ./typography/TypographyArticle.component
163
+ exports.TypographyArticleComponent = require("./typography/TypographyArticle.component").TypographyArticleComponent;
164
+
165
+ // Static export for ./typography/TypographyColumn.component
166
+ exports.TypographyColumnComponent = require("./typography/TypographyColumn.component").TypographyColumnComponent;
167
+
168
+ // Static export for ./typography/TypographyContent.component
169
+ exports.TypographyContentComponent = require("./typography/TypographyContent.component").TypographyContentComponent;
170
+
171
+ // Static export for ./typography/TypographyTips.component
172
+ exports.TypographyTipsComponent = require("./typography/TypographyTips.component").TypographyTipsComponent;
173
+
174
+ // Static export for ./wrap/Draggable.component
175
+ exports.DraggableComponent = require("./wrap/Draggable.component").DraggableComponent;
176
+
177
+ // Static export for ./wrap/Image.component
178
+ exports.ImageComponent = require("./wrap/Image.component").ImageComponent;
179
+
180
+ // Static export for ./wrap/OutsideClick.component
181
+ exports.OutsideClickComponent = require("./wrap/OutsideClick.component").OutsideClickComponent;
182
+
183
+ // Static export for ./wrap/ScrollContainer.component
184
+ exports.ScrollContainerComponent = require("./wrap/ScrollContainer.component").ScrollContainerComponent;
185
+
186
+ // Static export for ./wrap/ShortcutProvider
187
+ exports.ShortcutProvider = require("./wrap/ShortcutProvider").ShortcutProvider;
188
+
189
+ // Static export for ./wrap/Swipe.component
190
+ exports.SwipeComponent = require("./wrap/Swipe.component").SwipeComponent;
191
+
73
192
  const _utils_1 = require("@utils");
74
193
  const Table_component_js_1 = require("./table/Table.component.js");
75
194
  const Button_component_js_1 = require("./button/Button.component.js");
@@ -10,4 +10,4 @@ export type CheckboxProps = {
10
10
  /** Use custom class with: "label::", "checked::", "error::". */
11
11
  className?: string;
12
12
  };
13
- export declare function CheckboxComponent({ name, label, value, disabled, checked, invalid, onChange, className, }: CheckboxProps): import("react").JSX.Element;
13
+ export declare function CheckboxComponent({ name, label, value, disabled, checked, invalid, onChange, className, }: CheckboxProps): import("@types/react").JSX.Element;
@@ -20,4 +20,4 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
20
20
  /** Use custom class with: "label::", "tip::", "error::", "icon::", "suggest::", "suggest-item::". */
21
21
  className?: string;
22
22
  }
23
- export declare function InputComponent({ label, tip, leftIcon, rightIcon, className, value, invalid, suggestions, validations, onlyAlphabet, uppercase, lowercase, multiple, register, unregister, onChange, ref, ...props }: InputProps): import("react").JSX.Element;
23
+ export declare function InputComponent({ label, tip, leftIcon, rightIcon, className, value, invalid, suggestions, validations, onlyAlphabet, uppercase, lowercase, multiple, register, unregister, onChange, ref, ...props }: InputProps): import("@types/react").JSX.Element;
@@ -24,4 +24,4 @@ export interface InputCheckboxProps {
24
24
  /** Use custom class with: "label::", "checked::", "error::". */
25
25
  classNameCheckbox?: string;
26
26
  }
27
- export declare function InputCheckboxComponent({ name, label, tip, vertical, className, classNameCheckbox, value, disabled, invalid, options, serverOptionControl, customOptions, validations, register, unregister, onChange, }: InputCheckboxProps): import("react").JSX.Element;
27
+ export declare function InputCheckboxComponent({ name, label, tip, vertical, className, classNameCheckbox, value, disabled, invalid, options, serverOptionControl, customOptions, validations, register, unregister, onChange, }: InputCheckboxProps): import("@types/react").JSX.Element;
@@ -5,7 +5,7 @@ exports.InputCheckboxComponent = InputCheckboxComponent;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_1 = require("react");
7
7
  const _utils_1 = require("@utils");
8
- const _components_1 = require("@components");
8
+ const Checkbox_component_1 = require("./Checkbox.component");
9
9
  ;
10
10
  ;
11
11
  function InputCheckboxComponent({ name, label, tip, vertical, className = "", classNameCheckbox = "", value, disabled, invalid, options, serverOptionControl, customOptions, validations, register, unregister, onChange, }) {
@@ -42,7 +42,7 @@ function InputCheckboxComponent({ name, label, tip, vertical, className = "", cl
42
42
  return (0, jsx_runtime_1.jsx)("div", { className: "w-1/3 h-6 rounded-lg" }, key);
43
43
  }), (options || dataOptions) && (options || dataOptions)?.map((option, key) => {
44
44
  const checked = Array().concat(inputHandler.value).find((val) => val == option.value);
45
- return ((0, jsx_runtime_1.jsx)(_components_1.CheckboxComponent, { label: option.label, name: `option[${option.value}]#${name}`, checked: !!checked, disabled: disabled, className: classNameCheckbox, onChange: () => {
45
+ return ((0, jsx_runtime_1.jsx)(Checkbox_component_1.CheckboxComponent, { label: option.label, name: `option[${option.value}]#${name}`, checked: !!checked, disabled: disabled, className: classNameCheckbox, onChange: () => {
46
46
  const newVal = (Array.isArray(inputHandler.value) ? inputHandler.value : [])
47
47
  .filter((val) => val !== option.value)
48
48
  .concat(checked ? [] : [option.value]);
@@ -18,4 +18,4 @@ export interface InputCurrencyProps extends Omit<InputHTMLAttributes<HTMLInputEl
18
18
  /** Use custom class with: "label::", "tip::", "error::", "icon::". */
19
19
  className?: string;
20
20
  }
21
- export declare function InputCurrencyComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, format, register, unregister, onChange, className, ...props }: InputCurrencyProps): import("react").JSX.Element;
21
+ export declare function InputCurrencyComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, format, register, unregister, onChange, className, ...props }: InputCurrencyProps): import("@types/react").JSX.Element;
@@ -14,7 +14,7 @@ export interface InputDateProps extends Omit<InputHTMLAttributes<HTMLInputElemen
14
14
  /** Use custom class with: "label::", "tip::", "error::", "icon::". */
15
15
  className?: string;
16
16
  }
17
- export declare function InputDateComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, register, unregister, onChange, className, ...props }: InputDateProps): import("react").JSX.Element;
17
+ export declare function InputDateComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, register, unregister, onChange, className, ...props }: InputDateProps): import("@types/react").JSX.Element;
18
18
  export interface InputDatePickerProps {
19
19
  onChange?: (date: string) => void;
20
20
  minDate?: string;
@@ -12,7 +12,9 @@ const moment_1 = __importDefault(require("moment"));
12
12
  const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
13
13
  const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
14
14
  const _utils_1 = require("@utils");
15
- const _components_1 = require("@components");
15
+ const BottomSheet_component_1 = require("../modal/BottomSheet.component");
16
+ const Button_component_1 = require("../button/Button.component");
17
+ const OutsideClick_component_1 = require("../wrap/OutsideClick.component");
16
18
  function InputDateComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, register, unregister, onChange, className = "", ...props }) {
17
19
  const { isSm } = (0, _utils_1.useResponsive)();
18
20
  // =========================>
@@ -24,7 +26,7 @@ function InputDateComponent({ label, tip, leftIcon, rightIcon, value, invalid, v
24
26
  // ## Invalid handler
25
27
  // =========================>
26
28
  const [invalidMessage] = (0, _utils_1.useValidation)(inputHandler.value, validations, invalid, inputHandler.idle);
27
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "input-container", children: [(0, jsx_runtime_1.jsxs)("label", { htmlFor: randomId, className: (0, _utils_1.cn)("input-label", props.disabled && "input-label-disabled", inputHandler.focus && "input-label-focus", !!invalidMessage && "input-label-error", (0, _utils_1.pcn)(className, "label"), props.disabled && (0, _utils_1.pcn)(className, "label", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "label", "focus"), !!invalidMessage && (0, _utils_1.pcn)(className, "label", "error")), children: [label, validations && _utils_1.validation.hasRules(validations, "required") && (0, jsx_runtime_1.jsx)("span", { className: "text-danger ml-1", children: "*" })] }), tip && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-tip", props.disabled && "input-tip-disabled", (0, _utils_1.pcn)(className, "tip"), props.disabled && (0, _utils_1.pcn)(className, "tip", "disabled")), children: tip })), (0, jsx_runtime_1.jsx)(_components_1.OutsideClickComponent, { onOutsideClick: !isSm ? () => inputHandler.setFocus(false) : undefined, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsx)("input", { ...props, id: randomId, className: (0, _utils_1.cn)("input", leftIcon && "input-with-left-icon", rightIcon && "input-with-right-icon", (0, _utils_1.pcn)(className, "input"), !!invalidMessage && "input-error", !!invalidMessage && (0, _utils_1.pcn)(className, "input", "error")), value: inputHandler.value, onChange: (e) => {
29
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "input-container", children: [(0, jsx_runtime_1.jsxs)("label", { htmlFor: randomId, className: (0, _utils_1.cn)("input-label", props.disabled && "input-label-disabled", inputHandler.focus && "input-label-focus", !!invalidMessage && "input-label-error", (0, _utils_1.pcn)(className, "label"), props.disabled && (0, _utils_1.pcn)(className, "label", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "label", "focus"), !!invalidMessage && (0, _utils_1.pcn)(className, "label", "error")), children: [label, validations && _utils_1.validation.hasRules(validations, "required") && (0, jsx_runtime_1.jsx)("span", { className: "text-danger ml-1", children: "*" })] }), tip && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-tip", props.disabled && "input-tip-disabled", (0, _utils_1.pcn)(className, "tip"), props.disabled && (0, _utils_1.pcn)(className, "tip", "disabled")), children: tip })), (0, jsx_runtime_1.jsx)(OutsideClick_component_1.OutsideClickComponent, { onOutsideClick: !isSm ? () => inputHandler.setFocus(false) : undefined, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsx)("input", { ...props, id: randomId, className: (0, _utils_1.cn)("input", leftIcon && "input-with-left-icon", rightIcon && "input-with-right-icon", (0, _utils_1.pcn)(className, "input"), !!invalidMessage && "input-error", !!invalidMessage && (0, _utils_1.pcn)(className, "input", "error")), value: inputHandler.value, onChange: (e) => {
28
30
  inputHandler.setValue(e.target.value);
29
31
  inputHandler.setValue(false);
30
32
  onChange?.(e.target.value);
@@ -36,7 +38,7 @@ function InputDateComponent({ label, tip, leftIcon, rightIcon, value, invalid, v
36
38
  }, autoComplete: "off", inputMode: isSm ? "none" : undefined }), leftIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-left", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon"), props.disabled && (0, _utils_1.pcn)(className, "icon", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "icon", "focus")), icon: leftIcon })), rightIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-right", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon"), props.disabled && (0, _utils_1.pcn)(className, "icon", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "icon", "focus")), icon: rightIcon })), !isSm && inputHandler.focus && ((0, jsx_runtime_1.jsx)("div", { className: "input-date-picker-popover", children: (0, jsx_runtime_1.jsx)(exports.InputDatePickerComponent, { onChange: (e) => {
37
39
  inputHandler.setValue(e);
38
40
  onChange?.(e);
39
- } }) }))] }) }), invalidMessage && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-error-message", (0, _utils_1.pcn)(className, "error")), children: invalidMessage }))] }), isSm && ((0, jsx_runtime_1.jsx)(_components_1.BottomSheetComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), size: 380, footer: (0, jsx_runtime_1.jsx)("div", { className: "p-4", children: (0, jsx_runtime_1.jsx)(_components_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }) }), children: (0, jsx_runtime_1.jsx)("div", { className: "p-4", children: (0, jsx_runtime_1.jsx)(exports.InputDatePickerComponent, { onChange: (e) => {
41
+ } }) }))] }) }), invalidMessage && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-error-message", (0, _utils_1.pcn)(className, "error")), children: invalidMessage }))] }), isSm && ((0, jsx_runtime_1.jsx)(BottomSheet_component_1.BottomSheetComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), size: 380, footer: (0, jsx_runtime_1.jsx)("div", { className: "p-4", children: (0, jsx_runtime_1.jsx)(Button_component_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }) }), children: (0, jsx_runtime_1.jsx)("div", { className: "p-4", children: (0, jsx_runtime_1.jsx)(exports.InputDatePickerComponent, { onChange: (e) => {
40
42
  inputHandler.setValue(e);
41
43
  onChange?.(e);
42
44
  } }) }) }))] }));
@@ -73,10 +75,10 @@ const InputDatePickerComponent = ({ onChange, minDate, maxDate, rightElement, })
73
75
  while (day.isBefore(endDate) || day.isSame(endDate, "day")) {
74
76
  for (let i = 0; i < 7; i++) {
75
77
  const cloneDay = (0, moment_1.default)(day);
76
- days.push((0, jsx_runtime_1.jsx)("div", { className: `w-8 aspect-square flex items-center justify-center text-center rounded-lg transition-all
77
- ${day.isSame(currentDate, "month") ? "text-foreground" : "text-light-foreground"}
78
- ${day.isSame(selectedDate, "day") ? "bg-primary text-background" : "hover:bg-light-primary"}
79
- ${day.isSame((0, moment_1.default)(), "day") ? "border !border-primary" : "hover:bg-light-primary"}
78
+ days.push((0, jsx_runtime_1.jsx)("div", { className: `w-8 aspect-square flex items-center justify-center text-center rounded-lg transition-all
79
+ ${day.isSame(currentDate, "month") ? "text-foreground" : "text-light-foreground"}
80
+ ${day.isSame(selectedDate, "day") ? "bg-primary text-background" : "hover:bg-light-primary"}
81
+ ${day.isSame((0, moment_1.default)(), "day") ? "border !border-primary" : "hover:bg-light-primary"}
80
82
  ${(minDate && day.isBefore((0, moment_1.default)(minDate))) || (maxDate && day.isAfter((0, moment_1.default)(maxDate))) ? "opacity-10 cursor-not-allowed" : "cursor-pointer"}`, onClick: () => handleDateClick(cloneDay), children: day.format("D") }, day.toString()));
81
83
  day.add(1, "day");
82
84
  }
@@ -14,4 +14,4 @@ export interface InputDateTimeProps extends Omit<InputHTMLAttributes<HTMLInputEl
14
14
  /** Use custom class with: "label::", "tip::", "error::", "icon::", "suggest::", "suggest-item::". */
15
15
  className?: string;
16
16
  }
17
- export declare function InputDatetimeComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, register, unregister, onChange, className, ...props }: InputDateTimeProps): import("react").JSX.Element;
17
+ export declare function InputDatetimeComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, register, unregister, onChange, className, ...props }: InputDateTimeProps): import("@types/react").JSX.Element;
@@ -6,7 +6,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_1 = require("react");
7
7
  const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
8
8
  const _utils_1 = require("@utils");
9
- const _components_1 = require("@components");
9
+ const OutsideClick_component_1 = require("../wrap/OutsideClick.component");
10
+ const InputDate_component_1 = require("./InputDate.component");
11
+ const InputTime_component_1 = require("./InputTime.component");
12
+ const BottomSheet_component_1 = require("../modal/BottomSheet.component");
13
+ const Button_component_1 = require("../button/Button.component");
14
+ const Tabbar_component_1 = require("../nav/Tabbar.component");
10
15
  function InputDatetimeComponent({ label, tip, leftIcon, rightIcon, value, invalid, validations, register, unregister, onChange, className = "", ...props }) {
11
16
  const { isSm } = (0, _utils_1.useResponsive)();
12
17
  const [pickerType, setPickerType] = (0, react_1.useState)("date");
@@ -38,10 +43,10 @@ function InputDatetimeComponent({ label, tip, leftIcon, rightIcon, value, invali
38
43
  inputHandler.setValue(newVal.trim());
39
44
  onChange?.(newVal.trim());
40
45
  };
41
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "input-container", children: [(0, jsx_runtime_1.jsxs)("label", { htmlFor: randomId, className: (0, _utils_1.cn)("input-label", props.disabled && "input-label-disabled", inputHandler.focus && "input-label-focus", !!invalidMessage && "input-label-error", (0, _utils_1.pcn)(className, "label")), children: [label, validations && _utils_1.validation.hasRules(validations, "required") && (0, jsx_runtime_1.jsx)("span", { className: "text-danger ml-1", children: "*" })] }), tip && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-tip", props.disabled && "input-tip-disabled", (0, _utils_1.pcn)(className, "tip")), children: tip })), (0, jsx_runtime_1.jsx)(_components_1.OutsideClickComponent, { onOutsideClick: !isSm ? () => inputHandler.setFocus(false) : undefined, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsx)("input", { ...props, id: randomId, readOnly: true, className: (0, _utils_1.cn)("input", leftIcon && "input-with-left-icon", rightIcon && "input-with-right-icon", (0, _utils_1.pcn)(className, "input"), !!invalidMessage && "input-error"), value: inputHandler.value, onFocus: (e) => {
46
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "input-container", children: [(0, jsx_runtime_1.jsxs)("label", { htmlFor: randomId, className: (0, _utils_1.cn)("input-label", props.disabled && "input-label-disabled", inputHandler.focus && "input-label-focus", !!invalidMessage && "input-label-error", (0, _utils_1.pcn)(className, "label")), children: [label, validations && _utils_1.validation.hasRules(validations, "required") && (0, jsx_runtime_1.jsx)("span", { className: "text-danger ml-1", children: "*" })] }), tip && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-tip", props.disabled && "input-tip-disabled", (0, _utils_1.pcn)(className, "tip")), children: tip })), (0, jsx_runtime_1.jsx)(OutsideClick_component_1.OutsideClickComponent, { onOutsideClick: !isSm ? () => inputHandler.setFocus(false) : undefined, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsx)("input", { ...props, id: randomId, readOnly: true, className: (0, _utils_1.cn)("input", leftIcon && "input-with-left-icon", rightIcon && "input-with-right-icon", (0, _utils_1.pcn)(className, "input"), !!invalidMessage && "input-error"), value: inputHandler.value, onFocus: (e) => {
42
47
  props.onFocus?.(e);
43
48
  inputHandler.setFocus(true);
44
- }, autoComplete: "off", inputMode: isSm ? "none" : undefined }), leftIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-left", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon")), icon: leftIcon })), rightIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-right", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon")), icon: rightIcon })), !isSm && inputHandler.focus && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "input-datetime-picker-popover", children: [(0, jsx_runtime_1.jsx)(_components_1.TabbarComponent, { items: [
49
+ }, autoComplete: "off", inputMode: isSm ? "none" : undefined }), leftIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-left", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon")), icon: leftIcon })), rightIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-right", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon")), icon: rightIcon })), !isSm && inputHandler.focus && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "input-datetime-picker-popover", children: [(0, jsx_runtime_1.jsx)(Tabbar_component_1.TabbarComponent, { items: [
45
50
  {
46
51
  label: "Tanggal",
47
52
  value: 'date'
@@ -50,13 +55,13 @@ function InputDatetimeComponent({ label, tip, leftIcon, rightIcon, value, invali
50
55
  label: "Jam",
51
56
  value: 'time'
52
57
  },
53
- ], active: pickerType, onChange: (e) => setPickerType(e), className: "mb-4" }), pickerType === "date" ? ((0, jsx_runtime_1.jsx)(_components_1.InputDatePickerComponent, { onChange: (e) => {
58
+ ], active: pickerType, onChange: (e) => setPickerType(e), className: "mb-4" }), pickerType === "date" ? ((0, jsx_runtime_1.jsx)(InputDate_component_1.InputDatePickerComponent, { onChange: (e) => {
54
59
  setDateValue(e);
55
60
  handleChange(e, timeValue);
56
- } })) : ((0, jsx_runtime_1.jsx)(_components_1.InputTimePickerComponent, { onChange: (e) => {
61
+ } })) : ((0, jsx_runtime_1.jsx)(InputTime_component_1.InputTimePickerComponent, { onChange: (e) => {
57
62
  setTimeValue(e);
58
63
  handleChange(dateValue, e);
59
- } }))] }) }))] }) }), invalidMessage && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-error-message", (0, _utils_1.pcn)(className, "error")), children: invalidMessage }))] }), isSm && ((0, jsx_runtime_1.jsx)(_components_1.BottomSheetComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), size: 430, footer: (0, jsx_runtime_1.jsx)("div", { className: "p-4", children: (0, jsx_runtime_1.jsx)(_components_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }) }), children: (0, jsx_runtime_1.jsxs)("div", { className: "p-4", children: [(0, jsx_runtime_1.jsx)(_components_1.TabbarComponent, { items: [
64
+ } }))] }) }))] }) }), invalidMessage && ((0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-error-message", (0, _utils_1.pcn)(className, "error")), children: invalidMessage }))] }), isSm && ((0, jsx_runtime_1.jsx)(BottomSheet_component_1.BottomSheetComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), size: 430, footer: (0, jsx_runtime_1.jsx)("div", { className: "p-4", children: (0, jsx_runtime_1.jsx)(Button_component_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }) }), children: (0, jsx_runtime_1.jsxs)("div", { className: "p-4", children: [(0, jsx_runtime_1.jsx)(Tabbar_component_1.TabbarComponent, { items: [
60
65
  {
61
66
  label: "Tanggal",
62
67
  value: 'date'
@@ -65,10 +70,10 @@ function InputDatetimeComponent({ label, tip, leftIcon, rightIcon, value, invali
65
70
  label: "Jam",
66
71
  value: 'time'
67
72
  },
68
- ], active: pickerType, onChange: (e) => setPickerType(e), className: "mb-4" }), pickerType === "date" ? ((0, jsx_runtime_1.jsx)(_components_1.InputDatePickerComponent, { onChange: (e) => {
73
+ ], active: pickerType, onChange: (e) => setPickerType(e), className: "mb-4" }), pickerType === "date" ? ((0, jsx_runtime_1.jsx)(InputDate_component_1.InputDatePickerComponent, { onChange: (e) => {
69
74
  setDateValue(e);
70
75
  handleChange(e, timeValue);
71
- } })) : ((0, jsx_runtime_1.jsx)(_components_1.InputTimePickerComponent, { onChange: (e) => {
76
+ } })) : ((0, jsx_runtime_1.jsx)(InputTime_component_1.InputTimePickerComponent, { onChange: (e) => {
72
77
  setTimeValue(e);
73
78
  handleChange(dateValue, e);
74
79
  } }))] }) }))] }));
@@ -14,7 +14,7 @@ export interface InputDocumentProps extends Omit<InputHTMLAttributes<HTMLInputEl
14
14
  /** Use custom class with: "label::", "tip::", "error::", "icon::", "suggest::", "suggest-item::". */
15
15
  className?: string;
16
16
  }
17
- export declare function InputDocumentComponent({ label, tip, leftIcon, rightIcon, className, value, invalid, validations, register, unregister, onChange, ...props }: InputDocumentProps): import("react").JSX.Element;
17
+ export declare function InputDocumentComponent({ label, tip, leftIcon, rightIcon, className, value, invalid, validations, register, unregister, onChange, ...props }: InputDocumentProps): import("@types/react").JSX.Element;
18
18
  export interface InputDocumentPickerProps {
19
19
  value?: any[];
20
20
  onChange?: (value: any[]) => void;
@@ -8,7 +8,9 @@ const react_1 = require("react");
8
8
  const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
9
9
  const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
10
10
  const _utils_1 = require("@utils");
11
- const _components_1 = require("@components");
11
+ const Button_component_1 = require("../button/Button.component");
12
+ const FloatingPage_component_1 = require("../modal/FloatingPage.component");
13
+ const BottomSheet_component_1 = require("../modal/BottomSheet.component");
12
14
  const DocumentViewerComponent = (props) => {
13
15
  const Comp = _utils_1.registry.get("DocumentViewerComponent");
14
16
  return Comp ? (0, jsx_runtime_1.jsx)(Comp, { ...props }) : null;
@@ -35,12 +37,12 @@ function InputDocumentComponent({ label, tip, leftIcon, rightIcon, className = "
35
37
  inputHandler.setFocus(true);
36
38
  }, children: (Array.isArray(inputHandler.value) ? inputHandler.value : []).map((f) => {
37
39
  return ((0, jsx_runtime_1.jsxs)("span", { className: "input-document-value-item", children: [(0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: DocumentViewerIcon(f.file.name.split(".").pop()?.toLowerCase()), className: "text-light-foreground" }), (0, jsx_runtime_1.jsx)("span", { className: "line-clamp-1", children: f.file.name })] }, f.id));
38
- }) })), leftIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-left", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon"), props.disabled && (0, _utils_1.pcn)(className, "icon", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "icon", "focus")), icon: leftIcon })), rightIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-right", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon"), props.disabled && (0, _utils_1.pcn)(className, "icon", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "icon", "focus")), icon: rightIcon }))] }), invalidMessage && (0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-error-message", (0, _utils_1.pcn)(className, "error")), children: invalidMessage })] }), !isSm ? ((0, jsx_runtime_1.jsx)(_components_1.FloatingPageComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), title: label, footer: (0, jsx_runtime_1.jsx)(_components_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }), children: (0, jsx_runtime_1.jsx)(exports.InputDocumentPicker, { value: inputHandler.value, onChange: (e) => {
40
+ }) })), leftIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-left", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon"), props.disabled && (0, _utils_1.pcn)(className, "icon", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "icon", "focus")), icon: leftIcon })), rightIcon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { className: (0, _utils_1.cn)("input-icon", "input-icon-right", props.disabled && "input-icon-disabled", inputHandler.focus && "input-icon-focus", (0, _utils_1.pcn)(className, "icon"), props.disabled && (0, _utils_1.pcn)(className, "icon", "disabled"), inputHandler.focus && (0, _utils_1.pcn)(className, "icon", "focus")), icon: rightIcon }))] }), invalidMessage && (0, jsx_runtime_1.jsx)("small", { className: (0, _utils_1.cn)("input-error-message", (0, _utils_1.pcn)(className, "error")), children: invalidMessage })] }), !isSm ? ((0, jsx_runtime_1.jsx)(FloatingPage_component_1.FloatingPageComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), title: label, footer: (0, jsx_runtime_1.jsx)(Button_component_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }), children: (0, jsx_runtime_1.jsx)(exports.InputDocumentPicker, { value: inputHandler.value, onChange: (e) => {
39
41
  inputHandler.setValue(e);
40
42
  if (inputHandler.idle)
41
43
  inputHandler.setIdle(false);
42
44
  onChange?.(e);
43
- } }) })) : ((0, jsx_runtime_1.jsx)(_components_1.BottomSheetComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), size: '98vh', footer: (0, jsx_runtime_1.jsx)(_components_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }), children: (0, jsx_runtime_1.jsx)(exports.InputDocumentPicker, { value: inputHandler.value, onChange: (e) => {
45
+ } }) })) : ((0, jsx_runtime_1.jsx)(BottomSheet_component_1.BottomSheetComponent, { show: inputHandler.focus, onClose: () => inputHandler.setFocus(false), size: '98vh', footer: (0, jsx_runtime_1.jsx)(Button_component_1.ButtonComponent, { label: "Selesai", variant: "outline", onClick: () => inputHandler.setFocus(false), block: true }), children: (0, jsx_runtime_1.jsx)(exports.InputDocumentPicker, { value: inputHandler.value, onChange: (e) => {
44
46
  inputHandler.setValue(e);
45
47
  if (inputHandler.idle)
46
48
  inputHandler.setIdle(false);
@@ -82,7 +84,7 @@ const InputDocumentPicker = ({ value, onChange }) => {
82
84
  }
83
85
  }
84
86
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "p-4 flex flex-col gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "input-document-dropzone", children: files.find((x) => x.id === previewActive)?.file ? ((0, jsx_runtime_1.jsx)(DocumentViewerComponent, { file: files.find((x) => x.id === previewActive)?.file })) : ((0, jsx_runtime_1.jsxs)("div", { className: "input-document-empty-box", onClick: () => fileInputRef.current?.click(), children: [(0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faPlus, className: "text-3xl" }), (0, jsx_runtime_1.jsx)("p", { className: "text-lg", children: "Tambah Dokumen" })] })) }), (0, jsx_runtime_1.jsx)("input", { ref: fileInputRef, type: "file", multiple: true, className: "hidden", onChange: handleFilePick }), (0, jsx_runtime_1.jsx)("div", { className: "input-document-thumbs-container", children: (0, jsx_runtime_1.jsxs)("div", { className: "input-document-thumbs-grid", children: [files.map((f) => {
85
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("input-document-thumb-wrapper", previewActive === f.id && "input-document-thumb-wrapper-active"), onClick: () => setPreviewActive(f.id), children: [(0, jsx_runtime_1.jsx)(DocumentViewerComponent, { file: f.file, mode: "thumb" }), (0, jsx_runtime_1.jsx)(_components_1.ButtonComponent, { icon: free_solid_svg_icons_1.faTimes, onClick: () => removeFile(f.id), variant: "light", paint: "danger", className: "absolute top-2 right-2", size: isSm ? "xs" : "sm" })] }, f.id));
87
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("input-document-thumb-wrapper", previewActive === f.id && "input-document-thumb-wrapper-active"), onClick: () => setPreviewActive(f.id), children: [(0, jsx_runtime_1.jsx)(DocumentViewerComponent, { file: f.file, mode: "thumb" }), (0, jsx_runtime_1.jsx)(Button_component_1.ButtonComponent, { icon: free_solid_svg_icons_1.faTimes, onClick: () => removeFile(f.id), variant: "light", paint: "danger", className: "absolute top-2 right-2", size: isSm ? "xs" : "sm" })] }, f.id));
86
88
  }), (0, jsx_runtime_1.jsxs)("div", { className: "input-document-upload-box", onClick: () => fileInputRef.current?.click(), children: [(0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faPlus }), (0, jsx_runtime_1.jsx)("p", { className: "text-[10px] text-center", children: "Tambah Dokumen" })] })] }) })] }) }));
87
89
  };
88
90
  exports.InputDocumentPicker = InputDocumentPicker;