@nimbus-ds/patterns 1.36.0-rc.9 → 1.36.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.
- package/CHANGELOG.md +6 -0
- package/dist/AppShell/index.d.ts +9 -0
- package/dist/AppShell/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/ChatInput/index.js +1 -1
- package/dist/EmptyApp/index.js +1 -1
- package/dist/PlanDisplay/index.d.ts +2 -60
- package/dist/PlanDisplay/index.js +1 -1
- package/dist/components-props.json +1 -0
- package/dist/index.d.ts +11 -60
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,8 +38,17 @@ export interface AppShellChatProperties {
|
|
|
38
38
|
* The overlay auto-detects the parent bounds (respecting menu and header).
|
|
39
39
|
*/
|
|
40
40
|
expanded?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Width of the chat panel in collapsed (non-expanded) mode.
|
|
43
|
+
* Accepts any valid CSS length value (e.g. "300px", "25vw") or a responsive
|
|
44
|
+
* object keyed by breakpoint (e.g. `{ xs: "300px", xxl: "378px" }`).
|
|
45
|
+
* Useful for consumer-controlled resize interactions such as a drag handle.
|
|
46
|
+
* When omitted, defaults to the responsive `{ xs: "300px", xxl: "378px" }`.
|
|
47
|
+
*/
|
|
48
|
+
collapsedWidth?: NonNullable<BoxProps["maxWidth"]>;
|
|
41
49
|
}
|
|
42
50
|
export type AppShellChatProps = AppShellChatProperties & Omit<BoxProps, "position">;
|
|
51
|
+
export declare const APPSHELL_CHAT_DEFAULT_WIDTH = "360px";
|
|
43
52
|
declare const AppShellChat: React.FC<AppShellChatProps>;
|
|
44
53
|
export interface AppShellComponents {
|
|
45
54
|
Header: typeof AppShellHeader;
|
|
@@ -1136,82 +1145,28 @@ export type InitialScreenProps = InitialScreenProperties & Omit<BoxProps, "width
|
|
|
1136
1145
|
*/
|
|
1137
1146
|
export declare const InitialScreen: React.FC<InitialScreenProps> & InitialScreenComponents;
|
|
1138
1147
|
export interface PlanDisplayCardProperties {
|
|
1139
|
-
|
|
1140
|
-
* Renders the card with the Plans 2.0 gradient background (primary-surface → neutral-background).
|
|
1141
|
-
* Ignored when `ribbonLabel` is provided.
|
|
1142
|
-
*/
|
|
1143
|
-
gradient?: boolean;
|
|
1144
|
-
/**
|
|
1145
|
-
* Label shown in a ribbon on top of the card (e.g. "Más escogido"). When provided, the card
|
|
1146
|
-
* is rendered with the featured style (primary ribbon + 2px primary border, no shadow),
|
|
1147
|
-
* taking precedence over `gradient`.
|
|
1148
|
-
* @TJS-type React.ReactNode
|
|
1149
|
-
*/
|
|
1150
|
-
ribbonLabel?: ReactNode;
|
|
1148
|
+
highlighted?: boolean;
|
|
1151
1149
|
}
|
|
1152
1150
|
export type PlanDisplayCardProps = PropsWithChildren<PlanDisplayCardProperties> & Omit<BoxProps, "borderColor" | "borderRadius" | "borderStyle" | "borderWidth" | "boxShadow">;
|
|
1153
1151
|
declare const PlanDisplayCard: React.FC<PlanDisplayCardProps>;
|
|
1154
1152
|
export type PlanDisplayCardHeaderProperties = {
|
|
1155
1153
|
subtitle: string;
|
|
1156
1154
|
title: ReactNode;
|
|
1157
|
-
/**
|
|
1158
|
-
* Optional slot rendered to the right of the subtitle (e.g. a `<Tag>` like "Plan actual").
|
|
1159
|
-
* When provided, the subtitle row is laid out with space between the subtitle and the tag.
|
|
1160
|
-
* @TJS-type React.ReactNode
|
|
1161
|
-
*/
|
|
1162
|
-
tag?: ReactNode;
|
|
1163
1155
|
};
|
|
1164
1156
|
export type PlanDisplayCardHeaderProps = PropsWithChildren<PlanDisplayCardHeaderProperties>;
|
|
1165
1157
|
declare const PlanDisplayCardHeader: React.FC<PlanDisplayCardHeaderProps>;
|
|
1166
1158
|
export type PlanDisplayCardContentProperties = PropsWithChildren;
|
|
1167
1159
|
declare const PlanDisplayCardContent: React.FC<PlanDisplayCardContentProperties>;
|
|
1168
|
-
export type PlanDisplayCardFooterProperties = PropsWithChildren
|
|
1169
|
-
/**
|
|
1170
|
-
* Optional leading icon for an add-on style footer row (e.g. a point-of-sale icon next to a link).
|
|
1171
|
-
* When provided, the footer renders the icon and children side by side.
|
|
1172
|
-
* @TJS-type React.ReactNode
|
|
1173
|
-
*/
|
|
1174
|
-
icon?: ReactNode;
|
|
1175
|
-
}>;
|
|
1160
|
+
export type PlanDisplayCardFooterProperties = PropsWithChildren;
|
|
1176
1161
|
declare const PlanDisplayCardFooter: React.FC<PlanDisplayCardFooterProperties>;
|
|
1177
1162
|
export type PlanDisplayCardSpacingProps = Omit<BoxProps, "children" | "borderTopWidth" | "borderColor" | "borderStyle" | "my">;
|
|
1178
1163
|
declare const PlanDisplayCardSpacing: React.FC<PlanDisplayCardSpacingProps>;
|
|
1179
1164
|
export type PlanDisplayBulletProperties = {
|
|
1180
1165
|
icon: ReactNode;
|
|
1181
1166
|
disabled?: boolean;
|
|
1182
|
-
/**
|
|
1183
|
-
* Optional slot rendered inline after the bullet text (e.g. a `<Tag>` like "Nuevo").
|
|
1184
|
-
* @TJS-type React.ReactNode
|
|
1185
|
-
*/
|
|
1186
|
-
badge?: ReactNode;
|
|
1187
1167
|
};
|
|
1188
1168
|
export type PlanDisplayBulletProps = PropsWithChildren<PlanDisplayBulletProperties>;
|
|
1189
1169
|
declare const PlanDisplayBullet: React.FC<PlanDisplayBulletProps>;
|
|
1190
|
-
export type PlanDisplayCardPriceProperties = {
|
|
1191
|
-
/**
|
|
1192
|
-
* The current price of the plan (e.g. "$999"). Rendered as the main, prominent value.
|
|
1193
|
-
* @TJS-type React.ReactNode
|
|
1194
|
-
*/
|
|
1195
|
-
price: ReactNode;
|
|
1196
|
-
/**
|
|
1197
|
-
* Optional previous price, rendered with a line-through next to the current price.
|
|
1198
|
-
* @TJS-type React.ReactNode
|
|
1199
|
-
*/
|
|
1200
|
-
previousPrice?: ReactNode;
|
|
1201
|
-
/**
|
|
1202
|
-
* Optional billing period suffix (e.g. "/mes") rendered next to the price.
|
|
1203
|
-
* @TJS-type React.ReactNode
|
|
1204
|
-
*/
|
|
1205
|
-
period?: ReactNode;
|
|
1206
|
-
/**
|
|
1207
|
-
* Optional annual note rendered below the price (e.g. "R$696/año. Economiza R$132.").
|
|
1208
|
-
* Accepts a ReactNode so it can mix colors (e.g. an emphasized savings span).
|
|
1209
|
-
* @TJS-type React.ReactNode
|
|
1210
|
-
*/
|
|
1211
|
-
annualNote?: ReactNode;
|
|
1212
|
-
};
|
|
1213
|
-
export type PlanDisplayCardPriceProps = PlanDisplayCardPriceProperties;
|
|
1214
|
-
declare const PlanDisplayCardPrice: React.FC<PlanDisplayCardPriceProps>;
|
|
1215
1170
|
/**
|
|
1216
1171
|
* Interface representing the internal components used in the PlanDisplay.
|
|
1217
1172
|
*/
|
|
@@ -1226,10 +1181,6 @@ export interface PlanDisplayComponents {
|
|
|
1226
1181
|
* an optional children where additional information can be displayed.
|
|
1227
1182
|
*/
|
|
1228
1183
|
Header: typeof PlanDisplayCardHeader;
|
|
1229
|
-
/**
|
|
1230
|
-
* The price component of the plan display card. It renders the current price and optionally a previous price (with line-through), a billing period suffix and an annual note.
|
|
1231
|
-
*/
|
|
1232
|
-
Price: typeof PlanDisplayCardPrice;
|
|
1233
1184
|
/**
|
|
1234
1185
|
* The content component of the plan display card. This component is used to display the main content of the plan, such as the plan bullet points.
|
|
1235
1186
|
*/
|