1mpacto-react-ui 0.2.0-beta.20 → 0.2.0-beta.21

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 (44) hide show
  1. package/dist/assets/_colors.scss +40 -0
  2. package/dist/assets/_typography.scss +286 -0
  3. package/dist/assets/colors.css +20 -0
  4. package/dist/assets/core.css +1 -1
  5. package/dist/assets/fontfamily.css +1 -1
  6. package/dist/assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf +0 -0
  7. package/dist/assets/fonts/PlusJakartaSans-VariableFont_wght.ttf +0 -0
  8. package/dist/assets/style.css +1 -1
  9. package/dist/assets/typography.css +78 -0
  10. package/dist/index.cjs +104 -92
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.mjs +13719 -13002
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/package.json.d.ts +1 -1
  15. package/dist/src/components/Input/InputInnerLabel.d.ts +4 -0
  16. package/dist/src/components/Input/InputInnerLabel.stories.d.ts +31 -0
  17. package/dist/src/components/RadioCheckbox/RadioCheckbox.stories.d.ts +189 -7
  18. package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +2 -0
  19. package/dist/src/components/Textarea/TextareaInnerLabel.d.ts +4 -0
  20. package/dist/src/components/Textarea/TextareaInnerLabel.stories.d.ts +25 -0
  21. package/dist/src/components/TimeRange/TimeRange.d.ts +3 -0
  22. package/dist/src/components/TimeRange/TimeRange.stories.d.ts +19 -0
  23. package/dist/src/components/index.d.ts +7 -3
  24. package/dist/src/config/components/font.d.ts +6 -0
  25. package/dist/src/config/tailwind/typography.d.ts +1 -0
  26. package/dist/src/hooks/index.d.ts +5 -3
  27. package/dist/src/hooks/useCountdown.d.ts +6 -3
  28. package/dist/src/hooks/useOtpInput.d.ts +42 -0
  29. package/dist/src/interfaces/components/Badges/index.d.ts +2 -1
  30. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +3 -2
  31. package/dist/src/interfaces/components/Button/index.d.ts +2 -2
  32. package/dist/src/interfaces/components/Chips/index.d.ts +2 -1
  33. package/dist/src/interfaces/components/Input/index.d.ts +13 -0
  34. package/dist/src/interfaces/components/Popover/index.d.ts +3 -1
  35. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +3 -2
  36. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +2 -1
  37. package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +1 -1
  38. package/dist/src/interfaces/components/Sidebar/index.d.ts +1 -1
  39. package/dist/src/interfaces/components/Switch/index.d.ts +1 -1
  40. package/dist/src/interfaces/components/Table/index.d.ts +8 -1
  41. package/dist/src/interfaces/components/Tabs/index.d.ts +1 -1
  42. package/dist/src/interfaces/components/Textarea/index.d.ts +13 -0
  43. package/dist/src/interfaces/components/TimeRange/index.d.ts +28 -0
  44. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.2.0-beta.20",
4
+ "version": "0.2.0-beta.21",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { IInputInnerLabel } from '../../interfaces/components/Input';
3
+ declare const InputInnerLabel: React.ForwardRefExoticComponent<IInputInnerLabel & React.RefAttributes<HTMLInputElement>>;
4
+ export default InputInnerLabel;
@@ -0,0 +1,31 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').ForwardRefExoticComponent<import('../../interfaces/components/Input').IInputInnerLabel & import('react').RefAttributes<HTMLInputElement>>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {
10
+ className: {
11
+ type: "string";
12
+ };
13
+ classNameContainer: {
14
+ type: "string";
15
+ };
16
+ classNameLabelError: {
17
+ type: "string";
18
+ };
19
+ error: {
20
+ type: "string";
21
+ };
22
+ };
23
+ args: {
24
+ onChange: import('@vitest/spy').Mock<(...args: any[]) => any>;
25
+ value: string;
26
+ };
27
+ render: (args: import('../../interfaces/components/Input').IInputInnerLabel & import('react').RefAttributes<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
28
+ };
29
+ export default meta;
30
+ type Story = StoryObj<typeof meta>;
31
+ export declare const Default: Story;
@@ -7,26 +7,208 @@ declare const meta: {
7
7
  };
