@skalfa/skalfa-component 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +79 -0
  3. package/dist/accordion/Accordion.component.d.ts +13 -0
  4. package/dist/accordion/Accordion.component.js +25 -0
  5. package/dist/breadcrumb/Breadcrumb.component.d.ts +14 -0
  6. package/dist/breadcrumb/Breadcrumb.component.js +21 -0
  7. package/dist/button/Button.component.d.ts +21 -0
  8. package/dist/button/Button.component.js +19 -0
  9. package/dist/card/AlertCard.component.d.ts +11 -0
  10. package/dist/card/AlertCard.component.js +9 -0
  11. package/dist/card/Card.component.d.ts +5 -0
  12. package/dist/card/Card.component.js +9 -0
  13. package/dist/card/DashboardCard.component.d.ts +9 -0
  14. package/dist/card/DashboardCard.component.js +13 -0
  15. package/dist/card/GalleryCard.component.d.ts +7 -0
  16. package/dist/card/GalleryCard.component.js +13 -0
  17. package/dist/card/ProductCard.component.d.ts +9 -0
  18. package/dist/card/ProductCard.component.js +13 -0
  19. package/dist/card/ProfileCard.component.d.ts +10 -0
  20. package/dist/card/ProfileCard.component.js +13 -0
  21. package/dist/carousel/Carousel.component.d.ts +13 -0
  22. package/dist/carousel/Carousel.component.js +37 -0
  23. package/dist/chip/Chip.component.d.ts +6 -0
  24. package/dist/chip/Chip.component.js +12 -0
  25. package/dist/index.d.ts +56 -0
  26. package/dist/index.js +85 -0
  27. package/dist/input/Checkbox.component.d.ts +13 -0
  28. package/dist/input/Checkbox.component.js +23 -0
  29. package/dist/input/Input.component.d.ts +23 -0
  30. package/dist/input/Input.component.js +134 -0
  31. package/dist/input/InputCheckbox.component.d.ts +27 -0
  32. package/dist/input/InputCheckbox.component.js +53 -0
  33. package/dist/input/InputCurrency.component.d.ts +21 -0
  34. package/dist/input/InputCurrency.component.js +30 -0
  35. package/dist/input/InputDate.component.d.ts +24 -0
  36. package/dist/input/InputDate.component.js +107 -0
  37. package/dist/input/InputDatetime.component.d.ts +17 -0
  38. package/dist/input/InputDatetime.component.js +75 -0
  39. package/dist/input/InputDocument.component.d.ts +22 -0
  40. package/dist/input/InputDocument.component.js +88 -0
  41. package/dist/input/InputImage.component.d.ts +23 -0
  42. package/dist/input/InputImage.component.js +260 -0
  43. package/dist/input/InputMap.component.d.ts +25 -0
  44. package/dist/input/InputMap.component.js +103 -0
  45. package/dist/input/InputNumber.component.d.ts +19 -0
  46. package/dist/input/InputNumber.component.js +40 -0
  47. package/dist/input/InputOtp.component.d.ts +14 -0
  48. package/dist/input/InputOtp.component.js +65 -0
  49. package/dist/input/InputPassword.component.d.ts +17 -0
  50. package/dist/input/InputPassword.component.js +59 -0
  51. package/dist/input/InputRadio.component.d.ts +27 -0
  52. package/dist/input/InputRadio.component.js +56 -0
  53. package/dist/input/InputTime.component.d.ts +23 -0
  54. package/dist/input/InputTime.component.js +73 -0
  55. package/dist/input/InputValues.component.d.ts +9 -0
  56. package/dist/input/InputValues.component.js +19 -0
  57. package/dist/input/Radio.component.d.ts +12 -0
  58. package/dist/input/Radio.component.js +22 -0
  59. package/dist/input/Select.component.d.ts +47 -0
  60. package/dist/input/Select.component.js +275 -0
  61. package/dist/modal/BottomSheet.component.d.ts +12 -0
  62. package/dist/modal/BottomSheet.component.js +161 -0
  63. package/dist/modal/FloatingPage.component.d.ts +12 -0
  64. package/dist/modal/FloatingPage.component.js +27 -0
  65. package/dist/modal/Modal.component.d.ts +12 -0
  66. package/dist/modal/Modal.component.js +27 -0
  67. package/dist/modal/ModalConfirm.component.d.ts +26 -0
  68. package/dist/modal/ModalConfirm.component.js +68 -0
  69. package/dist/modal/Toast.component.d.ts +11 -0
  70. package/dist/modal/Toast.component.js +58 -0
  71. package/dist/nav/Bottombar.component.d.ts +12 -0
  72. package/dist/nav/Bottombar.component.js +32 -0
  73. package/dist/nav/Footer.component.d.ts +37 -0
  74. package/dist/nav/Footer.component.js +49 -0
  75. package/dist/nav/Headbar.component.d.ts +14 -0
  76. package/dist/nav/Headbar.component.js +32 -0
  77. package/dist/nav/Navbar.component.d.ts +22 -0
  78. package/dist/nav/Navbar.component.js +26 -0
  79. package/dist/nav/Sidebar.component.d.ts +33 -0
  80. package/dist/nav/Sidebar.component.js +87 -0
  81. package/dist/nav/Tabbar.component.d.ts +13 -0
  82. package/dist/nav/Tabbar.component.js +17 -0
  83. package/dist/nav/Wizard.component.d.ts +9 -0
  84. package/dist/nav/Wizard.component.js +24 -0
  85. package/dist/src/accordion/Accordion.component.d.ts +13 -0
  86. package/dist/src/accordion/Accordion.component.js +25 -0
  87. package/dist/src/breadcrumb/Breadcrumb.component.d.ts +14 -0
  88. package/dist/src/breadcrumb/Breadcrumb.component.js +21 -0
  89. package/dist/src/button/Button.component.d.ts +21 -0
  90. package/dist/src/button/Button.component.js +19 -0
  91. package/dist/src/card/AlertCard.component.d.ts +11 -0
  92. package/dist/src/card/AlertCard.component.js +9 -0
  93. package/dist/src/card/Card.component.d.ts +5 -0
  94. package/dist/src/card/Card.component.js +9 -0
  95. package/dist/src/card/DashboardCard.component.d.ts +9 -0
  96. package/dist/src/card/DashboardCard.component.js +13 -0
  97. package/dist/src/card/GalleryCard.component.d.ts +7 -0
  98. package/dist/src/card/GalleryCard.component.js +13 -0
  99. package/dist/src/card/ProductCard.component.d.ts +9 -0
  100. package/dist/src/card/ProductCard.component.js +13 -0
  101. package/dist/src/card/ProfileCard.component.d.ts +10 -0
  102. package/dist/src/card/ProfileCard.component.js +13 -0
  103. package/dist/src/carousel/Carousel.component.d.ts +13 -0
  104. package/dist/src/carousel/Carousel.component.js +37 -0
  105. package/dist/src/chip/Chip.component.d.ts +6 -0
  106. package/dist/src/chip/Chip.component.js +12 -0
  107. package/dist/src/index.d.ts +13 -0
  108. package/dist/src/index.js +29 -0
  109. package/dist/src/input/Checkbox.component.d.ts +13 -0
  110. package/dist/src/input/Checkbox.component.js +23 -0
  111. package/dist/src/input/Input.component.d.ts +23 -0
  112. package/dist/src/input/Input.component.js +134 -0
  113. package/dist/src/input/InputCheckbox.component.d.ts +27 -0
  114. package/dist/src/input/InputCheckbox.component.js +53 -0
  115. package/dist/src/input/InputCurrency.component.d.ts +21 -0
  116. package/dist/src/input/InputCurrency.component.js +30 -0
  117. package/dist/src/input/InputDate.component.d.ts +24 -0
  118. package/dist/src/input/InputDate.component.js +107 -0
  119. package/dist/src/input/InputDatetime.component.d.ts +17 -0
  120. package/dist/src/input/InputDatetime.component.js +75 -0
  121. package/dist/src/input/InputDocument.component.d.ts +22 -0
  122. package/dist/src/input/InputDocument.component.js +88 -0
  123. package/dist/src/input/InputImage.component.d.ts +23 -0
  124. package/dist/src/input/InputImage.component.js +260 -0
  125. package/dist/src/input/InputMap.component.d.ts +25 -0
  126. package/dist/src/input/InputMap.component.js +101 -0
  127. package/dist/src/input/InputNumber.component.d.ts +19 -0
  128. package/dist/src/input/InputNumber.component.js +40 -0
  129. package/dist/src/input/InputOtp.component.d.ts +14 -0
  130. package/dist/src/input/InputOtp.component.js +65 -0
  131. package/dist/src/input/InputPassword.component.d.ts +17 -0
  132. package/dist/src/input/InputPassword.component.js +59 -0
  133. package/dist/src/input/InputRadio.component.d.ts +27 -0
  134. package/dist/src/input/InputRadio.component.js +56 -0
  135. package/dist/src/input/InputTime.component.d.ts +23 -0
  136. package/dist/src/input/InputTime.component.js +73 -0
  137. package/dist/src/input/InputValues.component.d.ts +9 -0
  138. package/dist/src/input/InputValues.component.js +19 -0
  139. package/dist/src/input/Radio.component.d.ts +12 -0
  140. package/dist/src/input/Radio.component.js +22 -0
  141. package/dist/src/input/Select.component.d.ts +47 -0
  142. package/dist/src/input/Select.component.js +275 -0
  143. package/dist/src/modal/BottomSheet.component.d.ts +12 -0
  144. package/dist/src/modal/BottomSheet.component.js +161 -0
  145. package/dist/src/modal/FloatingPage.component.d.ts +12 -0
  146. package/dist/src/modal/FloatingPage.component.js +27 -0
  147. package/dist/src/modal/Modal.component.d.ts +12 -0
  148. package/dist/src/modal/Modal.component.js +27 -0
  149. package/dist/src/modal/ModalConfirm.component.d.ts +26 -0
  150. package/dist/src/modal/ModalConfirm.component.js +68 -0
  151. package/dist/src/modal/Toast.component.d.ts +11 -0
  152. package/dist/src/modal/Toast.component.js +58 -0
  153. package/dist/src/nav/Bottombar.component.d.ts +12 -0
  154. package/dist/src/nav/Bottombar.component.js +32 -0
  155. package/dist/src/nav/Footer.component.d.ts +37 -0
  156. package/dist/src/nav/Footer.component.js +49 -0
  157. package/dist/src/nav/Headbar.component.d.ts +14 -0
  158. package/dist/src/nav/Headbar.component.js +32 -0
  159. package/dist/src/nav/Navbar.component.d.ts +22 -0
  160. package/dist/src/nav/Navbar.component.js +26 -0
  161. package/dist/src/nav/Sidebar.component.d.ts +33 -0
  162. package/dist/src/nav/Sidebar.component.js +87 -0
  163. package/dist/src/nav/Tabbar.component.d.ts +13 -0
  164. package/dist/src/nav/Tabbar.component.js +17 -0
  165. package/dist/src/nav/Wizard.component.d.ts +9 -0
  166. package/dist/src/nav/Wizard.component.js +24 -0
  167. package/dist/src/supervision/FormSupervision.component.d.ts +93 -0
  168. package/dist/src/supervision/FormSupervision.component.js +168 -0
  169. package/dist/src/supervision/TableSupervision.component.d.ts +78 -0
  170. package/dist/src/supervision/TableSupervision.component.js +273 -0
  171. package/dist/src/table/ControlBar.component.d.ts +34 -0
  172. package/dist/src/table/ControlBar.component.js +205 -0
  173. package/dist/src/table/FilterComponent.d.ts +45 -0
  174. package/dist/src/table/FilterComponent.js +132 -0
  175. package/dist/src/table/Pagination.component.d.ts +8 -0
  176. package/dist/src/table/Pagination.component.js +32 -0
  177. package/dist/src/table/Table.component.d.ts +61 -0
  178. package/dist/src/table/Table.component.js +101 -0
  179. package/dist/src/typography/TypographyArticle.component.d.ts +8 -0
  180. package/dist/src/typography/TypographyArticle.component.js +7 -0
  181. package/dist/src/typography/TypographyColumn.component.d.ts +6 -0
  182. package/dist/src/typography/TypographyColumn.component.js +7 -0
  183. package/dist/src/typography/TypographyContent.component.d.ts +6 -0
  184. package/dist/src/typography/TypographyContent.component.js +7 -0
  185. package/dist/src/typography/TypographyTips.component.d.ts +6 -0
  186. package/dist/src/typography/TypographyTips.component.js +7 -0
  187. package/dist/src/wrap/Draggable.component.d.ts +34 -0
  188. package/dist/src/wrap/Draggable.component.js +214 -0
  189. package/dist/src/wrap/Image.component.d.ts +2 -0
  190. package/dist/src/wrap/Image.component.js +13 -0
  191. package/dist/src/wrap/OutsideClick.component.d.ts +6 -0
  192. package/dist/src/wrap/OutsideClick.component.js +34 -0
  193. package/dist/src/wrap/ScrollContainer.component.d.ts +10 -0
  194. package/dist/src/wrap/ScrollContainer.component.js +54 -0
  195. package/dist/src/wrap/ShortcutProvider.d.ts +1 -0
  196. package/dist/src/wrap/ShortcutProvider.js +42 -0
  197. package/dist/src/wrap/Swipe.component.d.ts +14 -0
  198. package/dist/src/wrap/Swipe.component.js +61 -0
  199. package/dist/supervision/FormSupervision.component.d.ts +93 -0
  200. package/dist/supervision/FormSupervision.component.js +168 -0
  201. package/dist/supervision/TableSupervision.component.d.ts +78 -0
  202. package/dist/supervision/TableSupervision.component.js +273 -0
  203. package/dist/table/ControlBar.component.d.ts +34 -0
  204. package/dist/table/ControlBar.component.js +205 -0
  205. package/dist/table/FilterComponent.d.ts +45 -0
  206. package/dist/table/FilterComponent.js +132 -0
  207. package/dist/table/Pagination.component.d.ts +8 -0
  208. package/dist/table/Pagination.component.js +32 -0
  209. package/dist/table/Table.component.d.ts +61 -0
  210. package/dist/table/Table.component.js +101 -0
  211. package/dist/typography/TypographyArticle.component.d.ts +8 -0
  212. package/dist/typography/TypographyArticle.component.js +7 -0
  213. package/dist/typography/TypographyColumn.component.d.ts +6 -0
  214. package/dist/typography/TypographyColumn.component.js +7 -0
  215. package/dist/typography/TypographyContent.component.d.ts +6 -0
  216. package/dist/typography/TypographyContent.component.js +7 -0
  217. package/dist/typography/TypographyTips.component.d.ts +6 -0
  218. package/dist/typography/TypographyTips.component.js +7 -0
  219. package/dist/wrap/Draggable.component.d.ts +1 -0
  220. package/dist/wrap/Draggable.component.js +214 -0
  221. package/dist/wrap/Image.component.d.ts +2 -0
  222. package/dist/wrap/Image.component.js +13 -0
  223. package/dist/wrap/OutsideClick.component.d.ts +6 -0
  224. package/dist/wrap/OutsideClick.component.js +34 -0
  225. package/dist/wrap/ScrollContainer.component.d.ts +10 -0
  226. package/dist/wrap/ScrollContainer.component.js +54 -0
  227. package/dist/wrap/ShortcutProvider.d.ts +1 -0
  228. package/dist/wrap/ShortcutProvider.js +42 -0
  229. package/dist/wrap/Swipe.component.d.ts +14 -0
  230. package/dist/wrap/Swipe.component.js +61 -0
  231. package/package.json +44 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Skalfa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,79 @@
