@datability/8ui 1.1.0 → 1.1.2

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 (128) hide show
  1. package/dist/index.css +1 -0
  2. package/dist/index.es.js +1853 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.umd.js +8 -0
  5. package/dist/index.umd.js.map +1 -0
  6. package/dist/types/App.d.ts +2 -0
  7. package/dist/types/components/blackdrop/index.d.ts +4 -0
  8. package/dist/types/components/blackdrop/index.type.d.ts +6 -0
  9. package/dist/types/components/button/index.d.ts +4 -0
  10. package/dist/types/components/button/index.type.d.ts +12 -0
  11. package/dist/types/components/chip/index.d.ts +4 -0
  12. package/dist/types/components/chip/index.type.d.ts +9 -0
  13. package/dist/types/components/context.d.ts +8 -0
  14. package/dist/types/components/divider/index.d.ts +3 -0
  15. package/dist/types/components/index.d.ts +41 -0
  16. package/dist/types/components/input/input-auto-complete/index.d.ts +4 -0
  17. package/dist/types/components/input/input-auto-complete/index.type.d.ts +14 -0
  18. package/dist/types/components/input/input-base/index.d.ts +4 -0
  19. package/dist/types/components/input/input-base/index.type.d.ts +11 -0
  20. package/dist/types/components/input/input-basic/index.d.ts +4 -0
  21. package/dist/types/components/input/input-basic/index.type.d.ts +10 -0
  22. package/dist/types/components/input/input-checkbox/index.d.ts +4 -0
  23. package/dist/types/components/input/input-checkbox/index.type.d.ts +13 -0
  24. package/dist/types/components/input/input-date/index.d.ts +22 -0
  25. package/dist/types/components/input/input-date/index.type.d.ts +13 -0
  26. package/dist/types/components/input/input-date-range/index.d.ts +4 -0
  27. package/dist/types/components/input/input-date-range/index.type.d.ts +13 -0
  28. package/dist/types/components/input/input-date-time/index.d.ts +4 -0
  29. package/dist/types/components/input/input-date-time/index.type.d.ts +13 -0
  30. package/dist/types/components/input/input-number/index.d.ts +4 -0
  31. package/dist/types/components/input/input-number/index.type.d.ts +12 -0
  32. package/dist/types/components/input/input-password/index.d.ts +4 -0
  33. package/dist/types/components/input/input-password/index.type.d.ts +10 -0
  34. package/dist/types/components/input/input-radio/index.d.ts +4 -0
  35. package/dist/types/components/input/input-radio/index.type.d.ts +14 -0
  36. package/dist/types/components/input/input-select/index.d.ts +4 -0
  37. package/dist/types/components/input/input-select/index.type.d.ts +16 -0
  38. package/dist/types/components/input/input-switch/index.d.ts +4 -0
  39. package/dist/types/components/input/input-switch/index.type.d.ts +6 -0
  40. package/dist/types/components/input/input-textarea/index.d.ts +4 -0
  41. package/dist/types/components/input/input-textarea/index.type.d.ts +12 -0
  42. package/dist/types/components/menu/index.d.ts +4 -0
  43. package/dist/types/components/menu/index.type.d.ts +11 -0
  44. package/dist/types/components/modal/index.d.ts +4 -0
  45. package/dist/types/components/modal/index.type.d.ts +7 -0
  46. package/dist/types/index.d.ts +41 -0
  47. package/dist/types/main.d.ts +1 -0
  48. package/package.json +5 -1
  49. package/.prettierrc +0 -8
  50. package/.vscode/extensions.json +0 -6
  51. package/declaration.d.ts +0 -10
  52. package/docker-compose.yml +0 -20
  53. package/eslint.config.js +0 -23
  54. package/index.html +0 -13
  55. package/src/App.tsx +0 -370
  56. package/src/components/blackdrop/index.tsx +0 -18
  57. package/src/components/blackdrop/index.type.ts +0 -7
  58. package/src/components/button/index.tsx +0 -44
  59. package/src/components/button/index.type.ts +0 -13
  60. package/src/components/chip/index.tsx +0 -39
  61. package/src/components/chip/index.type.ts +0 -12
  62. package/src/components/context.tsx +0 -26
  63. package/src/components/divider/index.tsx +0 -13
  64. package/src/components/index.ts +0 -62
  65. package/src/components/input/input-auto-complete/index.tsx +0 -140
  66. package/src/components/input/input-auto-complete/index.type.tsx +0 -13
  67. package/src/components/input/input-base/index.tsx +0 -39
  68. package/src/components/input/input-base/index.type.tsx +0 -13
  69. package/src/components/input/input-basic/index.tsx +0 -47
  70. package/src/components/input/input-basic/index.type.tsx +0 -8
  71. package/src/components/input/input-checkbox/index.tsx +0 -69
  72. package/src/components/input/input-checkbox/index.type.tsx +0 -11
  73. package/src/components/input/input-date/index.tsx +0 -354
  74. package/src/components/input/input-date/index.type.tsx +0 -11
  75. package/src/components/input/input-date-range/index.tsx +0 -284
  76. package/src/components/input/input-date-range/index.type.tsx +0 -11
  77. package/src/components/input/input-date-time/index.tsx +0 -367
  78. package/src/components/input/input-date-time/index.type.tsx +0 -11
  79. package/src/components/input/input-number/index.tsx +0 -118
  80. package/src/components/input/input-number/index.type.tsx +0 -11
  81. package/src/components/input/input-password/index.tsx +0 -60
  82. package/src/components/input/input-password/index.type.tsx +0 -8
  83. package/src/components/input/input-radio/index.tsx +0 -72
  84. package/src/components/input/input-radio/index.type.tsx +0 -12
  85. package/src/components/input/input-select/index.tsx +0 -113
  86. package/src/components/input/input-select/index.type.tsx +0 -15
  87. package/src/components/input/input-switch/index.tsx +0 -44
  88. package/src/components/input/input-switch/index.type.tsx +0 -4
  89. package/src/components/input/input-textarea/index.tsx +0 -48
  90. package/src/components/input/input-textarea/index.type.tsx +0 -10
  91. package/src/components/menu/index.tsx +0 -136
  92. package/src/components/menu/index.type.ts +0 -8
  93. package/src/components/modal/index.tsx +0 -99
  94. package/src/components/modal/index.type.tsx +0 -8
  95. package/src/index.scss +0 -44
  96. package/src/index.ts +0 -62
  97. package/src/logoDownload.svg +0 -3
  98. package/src/main.tsx +0 -9
  99. package/tsconfig.app.json +0 -28
  100. package/tsconfig.json +0 -42
  101. package/tsconfig.node.json +0 -29
  102. package/vite.config.d.ts +0 -2
  103. package/vite.config.ts +0 -35
  104. /package/{src → dist}/components/assets/closed.svg +0 -0
  105. /package/{src → dist}/components/assets/expand-arrow.svg +0 -0
  106. /package/{src → dist}/components/assets/visibility-off.svg +0 -0
  107. /package/{src → dist}/components/assets/visibility.svg +0 -0
  108. /package/{src → dist}/components/blackdrop/index.scss +0 -0
  109. /package/{src → dist}/components/button/index.scss +0 -0
  110. /package/{src → dist}/components/chip/index.scss +0 -0
  111. /package/{src → dist}/components/divider/index.scss +0 -0
  112. /package/{src → dist}/components/input/extend.scss +0 -0
  113. /package/{src → dist}/components/input/input-auto-complete/index.scss +0 -0
  114. /package/{src → dist}/components/input/input-base/index.scss +0 -0
  115. /package/{src → dist}/components/input/input-basic/index.scss +0 -0
  116. /package/{src → dist}/components/input/input-checkbox/index.scss +0 -0
  117. /package/{src → dist}/components/input/input-date/index.scss +0 -0
  118. /package/{src → dist}/components/input/input-date-range/index.scss +0 -0
  119. /package/{src → dist}/components/input/input-date-time/index.scss +0 -0
  120. /package/{src → dist}/components/input/input-number/index.scss +0 -0
  121. /package/{src → dist}/components/input/input-password/index.scss +0 -0
  122. /package/{src → dist}/components/input/input-radio/index.scss +0 -0
  123. /package/{src → dist}/components/input/input-select/index.scss +0 -0
  124. /package/{src → dist}/components/input/input-switch/index.scss +0 -0
  125. /package/{src → dist}/components/input/input-textarea/index.scss +0 -0
  126. /package/{src → dist}/components/menu/index.scss +0 -0
  127. /package/{src → dist}/components/modal/index.scss +0 -0
  128. /package/{public → dist}/vite.svg +0 -0
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsBlackdrop } from './index.type';
3
+ declare const Blackdrop: React.FC<PropsBlackdrop>;
4
+ export default Blackdrop;
@@ -0,0 +1,6 @@
1
+ import { JSX } from 'react';
2
+ export type PropsBlackdrop = {
3
+ children: JSX.Element | JSX.Element[];
4
+ open: boolean;
5
+ onClose?: () => void;
6
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsButton } from './index.type';
3
+ declare const Button: React.FC<PropsButton>;
4
+ export default Button;
@@ -0,0 +1,12 @@
1
+ import { CSSProperties, ElementType } from 'react';
2
+ export type PropsButton = {
3
+ name?: string;
4
+ type?: "button" | "submit";
5
+ disabled?: boolean;
6
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
+ startIcon?: string | ElementType;
8
+ endIcon?: string | ElementType;
9
+ className?: string;
10
+ style?: CSSProperties;
11
+ isLoading?: boolean;
12
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsChip } from './index.type';
3
+ declare const Chip: React.FC<PropsChip>;
4
+ export default Chip;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, ElementType } from 'react';
2
+ export type PropsChip = {
3
+ label: string;
4
+ onDelete?: () => void;
5
+ onClick?: () => void;
6
+ icon?: string | ElementType;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ };
@@ -0,0 +1,8 @@
1
+ import { default as 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) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Divider: React.FC;
3
+ export default Divider;
@@ -0,0 +1,41 @@
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/input-basic';
13
+ export type { PropsInputBasic as PropsInput } from './input/input-basic/index.type';
14
+ export { default as InputNumber } from './input/input-number';
15
+ export type { PropsInputNumber } from './input/input-number/index.type';
16
+ export { default as InputDate } from './input/input-date';
17
+ export type { PropsInputDate } from './input/input-date/index.type';
18
+ export { default as InputDateRange } from './input/input-date-range';
19
+ export type { PropsInputDateRange } from './input/input-date-range/index.type';
20
+ export { default as InputDateTime } from './input/input-date-time';
21
+ export type { PropsInputDateTime } from './input/input-date-time/index.type';
22
+ export { default as InputPassword } from './input/input-password';
23
+ export type { PropsInputPassword } from './input/input-password/index.type';
24
+ export { default as InputRadio } from './input/input-radio';
25
+ export type { PropsInputRadio } from './input/input-radio/index.type';
26
+ export { default as InputCheckbox } from './input/input-checkbox';
27
+ export type { PropsInputCheckbox } from './input/input-checkbox/index.type';
28
+ export { default as InputTextarea } from './input/input-textarea';
29
+ export type { PropsInputTextarea } from './input/input-textarea/index.type';
30
+ export { default as InputSelect } from './input/input-select';
31
+ export type { PropsInputSelect } from './input/input-select/index.type';
32
+ export { default as InputAutoComplete } from './input/input-auto-complete';
33
+ export type { PropsInputAutoComplete } from './input/input-auto-complete/index.type';
34
+ export { default as InputSwitch } from './input/input-switch';
35
+ export type { PropsInputSwitch } from './input/input-switch/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';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputAutoComplete } from './index.type';
3
+ declare const InputAutoComplete: React.FC<PropsInputAutoComplete>;
4
+ export default InputAutoComplete;
@@ -0,0 +1,14 @@
1
+ import { Control } from 'react-hook-form';
2
+ import { TOption } from '../..';
3
+ export type PropsInputAutoComplete = {
4
+ control: Control<any>;
5
+ name: string;
6
+ label?: string;
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ require?: boolean;
10
+ fullWidth?: boolean;
11
+ options: TOption[];
12
+ isMultiple?: boolean;
13
+ isInModal?: boolean;
14
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputBase } from './index.type';
3
+ declare const InputBase: React.FC<PropsInputBase>;
4
+ export default InputBase;
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { FieldError, FieldErrorsImpl, Merge } from 'react-hook-form';
3
+ export type PropsInputBase = {
4
+ name: string;
5
+ label?: string;
6
+ require?: boolean;
7
+ fullWidth?: boolean;
8
+ children: JSX.Element | JSX.Element[];
9
+ isInvalid: boolean;
10
+ errorMessage: string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
11
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputBasic } from './index.type';
3
+ declare const Input: React.FC<PropsInputBasic>;
4
+ export default Input;
@@ -0,0 +1,10 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputBasic = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputCheckbox } from './index.type';
3
+ declare const InputCheckbox: React.FC<PropsInputCheckbox>;
4
+ export default InputCheckbox;
@@ -0,0 +1,13 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputCheckbox = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ disabled?: boolean;
7
+ require?: boolean;
8
+ fullWidth?: boolean;
9
+ options: {
10
+ label: string;
11
+ value: string | number;
12
+ }[];
13
+ };
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputDate } from './index.type';
3
+ declare const InputDate: React.FC<PropsInputDate>;
4
+ export default InputDate;
5
+ export declare function generateYearOptions(minYear?: number, maxYear?: number): {
6
+ label: string;
7
+ value: number;
8
+ }[];
9
+ export declare function generateMonthOptions(): {
10
+ label: string;
11
+ value: string;
12
+ }[];
13
+ export declare function updateYearInDateString(dateStr: string, newYear: number): string;
14
+ export declare function updateMonthInDateString(dateStr: string, newMonth: string): string;
15
+ export declare function getYearInDateString(dateStr: string): number;
16
+ export declare function getMonthInDateString(dateStr: string): string;
17
+ export declare function getDayInDateString(dateStr: string): string;
18
+ export declare function getDaysInMonthWithWeekday(year: number, month: string): {
19
+ date: string;
20
+ weekday: string;
21
+ }[];
22
+ export declare function getDateNow(): string;
@@ -0,0 +1,13 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputDate = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ isHideClearIcon?: boolean;
11
+ minYear?: number;
12
+ maxYear?: number;
13
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputDateRange } from './index.type';
3
+ declare const InputDateRange: React.FC<PropsInputDateRange>;
4
+ export default InputDateRange;
@@ -0,0 +1,13 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputDateRange = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ isHideClearIcon?: boolean;
11
+ minYear?: number;
12
+ maxYear?: number;
13
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputDateTime } from './index.type';
3
+ declare const InputDateTime: React.FC<PropsInputDateTime>;
4
+ export default InputDateTime;
@@ -0,0 +1,13 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputDateTime = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ isHideClearIcon?: boolean;
11
+ minYear?: number;
12
+ maxYear?: number;
13
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputNumber } from './index.type';
3
+ declare const InputNumber: React.FC<PropsInputNumber>;
4
+ export default InputNumber;
@@ -0,0 +1,12 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputNumber = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ isPhoneNumber?: boolean;
11
+ isAvailableMinus?: boolean;
12
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputPassword } from './index.type';
3
+ declare const InputPassword: React.FC<PropsInputPassword>;
4
+ export default InputPassword;
@@ -0,0 +1,10 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputPassword = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputRadio } from './index.type';
3
+ declare const InputRadio: React.FC<PropsInputRadio>;
4
+ export default InputRadio;
@@ -0,0 +1,14 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputRadio = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ disabled?: boolean;
7
+ require?: boolean;
8
+ fullWidth?: boolean;
9
+ isVertical?: boolean;
10
+ options: {
11
+ label: string;
12
+ value: string | number;
13
+ }[];
14
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputSelect } from './index.type';
3
+ declare const InputSelect: React.FC<PropsInputSelect>;
4
+ export default InputSelect;
@@ -0,0 +1,16 @@
1
+ import { Control } from 'react-hook-form';
2
+ import { TOption, TValueOption } from '../..';
3
+ export type PropsInputSelect = {
4
+ control: Control<any>;
5
+ name: string;
6
+ label?: string;
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ require?: boolean;
10
+ fullWidth?: boolean;
11
+ options: TOption[];
12
+ onChange?: (value: TValueOption | null) => void;
13
+ value?: string;
14
+ isHideClearIcon?: boolean;
15
+ isInModal?: boolean;
16
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputSwitch } from './index.type';
3
+ declare const InputSwitch: React.FC<PropsInputSwitch>;
4
+ export default InputSwitch;
@@ -0,0 +1,6 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputSwitch = {
3
+ control: Control<any>;
4
+ name: string;
5
+ disabled?: boolean;
6
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsInputTextarea } from './index.type';
3
+ declare const InputTextarea: React.FC<PropsInputTextarea>;
4
+ export default InputTextarea;
@@ -0,0 +1,12 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type PropsInputTextarea = {
3
+ control: Control<any>;
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ require?: boolean;
9
+ fullWidth?: boolean;
10
+ rows?: number;
11
+ cols?: number;
12
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsMenu } from './index.type';
3
+ declare const Menu: React.FC<PropsMenu>;
4
+ export default Menu;
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ export type PropsMenu = {
3
+ trigger: (props: {
4
+ isOpen: boolean;
5
+ }) => JSX.Element;
6
+ children: (args: {
7
+ close: () => void;
8
+ }) => JSX.Element | JSX.Element[];
9
+ disabled?: boolean;
10
+ isInModal?: boolean;
11
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsModal } from './index.type';
3
+ declare const Modal: React.FC<PropsModal>;
4
+ export default Modal;
@@ -0,0 +1,7 @@
1
+ import { JSX } from 'react';
2
+ export type PropsModal = {
3
+ children: JSX.Element | JSX.Element[];
4
+ open: boolean;
5
+ onClose: () => void;
6
+ id: string;
7
+ };
@@ -0,0 +1,41 @@
1
+ export { default as Button } from './components/button';
2
+ export type { PropsButton } from './components/button/index.type';
3
+ export { default as Blackdrop } from './components/blackdrop';
4
+ export type { PropsBlackdrop } from './components/blackdrop/index.type';
5
+ export { default as Chip } from './components/chip';
6
+ export type { PropsChip } from './components/chip/index.type';
7
+ export { default as Divider } from './components/divider';
8
+ export { default as Menu } from './components/menu';
9
+ export type { PropsMenu } from './components/menu/index.type';
10
+ export { default as Modal } from './components/modal';
11
+ export type { PropsModal } from './components/modal/index.type';
12
+ export { default as Input } from './components/input/input-basic';
13
+ export type { PropsInputBasic as PropsInput } from './components/input/input-basic/index.type';
14
+ export { default as InputNumber } from './components/input/input-number';
15
+ export type { PropsInputNumber } from './components/input/input-number/index.type';
16
+ export { default as InputDate } from './components/input/input-date';
17
+ export type { PropsInputDate } from './components/input/input-date/index.type';
18
+ export { default as InputDateRange } from './components/input/input-date-range';
19
+ export type { PropsInputDateRange } from './components/input/input-date-range/index.type';
20
+ export { default as InputDateTime } from './components/input/input-date-time';
21
+ export type { PropsInputDateTime } from './components/input/input-date-time/index.type';
22
+ export { default as InputPassword } from './components/input/input-password';
23
+ export type { PropsInputPassword } from './components/input/input-password/index.type';
24
+ export { default as InputRadio } from './components/input/input-radio';
25
+ export type { PropsInputRadio } from './components/input/input-radio/index.type';
26
+ export { default as InputCheckbox } from './components/input/input-checkbox';
27
+ export type { PropsInputCheckbox } from './components/input/input-checkbox/index.type';
28
+ export { default as InputTextarea } from './components/input/input-textarea';
29
+ export type { PropsInputTextarea } from './components/input/input-textarea/index.type';
30
+ export { default as InputSelect } from './components/input/input-select';
31
+ export type { PropsInputSelect } from './components/input/input-select/index.type';
32
+ export { default as InputAutoComplete } from './components/input/input-auto-complete';
33
+ export type { PropsInputAutoComplete } from './components/input/input-auto-complete/index.type';
34
+ export { default as InputSwitch } from './components/input/input-switch';
35
+ export type { PropsInputSwitch } from './components/input/input-switch/index.type';
36
+ export type TValueOption = string | number;
37
+ export type TOption = {
38
+ label: string;
39
+ value: TValueOption;
40
+ };
41
+ export { DBuiContext, DBuiProvider } from './components/context';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datability/8ui",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -11,6 +11,10 @@
11
11
  "./dist/index.css": "./dist/index.css",
