@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,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { NuResponsiveStyleValue } from './utils/styles';
2
+ import { ResponsiveStyleValue } from './utils/styles';
3
3
  import { Props } from './components/types';
4
4
  export declare const UIKitContext: import("react").Context<ProviderProps>;
5
5
  export interface ProviderProps extends Props {
@@ -12,7 +12,7 @@ export interface ProviderProps extends Props {
12
12
  router?: Function;
13
13
  styles?: {
14
14
  [key: string]: {
15
- [key: string]: NuResponsiveStyleValue;
15
+ [key: string]: ResponsiveStyleValue;
16
16
  } | Function;
17
17
  };
18
18
  ref?: JSX.Element;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { NuStyles } from '../styles/types';
2
+ import { Styles } from '../styles/types';
3
3
  export declare const StyleContext: import("react").Context<any>;
4
4
  export declare function StyleProvider({ children, ...props }: {
5
5
  [x: string]: any;
6
6
  children: any;
7
7
  }): JSX.Element;
8
- export declare function useContextStyles(name: any, props?: any): NuStyles;
8
+ export declare function useContextStyles(name: any, props?: any): Styles;
@@ -1,4 +1,4 @@
1
- import { CubeNotificationProps } from '../molecules/Notification/Notification';
1
+ import { CubeNotificationProps } from '../components/overlays/Notification/Notification';
2
2
  export interface NotificationData {
3
3
  id: number;
4
4
  type?: CubeNotificationProps['type'];
@@ -1,5 +1,5 @@
1
1
  import { Props } from '../components/types';
2
- import { NuStyles } from '../styles/types';
2
+ import { Styles } from '../styles/types';
3
3
  import { ReactNode } from 'react';
4
4
  export declare type LabelPosition = 'side' | 'top';
5
5
  export declare type NecessityIndicator = 'icon' | 'label';
@@ -18,7 +18,7 @@ export interface FieldBaseProps {
18
18
  validateTrigger?: ValidateTrigger;
19
19
  }
20
20
  export interface FormBaseProps {
21
- labelStyles?: NuStyles;
21
+ labelStyles?: Styles;
22
22
  labelPosition?: LabelPosition;
23
23
  /** Whether the field presents required mark */
24
24
  requiredMark?: boolean;
@@ -1,8 +1,6 @@
1
1
  export declare function colorStyle({ color }: {
2
2
  color: any;
3
- }): "" | {
4
- color: any;
5
- };
3
+ }): any[] | "";
6
4
  export declare namespace colorStyle {
7
5
  var __lookupStyles: string[];
8
6
  }
@@ -1,9 +1,9 @@
1
- export declare const BASE_STYLES: readonly ["display", "size", "font"];
1
+ export declare const BASE_STYLES: readonly ["display", "size", "font", "preset"];
2
2
  export declare const POSITION_STYLES: readonly ["gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin"];
3
- export declare const BLOCK_STYLES: readonly ["reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline"];
3
+ export declare const BLOCK_STYLES: readonly ["reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline", "textAlign"];
4
4
  export declare const COLOR_STYLES: readonly ["color", "fill"];
5
- export declare const TEXT_STYLES: readonly ["textAlign", "textTransform", "fontWeight", "fontStyle"];
5
+ export declare const TEXT_STYLES: readonly ["textTransform", "fontWeight", "fontStyle"];
6
6
  export declare const DIMENSION_STYLES: readonly ["width", "height", "flexBasis"];
7
7
  export declare const FLOW_STYLES: readonly ["flow", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "gap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
8
- export declare const CONTAINER_STYLES: readonly ["display", "size", "font", "color", "fill", "width", "height", "flexBasis", "gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin", "reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline", "flow", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "gap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
8
+ export declare const CONTAINER_STYLES: readonly ["display", "size", "font", "preset", "color", "fill", "width", "height", "flexBasis", "gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin", "reset", "padding", "shadow", "border", "radius", "opacity", "overflow", "styledScrollbar", "hide", "outline", "textAlign", "flow", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "gap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
9
9
  export declare const OUTER_STYLES: readonly ["gridArea", "flexGrow", "flexShrink", "order", "gridColumn", "gridRow", "placeSelf", "zIndex", "margin", "width", "height", "flexBasis"];
@@ -0,0 +1,17 @@
1
+ export declare function presetStyle({ preset }: {
2
+ preset: any;
3
+ }): "" | {
4
+ 'font-size': any;
5
+ 'line-height': any;
6
+ 'letter-spacing': any;
7
+ 'font-weight': any;
8
+ 'text-transform': any;
9
+ '--font-size': any;
10
+ '--line-height': any;
11
+ '--letter-spacing': any;
12
+ '--font-weight': any;
13
+ '--text-transform': any;
14
+ };
15
+ export declare namespace presetStyle {
16
+ var __lookupStyles: string[];
17
+ }
@@ -4,6 +4,9 @@ export declare function sizeStyle({ size }: {
4
4
  'font-size': any;
5
5
  'line-height': any;
6
6
  'letter-spacing': any;
7
+ '--font-size': any;
8
+ '--line-height': any;
9
+ '--letter-spacing': any;
7
10
  };
8
11
  export declare namespace sizeStyle {
9
12
  var __lookupStyles: string[];
@@ -1,10 +1,10 @@
1
1
  import { CSSProperties } from 'react';
2
- import { NuResponsiveStyleValue } from '../utils/styles';
2
+ import { ResponsiveStyleValue } from '../utils/styles';
3
3
  declare type NamedColor = 'purple' | 'purple-text' | 'purple-01' | 'purple-02' | 'purple-03' | 'purple-04' | 'dark' | 'dark-01' | 'dark-02' | 'dark-03' | 'dark-04' | 'dark-05' | 'text' | 'primary' | 'disabled' | 'disabled-bg' | 'disabled-text' | 'danger' | 'danger-bg' | 'danger-text' | 'success' | 'success-bg' | 'success-text' | 'note' | 'note-bg' | 'note-text' | 'white' | 'light' | 'light-grey' | 'black' | 'pink' | 'pink-01' | 'pink-02' | 'border' | 'clear' | 'shadow' | 'draft' | 'minor';
4
4
  declare type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
5
5
  declare type OpaquePercentage = '' | `.${Digit}` | `.${Digit}${Digit}` | '.100';
6
6
  export declare type NoType = false | null | undefined;
7
- export interface NuStylesInterface extends Omit<CSSProperties, 'color' | 'fill' | 'font' | 'outline'> {
7
+ export interface StylesInterface extends Omit<CSSProperties, 'color' | 'fill' | 'font' | 'outline'> {
8
8
  /** Set the background color of the element.
9
9
  * ```
10
10
  * fill="#{name_of_the_color}"
@@ -92,10 +92,14 @@ export interface NuStylesInterface extends Omit<CSSProperties, 'color' | 'fill'
92
92
  * Syntax: <value> 'inset'?
93
93
  */
94
94
  outline?: CSSProperties['fontFamily'] | boolean;
95
+ /**
96
+ * The preset style sets the base text settings according to the names preset. Affected styles: `font-size`, `line-height`, `letter-spacing`, `font-weight` and `text-transform`.
97
+ */
98
+ preset?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h5s' | 'h5m' | 'h6' | 't1' | 't2' | 't3' | 't4' | 't4m' | 'p1' | 'p2' | 'p3' | 'p4' | 'tag' | 'default' | string;
95
99
  }
96
- export declare type NuStyles = {
97
- [key in keyof NuStylesInterface]?: NuResponsiveStyleValue<NuStylesInterface[key]>;
100
+ export declare type Styles = {
101
+ [key in keyof StylesInterface]?: ResponsiveStyleValue<StylesInterface[key]>;
98
102
  } & {
99
- [key: string]: NuResponsiveStyleValue<string | number | boolean | undefined>;
103
+ [key: string]: ResponsiveStyleValue<string | number | boolean | undefined>;
100
104
  };
101
105
  export {};
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { Props } from '../../components/types';
3
- export declare function useSlotProps(props: Props, defaultSlot: any): Props;
2
+ export declare function useSlotProps(props: Record<string, any>, defaultSlot: any): Record<string, any>;
4
3
  export declare function SlotProvider(props: any): JSX.Element;
5
4
  export declare function ClearSlots(props: any): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { CubeButtonProps } from '../../atoms/Button/Button';
1
+ import { CubeButtonProps } from '../../components/actions/Button/Button';
2
2
  import { AriaButtonProps } from '@react-types/button';
3
3
  /** Converts AriaButtonProps to CubeButtonProps */
4
4
  export declare function ariaToCubeButtonProps(props: AriaButtonProps<'button'>): CubeButtonProps;
@@ -1,7 +1,7 @@
1
- import { NuStyleHandler } from './styles';
2
- import { NuStyles } from '../styles/types';
1
+ import { StyleHandler } from './styles';
2
+ import { Styles } from '../styles/types';
3
3
  declare type StyleHandlerMap = {
4
- [key: string]: NuStyleHandler[];
4
+ [key: string]: StyleHandler[];
5
5
  };
6
6
  /**
7
7
  * Render style props to complete Styled Components CSS.
@@ -10,6 +10,6 @@ declare type StyleHandlerMap = {
10
10
  * @param styleHandlerMap - Style to handler list map.
11
11
  * @return {string}
12
12
  */
13
- export declare function renderStyles(styles: NuStyles, responsive: number[], styleHandlerMap?: StyleHandlerMap): string;
13
+ export declare function renderStyles(styles: Styles, responsive: number[], styleHandlerMap?: StyleHandlerMap): string;
14
14
  export declare function createStyle(styleName: string, cssStyle?: string, converter?: Function): any;
15
15
  export {};
@@ -1,4 +1,4 @@
1
- import { NuResponsiveStyleValue } from './styles';
1
+ import { ResponsiveStyleValue } from './styles';
2
2
  export declare function mediaWrapper(cssRules: any, points: any): any;
3
3
  export interface ResponsiveZone {
4
4
  max?: number;
@@ -6,4 +6,4 @@ export interface ResponsiveZone {
6
6
  mediaQuery?: string;
7
7
  }
8
8
  export declare function pointsToZones(points: number[]): any;
9
- export declare function normalizeStyleZones(value: NuResponsiveStyleValue, zoneNumber: number): any[] | null | undefined;
9
+ export declare function normalizeStyleZones(value: ResponsiveStyleValue, zoneNumber: number): any[] | null | undefined;
@@ -1,51 +1,51 @@
1
- import { NuStyles } from '../styles/types';
2
- export declare type NuStyleValue<T = string> = number | null | boolean | undefined | T;
3
- export declare type NuStyleValueStateMap<T> = {
4
- [key: string]: NuStyleValue<T>;
1
+ import { Styles } from '../styles/types';
2
+ export declare type StyleValue<T = string> = number | null | boolean | undefined | T;
3
+ export declare type StyleValueStateMap<T> = {
4
+ [key: string]: StyleValue<T>;
5
5
  };
6
- export declare type NuResponsiveStyleValue<T = string> = NuStyleValue<T> | NuStyleValue<T>[] | NuStyleValueStateMap<T> | NuStyleValueStateMap<T>[];
7
- export declare type NuComputeModel = string | number;
8
- export declare type NuCSSMap = {
6
+ export declare type ResponsiveStyleValue<T = string> = StyleValue<T> | StyleValue<T>[] | StyleValueStateMap<T> | StyleValueStateMap<T>[];
7
+ export declare type ComputeModel = string | number;
8
+ export declare type CSSMap = {
9
9
  $?: string;
10
10
  } & {
11
11
  [key: string]: string | string[];
12
12
  };
13
- export declare type NuStyleHandler = ((NuStyleValue: any) => NuCSSMap | NuCSSMap[]) & {
13
+ export declare type StyleHandler = ((StyleValue: any) => CSSMap | CSSMap[]) & {
14
14
  __lookupStyles: string[];
15
15
  };
16
- export interface NuStyleStateData {
17
- model?: NuComputeModel;
16
+ export interface StyleStateData {
17
+ model?: ComputeModel;
18
18
  tokens?: string[];
19
- value: NuResponsiveStyleValue;
19
+ value: ResponsiveStyleValue;
20
20
  /** The list of mods to apply */
21
21
  mods: string[];
22
22
  /** The list of **not** mods to apply (e.g. `:not(:hover)`) */
23
23
  notMods: string[];
24
24
  }
25
- export declare type NuStyleStateDataList = NuStyleStateData[];
26
- export declare type NuStyleStateDataListMap = {
27
- [key: string]: NuStyleStateDataList;
25
+ export declare type StyleStateDataList = StyleStateData[];
26
+ export declare type StyleStateDataListMap = {
27
+ [key: string]: StyleStateDataList;
28
28
  };
29
29
  /** An object that describes a relation between specific modifiers and style value. **/
30
- export interface NuStyleState {
30
+ export interface StyleState {
31
31
  /** The list of mods to apply */
32
32
  mods: string[];
33
33
  /** The list of **not** mods to apply (e.g. `:not(:hover)`) */
34
34
  notMods: string[];
35
35
  /** The value to apply */
36
- value: NuStyleMap;
36
+ value: StyleMap;
37
37
  }
38
- export declare type NuComputeUnit = string | (string | string[])[];
39
- export declare type NuStyleStateList = NuStyleState[];
40
- export declare type NuStyleMap = {
41
- [key: string]: NuResponsiveStyleValue;
38
+ export declare type ComputeUnit = string | (string | string[])[];
39
+ export declare type StyleStateList = StyleState[];
40
+ export declare type StyleMap = {
41
+ [key: string]: ResponsiveStyleValue;
42
42
  };
43
- export declare type NuStyleStateMap = {
44
- [key: string]: NuStyleState;
43
+ export declare type StyleStateMap = {
44
+ [key: string]: StyleState;
45
45
  };
46
- export declare type NuStyleStateMapList = NuStyleStateMap[];
47
- export declare type NuStyleStateListMap = {
48
- [key: string]: NuStyleStateList;
46
+ export declare type StyleStateMapList = StyleStateMap[];
47
+ export declare type StyleStateListMap = {
48
+ [key: string]: StyleStateList;
49
49
  };
50
50
  export declare const NO_VALUES: (string | boolean)[];
51
51
  export declare const YES_VALUES: (string | boolean)[];
@@ -128,20 +128,20 @@ export declare function extendStyles(defaultStyles: any, newStyles: any): {};
128
128
  */
129
129
  export declare function extractStyles(props: {
130
130
  [key: string]: any;
131
- }, styleList?: readonly string[], defaultStyles?: NuStyles, propMap?: {
131
+ }, styleList?: readonly string[], defaultStyles?: Styles, propMap?: {
132
132
  [key: string]: string;
133
- }, ignoreList?: readonly string[]): NuStyles;
133
+ }, ignoreList?: readonly string[]): Styles;
134
134
  /**
135
- * Render NuCSSMap to Styled Components CSS
135
+ * Render CSSMap to Styled Components CSS
136
136
  * @param styles
137
137
  * @param [selector]
138
138
  */
139
- export declare function renderStylesToSC(styles: NuCSSMap | NuCSSMap[], selector?: string): any;
139
+ export declare function renderStylesToSC(styles: CSSMap | CSSMap[], selector?: string): any;
140
140
  /**
141
141
  * Compile states to finite CSS with selectors.
142
142
  * State values should contain a string value with CSS style list.
143
143
  * @param {string} selector
144
- * @param {NuStyleStateList|NuStyleStateMapList} states
144
+ * @param {StyleStateList|StyleStateMapList} states
145
145
  */
146
146
  export declare function applyStates(selector: any, states: any): any;
147
147
  export declare function styleHandlerCacheWrapper(styleHandler: any, limit?: number): ((arg: any) => any) & {
@@ -149,26 +149,26 @@ export declare function styleHandlerCacheWrapper(styleHandler: any, limit?: numb
149
149
  };
150
150
  /**
151
151
  * Fill all unspecified states and cover all possible combinations of presented modifiers.
152
- * @param {NuStyleStateList} stateList
152
+ * @param {StyleStateList} stateList
153
153
  * @param {string[]} [allModes]
154
- * @return {NuStyleStateList}
154
+ * @return {StyleStateList}
155
155
  */
156
156
  export declare function normalizeStates(stateList: any, allModes: any): any;
157
157
  /**
158
158
  * Replace state values with new ones.
159
159
  * For example, if you want to replace initial values with finite CSS code.
160
- * @param {NuStyleStateList|NuStyleStateMapList} states
160
+ * @param {StyleStateList|StyleStateMapList} states
161
161
  * @param {Function} replaceFn
162
162
  */
163
163
  export declare function replaceStateValues(states: any, replaceFn: any): any;
164
164
  /**
165
165
  * Get all presented modes from style state list.
166
- * @param {NuStyleStateList} stateList
166
+ * @param {StyleStateList} stateList
167
167
  */
168
168
  export declare function getModesFromStyleStateList(stateList: any): any;
169
169
  /**
170
170
  * Get all presented modes from style state list map.
171
- * @param {NuStyleStateMapList} stateListMap
171
+ * @param {StyleStateMapList} stateListMap
172
172
  * @return {string[]}
173
173
  */
174
174
  export declare function getModesFromStyleStateListMap(stateListMap: any): string[];
@@ -177,7 +177,7 @@ export declare function getModesFromStyleStateListMap(stateListMap: any): string
177
177
  * @param styleMap
178
178
  * @param filterKeys
179
179
  */
180
- export declare function styleMapToStyleMapStateList(styleMap: NuStyleMap, filterKeys?: string[]): NuStyleStateList;
180
+ export declare function styleMapToStyleMapStateList(styleMap: StyleMap, filterKeys?: string[]): StyleStateList;
181
181
  export declare const STATE_OPERATORS: {
182
182
  NOT: string;
183
183
  AND: string;
@@ -188,10 +188,10 @@ export declare const STATE_OPERATOR_LIST: string[];
188
188
  export declare const parseStateNotation: (arg: any) => any;
189
189
  /**
190
190
  *
191
- * @param {NuStyleStateMap|string|number|boolean|null|undefined} styleStateMap
192
- * @return {{ states: NuStyleStateDataList, mods: string[] }}
191
+ * @param {StyleStateMap|string|number|boolean|null|undefined} styleStateMap
192
+ * @return {{ states: StyleStateDataList, mods: string[] }}
193
193
  */
194
- export declare function styleStateMapToStyleStateDataList(styleStateMap: NuStyleStateMap | NuResponsiveStyleValue): {
194
+ export declare function styleStateMapToStyleStateDataList(styleStateMap: StyleStateMap | ResponsiveStyleValue): {
195
195
  states: {
196
196
  model: null;
197
197
  mods: never[];
@@ -199,7 +199,7 @@ export declare function styleStateMapToStyleStateDataList(styleStateMap: NuStyle
199
199
  }[];
200
200
  mods: never[];
201
201
  } | {
202
- states: NuStyleStateDataList;
202
+ states: StyleStateDataList;
203
203
  mods: string[];
204
204
  };
205
205
  export declare const COMPUTE_FUNC_MAP: {
@@ -211,7 +211,7 @@ export declare const COMPUTE_FUNC_MAP: {
211
211
  /**
212
212
  * Compute a result based on model and incoming map.
213
213
  */
214
- export declare function computeState(computeModel: NuComputeModel, valueMap: (number | boolean)[] | {
214
+ export declare function computeState(computeModel: ComputeModel, valueMap: (number | boolean)[] | {
215
215
  [key: string]: boolean;
216
216
  } | Function): any;
217
217
  export declare function cacheWrapper(handler: Function, limit?: number): (arg: any) => any;
@@ -1,5 +1,7 @@
1
- export declare const getOverlayTransitionCSS: ({ placement, suffix, minScale, }?: {
2
- placement?: string | undefined;
3
- suffix?: string | undefined;
4
- minScale?: string | undefined;
5
- }) => string;
1
+ export interface OverlayTransitionCSSProps {
2
+ suffix?: string;
3
+ placement?: string;
4
+ minScale?: string | number;
5
+ minOffset?: string;
6
+ }
7
+ export declare const getOverlayTransitionCSS: ({ suffix, placement, minScale, minOffset, }?: OverlayTransitionCSSProps) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cube-dev/ui-kit",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "UIKit for Cube Projects",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",
@@ -27,7 +27,7 @@
27
27
  "compile": "babel src -d dist --copy-files",
28
28
  "storybook": "start-storybook -s ./public -p 6006",
29
29
  "build-storybook": "build-storybook",
30
- "chromatic": "npx chromatic --project-token 88d3a2cec0c0",
30
+ "chromatic": "npx chromatic --project-token 73bc89753bad",
31
31
  "size": "size-limit"
32
32
  },
33
33
  "keywords": [
@@ -100,7 +100,7 @@
100
100
  "@web/test-runner": "^0.9.7",
101
101
  "babel-eslint": "^10.1.0",
102
102
  "chai": "^4.2.0",
103
- "chromatic": "^5.7.0",
103
+ "chromatic": "^5.9.2",
104
104
  "clipboard-copy": "^4.0.1",
105
105
  "clsx": "^1.1.1",
106
106
  "css-loader": "^5.0.1",
@@ -115,6 +115,7 @@
115
115
  "eslint-plugin-react-hooks": "^4.2.0",
116
116
  "jest": "^26.6.3",
117
117
  "less-loader": "^7.1.0",
118
+ "netlify-cli": "^6.9.6",
118
119
  "parcel-bundler": "^1.12.4",
119
120
  "prettier": "^2.0.5",
120
121
  "prismjs": "^1.23.0",
@@ -1,8 +0,0 @@
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
- }
8
- export declare function OverlayWrapper({ isOpen, placement, children, childrenOnly, }: CubeOverlayWrapperProps): JSX.Element;
@@ -1,32 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { NuResponsiveStyleValue } from '../utils/styles';
3
- import { BaseProps, BaseStyleProps, ColorStyleProps, TagNameProps, TextStyleProps } from './types';
4
- export interface CubeTextProps extends BaseProps, TagNameProps, TextStyleProps, BaseStyleProps, ColorStyleProps {
5
- /**
6
- * Whether the text uses the monospace font.
7
- */
8
- monospace?: boolean;
9
- /**
10
- * Whether the text overflow is ellipsis
11
- */
12
- ellipsis?: boolean;
13
- /**
14
- * Whether the text is not wrapping
15
- */
16
- nowrap?: boolean;
17
- /**
18
- * Whether the text has italic style
19
- */
20
- italic?: NuResponsiveStyleValue<CSSProperties['fontStyle']>;
21
- weight?: NuResponsiveStyleValue<CSSProperties['fontWeight']>;
22
- align?: NuResponsiveStyleValue<CSSProperties['textAlign']>;
23
- transform?: NuResponsiveStyleValue<CSSProperties['textTransform']>;
24
- }
25
- declare const Text: import("react").ForwardRefExoticComponent<CubeTextProps & import("react").RefAttributes<unknown>> & {
26
- Minor: (props: CubeTextProps) => JSX.Element;
27
- Danger: (props: CubeTextProps) => JSX.Element;
28
- Success: (props: CubeTextProps) => JSX.Element;
29
- Strong: (props: CubeTextProps) => JSX.Element;
30
- Selection: (props: CubeTextProps) => JSX.Element;
31
- };
32
- export { Text };
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { CubeTextProps } from './Text';
3
- import { NuResponsiveStyleValue } from '../utils/styles';
4
- import { BlockStyleProps, PositionStyleProps, TagNameProps } from './types';
5
- export interface CubeTitleProps extends CubeTextProps, TagNameProps, BlockStyleProps, PositionStyleProps {
6
- /** The level of the heading **/
7
- level?: 1 | 2 | 3 | 4 | 5 | 6;
8
- /** The size style for the heading **/
9
- size?: NuResponsiveStyleValue<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | string>;
10
- }
11
- declare const Title: import("react").ForwardRefExoticComponent<CubeTitleProps & import("react").RefAttributes<unknown>> & {
12
- Danger: (props: any) => JSX.Element;
13
- Success: (props: any) => JSX.Element;
14
- };
15
- export { Title };
@@ -1,8 +0,0 @@
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
- }
8
- export declare function OverlayWrapper({ isOpen, placement, children, childrenOnly, }: CubeOverlayWrapperProps): JSX.Element;
@@ -1,32 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { NuResponsiveStyleValue } from '../utils/styles';
3
- import { BaseProps, BaseStyleProps, ColorStyleProps, TagNameProps, TextStyleProps } from './types';
4
- export interface CubeTextProps extends BaseProps, TagNameProps, TextStyleProps, BaseStyleProps, ColorStyleProps {
5
- /**
6
- * Whether the text uses the monospace font.
7
- */
8
- monospace?: boolean;
9
- /**
10
- * Whether the text overflow is ellipsis
11
- */
12
- ellipsis?: boolean;
13
- /**
14
- * Whether the text is not wrapping
15
- */
16
- nowrap?: boolean;
17
- /**
18
- * Whether the text has italic style
19
- */
20
- italic?: NuResponsiveStyleValue<CSSProperties['fontStyle']>;
21
- weight?: NuResponsiveStyleValue<CSSProperties['fontWeight']>;
22
- align?: NuResponsiveStyleValue<CSSProperties['textAlign']>;
23
- transform?: NuResponsiveStyleValue<CSSProperties['textTransform']>;
24
- }
25
- declare const Text: import("react").ForwardRefExoticComponent<CubeTextProps & import("react").RefAttributes<unknown>> & {
26
- Minor: (props: CubeTextProps) => JSX.Element;
27
- Danger: (props: CubeTextProps) => JSX.Element;
28
- Success: (props: CubeTextProps) => JSX.Element;
29
- Strong: (props: CubeTextProps) => JSX.Element;
30
- Selection: (props: CubeTextProps) => JSX.Element;
31
- };
32
- export { Text };
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { CubeTextProps } from './Text';
3
- import { NuResponsiveStyleValue } from '../utils/styles';
4
- import { BlockStyleProps, PositionStyleProps, TagNameProps } from './types';
5
- export interface CubeTitleProps extends CubeTextProps, TagNameProps, BlockStyleProps, PositionStyleProps {
6
- /** The level of the heading **/
7
- level?: 1 | 2 | 3 | 4 | 5 | 6;
8
- /** The size style for the heading **/
9
- size?: NuResponsiveStyleValue<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | string>;
10
- }
11
- declare const Title: import("react").ForwardRefExoticComponent<CubeTitleProps & import("react").RefAttributes<unknown>> & {
12
- Danger: (props: any) => JSX.Element;
13
- Success: (props: any) => JSX.Element;
14
- };
15
- export { Title };