@peculiar/react-components 1.1.1 → 1.1.2

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 (102) hide show
  1. package/dist/cjs/Autocomplete/autocomplete.js +3 -15
  2. package/dist/cjs/Autocomplete/autocomplete.js.map +1 -1
  3. package/dist/cjs/NativeSelect/native_select.js +3 -14
  4. package/dist/cjs/NativeSelect/native_select.js.map +1 -1
  5. package/dist/cjs/Select/select.js +3 -14
  6. package/dist/cjs/Select/select.js.map +1 -1
  7. package/dist/cjs/TextField/text_field.js +3 -14
  8. package/dist/cjs/TextField/text_field.js.map +1 -1
  9. package/dist/cjs/TextareaField/textarea_field.js +3 -14
  10. package/dist/cjs/TextareaField/textarea_field.js.map +1 -1
  11. package/dist/cjs/hooks/use_clipboard.js +1 -1
  12. package/dist/esm/Autocomplete/autocomplete.js +3 -15
  13. package/dist/esm/Autocomplete/autocomplete.js.map +1 -1
  14. package/dist/esm/NativeSelect/native_select.js +3 -14
  15. package/dist/esm/NativeSelect/native_select.js.map +1 -1
  16. package/dist/esm/Select/select.js +3 -14
  17. package/dist/esm/Select/select.js.map +1 -1
  18. package/dist/esm/TextField/text_field.js +3 -14
  19. package/dist/esm/TextField/text_field.js.map +1 -1
  20. package/dist/esm/TextareaField/textarea_field.js +3 -14
  21. package/dist/esm/TextareaField/textarea_field.js.map +1 -1
  22. package/dist/esm/hooks/use_clipboard.js +1 -1
  23. package/dist/esnext/Autocomplete/autocomplete.js +3 -15
  24. package/dist/esnext/Autocomplete/autocomplete.js.map +1 -1
  25. package/dist/esnext/NativeSelect/native_select.js +3 -14
  26. package/dist/esnext/NativeSelect/native_select.js.map +1 -1
  27. package/dist/esnext/Select/select.js +3 -14
  28. package/dist/esnext/Select/select.js.map +1 -1
  29. package/dist/esnext/TextField/text_field.js +3 -14
  30. package/dist/esnext/TextField/text_field.js.map +1 -1
  31. package/dist/esnext/TextareaField/textarea_field.js +3 -14
  32. package/dist/esnext/TextareaField/textarea_field.js.map +1 -1
  33. package/dist/types/Alert/alert.d.ts +2 -2
  34. package/dist/types/Autocomplete/autocomplete.d.ts +2 -2
  35. package/dist/types/Avatar/avatar.d.ts +2 -2
  36. package/dist/types/Backdrop/backdrop.d.ts +2 -2
  37. package/dist/types/Box/box.d.ts +1 -1
  38. package/dist/types/Button/button.d.ts +1 -1
  39. package/dist/types/ButtonBase/button_base.d.ts +1 -1
  40. package/dist/types/Checkbox/checkbox.d.ts +2 -2
  41. package/dist/types/Chip/chip.d.ts +1 -1
  42. package/dist/types/CircularProgress/circular_progress.d.ts +2 -2
  43. package/dist/types/Collapse/collapse.d.ts +3 -3
  44. package/dist/types/Dialog/dialog.d.ts +1 -1
  45. package/dist/types/Dialog/dialog_actions.d.ts +1 -1
  46. package/dist/types/Dialog/dialog_content.d.ts +1 -1
  47. package/dist/types/Dialog/dialog_title.d.ts +1 -1
  48. package/dist/types/Drawer/drawer.d.ts +1 -1
  49. package/dist/types/Fab/fab.d.ts +1 -1
  50. package/dist/types/Fade/fade.d.ts +2 -2
  51. package/dist/types/Flex/flex.d.ts +1 -1
  52. package/dist/types/Flex/flex_container.d.ts +1 -1
  53. package/dist/types/FocusTrap/focus_trap.d.ts +1 -1
  54. package/dist/types/IconButton/icon_button.d.ts +1 -1
  55. package/dist/types/Image/image.d.ts +1 -1
  56. package/dist/types/LinearProgress/linear_progress.d.ts +1 -1
  57. package/dist/types/Menu/menu.d.ts +5 -5
  58. package/dist/types/MenuList/menu_item.d.ts +2 -2
  59. package/dist/types/MenuList/menu_list.d.ts +2 -2
  60. package/dist/types/Modal/modal.d.ts +2 -2
  61. package/dist/types/NativeSelect/native_select.d.ts +1 -1
  62. package/dist/types/OverridableComponent.d.ts +4 -4
  63. package/dist/types/Popover/popover.d.ts +2 -2
  64. package/dist/types/Popper/popper.d.ts +2 -2
  65. package/dist/types/Portal/portal.d.ts +1 -1
  66. package/dist/types/Radio/radio.d.ts +2 -2
  67. package/dist/types/Select/select.d.ts +2 -2
  68. package/dist/types/Skeleton/skeleton.d.ts +1 -1
  69. package/dist/types/Slide/slide.d.ts +2 -2
  70. package/dist/types/Slider/slider.d.ts +2 -2
  71. package/dist/types/Switch/switch.d.ts +2 -2
  72. package/dist/types/Tabs/tab.d.ts +1 -1
  73. package/dist/types/Tabs/tabs.d.ts +1 -1
  74. package/dist/types/TextField/text_field.d.ts +1 -1
  75. package/dist/types/TextareaField/textarea_field.d.ts +1 -1
  76. package/dist/types/Toast/toast.d.ts +1 -1
  77. package/dist/types/Toast/toast_container.d.ts +2 -2
  78. package/dist/types/Toast/toast_context.d.ts +3 -3
  79. package/dist/types/Toast/toast_provider.d.ts +1 -1
  80. package/dist/types/Tooltip/tooltip.d.ts +2 -2
  81. package/dist/types/Typography/typography.d.ts +1 -1
  82. package/dist/types/hooks/use_autocomplete.d.ts +9 -9
  83. package/dist/types/hooks/use_controllable.d.ts +1 -1
  84. package/dist/types/hooks/use_image.d.ts +3 -3
  85. package/dist/types/hooks/use_intersection_observer.d.ts +3 -3
  86. package/dist/types/icons/arrow_drop_down_icon.d.ts +1 -1
  87. package/dist/types/icons/arrow_rigth.d.ts +1 -1
  88. package/dist/types/icons/check_circle_icon.d.ts +1 -1
  89. package/dist/types/icons/check_icon.d.ts +1 -1
  90. package/dist/types/icons/close_circle_icon.d.ts +1 -1
  91. package/dist/types/icons/close_icon.d.ts +1 -1
  92. package/dist/types/icons/close_small_icon.d.ts +1 -1
  93. package/dist/types/icons/dot_icon.d.ts +1 -1
  94. package/dist/types/icons/minus_icon.d.ts +1 -1
  95. package/dist/types/icons/plus_icon.d.ts +1 -1
  96. package/dist/types/icons/warning_icon.d.ts +1 -1
  97. package/dist/types/styles/foundations/colors.d.ts +2 -2
  98. package/dist/types/styles/styled_engine_provider.d.ts +1 -1
  99. package/dist/types/styles/theme_provider.d.ts +1 -1
  100. package/dist/types/styles/types.d.ts +7 -7
  101. package/dist/types/utils/copy_to_clipboard.d.ts +1 -1
  102. package/package.json +10 -9
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type SwitchOwnProps = {
5
+ type SwitchOwnProps = {
6
6
  /**
7
7
  * If `true`, the component is checked.
8
8
  */
@@ -44,7 +44,7 @@ declare type SwitchOwnProps = {
44
44
  */
45
45
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
46
46
  };
47
- export declare type SwitchProps = SwitchOwnProps & Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'htmlFor' | 'onChange'>;
47
+ export type SwitchProps = SwitchOwnProps & Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'htmlFor' | 'onChange'>;
48
48
  /**
49
49
  *
50
50
  */
@@ -30,7 +30,7 @@ export interface TabTypeMap<P = {}, D extends React.ElementType = 'button'> {
30
30
  props: P & TabOwnProps;
31
31
  defaultComponent: D;
32
32
  }
33
- export declare type TabProps<D extends React.ElementType = TabTypeMap['defaultComponent']> = OverrideProps<TabTypeMap<{}, D>, D> & {
33
+ export type TabProps<D extends React.ElementType = TabTypeMap['defaultComponent']> = OverrideProps<TabTypeMap<{}, D>, D> & {
34
34
  component?: D;
35
35
  };
36
36
  /**
@@ -3,7 +3,7 @@ import { Tab, TabProps } from './tab';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type TabsOwnProps = {
6
+ type TabsOwnProps = {
7
7
  /**
8
8
  * The content of the component.
9
9
  */
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type TextFieldOwnProps = {
5
+ type TextFieldOwnProps = {
6
6
  /**
7
7
  * If `true`, the component is disabled.
8
8
  */
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type TextareaFieldOwnProps = {
5
+ type TextareaFieldOwnProps = {
6
6
  /**
7
7
  * If `true`, the component is disabled.
8
8
  */
@@ -3,7 +3,7 @@ import { AlertProps } from '../Alert';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type ToastOwnProps = {
6
+ type ToastOwnProps = {
7
7
  /**
8
8
  * The `id` of the toast. Mostly used when you need to prevent duplicate.
9
9
  */
@@ -2,13 +2,13 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type ToastContainerOwnProps = {
5
+ type ToastContainerOwnProps = {
6
6
  /**
7
7
  * The content of the component.
8
8
  */
9
9
  children: React.ReactNode;
10
10
  };
11
- export declare type ToastContainerProps = ToastContainerOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
11
+ export type ToastContainerProps = ToastContainerOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
12
12
  /**
13
13
  *
14
14
  */
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { AlertProps } from '../Alert';
3
- export declare type BaseToastType = {
3
+ export type BaseToastType = {
4
4
  /**
5
5
  * The message of the toast.
6
6
  */
@@ -28,10 +28,10 @@ export declare type BaseToastType = {
28
28
  */
29
29
  id?: string;
30
30
  };
31
- export declare type ToastType = BaseToastType & {
31
+ export type ToastType = BaseToastType & {
32
32
  createdAt: number;
33
33
  };
34
- export declare type ToastContextType = {
34
+ export type ToastContextType = {
35
35
  addToast: (options: BaseToastType) => void;
36
36
  removeToast: (id: string) => void;
37
37
  removeAllToasts: () => void;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ToastContainerProps } from './toast_container';
3
- declare type BaseProps = {
3
+ type BaseProps = {
4
4
  /**
5
5
  * The content of the component.
6
6
  */
@@ -3,7 +3,7 @@ import { Placement } from '@popperjs/core';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- export declare type TooltipOwnProps = {
6
+ export type TooltipOwnProps = {
7
7
  /**
8
8
  * If `true`, the component is shown.
9
9
  */
@@ -70,7 +70,7 @@ export declare type TooltipOwnProps = {
70
70
  */
71
71
  offset?: number;
72
72
  };
73
- export declare type TooltipProps = TooltipOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'children'>;
73
+ export type TooltipProps = TooltipOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'children'>;
74
74
  /**
75
75
  *
76
76
  */
@@ -28,7 +28,7 @@ export interface TypographyTypeMap<P = {}, D extends React.ElementType = 'p'> {
28
28
  props: P & TypographyOwnProps;
29
29
  defaultComponent: D;
30
30
  }
31
- export declare type TypographyProps<D extends React.ElementType = TypographyTypeMap['defaultComponent']> = OverrideProps<TypographyTypeMap<{}, D>, D> & {
31
+ export type TypographyProps<D extends React.ElementType = TypographyTypeMap['defaultComponent']> = OverrideProps<TypographyTypeMap<{}, D>, D> & {
32
32
  component?: D;
33
33
  };
34
34
  export declare const Typography: OverridableComponent<TypographyTypeMap<{}, "p">>;
@@ -3,23 +3,23 @@ import type { PopoverProps } from '../Popover';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- export declare type AutocompleteHighlightChangeReason = ('auto' | 'mouse' | 'keyboard');
7
- export declare type AutocompleteHighlightChangeDirectionType = ('next' | 'previous');
8
- export declare type AutocompleteHighlightChangeDiffType = (number | 'reset' | 'start' | 'end');
9
- export declare type AutocompleteChangeReason = ('selectOption' | 'removeOption');
6
+ export type AutocompleteHighlightChangeReason = ('auto' | 'mouse' | 'keyboard');
7
+ export type AutocompleteHighlightChangeDirectionType = ('next' | 'previous');
8
+ export type AutocompleteHighlightChangeDiffType = (number | 'reset' | 'start' | 'end');
9
+ export type AutocompleteChangeReason = ('selectOption' | 'removeOption');
10
10
  export interface AutocompleteChangeDetails<T = string> {
11
11
  option: T;
12
12
  index: number;
13
13
  }
14
- export declare type AutocompleteValue<T, Multiple> = Multiple extends undefined | false ? T | null : T[];
15
- export declare type AutocompleteFilterOptionsType<T, Multiple> = (options: ReadonlyArray<T>, searchValue: string, value: AutocompleteValue<T, Multiple>, getOptionLabel: (option: T) => string) => ReadonlyArray<T>;
16
- export declare type AutocompleteGroupedOption<T> = {
14
+ export type AutocompleteValue<T, Multiple> = Multiple extends undefined | false ? T | null : T[];
15
+ export type AutocompleteFilterOptionsType<T, Multiple> = (options: ReadonlyArray<T>, searchValue: string, value: AutocompleteValue<T, Multiple>, getOptionLabel: (option: T) => string) => ReadonlyArray<T>;
16
+ export type AutocompleteGroupedOption<T> = {
17
17
  key: number;
18
18
  index: number;
19
19
  group: string;
20
20
  options: T[];
21
21
  };
22
- export declare type UseAutocompleteProps<T, Multiple extends boolean | undefined = undefined> = {
22
+ export type UseAutocompleteProps<T, Multiple extends boolean | undefined = undefined> = {
23
23
  /**
24
24
  * This prop is used to help implement the accessibility logic.
25
25
  * If you don't provide an id it will fall back to a randomly generated one.
@@ -87,7 +87,7 @@ export declare type UseAutocompleteProps<T, Multiple extends boolean | undefined
87
87
  */
88
88
  onInputChange?: (event: React.SyntheticEvent, value: string) => void;
89
89
  };
90
- export declare type UseAutocompleteReturnType<T, Multiple extends boolean | undefined = undefined> = {
90
+ export type UseAutocompleteReturnType<T, Multiple extends boolean | undefined = undefined> = {
91
91
  groupedOptions: ReadonlyArray<T> | ReadonlyArray<AutocompleteGroupedOption<T>>;
92
92
  value: AutocompleteValue<T, Multiple>;
93
93
  searchValue: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type UseControllableStateProps<T> = {
2
+ export type UseControllableStateProps<T> = {
3
3
  /**
4
4
  * The value to used in controlled mode
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type UseImageOptionsType = {
2
+ export type UseImageOptionsType = {
3
3
  /**
4
4
  * A callback for when the image `src` has been loaded.
5
5
  */
@@ -9,7 +9,7 @@ export declare type UseImageOptionsType = {
9
9
  */
10
10
  onError?: (error: string | React.SyntheticEvent<HTMLImageElement, Event>) => void;
11
11
  };
12
- declare type Status = ('loading' | 'failed' | 'pending' | 'loaded');
12
+ type Status = ('loading' | 'failed' | 'pending' | 'loaded');
13
13
  /**
14
14
  * React hook that loads an image in the browser,
15
15
  * and let's us know the `status` so we can show image
@@ -26,7 +26,7 @@ declare type Status = ('loading' | 'failed' | 'pending' | 'loaded');
26
26
  * }
27
27
  * ```
28
28
  */
29
- declare type UseImageReturnType = {
29
+ type UseImageReturnType = {
30
30
  status: Status;
31
31
  image?: HTMLImageElement;
32
32
  };
@@ -1,6 +1,6 @@
1
- export declare type IntersectionObserverHookRefCallbackNode = HTMLElement | null;
2
- export declare type IntersectionObserverHookRefCallback = (node: IntersectionObserverHookRefCallbackNode) => void;
3
- export declare type IntersectionObserverHookResult = [
1
+ export type IntersectionObserverHookRefCallbackNode = HTMLElement | null;
2
+ export type IntersectionObserverHookRefCallback = (node: IntersectionObserverHookRefCallbackNode) => void;
3
+ export type IntersectionObserverHookResult = [
4
4
  IntersectionObserverHookRefCallback,
5
5
  {
6
6
  isIntersecting: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const ArrowDropDownIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const ArrowRightIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const CheckCircleIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const CheckIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const CloseCircleIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const CloseIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const CloseSmallIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const DotIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const MinusIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const PlusIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
2
+ type IconProps = React.HTMLAttributes<HTMLOrSVGElement>;
3
3
  export declare const WarningIcon: React.FC<IconProps>;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- declare type ColorPalletteSuffix = {
1
+ type ColorPalletteSuffix = {
2
2
  '-tint-5': string;
3
3
  '-tint-4': string;
4
4
  '-tint-3': string;
@@ -11,7 +11,7 @@ declare type ColorPalletteSuffix = {
11
11
  '-shade-4': string;
12
12
  '-shade-5': string;
13
13
  };
14
- declare type RemapColorPaletteKeys<Type, Name extends string> = {
14
+ type RemapColorPaletteKeys<Type, Name extends string> = {
15
15
  [K in keyof Type as `${Name}${string & K}`]: Type[K];
16
16
  };
17
17
  export declare const generateColorPalette: <Name extends string>(name: Name, hex: string) => RemapColorPaletteKeys<ColorPalletteSuffix, Name>;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  /**
3
3
  * Types.
4
4
  */
5
- declare type StyledEngineProviderProps = {
5
+ type StyledEngineProviderProps = {
6
6
  children: React.ReactElement;
7
7
  };
8
8
  export declare const StyledEngineProvider: React.FC<StyledEngineProviderProps>;
@@ -3,7 +3,7 @@ import type { ThemeOptionsType } from './types';
3
3
  /**
4
4
  * Types.
5
5
  */
6
- declare type ThemeProviderProps = {
6
+ type ThemeProviderProps = {
7
7
  children: React.ReactElement;
8
8
  theme?: ThemeOptionsType;
9
9
  mode?: ('light' | 'dark');
@@ -1,20 +1,20 @@
1
- export declare type ColorType = ('primary-tint-5' | 'primary-tint-4' | 'primary-tint-3' | 'primary-tint-2' | 'primary-tint-1' | 'primary' | 'primary-shade-1' | 'primary-shade-2' | 'primary-shade-3' | 'primary-shade-4' | 'primary-shade-5' | 'primary-contrast' | 'secondary-tint-5' | 'secondary-tint-4' | 'secondary-tint-3' | 'secondary-tint-2' | 'secondary-tint-1' | 'secondary' | 'secondary-shade-1' | 'secondary-shade-2' | 'secondary-shade-3' | 'secondary-shade-4' | 'secondary-shade-5' | 'secondary-contrast' | 'wrong-tint-5' | 'wrong-tint-4' | 'wrong-tint-3' | 'wrong-tint-2' | 'wrong-tint-1' | 'wrong' | 'wrong-shade-1' | 'wrong-shade-2' | 'wrong-shade-3' | 'wrong-shade-4' | 'wrong-shade-5' | 'wrong-contrast' | 'attention-tint-5' | 'attention-tint-4' | 'attention-tint-3' | 'attention-tint-2' | 'attention-tint-1' | 'attention' | 'attention-shade-1' | 'attention-shade-2' | 'attention-shade-3' | 'attention-shade-4' | 'attention-shade-5' | 'success-tint-5' | 'success-tint-4' | 'success-tint-3' | 'success-tint-2' | 'success-tint-1' | 'success' | 'success-shade-1' | 'success-shade-2' | 'success-shade-3' | 'success-shade-4' | 'success-shade-5' | 'black' | 'gray-10' | 'gray-9' | 'gray-8' | 'gray-7' | 'gray-6' | 'gray-5' | 'gray-4' | 'gray-3' | 'gray-2' | 'gray-1' | 'white' | 'extra-1' | 'extra-2');
2
- export declare type ShadowType = ('light-low' | 'light-medium' | 'light-hight' | 'light-soft' | 'dark-medium' | 'dark-hight');
3
- export declare type TypographyPropertiesType = {
1
+ export type ColorType = ('primary-tint-5' | 'primary-tint-4' | 'primary-tint-3' | 'primary-tint-2' | 'primary-tint-1' | 'primary' | 'primary-shade-1' | 'primary-shade-2' | 'primary-shade-3' | 'primary-shade-4' | 'primary-shade-5' | 'primary-contrast' | 'secondary-tint-5' | 'secondary-tint-4' | 'secondary-tint-3' | 'secondary-tint-2' | 'secondary-tint-1' | 'secondary' | 'secondary-shade-1' | 'secondary-shade-2' | 'secondary-shade-3' | 'secondary-shade-4' | 'secondary-shade-5' | 'secondary-contrast' | 'wrong-tint-5' | 'wrong-tint-4' | 'wrong-tint-3' | 'wrong-tint-2' | 'wrong-tint-1' | 'wrong' | 'wrong-shade-1' | 'wrong-shade-2' | 'wrong-shade-3' | 'wrong-shade-4' | 'wrong-shade-5' | 'wrong-contrast' | 'attention-tint-5' | 'attention-tint-4' | 'attention-tint-3' | 'attention-tint-2' | 'attention-tint-1' | 'attention' | 'attention-shade-1' | 'attention-shade-2' | 'attention-shade-3' | 'attention-shade-4' | 'attention-shade-5' | 'success-tint-5' | 'success-tint-4' | 'success-tint-3' | 'success-tint-2' | 'success-tint-1' | 'success' | 'success-shade-1' | 'success-shade-2' | 'success-shade-3' | 'success-shade-4' | 'success-shade-5' | 'black' | 'gray-10' | 'gray-9' | 'gray-8' | 'gray-7' | 'gray-6' | 'gray-5' | 'gray-4' | 'gray-3' | 'gray-2' | 'gray-1' | 'white' | 'extra-1' | 'extra-2');
2
+ export type ShadowType = ('light-low' | 'light-medium' | 'light-hight' | 'light-soft' | 'dark-medium' | 'dark-hight');
3
+ export type TypographyPropertiesType = {
4
4
  weight: string;
5
5
  size: string;
6
6
  height: string;
7
7
  spacing: string;
8
8
  };
9
- export declare type TypographyType = ('h1' | 'h2' | 'h3' | 'h4' | 'h5' | 's1' | 's2' | 'b1' | 'b2' | 'b3' | 'btn1' | 'btn2' | 'c1' | 'c2');
10
- export declare type SizeType = ('base-half' | 'base' | 'base-2' | 'base-3' | 'base-4' | 'base-5' | 'base-6' | 'base-7' | 'base-8' | 'base-9' | 'base-10' | 'base-11' | 'base-12' | 'base-14' | 'base-16');
11
- export declare type ThemeType = {
9
+ export type TypographyType = ('h1' | 'h2' | 'h3' | 'h4' | 'h5' | 's1' | 's2' | 'b1' | 'b2' | 'b3' | 'btn1' | 'btn2' | 'c1' | 'c2');
10
+ export type SizeType = ('base-half' | 'base' | 'base-2' | 'base-3' | 'base-4' | 'base-5' | 'base-6' | 'base-7' | 'base-8' | 'base-9' | 'base-10' | 'base-11' | 'base-12' | 'base-14' | 'base-16');
11
+ export type ThemeType = {
12
12
  color: Record<ColorType, string>;
13
13
  shadow: Record<ShadowType, string>;
14
14
  text: Record<TypographyType, TypographyPropertiesType>;
15
15
  size: Record<SizeType, string>;
16
16
  };
17
- export declare type ThemeOptionsType = {
17
+ export type ThemeOptionsType = {
18
18
  color?: Partial<ThemeType['color']>;
19
19
  shadow?: Partial<ThemeType['shadow']>;
20
20
  text?: Partial<ThemeType['text']>;
@@ -1,3 +1,3 @@
1
- declare type SuccessCallback = () => void;
1
+ type SuccessCallback = () => void;
2
2
  export declare const copyToClipboard: (text: string, onSuccess?: SuccessCallback) => void;
3
3
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peculiar/react-components",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "author": "PeculiarVentures Team",
6
6
  "description": "A simple and customizable component library to build faster, beautiful, and more accessible React applications.",
7
7
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@emotion/react": "^11.11.1",
50
50
  "@emotion/styled": "^11.11.0",
51
- "@peculiar/color": "^0.1.4",
51
+ "@peculiar/color": "^0.1.5",
52
52
  "@popperjs/core": "^2.11.7",
53
53
  "@types/flat": "^5.0.2",
54
54
  "@types/react-transition-group": "^4.4.5",
@@ -60,18 +60,19 @@
60
60
  "react-transition-group": "^4.4.5"
61
61
  },
62
62
  "devDependencies": {
63
- "@storybook/addon-essentials": "7.6.7",
64
- "@storybook/react": "7.6.7",
65
- "@storybook/react-vite": "7.6.7",
63
+ "@babel/preset-env": "7.26.0",
64
+ "@storybook/addon-essentials": "8.4.7",
65
+ "@storybook/react": "8.4.7",
66
+ "@storybook/react-vite": "8.4.7",
66
67
  "@types/react": "^18.0.34",
67
68
  "@types/react-dom": "^18.0.11",
68
69
  "@vitejs/plugin-react-swc": "^3.5.0",
69
70
  "react": "^18.2.0",
70
71
  "react-dom": "^18.2.0",
71
72
  "rimraf": "^3.0.2",
72
- "storybook": "7.6.7",
73
- "storybook-dark-mode": "^3.0.3",
74
- "typescript": "^4.6.3",
73
+ "storybook": "8.4.7",
74
+ "storybook-dark-mode": "^4.0.2",
75
+ "typescript": "5.1.6",
75
76
  "vite": "^5.4.8"
76
77
  },
77
78
  "publishConfig": {
@@ -81,5 +82,5 @@
81
82
  "node": ">=18.x"
82
83
  },
83
84
  "license": "MIT",
84
- "gitHead": "b609664ee4a8ef6c687c1e41ce2271124236be49"
85
+ "gitHead": "d537ba8a16dbe15b908e873844ce8b53b7fb3603"
85
86
  }