baseui 0.0.0-next-d5a66ca → 0.0.0-next-e23ee12

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.
@@ -55,7 +55,7 @@ export declare type CheckboxProps = {
55
55
  /** Renders checkbox in errored state. */
56
56
  error?: boolean;
57
57
  /** Used to get a ref to the input element. Useful for programmatically focusing the input */
58
- inputRef: React.RefObject<HTMLInputElement>;
58
+ inputRef?: React.RefObject<HTMLInputElement>;
59
59
  /** Focus the checkbox on initial render. */
60
60
  autoFocus?: boolean;
61
61
  /** Passed to the input element type attribute */
@@ -69,23 +69,23 @@ export declare type CheckboxProps = {
69
69
  /** How to position the label relative to the checkbox itself. */
70
70
  labelPlacement?: LabelPlacement;
71
71
  /** Renders UI as checkmark or toggle switch. */
72
- checkmarkType: StyleType;
72
+ checkmarkType?: StyleType;
73
73
  /** Text to display in native OS tooltip on long hover. */
74
74
  title?: string | null;
75
75
  /** Handler for change events on trigger element. */
76
76
  onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
77
77
  /** Handler for mouseenter events on trigger element. */
78
- onMouseEnter: (e: ChangeEvent<HTMLInputElement>) => unknown;
78
+ onMouseEnter?: (e: ChangeEvent<HTMLInputElement>) => unknown;
79
79
  /** Handler for mouseleave events on trigger element. */
80
- onMouseLeave: (e: ChangeEvent<HTMLInputElement>) => unknown;
80
+ onMouseLeave?: (e: ChangeEvent<HTMLInputElement>) => unknown;
81
81
  /** Handler for mousedown events on trigger element. */
82
- onMouseDown: (e: ChangeEvent<HTMLInputElement>) => unknown;
82
+ onMouseDown?: (e: ChangeEvent<HTMLInputElement>) => unknown;
83
83
  /** Handler for mouseup events on trigger element. */
84
- onMouseUp: (e: ChangeEvent<HTMLInputElement>) => unknown;
84
+ onMouseUp?: (e: ChangeEvent<HTMLInputElement>) => unknown;
85
85
  /** handler for focus events on trigger element. */
86
- onFocus: (e: ChangeEvent<HTMLInputElement>) => unknown;
86
+ onFocus?: (e: ChangeEvent<HTMLInputElement>) => unknown;
87
87
  /** handler for blur events on trigger element. */
88
- onBlur: (e: ChangeEvent<HTMLInputElement>) => unknown;
88
+ onBlur?: (e: ChangeEvent<HTMLInputElement>) => unknown;
89
89
  };
90
90
  export declare type CheckboxState = {
91
91
  isFocused: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-d5a66ca",
3
+ "version": "0.0.0-next-e23ee12",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",
@@ -141,8 +141,6 @@
141
141
  "eslint-plugin-prettier": "3.1.4",
142
142
  "eslint-plugin-react": "^7.27.0",
143
143
  "eslint-plugin-react-hooks": "3.0.0",
144
- "extract-react-types": "^0.26.0",
145
- "extract-react-types-loader": "^0.3.13",
146
144
  "flow-bin": "0.131.0",
147
145
  "flow-remove-types": "^2.179.0",
148
146
  "globby": "^10.0.1",
package/themes/index.d.ts CHANGED
@@ -6,10 +6,11 @@ import createDarkTheme from './dark-theme/create-dark-theme';
6
6
  import createLightTheme from './light-theme/create-light-theme';
7
7
  import darkThemePrimitives from './dark-theme/primitives';
8
8
  import lightThemePrimitives from './light-theme/primitives';
9
- import type { ColorTokens, Primitives } from './types';
9
+ import type { Primitives } from './types';
10
+ import type { Colors as StyleColors } from '../styles';
10
11
  export { createDarkTheme, createLightTheme, createLightTheme as createTheme, LightTheme, LightThemeMove, lightThemePrimitives, DarkTheme, DarkThemeMove, darkThemePrimitives, DarkTheme as darkThemeOverrides, };
11
12
  export * from './types';
12
13
  /** @deprecated use ColorTokens instead. To be removed in future versions.*/
13
- export declare type Colors = ColorTokens;
14
+ export declare type Colors = StyleColors;
14
15
  /** @deprecated use Primitives instead. To be removed in future versions.*/
15
16
  export declare type ThemePrimitives = Primitives;
@@ -8,4 +8,4 @@ export { default as TreeLabel } from './tree-label';
8
8
  export { default as TreeLabelInteractable } from './tree-label-interactable';
9
9
  export { toggleIsExpanded };
10
10
  /** @deprecated use TreeNodeData instead. To be removed in future versions.*/
11
- export declare type TreeNode = TreeNodeData;
11
+ export declare type TreeNode<T = any> = TreeNodeData<T>;