@vchasno/ui-kit 0.3.22 → 0.3.24

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 (33) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/Datepicker/types/components/Select/Label.d.ts +1 -2
  3. package/dist/Datepicker/types/components/Select/customComponents.d.ts +0 -2
  4. package/dist/Datepicker/types/components/Select/useCheckValueExists.d.ts +3 -0
  5. package/dist/Menu/types/components/Select/Label.d.ts +1 -2
  6. package/dist/Menu/types/components/Select/customComponents.d.ts +0 -2
  7. package/dist/Menu/types/components/Select/useCheckValueExists.d.ts +3 -0
  8. package/dist/ProjectsPopover/types/components/Select/Label.d.ts +1 -2
  9. package/dist/ProjectsPopover/types/components/Select/customComponents.d.ts +0 -2
  10. package/dist/ProjectsPopover/types/components/Select/useCheckValueExists.d.ts +3 -0
  11. package/dist/Select/index.cjs.js +37 -24
  12. package/dist/Select/index.cjs.js.map +1 -1
  13. package/dist/Select/index.js +37 -24
  14. package/dist/Select/index.js.map +1 -1
  15. package/dist/Select/types/components/Select/Label.d.ts +1 -2
  16. package/dist/Select/types/components/Select/customComponents.d.ts +0 -2
  17. package/dist/Select/types/components/Select/useCheckValueExists.d.ts +3 -0
  18. package/dist/SelectCreatable/index.cjs.js +38 -25
  19. package/dist/SelectCreatable/index.cjs.js.map +1 -1
  20. package/dist/SelectCreatable/index.js +38 -25
  21. package/dist/SelectCreatable/index.js.map +1 -1
  22. package/dist/SelectCreatable/types/components/Select/Label.d.ts +1 -2
  23. package/dist/SelectCreatable/types/components/Select/customComponents.d.ts +0 -2
  24. package/dist/SelectCreatable/types/components/Select/useCheckValueExists.d.ts +3 -0
  25. package/dist/Snackbar/types/components/Select/Label.d.ts +1 -2
  26. package/dist/Snackbar/types/components/Select/customComponents.d.ts +0 -2
  27. package/dist/Snackbar/types/components/Select/useCheckValueExists.d.ts +3 -0
  28. package/dist/css/Select.global.css +26 -4
  29. package/dist/css/_theme.css +1 -1
  30. package/dist/types/components/Select/Label.d.ts +1 -2
  31. package/dist/types/components/Select/customComponents.d.ts +0 -2
  32. package/dist/types/components/Select/useCheckValueExists.d.ts +3 -0
  33. package/package.json +1 -1
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  interface LabelProps {
3
- isFloating: boolean;
4
- label: string;
3
+ label?: string;
5
4
  }
6
5
  declare const Label: React.FC<React.PropsWithChildren<LabelProps>>;
7
6
  export default Label;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ClearIndicatorProps, DropdownIndicatorProps } from 'react-select';
3
- import { CustomControlProps } from './types';
4
3
  declare const _default: {
5
4
  DropdownIndicator: (props: DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
6
5
  LoadingIndicator: () => React.JSX.Element;
7
6
  IndicatorSeparator: () => null;
8
7
  ClearIndicator: (props: ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
9
- Control: (props: CustomControlProps) => React.JSX.Element;
10
8
  };
11
9
  export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SelectProps } from './Select';
3
+ export declare const useCheckValueExists: (props: Pick<SelectProps, 'value' | 'inputValue' | 'defaultValue' | 'defaultInputValue'>) => readonly [boolean, React.Dispatch<React.SetStateAction<boolean>>];
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  interface LabelProps {
3
- isFloating: boolean;
4
- label: string;
3
+ label?: string;
5
4
  }
6
5
  declare const Label: React.FC<React.PropsWithChildren<LabelProps>>;
7
6
  export default Label;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ClearIndicatorProps, DropdownIndicatorProps } from 'react-select';
