kwant-ui 3.14.8 → 3.14.9-alpha.1

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 (40) hide show
  1. package/GlobalStyles/index.ts +51 -4
  2. package/dist/components/Calendar/CalendarUtils.d.ts +2 -5
  3. package/dist/components/HoverCalender/types.d.ts +1 -0
  4. package/dist/hooks/useDropdown.d.ts +11 -0
  5. package/dist/index.es.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/package.json +1 -1
  8. package/dist/stories/HoverCalender/HoverCalenderContainer.stories.d.ts +11 -0
  9. package/package.json +1 -1
  10. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +0 -19
  11. package/dist/components/Button/Button.d.ts.map +0 -1
  12. package/dist/components/Button/Button.styled.d.ts.map +0 -1
  13. package/dist/components/Button/helper.d.ts.map +0 -1
  14. package/dist/components/Button/types.d.ts.map +0 -1
  15. package/dist/components/MultiSelect/onOutsideClick.d.ts +0 -3
  16. package/dist/components/Slider/Slider.d.ts.map +0 -1
  17. package/dist/components/Slider/Slider.styled.d.ts.map +0 -1
  18. package/dist/components/Slider/index.d.ts.map +0 -1
  19. package/dist/components/Slider/types.d.ts.map +0 -1
  20. package/dist/components/StepperDrawer/StepperDrawer.d.ts +0 -3
  21. package/dist/components/StepperDrawer/StepperDrawer.types.d.ts +0 -8
  22. package/dist/components/StepperDrawer/StepperDrawer.utils.d.ts +0 -1
  23. package/dist/components/StepperDrawer/StepperDrawerStyled.d.ts +0 -5
  24. package/dist/components/StepperDrawer/index.d.ts +0 -2
  25. package/dist/components/Text/TextStyled.d.ts.map +0 -1
  26. package/dist/components/Text/index.d.ts.map +0 -1
  27. package/dist/components/Text/types.d.ts.map +0 -1
  28. package/dist/components/Text/typography.d.ts.map +0 -1
  29. package/dist/components/Text/utils.d.ts.map +0 -1
  30. package/dist/components/stepper/index.d.ts.map +0 -1
  31. package/dist/index.d.ts.map +0 -1
  32. package/dist/kwant-ui.es.js +0 -4345
  33. package/dist/kwant-ui.umd.js +0 -507
  34. package/dist/public/assets/sprite.svg +0 -9502
  35. package/dist/stories/Drawer/StepperDrawerStory.d.ts +0 -2
  36. package/dist/stories/StepperDrawer.stories.d.ts +0 -72
  37. package/dist/themes/colors.d.ts.map +0 -1
  38. package/dist/themes/index.d.ts.map +0 -1
  39. package/dist/themes/types.d.ts.map +0 -1
  40. package/dist/types.d.ts +0 -572
@@ -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: stretch;
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;
@@ -11,11 +11,8 @@ export declare const CALENDAR_CONSTANTS: {
11
11
  LAST_30_DAYS: DateObject[];
12
12
  THIS_MONTH: DateObject[];
13
13
  };
14
- export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDuration) => ({
14
+ export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDuration) => {
15
15
  title: string;
16
16
  value: () => DateObject[];
17
- } | {
18
- title: string;
19
- value?: undefined;
20
- })[];
17
+ }[];
21
18
  export { fullMonthsText, regexInputValidate, weeks };
@@ -7,4 +7,5 @@ export type HIStyles = {
7
7
  onSelect?: any;
8
8
  editMode?: boolean;
9
9
  numberOfMonths?: 1 | 2;
10
+ disableEdit?: boolean;
10
11
  };
@@ -0,0 +1,11 @@
1
+ declare const useDropdown: (props?: {
2
+ opened?: boolean;
3
+ onClose?: () => void;
4
+ targetRef?: React.RefObject<HTMLDivElement>;
5
+ }) => {
6
+ isOpen: boolean;
7
+ open: () => void;
8
+ close: () => void;
9
+ toggle: () => void;
10
+ };
11
+ export default useDropdown;