baseui 0.0.0-next-d5a66ca → 0.0.0-next-ff2e443

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/modal/types.d.ts CHANGED
@@ -14,12 +14,12 @@ export declare type ModalOverrides = {
14
14
  };
15
15
  export declare type ModalProps = {
16
16
  /** Sets whether the Modal should be displayed by easing in and out */
17
- animate: boolean;
17
+ animate?: boolean;
18
18
  /** If true, focus will shift to the first interactive element within the modal.
19
19
  * If false, the modal container itself will receive focus.
20
20
  * Moving focus into a newly opened modal is important for accessibility purposes, so please be careful!
21
21
  */
22
- autoFocus: boolean;
22
+ autoFocus?: boolean;
23
23
  /** If true, focus will be locked to elements within the modal.
24
24
  */
25
25
  focusLock?: boolean;
@@ -36,8 +36,8 @@ export declare type ModalProps = {
36
36
  /** Whether the modal should be closeable by the user
37
37
  * (either via escape, dialog container click, etc). You can set this to
38
38
  * false if your modal has an action that the user must take before closing.*/
39
- closeable: boolean;
40
- isOpen: boolean;
39
+ closeable?: boolean;
40
+ isOpen?: boolean;
41
41
  /** Where to mount the modal */
42
42
  mountNode?: HTMLElement;
43
43
  /** A callback that is invoked when the modal will close.
@@ -45,12 +45,12 @@ export declare type ModalProps = {
45
45
  onClose?: (a: {
46
46
  closeSource?: CloseSource;
47
47
  }) => unknown;
48
- overrides: ModalOverrides;
48
+ overrides?: ModalOverrides;
49
49
  /** Which accessibility role this modal should have. */
50
- role: RoleProp;
50
+ role?: RoleProp;
51
51
  /** Controls the size of the modal (primarily width).
52
52
  * Can be a SIZE constant or css width property value. */
53
- size: SizeProp;
53
+ size?: SizeProp;
54
54
  };
55
55
  export declare type ModalPropsWithoutChildren = Omit<ModalProps, 'children'>;
56
56
  export declare type ModalState = {
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-ff2e443",
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",
@@ -163,7 +161,6 @@
163
161
  "moment": "^2.24.0",
164
162
  "next": "^10.0.0",
165
163
  "next-images": "^1.6.2",
166
- "next-transpile-modules": "^6.0.0",
167
164
  "node-fetch": "^2.6.1",
168
165
  "now": "16.5.2",
169
166
  "npm-run-all": "^4.1.5",
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>;