@cube-dev/ui-kit 0.1.2 → 0.2.0

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 (212) hide show
  1. package/README.md +3 -1
  2. package/dist/cjs/components/GridProvider.d.ts +4 -4
  3. package/dist/cjs/components/{Action.d.ts → actions/Action.d.ts} +2 -2
  4. package/dist/{mjs/atoms → cjs/components/actions}/Button/Button.d.ts +1 -1
  5. package/dist/cjs/{atoms → components/actions}/Button/Submit.d.ts +0 -0
  6. package/dist/{mjs/atoms → cjs/components/actions}/ButtonGroup/ButtonGroup.d.ts +1 -1
  7. package/dist/cjs/{atoms → components/content}/Avatar/Avatar.d.ts +3 -3
  8. package/dist/cjs/{atoms → components/content}/Badge/Badge.d.ts +2 -2
  9. package/dist/cjs/{atoms → components/content}/Card/Card.d.ts +1 -1
  10. package/dist/{mjs/components → cjs/components/content}/Content.d.ts +1 -1
  11. package/dist/{mjs/components → cjs/components/content}/Divider.d.ts +1 -1
  12. package/dist/cjs/components/{Footer.d.ts → content/Footer.d.ts} +1 -1
  13. package/dist/cjs/components/{Header.d.ts → content/Header.d.ts} +1 -1
  14. package/dist/cjs/components/{Paragraph.d.ts → content/Paragraph.d.ts} +1 -1
  15. package/dist/cjs/{atoms → components/content}/Placeholder/Placeholder.d.ts +3 -3
  16. package/dist/{mjs/atoms → cjs/components/content}/PrismCode/PrismCode.d.ts +1 -1
  17. package/dist/cjs/{atoms → components/content}/Skeleton/Skeleton.d.ts +14 -2
  18. package/dist/cjs/components/content/Tag/Tag.d.ts +10 -0
  19. package/dist/cjs/components/content/Text.d.ts +32 -0
  20. package/dist/cjs/components/content/Title.d.ts +12 -0
  21. package/dist/cjs/{atoms → components/forms}/Checkbox/Checkbox.d.ts +2 -2
  22. package/dist/{mjs/atoms → cjs/components/forms}/Checkbox/CheckboxGroup.d.ts +2 -2
  23. package/dist/cjs/{atoms → components/forms}/Checkbox/context.d.ts +0 -0
  24. package/dist/cjs/components/{FieldWrapper.d.ts → forms/FieldWrapper.d.ts} +5 -5
  25. package/dist/cjs/{atoms → components/forms}/Form/Field.d.ts +1 -1
  26. package/dist/{mjs/atoms → cjs/components/forms}/Form/Form.d.ts +2 -2
  27. package/dist/cjs/{atoms → components/forms}/Form/index.d.ts +0 -0
  28. package/dist/cjs/{atoms → components/forms}/Form/useForm.d.ts +0 -0
  29. package/dist/cjs/{atoms → components/forms}/Form/validation.d.ts +0 -0
  30. package/dist/cjs/components/{Label.d.ts → forms/Label.d.ts} +5 -5
  31. package/dist/cjs/{atoms → components/forms}/NumberInput/NumberInput.d.ts +0 -0
  32. package/dist/cjs/{atoms → components/forms}/NumberInput/StepButton.d.ts +0 -0
  33. package/dist/cjs/{atoms → components/forms}/PasswordInput/PasswordInput.d.ts +0 -0
  34. package/dist/cjs/{atoms → components/forms}/RadioGroup/Radio.d.ts +4 -4
  35. package/dist/cjs/{atoms → components/forms}/RadioGroup/RadioGroup.d.ts +0 -0
  36. package/dist/cjs/{atoms → components/forms}/RadioGroup/context.d.ts +0 -0
  37. package/dist/cjs/{atoms → components/forms}/SearchInput/SearchInput.d.ts +0 -0
  38. package/dist/{mjs/atoms → cjs/components/forms}/Switch/Switch.d.ts +5 -5
  39. package/dist/cjs/{atoms → components/forms}/TextArea/TextArea.d.ts +0 -0
  40. package/dist/cjs/{atoms → components/forms}/TextInput/TextInput.d.ts +0 -0
  41. package/dist/cjs/{atoms → components/forms}/TextInput/TextInputBase.d.ts +7 -7
  42. package/dist/cjs/components/{Flex.d.ts → layout/Flex.d.ts} +1 -1
  43. package/dist/{mjs/components → cjs/components/layout}/Flow.d.ts +1 -1
  44. package/dist/cjs/components/{Grid.d.ts → layout/Grid.d.ts} +1 -1
  45. package/dist/{mjs/components → cjs/components/layout}/Prefix.d.ts +1 -1
  46. package/dist/cjs/components/{Space.d.ts → layout/Space.d.ts} +1 -1
  47. package/dist/cjs/components/{Suffix.d.ts → layout/Suffix.d.ts} +1 -1
  48. package/dist/cjs/{atoms → components/navigation}/Link/Link.d.ts +1 -1
  49. package/dist/{mjs/molecules → cjs/components/navigation}/Tabs/Tabs.d.ts +4 -4
  50. package/dist/{mjs/molecules → cjs/components/organisms}/Alert/Alert.d.ts +2 -2
  51. package/dist/cjs/{molecules → components/organisms}/CopySnippet/CopySnippet.d.ts +7 -5
  52. package/dist/cjs/{molecules → components/organisms}/DirectoryTree/DirectoryTree.d.ts +2 -1
  53. package/dist/cjs/{molecules → components/organisms}/FileTabs/FileTabs.d.ts +4 -4
  54. package/dist/{mjs/molecules → cjs/components/organisms}/Modal/Modal.d.ts +1 -1
  55. package/dist/cjs/{molecules → components/organisms}/SearchResults/SearchResults.d.ts +1 -1
  56. package/dist/cjs/{molecules → components/organisms}/StatsCard/StatsCard.d.ts +1 -1
  57. package/dist/{mjs/molecules → cjs/components/organisms}/TopBar/TopBar.d.ts +1 -1
  58. package/dist/{mjs/atoms → cjs/components/other}/Base64Upload/Base64Upload.d.ts +1 -1
  59. package/dist/cjs/{atoms → components/other}/CloudLogo/CloudLogo.d.ts +1 -1
  60. package/dist/cjs/{molecules → components/overlays}/AlertDialog/AlertDialog.d.ts +2 -2
  61. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/Dialog.d.ts +1 -1
  62. package/dist/cjs/{atoms → components/overlays}/Dialog/DialogContainer.d.ts +0 -0
  63. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/DialogTrigger.d.ts +2 -2
  64. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/api.d.ts +1 -1
  65. package/dist/cjs/{atoms → components/overlays}/Dialog/context.d.ts +0 -0
  66. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/index.d.ts +1 -1
  67. package/dist/cjs/{atoms → components/overlays}/Modal/Modal.d.ts +4 -4
  68. package/dist/cjs/{atoms → components/overlays}/Modal/OpenTransition.d.ts +0 -0
  69. package/dist/cjs/{atoms → components/overlays}/Modal/Overlay.d.ts +0 -0
  70. package/dist/{mjs/atoms → cjs/components/overlays}/Modal/Popover.d.ts +2 -2
  71. package/dist/cjs/{atoms → components/overlays}/Modal/Tray.d.ts +3 -3
  72. package/dist/cjs/{atoms → components/overlays}/Modal/Underlay.d.ts +0 -0
  73. package/dist/cjs/{atoms → components/overlays}/Modal/index.d.ts +0 -0
  74. package/dist/cjs/{molecules → components/overlays}/Notification/Notification.d.ts +1 -1
  75. package/dist/cjs/components/overlays/OverlayWrapper.d.ts +11 -0
  76. package/dist/{mjs/atoms → cjs/components/overlays}/Tooltip/Tooltip.d.ts +4 -4
  77. package/dist/cjs/{atoms → components/overlays}/Tooltip/TooltipTrigger.d.ts +0 -0
  78. package/dist/{mjs/atoms → cjs/components/overlays}/Tooltip/context.d.ts +4 -2
  79. package/dist/{mjs/atoms → cjs/components/pickers}/ComboBox/ComboBox.d.ts +1 -1
  80. package/dist/{mjs/atoms → cjs/components/pickers}/Select/Select.d.ts +12 -11
  81. package/dist/cjs/{atoms → components/status}/LoadingAnimation/LoadingAnimation.d.ts +1 -1
  82. package/dist/{mjs/atoms → cjs/components/status}/Spin/Spin.d.ts +1 -1
  83. package/dist/cjs/components/types.d.ts +20 -21
  84. package/dist/cjs/css-properties.d.ts +62 -0
  85. package/dist/cjs/data/themes.d.ts +1 -1
  86. package/dist/cjs/index.d.ts +117 -112
  87. package/dist/cjs/index.js +6 -6
  88. package/dist/cjs/index.js.map +1 -1
  89. package/dist/cjs/provider.d.ts +2 -2
  90. package/dist/cjs/providers/Styles.d.ts +2 -2
  91. package/dist/cjs/services/notification.d.ts +1 -1
  92. package/dist/cjs/shared/form.d.ts +2 -2
  93. package/dist/cjs/styles/color.d.ts +1 -3
  94. package/dist/cjs/styles/list.d.ts +4 -4
  95. package/dist/cjs/styles/preset.d.ts +17 -0
  96. package/dist/cjs/styles/size.d.ts +3 -0
  97. package/dist/cjs/styles/types.d.ts +9 -5
  98. package/dist/cjs/utils/react/Slots.d.ts +1 -2
  99. package/dist/cjs/utils/react/mapProps.d.ts +1 -1
  100. package/dist/cjs/utils/renderStyles.d.ts +4 -4
  101. package/dist/cjs/utils/responsive.d.ts +2 -2
  102. package/dist/cjs/utils/styles.d.ts +41 -41
  103. package/dist/cjs/utils/transitions.d.ts +7 -5
  104. package/dist/mjs/components/GridProvider.d.ts +4 -4
  105. package/dist/mjs/components/{Action.d.ts → actions/Action.d.ts} +2 -2
  106. package/dist/{cjs/atoms → mjs/components/actions}/Button/Button.d.ts +1 -1
  107. package/dist/mjs/{atoms → components/actions}/Button/Submit.d.ts +0 -0
  108. package/dist/{cjs/atoms → mjs/components/actions}/ButtonGroup/ButtonGroup.d.ts +1 -1
  109. package/dist/mjs/{atoms → components/content}/Avatar/Avatar.d.ts +3 -3
  110. package/dist/mjs/{atoms → components/content}/Badge/Badge.d.ts +2 -2
  111. package/dist/mjs/{atoms → components/content}/Card/Card.d.ts +1 -1
  112. package/dist/{cjs/components → mjs/components/content}/Content.d.ts +1 -1
  113. package/dist/{cjs/components → mjs/components/content}/Divider.d.ts +1 -1
  114. package/dist/mjs/components/{Footer.d.ts → content/Footer.d.ts} +1 -1
  115. package/dist/mjs/components/{Header.d.ts → content/Header.d.ts} +1 -1
  116. package/dist/mjs/components/{Paragraph.d.ts → content/Paragraph.d.ts} +1 -1
  117. package/dist/mjs/{atoms → components/content}/Placeholder/Placeholder.d.ts +3 -3
  118. package/dist/{cjs/atoms → mjs/components/content}/PrismCode/PrismCode.d.ts +1 -1
  119. package/dist/mjs/{atoms → components/content}/Skeleton/Skeleton.d.ts +14 -2
  120. package/dist/mjs/components/content/Tag/Tag.d.ts +10 -0
  121. package/dist/mjs/components/content/Text.d.ts +32 -0
  122. package/dist/mjs/components/content/Title.d.ts +12 -0
  123. package/dist/mjs/{atoms → components/forms}/Checkbox/Checkbox.d.ts +2 -2
  124. package/dist/{cjs/atoms → mjs/components/forms}/Checkbox/CheckboxGroup.d.ts +2 -2
  125. package/dist/mjs/{atoms → components/forms}/Checkbox/context.d.ts +0 -0
  126. package/dist/mjs/components/{FieldWrapper.d.ts → forms/FieldWrapper.d.ts} +5 -5
  127. package/dist/mjs/{atoms → components/forms}/Form/Field.d.ts +1 -1
  128. package/dist/{cjs/atoms → mjs/components/forms}/Form/Form.d.ts +2 -2
  129. package/dist/mjs/{atoms → components/forms}/Form/index.d.ts +0 -0
  130. package/dist/mjs/{atoms → components/forms}/Form/useForm.d.ts +0 -0
  131. package/dist/mjs/{atoms → components/forms}/Form/validation.d.ts +0 -0
  132. package/dist/mjs/components/{Label.d.ts → forms/Label.d.ts} +5 -5
  133. package/dist/mjs/{atoms → components/forms}/NumberInput/NumberInput.d.ts +0 -0
  134. package/dist/mjs/{atoms → components/forms}/NumberInput/StepButton.d.ts +0 -0
  135. package/dist/mjs/{atoms → components/forms}/PasswordInput/PasswordInput.d.ts +0 -0
  136. package/dist/mjs/{atoms → components/forms}/RadioGroup/Radio.d.ts +4 -4
  137. package/dist/mjs/{atoms → components/forms}/RadioGroup/RadioGroup.d.ts +0 -0
  138. package/dist/mjs/{atoms → components/forms}/RadioGroup/context.d.ts +0 -0
  139. package/dist/mjs/{atoms → components/forms}/SearchInput/SearchInput.d.ts +0 -0
  140. package/dist/{cjs/atoms → mjs/components/forms}/Switch/Switch.d.ts +5 -5
  141. package/dist/mjs/{atoms → components/forms}/TextArea/TextArea.d.ts +0 -0
  142. package/dist/mjs/{atoms → components/forms}/TextInput/TextInput.d.ts +0 -0
  143. package/dist/mjs/{atoms → components/forms}/TextInput/TextInputBase.d.ts +7 -7
  144. package/dist/mjs/components/{Flex.d.ts → layout/Flex.d.ts} +1 -1
  145. package/dist/{cjs/components → mjs/components/layout}/Flow.d.ts +1 -1
  146. package/dist/mjs/components/{Grid.d.ts → layout/Grid.d.ts} +1 -1
  147. package/dist/{cjs/components → mjs/components/layout}/Prefix.d.ts +1 -1
  148. package/dist/mjs/components/{Space.d.ts → layout/Space.d.ts} +1 -1
  149. package/dist/mjs/components/{Suffix.d.ts → layout/Suffix.d.ts} +1 -1
  150. package/dist/mjs/{atoms → components/navigation}/Link/Link.d.ts +1 -1
  151. package/dist/{cjs/molecules → mjs/components/navigation}/Tabs/Tabs.d.ts +4 -4
  152. package/dist/{cjs/molecules → mjs/components/organisms}/Alert/Alert.d.ts +2 -2
  153. package/dist/mjs/{molecules → components/organisms}/CopySnippet/CopySnippet.d.ts +7 -5
  154. package/dist/mjs/{molecules → components/organisms}/DirectoryTree/DirectoryTree.d.ts +2 -1
  155. package/dist/mjs/{molecules → components/organisms}/FileTabs/FileTabs.d.ts +4 -4
  156. package/dist/{cjs/molecules → mjs/components/organisms}/Modal/Modal.d.ts +1 -1
  157. package/dist/mjs/{molecules → components/organisms}/SearchResults/SearchResults.d.ts +1 -1
  158. package/dist/mjs/{molecules → components/organisms}/StatsCard/StatsCard.d.ts +1 -1
  159. package/dist/{cjs/molecules → mjs/components/organisms}/TopBar/TopBar.d.ts +1 -1
  160. package/dist/{cjs/atoms → mjs/components/other}/Base64Upload/Base64Upload.d.ts +1 -1
  161. package/dist/mjs/{atoms → components/other}/CloudLogo/CloudLogo.d.ts +1 -1
  162. package/dist/mjs/{molecules → components/overlays}/AlertDialog/AlertDialog.d.ts +2 -2
  163. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/Dialog.d.ts +1 -1
  164. package/dist/mjs/{atoms → components/overlays}/Dialog/DialogContainer.d.ts +0 -0
  165. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/DialogTrigger.d.ts +2 -2
  166. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/api.d.ts +1 -1
  167. package/dist/mjs/{atoms → components/overlays}/Dialog/context.d.ts +0 -0
  168. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/index.d.ts +1 -1
  169. package/dist/mjs/{atoms → components/overlays}/Modal/Modal.d.ts +4 -4
  170. package/dist/mjs/{atoms → components/overlays}/Modal/OpenTransition.d.ts +0 -0
  171. package/dist/mjs/{atoms → components/overlays}/Modal/Overlay.d.ts +0 -0
  172. package/dist/{cjs/atoms → mjs/components/overlays}/Modal/Popover.d.ts +2 -2
  173. package/dist/mjs/{atoms → components/overlays}/Modal/Tray.d.ts +3 -3
  174. package/dist/mjs/{atoms → components/overlays}/Modal/Underlay.d.ts +0 -0
  175. package/dist/mjs/{atoms → components/overlays}/Modal/index.d.ts +0 -0
  176. package/dist/mjs/{molecules → components/overlays}/Notification/Notification.d.ts +1 -1
  177. package/dist/mjs/components/overlays/OverlayWrapper.d.ts +11 -0
  178. package/dist/{cjs/atoms → mjs/components/overlays}/Tooltip/Tooltip.d.ts +4 -4
  179. package/dist/mjs/{atoms → components/overlays}/Tooltip/TooltipTrigger.d.ts +0 -0
  180. package/dist/{cjs/atoms → mjs/components/overlays}/Tooltip/context.d.ts +4 -2
  181. package/dist/{cjs/atoms → mjs/components/pickers}/ComboBox/ComboBox.d.ts +1 -1
  182. package/dist/{cjs/atoms → mjs/components/pickers}/Select/Select.d.ts +12 -11
  183. package/dist/mjs/{atoms → components/status}/LoadingAnimation/LoadingAnimation.d.ts +1 -1
  184. package/dist/{cjs/atoms → mjs/components/status}/Spin/Spin.d.ts +1 -1
  185. package/dist/mjs/components/types.d.ts +20 -21
  186. package/dist/mjs/css-properties.d.ts +62 -0
  187. package/dist/mjs/data/themes.d.ts +1 -1
  188. package/dist/mjs/index.d.ts +117 -112
  189. package/dist/mjs/index.js +7 -7
  190. package/dist/mjs/index.js.map +1 -1
  191. package/dist/mjs/provider.d.ts +2 -2
  192. package/dist/mjs/providers/Styles.d.ts +2 -2
  193. package/dist/mjs/services/notification.d.ts +1 -1
  194. package/dist/mjs/shared/form.d.ts +2 -2
  195. package/dist/mjs/styles/color.d.ts +1 -3
  196. package/dist/mjs/styles/list.d.ts +4 -4
  197. package/dist/mjs/styles/preset.d.ts +17 -0
  198. package/dist/mjs/styles/size.d.ts +3 -0
  199. package/dist/mjs/styles/types.d.ts +9 -5
  200. package/dist/mjs/utils/react/Slots.d.ts +1 -2
  201. package/dist/mjs/utils/react/mapProps.d.ts +1 -1
  202. package/dist/mjs/utils/renderStyles.d.ts +4 -4
  203. package/dist/mjs/utils/responsive.d.ts +2 -2
  204. package/dist/mjs/utils/styles.d.ts +41 -41
  205. package/dist/mjs/utils/transitions.d.ts +7 -5
  206. package/package.json +4 -3
  207. package/dist/cjs/components/OverlayWrapper.d.ts +0 -8
  208. package/dist/cjs/components/Text.d.ts +0 -32
  209. package/dist/cjs/components/Title.d.ts +0 -15
  210. package/dist/mjs/components/OverlayWrapper.d.ts +0 -8
  211. package/dist/mjs/components/Text.d.ts +0 -32
  212. package/dist/mjs/components/Title.d.ts +0 -15
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { CubeButtonProps } from '../Button/Button';
2
+ import { CubeButtonProps } from '../../actions/Button/Button';
3
3
  declare const _CloudLogo: import("react").ForwardRefExoticComponent<CubeButtonProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
