@iota/apps-ui-kit 0.2.1 → 0.3.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 +25 -0
- package/dist/index.d.ts +23 -9
- package/dist/index.es.js +4093 -3989
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +43 -43
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/lib/components/atoms/button/button.classes.ts +4 -4
- package/src/lib/components/atoms/info-box/infoBox.classes.ts +7 -2
- package/src/lib/components/atoms/info-box/infoBox.enums.ts +2 -0
- package/src/lib/components/atoms/snackbar/snackbar.classes.ts +5 -1
- package/src/lib/components/atoms/snackbar/snackbar.enums.tsx +2 -0
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +4 -1
- package/src/lib/components/atoms/visual-asset-card/VisualAssetCard.tsx +26 -18
- package/src/lib/components/molecules/address/Address.tsx +1 -1
- package/src/lib/components/molecules/card/CardAction.tsx +4 -2
- package/src/lib/components/molecules/input/input.classes.ts +2 -2
- package/src/lib/components/molecules/search/Search.tsx +34 -3
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +27 -13
- package/src/lib/components/organisms/accordion/Accordion.tsx +3 -5
- package/src/lib/components/organisms/dialog/Dialog.tsx +6 -5
- package/src/lib/components/organisms/navbar/Navbar.tsx +10 -10
- package/src/lib/constants/colors.constants.ts +5 -0
- package/src/lib/styles/index.css +13 -0
- package/src/lib/tailwind/base.presets.ts +2 -0
- package/src/lib/tailwind/plugins.ts +8 -0
- package/src/storybook/stories/organisms/Navbar.stories.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @iota/apps-ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3b8b320: update input styles for darkmode
|
|
8
|
+
- b28a0be: Improve search input behavior:
|
|
9
|
+
|
|
10
|
+
- Allow navigation through suggestions with arrow up/down keys
|
|
11
|
+
- Select suggestion on Enter
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- b83b198: improve darkmode styles for destructive button
|
|
16
|
+
- b06e657: Improve styling for small screens
|
|
17
|
+
- 9f4c5e4: Enhance snackbar and infobox with warning type. Update styles for default type.
|
|
18
|
+
- 2bd31a2: fix tooltip max-width
|
|
19
|
+
- Updated dependencies [8f73b75]
|
|
20
|
+
- @iota/apps-ui-icons@0.2.2
|
|
21
|
+
|
|
22
|
+
## 0.2.2
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- c0ef9f2: Update scrollbar styles for firefox and add firefox only class selector
|
|
27
|
+
|
|
3
28
|
## 0.2.1
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare interface AccordionContentProps {
|
|
|
25
25
|
isExpanded: boolean;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export declare function AccordionHeader({ onToggle, children, isExpanded, hideArrow,
|
|
28
|
+
export declare function AccordionHeader({ onToggle, children, isExpanded, hideArrow, }: PropsWithChildren<AccordionHeaderProps>): JSX_2.Element;
|
|
29
29
|
|
|
30
30
|
export declare interface AccordionHeaderProps {
|
|
31
31
|
/**
|
|
@@ -655,7 +655,9 @@ export declare enum InfoBoxStyle {
|
|
|
655
655
|
|
|
656
656
|
export declare enum InfoBoxType {
|
|
657
657
|
Default = "default",
|
|
658
|
-
Error = "error"
|
|
658
|
+
Error = "error",
|
|
659
|
+
Success = "success",
|
|
660
|
+
Warning = "warning"
|
|
659
661
|
}
|
|
660
662
|
|
|
661
663
|
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -776,6 +778,11 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
776
778
|
'98': string;
|
|
777
779
|
'100': string;
|
|
778
780
|
};
|
|
781
|
+
warning: {
|
|
782
|
+
'10': string;
|
|
783
|
+
'20': string;
|
|
784
|
+
'90': string;
|
|
785
|
+
};
|
|
779
786
|
};
|
|
780
787
|
|
|
781
788
|
export declare function KeyValueInfo({ keyText, value, tooltipPosition, tooltipText, supportingLabel, size, isTruncated, copyText, onCopySuccess, onCopyError, fullwidth, isReverse, valueHoverTitle, }: KeyValueProps): React.JSX.Element;
|
|
@@ -925,7 +932,7 @@ export declare interface LoadingIndicatorProps {
|
|
|
925
932
|
testId?: string;
|
|
926
933
|
}
|
|
927
934
|
|
|
928
|
-
export declare function Navbar({ items, activeId, onClickItem,
|
|
935
|
+
export declare function Navbar({ items, activeId, onClickItem, isCollapsible, onToggleNavbar, }: NavbarProps): JSX_2.Element;
|
|
929
936
|
|
|
930
937
|
export declare function NavbarItem(props: NavbarItemProps): React.JSX.Element;
|
|
931
938
|
|
|
@@ -971,9 +978,9 @@ export declare type NavbarItemWithId = NavbarItemProps_2 & {
|
|
|
971
978
|
|
|
972
979
|
export declare interface NavbarProps {
|
|
973
980
|
/**
|
|
974
|
-
* If this flag is true we need to leave only the icon and
|
|
981
|
+
* If this flag is true we need to leave only the icon and collapsible button
|
|
975
982
|
*/
|
|
976
|
-
|
|
983
|
+
isCollapsible?: boolean;
|
|
977
984
|
/**
|
|
978
985
|
* List of elements to be displayed in the navbar.
|
|
979
986
|
*/
|
|
@@ -987,7 +994,7 @@ export declare interface NavbarProps {
|
|
|
987
994
|
*/
|
|
988
995
|
onClickItem: (id: string) => void;
|
|
989
996
|
/**
|
|
990
|
-
* If the navbar is
|
|
997
|
+
* If the navbar is collapsible, this flag indicates if it is open or not.
|
|
991
998
|
*/
|
|
992
999
|
isOpen?: boolean;
|
|
993
1000
|
/**
|
|
@@ -1303,7 +1310,9 @@ export declare interface SnackbarProps {
|
|
|
1303
1310
|
|
|
1304
1311
|
export declare enum SnackbarType {
|
|
1305
1312
|
Default = "default",
|
|
1306
|
-
Error = "error"
|
|
1313
|
+
Error = "error",
|
|
1314
|
+
Warning = "warning",
|
|
1315
|
+
Success = "success"
|
|
1307
1316
|
}
|
|
1308
1317
|
|
|
1309
1318
|
export declare interface Suggestion {
|
|
@@ -1346,7 +1355,7 @@ export declare interface TableCellTextProps {
|
|
|
1346
1355
|
|
|
1347
1356
|
export declare function TableHeader({ children }: PropsWithChildren): JSX.Element;
|
|
1348
1357
|
|
|
1349
|
-
export declare function TableHeaderCell({ label, columnKey, hasSort, hasCheckbox, isChecked, isIndeterminate, isContentCentered, onSortClick, onCheckboxChange, }: TableHeaderCellProps): JSX.Element;
|
|
1358
|
+
export declare function TableHeaderCell({ label, columnKey, hasSort, hasCheckbox, isChecked, isIndeterminate, isContentCentered, onSortClick, onCheckboxChange, sortOrder, }: TableHeaderCellProps): JSX.Element;
|
|
1350
1359
|
|
|
1351
1360
|
export declare interface TableHeaderCellProps {
|
|
1352
1361
|
/**
|
|
@@ -1393,6 +1402,10 @@ export declare interface TableHeaderCellProps {
|
|
|
1393
1402
|
* Whether the cell content should be centered.
|
|
1394
1403
|
*/
|
|
1395
1404
|
isContentCentered?: boolean;
|
|
1405
|
+
/**
|
|
1406
|
+
* Sort order when cell is initialized
|
|
1407
|
+
*/
|
|
1408
|
+
sortOrder?: TableHeaderCellSortOrder;
|
|
1396
1409
|
}
|
|
1397
1410
|
|
|
1398
1411
|
export declare enum TableHeaderCellSortOrder {
|
|
@@ -1552,7 +1565,7 @@ export declare enum TitleSize {
|
|
|
1552
1565
|
Medium = "medium"
|
|
1553
1566
|
}
|
|
1554
1567
|
|
|
1555
|
-
export declare function Tooltip({ text, position, children, }: PropsWithChildren<TooltipProps>): React.JSX.Element;
|
|
1568
|
+
export declare function Tooltip({ text, position, maxWidth, children, }: PropsWithChildren<TooltipProps>): React.JSX.Element;
|
|
1556
1569
|
|
|
1557
1570
|
export declare enum TooltipPosition {
|
|
1558
1571
|
Top = "top",
|
|
@@ -1564,6 +1577,7 @@ export declare enum TooltipPosition {
|
|
|
1564
1577
|
declare interface TooltipProps {
|
|
1565
1578
|
text: string;
|
|
1566
1579
|
position?: TooltipPosition;
|
|
1580
|
+
maxWidth?: string;
|
|
1567
1581
|
}
|
|
1568
1582
|
|
|
1569
1583
|
export declare function truncate(value: string, startLength?: number, endLength?: number): string;
|