kui-basic 1.1.167 → 1.1.169

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/index.d.ts CHANGED
@@ -3,150 +3,151 @@ import { HTMLInputTypeAttribute, ReactElement, ReactNode, SyntheticEvent, RefObj
3
3
  import { Placement, OffsetOptions, Strategy } from '@floating-ui/react';
4
4
  import { MiddlewareData } from '@floating-ui/core/src/types';
5
5
 
6
- interface BrandColors {
7
- main: string
8
- pressed: string
9
- hover: string
10
- light: string
11
- background: string
12
- }
13
- interface ColorOption {
14
- fiftyP: string
15
- seventy: string
16
- sixty: string
17
- ten: string
18
- five: string
19
- }
20
- interface GreyColors {
21
- seventy: string
22
- sixty: string
23
- fiftyP: string
24
- fourty: string
25
- thirty: string
26
- fifteenB: string
27
- zero: string
28
- }
29
- interface BackgroundColors {
30
- light1: string
31
- light2: string
32
- light3: string
33
- light4: string
34
- }
35
-
36
- type PrimaryColorsType = {
37
- main: string
38
- pressed: string
39
- hover: string
40
- light: string
41
- light2: string
42
- }
43
-
44
- type SecondaryColorsType = {
45
- main: string
46
- gray60: string
47
- gray50: string
48
- gray40: string
49
- gray30: string
50
- gray15: string
51
- white: string
52
- light: string
53
- disabled: string
54
- }
55
-
56
- type BackgroundColorsType = {
57
- main: string
58
- light2: string
59
- light3: string
60
- }
61
-
62
- type SuccessColorsType = {
63
- green70: string
64
- green60: string
65
- main: string
66
- green10: string
67
- green5: string
68
- }
69
-
70
- type ErrorColorsType = {
71
- red70: string
72
- red60: string
73
- main: string
74
- red10: string
75
- red5: string
76
- }
77
-
78
- type InfoColorsType = {
79
- blue70: string
80
- blue60: string
81
- main: string
82
- blue10: string
83
- blue5: string
84
- }
85
-
86
- type PurpleColorsType = {
87
- purple70: string
88
- purple60: string
89
- main: string
90
- purple10: string
91
- purple5: string
92
- }
93
-
94
- type ColorsType = {
95
- primary: PrimaryColorsType
96
- secondary: SecondaryColorsType
97
- background: BackgroundColorsType
98
- success: SuccessColorsType
99
- error: ErrorColorsType
100
- info: InfoColorsType
101
- purple: PurpleColorsType
102
- }
103
-
104
- type ShadowsType = {
105
- shadow1: string
106
- shadow2: string
107
- shadow3: string
108
- shadow4: string
109
- }
110
-
111
- type BreakpointsType = {
112
- xxs: number
113
- xs: number
114
- sm: number
115
- md: number
116
- lg: number
117
- xl: number
118
- }
119
-
120
- type SettingsType = {
121
- spacing: number
122
- columns: number
123
- }
124
-
125
- type ThemeType = {
126
- palette: ColorsType
127
- shadows: ShadowsType
128
- breakpoints: BreakpointsType
129
- settings: SettingsType
130
- }
131
-
132
- type Palette = {
133
- brand: BrandColors
134
- green: ColorOption
135
- red: ColorOption
136
- blue: ColorOption
137
- purple: ColorOption
138
- grey: GreyColors
139
- background: BackgroundColors
140
- }
141
-
142
- type ThemeInterface = {
143
- palette: Palette
144
- shadows: ShadowsType
145
- breakpoints: BreakpointsType
146
- settings: SettingsType
147
- }
148
-
149
- declare const themeOld: ThemeType
6
+ interface BrandColors {
7
+ main: string
8
+ pressed: string
9
+ hover: string
10
+ light: string
11
+ background: string
12
+ }
13
+ interface ColorOption {
14
+ fiftyP: string
15
+ seventy: string
16
+ sixty: string
17
+ ten: string
18
+ five: string
19
+ }
20
+ interface GreyColors {
21
+ seventy: string
22
+ sixty: string
23
+ fiftyP: string
24
+ fourty: string
25
+ thirty: string
26
+ fifteenB: string
27
+ zero: string
28
+ disabled: string
29
+ }
30
+ interface BackgroundColors {
31
+ light1: string
32
+ light2: string
33
+ light3: string
34
+ light4: string
35
+ }
36
+
37
+ type PrimaryColorsType = {
38
+ main: string
39
+ pressed: string
40
+ hover: string
41
+ light: string
42
+ light2: string
43
+ }
44
+
45
+ type SecondaryColorsType = {
46
+ main: string
47
+ gray60: string
48
+ gray50: string
49
+ gray40: string
50
+ gray30: string
51
+ gray15: string
52
+ white: string
53
+ light: string
54
+ disabled: string
55
+ }
56
+
57
+ type BackgroundColorsType = {
58
+ main: string
59
+ light2: string
60
+ light3: string
61
+ }
62
+
63
+ type SuccessColorsType = {
64
+ green70: string
65
+ green60: string
66
+ main: string
67
+ green10: string
68
+ green5: string
69
+ }
70
+
71
+ type ErrorColorsType = {
72
+ red70: string
73
+ red60: string
74
+ main: string
75
+ red10: string
76
+ red5: string
77
+ }
78
+
79
+ type InfoColorsType = {
80
+ blue70: string
81
+ blue60: string
82
+ main: string
83
+ blue10: string
84
+ blue5: string
85
+ }
86
+
87
+ type PurpleColorsType = {
88
+ purple70: string
89
+ purple60: string
90
+ main: string
91
+ purple10: string
92
+ purple5: string
93
+ }
94
+
95
+ type ColorsType = {
96
+ primary: PrimaryColorsType
97
+ secondary: SecondaryColorsType
98
+ background: BackgroundColorsType
99
+ success: SuccessColorsType
100
+ error: ErrorColorsType
101
+ info: InfoColorsType
102
+ purple: PurpleColorsType
103
+ }
104
+
105
+ type ShadowsType = {
106
+ shadow1: string
107
+ shadow2: string
108
+ shadow3: string
109
+ shadow4: string
110
+ }
111
+
112
+ type BreakpointsType = {
113
+ xxs: number
114
+ xs: number
115
+ sm: number
116
+ md: number
117
+ lg: number
118
+ xl: number
119
+ }
120
+
121
+ type SettingsType = {
122
+ spacing: number
123
+ columns: number
124
+ }
125
+
126
+ type ThemeType = {
127
+ palette: ColorsType
128
+ shadows: ShadowsType
129
+ breakpoints: BreakpointsType
130
+ settings: SettingsType
131
+ }
132
+
133
+ type Palette = {
134
+ brand: BrandColors
135
+ green: ColorOption
136
+ red: ColorOption
137
+ blue: ColorOption
138
+ purple: ColorOption
139
+ grey: GreyColors
140
+ background: BackgroundColors
141
+ }
142
+
143
+ type ThemeInterface = {
144
+ palette: Palette
145
+ shadows: ShadowsType
146
+ breakpoints: BreakpointsType
147
+ settings: SettingsType
148
+ }
149
+
150
+ declare const themeOld: ThemeType
150
151
  declare const theme: ThemeInterface
151
152
 
152
153
  type CaptionSizes = "xs" | "sm" | "s" | "m" | "l"
@@ -674,27 +675,29 @@ type LinearProgressType = (
674
675
 
675
676
  declare const LinearProgress: LinearProgressType
676
677
 
677
- type TabChangeHandlerType = (
678
- e: SyntheticEvent<HTMLButtonElement>,
679
- value: number
680
- ) => void
681
-
682
- interface TabProps
683
- extends Omit<
684
- React.DetailedHTMLProps<
685
- React.ButtonHTMLAttributes<HTMLButtonElement>,
686
- HTMLButtonElement
687
- >,
688
- "onChange"
689
- > {
690
- selected?: boolean
691
- value?: number
692
- label: string | ReactNode
693
- onChange?: TabChangeHandlerType
694
- }
695
-
696
- type TabType = (props: TabProps) => React.ReactElement
697
-
678
+ type TabChangeHandlerType = (
679
+ e: SyntheticEvent<HTMLButtonElement>,
680
+ value: number
681
+ ) => void
682
+
683
+ interface TabProps
684
+ extends Omit<
685
+ React.DetailedHTMLProps<
686
+ React.ButtonHTMLAttributes<HTMLButtonElement>,
687
+ HTMLButtonElement
688
+ >,
689
+ "onChange"
690
+ > {
691
+ selected?: boolean
692
+ disabled?: boolean
693
+ value?: number
694
+ label: string | ReactNode
695
+ onChange?: TabChangeHandlerType
696
+ renderTabWrapper?: (tab: string) => ReactNode
697
+ }
698
+
699
+ type TabType = (props: TabProps) => React.ReactElement
700
+
698
701
  declare const Tab: TabType
699
702
 
700
703
  type TabsIndicatorPositions = "bottom" | "top"
@@ -733,6 +736,7 @@ interface TabsPanelProps
733
736
  endComponent?: ReactNode
734
737
  navigate?: (state: string) => void
735
738
  tabsPanelId?: string
739
+ renderTabWrapper?: (tab: string) => ReactNode
736
740
  }
737
741
 
738
742
  type TabsPanelType = (props: TabsPanelProps) => React.ReactElement