8
8
  tags: string[];
9
9
  argTypes: {
10
- className: {
11
- type: "string";
12
- };
13
10
  classNameContainer: {
14
- type: "string";
11
+ control: "text";
12
+ description: string;
13
+ table: {
14
+ category: string;
15
+ type: {
16
+ summary: string;
17
+ };
18
+ defaultValue: {
19
+ summary: string;
20
+ };
21
+ };
15
22
  };
16
23
  classNameLabel: {
17
- type: "string";
24
+ control: "text";
25
+ description: string;
26
+ table: {
27
+ category: string;
28
+ type: {
29
+ summary: string;
30
+ };
31
+ defaultValue: {
32
+ summary: string;
33
+ };
34
+ };
18
35
  };
19
36
  classNameCheckedIcon: {
20
- type: "string";
37
+ control: "text";
38
+ description: string;
39
+ table: {
40
+ category: string;
41
+ type: {
42
+ summary: string;
43
+ };
44
+ defaultValue: {
45
+ summary: string;
46
+ };
47
+ };
21
48
  };
22
49
  classNameContainerCheckedIcon: {
23
- type: "string";
50
+ control: "text";
51
+ description: string;
52
+ table: {
53
+ category: string;
54
+ type: {
55
+ summary: string;
56
+ };
57
+ defaultValue: {
58
+ summary: string;
59
+ };
60
+ };
61
+ };
62
+ sizeInput: {
63
+ control: {
64
+ type: "select";
65
+ };
66
+ options: string[];
67
+ description: string;
68
+ table: {
69
+ category: string;
70
+ type: {
71
+ summary: string;
72
+ };
73
+ defaultValue: {
74
+ summary: string;
75
+ };
76
+ };
77
+ };
78
+ variants: {
79
+ control: {
80
+ type: "select";
81
+ };
82
+ options: string[];
83
+ description: string;
84
+ table: {
85
+ category: string;
86
+ type: {
87
+ summary: string;
88
+ };
89
+ defaultValue: {
90
+ summary: string;
91
+ };
92
+ };
93
+ };
94
+ variantDisableds: {
95
+ control: {
96
+ type: "select";
97
+ };
98
+ options: string[];
99
+ description: string;
100
+ table: {
101
+ category: string;
102
+ type: {
103
+ summary: string;
104
+ };
105
+ };
106
+ };
107
+ borderRadius: {
108
+ control: "text";
109
+ description: string;
110
+ table: {
111
+ category: string;
112
+ type: {
113
+ summary: string;
114
+ };
115
+ defaultValue: {
116
+ summary: string;
117
+ };
118
+ };
24
119
  };
25
120
  checkedIcon: {
121
+ control: {
122
+ disable: true;
123
+ };
124
+ description: string;
125
+ table: {
126
+ category: string;
127
+ type: {
128
+ summary: string;
129
+ };
130
+ };
131
+ };
132
+ type: {
133
+ control: {
134
+ type: "radio";
135
+ };
136
+ options: string[];
137
+ description: string;
138
+ table: {
139
+ category: string;
140
+ type: {
141
+ summary: string;
142
+ };
143
+ defaultValue: {
144
+ summary: string;
145
+ };
146
+ };
147
+ };
148
+ fonts: {
149
+ control: {
150
+ type: "select";
151
+ };
152
+ options: string[];
153
+ description: string;
154
+ table: {
155
+ category: string;
156
+ type: {
157
+ summary: string;
158
+ };
159
+ defaultValue: {
160
+ summary: string;
161
+ };
162
+ };
163
+ };
164
+ label: {
165
+ control: "text";
166
+ description: string;
167
+ table: {
168
+ category: string;
169
+ type: {
170
+ summary: string;
171
+ };
172
+ };
173
+ };
174
+ typography: {
175
+ control: "text";
176
+ description: string;
177
+ table: {
178
+ category: string;
179
+ type: {
180
+ summary: string;
181
+ };
182
+ defaultValue: {
183
+ summary: string;
184
+ };
185
+ };
186
+ };
187
+ disabled: {
26
188
  control: "boolean";
189
+ description: string;
190
+ table: {
191
+ category: string;
192
+ type: {
193
+ summary: string;
194
+ };
195
+ defaultValue: {
196
+ summary: string;
197
+ };
198
+ };
27
199
  };
28
200
  checked: {
29
201
  control: "boolean";
202
+ description: string;
203
+ table: {
204
+ category: string;
205
+ type: {
206
+ summary: string;
207
+ };
208
+ defaultValue: {
209
+ summary: string;
210
+ };
211
+ };
30
212
  };
31
213
  };
