@apple-pie/slice 0.0.0 → 0.0.1

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 (84) hide show
  1. package/dist/index.esm.js +1459 -431
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +1468 -430
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/hooks/index.d.ts +9 -2
  6. package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +1 -0
  7. package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +6 -0
  8. package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +4 -0
  9. package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -0
  10. package/dist/types/hooks/{useObserveResize.d.ts → useObserveResize/useObserveResize.d.ts} +1 -1
  11. package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +2 -0
  12. package/dist/types/hooks/useTheme/useTheme.d.ts +47 -0
  13. package/dist/types/hooks/useToolTip/useToolTip.d.ts +6 -0
  14. package/dist/types/hooks/useWindow/useWindow.d.ts +15 -0
  15. package/dist/types/index.d.ts +9 -4
  16. package/dist/types/providers/ThemeProvider.d.ts +1 -0
  17. package/dist/types/theme/colors/colors.d.ts +2 -0
  18. package/dist/types/theme/colors/types.d.ts +14 -0
  19. package/dist/types/theme/components/BrandColors.d.ts +1 -0
  20. package/dist/types/theme/components/ColorTile.d.ts +6 -0
  21. package/dist/types/theme/components/ColorTileGroup.d.ts +6 -0
  22. package/dist/types/theme/components/ThemeColors.d.ts +2 -0
  23. package/dist/types/theme/components/_types.d.ts +15 -0
  24. package/dist/types/theme/index.d.ts +1 -1
  25. package/dist/types/theme/themes.d.ts +3 -3
  26. package/dist/types/theme/type/type.d.ts +3 -0
  27. package/dist/types/uikit/Avatar/_types.d.ts +3 -2
  28. package/dist/types/uikit/AvatarGroup/_types.d.ts +4 -2
  29. package/dist/types/uikit/Badge/_types.d.ts +5 -2
  30. package/dist/types/uikit/CheckBox/_types.d.ts +5 -2
  31. package/dist/types/uikit/DivInput/_types.d.ts +4 -2
  32. package/dist/types/uikit/DocIcon/_types.d.ts +5 -2
  33. package/dist/types/uikit/Dot/_types.d.ts +6 -2
  34. package/dist/types/uikit/DraggablePanel/DrggablePanel.d.ts +3 -2
  35. package/dist/types/uikit/DropDown/DropDown.d.ts +2 -1
  36. package/dist/types/uikit/DropDown/_types.d.ts +5 -2
  37. package/dist/types/uikit/EditorButtonBar/_types.d.ts +4 -2
  38. package/dist/types/uikit/ErrorSummary/ErrorSummary.d.ts +2 -1
  39. package/dist/types/uikit/ErrorSummary/_types.d.ts +5 -2
  40. package/dist/types/uikit/FlexDiv/FlexDiv.d.ts +57 -2
  41. package/dist/types/uikit/FlexDiv/_types.d.ts +7 -2
  42. package/dist/types/uikit/Grouper/_types.d.ts +6 -2
  43. package/dist/types/uikit/Icon/_types.d.ts +7 -2
  44. package/dist/types/uikit/Icon/iconRegistry.d.ts +1 -0
  45. package/dist/types/uikit/IconButton/_types.d.ts +4 -2
  46. package/dist/types/uikit/Logos/_types.d.ts +8 -4
  47. package/dist/types/uikit/MessageInput/InputField/_types.d.ts +5 -2
  48. package/dist/types/uikit/Overlay/_types.d.ts +5 -2
  49. package/dist/types/uikit/Pager/_types.d.ts +5 -2
  50. package/dist/types/uikit/Progress/DoneCheck/_types.d.ts +5 -2
  51. package/dist/types/uikit/Progress/ProgressIndicator/_types.d.ts +5 -2
  52. package/dist/types/uikit/RadioButton/_types.d.ts +5 -2
  53. package/dist/types/uikit/RadioButtonList/_types.d.ts +5 -2
  54. package/dist/types/uikit/Slider/_types.d.ts +5 -2
  55. package/dist/types/uikit/Spacer/_types.d.ts +5 -2
  56. package/dist/types/uikit/Switch/Switch.d.ts +1 -1
  57. package/dist/types/uikit/Switch/_types.d.ts +5 -4
  58. package/dist/types/uikit/TabBar/_types.d.ts +5 -2
  59. package/dist/types/uikit/TextArea/_types.d.ts +5 -2
  60. package/dist/types/uikit/Textfield/_types.d.ts +4 -2
  61. package/dist/types/uikit/Tip/Tip.d.ts +3 -0
  62. package/dist/types/uikit/Tip/_types.d.ts +28 -0
  63. package/dist/types/uikit/Tip/index.d.ts +2 -0
  64. package/dist/types/uikit/Toast/Toast.d.ts +3 -0
  65. package/dist/types/uikit/Toast/_types.d.ts +18 -0
  66. package/dist/types/uikit/Toast/index.d.ts +2 -0
  67. package/dist/types/uikit/UIButton/UIButton.d.ts +73 -2
  68. package/dist/types/uikit/UIButton/_types.d.ts +4 -2
  69. package/dist/types/uikit/UIButtonBar/_types.d.ts +5 -2
  70. package/dist/types/uikit/UICard/_types.d.ts +5 -2
  71. package/dist/types/uikit/UIChip/_types.d.ts +4 -2
  72. package/dist/types/uikit/UIFileIcon/UIFileIcon.d.ts +1 -1
  73. package/dist/types/uikit/UIFileIcon/_types.d.ts +4 -2
  74. package/dist/types/uikit/UILabel/_types.d.ts +4 -2
  75. package/dist/types/util/utils.d.ts +12 -0
  76. package/package.json +2 -1
  77. package/dist/colors.css +0 -237
  78. package/dist/type.css +0 -16
  79. package/dist/types/hooks/useMayaTheme.d.ts +0 -7
  80. package/dist/types/hooks/useTheme.d.ts +0 -2
  81. package/dist/types/uikit/Avatar/AvatarInline.stories.d.ts +0 -7
  82. /package/dist/{flexBox.module.css → css/flexBox.module.css} +0 -0
  83. /package/dist/{type.module.css → css/type.module.css} +0 -0
  84. /package/dist/types/hooks/{useTrackRenders.d.ts → useTrackRenders/useTrackRenders.d.ts} +0 -0
