@vchasno/ui-kit 0.2.5 → 0.2.7

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 (34) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/Datepicker/types/components/PulseDot/PulseDot.d.ts +22 -0
  3. package/dist/Datepicker/types/components/PulseDot/index.d.ts +2 -0
  4. package/dist/Datepicker/types/components/Switch/Switch.d.ts +14 -0
  5. package/dist/Datepicker/types/components/Switch/index.d.ts +2 -0
  6. package/dist/Datepicker/types/components/index.d.ts +4 -2
  7. package/dist/Select/types/components/PulseDot/PulseDot.d.ts +22 -0
  8. package/dist/Select/types/components/PulseDot/index.d.ts +2 -0
  9. package/dist/Select/types/components/Switch/Switch.d.ts +14 -0
  10. package/dist/Select/types/components/Switch/index.d.ts +2 -0
  11. package/dist/Select/types/components/index.d.ts +4 -2
  12. package/dist/SelectCreatable/types/components/PulseDot/PulseDot.d.ts +22 -0
  13. package/dist/SelectCreatable/types/components/PulseDot/index.d.ts +2 -0
  14. package/dist/SelectCreatable/types/components/Switch/Switch.d.ts +14 -0
  15. package/dist/SelectCreatable/types/components/Switch/index.d.ts +2 -0
  16. package/dist/SelectCreatable/types/components/index.d.ts +4 -2
  17. package/dist/css/_theme.css +6 -0
  18. package/dist/index.d.ts +27 -8
  19. package/dist/index.js +61 -54
  20. package/dist/index.js.map +1 -1
  21. package/dist/types/components/PulseDot/PulseDot.d.ts +22 -0
  22. package/dist/types/components/PulseDot/index.d.ts +2 -0
  23. package/dist/types/components/Switch/Switch.d.ts +14 -0
  24. package/dist/types/components/Switch/index.d.ts +2 -0
  25. package/dist/types/components/index.d.ts +4 -2
  26. package/package.json +1 -1
  27. package/dist/Datepicker/types/components/Switcher/Switcher.d.ts +0 -14
  28. package/dist/Datepicker/types/components/Switcher/index.d.ts +0 -2
  29. package/dist/Select/types/components/Switcher/Switcher.d.ts +0 -14
  30. package/dist/Select/types/components/Switcher/index.d.ts +0 -2
  31. package/dist/SelectCreatable/types/components/Switcher/Switcher.d.ts +0 -14
  32. package/dist/SelectCreatable/types/components/Switcher/index.d.ts +0 -2
  33. package/dist/types/components/Switcher/Switcher.d.ts +0 -14
  34. package/dist/types/components/Switcher/index.d.ts +0 -2
@@ -0,0 +1,22 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import './PulseDot.css';
3
+ export interface PulseDotProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Color of the dot
6
+ */
7
+ color?: string;
8
+ /**
9
+ * CSS width/height values like 10em | 10px | 50%
10
+ */
11
+ size?: React.CSSProperties['width'];
12
+ /**
13
+ * CSS style object for overriding default styling
14
+ */
15
+ style?: React.CSSProperties;
16
+ /**
17
+ * className for overriding default styling
18
+ */
19
+ className?: string;
20
+ }
21
+ declare const PulseDot: React.FC<PulseDotProps>;
22
+ export default PulseDot;
@@ -0,0 +1,2 @@
1
+ export { default } from './PulseDot';
2
+ export type { PulseDotProps } from './PulseDot';
@@ -0,0 +1,14 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import './Switch.global.css';
3
+ import { LoadingFeedback } from '../types';
4
+ export interface SwitchProps extends HTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback> {
5
+ className?: string;
6
+ label?: string;
7
+ value?: boolean;
8
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ onChecked?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
10
+ defaultChecked?: boolean;
11
+ disabled?: boolean;
12
+ }
13
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
14
+ export default Switch;
@@ -0,0 +1,2 @@
1
+ export { default } from './Switch';
2
+ export type { SwitchProps } from './Switch';
@@ -24,9 +24,11 @@ export { default as Alert } from './Alert';
24
24
  export type { AlertProps } from './Alert';
25
25
  export { default as Spinner } from './Spinner';
26
26
  export type { SpinnerProps } from './Spinner';
27
- export { default as Switcher } from './Switcher';
28
- export type { SwitcherProps } from './Switcher';
27
+ export { default as Switch } from './Switch';
28
+ export type { SwitchProps } from './Switch';
29
29
  export { default as Tabs } from './Tabs';
30
30
  export type { TabsProps } from './Tabs';
31
31
  export { default as Checkbox } from './Checkbox';
32
32
  export type { CheckboxProps } from './Checkbox';
33
+ export { default as PulseDot } from './PulseDot';
34
+ export type { PulseDotProps } from './PulseDot';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vchasno/ui-kit",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "React UI components for Vchasno applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './Switcher.global.css';
3
- export interface SwitcherProps {
4
- className?: string;
5
- color?: string;
6
- size?: string | number;
7
- checked?: boolean;
8
- onChecked?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
9
- disabled?: boolean;
10
- defaultChecked?: boolean;
11
- lazy?: boolean;
12
- }
13
- declare const Switcher: React.ForwardRefExoticComponent<SwitcherProps & React.RefAttributes<HTMLInputElement>>;
14
- export default Switcher;
@@ -1,2 +0,0 @@
1
- export { default } from './Switcher';
2
- export type { SwitcherProps } from './Switcher';
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './Switcher.global.css';
3
- export interface SwitcherProps {
4
- className?: string;
5
- color?: string;
6
- size?: string | number;
7
- checked?: boolean;
8
- onChecked?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
9
- disabled?: boolean;
10
- defaultChecked?: boolean;
11
- lazy?: boolean;
12
- }
13
- declare const Switcher: React.ForwardRefExoticComponent<SwitcherProps & React.RefAttributes<HTMLInputElement>>;
14
- export default Switcher;
@@ -1,2 +0,0 @@
1
- export { default } from './Switcher';
2
- export type { SwitcherProps } from './Switcher';
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './Switcher.global.css';
3
- export interface SwitcherProps {
4
- className?: string;
5
- color?: string;
6
- size?: string | number;
7
- checked?: boolean;
8
- onChecked?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
9
- disabled?: boolean;
10
- defaultChecked?: boolean;
11
- lazy?: boolean;
12
- }
13
- declare const Switcher: React.ForwardRefExoticComponent<SwitcherProps & React.RefAttributes<HTMLInputElement>>;
14
- export default Switcher;
@@ -1,2 +0,0 @@
1
- export { default } from './Switcher';
2
- export type { SwitcherProps } from './Switcher';
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './Switcher.global.css';
3
- export interface SwitcherProps {
4
- className?: string;
5
- color?: string;
6
- size?: string | number;
7
- checked?: boolean;
8
- onChecked?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
9
- disabled?: boolean;
10
- defaultChecked?: boolean;
11
- lazy?: boolean;
12
- }
13
- declare const Switcher: React.ForwardRefExoticComponent<SwitcherProps & React.RefAttributes<HTMLInputElement>>;
14
- export default Switcher;
@@ -1,2 +0,0 @@
1
- export { default } from './Switcher';
2
- export type { SwitcherProps } from './Switcher';