32
214
  args: {
@@ -1,5 +1,7 @@
1
1
  import { StylesConfig } from 'react-select';
2
2
  export declare const styleSelectDropdownContainerLaba: StylesConfig;
3
3
  export declare const styleSelectDropdownContainerPayhere: StylesConfig;
4
+ export declare const styleSelectDropdownContainerBill: StylesConfig;
4
5
  export declare const styleSelectDropdownContainerNoSearchLaba: StylesConfig;
5
6
  export declare const styleSelectDropdownContainerNoSearchPayhere: StylesConfig;
7
+ export declare const styleSelectDropdownContainerNoSearchBill: StylesConfig;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ITextareaInnerLabel } from '../../interfaces/components/Textarea';
3
+ declare const TextareaInnerLabel: React.ForwardRefExoticComponent<ITextareaInnerLabel & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export default TextareaInnerLabel;
@@ -0,0 +1,25 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').ForwardRefExoticComponent<import('../../interfaces/components/Textarea').ITextareaInnerLabel & import('react').RefAttributes<HTMLTextAreaElement>>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {
10
+ className: {
11
+ type: "string";
12
+ };
13
+ error: {
14
+ type: "string";
15
+ };
16
+ };
17
+ args: {
18
+ onChange: import('@vitest/spy').Mock<(...args: any[]) => any>;
19
+ value: string;
20
+ };
21
+ render: (args: import('../../interfaces/components/Textarea').ITextareaInnerLabel & import('react').RefAttributes<HTMLTextAreaElement>) => import("react/jsx-runtime").JSX.Element;
22
+ };
23
+ export default meta;
24
+ type Story = StoryObj<typeof meta>;
25
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ import { ITimeRange } from '../../interfaces/components/TimeRange';
2
+ declare const TimeRange: (props: ITimeRange) => import("react/jsx-runtime").JSX.Element;
3
+ export default TimeRange;
@@ -0,0 +1,19 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { ITimeRange } from '../../interfaces/components/TimeRange';
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: ITimeRange) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ argTypes: {
11
+ className: {
12
+ type: "string";
13
+ };
14
+ };
15
+ render: (args: ITimeRange) => import("react/jsx-runtime").JSX.Element;
16
+ };
17
+ export default meta;
18
+ type Story = StoryObj<typeof meta>;
19
+ export declare const Default: Story;
@@ -1,5 +1,4 @@
1
1
  import { ICollapse } from './../interfaces/components/Collapse';
2
- import { IMasonryLayout } from './../hooks/useMasonry';
3
2
  import { IChips } from './../interfaces/components/Chips';
4
3
  import { IDatePicker } from './../interfaces/components/DatePicker';
5
4
  import { default as TPublish } from './TPublish/TPublish';
@@ -24,6 +23,7 @@ import { default as CalendarRange } from './Calendar/CalendarRange';
24
23
  import { default as DatePicker } from './DatePicker/DatePicker';
25
24
  import { default as DateRangePicker } from './DatePicker/DateRangePicker';
26
25
  import { default as FilterDate } from './DatePicker/FilterDate';