@@ -1,2 +1,9 @@
1
- export { useTheme } from './useTheme';
2
- export { useMayaTheme } from './useMayaTheme';
1
+ export { useTheme } from './useTheme/useTheme';
2
+ export { useObserveTheme } from './useObserveTheme/useObserveTheme';
3
+ export { useDoubleClick } from './useDoubleClick/useDoubleClick';
4
+ export { useToolTip } from './useToolTip/useToolTip';
5
+ export { type KeyboardShortcut, type KeyboardShortcuts, useKeyboardShortcuts, } from './useKeyboardShortcuts/useKeyboardShortcuts';
6
+ export { useLastUpdated } from './useLastUpdated/useLastUpdated';
7
+ export { useLocalStore } from './useLocalStore/useLocalStore';
8
+ export { useWindow, FormFactor } from './useWindow/useWindow';
9
+ export { useObserveResize } from './useObserveResize/useObserveResize';
@@ -0,0 +1 @@
1
+ export declare function useDoubleClick<T, Y>(onClick: (payload?: T) => void, onDblClick: (payload?: Y) => void, delay?: number): readonly [(payload: T) => () => void, (payload: Y) => void];
@@ -0,0 +1,6 @@
1
+ export interface KeyboardShortcut {
2
+ key: string;
3
+ name: string;
4
+ }
5
+ export type KeyboardShortcuts = KeyboardShortcut[];
6
+ export declare function useKeyboardShortcuts(shortcuts: KeyboardShortcuts, shortCutHandler: (shortcut: KeyboardShortcut) => void, isAppleDevice: boolean): void;
@@ -0,0 +1,4 @@
1
+ export declare function useLastUpdated(timestamp: string | undefined, prefix?: string, interval?: number): {
2
+ lastUpdated: string;
3
+ timer: number;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function useLocalStore<T>(key: string, value: T): readonly [T, (data: T) => void];
@@ -3,7 +3,7 @@ type Size = {
3
3
  height: number;
4
4
  width: number;
5
5
  };
6
- export declare function useObserveResize(element: RefObject<HTMLDivElement | null> | undefined, options?: {
6
+ export declare function useObserveResize(element: RefObject<HTMLElement | null> | undefined, options?: {
7
7
  ignore?: 'width' | 'height';
8
8
  }): Size;
9
9
  export {};
@@ -0,0 +1,2 @@
1
+ import { type SliceTheme } from '../../theme';
2
+ export declare function useObserveTheme(): SliceTheme;
@@ -0,0 +1,47 @@
1
+ import type { SliceTheme } from '../../theme';
2
+ /**
3
+ * Hook to manage Slice theming
4
+ */
5
+ export declare function useTheme(): {
6
+ /**
7
+ * Slice's default dark theme
8
+ */
9
+ darkTheme: SliceTheme;
10
+ /**
11
+ * Slice's default light theme
12
+ */
13
+ lightTheme: SliceTheme;
14
+ /**
15
+ * The currently active SliceTheme
16
+ */
17
+ current: SliceTheme;
18
+ /**
19
+ * CSS variables for theme colors
20
+ */
21
+ colors: Record<keyof import("../..").Colors, string>;
22
+ /**
23
+ * CSS Class names for the theme colors
24
+ */
25
+ colorsClass: Record<keyof import("../..").Colors, string>;
26
+ /**
27
+ * CSS class names for theme typefaces
28
+ */
29
+ typeClass: Record<keyof import("../..").Type, string>;
30
+ /**
31
+ * CSS typeface styles as inline style properties
32
+ */
33
+ typeStyle: Record<keyof import("../..").Type, import("react").CSSProperties>;
34
+ /**
35
+ * Set a new theme by name or passing in a SliceTheme object
36
+ * @param newTheme
37
+ */
38
+ set: (newTheme: SliceTheme | string) => void;
39
+ /**
40
+ * Toggle between light and dark themes
41
+ */
42
+ toggle: () => void;
43
+ /**
44
+ * If the currently active theme is the Slice's default dark theme'
45
+ */
46
+ isDark: boolean;
47
+ };
@@ -0,0 +1,6 @@
1
+ import type React from 'react';
2
+ import type { ToolTip } from '../../uikit/sharedTypes';
3
+ export declare function useToolTip(toolTip: ToolTip | null, tipElement: React.RefObject<HTMLDivElement | null>): {
4
+ x: number;
5
+ y: number;
6
+ } | undefined;
@@ -0,0 +1,15 @@
1
+ export declare enum FormFactor {
2
+ Mobile = "mobile",
3
+ Tablet = "tablet",
4
+ Desktop = "desktop"
5
+ }
6
+ export declare function useWindow(top?: boolean): {
7
+ viewportWidth: number | null;
8
+ viewportHeight: number | null;
9
+ height: string;
10
+ isTouchDevice: boolean;
11
+ isElectron: boolean;
12
+ isAppleDevice: boolean;
13
+ formFactor: FormFactor;
14
+ dpr: 2 | 1 | 3;
15
+ };
@@ -1,8 +1,8 @@
1
1
  export type { ToolTip, ToolTipInfo } from './uikit/sharedTypes';
2
2
  export { ToolTipType } from './uikit/sharedTypes';
3
- export { light, dark, lightTheme, darkTheme, } from './theme/index';
4
- export type { MayaTheme, Colors, Type, Corners, } from './theme/index';
5
- export { useTheme, useMayaTheme } from './hooks/index';
3
+ export { light, dark, lightTheme, darkTheme, } from './theme';
4
+ export type { SliceTheme, Colors, Type, Corners, } from './theme';
5
+ export { type KeyboardShortcut, type KeyboardShortcuts, useKeyboardShortcuts, useTheme, useObserveTheme, useToolTip, useLastUpdated, useLocalStore, useWindow, useDoubleClick, useObserveResize, } from './hooks';
6
6
  export { Avatar } from './uikit/Avatar/index';
7
7
  export type { AvatarProps } from './uikit/Avatar/index';
8
8
  export { AvatarGroup } from './uikit/AvatarGroup';
@@ -54,9 +54,14 @@ export type { SwitchProps } from './uikit/Switch';
54
54
  export { TabBar } from './uikit/TabBar';
55
55
  export type { TabOption, TabBarProps } from './uikit/TabBar';
56
56
  export { TextArea } from './uikit/TextArea';
57
- export type { TextAreaProps, Tip } from './uikit/TextArea';
57
+ export type { TextAreaProps } from './uikit/TextArea';
58
58
  export { TextField } from './uikit/Textfield';
59
59
  export type { TextFieldProps } from './uikit/Textfield';
60
+ export { ThemeProvider } from './providers';
61
+ export { Tip } from './uikit/Tip';
62
+ export type { ToolTipProps } from './uikit/Tip';
63
+ export { Toast } from './uikit/Toast';
64
+ export type { ToastProps } from './uikit/Toast';
60
65
  export { UIButton } from './uikit/UIButton';
61
66
  export type { UIButtonProps, UIButtonHandle } from './uikit/UIButton';
62
67
  export { UIChip } from './uikit/UIChip';
@@ -4,6 +4,7 @@ import '../theme/type/type.css';
4
4
  interface ThemeProviderProps {
5
5
  children?: React.ReactNode;
6
6
  theme?: string;
7
+ system?: boolean;
7
8
  }
8
9
  export declare function ThemeProvider(props: Readonly<ThemeProviderProps>): React.ReactNode;
9
10
  export {};
@@ -2,3 +2,5 @@ import type { Colors, CoreColors } from './types';
2
2
  export declare const coreColors: CoreColors;
3
3
  export declare const light: Colors;
4
4
  export declare const dark: Colors;
5
+ export declare const colorCssVars: Record<keyof Colors, string>;
6
+ export declare const colorClass: Record<keyof Colors, string>;
@@ -90,6 +90,20 @@ export type CoreColors = {
90
90
  'brand-yellow-950': string;
91
91
  'product-red-400': string;
92
92
  'product-red-500': string;
93
+ 'core-drop-shadow-light': string;
94
+ 'core-drop-shadow-dark': string;
95
+ 'core-surface-coverup-translucent-light': string;
96
+ 'core-surface-coverup-translucent-dark': string;
97
+ 'core-surface-overlay-translucent-light': string;
98
+ 'core-surface-overlay-translucent-dark': string;
99
+ 'scroll-bar-light': string;
100
+ 'scroll-bar-dark': string;
101
+ 'scroll-bar-hover-light': string;
102
+ 'scroll-bar-hover-dark': string;
103
+ 'surface-shadow-soft-light': string;
104
+ 'surface-shadow-soft-dark': string;
105
+ 'surface-shadow-strong-light': string;
106
+ 'surface-shadow-strong-dark': string;
93
107
  };
94
108
  export type Colors = {
95
109
  'array-land': string;
@@ -0,0 +1 @@
1
+ export declare function BrandColors(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { ColorTileProps } from './_types';
3
+ export declare const ColorTile: React.MemoExoticComponent<{
4
+ (props: Readonly<ColorTileProps>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ }>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { ColorTileGroupProps } from './_types';
3
+ export declare const ColorTileGroup: React.MemoExoticComponent<{
4
+ (props: Readonly<ColorTileGroupProps>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ export declare function LightModeBrandColors(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DarkModeBrandColors(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { ToolTip } from '../../uikit/sharedTypes';
2
+ import type { SliceTheme } from '../themes';
3
+ export interface ColorTileProps {
4
+ token?: string;
5
+ core?: string;
6
+ hex?: string;
7
+ width?: number;
8
+ height?: number;
9
+ onCopy?: (token: string, hex: string) => void;
10
+ onTooltip?: (tip: ToolTip | null) => void;
11
+ }
12
+ export interface ColorTileGroupProps {
13
+ pattern?: string | string[];
14
+ theme?: SliceTheme;
15
+ }
@@ -1,4 +1,4 @@
1
- export { type MayaTheme, darkTheme, lightTheme, } from './themes';
1
+ export { type SliceTheme, darkTheme, lightTheme, } from './themes';
2
2
  export type { Colors } from './colors/types';
3
3
  export type { Type } from './type/types';
4
4
  export type { Corners } from './corners/types';
@@ -1,12 +1,12 @@
1
1
  import type { Colors, CoreColors } from './colors/types';
2
2
  import type { Corners } from './corners/types';
3
3
  import type { Type } from './type/types';
4
- export type MayaTheme = {
4
+ export type SliceTheme = {
5
5
  name: string;
6
6
  coreColors: CoreColors;
7
7
  colors: Colors;
8
8
  type: Type;
9
9
  corners: Corners;
10
10
  };
11
- export declare const lightTheme: MayaTheme;
12
- export declare const darkTheme: MayaTheme;
11
+ export declare const lightTheme: SliceTheme;
12
+ export declare const darkTheme: SliceTheme;
@@ -1,2 +1,5 @@
1
+ import type React from 'react';
1
2
  import type { Type } from './types';
2
3
  export declare const type: Type;
4
+ export declare const typeCssClasses: Record<keyof Type, string>;
5
+ export declare const typeStyles: Record<keyof Type, React.CSSProperties>;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import type { ToolTip } from '../sharedTypes';
3
- export interface AvatarProps {
3
+ export type AvatarBaseProps = {
4
4
  size?: number;
5
5
  frame?: number;
6
6
  first?: string;
@@ -16,4 +16,5 @@ export interface AvatarProps {
16
16
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
17
17
  onKeyDown?: (e: React.KeyboardEvent<HTMLDivElement>) => void;
18
18
  tabIndex?: number;
19
- }
19
+ };
20
+ export type AvatarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarBaseProps> & AvatarBaseProps;
@@ -1,3 +1,4 @@
1
+ import type React from 'react';
1
2
  import type { ToolTip } from '../sharedTypes';
2
3
  export type AvatarInfo = {
3
4
  first?: string;
@@ -8,7 +9,7 @@ export type AvatarInfo = {
8
9
  color?: string;
9
10
  bgColor?: string;
10
11
  };
11
- export interface AvatarGroupProps {
12
+ export type AvatarGroupBaseProps = {
12
13
  avatars?: AvatarInfo[] | null;
13
14
  size?: number;
14
15
  overlap?: number;
@@ -18,4 +19,5 @@ export interface AvatarGroupProps {
18
19
  margin?: number;
19
20
  firstOnly?: boolean;
20
21
  onToolTip?: (tip: ToolTip | null) => void;
21
- }
22
+ };
23
+ export type AvatarGroupProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarGroupBaseProps> & AvatarGroupBaseProps;
@@ -1,5 +1,8 @@
1
- export interface BadgeProps {
1
+ import type React from 'react';
2
+ type BadgeBaseProps = {
2
3
  count?: number | string;
3
4
  hideNull?: boolean;
4
5
  variant?: 'light' | 'dark';
5
- }
6
+ };
7
+ export type BadgeProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof BadgeBaseProps> & BadgeBaseProps;
8
+ export {};
@@ -1,8 +1,11 @@
1
- export interface CheckBoxProps {
1
+ import type React from 'react';
2
+ type CheckBoxBaseProps = {
2
3
  size?: number;
3
4
  checked?: 'mixed' | boolean;
4
5
  disabled?: boolean;
5
6
  color?: string;
6
7
  label?: string;
7
8
  onChange?: (state: boolean) => void;
8
- }
9
+ };
10
+ export type CheckBoxProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof CheckBoxBaseProps> & CheckBoxBaseProps;
11
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- export interface DivInputProps {
2
+ type DivInputBaseProps = {
3
3
  name?: string;
4
4
  onClick?: () => void;
5
5
  onDblClick?: () => void;
@@ -18,4 +18,6 @@ export interface DivInputProps {
18
18
  padding?: string;
19
19
  radius?: number;
20
20
  bgColor?: string;
21
- }
21
+ };
22
+ export type DivInputProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DivInputBaseProps> & DivInputBaseProps;
23
+ export {};
@@ -1,4 +1,7 @@
1
- export interface DocsProps {
1
+ import type React from 'react';
2
+ type DocsBaseProps = {
2
3
  type?: 'pdf' | 'docx' | 'text' | 'not supported';
3
4
  height?: number;
4
- }
5
+ };
6
+ export type DocsProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DocsBaseProps> & DocsBaseProps;
7
+ export {};
@@ -1,5 +1,6 @@
1
1
  import type { Transition, Variants } from 'motion/react';
2
- export interface DotProps {
2
+ import type React from 'react';
3
+ type DotBaseProps = {
3
4
  size?: number;
4
5
  topOffset?: number;
5
6
  rightOffset?: number;
@@ -9,7 +10,10 @@ export interface DotProps {
9
10
  color?: string;
10
11
  transition?: Transition;
11
12
  motionValues?: Variants;
13
+ motion?: Variants;
12
14
  show?: boolean;
13
- }
15
+ };
16
+ export type DotProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DotBaseProps> & DotBaseProps;
14
17
  export declare const DEFAULT_VARIANTS: Variants;
15
18
  export declare const DEFAULT_TRANSITION: Transition;
19
+ export {};
@@ -11,7 +11,7 @@ type ResizeHandle = {
11
11
  color?: string;
12
12
  offsetX?: boolean;
13
13
  };
14
- export interface DraggablePanelProps {
14
+ type DraggablePanelBaseProps = {
15
15
  children?: any;
16
16
  onResize?: (info: Info) => void;
17
17
  onResizeEnd?: (info: Info) => void;
@@ -29,7 +29,8 @@ export interface DraggablePanelProps {
29
29
  dragHandleStyle?: DragHandleProps;
30
30
  disableOnContext?: boolean;
31
31
  isTouchDevice?: boolean;
32
- }
32
+ };
33
+ export type DraggablePanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DraggablePanelBaseProps> & DraggablePanelBaseProps;
33
34
  export declare const DraggablePanel: React.MemoExoticComponent<(props: DraggablePanelProps) => import("react/jsx-runtime").JSX.Element>;
34
35
  export type DragHandleProps = {
35
36
  width?: number;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { DropDownProps } from './_types';
2
+ import type { DropDownOption, DropDownProps } from './_types';
3
+ export type { DropDownOption };
3
4
  export declare const DropDown: React.MemoExoticComponent<(props: DropDownProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,9 +1,10 @@
1
+ import type React from 'react';
1
2
  export type DropDownOption = {
2
3
  label?: string;
3
4
  value?: string;
4
5
  alt?: string;
5
6
  };
6
- export interface DropDownProps {
7
+ type DropDownBaseProps = {
7
8
  name?: string;
8
9
  options?: DropDownOption[];
9
10
  selectedIndex?: number;
@@ -28,4 +29,6 @@ export interface DropDownProps {
28
29
  onBlur?: (value: string) => void;
29
30
  onValidate?: (state: boolean) => void;
30
31
  onFocus?: () => void;
31
- }
32
+ };
33
+ export type DropDownProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DropDownBaseProps> & DropDownBaseProps;
34
+ export {};
@@ -39,7 +39,7 @@ export declare enum FormattingOption {
39
39
  copy = "copy",
40
40
  link = "link"
41
41
  }
42
- export interface EditorButtonBarProps {
42
+ type EditorButtonBarBaseProps = {
43
43
  shortSize?: number;
44
44
  mediumSize?: number;
45
45
  state?: 'small' | 'medium' | 'regular' | 'auto';
@@ -48,7 +48,8 @@ export interface EditorButtonBarProps {
48
48
  disabledFormats?: string[];
49
49
  onCommand?: (command: any, e: React.MouseEvent<any> | undefined) => void;
50
50
  onToolTip?: (tip: ToolTip | null) => void;
51
- }
51
+ };
52
+ export type EditorButtonBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof EditorButtonBarBaseProps> & EditorButtonBarBaseProps;
52
53
  export interface RenderGroupProps {
53
54
  onCommand?: (command: any, e: React.MouseEvent<any>) => void;
54
55
  onToolTip?: (tip: ToolTip | null) => void;
@@ -57,3 +58,4 @@ export interface RenderGroupProps {
57
58
  disabledFormats?: string[];
58
59
  state?: 'regular' | 'small' | 'medium';
59
60
  }
61
+ export {};
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { ErrorSummaryProps } from './_types';
2
+ import type { ErrorMessage, ErrorSummaryProps } from './_types';
3
+ export type { ErrorMessage };
3
4
  export declare const ErrorSummary: React.MemoExoticComponent<(props: ErrorSummaryProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,9 +1,12 @@
1
+ import type React from 'react';
1
2
  export type ErrorMessage = {
2
3
  id?: string;
3
4
  title?: string;
4
5
  bullets?: string[];
5
6
  };
6
- export interface ErrorSummaryProps {
7
+ type ErrorSummaryBaseProps = {
7
8
  entries?: ErrorMessage[];
8
9
  errors?: any[];
9
- }
10
+ };
11
+ export type ErrorSummaryProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof ErrorSummaryBaseProps> & ErrorSummaryBaseProps;
12
+ export {};
@@ -1,3 +1,58 @@
1
1
  import React from 'react';
2
- import type { FlexDivProps } from './_types';
3
- export declare const FlexDiv: React.NamedExoticComponent<FlexDivProps & React.RefAttributes<HTMLDivElement>>;
2
+ export declare const FlexDiv: React.NamedExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof {
3
+ className?: string;
4
+ children?: any;
5
+ scrollY?: boolean;
6
+ scrollX?: boolean;
7
+ absolute?: boolean;
8
+ background?: string;
9
+ direction?: "row" | "column";
10
+ alignItems?: "start" | "center" | "end" | "between";
11
+ justify?: "start" | "top" | "center" | "end" | "bottom" | "between";
12
+ width?: number | "grow" | "fill" | "fit" | "viewport" | "auto";
13
+ height?: number | "grow" | "fill" | "fit" | "viewport" | "auto";
14
+ maxWidth?: number | string;
15
+ centerSelf?: boolean | string;
16
+ flex?: number;
17
+ reverse?: boolean;
18
+ wrap?: boolean;
19
+ border?: string;
20
+ padding?: number | string;
21
+ margin?: number | string;
22
+ enter?: any;
23
+ exit?: any;
24
+ animate?: any;
25
+ transition?: import("framer-motion").Transition;
26
+ variants?: any;
27
+ gap?: number;
28
+ scrollHandle?: string;
29
+ scrollHandleHover?: string;
30
+ }> & {
31
+ className?: string;
32
+ children?: any;
33
+ scrollY?: boolean;
34
+ scrollX?: boolean;
35
+ absolute?: boolean;
36
+ background?: string;
37
+ direction?: "row" | "column";
38
+ alignItems?: "start" | "center" | "end" | "between";
39
+ justify?: "start" | "top" | "center" | "end" | "bottom" | "between";
40
+ width?: number | "grow" | "fill" | "fit" | "viewport" | "auto";
41
+ height?: number | "grow" | "fill" | "fit" | "viewport" | "auto";
42
+ maxWidth?: number | string;
43
+ centerSelf?: boolean | string;
44
+ flex?: number;
45
+ reverse?: boolean;
46
+ wrap?: boolean;
47
+ border?: string;
48
+ padding?: number | string;
49
+ margin?: number | string;
50
+ enter?: any;
51
+ exit?: any;
52
+ animate?: any;
53
+ transition?: import("framer-motion").Transition;
54
+ variants?: any;
55
+ gap?: number;
56
+ scrollHandle?: string;
57
+ scrollHandleHover?: string;
58
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,6 @@
1
1
  import type { Transition } from 'motion/react';
2
- export interface FlexDivProps {
2
+ import type React from 'react';
3
+ type FlexDivBaseProps = {
3
4
  className?: string;
4
5
  children?: any;
5
6
  scrollY?: boolean;
@@ -25,4 +26,8 @@ export interface FlexDivProps {
25
26
  transition?: Transition;
26
27
  variants?: any;
27
28
  gap?: number;
28
- }
29
+ scrollHandle?: string;
30
+ scrollHandleHover?: string;
31
+ };
32
+ export type FlexDivProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof FlexDivBaseProps> & FlexDivBaseProps;
33
+ export {};
@@ -1,5 +1,7 @@
1
- export interface GrouperProps {
1
+ import type React from 'react';
2
+ type GrouperBaseProps = {
2
3
  title?: string;
4
+ variant?: string;
3
5
  toggle?: boolean;
4
6
  open?: boolean;
5
7
  hasIcon?: boolean;
@@ -13,4 +15,6 @@ export interface GrouperProps {
13
15
  unframed?: boolean;
14
16
  onChange?: (state: boolean) => void;
15
17
  onClick?: () => void;
16
- }
18
+ };
19
+ export type GrouperProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof GrouperBaseProps> & GrouperBaseProps;
20
+ export {};
@@ -1,15 +1,17 @@
1
1
  import type React from 'react';
2
- export interface IconProps {
2
+ type IconBaseProps = {
3
3
  name?: string;
4
4
  size?: number;
5
5
  stroke?: number;
6
6
  strokeColor?: string;
7
7
  fillColor?: string;
8
+ coverUp?: string;
8
9
  toggle?: boolean;
9
10
  pointer?: boolean;
10
11
  disabled?: boolean;
11
12
  onClick?: (e: React.MouseEvent<SVGElement, MouseEvent>) => void;
12
- }
13
+ };
14
+ export type IconProps = Omit<React.SVGAttributes<SVGSVGElement>, keyof IconBaseProps> & IconBaseProps;
13
15
  export declare enum IconNames {
14
16
  home = "home",
15
17
  inbox = "inbox",
@@ -37,6 +39,8 @@ export declare enum IconNames {
37
39
  download = "download",
38
40
  share = "share",
39
41
  checkCircle = "check circle",
42
+ circle = "circle",
43
+ circleFill = "circle fill",
40
44
  person = "person",
41
45
  ctrlKey = "ctrl key",
42
46
  commandKey = "cmd key",
@@ -100,3 +104,4 @@ export declare enum IconNames {
100
104
  taskList = "task list",
101
105
  highlight = "highlight"
102
106
  }
107
+ export {};
@@ -3,6 +3,7 @@ export interface IconRenderProps {
3
3
  stroke: number;
4
4
  strokeColor: string;
5
5
  fillColor: string;
6
+ coverUp: string;
6
7
  }
7
8
  export type IconLineRenderer = (props: IconRenderProps) => JSX.Element;
8
9
  export interface IconDefinition {
@@ -1,7 +1,7 @@
1
1
  import type { Transition, Variants } from 'motion/react';
2
2
  import type React from 'react';
3
3
  import type { ToolTip } from '../sharedTypes';
4
- export interface IconButtonProps {
4
+ type IconButtonBaseProps = {
5
5
  frameSize?: number;
6
6
  iconSize?: number;
7
7
  icon?: string;
@@ -29,4 +29,6 @@ export interface IconButtonProps {
29
29
  borderRadius?: number;
30
30
  onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
31
31
  onToolTip?: (tip: ToolTip | null) => void;
32
- }
32
+ };
33
+ export type IconButtonProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof IconButtonBaseProps> & IconButtonBaseProps;
34
+ export {};
@@ -1,5 +1,9 @@
1
- export interface LogoProps {
2
- image?: 'zoom' | 'impossible foods' | 'gong' | 'seattle seahawks' | 'smile' | 'drift' | 'taylor amde' | 'gp' | 'gpmark' | 'envu' | 'pdf' | 'G2Leader' | 'reviews' | 'G2Logo' | 'apple' | 'yahoo' | 'outlook' | 'outlook-com' | 'google' | 'gptype' | 'gpgia' | 'linkedin' | 'stripe' | string;
1
+ import type React from 'react';
2
+ type LogoBaseProps = {
3
+ image?: 'zoom' | 'impossible foods' | 'gong' | 'seattle seahawks' | 'smile' | 'drift' | 'taylor made' | 'envu' | 'pdf' | 'G2Leader' | 'reviews' | 'G2Logo' | 'apple' | 'yahoo' | 'outlook' | 'outlook-com' | 'google' | 'linkedin' | 'stripe' | 'slice' | 'slice logo';
3
4
  color?: string;
4
- height?: number;
5
- }
5
+ height?: number | string;
6
+ width?: number | string;
7
+ };
8
+ export type LogoProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof LogoBaseProps> & LogoBaseProps;
9
+ export {};