@iota/apps-ui-kit 0.9.3 → 0.9.5
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 +20 -0
- package/dist/index.d.ts +30 -21
- package/dist/index.es.js +2173 -2066
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/lib/components/atoms/badge/Badge.tsx +13 -6
- package/src/lib/components/atoms/badge/badge.classes.ts +0 -2
- package/src/lib/components/atoms/badge/badge.enums.ts +5 -0
- package/src/lib/components/atoms/button/Button.tsx +4 -2
- package/src/lib/components/atoms/button-segment/ButtonSegment.tsx +3 -1
- package/src/lib/components/atoms/checkbox/Checkbox.tsx +3 -1
- package/src/lib/components/atoms/header/Header.tsx +2 -0
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +1 -1
- package/src/lib/components/atoms/list-item/ListItem.tsx +3 -1
- package/src/lib/components/atoms/radio-button/RadioButton.tsx +3 -1
- package/src/lib/components/atoms/snackbar/Snackbar.tsx +4 -4
- package/src/lib/components/atoms/toggle/Toggle.tsx +4 -1
- package/src/lib/components/molecules/account/Account.tsx +2 -2
- package/src/lib/components/molecules/address/Address.tsx +4 -2
- package/src/lib/components/molecules/card/Card.tsx +6 -2
- package/src/lib/components/molecules/chip/Chip.tsx +11 -5
- package/src/lib/components/molecules/display-stats/DisplayStats.tsx +1 -1
- package/src/lib/components/molecules/input/Input.tsx +2 -0
- package/src/lib/components/molecules/navbar-item/NavbarItem.tsx +1 -1
- package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +3 -0
- package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +3 -0
- package/src/lib/components/molecules/search/Search.tsx +11 -1
- package/src/lib/components/molecules/select/Select.tsx +32 -24
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +12 -1
- package/src/lib/components/molecules/visual-asset-card/VisualAssetCard.tsx +2 -1
- package/src/lib/components/organisms/accordion/Accordion.tsx +2 -0
- package/src/lib/components/organisms/dialog/Dialog.tsx +9 -2
- package/src/lib/components/organisms/navbar/Navbar.tsx +2 -0
- package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +1 -0
- package/src/lib/components/organisms/table/Table.tsx +4 -0
- package/src/lib/tailwind/base.presets.ts +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @iota/apps-ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.9.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e19cf85: add badge size property
|
|
8
|
+
- Updated dependencies [ced5c54]
|
|
9
|
+
- @iota/apps-ui-icons@0.7.5
|
|
10
|
+
|
|
11
|
+
## 0.9.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 4a5ec26: Always show Copy and explorer buttons in Address component.
|
|
16
|
+
- adea573: Enable declarationMap in TS packages
|
|
17
|
+
- 8ec6dd5: Extend support for aria props
|
|
18
|
+
- caf344f: Animations for dialog and Select.
|
|
19
|
+
- Updated dependencies [adea573]
|
|
20
|
+
- Updated dependencies [0142ab5]
|
|
21
|
+
- @iota/apps-ui-icons@0.7.4
|
|
22
|
+
|
|
3
23
|
## 0.9.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ export declare interface AssetMediaRendererProps extends VideoProps {
|
|
|
186
186
|
showFallback?: boolean;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
export declare function Badge({ type, label }: BadgeProps): React.JSX.Element;
|
|
189
|
+
export declare function Badge({ type, label, size }: BadgeProps): React.JSX.Element;
|
|
190
190
|
|
|
191
191
|
declare interface BadgeProps {
|
|
192
192
|
/**
|
|
@@ -197,6 +197,15 @@ declare interface BadgeProps {
|
|
|
197
197
|
* The label of the badge.
|
|
198
198
|
*/
|
|
199
199
|
label?: string;
|
|
200
|
+
/**
|
|
201
|
+
* The size of the badge
|
|
202
|
+
*/
|
|
203
|
+
size?: BadgeSize;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare enum BadgeSize {
|
|
207
|
+
Medium = "medium",
|
|
208
|
+
Small = "small"
|
|
200
209
|
}
|
|
201
210
|
|
|
202
211
|
export declare enum BadgeType {
|
|
@@ -263,7 +272,7 @@ declare type ButtonPickedProps = Pick<ButtonProps, 'htmlType' | 'testId'>;
|
|
|
263
272
|
|
|
264
273
|
export declare function ButtonPill({ htmlType, children, tabIndex, ...buttonProps }: Omit<ButtonVariantProps, 'className'>): JSX_2.Element;
|
|
265
274
|
|
|
266
|
-
export declare interface ButtonProps {
|
|
275
|
+
export declare interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
267
276
|
/**
|
|
268
277
|
* The size of the button.
|
|
269
278
|
*/
|
|
@@ -310,9 +319,9 @@ export declare interface ButtonProps {
|
|
|
310
319
|
testId?: string;
|
|
311
320
|
}
|
|
312
321
|
|
|
313
|
-
export declare function ButtonSegment({ icon, label, selected, disabled, onClick, type, isNested, }: ButtonSegmentProps): React.JSX.Element;
|
|
322
|
+
export declare function ButtonSegment({ icon, label, selected, disabled, onClick, type, isNested, ...ariaProps }: ButtonSegmentProps): React.JSX.Element;
|
|
314
323
|
|
|
315
|
-
declare interface ButtonSegmentProps {
|
|
324
|
+
declare interface ButtonSegmentProps extends React.AriaAttributes {
|
|
316
325
|
/**
|
|
317
326
|
* The label of the button.
|
|
318
327
|
*/
|
|
@@ -367,7 +376,7 @@ declare interface ButtonVariantProps extends ButtonPickedProps, PropsFromButtonE
|
|
|
367
376
|
children: React.ReactNode;
|
|
368
377
|
}
|
|
369
378
|
|
|
370
|
-
export declare function Card({ isDisabled, type, isHoverable, onClick, children, testId, }: CardProps): JSX_2.Element;
|
|
379
|
+
export declare function Card({ isDisabled, type, isHoverable, onClick, children, testId, ...ariaProps }: CardProps): JSX_2.Element;
|
|
371
380
|
|
|
372
381
|
export declare function CardAction({ type, onClick, subtitle, title, icon, iconAfterText, buttonType, buttonDisabled, }: CardActionProps): JSX_2.Element | null;
|
|
373
382
|
|
|
@@ -409,7 +418,7 @@ export declare interface CardImageProps {
|
|
|
409
418
|
children?: React.ReactNode;
|
|
410
419
|
}
|
|
411
420
|
|
|
412
|
-
export declare interface CardProps {
|
|
421
|
+
export declare interface CardProps extends React.AriaAttributes {
|
|
413
422
|
/**
|
|
414
423
|
* If `true`, the card will be disabled.
|
|
415
424
|
*/
|
|
@@ -445,7 +454,7 @@ export declare enum CardType {
|
|
|
445
454
|
|
|
446
455
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
447
456
|
|
|
448
|
-
declare interface CheckboxProps {
|
|
457
|
+
declare interface CheckboxProps extends React.AriaAttributes {
|
|
449
458
|
/**
|
|
450
459
|
* The label of the checkbox.
|
|
451
460
|
*/
|
|
@@ -476,9 +485,9 @@ declare interface CheckboxProps {
|
|
|
476
485
|
name?: string;
|
|
477
486
|
}
|
|
478
487
|
|
|
479
|
-
export declare function Chip({ label, type, selected, showClose, onClose, onClick, avatar, leadingElement, trailingElement, disabled, size, }: ChipProps): JSX_2.Element;
|
|
488
|
+
export declare function Chip({ label, type, selected, showClose, onClose, onClick, avatar, leadingElement, trailingElement, disabled, size, ...ariaProps }: ChipProps): JSX_2.Element;
|
|
480
489
|
|
|
481
|
-
declare interface ChipProps {
|
|
490
|
+
declare interface ChipProps extends React.AriaAttributes {
|
|
482
491
|
/**
|
|
483
492
|
* The label of the chip
|
|
484
493
|
*/
|
|
@@ -1075,9 +1084,9 @@ export declare enum LabelTextSize {
|
|
|
1075
1084
|
Large = "large"
|
|
1076
1085
|
}
|
|
1077
1086
|
|
|
1078
|
-
export declare function ListItem({ showRightIcon, hideBottomBorder, onClick, isDisabled, children, isHighlighted, }: PropsWithChildren<ListItemProps>): React.JSX.Element;
|
|
1087
|
+
export declare function ListItem({ showRightIcon, hideBottomBorder, onClick, isDisabled, children, isHighlighted, ...ariaProps }: PropsWithChildren<ListItemProps>): React.JSX.Element;
|
|
1079
1088
|
|
|
1080
|
-
export declare interface ListItemProps {
|
|
1089
|
+
export declare interface ListItemProps extends React.AriaAttributes {
|
|
1081
1090
|
/**
|
|
1082
1091
|
* Has right icon (optional).
|
|
1083
1092
|
*/
|
|
@@ -1127,7 +1136,7 @@ export declare function Navbar({ items, activeId, onClickItem, isCollapsible, on
|
|
|
1127
1136
|
|
|
1128
1137
|
export declare function NavbarItem(props: NavbarItemProps): React.JSX.Element;
|
|
1129
1138
|
|
|
1130
|
-
export declare interface NavbarItemProps {
|
|
1139
|
+
export declare interface NavbarItemProps extends React.AriaAttributes {
|
|
1131
1140
|
/**
|
|
1132
1141
|
* The type of the navbar item.
|
|
1133
1142
|
*/
|
|
@@ -1236,9 +1245,9 @@ declare interface PlaceholderProps {
|
|
|
1236
1245
|
|
|
1237
1246
|
declare type PropsFromButtonElement = Omit<React.HTMLProps<HTMLButtonElement>, 'type'>;
|
|
1238
1247
|
|
|
1239
|
-
export declare function RadioButton({ id, name, label, supportingLabel, body, isChecked, isDisabled, onChange, }: RadioButtonProps): React.JSX.Element;
|
|
1248
|
+
export declare function RadioButton({ id, name, label, supportingLabel, body, isChecked, isDisabled, onChange, ...ariaProps }: RadioButtonProps): React.JSX.Element;
|
|
1240
1249
|
|
|
1241
|
-
declare interface RadioButtonProps {
|
|
1250
|
+
declare interface RadioButtonProps extends React.AriaAttributes {
|
|
1242
1251
|
/**
|
|
1243
1252
|
* The id of the radio button.
|
|
1244
1253
|
*/
|
|
@@ -1287,14 +1296,14 @@ export declare enum ScreenSize {
|
|
|
1287
1296
|
Xl = "xl"
|
|
1288
1297
|
}
|
|
1289
1298
|
|
|
1290
|
-
export declare function Search({ searchValue, suggestions, onSearchValueChange, onSuggestionClick, placeholder, isLoading, type, renderSuggestion, }: SearchProps): React.JSX.Element;
|
|
1299
|
+
export declare function Search({ searchValue, suggestions, onSearchValueChange, onSuggestionClick, placeholder, isLoading, type, renderSuggestion, ...ariaProps }: SearchProps): React.JSX.Element;
|
|
1291
1300
|
|
|
1292
1301
|
export declare enum SearchBarType {
|
|
1293
1302
|
Outlined = "outlined",
|
|
1294
1303
|
Filled = "filled"
|
|
1295
1304
|
}
|
|
1296
1305
|
|
|
1297
|
-
export declare interface SearchProps {
|
|
1306
|
+
export declare interface SearchProps extends React.AriaAttributes {
|
|
1298
1307
|
/**
|
|
1299
1308
|
* The value of the search input.
|
|
1300
1309
|
*/
|
|
@@ -1371,7 +1380,7 @@ export declare type SelectOption = string | {
|
|
|
1371
1380
|
label: React.ReactNode;
|
|
1372
1381
|
};
|
|
1373
1382
|
|
|
1374
|
-
declare interface SelectProps extends Pick<React.HTMLProps<HTMLSelectElement>, 'disabled'
|
|
1383
|
+
declare interface SelectProps extends Pick<React.HTMLProps<HTMLSelectElement>, 'disabled'>, React.AriaAttributes {
|
|
1375
1384
|
/**
|
|
1376
1385
|
* The selected option value.
|
|
1377
1386
|
*/
|
|
@@ -1565,9 +1574,9 @@ export declare interface TableCellTextProps {
|
|
|
1565
1574
|
|
|
1566
1575
|
export declare function TableHeader({ children }: PropsWithChildren): JSX.Element;
|
|
1567
1576
|
|
|
1568
|
-
export declare function TableHeaderCell({ label, columnKey, hasSort, hasCheckbox, isChecked, isIndeterminate, isContentCentered, onSortClick, onCheckboxChange, sortOrder, }: TableHeaderCellProps): JSX.Element;
|
|
1577
|
+
export declare function TableHeaderCell({ label, columnKey, hasSort, hasCheckbox, isChecked, isIndeterminate, isContentCentered, onSortClick, onCheckboxChange, sortOrder, ...ariaProps }: TableHeaderCellProps): JSX.Element;
|
|
1569
1578
|
|
|
1570
|
-
export declare interface TableHeaderCellProps {
|
|
1579
|
+
export declare interface TableHeaderCellProps extends React.AriaAttributes {
|
|
1571
1580
|
/**
|
|
1572
1581
|
* The column key.
|
|
1573
1582
|
*/
|
|
@@ -1791,7 +1800,7 @@ export declare enum ToggleLabelPosition {
|
|
|
1791
1800
|
Right = "right"
|
|
1792
1801
|
}
|
|
1793
1802
|
|
|
1794
|
-
declare interface ToggleProps {
|
|
1803
|
+
declare interface ToggleProps extends React.AriaAttributes {
|
|
1795
1804
|
/**
|
|
1796
1805
|
* The label for the toggle.
|
|
1797
1806
|
*/
|
|
@@ -1877,7 +1886,7 @@ export declare interface VideoProps {
|
|
|
1877
1886
|
disableControls?: boolean;
|
|
1878
1887
|
}
|
|
1879
1888
|
|
|
1880
|
-
declare interface VisualAssetBaseProps {
|
|
1889
|
+
declare interface VisualAssetBaseProps extends React.AriaAttributes {
|
|
1881
1890
|
/**
|
|
1882
1891
|
* The onClick event for the icon.
|
|
1883
1892
|
*/
|