3
- import { CustomControlProps } from './types';
4
3
  declare const _default: {
5
4
  DropdownIndicator: (props: DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
6
5
  LoadingIndicator: () => React.JSX.Element;
7
6
  IndicatorSeparator: () => null;
8
7
  ClearIndicator: (props: ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
9
- Control: (props: CustomControlProps) => React.JSX.Element;
10
8
  };
11
9
  export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SelectProps } from './Select';
3
+ export declare const useCheckValueExists: (props: Pick<SelectProps, 'value' | 'inputValue' | 'defaultValue' | 'defaultInputValue'>) => readonly [boolean, React.Dispatch<React.SetStateAction<boolean>>];
@@ -1,9 +1,23 @@
1
1
  .vchasno-ui-select {
2
+ position: relative;
2
3
  display: inline-flex;
3
4
  flex-direction: column;
4
5
  gap: 5px;
5
6
  }
6
7
 
8
+ .vchasno-ui-select .vchasno-ui-label-text {
9
+ transform: translate(0, -18px);
10
+ transition:
11
+ font-size 0.3s,
12
+ transform 0.3s;
13
+ }
14
+
15
+ .vchasno-ui-select.--with-value .vchasno-ui-label-text,
16
+ .vchasno-ui-select:focus-within .vchasno-ui-label-text {
17
+ font-size: 12px;
18
+ transform: translate(0, -42px);
19
+ }
20
+
7
21
  .vchasno-ui-select.--wide {
8
22
  width: 100%;
9
23
  }
@@ -157,17 +171,25 @@
157
171
  }
158
172
 
159
173
  .vchasno-ui-select .vchasno-ui-select__multi-value {
174
+ border-radius: 8px;
160
175
  background-color: var(--vchasno-ui-select-option-bg-selected);
161
- outline: 1px solid var(--vchasno-ui-select-menu-border-color, #6b5fff);
176
+ outline: 1px solid var(--vchasno-ui-select-menu-border-color, transparent);
162
177
  }
163
178
 
164
179
  .vchasno-ui-select .vchasno-ui-select__multi-value__remove {
165
- transition:
166
- background-color var(--vchasno-ui-transition-duration-sec, 0.3s),
167
- color var(--vchasno-ui-transition-duration-sec, 0.3s);
180
+ padding: 0;
181
+ padding-right: 3px;
182
+ background-color: transparent;
183
+ transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
184
+ }
185
+
186
+ .vchasno-ui-select .vchasno-ui-select__multi-value__remove svg {
187
+ width: 16px;
188
+ height: 16px;
168
189
  }
169
190
 
170
191
  .vchasno-ui-select .vchasno-ui-select__multi-value__remove:hover {
192
+ background-color: transparent;
171
193
  cursor: pointer;
172
194
  }
173
195
 
@@ -41,7 +41,7 @@
41
41
  --vchasno-ui-checkbox-font-size: 12px;
42
42
  --vchasno-ui-select-option-bg-selected: #f3f6f8;
43
43
  --vchasno-ui-select-option-color-selected: #333;
44
- --vchasno-ui-select-menu-border-color: #6b5fff;
44
+ --vchasno-ui-select-menu-border-color: transparent;
45
45
  --vchasno-ui-calendar-color: #6b5fff;
46
46
  --vchasno-ui-calendar-bg-hover: #ffb200;
47
47
  --vchasno-ui-text-primary-color: #333;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  interface LabelProps {
3
- isFloating: boolean;
4
- label: string;
3
+ label?: string;
5
4
  }
6
5
  declare const Label: React.FC<React.PropsWithChildren<LabelProps>>;
7
6
  export default Label;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ClearIndicatorProps, DropdownIndicatorProps } from 'react-select';
3
- import { CustomControlProps } from './types';
4
3
  declare const _default: {
5
4
  DropdownIndicator: (props: DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
6
5
  LoadingIndicator: () => React.JSX.Element;
7
6
  IndicatorSeparator: () => null;
8
7
  ClearIndicator: (props: ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
9
- Control: (props: CustomControlProps) => React.JSX.Element;
10
8
  };
11
9
  export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SelectProps } from './Select';
3
+ export declare const useCheckValueExists: (props: Pick<SelectProps, 'value' | 'inputValue' | 'defaultValue' | 'defaultInputValue'>) => readonly [boolean, React.Dispatch<React.SetStateAction<boolean>>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vchasno/ui-kit",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "React UI components for Vchasno applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",