kwant-ui 3.14.8 → 3.14.9-alpha.0
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/GlobalStyles/index.ts +51 -4
- package/dist/components/HoverCalender/types.d.ts +1 -0
- package/dist/hooks/useDropdown.d.ts +11 -0
- package/dist/package.json +1 -1
- package/dist/stories/HoverCalender/HoverCalenderContainer.stories.d.ts +11 -0
- package/package.json +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +0 -19
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.styled.d.ts.map +0 -1
- package/dist/components/Button/helper.d.ts.map +0 -1
- package/dist/components/Button/types.d.ts.map +0 -1
- package/dist/components/MultiSelect/onOutsideClick.d.ts +0 -3
- package/dist/components/Slider/Slider.d.ts.map +0 -1
- package/dist/components/Slider/Slider.styled.d.ts.map +0 -1
- package/dist/components/Slider/index.d.ts.map +0 -1
- package/dist/components/Slider/types.d.ts.map +0 -1
- package/dist/components/StepperDrawer/StepperDrawer.d.ts +0 -3
- package/dist/components/StepperDrawer/StepperDrawer.types.d.ts +0 -8
- package/dist/components/StepperDrawer/StepperDrawer.utils.d.ts +0 -1
- package/dist/components/StepperDrawer/StepperDrawerStyled.d.ts +0 -5
- package/dist/components/StepperDrawer/index.d.ts +0 -2
- package/dist/components/Text/TextStyled.d.ts.map +0 -1
- package/dist/components/Text/index.d.ts.map +0 -1
- package/dist/components/Text/types.d.ts.map +0 -1
- package/dist/components/Text/typography.d.ts.map +0 -1
- package/dist/components/Text/utils.d.ts.map +0 -1
- package/dist/components/stepper/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/kwant-ui.es.js +0 -4345
- package/dist/kwant-ui.umd.js +0 -507
- package/dist/public/assets/sprite.svg +0 -9502
- package/dist/stories/Drawer/StepperDrawerStory.d.ts +0 -2
- package/dist/stories/StepperDrawer.stories.d.ts +0 -72
- package/dist/themes/colors.d.ts.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/types.d.ts.map +0 -1
- package/dist/types.d.ts +0 -572
package/GlobalStyles/index.ts
CHANGED
|
@@ -83,9 +83,14 @@ const GlobalStyles = createGlobalStyle<{ theme: Color }>`
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
.rmdp-calendar{
|
|
87
|
+
.rmdp-day-picker{
|
|
88
|
+
padding: 0;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
86
92
|
.date-picker-range{
|
|
87
93
|
.rmdp-calendar {
|
|
88
|
-
width: 576px;
|
|
89
94
|
.rmdp-day-picker{
|
|
90
95
|
gap: 24px;
|
|
91
96
|
}
|
|
@@ -124,6 +129,11 @@ const GlobalStyles = createGlobalStyle<{ theme: Color }>`
|
|
|
124
129
|
padding: 1.5rem;
|
|
125
130
|
}
|
|
126
131
|
|
|
132
|
+
.rmdp-header{
|
|
133
|
+
margin-top: 0;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
127
137
|
.rmdp-container {
|
|
128
138
|
width: 100%;
|
|
129
139
|
display: block !important;
|
|
@@ -171,13 +181,23 @@ const GlobalStyles = createGlobalStyle<{ theme: Color }>`
|
|
|
171
181
|
background-color: ${theme.secondary.secondary100};
|
|
172
182
|
}
|
|
173
183
|
.rmdp-week {
|
|
174
|
-
justify-content:
|
|
184
|
+
justify-content: space-between;
|
|
185
|
+
|
|
186
|
+
&:first-child {
|
|
187
|
+
padding: 16px 0;
|
|
188
|
+
margin-bottom: 0 !important;
|
|
189
|
+
|
|
190
|
+
.rmdp-week-day{
|
|
191
|
+
height: auto !important;
|
|
192
|
+
aspect-ratio: auto;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
175
196
|
.rmdp-day, .rmdp-week-day {
|
|
197
|
+
flex: 1;
|
|
176
198
|
${typography.body2};
|
|
177
199
|
font-weight: ${FONT_WEIGHT.regular};
|
|
178
200
|
color: ${theme.grey.grey500};
|
|
179
|
-
width: 32px;
|
|
180
|
-
height: 32px;
|
|
181
201
|
}
|
|
182
202
|
|
|
183
203
|
&:not(:last-child){
|
|
@@ -200,6 +220,33 @@ const GlobalStyles = createGlobalStyle<{ theme: Color }>`
|
|
|
200
220
|
color: ${(props) => props.theme.blue.blue1000} !important;
|
|
201
221
|
}
|
|
202
222
|
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
.rmdp-day.rmdp-range{
|
|
226
|
+
&.start, &.end{
|
|
227
|
+
background-color: ${theme.blue.blue100};
|
|
228
|
+
span{
|
|
229
|
+
background-color: red;
|
|
230
|
+
width: 32px;
|
|
231
|
+
height: 32px;
|
|
232
|
+
aspect-ratio: 1 !important;
|
|
233
|
+
position: static;
|
|
234
|
+
background-color: rgb(16, 63, 232);
|
|
235
|
+
border-radius: 50% !important;
|
|
236
|
+
}
|
|
237
|
+
&.start.end{
|
|
238
|
+
background-color: transparent;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&.start{
|
|
243
|
+
border-radius: 50% 0 0 50% !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&.end{
|
|
247
|
+
border-radius: 0 50% 50% 0 !important;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
203
250
|
|
|
204
251
|
.rmdp-day.rmdp-today span {
|
|
205
252
|
background-color: #d4e2e7;
|
package/dist/package.json
CHANGED
|
@@ -45,6 +45,16 @@ declare const meta: {
|
|
|
45
45
|
};
|
|
46
46
|
description: string;
|
|
47
47
|
};
|
|
48
|
+
disableEdit: {
|
|
49
|
+
options: string[];
|
|
50
|
+
control: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
defaultValue: {
|
|
54
|
+
summary: boolean;
|
|
55
|
+
};
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
48
58
|
numberOfMonths: {
|
|
49
59
|
options: number[];
|
|
50
60
|
control: {
|
|
@@ -62,3 +72,4 @@ export declare const Default: Story;
|
|
|
62
72
|
export declare const EditMode: Story;
|
|
63
73
|
export declare const DateRangeEnabled: Story;
|
|
64
74
|
export declare const DateRangeSelectFromTwoMonths: Story;
|
|
75
|
+
export declare const DisableEdit: Story;
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AvatarDeclarations } from '../Avatar/Avatar.types';
|
|
2
|
-
export declare namespace AvatarGroupDelcarations {
|
|
3
|
-
interface Props {
|
|
4
|
-
borderWidth?: number;
|
|
5
|
-
borderColor?: string;
|
|
6
|
-
boxShadow?: string;
|
|
7
|
-
avatars?: AvatarDeclarations.Props[];
|
|
8
|
-
size?: AvatarDeclarations.Size;
|
|
9
|
-
}
|
|
10
|
-
interface StyledAvatarContainer {
|
|
11
|
-
height: string;
|
|
12
|
-
}
|
|
13
|
-
interface StyledAvatarItem {
|
|
14
|
-
borderWidth?: string;
|
|
15
|
-
borderColor?: string;
|
|
16
|
-
boxShadow?: string;
|
|
17
|
-
index?: number;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,MAAM,UAAW,gBAAgB,KAAK,4CAiC3C,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.styled.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,QAAA,MAAM,aAAa,+FAmClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA2F1C,QAAA,MAAM,kBAAkB,UAAW,gBAAgB,kBAAkB,uEA+DpE,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,yBAAiB,eAAe,CAAC;IAC/B,MAAM,MAAM,KAAK,GAAG;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;QAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,MAAM,MAAM,OAAO;QACjB,OAAO,YAAY;QACnB,MAAM,WAAW;QACjB,KAAK,UAAU;QACf,MAAM,WAAW;KAClB;IACD,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1D,KAAK,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;IAE1C,MAAM,MAAM,aAAa,GAAG;QAC1B,UAAU,EAAE,UAAU,CAAC;QACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,aAAa,CAAC;KACxB,CAAC;IAEF,MAAM,MAAM,UAAU;QACpB,OAAO,IAAA;QACP,SAAS,IAAA;QACT,KAAK,IAAA;QACL,OAAO,IAAA;QACP,OAAO,IAAA;QACP,QAAQ,IAAA;KACT;IAED,MAAM,MAAM,YAAY,GAAG;QACzB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,UAAU,CAAC;IAEjD,MAAM,MAAM,kBAAkB,GAAG;QAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,EAAE,KAAK,CAAC;QACb,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,EAAE,aAAa,CAAC;KACxB,CAAC;;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,WAAW,4CA4FjC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,eAAO,MAAM,UAAU,oEAGtB,CAAC;AAEF,eAAO,MAAM,SAAS,oEAerB,CAAC;AAEF,eAAO,MAAM,eAAe,8FAc3B,CAAC;AAQF,eAAO,MAAM,UAAU,kGAwBtB,CAAC;AACF,eAAO,MAAM,WAAW,oEAEvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/types.ts"],"names":[],"mappings":"AAAA,yBAAiB,eAAe,CAAC;IAC/B,KAAY,YAAY,GAAG;QACzB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,KAAY,gBAAgB,GAAG;QAC7B,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
3
|
-
export declare namespace StepperDrawerDeclarations {
|
|
4
|
-
interface Props extends DrawerDeclarations.Props {
|
|
5
|
-
drawerSidebar?: React.ReactNode;
|
|
6
|
-
sidebarBorder?: boolean;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatGridTemplate: (str: string) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
2
|
-
export declare const StepperDrawerContentRoot: import("styled-components").StyledComponent<"div", any, DrawerDeclarations.DrawerContentStyled, never>;
|
|
3
|
-
export declare const StepperDrawerSidebar: import("styled-components").StyledComponent<"aside", any, {
|
|
4
|
-
sidebarBorder?: boolean;
|
|
5
|
-
}, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextStyled.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/TextStyled.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,QAAA,MAAM,SAAS,2JAKd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,QAAA,MAAM,IAAI,UAAW,cAAc,KAAK,4CAWvC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/types.ts"],"names":[],"mappings":"AAAA,yBAAiB,aAAa,CAAC;IAC7B,KAAY,KAAK,GAAG,cAAc,GAAG;QACnC,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,EAAE,UAAU,CAAC,KACtD,IAAI,CAAC;QACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;IAEF,KAAY,QAAQ,GAChB,UAAU,GACV,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,CAAC;IAEZ,KAAY,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IAEvC,KAAY,cAAc,GAAG;QAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,UAwDjB,CAAC;AAEF,6CAA6C;AAC7C,QAAA,MAAM,gBAAgB,UAAW,cAAc,cAAc,KAAG,MAK/D,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,QAAA,MAAM,WAAW,UACR,KAAK,SACL,cAAc,IAAI,UACjB,MAAM,KACb,MAKF,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stepper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,KAAK,OAAO,GAAG;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,EAAE,CAAC;CAC1B,CAAC;AAEF,iBAAS,OAAO,CAAC,EACf,OAAO,EACP,UAAU,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,aAAa,EACd,EAAE,YAAY,2CA6Dd;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|