4
4
  export { _CloudLogo as CloudLogo };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { CubeButtonProps } from '../../atoms/Button/Button';
3
- import { CubeDialogProps } from '../../atoms/Dialog/Dialog';
2
+ import { CubeButtonProps } from '../../actions/Button/Button';
3
+ import { CubeDialogProps } from '../Dialog/Dialog';
4
4
  export interface CubeAlertDialogProps extends CubeDialogProps {
5
5
  /** Whether the dialog is an important prompt */
6
6
  danger?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BaseProps } from '../../components/types';
2
+ import { BaseProps } from '../../types';
3
3
  import { AriaDialogProps } from '@react-types/dialog';
4
4
  export interface CubeDialogProps extends Omit<BaseProps, 'role'>, AriaDialogProps {
5
5
  type?: 'modal' | 'popover' | 'fullscreen' | 'fullscreenTakeover' | 'panel' | 'tray';
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, RefObject } from 'react';
2
- import { NuStyles } from '../../styles/types';
2
+ import { Styles } from '../../../styles/types';
3
3
  export declare type CubeDialogClose = (close: () => void) => ReactElement;
4
4
  export interface CubeDialogTriggerProps {
5
5
  /** The Dialog and its trigger element. See the DialogTrigger [Content section](#content) for more information on what to provide as children. */
@@ -24,7 +24,7 @@ export interface CubeDialogTriggerProps {
24
24
  /** The screen breakpoint for the mobile type */
25
25
  mobileViewport?: number;
26
26
  /** The style map for the overlay **/
27
- styles?: NuStyles;
27
+ styles?: Styles;
28
28
  }
29
29
  declare function DialogTrigger(props: any): JSX.Element;
30
30
  /**
@@ -1,4 +1,4 @@
1
- import { CubeAlertDialogProps } from '../../molecules/AlertDialog/AlertDialog';
1
+ import { CubeAlertDialogProps } from '../AlertDialog/AlertDialog';
2
2
  import { CubeDialogContainerProps } from './DialogContainer';
3
3
  import { ReactNode } from 'react';
4
4
  export interface DialogData extends Omit<CubeDialogContainerProps, 'onDismiss'>, Omit<CubeAlertDialogProps, 'type' | 'id'> {
@@ -6,5 +6,5 @@ declare const _Dialog: import("react").ForwardRefExoticComponent<CubeDialogProps
6
6
  confirm: (options: any) => void;
7
7
  info: (options: any) => void;
8
8
  };
9
- export { _Dialog as Dialog, DialogContainer, DialogTrigger, };
9
+ export { _Dialog as Dialog, DialogContainer, DialogTrigger };
10
10
  export type { CubeDialogProps, CubeDialogTriggerProps, CubeDialogContainerProps, };
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { NuStyles } from '../../styles/types';
3
- import { BaseProps } from '../../components/types';
2
+ import { Styles } from '../../../styles/types';
3
+ import { BaseProps } from '../../types';
4
4
  import { ModalProps } from '@react-types/overlays';
5
- export declare const OVERLAY_WRAPPER_STYLES: NuStyles;
5
+ export declare const OVERLAY_WRAPPER_STYLES: Styles;
6
6
  export interface CubeModalProps extends ModalProps {
7
7
  qa?: BaseProps['qa'];
8
8
  onClose?: () => void;
9
9
  type?: 'modal' | 'fullscreen' | 'fullscreenTakeover';
10
- styles?: NuStyles;
10
+ styles?: Styles;
11
11
  }
12
12
  declare let _Modal: import("react").ForwardRefExoticComponent<CubeModalProps & import("react").RefAttributes<unknown>>;
13
13
  export { _Modal as Modal };
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { OverlayProps } from '@react-types/overlays';
3
- import { BaseProps } from '../../components/types';
4
- import { PlacementAxis } from '../../shared';
3
+ import { BaseProps } from '../../types';
4
+ import { PlacementAxis } from '../../../shared';
5
5
  export interface CubePopoverProps extends BaseProps, Omit<OverlayProps, 'children'> {
6
6
  placement?: PlacementAxis;
7
7
  arrowProps?: HTMLAttributes<HTMLElement>;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { NuStyles } from '../../styles/types';
3
- import { BaseProps } from '../../components/types';
2
+ import { Styles } from '../../../styles/types';
3
+ import { BaseProps } from '../../types';
4
4
  import { TrayProps } from '@react-types/overlays';
5
5
  export interface CubeTrayProps extends TrayProps {
6
6
  qa?: BaseProps['qa'];
7
7
  onClose?: () => void;
8
8
  isFixedHeight?: boolean;
9
9
  isNonModal?: boolean;
10
- styles?: NuStyles;
10
+ styles?: Styles;
11
11
  }
12
12
  declare let _Tray: import("react").ForwardRefExoticComponent<CubeTrayProps & import("react").RefAttributes<unknown>>;
13
13
  export { _Tray as Tray };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CubeCardProps } from '../../atoms/Card/Card';
2
+ import { CubeCardProps } from '../../content/Card/Card';
3
3
  export interface CubeNotificationProps extends CubeCardProps {
4
4
  type?: 'success' | 'note' | 'danger';
5
5
  onClose?: () => void;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CubeOverlayWrapperProps {
3
+ isOpen?: boolean;
4
+ placement?: 'start' | 'end' | 'right' | 'left' | 'top' | 'bottom';
5
+ children: ReactNode;
6
+ childrenOnly?: boolean;
7
+ minOffset?: string | number;
8
+ minScale?: string;
9
+ withoutTransition?: boolean;
10
+ }
11
+ export declare function OverlayWrapper({ isOpen, placement, minOffset, minScale, withoutTransition, children, childrenOnly, }: CubeOverlayWrapperProps): JSX.Element;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { NuStyles } from '../../styles/types';
3
- import { BaseProps, ContainerStyleProps } from '../../components/types';
2
+ import { Styles } from '../../../styles/types';
3
+ import { BaseProps, ContainerStyleProps } from '../../types';
4
4
  import { AriaTooltipProps } from '@react-types/tooltip';
5
- import { PlacementAxis } from '../../shared';
5
+ import { PlacementAxis } from '../../../shared';
6
6
  export interface CubeTooltipProps extends BaseProps, ContainerStyleProps, AriaTooltipProps {
7
- tipStyles?: NuStyles;
7
+ tipStyles?: Styles;
8
8
  showIcon?: boolean;
9
9
  placement?: PlacementAxis;
10
10
  }
@@ -1,13 +1,15 @@
1
1
  import React, { HTMLAttributes, RefObject } from 'react';
2
2
  import { TooltipTriggerState } from '@react-stately/tooltip';
3
- import { PlacementAxis } from '../../shared';
4
- import { Props } from '../../components/types';
3
+ import { PlacementAxis } from '../../../shared';
4
+ import { Props } from '../../types';
5
5
  interface TooltipContextProps {
6
6
  state?: TooltipTriggerState;
7
7
  ref?: RefObject<HTMLDivElement>;
8
8
  placement?: PlacementAxis;
9
9
  arrowProps?: HTMLAttributes<HTMLElement>;
10
10
  overlayProps?: Props;
11
+ minScale?: string | number;
12
+ minOffset?: string | number;
11
13
  }
12
14
  export declare const TooltipContext: React.Context<TooltipContextProps>;
13
15
  export {};
@@ -2,7 +2,7 @@ import { RefObject } from 'react';
2
2
  import { CubeSelectBaseProps } from '../Select/Select';
3
3
  import { CollectionBase, KeyboardDelegate, LoadingState } from '@react-types/shared';
4
4
  import { ComboBoxProps } from '@react-types/combobox';
5
- export interface CubeComboBoxProps<T> extends CubeSelectBaseProps, ComboBoxProps<T>, CollectionBase<T> {
5
+ export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOpenChange'>, ComboBoxProps<T>, CollectionBase<T> {
6
6
  multiLine?: boolean;
7
7
  autoComplete?: string;
8
8
  inputRef?: RefObject<HTMLInputElement | HTMLTextAreaElement>;
@@ -1,9 +1,9 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { NuStyles } from '../../styles/types';
3
- import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props } from '../../components/types';
2
+ import { Styles } from '../../../styles/types';
3
+ import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props } from '../../types';
4
4
  import { AriaSelectProps } from '@react-types/select';
5
- import { FormFieldProps } from '../../shared';
6
- export interface CubeSelectBaseProps extends BasePropsWithoutChildren, OuterStyleProps, FormFieldProps, BlockStyleProps {
5
+ import { FormFieldProps } from '../../../shared';
6
+ export interface CubeSelectBaseProps<T> extends BasePropsWithoutChildren, OuterStyleProps, FormFieldProps, BlockStyleProps, AriaSelectProps<T> {
7
7
  prefix?: ReactNode;
8
8
  suffix?: ReactNode;
9
9
  triggerRef?: RefObject<HTMLButtonElement>;
@@ -11,18 +11,19 @@ export interface CubeSelectBaseProps extends BasePropsWithoutChildren, OuterStyl
11
11
  loadingIndicator?: ReactNode;
12
12
  overlayOffset?: number;
13
13
  hideTrigger?: boolean;
14
- inputStyles?: NuStyles;
15
- optionStyles?: NuStyles;
16
- triggerStyles?: NuStyles;
17
- listBoxStyles?: NuStyles;
18
- overlayStyles?: NuStyles;
14
+ inputStyles?: Styles;
15
+ optionStyles?: Styles;
16
+ triggerStyles?: Styles;
17
+ listBoxStyles?: Styles;
18
+ overlayStyles?: Styles;
19
19
  direction?: 'top' | 'bottom';
20
20
  shouldFlip?: boolean;
21
21
  inputProps?: Props;
22
22
  }
23
- export interface CubeSelectProps<T> extends CubeSelectBaseProps, AriaSelectProps<T> {
23
+ export interface CubeSelectProps<T> extends CubeSelectBaseProps<T> {
24
24
  popoverRef?: RefObject<HTMLInputElement>;
25
- listBoxRef?: RefObject<HTMLInputElement>;
25
+ /** The ref for the list box. */
26
+ listBoxRef?: RefObject<HTMLElement>;
26
27
  }
