@datability/8ui 0.1.69 → 1.1.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 (199) hide show
  1. package/.prettierrc +8 -0
  2. package/.vscode/extensions.json +6 -0
  3. package/README.md +66 -18
  4. package/declaration.d.ts +10 -0
  5. package/docker-compose.yml +20 -0
  6. package/eslint.config.js +23 -0
  7. package/index.html +13 -0
  8. package/package.json +37 -36
  9. package/public/vite.svg +1 -0
  10. package/src/App.tsx +370 -0
  11. package/src/components/blackdrop/index.tsx +18 -0
  12. package/src/components/blackdrop/index.type.ts +7 -0
  13. package/src/components/button/index.tsx +44 -0
  14. package/src/components/button/index.type.ts +13 -0
  15. package/src/components/chip/index.tsx +39 -0
  16. package/src/components/chip/index.type.ts +12 -0
  17. package/src/components/context.tsx +26 -0
  18. package/src/components/divider/index.tsx +13 -0
  19. package/src/components/index.ts +62 -0
  20. package/{dist/components/Input/InputAutoComplete → src/components/input/input-auto-complete}/index.scss +1 -1
  21. package/src/components/input/input-auto-complete/index.tsx +140 -0
  22. package/src/components/input/input-auto-complete/index.type.tsx +13 -0
  23. package/src/components/input/input-base/index.tsx +39 -0
  24. package/src/components/input/input-base/index.type.tsx +13 -0
  25. package/src/components/input/input-basic/index.tsx +47 -0
  26. package/src/components/input/input-basic/index.type.tsx +8 -0
  27. package/src/components/input/input-checkbox/index.tsx +69 -0
  28. package/src/components/input/input-checkbox/index.type.tsx +11 -0
  29. package/src/components/input/input-date/index.tsx +354 -0
  30. package/src/components/input/input-date/index.type.tsx +11 -0
  31. package/src/components/input/input-date-range/index.tsx +284 -0
  32. package/src/components/input/input-date-range/index.type.tsx +11 -0
  33. package/src/components/input/input-date-time/index.tsx +367 -0
  34. package/src/components/input/input-date-time/index.type.tsx +11 -0
  35. package/src/components/input/input-number/index.tsx +118 -0
  36. package/src/components/input/input-number/index.type.tsx +11 -0
  37. package/src/components/input/input-password/index.tsx +60 -0
  38. package/src/components/input/input-password/index.type.tsx +8 -0
  39. package/src/components/input/input-radio/index.tsx +72 -0
  40. package/src/components/input/input-radio/index.type.tsx +12 -0
  41. package/{dist/components/Input/InputSelect → src/components/input/input-select}/index.scss +1 -1
  42. package/src/components/input/input-select/index.tsx +113 -0
  43. package/src/components/input/input-select/index.type.tsx +15 -0
  44. package/{dist/components/InputNonContext/InputSwitch → src/components/input/input-switch}/index.scss +1 -1
  45. package/src/components/input/input-switch/index.tsx +44 -0
  46. package/src/components/input/input-switch/index.type.tsx +4 -0
  47. package/src/components/input/input-textarea/index.tsx +48 -0
  48. package/src/components/input/input-textarea/index.type.tsx +10 -0
  49. package/src/components/menu/index.tsx +136 -0
  50. package/src/components/menu/index.type.ts +8 -0
  51. package/{dist/components/Modal → src/components/modal}/index.scss +0 -0
  52. package/src/components/modal/index.tsx +99 -0
  53. package/src/components/modal/index.type.tsx +8 -0
  54. package/src/index.scss +44 -0
  55. package/src/index.ts +62 -0
  56. package/src/logoDownload.svg +3 -0
  57. package/src/main.tsx +9 -0
  58. package/tsconfig.app.json +28 -0
  59. package/tsconfig.json +42 -0
  60. package/tsconfig.node.json +29 -0
  61. package/vite.config.d.ts +2 -0
  62. package/vite.config.ts +35 -0
  63. package/dist/components/Blackdrop/index.d.ts +0 -5
  64. package/dist/components/Blackdrop/index.js +0 -11
  65. package/dist/components/Blackdrop/index.js.map +0 -1
  66. package/dist/components/Blackdrop/index.type.d.ts +0 -6
  67. package/dist/components/Blackdrop/index.type.js +0 -2
  68. package/dist/components/Blackdrop/index.type.js.map +0 -1
  69. package/dist/components/Button/index.d.ts +0 -5
  70. package/dist/components/Button/index.js +0 -16
  71. package/dist/components/Button/index.js.map +0 -1
  72. package/dist/components/Button/index.type.d.ts +0 -12
  73. package/dist/components/Button/index.type.js +0 -2
  74. package/dist/components/Button/index.type.js.map +0 -1
  75. package/dist/components/Chip/index.d.ts +0 -5
  76. package/dist/components/Chip/index.js +0 -18
  77. package/dist/components/Chip/index.js.map +0 -1
  78. package/dist/components/Chip/index.type.d.ts +0 -9
  79. package/dist/components/Chip/index.type.js +0 -2
  80. package/dist/components/Chip/index.type.js.map +0 -1
  81. package/dist/components/Divider/index.d.ts +0 -4
  82. package/dist/components/Divider/index.js +0 -10
  83. package/dist/components/Divider/index.js.map +0 -1
  84. package/dist/components/Input/InputAutoComplete/index.d.ts +0 -5
  85. package/dist/components/Input/InputAutoComplete/index.js +0 -68
  86. package/dist/components/Input/InputAutoComplete/index.js.map +0 -1
  87. package/dist/components/Input/InputAutoComplete/index.type.d.ts +0 -12
  88. package/dist/components/Input/InputAutoComplete/index.type.js +0 -2
  89. package/dist/components/Input/InputAutoComplete/index.type.js.map +0 -1
  90. package/dist/components/Input/InputBase/index.d.ts +0 -5
  91. package/dist/components/Input/InputBase/index.js +0 -23
  92. package/dist/components/Input/InputBase/index.js.map +0 -1
  93. package/dist/components/Input/InputBase/index.type.d.ts +0 -9
  94. package/dist/components/Input/InputBase/index.type.js +0 -2
  95. package/dist/components/Input/InputBase/index.type.js.map +0 -1
  96. package/dist/components/Input/InputBasic/index.d.ts +0 -5
  97. package/dist/components/Input/InputBasic/index.js +0 -16
  98. package/dist/components/Input/InputBasic/index.js.map +0 -1
  99. package/dist/components/Input/InputBasic/index.type.d.ts +0 -10
  100. package/dist/components/Input/InputBasic/index.type.js +0 -2
  101. package/dist/components/Input/InputBasic/index.type.js.map +0 -1
  102. package/dist/components/Input/InputCheckbox/index.d.ts +0 -5
  103. package/dist/components/Input/InputCheckbox/index.js +0 -19
  104. package/dist/components/Input/InputCheckbox/index.js.map +0 -1
  105. package/dist/components/Input/InputCheckbox/index.type.d.ts +0 -11
  106. package/dist/components/Input/InputCheckbox/index.type.js +0 -2
  107. package/dist/components/Input/InputCheckbox/index.type.js.map +0 -1
  108. package/dist/components/Input/InputDate/index.d.ts +0 -23
  109. package/dist/components/Input/InputDate/index.js +0 -190
  110. package/dist/components/Input/InputDate/index.js.map +0 -1
  111. package/dist/components/Input/InputDate/index.type.d.ts +0 -11
  112. package/dist/components/Input/InputDate/index.type.js +0 -2
  113. package/dist/components/Input/InputDate/index.type.js.map +0 -1
  114. package/dist/components/Input/InputDateRange/index.d.ts +0 -5
  115. package/dist/components/Input/InputDateRange/index.js +0 -137
  116. package/dist/components/Input/InputDateRange/index.js.map +0 -1
  117. package/dist/components/Input/InputDateRange/index.type.d.ts +0 -11
  118. package/dist/components/Input/InputDateRange/index.type.js +0 -2
  119. package/dist/components/Input/InputDateRange/index.type.js.map +0 -1
  120. package/dist/components/Input/InputDateTime/index.d.ts +0 -5
  121. package/dist/components/Input/InputDateTime/index.js +0 -185
  122. package/dist/components/Input/InputDateTime/index.js.map +0 -1
  123. package/dist/components/Input/InputDateTime/index.type.d.ts +0 -11
  124. package/dist/components/Input/InputDateTime/index.type.js +0 -2
  125. package/dist/components/Input/InputDateTime/index.type.js.map +0 -1
  126. package/dist/components/Input/InputNumber/index.d.ts +0 -5
  127. package/dist/components/Input/InputNumber/index.js +0 -78
  128. package/dist/components/Input/InputNumber/index.js.map +0 -1
  129. package/dist/components/Input/InputNumber/index.type.d.ts +0 -10
  130. package/dist/components/Input/InputNumber/index.type.js +0 -2
  131. package/dist/components/Input/InputNumber/index.type.js.map +0 -1
  132. package/dist/components/Input/InputPassword/index.d.ts +0 -5
  133. package/dist/components/Input/InputPassword/index.js +0 -21
  134. package/dist/components/Input/InputPassword/index.js.map +0 -1
  135. package/dist/components/Input/InputPassword/index.type.d.ts +0 -8
  136. package/dist/components/Input/InputPassword/index.type.js +0 -2
  137. package/dist/components/Input/InputPassword/index.type.js.map +0 -1
  138. package/dist/components/Input/InputRadio/index.d.ts +0 -5
  139. package/dist/components/Input/InputRadio/index.js +0 -31
  140. package/dist/components/Input/InputRadio/index.js.map +0 -1
  141. package/dist/components/Input/InputRadio/index.type.d.ts +0 -12
  142. package/dist/components/Input/InputRadio/index.type.js +0 -2
  143. package/dist/components/Input/InputRadio/index.type.js.map +0 -1
  144. package/dist/components/Input/InputSelect/index.d.ts +0 -5
  145. package/dist/components/Input/InputSelect/index.js +0 -45
  146. package/dist/components/Input/InputSelect/index.js.map +0 -1
  147. package/dist/components/Input/InputSelect/index.type.d.ts +0 -14
  148. package/dist/components/Input/InputSelect/index.type.js +0 -2
  149. package/dist/components/Input/InputSelect/index.type.js.map +0 -1
  150. package/dist/components/Input/InputTextarea/index.d.ts +0 -5
  151. package/dist/components/Input/InputTextarea/index.js +0 -16
  152. package/dist/components/Input/InputTextarea/index.js.map +0 -1
  153. package/dist/components/Input/InputTextarea/index.type.d.ts +0 -10
  154. package/dist/components/Input/InputTextarea/index.type.js +0 -2
  155. package/dist/components/Input/InputTextarea/index.type.js.map +0 -1
  156. package/dist/components/InputNonContext/InputSwitch/index.d.ts +0 -5
  157. package/dist/components/InputNonContext/InputSwitch/index.js +0 -19
  158. package/dist/components/InputNonContext/InputSwitch/index.js.map +0 -1
  159. package/dist/components/InputNonContext/InputSwitch/index.type.d.ts +0 -6
  160. package/dist/components/InputNonContext/InputSwitch/index.type.js +0 -2
  161. package/dist/components/InputNonContext/InputSwitch/index.type.js.map +0 -1
  162. package/dist/components/Menu/index.d.ts +0 -5
  163. package/dist/components/Menu/index.js +0 -103
  164. package/dist/components/Menu/index.js.map +0 -1
  165. package/dist/components/Menu/index.type.d.ts +0 -11
  166. package/dist/components/Menu/index.type.js +0 -2
  167. package/dist/components/Menu/index.type.js.map +0 -1
  168. package/dist/components/Modal/index.d.ts +0 -5
  169. package/dist/components/Modal/index.js +0 -83
  170. package/dist/components/Modal/index.js.map +0 -1
  171. package/dist/components/Modal/index.type.d.ts +0 -7
  172. package/dist/components/Modal/index.type.js +0 -2
  173. package/dist/components/Modal/index.type.js.map +0 -1
  174. package/dist/components/context.d.ts +0 -8
  175. package/dist/components/context.js +0 -12
  176. package/dist/components/context.js.map +0 -1
  177. package/dist/components/index.d.ts +0 -41
  178. package/dist/components/index.js +0 -21
  179. package/dist/components/index.js.map +0 -1
  180. /package/{dist → src}/components/assets/closed.svg +0 -0
  181. /package/{dist/components/assets/expandArrow.svg → src/components/assets/expand-arrow.svg} +0 -0
  182. /package/{dist/components/assets/visibilityOff.svg → src/components/assets/visibility-off.svg} +0 -0
  183. /package/{dist → src}/components/assets/visibility.svg +0 -0
  184. /package/{dist/components/Blackdrop → src/components/blackdrop}/index.scss +0 -0
  185. /package/{dist/components/Button → src/components/button}/index.scss +0 -0
  186. /package/{dist/components/Chip → src/components/chip}/index.scss +0 -0
  187. /package/{dist/components/Divider → src/components/divider}/index.scss +0 -0
  188. /package/{dist/components/Input → src/components/input}/extend.scss +0 -0
  189. /package/{dist/components/Input/InputBase → src/components/input/input-base}/index.scss +0 -0
  190. /package/{dist/components/Input/InputBasic → src/components/input/input-basic}/index.scss +0 -0
  191. /package/{dist/components/Input/InputCheckbox → src/components/input/input-checkbox}/index.scss +0 -0
  192. /package/{dist/components/Input/InputDate → src/components/input/input-date}/index.scss +0 -0
  193. /package/{dist/components/Input/InputDateRange → src/components/input/input-date-range}/index.scss +0 -0
  194. /package/{dist/components/Input/InputDateTime → src/components/input/input-date-time}/index.scss +0 -0
  195. /package/{dist/components/Input/InputNumber → src/components/input/input-number}/index.scss +0 -0
  196. /package/{dist/components/Input/InputPassword → src/components/input/input-password}/index.scss +0 -0
  197. /package/{dist/components/Input/InputRadio → src/components/input/input-radio}/index.scss +0 -0
  198. /package/{dist/components/Input/InputTextarea → src/components/input/input-textarea}/index.scss +0 -0
  199. /package/{dist/components/Menu → src/components/menu}/index.scss +0 -0
