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

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 (129) hide show
  1. package/dist/assets/_colors.scss +40 -0
  2. package/dist/assets/_mixins.scss +43 -43
  3. package/dist/assets/_typography.scss +286 -0
  4. package/dist/assets/colors.css +20 -0
  5. package/dist/assets/core.css +1 -1
  6. package/dist/assets/fontfamily.css +1 -1
  7. package/dist/assets/fonts/PlusJakartaSans-Italic.ttf +0 -0
  8. package/dist/assets/fonts/PlusJakartaSans.ttf +0 -0
  9. package/dist/assets/icons/arrow-narrow-down.svg +3 -3
  10. package/dist/assets/style.css +1 -1
  11. package/dist/assets/typography.css +78 -0
  12. package/dist/index.cjs +132 -120
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.mjs +13750 -13034
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/package.json.d.ts +132 -132
  17. package/dist/src/components/Input/InputInnerLabel.d.ts +4 -0
  18. package/dist/src/components/Input/InputInnerLabel.stories.d.ts +31 -0
  19. package/dist/src/components/RadioCheckbox/RadioCheckbox.stories.d.ts +189 -7
  20. package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +2 -0
  21. package/dist/src/components/Textarea/TextareaInnerLabel.d.ts +4 -0
  22. package/dist/src/components/Textarea/TextareaInnerLabel.stories.d.ts +25 -0
  23. package/dist/src/components/TimeRange/TimeRange.d.ts +3 -0
  24. package/dist/src/components/TimeRange/TimeRange.stories.d.ts +19 -0
  25. package/dist/src/components/index.d.ts +7 -3
  26. package/dist/src/config/components/font.d.ts +6 -0
  27. package/dist/src/config/tailwind/typography.d.ts +1 -0
  28. package/dist/src/hooks/index.d.ts +5 -3
  29. package/dist/src/hooks/useCountdown.d.ts +6 -3
  30. package/dist/src/hooks/useOtpInput.d.ts +42 -0
  31. package/dist/src/interfaces/components/Badges/index.d.ts +2 -1
  32. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +3 -2
  33. package/dist/src/interfaces/components/Button/index.d.ts +2 -2
  34. package/dist/src/interfaces/components/Chips/index.d.ts +2 -1
  35. package/dist/src/interfaces/components/Input/index.d.ts +13 -0
  36. package/dist/src/interfaces/components/Popover/index.d.ts +3 -1
  37. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +3 -2
  38. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +2 -1
  39. package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +1 -1
  40. package/dist/src/interfaces/components/Sidebar/index.d.ts +1 -1
  41. package/dist/src/interfaces/components/Switch/index.d.ts +1 -1
  42. package/dist/src/interfaces/components/Table/index.d.ts +8 -1
  43. package/dist/src/interfaces/components/Tabs/index.d.ts +1 -1
  44. package/dist/src/interfaces/components/Textarea/index.d.ts +13 -0
  45. package/dist/src/interfaces/components/TimeRange/index.d.ts +28 -0
  46. package/dist/tinymce/CHANGELOG.md +3785 -3785
  47. package/dist/tinymce/js/tinymce/langs/README.md +3 -3
  48. package/dist/tinymce/js/tinymce/license.md +6 -6
  49. package/dist/tinymce/js/tinymce/notices.txt +21 -21
  50. package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
  51. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +92 -92
  52. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +92 -92
  53. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +92 -92
  54. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +92 -92
  55. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +92 -92
  56. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +92 -92
  57. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +92 -92
  58. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +92 -92
  59. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +92 -92
  60. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +92 -92
  61. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +92 -92
  62. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +92 -92
  63. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +92 -92
  64. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +92 -92
  65. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +92 -92
  66. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +92 -92
  67. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +92 -92
  68. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +92 -92
  69. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +92 -92
  70. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +92 -92
  71. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +92 -92
  72. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +92 -92
  73. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +92 -92
  74. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +92 -92
  75. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +92 -92
  76. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +92 -92
  77. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +92 -92
  78. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +92 -92
  79. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +92 -92
  80. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +92 -92
  81. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +92 -92
  82. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +92 -92
  83. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +92 -92
  84. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +92 -92
  85. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +92 -92
  86. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +92 -92
  87. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +92 -92
  88. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +86 -86
  89. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +92 -92
  90. package/dist/tinymce/js/tinymce/skins/content/dark/content.js +9 -9
  91. package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +10 -10
  92. package/dist/tinymce/js/tinymce/skins/content/default/content.js +9 -9
  93. package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +10 -10
  94. package/dist/tinymce/js/tinymce/skins/content/document/content.js +9 -9
  95. package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +10 -10
  96. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +9 -9
  97. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +10 -10
  98. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +9 -9
  99. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -10
  100. package/dist/tinymce/js/tinymce/skins/content/writer/content.js +9 -9
  101. package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +10 -10
  102. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
  103. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
  104. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
  105. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
  106. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
  107. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -1
  108. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
  109. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
  110. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
  111. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
  112. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  113. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
  114. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
  115. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
  116. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
  117. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
  118. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  119. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -1
  120. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
  121. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
  122. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
  123. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
  124. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  125. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -1
  126. package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
  127. package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
  128. package/dist/types-external/table.d.ts +15 -15
  129. package/package.json +132 -132
@@ -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 {};
@@ -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;