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.
- package/dist/assets/_colors.scss +40 -0
- package/dist/assets/_typography.scss +286 -0
- package/dist/assets/colors.css +20 -0
- package/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf +0 -0
- package/dist/assets/fonts/PlusJakartaSans-VariableFont_wght.ttf +0 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/typography.css +78 -0
- package/dist/index.cjs +104 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +13719 -13002
- package/dist/index.mjs.map +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/Input/InputInnerLabel.d.ts +4 -0
- package/dist/src/components/Input/InputInnerLabel.stories.d.ts +31 -0
- package/dist/src/components/RadioCheckbox/RadioCheckbox.stories.d.ts +189 -7
- package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +2 -0
- package/dist/src/components/Textarea/TextareaInnerLabel.d.ts +4 -0
- package/dist/src/components/Textarea/TextareaInnerLabel.stories.d.ts +25 -0
- package/dist/src/components/TimeRange/TimeRange.d.ts +3 -0
- package/dist/src/components/TimeRange/TimeRange.stories.d.ts +19 -0
- package/dist/src/components/index.d.ts +7 -3
- package/dist/src/config/components/font.d.ts +6 -0
- package/dist/src/config/tailwind/typography.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +5 -3
- package/dist/src/hooks/useCountdown.d.ts +6 -3
- package/dist/src/hooks/useOtpInput.d.ts +42 -0
- package/dist/src/interfaces/components/Badges/index.d.ts +2 -1
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +3 -2
- package/dist/src/interfaces/components/Button/index.d.ts +2 -2
- package/dist/src/interfaces/components/Chips/index.d.ts +2 -1
- package/dist/src/interfaces/components/Input/index.d.ts +13 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +3 -1
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +3 -2
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +2 -1
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +1 -1
- package/dist/src/interfaces/components/Sidebar/index.d.ts +1 -1
- package/dist/src/interfaces/components/Switch/index.d.ts +1 -1
- package/dist/src/interfaces/components/Table/index.d.ts +8 -1
- package/dist/src/interfaces/components/Tabs/index.d.ts +1 -1
- package/dist/src/interfaces/components/Textarea/index.d.ts +13 -0
- package/dist/src/interfaces/components/TimeRange/index.d.ts +28 -0
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export interface ITable<T = unknown> {
|
|
|
27
27
|
tbodyTrId?: (row: Row<T>) => string | undefined;
|
|
28
28
|
maxHeight?: number;
|
|
29
29
|
idCalculateHeight?: string;
|
|
30
|
-
kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small';
|
|
30
|
+
kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small' | 'bill-reguler';
|
|
31
31
|
variant?: 'laba-grey-02';
|
|
32
32
|
componentSortASC?: Element | React.ReactNode | React.ReactNode[];
|
|
33
33
|
componentSortDESC?: Element | React.ReactNode | React.ReactNode[];
|
|
@@ -100,16 +100,19 @@ export interface ITableConfig {
|
|
|
100
100
|
'payhere-reguler': string;
|
|
101
101
|
'laba-reguler': string;
|
|
102
102
|
'laba-small': string;
|
|
103
|
+
'bill-reguler': string;
|
|
103
104
|
};
|
|
104
105
|
subMobile: {
|
|
105
106
|
'payhere-reguler': string;
|
|
106
107
|
'laba-reguler': string;
|
|
107
108
|
'laba-small': string;
|
|
109
|
+
'bill-reguler': string;
|
|
108
110
|
};
|
|
109
111
|
pointer: {
|
|
110
112
|
'payhere-reguler': string;
|
|
111
113
|
'laba-reguler': string;
|
|
112
114
|
'laba-small': string;
|
|
115
|
+
'bill-reguler': string;
|
|
113
116
|
};
|
|
114
117
|
utility: {
|
|
115
118
|
'table-scroll-top': string;
|
|
@@ -127,6 +130,10 @@ export interface ITableConfig {
|
|
|
127
130
|
asc: Element | React.ReactNode | React.ReactNode[];
|
|
128
131
|
desc: Element | React.ReactNode | React.ReactNode[];
|
|
129
132
|
};
|
|
133
|
+
'bill-reguler': {
|
|
134
|
+
asc: Element | React.ReactNode | React.ReactNode[];
|
|
135
|
+
desc: Element | React.ReactNode | React.ReactNode[];
|
|
136
|
+
};
|
|
130
137
|
};
|
|
131
138
|
variant: {
|
|
132
139
|
'laba-grey-02': string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBorderRadius } from '../../../config/components/borderRadius';
|
|
2
2
|
import { TKeyLocale } from '../Calendar';
|
|
3
|
-
export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white';
|
|
3
|
+
export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800';
|
|
4
4
|
export type TSizeTabs = 'tabs-m' | 'tabs-s' | 'tabs-medium' | 'tabs-small';
|
|
5
5
|
export type TTypeEventTabs = 'change' | 'mounted';
|
|
6
6
|
export interface ITabsList {
|
|
@@ -28,3 +28,16 @@ export interface ITextareaFloatingInner extends React.InputHTMLAttributes<HTMLTe
|
|
|
28
28
|
translateLabel?: number;
|
|
29
29
|
autoTranslateLabel?: boolean;
|
|
30
30
|
}
|
|
31
|
+
export interface ITextareaInnerLabel extends React.InputHTMLAttributes<HTMLTextAreaElement> {
|
|
32
|
+
classNameContainer?: string | undefined;
|
|
33
|
+
id?: string | undefined;
|
|
34
|
+
label?: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
isRequired?: boolean;
|
|
37
|
+
error?: string | undefined;
|
|
38
|
+
sizeInput?: 'large' | 'small';
|
|
39
|
+
classNameLabel?: string | undefined;
|
|
40
|
+
classNameLabelError?: string | undefined;
|
|
41
|
+
maxHeight?: number;
|
|
42
|
+
minHeight?: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseFloatingOptions } from '@floating-ui/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { TKeyLocale } from '../Calendar';
|
|
4
|
+
export type TTimeRangeValue = [[string, string], [string, string]];
|
|
5
|
+
export interface ITimeRange {
|
|
6
|
+
id?: string;
|
|
7
|
+
value?: TTimeRangeValue;
|
|
8
|
+
zIndexPopper?: number;
|
|
9
|
+
offsetPopover?: number;
|
|
10
|
+
classNameContainer?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
buttonClick?: (value: TTimeRangeValue, formatValue: string) => ReactNode;
|
|
13
|
+
onChange?: (value: TTimeRangeValue) => void;
|
|
14
|
+
floatingOptions?: UseFloatingOptions;
|
|
15
|
+
locale?: TKeyLocale;
|
|
16
|
+
buttonReset?: (() => ReactNode) | (() => ReactNode[]);
|
|
17
|
+
buttonSubmit?: (() => ReactNode) | (() => ReactNode[]);
|
|
18
|
+
disableValidation?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ITimeRangeListTime {
|
|
21
|
+
type: 'start' | 'end';
|
|
22
|
+
value: TTimeRangeValue[0];
|
|
23
|
+
values: TTimeRangeValue;
|
|
24
|
+
onChange: (value: TTimeRangeValue[0]) => void;
|
|
25
|
+
locale: TKeyLocale;
|
|
26
|
+
disableValidation: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type TRenderTimeRageText = (value: TTimeRangeValue, locale: TKeyLocale) => string;
|