@@ -1,83 +0,0 @@
1
- // Lib
2
- import React, { useContext, useEffect, useRef } from 'react';
3
- //Images
4
- import closedSVG from '../assets/closed.svg';
5
- // Include in project
6
- import './index.scss';
7
- import Blackdrop from '../Blackdrop';
8
- import { DBuiContext } from '../context';
9
- var Modal = function (_a) {
10
- var children = _a.children, open = _a.open, onClose = _a.onClose, id = _a.id;
11
- var _b = useContext(DBuiContext), openModalCount = _b.openModalCount, setOpenModalCount = _b.setOpenModalCount;
12
- var setModalIncress = function () { return setOpenModalCount === null || setOpenModalCount === void 0 ? void 0 : setOpenModalCount(function (prev) { return prev + 1; }); };
13
- var setModalDecress = function () { return setOpenModalCount === null || setOpenModalCount === void 0 ? void 0 : setOpenModalCount(function (prev) { return prev - 1; }); };
14
- var setModalZero = function () { return setOpenModalCount === null || setOpenModalCount === void 0 ? void 0 : setOpenModalCount(0); };
15
- var modalRef = useRef(null);
16
- // whitelist for portal UI
17
- var WHITELIST_CLASSES = [
18
- 'DBui-wrapperMenuItem',
19
- 'DBui-inputDateWrapperCalendar',
20
- 'DBui-inputDateRangeRowMonthYearSelected',
21
- 'DBui-inputDateTimeWrapperCalendar',
22
- ];
23
- useEffect(function () {
24
- // Update the global counter and adjust the overflow style
25
- if (open) {
26
- setModalIncress();
27
- document.body.style.overflow = 'hidden';
28
- }
29
- else {
30
- if (openModalCount <= 0) {
31
- setModalZero();
32
- document.body.style.overflow = 'visible';
33
- }
34
- else {
35
- setModalDecress();
36
- }
37
- }
38
- return function () {
39
- if (openModalCount === 0) {
40
- document.body.style.overflow = 'visible';
41
- }
42
- };
43
- }, [open]);
44
- useEffect(function () {
45
- var modalElements = document.querySelectorAll('.DBui-modalBase');
46
- var modalArray = Array.from(modalElements);
47
- var showModals = modalArray.filter(function (modal) { return modal.getAttribute('data-hidden') === 'false'; });
48
- var topModal = showModals[showModals.length - 1];
49
- if ((topModal === null || topModal === void 0 ? void 0 : topModal.getAttribute('id')) !== id)
50
- return;
51
- // ---------- ESC CLOSE ----------
52
- function handleKeydown(event) {
53
- if (event.key === 'Escape' || event.keyCode === 27) {
54
- onClose();
55
- }
56
- }
57
- // ---------- CLICK OUTSIDE CLOSE ----------
58
- function handleClickOutside(e) {
59
- var _a;
60
- var target = e.target;
61
- // ถ้า click ใน modal → ไม่ปิด
62
- if ((_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.contains(target))
63
- return;
64
- // ถ้า click ใน whitelist (menu, dropdown, select panel)
65
- var isInWhitelist = WHITELIST_CLASSES.some(function (cls) { return target.closest('.' + cls); });
66
- if (isInWhitelist)
67
- return;
68
- onClose();
69
- }
70
- document.addEventListener('keydown', handleKeydown);
71
- document.addEventListener('mousedown', handleClickOutside);
72
- return function () {
73
- document.removeEventListener('keydown', handleKeydown);
74
- document.removeEventListener('mousedown', handleClickOutside);
75
- };
76
- }, [openModalCount]);
77
- return (React.createElement(Blackdrop, { open: open },
78
- React.createElement("div", { className: "DBui-modalBase DBui-modalContent", "data-hidden": !open, ref: modalRef, id: id },
79
- React.createElement("img", { src: closedSVG, alt: "", className: "DBui-close", onClick: onClose }),
80
- React.createElement("div", null, children))));
81
- };
82
- export default Modal;
83
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,MAAM;AACN,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE5D,QAAQ;AACR,OAAO,SAAS,MAAM,sBAAsB,CAAA;AAE5C,qBAAqB;AACrB,OAAO,cAAc,CAAA;AACrB,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAGxC,IAAM,KAAK,GAAyB,UAAC,EAA+B;QAA7B,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,EAAE,QAAA;IAC1D,IAAA,KAAwC,UAAU,CAAC,WAAW,CAAC,EAA7D,cAAc,oBAAA,EAAE,iBAAiB,uBAA4B,CAAA;IACrE,IAAM,eAAe,GAAG,cAAM,OAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,UAAC,IAAI,IAAK,OAAA,IAAI,GAAG,CAAC,EAAR,CAAQ,CAAC,EAAvC,CAAuC,CAAA;IACrE,IAAM,eAAe,GAAG,cAAM,OAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,UAA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AE,EAAE;YACzF,6BAAK,GAAG,EAAE,SAAS,EAAE,GAAG,EAAC,EAAE,EAAC,SAAS,EAAC,YAAY,EAAC,OAAO,EAAE,OAAO,GAAI;YACvE,iCAAM,QAAQ,CAAO,CACjB,CACI,CACb,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export type PropsModal = {
3
- children: JSX.Element | JSX.Element[];
4
- open: boolean;
5
- onClose: () => void;
6
- id: string;
7
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.type.js","sourceRoot":"","sources":["../../../src/components/Modal/index.type.tsx"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type TContext = {
3
- openModalCount: number;
4
- setOpenModalCount?: React.Dispatch<React.SetStateAction<number>>;
5
- };
6
- export declare const DBuiContext: React.Context<TContext>;
7
- export declare const DBuiProvider: (props: any) => React.JSX.Element;
8
- export {};
@@ -1,12 +0,0 @@
1
- import React, { createContext, useState } from 'react';
2
- export var DBuiContext = createContext({
3
- openModalCount: 0
4
- });
5
- export var DBuiProvider = function (props) {
6
- var _a = useState(0), openModalCount = _a[0], setOpenModalCount = _a[1];
7
- return (React.createElement(DBuiContext.Provider, { value: {
8
- openModalCount: openModalCount,
9
- setOpenModalCount: setOpenModalCount
10
- } }, props.children));
11
- };
12
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/components/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAOtD,MAAM,CAAC,IAAM,WAAW,GAAG,aAAa,CAAW;IACjD,cAAc,EAAE,CAAC;CAClB,CAAC,CAAA;AACF,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAU;IAC/B,IAAA,KAAsC,QAAQ,CAAC,CAAC,CAAC,EAAhD,cAAc,QAAA,EAAE,iBAAiB,QAAe,CAAA;IAEvD,OAAO,CACL,oBAAC,WAAW,CAAC,QAAQ,IACnB,KAAK,EAAE;YACL,cAAc,gBAAA;YACd,iBAAiB,mBAAA;SAClB,IAEA,KAAK,CAAC,QAAQ,CACM,CACxB,CAAA;AACH,CAAC,CAAA"}
@@ -1,41 +0,0 @@
1
- export { default as Button } from './Button';
2
- export type { PropsButton } from './Button/index.type';
3
- export { default as Blackdrop } from './Blackdrop';
4
- export type { PropsBlackdrop } from './Blackdrop/index.type';
5
- export { default as Chip } from './Chip';
6
- export type { PropsChip } from './Chip/index.type';
7
- export { default as Divider } from './Divider';
8
- export { default as Menu } from './Menu';
9
- export type { PropsMenu } from './Menu/index.type';
10
- export { default as Modal } from './Modal';
11
- export type { PropsModal } from './Modal/index.type';
12
- export { default as Input } from './Input/InputBasic';
13
- export type { PropsInputBasic as PropsInput } from './Input/InputBasic/index.type';
14
- export { default as InputNumber } from './Input/InputNumber';
15
- export type { PropsInputNumber } from './Input/InputNumber/index.type';
16
- export { default as InputDate } from './Input/InputDate';
17
- export type { PropsInputDate } from './Input/InputDate/index.type';
18
- export { default as InputDateRange } from './Input/InputDateRange';
19
- export type { PropsInputDateRange } from './Input/InputDateRange/index.type';
20
- export { default as InputDateTime } from './Input/InputDateTime';
21
- export type { PropsInputDateTime } from './Input/InputDateTime/index.type';
22
- export { default as InputPassword } from './Input/InputPassword';
23
- export type { PropsInputPassword } from './Input/InputPassword/index.type';
24
- export { default as InputRadio } from './Input/InputRadio';
25
- export type { PropsInputRadio } from './Input/InputRadio/index.type';
26
- export { default as InputCheckbox } from './Input/InputCheckbox';
27
- export type { PropsInputCheckbox } from './Input/InputCheckbox/index.type';
28
- export { default as InputTextarea } from './Input/InputTextarea';
29
- export type { PropsInputTextarea } from './Input/InputTextarea/index.type';
30
- export { default as InputSelect } from './Input/InputSelect';
31
- export type { PropsInputSelect } from './Input/InputSelect/index.type';
32
- export { default as InputAutoComplete } from './Input/InputAutoComplete';
33
- export type { PropsInputAutoComplete } from './Input/InputAutoComplete/index.type';
34
- export { default as InputNonContextSwitch } from './InputNonContext/InputSwitch';
35
- export type { PropsInputNonContextSwitch } from './InputNonContext/InputSwitch/index.type';
36
- export type TValueOption = string | number;
37
- export type TOption = {
38
- label: string;
39
- value: TValueOption;
40
- };
41
- export { DBuiContext, DBuiProvider } from './context';
@@ -1,21 +0,0 @@
1
- export { default as Button } from './Button';
2
- export { default as Blackdrop } from './Blackdrop'; // Need variable --z-index-backdrop
3
- export { default as Chip } from './Chip';
4
- export { default as Divider } from './Divider';
5
- export { default as Menu } from './Menu'; // Need variable --z-index-menu
6
- export { default as Modal } from './Modal'; // Need variable --z-index-normale
7
- export { default as Input } from './Input/InputBasic';
8
- export { default as InputNumber } from './Input/InputNumber';
9
- export { default as InputDate } from './Input/InputDate';
10
- export { default as InputDateRange } from './Input/InputDateRange';
11
- export { default as InputDateTime } from './Input/InputDateTime';
12
- export { default as InputPassword } from './Input/InputPassword';
13
- export { default as InputRadio } from './Input/InputRadio';
14
- export { default as InputCheckbox } from './Input/InputCheckbox';
15
- export { default as InputTextarea } from './Input/InputTextarea';
16
- export { default as InputSelect } from './Input/InputSelect';
17
- export { default as InputAutoComplete } from './Input/InputAutoComplete';
18
- export { default as InputNonContextSwitch } from './InputNonContext/InputSwitch';
19
- // Context
20
- export { DBuiContext, DBuiProvider } from './context';
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAG5C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA,CAAC,mCAAmC;AAGtF,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AAGxC,OAAO,E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