26
+ import { TKeyLocale } from '../interfaces/components/Calendar';
27
27
  import { IFilterDateButtonList, TKeyFilterDateButtonListType } from '../interfaces/components/DatePicker';
28
28
  import { default as Switch } from './Switch/Switch';
29
29
  import { default as ButtonIcon } from './ButtonIcon/ButtonIcon';
@@ -74,8 +74,12 @@ import { default as StepIndicator } from './Step/StepIndicator';
74
74
  import { default as TextEditor } from './TextEditor/TextEditor';
75
75
  import { ITextEditorProps } from '../interfaces/components/TextEditor';
76
76
  import { default as CollapseV2 } from './Collapse/CollapseV2';
77
+ import { default as TimeRange } from './TimeRange/TimeRange';
78
+ import { ITimeRangeListTime, ITimeRange, TTimeRangeValue } from '../interfaces/components/TimeRange';
79
+ import { default as TextareaInnerLabel } from './Textarea/TextareaInnerLabel';
80
+ import { default as InputInnerLabel } from './Input/InputInnerLabel';
77
81
  import * as utilTable from '@tanstack/react-table';
78
82
  import type * as SelectDropdownContainerType from 'react-select';
79
83
  import type * as FilterContainerType from '../interfaces/components/FilterContainer';
80
- export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, CollapseV2, TableSubComponent, };
81
- export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, TTypeEventTabs, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IMasonryLayout, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, ITableColumnBreakpoint, TTableRenderSubComponent, TTableHandlerRowClick, };
84
+ export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, CollapseV2, TableSubComponent, TimeRange, TextareaInnerLabel, InputInnerLabel, };
85
+ export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, TTypeEventTabs, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, ITableColumnBreakpoint, TTableRenderSubComponent, TTableHandlerRowClick, TKeyLocale, ITimeRangeListTime, ITimeRange, TTimeRangeValue, };
@@ -0,0 +1,6 @@
1
+ export type TFont = 'lato' | 'inter' | 'pJakartaSans';
2
+ export declare const configFont: {
3
+ lato: string;
4
+ inter: string;
5
+ pJakartaSans: string;
6
+ };
@@ -1,6 +1,7 @@
1
1
  export type ITypography = Record<string, [string, Record<string, string | number>]>;
2
2
  export declare const configTypographyPayhere: ITypography;
3
3
  export declare const configTypographyLabaBisnis: ITypography;
4
+ export declare const configTypographyBillId: ITypography;
4
5
  declare const _default: {
5
6
  [x: string]: [string, Record<string, string | number>];
6
7
  };
@@ -1,10 +1,12 @@
1
1
  import { default as useElementOrWindowMediaQuery } from './useElementOrWindowMediaQuery';
2
- import { default as useCountdown } from './useCountdown';
2
+ import { default as useCountdown, IUseCountdownReturn, IUseCountdown } from './useCountdown';
3
3
  import { default as useAsyncDebounce } from './useAsyncDebounce';
4
4
  import { default as useCombinedResizeObserver } from './useCombinedResizeObserver';
5
5
  import { default as useStateRef } from './useStateRef';
6
6
  import { useMergeRefs } from './useMergeRefs';
7
7
  import { useDeepCompareEffect, useDeepCompareMemoize } from './useDeepCompareEffect';
8
8
  import { useEventListener } from './useEventListener';