12
12
  "./style.css": "./dist/index.css"
13
13
  },
14
+ "style": "./dist/index.css",
15
+ "files": [
16
+ "dist"
17
+ ],
14
18
  "scripts": {
15
19
  "dev": "vite",
16
20
  "build": "vite build && npm run cp-scss && npm run cp-scss-2 && npm run cp-svg",
package/.prettierrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "semi": false,
3
- "trailingComma": "all",
4
- "singleQuote": false,
5
- "printWidth": 120,
6
- "tabWidth": 2,
7
- "endOfLine": "auto"
8
- }
@@ -1,6 +0,0 @@
1
- {
2
- "recommendations": [
3
- "esbenp.prettier-vscode",
4
- "dbaeumer.vscode-eslint"
5
- ]
6
- }
package/declaration.d.ts DELETED
@@ -1,10 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
- declare module "*.scss" {
3
- const content: Record<string, string>
4
- export default content
5
- }
6
-
7
- declare module "*.svg" {
8
- const content: any
9
- export default content
10
- }
@@ -1,20 +0,0 @@
1
- services:
2
- frontend:
3
- container_name: npm-fe
4
- image: node:20
5
- volumes:
6
- - .:/workdir
7
- working_dir: /workdir
8
- ports:
9
- - 4000:3000
10
- # command: >
11
- # bash -c "
12
- # npm install &&
13
- # npm run dev
14
- # "
15
- command: >
16
- bash -c "
17
- npm install &&
18
- npm run build &&
19
- npm run preview
20
- "
package/eslint.config.js DELETED
@@ -1,23 +0,0 @@
1
- import js from '@eslint/js'
2
- import globals from 'globals'
3
- import reactHooks from 'eslint-plugin-react-hooks'
4
- import reactRefresh from 'eslint-plugin-react-refresh'
5
- import tseslint from 'typescript-eslint'
6
- import { defineConfig, globalIgnores } from 'eslint/config'
7
-
8
- export default defineConfig([
9
- globalIgnores(['dist']),
10
- {
11
- files: ['**/*.{ts,tsx}'],
12
- extends: [
13
- js.configs.recommended,
14
- tseslint.configs.recommended,
15
- reactHooks.configs.flat.recommended,
16
- reactRefresh.configs.vite,
17
- ],
18
- languageOptions: {
19
- ecmaVersion: 2020,
20
- globals: globals.browser,
21
- },
22
- },
23
- ])
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>8ui</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.tsx"></script>
12
- </body>
13
- </html>