@ssa-ui-kit/core 0.0.1-alpha → 0.0.2-alpha

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 (37) hide show
  1. package/dist/components/AccordionGroup/index.d.ts +1 -0
  2. package/dist/components/AccordionGroup/types.d.ts +4 -1
  3. package/dist/components/Button/fixtures.d.ts +8 -8
  4. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  5. package/dist/components/Checkbox/types.d.ts +2 -2
  6. package/dist/components/Icon/icons/Chart.d.ts +2 -0
  7. package/dist/components/Icon/icons/Clock.d.ts +2 -0
  8. package/dist/components/Icon/icons/Email.d.ts +2 -0
  9. package/dist/components/Icon/icons/Lock.d.ts +2 -0
  10. package/dist/components/Icon/icons/LogIn.d.ts +2 -0
  11. package/dist/components/Icon/icons/Robot.d.ts +2 -0
  12. package/dist/components/Icon/icons/iconsList.d.ts +1 -1
  13. package/dist/components/Popover/types.d.ts +2 -0
  14. package/dist/components/TextField/types.d.ts +2 -10
  15. package/dist/index.d.ts +9 -0
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/package.json +3 -3
  19. package/src/components/AccordionGroup/AccordionTitle.tsx +4 -2
  20. package/src/components/AccordionGroup/index.ts +1 -0
  21. package/src/components/AccordionGroup/types.ts +6 -1
  22. package/src/components/Checkbox/Checkbox.tsx +2 -0
  23. package/src/components/Checkbox/types.ts +8 -2
  24. package/src/components/Icon/icons/Chart.tsx +37 -0
  25. package/src/components/Icon/icons/Clock.tsx +31 -0
  26. package/src/components/Icon/icons/Email.tsx +19 -0
  27. package/src/components/Icon/icons/Lock.tsx +17 -0
  28. package/src/components/Icon/icons/LogIn.tsx +21 -0
  29. package/src/components/Icon/icons/Robot.tsx +18 -0
  30. package/src/components/Icon/icons/iconsList.tsx +6 -0
  31. package/src/components/Icon/icons/index.tsx +12 -0
  32. package/src/components/Popover/hooks/usePopover.tsx +24 -1
  33. package/src/components/Popover/types.ts +3 -0
  34. package/src/components/TextField/types.ts +3 -9
  35. package/src/index.ts +9 -0
  36. package/src/themes/main.ts +1 -1
  37. package/tsbuildcache +1 -1
@@ -3,3 +3,4 @@ export { AccordionContent } from './AccordionContent';
3
3
  export { AccordionGroupContext, AccordionGroupContextProvider, } from './AccordionContext';
4
4
  export { AccordionTitle } from './AccordionTitle';
5
5
  export { Accordion } from './Accordion';
6
+ export * from './types';
@@ -4,11 +4,13 @@ export type AccordionSize = 'empty' | 'small' | 'medium' | 'large';
4
4
  export type SizeStyles = {
5
5
  [K in AccordionSize]: SerializedStyles;
6
6
  };
7
+ type AccordionGroupChildren = React.ReactElement<React.PropsWithChildren<AccordionViewProps>>;
7
8
  export interface AccordionGroupProps {
8
9
  id?: string;
9
- children: React.ReactElement<React.PropsWithChildren<AccordionViewProps>>[];
10
+ children: AccordionGroupChildren | AccordionGroupChildren[];
10
11
  size?: AccordionSize;
11
12
  accordionsStayOpen?: boolean;
13
+ className?: string;
12
14
  }