9
- import { default as useMasonry } from './useMasonry';
10
- export { useElementOrWindowMediaQuery, useCountdown, useAsyncDebounce, useCombinedResizeObserver, useStateRef, useDeepCompareEffect, useDeepCompareMemoize, useMergeRefs, useEventListener, useMasonry, };
9
+ import { default as useMasonry, IMasonryLayout } from './useMasonry';
10
+ import { default as useOtpInput, IUseOtpInput, IUseOtpInputReturn } from './useOtpInput';
11
+ export { useElementOrWindowMediaQuery, useCountdown, useAsyncDebounce, useCombinedResizeObserver, useStateRef, useDeepCompareEffect, useDeepCompareMemoize, useMergeRefs, useEventListener, useMasonry, useOtpInput, };
12
+ export type { IUseOtpInput, IUseOtpInputReturn, IMasonryLayout, IUseCountdownReturn, IUseCountdown };
@@ -1,14 +1,17 @@
1
- declare const useCountdown: (options: {
1
+ export interface IUseCountdown {
2
2
  date: string;
3
3
  intervalMs: number;
4
4
  running: boolean;
5
5
  adjustTimesTime?: number;
6
6
  callbackDone?: () => void;
7
- }) => {
7
+ }
8
+ export interface IUseCountdownReturn {
8
9
  count: number;
10
+ isRunning: boolean;
9
11
  startCountdown: () => void;
10
12
  stopCountdown: () => void;
11
13
  resetCountdown: (value?: Date | number) => void;
12
14
  setCallbackDone: (val: () => void) => void;
13
- };
15
+ }
16
+ declare const useCountdown: (options: IUseCountdown) => IUseCountdownReturn;
14
17
  export default useCountdown;
@@ -0,0 +1,42 @@
1
+ import { default as React } from 'react';
2
+ export interface IUseOtpInput {
3
+ id?: string;
4
+ numInputs: number;
5
+ onComplete?: (otp: string) => void;
6
+ disableFocusOnEdit?: boolean;
7
+ blurOnComplete?: boolean;
8
+ disableOnComplete?: boolean;
9
+ }
10
+ export interface IInputProps {
11
+ id: string;
12
+ ref: (el: HTMLInputElement | null) => void;
13
+ value: string;
14
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
15
+ onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
16
+ onPaste: (e: React.ClipboardEvent<HTMLInputElement>) => void;
17
+ onFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
18
+ disabled: boolean;
19
+ type: 'text';
20
+ inputMode: 'numeric';
21
+ autoComplete: 'one-time-code';
22
+ 'aria-label': string;
23
+ }
24
+ export interface IInputData {
25
+ id: string;
26
+ ref: (el: HTMLInputElement | null) => void;
27
+ value: string;
28
+ disabled: boolean;
29
+ type: 'text';
30
+ inputMode: 'numeric';
31
+ isOtpFilled: boolean;
32
+ }
33
+ export interface IUseOtpInputReturn {
34
+ getInputProps: (index: number) => IInputProps;
35
+ getInputData: (index: number) => IInputData;
36
+ clearOtp: () => void;
37
+ otpValues: string[];
38
+ otpString: string;
39
+ isOtpComplete: boolean;
40
+ }
41
+ export declare const useOtpInput: ({ id, numInputs, onComplete, disableFocusOnEdit, blurOnComplete, disableOnComplete, }: IUseOtpInput) => IUseOtpInputReturn;
42
+ export default useOtpInput;
@@ -1,11 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IBorderRadius } from '../../../config/components/borderRadius';
3
3
  import { Itypography } from '../../../config/components/typography';
4
+ import { TFont } from '../../../config/components/font';
4
5
  export interface IBadges extends React.HTMLAttributes<HTMLSpanElement> {
5
6
  children: ReactNode | ReactNode[];
6
7
  className?: string | undefined;
7
8
  rounded?: IBorderRadius;
8
9
  variants?: 'filled-gray-600' | 'filled-green-600' | 'filled-green-50' | 'filled-blue-gray-50' | 'filled-red-500' | 'filled-blue-600' | 'filled-amber-800' | 'filled-pink-600' | 'filled-lime-700' | 'filled-lime-900-bg_lime-100' | 'filled-red-900' | 'filled-laba-green-10' | 'filled-cyan-800-bg_cyan-100' | 'ghost-gray-200' | 'ghost-green-100' | 'ghost-red-100' | 'ghost-blue-100' | 'ghost-amber-100' | 'ghost-laba-orange-01' | 'ghost-laba-green-01' | 'ghost-laba-green-02' | 'ghost-laba-blue-02' | 'ghost-laba-blue-01' | 'ghost-laba-grey-05' | 'ghost-laba-red-01' | 'outline-gray-600' | 'outline-green-600' | 'outline-red-500' | 'outline-blue-600' | 'outline-amber-800' | 'outline-laba-blue-01' | 'outline-laba-orange-06' | 'outline-laba-orange-06-bg_laba-orange-01' | 'outline-laba-red-06' | 'outline-laba-green-06';
9
- fonts?: 'lato' | 'inter';
10
+ fonts?: TFont;
10
11
  typography?: Itypography;
11
12
  }