1
+ <p align="center">
2
+ <img src="https://skalfa.sejedigital.com/images/logo-skalfa.png" alt="Skalfa Logo" width="300" />
3
+ </p>
4
+
5
+ # @skalfa/skalfa-component
6
+
7
+ > Core reusable UI component library for Skalfa Next.js applications.
8
+
9
+ ---
10
+
11
+ ## About this Package
12
+
13
+ This package is part of the **Skalfa Framework**, a premium development ecosystem designed to build high-performance, modular web applications and APIs.
14
+
15
+ It ships a complete set of production-ready React components — inputs, tables, modals, navigation, typography, and more — all designed to integrate seamlessly with the Skalfa App template.
16
+
17
+ ### Usage Scope & Standalone Status
18
+ > 🔒 **Skalfa Ecosystem Integration:** This package is designed to run **integrated within the Skalfa ecosystem** (such as Skalfa App). It relies on the global service registry and core framework abstractions (`@skalfa/skalfa-app-core`) to operate.
19
+
20
+ ---
21
+
22
+ ## Documentation
23
+
24
+ See the usage documentation at [Documentation](https://skalfa.sejedigital.com).
25
+
26
+ ---
27
+
28
+ ## Installation
29
+
30
+ You can install this package using your preferred package manager:
31
+
32
+ ```bash
33
+ # Using npm
34
+ npm install @skalfa/skalfa-component
35
+
36
+ # Using bun
37
+ bun add @skalfa/skalfa-component
38
+ ```
39
+
40
+ ---
41
+
42
+ ## Picking & Customizing Components
43
+
44
+ The Skalfa CLI allows you to eject any component into your local project for full customization:
45
+
46
+ ```bash
47
+ # Copy a component (overrides the core version)
48
+ skalfa pick Button
49
+
50
+ # Copy and rename a component (creates a new custom variant)
51
+ skalfa pick Button MyCustomButton
52
+ ```
53
+
54
+ This will copy the component source into your `components/` directory and register the local override automatically in `components/index.ts`.
55
+
56
+ ---
57
+
58
+ ## Pre-installed Dependencies
59
+
60
+ The following key dependencies are packaged and managed within this project:
61
+
62
+ | Dependency | Scope | Version |
63
+ | :--- | :--- | :--- |
64
+ | `@skalfa/skalfa-app-core` | peer / runtime | `^1.0.0` |
65
+ | `next` | peer / runtime | `^15.0.0` |
66
+ | `react` | peer / runtime | `^19.0.0` |
67
+ | `react-dom` | peer / runtime | `^19.0.0` |
68
+ | `@fortawesome/react-fontawesome` | peer / runtime | `^0.2.2` |
69
+ | `@react-google-maps/api` | development | `^2.20.7` |
70
+ | `@types/node` | development | `^20.0.0` |
71
+ | `@types/react` | development | `^19.0.0` |
72
+ | `@types/react-dom` | development | `^19.0.0` |
73
+ | `typescript` | development | `^6.0.3` |
74
+
75
+ ---
76
+
77
+ ## License
78
+
79
+ This package is licensed under the **MIT License**. For full license text, see the [LICENSE](LICENSE) file.
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from "react";
2
+ export interface AccordionProps {
3
+ setActive?: number | null;
4
+ items: {
5
+ head: ReactNode;
6
+ content: ReactNode;
7
+ }[];
8
+ horizontal?: boolean;
9
+ className?: string;
10
+ }
11
+ export declare function AccordionComponent({ items, setActive, horizontal,
12
+ /** Use custom class with: "container::", "head::", "active::". */
13
+ className, }: AccordionProps): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AccordionComponent = AccordionComponent;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
8
+ const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
9
+ const _utils_1 = require("@utils");
10
+ ;
11
+ function AccordionComponent({ items, setActive = null, horizontal = false,
12
+ /** Use custom class with: "container::", "head::", "active::". */
13
+ className = "", }) {
14
+ const [isActive, setIsActive] = (0, react_1.useState)(setActive);
15
+ (0, react_1.useEffect)(() => {
16
+ setIsActive(setActive);
17
+ }, [setActive]);
18
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("accordion", horizontal ? "accordion-horizontal" : "accordion-vertical", (0, _utils_1.pcn)(className, "container")), children: items.map(({ head, content }, key) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("accordion-item", horizontal ? "accordion-item-horizontal" : "accordion-item-vertical"), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("accordion-head", horizontal ? "accordion-head-horizontal" : "accordion-head-vertical", (0, _utils_1.pcn)(className, "head")), onClick: () => setIsActive(isActive === key ? null : key), children: [(0, jsx_runtime_1.jsx)("div", { children: head }), (0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("w-min transition-transform", isActive !== key && "rotate-180"), children: (0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: horizontal ? free_solid_svg_icons_1.faChevronLeft : free_solid_svg_icons_1.faChevronDown }) })] }), (0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("accordion-content", horizontal
19
+ ? isActive === key
20
+ ? "accordion-content-horizontal-active"
21
+ : "accordion-content-horizontal-inactive"
22
+ : isActive === key
23
+ ? "accordion-content-vertical-active"
24
+ : "accordion-content-vertical-inactive", (0, _utils_1.pcn)(className, "base"), isActive === key && (0, _utils_1.pcn)(className, "active")), children: content })] }, key))) }));
25
+ }
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from "react";
2
+ export interface BreadcrumbItemProps {
3
+ path: string;
4
+ label: string;
5
+ className?: string;
6
+ }
7
+ export interface BreadcrumbProps {
8
+ items: BreadcrumbItemProps[];
9
+ square?: boolean;
10
+ separatorContent?: string | ReactNode;
11
+ /** Use custom class with: "container::", "active::". */
12
+ className?: string;
13
+ }
14
+ export declare function BreadcrumbComponent({ items, className, square, separatorContent, }: BreadcrumbProps): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BreadcrumbComponent = BreadcrumbComponent;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const react_1 = require("react");
10
+ const link_1 = __importDefault(require("next/link"));
11
+ const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
12
+ const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
13
+ const _utils_1 = require("@utils");
14
+ ;
15
+ ;
16
+ function BreadcrumbComponent({ items, className = "", square = false, separatorContent, }) {
17
+ return ((0, jsx_runtime_1.jsx)("nav", { className: (0, _utils_1.cn)("breadcrumb", (0, _utils_1.pcn)(className, "container")), children: (0, jsx_runtime_1.jsx)("ol", { className: "breadcrumb-list", children: items.map((item, index) => {
18
+ const isActive = index === items.length - 1;
19
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(link_1.default, { href: item.path, className: (0, _utils_1.cn)("breadcrumb-link", square && "breadcrumb-link-square", isActive && !square && "breadcrumb-link-active", isActive && square && "breadcrumb-link-square-active", (0, _utils_1.pcn)(className, "base"), isActive && (0, _utils_1.pcn)(className, "active")), children: item.label }) }), !isActive && ((0, jsx_runtime_1.jsx)("li", { className: "breadcrumb-separator", children: separatorContent || ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faChevronRight })) }))] }, item.path));
20
+ }) }) }));
21
+ }
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from "react";
2
+ export interface ButtonProps {
3
+ type?: "submit" | "button";
4
+ label?: string | ReactNode;
5
+ variant?: "solid" | "outline" | "light" | "simple";
6
+ paint?: "primary" | "secondary" | "success" | "danger" | "warning";
7
+ rounded?: boolean | string;
8
+ block?: boolean;
9
+ disabled?: boolean;
10
+ size?: "xs" | "sm" | "md" | "lg";
11
+ onClick?: any;
12
+ href?: string;
13
+ icon?: any;
14
+ loading?: boolean;
15
+ hover?: boolean;
16
+ tips?: string;
17
+ title?: string;
18
+ /** Use custom class with: "icon::", "loading::". */
19
+ className?: string;
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;
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ButtonComponent = ButtonComponent;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const link_1 = __importDefault(require("next/link"));
10
+ const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
11
+ const _utils_1 = require("@utils");
12
+ ;
13
+ function ButtonComponent({ type = "button", label, variant = "solid", paint = "primary", rounded, block, disabled, size = "md", onClick, href, icon, loading, tips, title, className = "", }) {
14
+ const isIconButton = icon && !label;
15
+ return ((0, jsx_runtime_1.jsxs)(ButtonComponentWrapper, { type: type, className: (0, _utils_1.cn)("button", `button-${variant}-${paint}`, isIconButton ? `icon-button-${size}` : `button-${size}`, rounded && "rounded-full", !isIconButton && block && "w-full justify-center", (0, _utils_1.pcn)(className, "base")), disabled: disabled || loading, onClick: onClick, href: href, title: tips || title, children: [loading ? ((0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("button-loading", (0, _utils_1.pcn)(className, "loading")) })) : (icon && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: icon, className: (0, _utils_1.cn)("button-icon", (0, _utils_1.pcn)(className, "icon")) }))), !isIconButton && label] }));
16
+ }
17
+ const ButtonComponentWrapper = ({ children, href, ...props }) => {
18
+ return !href ? ((0, jsx_runtime_1.jsx)("button", { ...props, children: children })) : ((0, jsx_runtime_1.jsx)(link_1.default, { href: href, ...props, children: children }));
19
+ };
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from "react";
2
+ export interface AlertCardProps {
3
+ title?: string | ReactNode;
4
+ leftContent?: string | ReactNode;
5
+ badge?: string | ReactNode;
6
+ content?: string | ReactNode;
7
+ footer?: string | ReactNode;
8
+ /** Use custom class with: "badge::", "title::". */
9
+ className?: string;
10
+ }
11
+ export declare function AlertCardComponent({ title, leftContent, badge, content, footer, className, }: AlertCardProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AlertCardComponent = AlertCardComponent;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const _utils_1 = require("@utils");
7
+ function AlertCardComponent({ title, leftContent, badge, content, footer, className = "", }) {
8
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("section", { className: (0, _utils_1.cn)("alert-card", (0, _utils_1.pcn)(className, "base")), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-start sm:gap-8", children: [leftContent, (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("strong", { className: (0, _utils_1.cn)("alert-card-badge", (0, _utils_1.pcn)(className, "badge")), children: badge }), (0, jsx_runtime_1.jsx)("h3", { className: (0, _utils_1.cn)("alert-card-title", (0, _utils_1.pcn)(className, "title")), children: title }), content, footer && (0, jsx_runtime_1.jsx)("div", { className: "pt-4", children: footer })] })] }) }) }));
9
+ }
@@ -0,0 +1,5 @@
1
+ export interface CardProps {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ }
5
+ export declare function CardComponent({ children, className, }: CardProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardComponent = CardComponent;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const _utils_1 = require("@utils");
7
+ function CardComponent({ children, className, }) {
8
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("card", className), children: children }) }));
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+ export interface DashboardCardProps {
3
+ content?: string | ReactNode;
4
+ title?: string | ReactNode;
5
+ rightContent?: string | ReactNode;
6
+ path?: string;
7
+ className?: string;
8
+ }
9
+ export declare function DashboardCardComponent({ content, title, rightContent, path, className, }: DashboardCardProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.DashboardCardComponent = DashboardCardComponent;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const link_1 = __importDefault(require("next/link"));
10
+ const _utils_1 = require("@utils");
11
+ function DashboardCardComponent({ content, title, rightContent, path, className, }) {
12
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(link_1.default, { href: path || "", children: (0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("dashboard-card", className), children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "flex gap-4 items-center", children: content }), title] }), (0, jsx_runtime_1.jsx)("div", { children: rightContent })] }) }) }));
13
+ }
@@ -0,0 +1,7 @@
1
+ export interface GalleryCardProps {
2
+ src: string;
3
+ alt?: string;
4
+ /** Use custom class with: "label::", "image::". */
5
+ className?: string;
6
+ }
7
+ export declare function GalleryCardComponent({ src, alt, className, }: GalleryCardProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.GalleryCardComponent = GalleryCardComponent;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const image_1 = __importDefault(require("next/image"));
10
+ const _utils_1 = require("@utils");
11
+ function GalleryCardComponent({ src, alt = "", className = "", }) {
12
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.pcn)(className, "base"), children: [(0, jsx_runtime_1.jsx)(image_1.default, { src: src, alt: src, width: 400, height: 300, className: (0, _utils_1.cn)("gallery-card-image", (0, _utils_1.pcn)(className, "image")) }), (0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("gallery-card-label", (0, _utils_1.pcn)(className, "label")), children: alt })] }) }));
13
+ }
@@ -0,0 +1,9 @@
1
+ export interface ProductCardProps {
2
+ name: string;
3
+ price?: string;
4
+ image?: string;
5
+ description?: string | React.ReactNode;
6
+ /** Use custom class with: "image::", "content::". */
7
+ className?: string;
8
+ }
9
+ export declare function ProductCardComponent({ image, name, price, description, className, }: ProductCardProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ProductCardComponent = ProductCardComponent;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const image_1 = __importDefault(require("next/image"));
10
+ const _utils_1 = require("@utils");
11
+ function ProductCardComponent({ image = "", name, price, description, className = "", }) {
12
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("product-card", (0, _utils_1.pcn)(className, "base")), children: [(0, jsx_runtime_1.jsx)(image_1.default, { src: image, alt: image, width: 400, height: 300, className: (0, _utils_1.cn)("product-card-image", (0, _utils_1.pcn)(className, "image")) }), (0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("p-2", (0, _utils_1.pcn)(className, "content")), children: [(0, jsx_runtime_1.jsxs)("dl", { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("dt", { className: "sr-only", children: "Name" }), (0, jsx_runtime_1.jsx)("dd", { className: "text-sm", children: name })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("dt", { className: "sr-only", children: "Price" }), (0, jsx_runtime_1.jsx)("dd", { className: "font-semibold", children: price })] })] }), description && (0, jsx_runtime_1.jsx)("div", { children: description })] })] }) }));
13
+ }
@@ -0,0 +1,10 @@
1
+ export interface ProfileCardProps {
2
+ name: string;
3
+ short?: string;
4
+ image?: string;
5
+ description?: string | React.ReactNode;
6
+ footer?: string | React.ReactNode;
7
+ /** Use custom class with: "image::", "content::". */
8
+ className?: string;
9
+ }
10
+ export declare function ProfileCardComponent({ image, name, short, description, footer, className, }: ProfileCardProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ProfileCardComponent = ProfileCardComponent;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const image_1 = __importDefault(require("next/image"));
10
+ const _utils_1 = require("@utils");
11
+ function ProfileCardComponent({ image = "", name, short, description, footer, className = "", }) {
12
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("profile-card", (0, _utils_1.pcn)(className, "base")), children: [(0, jsx_runtime_1.jsx)("span", { className: "absolute inset-x-0 bottom-0 h-1 bg-primary" }), (0, jsx_runtime_1.jsxs)("div", { className: "sm:flex sm:gap-4 sm:items-center", children: [image && ((0, jsx_runtime_1.jsx)("div", { className: "hidden sm:block sm:shrink-0", children: (0, jsx_runtime_1.jsx)(image_1.default, { src: image, alt: image, width: 400, height: 400, className: (0, _utils_1.cn)("profile-card-image", (0, _utils_1.pcn)(className, "image")) }) })), (0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.pcn)(className, "content"), children: [(0, jsx_runtime_1.jsx)("h3", { className: "text-lg font-bold sm:text-xl", children: name }), (0, jsx_runtime_1.jsx)("p", { className: "mt-1 text-xs font-medium text-light-foreground", children: short })] })] }), description, footer && (0, jsx_runtime_1.jsx)("dl", { className: "mt-4", children: footer })] }) }));
13
+ }
@@ -0,0 +1,13 @@
1
+ interface CarouselItem {
2
+ background: string;
3
+ content?: string;
4
+ }
5
+ interface CarouselProps {
6
+ items: CarouselItem[];
7
+ noButton?: boolean;
8
+ noNavigation?: boolean;
9
+ /** Use custom class with: "item::", "prev-button::", "next-button::", "navigation::". */
10
+ className?: string;
11
+ }
12
+ export declare function CarouselComponent({ items, className, noButton, noNavigation, }: CarouselProps): import("react").JSX.Element;
13
+ export {};
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CarouselComponent = CarouselComponent;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
8
+ const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
9
+ const _utils_1 = require("@utils");
10
+ function CarouselComponent({ items, className = "", noButton, noNavigation, }) {
11
+ const [currentIndex, setCurrentIndex] = (0, react_1.useState)(0);
12
+ const touchStartX = (0, react_1.useRef)(null);
13
+ const touchEndX = (0, react_1.useRef)(null);
14
+ const intervalRef = (0, react_1.useRef)(null);
15
+ const handlePrev = () => setCurrentIndex((prevIndex) => (prevIndex - 1 + items.length) % items.length);
16
+ const handleNext = () => setCurrentIndex((prevIndex) => (prevIndex + 1) % items.length);
17
+ const handleTouchStart = (e) => {
18
+ touchStartX.current = e.touches[0].clientX;
19
+ };
20
+ const handleTouchEnd = (e) => {
21
+ touchEndX.current = e.changedTouches[0].clientX;
22
+ if (touchStartX.current !== null && touchEndX.current !== null) {
23
+ if (touchStartX.current - touchEndX.current > 50)
24
+ handleNext();
25
+ if (touchEndX.current - touchStartX.current > 50)
26
+ handlePrev();
27
+ }
28
+ };
29
+ (0, react_1.useEffect)(() => {
30
+ intervalRef.current = setInterval(handleNext, 10000);
31
+ return () => {
32
+ if (intervalRef.current)
33
+ clearInterval(intervalRef.current);
34
+ };
35
+ }, []);
36
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, _utils_1.cn)("carousel", (0, _utils_1.pcn)(className, "base")), children: [(0, jsx_runtime_1.jsx)("div", { className: "carousel-inner", style: { transform: `translateX(-${currentIndex * 100}%)` }, onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, children: items.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("carousel-item", (0, _utils_1.pcn)(className, "item")), style: { backgroundImage: `url(${item.background})` }, children: item.content }, index))) }), !noNavigation && ((0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("carousel-navigation", (0, _utils_1.pcn)(className, "navigation")), children: items.map((_, index) => ((0, jsx_runtime_1.jsx)("button", { className: `carousel-indicator ${currentIndex === index ? "carousel-indicator-active" : ""}`, onClick: () => setCurrentIndex(index) }, index))) })), !noButton && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { className: (0, _utils_1.cn)("carousel-btn carousel-prev-btn", (0, _utils_1.pcn)(className, "prev-button")), onClick: handlePrev, children: (0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faChevronLeft }) }), (0, jsx_runtime_1.jsx)("button", { className: (0, _utils_1.cn)("carousel-btn carousel-next-btn", (0, _utils_1.pcn)(className, "next-button")), onClick: handleNext, children: (0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faChevronRight }) })] }))] }));
37
+ }
@@ -0,0 +1,6 @@
1
+ export declare function ChipComponent({ items, onClick, onDelete, className, }: {
2
+ items: Record<string, any>;
3
+ onClick?: (item: any, index: number) => void;
4
+ onDelete?: (item: any, index: number) => void;
5
+ className?: string;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChipComponent = ChipComponent;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
6
+ const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
7
+ const _utils_1 = require("@utils");
8
+ function ChipComponent({ items, onClick, onDelete, className, }) {
9
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, _utils_1.cn)("chip-group", className), children: items?.map((item, key) => {
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "chip", onClick: () => onClick?.(item, key), children: [(0, jsx_runtime_1.jsx)("span", { children: item }), onDelete && ((0, jsx_runtime_1.jsx)(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faTimes, className: "chip-delete", onClick: () => onDelete?.(item, key) }))] }, key));
11
+ }) }));
12
+ }
@@ -0,0 +1,56 @@
1
+ export * from "./accordion/Accordion.component";
2
+ export * from "./breadcrumb/Breadcrumb.component";
3
+ export * from "./button/Button.component";
4
+ export * from "./card/AlertCard.component";
5
+ export * from "./card/Card.component";
6
+ export * from "./card/DashboardCard.component";
7
+ export * from "./card/GalleryCard.component";
8
+ export * from "./card/ProductCard.component";
9
+ export * from "./card/ProfileCard.component";
10
+ export * from "./carousel/Carousel.component";
11
+ export * from "./chip/Chip.component";
12
+ export * from "./input/Checkbox.component";
13
+ export * from "./input/Input.component";
14
+ export * from "./input/InputCheckbox.component";
15
+ export * from "./input/InputCurrency.component";
16
+ export * from "./input/InputDate.component";
17
+ export * from "./input/InputDatetime.component";
18
+ export * from "./input/InputDocument.component";
19
+ export * from "./input/InputImage.component";
20
+ export * from "./input/InputMap.component";
21
+ export * from "./input/InputNumber.component";
22
+ export * from "./input/InputOtp.component";
23
+ export * from "./input/InputPassword.component";
24
+ export * from "./input/InputRadio.component";
25
+ export * from "./input/InputTime.component";
26
+ export * from "./input/InputValues.component";
27
+ export * from "./input/Radio.component";
28
+ export * from "./input/Select.component";
29
+ export * from "./modal/BottomSheet.component";
30
+ export * from "./modal/FloatingPage.component";
31
+ export * from "./modal/Modal.component";
32
+ export * from "./modal/ModalConfirm.component";
33
+ export * from "./modal/Toast.component";
34
+ export * from "./nav/Bottombar.component";
35
+ export * from "./nav/Footer.component";
36
+ export * from "./nav/Headbar.component";
37
+ export * from "./nav/Navbar.component";
38
+ export * from "./nav/Sidebar.component";
39
+ export * from "./nav/Tabbar.component";
40
+ export * from "./nav/Wizard.component";
41
+ export * from "./supervision/FormSupervision.component";
42
+ export * from "./supervision/TableSupervision.component";
43
+ export * from "./table/ControlBar.component";
44
+ export * from "./table/FilterComponent";
45
+ export * from "./table/Pagination.component";
46
+ export * from "./table/Table.component";
47
+ export * from "./typography/TypographyArticle.component";
48
+ export * from "./typography/TypographyColumn.component";
49
+ export * from "./typography/TypographyContent.component";
50
+ export * from "./typography/TypographyTips.component";
51
+ export * from "./wrap/Draggable.component";
52
+ export * from "./wrap/Image.component";
53
+ export * from "./wrap/OutsideClick.component";
54
+ export * from "./wrap/ScrollContainer.component";
55
+ export * from "./wrap/ShortcutProvider";
56
+ export * from "./wrap/Swipe.component";
package/dist/index.js ADDED
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
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);
73
+ const _utils_1 = require("@utils");
74
+ const Table_component_js_1 = require("./table/Table.component.js");
75
+ const Button_component_js_1 = require("./button/Button.component.js");
76
+ const Select_component_js_1 = require("./input/Select.component.js");
77
+ const Modal_component_js_1 = require("./modal/Modal.component.js");
78
+ const FilterComponent_js_1 = require("./table/FilterComponent.js");
79
+ const _contexts_1 = require("@contexts");
80
+ _utils_1.registry.register("TableComponent", Table_component_js_1.TableComponent);
81
+ _utils_1.registry.register("ButtonComponent", Button_component_js_1.ButtonComponent);
82
+ _utils_1.registry.register("SelectComponent", Select_component_js_1.SelectComponent);
83
+ _utils_1.registry.register("ModalComponent", Modal_component_js_1.ModalComponent);
84
+ _utils_1.registry.register("FilterComponent", FilterComponent_js_1.FilterComponent);
85
+ _utils_1.registry.register("useToggleContext", _contexts_1.useToggleContext);
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from "react";
2
+ export type CheckboxProps = {
3
+ name: string;
4
+ label?: string | ReactNode;
5
+ value?: string;
6
+ disabled?: boolean;
7
+ checked?: boolean;
8
+ invalid?: string;
9
+ onChange?: () => void;
10
+ /** Use custom class with: "label::", "checked::", "error::". */
11
+ className?: string;
12
+ };
13
+ export declare function CheckboxComponent({ name, label, value, disabled, checked, invalid, onChange, className, }: CheckboxProps): import("react").JSX.Element;