13
15
  export interface AccordionProps {
14
16
  id: number | string;
@@ -42,3 +44,4 @@ export interface IAccordionGroupContext {
42
44
  toggleOpenedAccordion: (accordion: AccordionProps) => void;
43
45
  setStayOpen: (isStayOpen: boolean) => void;
44
46
  }
47
+ export {};
@@ -23,8 +23,8 @@ export declare const secondaryBtnSpecs: {
23
23
  type?: "button" | "submit" | "reset" | undefined;
24
24
  block?: boolean | undefined;
25
25
  disabled?: boolean | undefined;
26
- startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
27
- endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
26
+ startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
27
+ endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
28
28
  }[];
29
29
  export declare const tertiaryBtnSpecs: {
30
30
  variant: keyof import("./types").IButtonVariants | "custom" | undefined;
@@ -42,8 +42,8 @@ export declare const tertiaryBtnSpecs: {
42
42
  type?: "button" | "submit" | "reset" | undefined;
43
43
  block?: boolean | undefined;
44
44
  disabled?: boolean | undefined;
45
- startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
46
- endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
45
+ startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
46
+ endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
47
47
  }[];
48
48
  export declare const infoBtnSpecs: {
49
49
  variant: keyof import("./types").IButtonVariants | "custom" | undefined;
@@ -61,8 +61,8 @@ export declare const infoBtnSpecs: {
61
61
  type?: "button" | "submit" | "reset" | undefined;
62
62
  block?: boolean | undefined;
63
63
  disabled?: boolean | undefined;
64
- startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
65
- endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
64
+ startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
65
+ endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
66
66
  }[];
67
67
  export declare const attentionBtnSpecs: {
68
68
  variant: keyof import("./types").IButtonVariants | "custom" | undefined;
@@ -80,6 +80,6 @@ export declare const attentionBtnSpecs: {
80
80
  type?: "button" | "submit" | "reset" | undefined;
81
81
  block?: boolean | undefined;
82
82
  disabled?: boolean | undefined;
83
- startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
84
- endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | undefined;
83
+ startIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
84
+ endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | undefined;
85
85
  }[];
@@ -1,3 +1,3 @@
1
1
  import { ICheckboxProps } from './types';
2
- declare const Checkbox: ({ text, id, onChange, isDisabled, externalState, initialState, isIndeterminate, name, isRequired, ref, ...rest }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Checkbox: ({ text, id, onChange, isDisabled, externalState, initialState, isIndeterminate, name, isRequired, ref, register, ...rest }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Checkbox;
@@ -1,6 +1,6 @@
1
- import { Control, FieldPath, FieldValues } from 'react-hook-form';
1
+ import { Control, FieldPath, FieldValues, UseFormReturn } from 'react-hook-form';
2
2
  import { MutableRefObject } from 'react';
3
- export interface ICheckboxProps {
3
+ export interface ICheckboxProps extends Partial<Pick<UseFormReturn, 'register'>> {
4
4
  text?: string;
5
5
  id?: string;
6
6
  onChange?: (newState: boolean) => void;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from '../types';
2
+ export declare const Chart: ({ fill, size }: SVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from '../types';
2
+ export declare const Clock: ({ fill, size }: SVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from '../types';
2
+ export declare const Email: ({ fill, size }: SVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from '../types';
2
+ export declare const Lock: ({ fill, size }: SVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from '../types';
2
+ export declare const LogIn: ({ fill, size }: SVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from '../types';
2
+ export declare const Robot: ({ fill, size }: SVGProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const iconsList: readonly ["diet", "calendar", "home", "stats", "sleep", "trainings", "measurements", "settings", "plus", "minus", "more", "more-vertical", "check", "check-circle", "cross", "user", "union", "notification", "information", "warning", "attention", "visible", "invisible", "log-out", "carrot-down", "carrot-up", "carrot-left", "carrot-right", "radio-on", "circle", "arrow-up", "arrow-down", "filter", "search", "archive", "bin", "change", "copy"];
1
+ export declare const iconsList: readonly ["diet", "calendar", "home", "stats", "sleep", "trainings", "measurements", "settings", "plus", "minus", "more", "more-vertical", "check", "check-circle", "cross", "user", "union", "notification", "information", "warning", "attention", "visible", "invisible", "log-out", "log-in", "email", "lock", "carrot-down", "carrot-up", "carrot-left", "carrot-right", "radio-on", "circle", "arrow-up", "arrow-down", "filter", "search", "archive", "bin", "change", "copy", "robot", "chart", "clock"];
@@ -1,11 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { Placement, useInteractions, UseFloatingReturn, UseFloatingOptions } from '@floating-ui/react';
3
+ export type InteractionsEnabled = 'click' | 'hover' | 'both';
3
4
  export interface PopoverOptions {
4
5
  initialOpen?: boolean;
5
6
  placement?: Placement;
6
7
  modal?: boolean;
7
8
  open?: boolean;
8
9
  floatingOptions?: Partial<UseFloatingOptions>;
10
+ interactionsEnabled?: InteractionsEnabled;
9
11
  onOpenChange?: (open: boolean) => void;
10
12
  }
11
13
  export type SetIDs = {
@@ -1,19 +1,11 @@
1
- /// <reference types="react" />
2
1
  import type { UseFormReturn, FieldError } from 'react-hook-form';
3
- export interface TextFieldProps extends Partial<Pick<UseFormReturn, 'register'>> {
4
- name: string;
5
- type?: string;
2
+ import { InputProps } from '../Input/types';
3
+ export interface TextFieldProps extends InputProps, Partial<Pick<UseFormReturn, 'register'>> {
6
4
  label?: string;
7
- placeholder?: string;
8
- validationSchema?: Record<string, unknown>;
9
5
  errors?: FieldError;
10
6
  success?: boolean;
11
7
  helperText?: string;
12
- disabled?: boolean;
13
8
  rows?: number;
14
- endElement?: React.ReactElement;
15
9
  multirow?: boolean;
16
10
  maxLength?: number;
17
- className?: string;
18
- as?: React.ElementType;
19
11
  }
package/dist/index.d.ts CHANGED
@@ -20,7 +20,11 @@ export * from './components/Checkbox';
20
20
  export { default as FormCheckbox } from './components/FormCheckbox';
21
21
  export * from './components/FormCheckbox';
22
22
  export { default as Dropdown } from './components/Dropdown';
23
+ export { default as DropdownArrow } from './components/DropdownArrow';
24
+ export { default as DropdownBase } from './components/DropdownBase';
23
25
  export { default as DropdownOption } from './components/DropdownOption';
26
+ export { default as DropdownOptions } from './components/DropdownOptions';
27
+ export { default as DropdownToggle } from './components/DropdownToggle';
24
28
  export type { IDropdownOption } from './components/DropdownOptions';
25
29
  export { default as Icon } from './components/Icon';
26
30
  export * from './components/Icon';
@@ -31,11 +35,13 @@ export { default as Modal } from './components/Modal';
31
35
  export { default as ModalDismissButton } from './components/ModalDismissButton';
32
36
  export { default as ModalContent } from './components/ModalContent';
33
37
  export { default as ModalOpenButton } from './components/ModalOpenButton';
38
+ export { default as ModalDialog } from './components/ModalDialog';
34
39
  export * from './components/Modal';
35
40
  export * from './components/Popover';
36
41
  export { default as MultipleDropdown } from './components/MultipleDropdown';
37
42
  export { default as MultipleDropdownNotification } from './components/MultipleDropdownNotification';
38
43
  export { default as MultipleDropdownOptions } from './components/MultipleDropdownOptions';
44
+ export { default as Progress } from './components/Progress';
39
45
  export { default as ProgressBar } from './components/ProgressBar';
40
46
  export { default as ProgressCircle } from './components/ProgressCircle';
41
47
  export { default as ProgressLegend } from './components/ProgressLegend';
@@ -43,6 +49,7 @@ export { default as ProgressLegendItem } from './components/ProgressLegendItem';
43
49
  export { default as ProgressVertical } from './components/ProgressVertical';
44
50
  export { default as Stepper } from './components/Stepper';
45
51
  export { default as Step } from './components/Step';
52
+ export { default as StepConnector } from './components/StepConnector';
46
53
  export { default as StepLabel } from './components/StepLabel';
47
54
  export { default as Switch } from './components/Switch';
48
55
  export * from './components/Switch';
@@ -77,5 +84,7 @@ export * from './components/ResponsiveImage';
77
84
  export { default as Form } from './components/Form';
78
85
  export { default as FormGroup } from './components/FormGroup';
79
86
  export { default as FormAction } from './components/FormAction';
87
+ export { default as FormHelperText } from './components/FormHelperText';
80
88
  export { default as Indicator } from './components/Indicator';
81
89
  export * from './components/ButtonGroup';
90
+ export { default as Link } from './components/Link';