@nimbus-ds/patterns 1.6.1-rc.1 โ 1.7.0-rc.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.
- package/CHANGELOG.md +7 -3
- package/dist/index.d.ts +27 -0
- package/dist/index.js +3 -1
- package/dist/index.js.LICENSE.txt +1303 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvesmhopโs team to empower and enhance more stories every day, with simplicity, accessibility, consistency and performance.
|
|
4
4
|
|
|
5
|
-
## 2023-10-
|
|
5
|
+
## 2023-10-17 `1.7.0`
|
|
6
6
|
|
|
7
|
-
####
|
|
7
|
+
#### ๐ New features
|
|
8
|
+
|
|
9
|
+
- Added new `Editor` component. ([#77](https://github.com/TiendaNube/nimbus-patterns/pull/77) by [@juniorconquista](https://github.com/juniorconquista))
|
|
10
|
+
|
|
11
|
+
#### ๐ Bug fixes
|
|
8
12
|
|
|
9
|
-
-
|
|
13
|
+
- Fixed externally controlled visibility working correctly in the `ProductUpdate` component. ([#76](https://github.com/TiendaNube/nimbus-patterns/pull/76) by [@juniorconquista](https://github.com/juniorconquista))
|
|
10
14
|
|
|
11
15
|
## 2023-09-25 `1.6.0`
|
|
12
16
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverProperties, RadioProps, SelectProperties, SelectProps, SidebarProperties, TableCellProps, TableProperties, TableRowProperties, TextareaProperties, TextareaProps, ThumbnailProperties, ThumbnailProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
|
|
4
4
|
import { IconProps } from '@nimbus-ds/icons';
|
|
5
5
|
import { PolymorphicForwardRefComponent } from '@nimbus-ds/typings';
|
|
6
|
+
import { EditorThemeClasses } from 'lexical';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { ButtonHTMLAttributes, ComponentProps, ComponentPropsWithRef, FC, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
8
9
|
import { DayPicker } from 'react-day-picker';
|
|
@@ -217,6 +218,32 @@ export interface DataTableProperties {
|
|
|
217
218
|
}
|
|
218
219
|
export type DataTableProps = DataTableProperties & TableProperties & HTMLAttributes<HTMLElement>;
|
|
219
220
|
export declare const DataTable: React.FC<DataTableProps> & DataTableComponents;
|
|
221
|
+
export type Module = "bold" | "clearFormating" | "orderedList" | "unorderedList" | "header" | "history" | "italic" | "link" | "video" | "divider";
|
|
222
|
+
export type Parser = "html" | "json";
|
|
223
|
+
export interface EditorProperties {
|
|
224
|
+
modules?: Module;
|
|
225
|
+
placeholder?: string;
|
|
226
|
+
value?: string;
|
|
227
|
+
parser?: Parser;
|
|
228
|
+
theme?: EditorThemeClasses;
|
|
229
|
+
onChange?: (data: string) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Icon supporting the help text message.
|
|
232
|
+
* @TJS-type React.FC<IconProps>
|
|
233
|
+
*/
|
|
234
|
+
helpIcon?: FC<IconProps>;
|
|
235
|
+
/**
|
|
236
|
+
* Help text displaying optional hints or validation messages under the field.
|
|
237
|
+
*/
|
|
238
|
+
helpText?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Appearance of the field and help text elements.
|
|
241
|
+
* @default none
|
|
242
|
+
*/
|
|
243
|
+
appearance?: "danger" | "warning" | "success" | "none";
|
|
244
|
+
}
|
|
245
|
+
export type EditorProps = EditorProperties & Omit<HTMLAttributes<HTMLElement>, "onChange" | "color">;
|
|
246
|
+
export declare const Editor: React.FC<EditorProps>;
|
|
220
247
|
export interface EmptyMessageProperties {
|
|
221
248
|
/**
|
|
222
249
|
* Optional node that contains an illustration for the component. Will stack vertically on mobile and horizontally on desktop.
|