@hubspot/ui-extensions 0.8.6 → 0.8.8
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.
- package/dist/coreComponents.d.ts +0 -6
- package/dist/coreComponents.js +0 -4
- package/dist/experimental/experimentalComponents.d.ts +24 -0
- package/dist/experimental/experimentalComponents.js +9 -3
- package/dist/experimental/index.d.ts +1 -2
- package/dist/experimental/index.js +1 -2
- package/dist/types.d.ts +40 -0
- package/package.json +2 -2
package/dist/coreComponents.d.ts
CHANGED
|
@@ -226,12 +226,6 @@ export declare const Toggle: "Toggle" & {
|
|
|
226
226
|
readonly props?: types.ToggleProps | undefined;
|
|
227
227
|
readonly children?: true | undefined;
|
|
228
228
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Toggle", types.ToggleProps, true>>;
|
|
229
|
-
/** @experimental */
|
|
230
|
-
export declare const Panel: "Panel" & {
|
|
231
|
-
readonly type?: "Panel" | undefined;
|
|
232
|
-
readonly props?: types.PanelProps | undefined;
|
|
233
|
-
readonly children?: true | undefined;
|
|
234
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Panel", types.PanelProps, true>>;
|
|
235
229
|
export declare const Dropdown: "Dropdown" & {
|
|
236
230
|
readonly type?: "Dropdown" | undefined;
|
|
237
231
|
readonly props?: types.DropdownProps | undefined;
|
package/dist/coreComponents.js
CHANGED
|
@@ -48,8 +48,4 @@ export const Checkbox = createRemoteReactComponent('Checkbox');
|
|
|
48
48
|
export const RadioButton = createRemoteReactComponent('RadioButton');
|
|
49
49
|
export const List = createRemoteReactComponent('List');
|
|
50
50
|
export const Toggle = createRemoteReactComponent('Toggle');
|
|
51
|
-
/** @experimental */
|
|
52
|
-
export const Panel = createRemoteReactComponent('Panel', {
|
|
53
|
-
fragmentProps: ['footer'],
|
|
54
|
-
});
|
|
55
51
|
export const Dropdown = createRemoteReactComponent('Dropdown');
|
|
@@ -5,3 +5,27 @@ export declare const Panel: "Panel" & {
|
|
|
5
5
|
readonly props?: types.PanelProps | undefined;
|
|
6
6
|
readonly children?: true | undefined;
|
|
7
7
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Panel", types.PanelProps, true>>;
|
|
8
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
9
|
+
export declare const PanelFooter: "PanelFooter" & {
|
|
10
|
+
readonly type?: "PanelFooter" | undefined;
|
|
11
|
+
readonly props?: types.PanelFooterProps | undefined;
|
|
12
|
+
readonly children?: true | undefined;
|
|
13
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelFooter", types.PanelFooterProps, true>>;
|
|
14
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
15
|
+
export declare const PanelBody: "PanelBody" & {
|
|
16
|
+
readonly type?: "PanelBody" | undefined;
|
|
17
|
+
readonly props?: types.PanelBodyProps | undefined;
|
|
18
|
+
readonly children?: true | undefined;
|
|
19
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelBody", types.PanelBodyProps, true>>;
|
|
20
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
21
|
+
export declare const PanelSection: "PanelSection" & {
|
|
22
|
+
readonly type?: "PanelSection" | undefined;
|
|
23
|
+
readonly props?: types.PanelSectionProps | undefined;
|
|
24
|
+
readonly children?: true | undefined;
|
|
25
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelSection", types.PanelSectionProps, true>>;
|
|
26
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
27
|
+
export declare const Tooltip: "Tooltip" & {
|
|
28
|
+
readonly type?: "Tooltip" | undefined;
|
|
29
|
+
readonly props?: types.TooltipProps | undefined;
|
|
30
|
+
readonly children?: true | undefined;
|
|
31
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Tooltip", types.TooltipProps, true>>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { createRemoteReactComponent } from '@remote-ui/react';
|
|
2
2
|
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
3
|
-
export const Panel = createRemoteReactComponent('Panel'
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export const Panel = createRemoteReactComponent('Panel');
|
|
4
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
5
|
+
export const PanelFooter = createRemoteReactComponent('PanelFooter');
|
|
6
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
7
|
+
export const PanelBody = createRemoteReactComponent('PanelBody');
|
|
8
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
9
|
+
export const PanelSection = createRemoteReactComponent('PanelSection');
|
|
10
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
11
|
+
export const Tooltip = createRemoteReactComponent('Tooltip');
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Panel };
|
|
1
|
+
export { Panel, PanelBody, PanelSection, PanelFooter, Tooltip, } from './experimentalComponents';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Panel };
|
|
1
|
+
export { Panel, PanelBody, PanelSection, PanelFooter, Tooltip, } from './experimentalComponents';
|
package/dist/types.d.ts
CHANGED
|
@@ -1995,6 +1995,33 @@ export interface PanelProps {
|
|
|
1995
1995
|
*/
|
|
1996
1996
|
variant?: 'modal' | 'default';
|
|
1997
1997
|
}
|
|
1998
|
+
export interface PanelSectionProps {
|
|
1999
|
+
/**
|
|
2000
|
+
* When set to `true`, the section will have no bottom margin
|
|
2001
|
+
*
|
|
2002
|
+
* @defaultValue `false`
|
|
2003
|
+
*/
|
|
2004
|
+
flush?: boolean;
|
|
2005
|
+
/**
|
|
2006
|
+
* The main content of the section
|
|
2007
|
+
*
|
|
2008
|
+
*/
|
|
2009
|
+
children: React.ReactNode;
|
|
2010
|
+
}
|
|
2011
|
+
export interface PanelBodyProps {
|
|
2012
|
+
/**
|
|
2013
|
+
* The main content of the body
|
|
2014
|
+
*
|
|
2015
|
+
*/
|
|
2016
|
+
children: React.ReactNode;
|
|
2017
|
+
}
|
|
2018
|
+
export interface PanelFooterProps {
|
|
2019
|
+
/**
|
|
2020
|
+
* The main content of the footer
|
|
2021
|
+
*
|
|
2022
|
+
*/
|
|
2023
|
+
children: React.ReactNode;
|
|
2024
|
+
}
|
|
1998
2025
|
export interface DropdownOption {
|
|
1999
2026
|
/**
|
|
2000
2027
|
* Text to be displayed as the menu item text.
|
|
@@ -2039,4 +2066,17 @@ export interface DropdownProps {
|
|
|
2039
2066
|
*/
|
|
2040
2067
|
buttonSize?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
2041
2068
|
}
|
|
2069
|
+
/**
|
|
2070
|
+
* @ignore
|
|
2071
|
+
* @experimental
|
|
2072
|
+
*/
|
|
2073
|
+
export interface TooltipProps {
|
|
2074
|
+
children: ReactNode;
|
|
2075
|
+
delay?: number;
|
|
2076
|
+
maxWidth?: number;
|
|
2077
|
+
open?: boolean;
|
|
2078
|
+
onOpenChange?: () => void;
|
|
2079
|
+
content?: string;
|
|
2080
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
2081
|
+
}
|
|
2042
2082
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "5.0.4"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "97c104741286d22bac7ea75193fbdd09b6f6db64"
|
|
55
55
|
}
|