27
28
  export declare function ListBoxPopup({ state, popoverRef, listBoxRef, listBoxStyles, overlayStyles, optionStyles, overlayProps: parentOverlayProps, disallowEmptySelection, shouldUseVirtualFocus, placement, ...otherProps }: {
28
29
  [x: string]: any;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CubeBlockProps } from '../../components/Block';
2
+ import { CubeBlockProps } from '../../Block';
3
3
  export interface CubeLoadingAnimationProps extends CubeBlockProps {
4
4
  size?: 'small' | 'medium' | 'large' | number;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CubeBlockProps } from '../../components/Block';
2
+ import { CubeBlockProps } from '../../Block';
3
3
  export interface CubeSpinProps extends CubeBlockProps {
4
4
  size?: 'small' | 'default' | 'large' | number;
5
5
  spinning?: boolean;
@@ -1,5 +1,5 @@
1
- import { AllHTMLAttributes, CSSProperties, JSXElementConstructor, ReactElement, ReactNodeArray, ReactPortal } from 'react';
2
- import { NuStyles } from '../styles/types';
1
+ import { AllHTMLAttributes, CSSProperties } from 'react';
2
+ import { Styles } from '../styles/types';
3
3
  import { BASE_STYLES, BLOCK_STYLES, COLOR_STYLES, CONTAINER_STYLES, DIMENSION_STYLES, FLOW_STYLES, OUTER_STYLES, POSITION_STYLES, TEXT_STYLES } from '../styles/list';
4
4
  export interface BasePropsWithoutChildren extends Pick<AllHTMLAttributes<HTMLElement>, 'className' | 'role' | 'id'> {
5
5
  /** QA ID for e2e testing **/
@@ -8,7 +8,7 @@ export interface BasePropsWithoutChildren extends Pick<AllHTMLAttributes<HTMLEle
8
8
  qaVal?: string | number;
9
9
  /** The tag name of the element **/
10
10
  /** The style map **/
11
- styles?: NuStyles;
11
+ styles?: Styles;
12
12
  /** The list of responsive points in pixels **/
13
13
  breakpoints?: number[];
14
14
  /** Whether the element has the block layout outside **/
@@ -34,30 +34,29 @@ export interface BasePropsWithoutChildren extends Pick<AllHTMLAttributes<HTMLEle
34
34
  [key: string]: string | number | null;
35
35
  });
36
36
  }
