gd-design-library 0.0.5 → 0.0.6

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 (43) hide show
  1. package/assets/index.d.ts +0 -1
  2. package/components/core/Icon/constants.d.ts +0 -7
  3. package/components/core/Select/Select.types.d.ts +3 -4
  4. package/components/core/Select/constants.d.ts +0 -1
  5. package/components/core/Typography/Typography.types.d.ts +1 -1
  6. package/components/domainSpecific/index.d.ts +0 -2
  7. package/components/index.types.d.ts +0 -18
  8. package/components/layout/utils.d.ts +2 -2
  9. package/hooks/index.d.ts +0 -2
  10. package/index.mjs +7793 -5858
  11. package/package.json +1 -1
  12. package/tokens/button.d.ts +2 -2
  13. package/tokens/defaultTheme.d.ts +37 -191
  14. package/tokens/header.d.ts +2 -2
  15. package/tokens/index.d.ts +34 -190
  16. package/tokens/link.d.ts +9 -9
  17. package/tokens/list.d.ts +6 -6
  18. package/tokens/modal.d.ts +4 -4
  19. package/tokens/select.d.ts +3 -3
  20. package/tokens/shadow.d.ts +0 -3
  21. package/tokens/snackbar.d.ts +11 -11
  22. package/tokens/spacing.d.ts +1 -1
  23. package/types/index.d.ts +1 -2
  24. package/assets/icons/chevron-left.d.ts +0 -7
  25. package/components/domainSpecific/Card/Card.d.ts +0 -4
  26. package/components/domainSpecific/Card/Card.types.d.ts +0 -18
  27. package/components/domainSpecific/Card/StyledCard.d.ts +0 -2
  28. package/components/domainSpecific/Card/constants.d.ts +0 -1
  29. package/components/domainSpecific/Card/index.d.ts +0 -2
  30. package/components/domainSpecific/Carousel/Carousel.d.ts +0 -15
  31. package/components/domainSpecific/Carousel/Carousel.types.d.ts +0 -35
  32. package/components/domainSpecific/Carousel/StyledCarousel.d.ts +0 -27
  33. package/components/domainSpecific/Carousel/constants.d.ts +0 -1
  34. package/components/domainSpecific/Carousel/index.d.ts +0 -2
  35. package/components/domainSpecific/Carousel/utils.d.ts +0 -2
  36. package/hooks/useCarousel/index.d.ts +0 -1
  37. package/hooks/useCarousel/useCarousel.d.ts +0 -20
  38. package/hooks/useKeyControls/index.d.ts +0 -1
  39. package/hooks/useKeyControls/useKeyControls.d.ts +0 -2
  40. package/tokens/card.d.ts +0 -46
  41. package/tokens/carousel.d.ts +0 -110
  42. package/types/carousel.d.ts +0 -1
  43. package/types/keys.d.ts +0 -8
package/assets/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export { DotIcon } from './icons/dot';
8
8
  export { CheckIcon } from './icons/check';
9
9
  export { ArrowDownIcon } from './icons/arrow-down';
10
10
  export { ChevronRightIcon } from './icons/chevron-right';
11
- export { ChevronLeftIcon } from './icons/chevron-left';
12
11
  export { MobileMenuIcon } from './icons/mobile_menu_button';
13
12
  export { HomeIcon } from './icons/home';
14
13
  export { SlashIcon } from './icons/slash';
@@ -64,13 +64,6 @@ export declare const IconsList: {
64
64
  fillSvg?: string | undefined;
65
65
  fill?: string | undefined;
66
66
  }) => import("react/jsx-runtime").JSX.Element;
