@cube-dev/ui-kit 0.1.3 → 0.2.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 (194) hide show
  1. package/README.md +3 -1
  2. package/dist/cjs/components/{Action.d.ts → actions/Action.d.ts} +2 -2
  3. package/dist/{mjs/atoms → cjs/components/actions}/Button/Button.d.ts +1 -1
  4. package/dist/cjs/{atoms → components/actions}/Button/Submit.d.ts +0 -0
  5. package/dist/{mjs/atoms → cjs/components/actions}/ButtonGroup/ButtonGroup.d.ts +1 -1
  6. package/dist/cjs/{atoms → components/content}/Avatar/Avatar.d.ts +2 -2
  7. package/dist/cjs/{atoms → components/content}/Badge/Badge.d.ts +2 -2
  8. package/dist/cjs/{atoms → components/content}/Card/Card.d.ts +1 -1
  9. package/dist/{mjs/components → cjs/components/content}/Content.d.ts +1 -1
  10. package/dist/{mjs/components → cjs/components/content}/Divider.d.ts +1 -1
  11. package/dist/cjs/components/{Footer.d.ts → content/Footer.d.ts} +1 -1
  12. package/dist/cjs/components/{Header.d.ts → content/Header.d.ts} +1 -1
  13. package/dist/cjs/components/{Paragraph.d.ts → content/Paragraph.d.ts} +1 -1
  14. package/dist/cjs/{atoms → components/content}/Placeholder/Placeholder.d.ts +2 -2
  15. package/dist/{mjs/atoms → cjs/components/content}/PrismCode/PrismCode.d.ts +1 -1
  16. package/dist/cjs/{atoms → components/content}/Skeleton/Skeleton.d.ts +2 -2
  17. package/dist/cjs/components/content/Tag/Tag.d.ts +10 -0
  18. package/dist/{mjs/components → cjs/components/content}/Text.d.ts +3 -3
  19. package/dist/{mjs/components → cjs/components/content}/Title.d.ts +2 -5
  20. package/dist/cjs/{atoms → components/forms}/Checkbox/Checkbox.d.ts +2 -2
  21. package/dist/{mjs/atoms → cjs/components/forms}/Checkbox/CheckboxGroup.d.ts +2 -2
  22. package/dist/cjs/{atoms → components/forms}/Checkbox/context.d.ts +0 -0
  23. package/dist/cjs/components/{FieldWrapper.d.ts → forms/FieldWrapper.d.ts} +2 -2
  24. package/dist/cjs/{atoms → components/forms}/Form/Field.d.ts +1 -1
  25. package/dist/{mjs/atoms → cjs/components/forms}/Form/Form.d.ts +2 -2
  26. package/dist/cjs/{atoms → components/forms}/Form/index.d.ts +0 -0
  27. package/dist/cjs/{atoms → components/forms}/Form/useForm.d.ts +0 -0
  28. package/dist/cjs/{atoms → components/forms}/Form/validation.d.ts +0 -0
  29. package/dist/cjs/components/{Label.d.ts → forms/Label.d.ts} +3 -3
  30. package/dist/cjs/{atoms → components/forms}/NumberInput/NumberInput.d.ts +0 -0
  31. package/dist/cjs/{atoms → components/forms}/NumberInput/StepButton.d.ts +0 -0
  32. package/dist/cjs/{atoms → components/forms}/PasswordInput/PasswordInput.d.ts +0 -0
  33. package/dist/cjs/{atoms → components/forms}/RadioGroup/Radio.d.ts +3 -3
  34. package/dist/cjs/{atoms → components/forms}/RadioGroup/RadioGroup.d.ts +0 -0
  35. package/dist/cjs/{atoms → components/forms}/RadioGroup/context.d.ts +0 -0
  36. package/dist/cjs/{atoms → components/forms}/SearchInput/SearchInput.d.ts +0 -0
  37. package/dist/{mjs/atoms → cjs/components/forms}/Switch/Switch.d.ts +3 -3
  38. package/dist/cjs/{atoms → components/forms}/TextArea/TextArea.d.ts +0 -0
  39. package/dist/cjs/{atoms → components/forms}/TextInput/TextInput.d.ts +0 -0
  40. package/dist/{mjs/atoms → cjs/components/forms}/TextInput/TextInputBase.d.ts +3 -3
  41. package/dist/cjs/components/{Flex.d.ts → layout/Flex.d.ts} +1 -1
  42. package/dist/{mjs/components → cjs/components/layout}/Flow.d.ts +1 -1
  43. package/dist/cjs/components/{Grid.d.ts → layout/Grid.d.ts} +1 -1
  44. package/dist/{mjs/components → cjs/components/layout}/Prefix.d.ts +1 -1
  45. package/dist/cjs/components/{Space.d.ts → layout/Space.d.ts} +1 -1
  46. package/dist/cjs/components/{Suffix.d.ts → layout/Suffix.d.ts} +1 -1
  47. package/dist/cjs/{atoms → components/navigation}/Link/Link.d.ts +1 -1
  48. package/dist/{mjs/molecules → cjs/components/navigation}/Tabs/Tabs.d.ts +3 -3
  49. package/dist/{mjs/molecules → cjs/components/organisms}/Alert/Alert.d.ts +2 -2
  50. package/dist/cjs/{molecules → components/organisms}/CopySnippet/CopySnippet.d.ts +3 -3
  51. package/dist/cjs/{molecules → components/organisms}/DirectoryTree/DirectoryTree.d.ts +1 -1
  52. package/dist/cjs/{molecules → components/organisms}/FileTabs/FileTabs.d.ts +3 -3
  53. package/dist/{mjs/molecules → cjs/components/organisms}/Modal/Modal.d.ts +1 -1
  54. package/dist/cjs/{molecules → components/organisms}/SearchResults/SearchResults.d.ts +1 -1
  55. package/dist/cjs/{molecules → components/organisms}/StatsCard/StatsCard.d.ts +1 -1
  56. package/dist/{mjs/molecules → cjs/components/organisms}/TopBar/TopBar.d.ts +1 -1
  57. package/dist/{mjs/atoms → cjs/components/other}/Base64Upload/Base64Upload.d.ts +1 -1
  58. package/dist/cjs/{atoms → components/other}/CloudLogo/CloudLogo.d.ts +1 -1
  59. package/dist/cjs/{molecules → components/overlays}/AlertDialog/AlertDialog.d.ts +2 -2
  60. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/Dialog.d.ts +1 -1
  61. package/dist/cjs/{atoms → components/overlays}/Dialog/DialogContainer.d.ts +0 -0
  62. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/DialogTrigger.d.ts +1 -1
  63. package/dist/{mjs/atoms → cjs/components/overlays}/Dialog/api.d.ts +1 -1
  64. package/dist/cjs/{atoms → components/overlays}/Dialog/context.d.ts +0 -0
  65. package/dist/cjs/{atoms → components/overlays}/Dialog/index.d.ts +0 -0
  66. package/dist/cjs/{atoms → components/overlays}/Modal/Modal.d.ts +2 -2
  67. package/dist/cjs/{atoms → components/overlays}/Modal/OpenTransition.d.ts +0 -0
  68. package/dist/cjs/{atoms → components/overlays}/Modal/Overlay.d.ts +0 -0
  69. package/dist/{mjs/atoms → cjs/components/overlays}/Modal/Popover.d.ts +2 -2
  70. package/dist/cjs/{atoms → components/overlays}/Modal/Tray.d.ts +2 -2
  71. package/dist/cjs/{atoms → components/overlays}/Modal/Underlay.d.ts +0 -0
  72. package/dist/cjs/{atoms → components/overlays}/Modal/index.d.ts +0 -0
  73. package/dist/cjs/{molecules → components/overlays}/Notification/Notification.d.ts +1 -1
  74. package/dist/cjs/components/overlays/OverlayWrapper.d.ts +11 -0
  75. package/dist/{mjs/atoms → cjs/components/overlays}/Tooltip/Tooltip.d.ts +3 -3
  76. package/dist/cjs/{atoms → components/overlays}/Tooltip/TooltipTrigger.d.ts +0 -0
  77. package/dist/{mjs/atoms → cjs/components/overlays}/Tooltip/context.d.ts +4 -2
  78. package/dist/cjs/{atoms → components/pickers}/ComboBox/ComboBox.d.ts +0 -0
  79. package/dist/{mjs/atoms → cjs/components/pickers}/Select/Select.d.ts +3 -3
  80. package/dist/cjs/{atoms → components/status}/LoadingAnimation/LoadingAnimation.d.ts +1 -1
  81. package/dist/{mjs/atoms → cjs/components/status}/Spin/Spin.d.ts +1 -1
  82. package/dist/cjs/components/types.d.ts +3 -4
  83. package/dist/cjs/css-properties.d.ts +62 -0
  84. package/dist/cjs/data/themes.d.ts +1 -1
  85. package/dist/cjs/index.d.ts +108 -106
  86. package/dist/cjs/index.js +6 -6
  87. package/dist/cjs/index.js.map +1 -1
  88. package/dist/cjs/services/notification.d.ts +1 -1
  89. package/dist/cjs/styles/color.d.ts +1 -3
  90. package/dist/cjs/styles/list.d.ts +4 -4
  91. package/dist/cjs/styles/preset.d.ts +11 -0
  92. package/dist/cjs/styles/size.d.ts +3 -0
  93. package/dist/cjs/styles/types.d.ts +4 -0
  94. package/dist/cjs/utils/react/Slots.d.ts +1 -2
  95. package/dist/cjs/utils/react/mapProps.d.ts +1 -1
  96. package/dist/cjs/utils/transitions.d.ts +7 -5
  97. package/dist/mjs/components/{Action.d.ts → actions/Action.d.ts} +2 -2
  98. package/dist/{cjs/atoms → mjs/components/actions}/Button/Button.d.ts +1 -1
  99. package/dist/mjs/{atoms → components/actions}/Button/Submit.d.ts +0 -0
  100. package/dist/{cjs/atoms → mjs/components/actions}/ButtonGroup/ButtonGroup.d.ts +1 -1
  101. package/dist/mjs/{atoms → components/content}/Avatar/Avatar.d.ts +2 -2
  102. package/dist/mjs/{atoms → components/content}/Badge/Badge.d.ts +2 -2
  103. package/dist/mjs/{atoms → components/content}/Card/Card.d.ts +1 -1
  104. package/dist/{cjs/components → mjs/components/content}/Content.d.ts +1 -1
  105. package/dist/{cjs/components → mjs/components/content}/Divider.d.ts +1 -1
  106. package/dist/mjs/components/{Footer.d.ts → content/Footer.d.ts} +1 -1
  107. package/dist/mjs/components/{Header.d.ts → content/Header.d.ts} +1 -1
  108. package/dist/mjs/components/{Paragraph.d.ts → content/Paragraph.d.ts} +1 -1
  109. package/dist/mjs/{atoms → components/content}/Placeholder/Placeholder.d.ts +2 -2
  110. package/dist/{cjs/atoms → mjs/components/content}/PrismCode/PrismCode.d.ts +1 -1
  111. package/dist/mjs/{atoms → components/content}/Skeleton/Skeleton.d.ts +2 -2
  112. package/dist/mjs/components/content/Tag/Tag.d.ts +10 -0
  113. package/dist/{cjs/components → mjs/components/content}/Text.d.ts +3 -3
  114. package/dist/{cjs/components → mjs/components/content}/Title.d.ts +2 -5
  115. package/dist/mjs/{atoms → components/forms}/Checkbox/Checkbox.d.ts +2 -2
  116. package/dist/{cjs/atoms → mjs/components/forms}/Checkbox/CheckboxGroup.d.ts +2 -2
  117. package/dist/mjs/{atoms → components/forms}/Checkbox/context.d.ts +0 -0
  118. package/dist/mjs/components/{FieldWrapper.d.ts → forms/FieldWrapper.d.ts} +2 -2
  119. package/dist/mjs/{atoms → components/forms}/Form/Field.d.ts +1 -1
  120. package/dist/{cjs/atoms → mjs/components/forms}/Form/Form.d.ts +2 -2
  121. package/dist/mjs/{atoms → components/forms}/Form/index.d.ts +0 -0
  122. package/dist/mjs/{atoms → components/forms}/Form/useForm.d.ts +0 -0
  123. package/dist/mjs/{atoms → components/forms}/Form/validation.d.ts +0 -0
  124. package/dist/mjs/components/{Label.d.ts → forms/Label.d.ts} +3 -3
  125. package/dist/mjs/{atoms → components/forms}/NumberInput/NumberInput.d.ts +0 -0
  126. package/dist/mjs/{atoms → components/forms}/NumberInput/StepButton.d.ts +0 -0
  127. package/dist/mjs/{atoms → components/forms}/PasswordInput/PasswordInput.d.ts +0 -0
  128. package/dist/mjs/{atoms → components/forms}/RadioGroup/Radio.d.ts +3 -3
  129. package/dist/mjs/{atoms → components/forms}/RadioGroup/RadioGroup.d.ts +0 -0
  130. package/dist/mjs/{atoms → components/forms}/RadioGroup/context.d.ts +0 -0
  131. package/dist/mjs/{atoms → components/forms}/SearchInput/SearchInput.d.ts +0 -0
  132. package/dist/{cjs/atoms → mjs/components/forms}/Switch/Switch.d.ts +3 -3
  133. package/dist/mjs/{atoms → components/forms}/TextArea/TextArea.d.ts +0 -0
  134. package/dist/mjs/{atoms → components/forms}/TextInput/TextInput.d.ts +0 -0
  135. package/dist/{cjs/atoms → mjs/components/forms}/TextInput/TextInputBase.d.ts +3 -3
  136. package/dist/mjs/components/{Flex.d.ts → layout/Flex.d.ts} +1 -1
  137. package/dist/{cjs/components → mjs/components/layout}/Flow.d.ts +1 -1
  138. package/dist/mjs/components/{Grid.d.ts → layout/Grid.d.ts} +1 -1
  139. package/dist/{cjs/components → mjs/components/layout}/Prefix.d.ts +1 -1
  140. package/dist/mjs/components/{Space.d.ts → layout/Space.d.ts} +1 -1
  141. package/dist/mjs/components/{Suffix.d.ts → layout/Suffix.d.ts} +1 -1
  142. package/dist/mjs/{atoms → components/navigation}/Link/Link.d.ts +1 -1
  143. package/dist/{cjs/molecules → mjs/components/navigation}/Tabs/Tabs.d.ts +3 -3
  144. package/dist/{cjs/molecules → mjs/components/organisms}/Alert/Alert.d.ts +2 -2
  145. package/dist/mjs/{molecules → components/organisms}/CopySnippet/CopySnippet.d.ts +3 -3
  146. package/dist/mjs/{molecules → components/organisms}/DirectoryTree/DirectoryTree.d.ts +1 -1
  147. package/dist/mjs/{molecules → components/organisms}/FileTabs/FileTabs.d.ts +3 -3
  148. package/dist/{cjs/molecules → mjs/components/organisms}/Modal/Modal.d.ts +1 -1
  149. package/dist/mjs/{molecules → components/organisms}/SearchResults/SearchResults.d.ts +1 -1
  150. package/dist/mjs/{molecules → components/organisms}/StatsCard/StatsCard.d.ts +1 -1
  151. package/dist/{cjs/molecules → mjs/components/organisms}/TopBar/TopBar.d.ts +1 -1
  152. package/dist/{cjs/atoms → mjs/components/other}/Base64Upload/Base64Upload.d.ts +1 -1
  153. package/dist/mjs/{atoms → components/other}/CloudLogo/CloudLogo.d.ts +1 -1
  154. package/dist/mjs/{molecules → components/overlays}/AlertDialog/AlertDialog.d.ts +2 -2
  155. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/Dialog.d.ts +1 -1
  156. package/dist/mjs/{atoms → components/overlays}/Dialog/DialogContainer.d.ts +0 -0
  157. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/DialogTrigger.d.ts +1 -1
  158. package/dist/{cjs/atoms → mjs/components/overlays}/Dialog/api.d.ts +1 -1
  159. package/dist/mjs/{atoms → components/overlays}/Dialog/context.d.ts +0 -0
  160. package/dist/mjs/{atoms → components/overlays}/Dialog/index.d.ts +0 -0
  161. package/dist/mjs/{atoms → components/overlays}/Modal/Modal.d.ts +2 -2
  162. package/dist/mjs/{atoms → components/overlays}/Modal/OpenTransition.d.ts +0 -0
  163. package/dist/mjs/{atoms → components/overlays}/Modal/Overlay.d.ts +0 -0
  164. package/dist/{cjs/atoms → mjs/components/overlays}/Modal/Popover.d.ts +2 -2
  165. package/dist/mjs/{atoms → components/overlays}/Modal/Tray.d.ts +2 -2
  166. package/dist/mjs/{atoms → components/overlays}/Modal/Underlay.d.ts +0 -0
  167. package/dist/mjs/{atoms → components/overlays}/Modal/index.d.ts +0 -0
  168. package/dist/mjs/{molecules → components/overlays}/Notification/Notification.d.ts +1 -1
  169. package/dist/mjs/components/overlays/OverlayWrapper.d.ts +11 -0
  170. package/dist/{cjs/atoms → mjs/components/overlays}/Tooltip/Tooltip.d.ts +3 -3
  171. package/dist/mjs/{atoms → components/overlays}/Tooltip/TooltipTrigger.d.ts +0 -0
  172. package/dist/{cjs/atoms → mjs/components/overlays}/Tooltip/context.d.ts +4 -2
  173. package/dist/mjs/{atoms → components/pickers}/ComboBox/ComboBox.d.ts +0 -0
  174. package/dist/{cjs/atoms → mjs/components/pickers}/Select/Select.d.ts +3 -3
  175. package/dist/mjs/{atoms → components/status}/LoadingAnimation/LoadingAnimation.d.ts +1 -1
  176. package/dist/{cjs/atoms → mjs/components/status}/Spin/Spin.d.ts +1 -1
  177. package/dist/mjs/components/types.d.ts +3 -4
  178. package/dist/mjs/css-properties.d.ts +62 -0
  179. package/dist/mjs/data/themes.d.ts +1 -1
  180. package/dist/mjs/index.d.ts +108 -106
  181. package/dist/mjs/index.js +7 -7
  182. package/dist/mjs/index.js.map +1 -1
  183. package/dist/mjs/services/notification.d.ts +1 -1
  184. package/dist/mjs/styles/color.d.ts +1 -3
  185. package/dist/mjs/styles/list.d.ts +4 -4
  186. package/dist/mjs/styles/preset.d.ts +11 -0
  187. package/dist/mjs/styles/size.d.ts +3 -0
  188. package/dist/mjs/styles/types.d.ts +4 -0
  189. package/dist/mjs/utils/react/Slots.d.ts +1 -2
  190. package/dist/mjs/utils/react/mapProps.d.ts +1 -1
  191. package/dist/mjs/utils/transitions.d.ts +7 -5
  192. package/package.json +1 -1
  193. package/dist/cjs/components/OverlayWrapper.d.ts +0 -8
  194. package/dist/mjs/components/OverlayWrapper.d.ts +0 -8
@@ -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,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,11 @@
1
+ export declare function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight }: {
2
+ preset: any;
3
+ fontSize: any;
4
+ lineHeight: any;
5
+ textTransform: any;
6
+ letterSpacing: any;
7
+ fontWeight: any;
8
+ }): "" | Record<string, any>;
9
+ export declare namespace presetStyle {
10
+ var __lookupStyles: string[];
11
+ }
@@ -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[];
@@ -92,6 +92,10 @@ export interface StylesInterface 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
100
  export declare type Styles = {
97
101
  [key in keyof StylesInterface]?: ResponsiveStyleValue<StylesInterface[key]>;
@@ -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,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.3",
3
+ "version": "0.2.1",
4
4
  "description": "UIKit for Cube Projects",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",
@@ -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,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;