37
- export interface BaseProps extends BasePropsWithoutChildren {
38
- children?: ReactElement<any, string | JSXElementConstructor<any>> | string | number | {} | ReactNodeArray | ReactPortal | boolean | null | undefined;
37
+ export interface BaseProps extends BasePropsWithoutChildren, Pick<AllHTMLAttributes<HTMLElementTagNameMap['div']>, 'children'> {
39
38
  }
40
39
  export interface AllBaseProps<K extends keyof HTMLElementTagNameMap = 'div'> extends BaseProps, Omit<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'style'> {
41
- as?: K;
40
+ as?: string;
42
41
  }
43
- export declare type BaseStyleProps = Pick<NuStyles, typeof BASE_STYLES[number]>;
44
- export declare type PositionStyleProps = Pick<NuStyles, typeof POSITION_STYLES[number]>;
45
- export declare type BlockStyleProps = Pick<NuStyles, typeof BLOCK_STYLES[number]>;
46
- export declare type ColorStyleProps = Pick<NuStyles, typeof COLOR_STYLES[number]>;
47
- export declare type TextStyleProps = Pick<NuStyles, typeof TEXT_STYLES[number]>;
48
- export declare type DimensionStyleProps = Pick<NuStyles, typeof DIMENSION_STYLES[number]>;
49
- export declare type FlowStyleProps = Pick<NuStyles, typeof FLOW_STYLES[number]>;
50
- export declare type ContainerStyleProps = Pick<NuStyles, typeof CONTAINER_STYLES[number]>;
51
- export declare type OuterStyleProps = Pick<NuStyles, typeof OUTER_STYLES[number]>;
42
+ export declare type BaseStyleProps = Pick<Styles, typeof BASE_STYLES[number]>;
43
+ export declare type PositionStyleProps = Pick<Styles, typeof POSITION_STYLES[number]>;
44
+ export declare type BlockStyleProps = Pick<Styles, typeof BLOCK_STYLES[number]>;
45
+ export declare type ColorStyleProps = Pick<Styles, typeof COLOR_STYLES[number]>;
46
+ export declare type TextStyleProps = Pick<Styles, typeof TEXT_STYLES[number]>;
47
+ export declare type DimensionStyleProps = Pick<Styles, typeof DIMENSION_STYLES[number]>;
48
+ export declare type FlowStyleProps = Pick<Styles, typeof FLOW_STYLES[number]>;
49
+ export declare type ContainerStyleProps = Pick<Styles, typeof CONTAINER_STYLES[number]>;
50
+ export declare type OuterStyleProps = Pick<Styles, typeof OUTER_STYLES[number]>;
52
51
  export declare type ShortItemsStyles = {
53
- align?: NuStyles['alignItems'];
54
- justify?: NuStyles['justifyItems'];
52
+ align?: Styles['alignItems'];
53
+ justify?: Styles['justifyItems'];
55
54
  };
56
55
  export declare type ShortGridStyles = {
57
- template?: NuStyles['gridTemplate'];
58
- columns?: NuStyles['gridColumns'];
59
- rows?: NuStyles['gridRows'];
60
- areas?: NuStyles['gridAreas'];
56
+ template?: Styles['gridTemplate'];
57
+ columns?: Styles['gridColumns'];
58
+ rows?: Styles['gridRows'];
59
+ areas?: Styles['gridAreas'];
61
60
  };
62
61
  export interface Props {
63
62
  [key: string]: any;
@@ -17,6 +17,7 @@ declare const PROPS: {
17
17
  'minor-color': string;
18
18
  'success-bg-color': string;
19
19
  'note-bg-color': string;
20
+ 'note-text-color': string;
20
21
  'danger-bg-color': string;
21
22
  'danger-bg-hover-color': string;
22
23
  'primary-1': string;
@@ -64,15 +65,76 @@ declare const PROPS: {
64
65
  'h1-font-size': string;
65
66
  'h1-line-height': string;
66
67
  'h1-letter-spacing': string;
68
+ 'h1-font-weight': string;
67
69
  'h2-font-size': string;
68
70
  'h2-line-height': string;
71
+ 'h2-letter-spacing': string;
72
+ 'h2-font-weight': string;
69
73
  'h3-font-size': string;
70
74
  'h3-line-height': string;
75
+ 'h3-letter-spacing': string;
76
+ 'h3-font-weight': string;
71
77
  'h4-font-size': string;
72
78
  'h4-line-height': string;
79
+ 'h4-letter-spacing': string;
80
+ 'h4-font-weight': string;
73
81
  'h5-font-size': string;
74
82
  'h5-line-height': string;
83
+ 'h5-letter-spacing': string;
84
+ 'h5-font-weight': string;
85
+ 'h5s-font-size': string;
86
+ 'h5s-line-height': string;
87
+ 'h5s-letter-spacing': string;
88
+ 'h5s-font-weight': string;
89
+ 'h5m-font-size': string;
90
+ 'h5m-line-height': string;
91
+ 'h5m-letter-spacing': string;
92
+ 'h5m-font-weight': string;
75
93
  'h6-font-size': string;
76
94
  'h6-line-height': string;
95
+ 't1-font-size': string;
96
+ 't1-line-height': string;
97
+ 't1-letter-spacing': string;
98
+ 't1-font-weight': string;
99
+ 't2-font-size': string;
100
+ 't2-line-height': string;
101
+ 't2-letter-spacing': string;
102
+ 't2-font-weight': string;
103
+ 't3-font-size': string;
104
+ 't3-line-height': string;
105
+ 't3-letter-spacing': string;
106
+ 't3-font-weight': string;
107
+ 't4-font-size': string;
108
+ 't4-line-height': string;
109
+ 't4-letter-spacing': string;
110
+ 't4-font-weight': string;
111
+ 't4m-font-size': string;
112
+ 't4m-line-height': string;
113
+ 't4m-letter-spacing': string;
114
+ 't4m-font-weight': string;
115
+ 'p1-font-size': string;
116
+ 'p1-line-height': string;
117
+ 'p1-letter-spacing': string;
118
+ 'p1-font-weight': string;
119
+ 'p2-font-size': string;
120
+ 'p2-line-height': string;
121
+ 'p2-letter-spacing': string;
122
+ 'p2-font-weight': string;
123
+ 'p3-font-size': string;
124
+ 'p3-line-height': string;
125
+ 'p3-letter-spacing': string;
126
+ 'p3-font-weight': string;
127
+ 'p4-font-size': string;
128
+ 'p4-line-height': string;
129
+ 'p4-letter-spacing': string;
130
+ 'p4-font-weight': string;
131
+ 'tag-font-size': string;
132
+ 'tag-line-height': string;
133
+ 'tag-letter-spacing': string;
134
+ 'tag-font-weight': string;
135
+ 'default-font-size': string;
136
+ 'default-line-height': string;
137
+ 'default-letter-spacing': string;
138
+ 'default-font-weight': string;
77
139
  };
78
140
  export default PROPS;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  };
12
12
  readonly note: {
13
13
  readonly fill: "#note-bg";
14
- readonly color: "#note";
14
+ readonly color: "#note-text";
15
15
  readonly border: "#note.40";
16
16
  };
17
17
  readonly disabled: {