@@ -1,9 +1,10 @@
1
1
  import { ReactNode, ElementType, HTMLAttributes } from 'react';
2
2
  import { IGap } from '../../../config/components/gap';
3
+ import { TFont } from '../../../config/components/font';
3
4
  export interface IBreadcrumbs<T extends ElementType> extends HTMLAttributes<HTMLDivElement> {
4
5
  as?: T;
5
- fonts?: 'lato' | 'inter';
6
- variants?: 'laba-blue-10' | 'blue-700';
6
+ fonts?: TFont;
7
+ variants?: 'laba-blue-10' | 'blue-700' | 'bill-secondary-800';
7
8
  urls: string[];
8
9
  textBreadcrumbs: string[];
9
10
  onClickBreadcrumbs?: (() => void | undefined)[];
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black';
3
- export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs';
2
+ export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
3
+ export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs';
4
4
  export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  size?: TButtonSize;
6
6
  variants?: TButtonVariants;
@@ -1,9 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Itypography } from '../../../config/components/typography';
3
+ import { TFont } from '../../../config/components/font';
3
4
  export interface IChips extends React.HTMLAttributes<HTMLSpanElement> {
4
5
  children: ReactNode | ReactNode[];
5
6
  className?: string | undefined;
6
- fonts?: 'lato' | 'inter';
7
+ fonts?: TFont;
7
8
  size?: 'reguler' | 'small' | 'l' | 's';
8
9
  variants?: 'filled-laba-blue-10' | 'ghost-laba-grey-02' | 'nude-laba-grey-10' | 'filled-blue-gray-100' | 'filled-gray-300';
9
10
  icon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
@@ -35,3 +35,16 @@ export interface IInputNative extends InputHTMLAttributes<HTMLInputElement> {
35
35
  sizeInput?: 's' | 'xs' | 'l';
36
36
  classNameLabelError?: string | undefined;
37
37
  }
38
+ export interface IInputInnerLabel extends InputHTMLAttributes<HTMLInputElement> {
39
+ classNameContainer?: string | undefined;
40
+ id?: string | undefined;
41
+ label?: string;
42
+ type?: string;
43
+ startIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
44
+ endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
45
+ isRequired?: boolean;
46
+ error?: string | undefined;
47
+ sizeInput?: 'large' | 'small';
48
+ classNameLabel?: string | undefined;
49
+ classNameLabelError?: string | undefined;
50
+ }
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { FlipOptions, AutoPlacementOptions, UseFloatingOptions, OffsetOptions, FloatingArrowProps } from '@floating-ui/react';
2
+ import { FlipOptions, AutoPlacementOptions, UseFloatingOptions, OffsetOptions, FloatingArrowProps, FloatingFocusManagerProps, UseDismissProps } from '@floating-ui/react';
3
3
  export interface IPopover extends React.HTMLAttributes<HTMLDivElement> {
4
4
  children: ReactNode | ReactNode[];
5
5
  className?: string | undefined;
@@ -16,6 +16,8 @@ export interface IPopover extends React.HTMLAttributes<HTMLDivElement> {
16
16
  withArrow?: boolean;
17
17
  propsArrow?: Partial<FloatingArrowProps>;
18
18
  onClose?: () => void;
19
+ floatingFocusManagerProps?: Omit<FloatingFocusManagerProps, 'context' | 'children'>;
20
+ useDismissProps?: UseDismissProps;
19
21
  }
20
22
  export interface IRefPopover {
21
23
  show: boolean;
@@ -1,18 +1,19 @@
1
1
  import { InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { IBorderRadius } from '../../../config/components/borderRadius';
3
3
  import { Itypography } from '../../../config/components/typography';
4
+ import { TFont } from '../../../config/components/font';
4
5
  export interface IRadioCheckbox extends InputHTMLAttributes<HTMLInputElement> {
5
6
  classNameContainer?: string | undefined;
6
7
  classNameLabel?: string | undefined;
7
8
  classNameCheckedIcon?: string | undefined;
8
9
  classNameContainerCheckedIcon?: string | undefined;
9
10
  sizeInput?: 'reguler' | 'small' | 's' | 'm';
10
- variants?: 'laba-blue-10' | 'blue-700' | 'blue-700-hv_bg_transparent' | 'laba-blue-10-hv_bg_transparent';
11
+ variants?: 'laba-blue-10' | 'blue-700' | 'blue-700-hv_bg_transparent' | 'laba-blue-10-hv_bg_transparent' | 'bill-primary-500' | 'bill-primary-600-hv_bg_transparent' | 'bill-secondary-800-hv_bg_transparent';
11
12
  variantDisableds?: 'default-disabled-checkbox' | 'default-disabled-radio';
12
13
  borderRadius?: IBorderRadius;
13
14
  checkedIcon?: ReactNode | ReactNode[];
14
15
  type?: 'checkbox' | 'radio';
15
- fonts?: 'lato' | 'inter';
16
+ fonts?: TFont;
16
17
  label?: string;
17
18
  typography?: Itypography;
18
19
  }
@@ -2,12 +2,13 @@ import { InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { Itypography } from '../../../config/components/typography';
3
3
  import { IRadioCheckbox } from './RadioCheckbox';
4
4
  import { IBorderRadius } from '../../../config/components/borderRadius';
5
+ import { TFont } from '../../../config/components/font';
5
6
  export interface IRadioCheckboxLabel extends InputHTMLAttributes<HTMLInputElement> {
6
7
  typographyLabel?: Itypography;
7
8
  typographyDesc?: Itypography;
8
9
  borderRadius?: IBorderRadius;
9
10
  type?: 'checkbox' | 'radio';
10
- fonts?: 'lato' | 'inter';
11
+ fonts?: TFont;
11
12
  radioCheckboxProps?: IRadioCheckbox;
12
13
  variants?: 'blue-50' | 'laba-blue-01';
13
14
  label: string | ReactNode | ReactNode[];
@@ -31,7 +31,7 @@ export interface ISelectDropdownContainer<T> extends Omit<SelectProps<T, boolean
31
31
  offsetPopover?: OffsetOptions;
32
32
  errorLabel?: 'payhere' | 'laba';
33
33
  actionValueChange?: (value: MultiValue<T> | SingleValue<T> | T | T[] | object) => void;
34
- controlType?: 'laba' | 'payhere';
34
+ controlType?: 'laba' | 'payhere' | 'bill';
35
35
  }
36
36
  export interface IChildrenSelectDropdownContainer<T> {
37
37
  selectValue: T | T[] | object;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'laba-white' | 'lpd-brand-base-transparent' | 'lpd-brand-base-transparent-responsive' | 'lpd-brand-base-white' | 'lpd-brand-base-white-responsive';
2
+ export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'laba-white' | 'lpd-brand-base-transparent' | 'lpd-brand-base-transparent-responsive' | 'lpd-brand-base-white' | 'lpd-brand-base-white-responsive' | 'bill-brand-base-white' | 'bill-brand-base-white-responsive';
3
3
  export interface ISidebarModule {
4
4
  name: string;
5
5
  label: string;
@@ -9,7 +9,7 @@ export interface ISwitch {
9
9
  className?: string | undefined;
10
10
  classNameTitle?: string | undefined;
11
11
  classNameDesc?: string | undefined;
12
- kind?: 'payhere' | 'laba';
12
+ kind?: 'payhere' | 'laba' | 'bill';
13
13
  onChange: (v: boolean) => void;
14
14
  }
15
15
  export {};