67
- arrowLeft: ({ width, height, fillSvg, fill, ...rest }: {
68
- [x: string]: any;
69
- width?: number | undefined;
70
- height?: number | undefined;
71
- fillSvg?: string | undefined;
72
- fill?: string | undefined;
73
- }) => import("react/jsx-runtime").JSX.Element;
74
67
  mobileMenu: ({ width, height, fillSvg, fill, ...rest }: {
75
68
  [x: string]: any;
76
69
  width?: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, MouseEvent } from 'react';
2
- import { Theme } from '../../../hooks/useTheme';
2
+ import { Theme } from '../../../hooks';
3
3
  import { CommonCoreComponentProps, CommonCoreStyledComponentProps } from '..';
4
4
  import { OnSelectProps } from '../types/events.types';
5
5
  export interface Option {
@@ -26,9 +26,8 @@ export interface SelectProps<T extends HTMLElement = HTMLDivElement> extends Exc
26
26
  initiator?: ReactNode;
27
27
  width?: number | string;
28
28
  emptyItemsResult?: string;
29
- selectedItem?: string;
30
- renderOption?: (value: renderOptionType) => ReactNode;
31
- renderDropdownHeader?: (theme: Theme, dropdownParams?: DropdownParams) => ReactNode;
29
+ renderOption?: (value: renderOptionType) => React.ReactNode;
30
+ renderDropdownHeader?: (theme: Theme, dropdownParams?: DropdownParams) => React.ReactNode;
32
31
  autoOpen?: boolean;
33
32
  activeIndex?: string | number;
34
33
  }
@@ -1,2 +1 @@
1
1
  export declare const COMPONENT_NAME = "Select";
2
- export declare const DEFAULT_SELECTED_VALUE = "Select";
@@ -13,7 +13,7 @@ export declare enum TextAlign {
13
13
  Revert = "revert",
14
14
  RevertLayer = "revert-layer",
15
15
  Unset = "unset",
16
- WebkitCenter = "-webkit-center",
16
+ Webkitcenter = "-webkit-center",
17
17
  MozCenter = "-moz-center"
18
18
  }
19
19
  export declare enum TypographyVariant {
@@ -1,5 +1,3 @@
1
- export * from './Carousel';
2
- export * from './Card';
3
1
  export * from './Counter';
4
2
  export * from './Header';
5
3
  export * from './Price';
@@ -9,24 +9,6 @@ export interface CommonStyledComponentProps {
9
9
  $styles?: CSSObject;
10
10
  theme: typeof defaultTheme;
11
11
  }
12
- export interface BoxComponentProps extends CommonComponentProps {
13
- overflow?: string;
14
- minWidth?: string;
15
- width?: string;
16
- maxWidth?: string;
17
- minHeight?: string;
18
- height?: string;
19
- maxHeight?: string;
20
- }
21
- export interface BoxStyledComponentProps extends CommonStyledComponentProps {
22
- $overflow?: string;
23
- $minWidth?: string;
24
- $width?: string;
25
- $maxWidth?: string;
26
- $minHeight?: string;
27
- $height?: string;
28
- $maxHeight?: string;
29
- }
30
12
  export type AlignType = 'start' | 'center' | 'end' | 'stretch';
31
13
  export type JustifyType = 'start' | 'center' | 'end' | 'between' | 'around';
32
14
  export declare enum SizeVariant {
@@ -1,4 +1,4 @@
1
1
  import { AlignType, JustifyType } from '../index.types';
2
- export declare const calculateAlign: (align: AlignType) => "center" | "flex-end" | "flex-start" | "stretch";
3
- export declare const calculateJustify: (justify: JustifyType) => "center" | "flex-end" | "space-between" | "space-around" | "flex-start";
2
+ export declare const calculateAlign: (align: AlignType) => "stretch" | "center" | "flex-end" | "flex-start";
3
+ export declare const calculateJustify: (justify: JustifyType) => "space-around" | "space-between" | "center" | "flex-end" | "flex-start";
4
4
  export declare const calculateGutter: (gutter?: number | string) => string;
package/hooks/index.d.ts CHANGED
@@ -2,5 +2,3 @@ export * from './useTheme';
2
2
  export * from './useClickOutside';
3
3
  export * from './useAutoFocus';
4
4
  export * from './useMediaQuery';
5
- export * from './useKeyControls';
6
- export * from './useCarousel';