@iota/apps-ui-kit 0.6.0 → 0.7.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 +29 -0
- package/dist/index.d.ts +219 -34
- package/dist/index.es.js +3429 -6082
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -160
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -4
- package/src/lib/components/atoms/badge/badge.classes.ts +18 -18
- package/src/lib/components/atoms/badge/badge.enums.ts +1 -1
- package/src/lib/components/atoms/button/Button.tsx +1 -0
- package/src/lib/components/atoms/button/button-variants/ButtonPill.tsx +1 -1
- package/src/lib/components/atoms/button/button.classes.ts +12 -12
- package/src/lib/components/atoms/button-segment/ButtonSegment.tsx +1 -1
- package/src/lib/components/atoms/button-segment/buttonSegment.classes.ts +15 -36
- package/src/lib/components/atoms/checkbox/Checkbox.tsx +19 -9
- package/src/lib/components/atoms/divider/divider.classes.ts +1 -1
- package/src/lib/components/atoms/header/Header.tsx +1 -1
- package/src/lib/components/atoms/image/Image.tsx +32 -0
- package/src/lib/components/atoms/image/index.ts +4 -0
- package/src/lib/components/atoms/index.ts +4 -1
- package/src/lib/components/atoms/info-box/InfoBox.tsx +2 -8
- package/src/lib/components/atoms/info-box/infoBox.classes.ts +8 -9
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +5 -5
- package/src/lib/components/atoms/label-text/LabelText.tsx +4 -6
- package/src/lib/components/atoms/list-item/ListItem.tsx +4 -5
- package/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx +1 -1
- package/src/lib/components/atoms/media-fallback/MediaFallback.tsx +12 -0
- package/src/lib/components/atoms/media-fallback/index.ts +4 -0
- package/src/lib/components/atoms/panel/Panel.tsx +2 -4
- package/src/lib/components/atoms/radio-button/RadioButton.tsx +5 -9
- package/src/lib/components/atoms/secondary-text/SecondaryText.tsx +3 -2
- package/src/lib/components/atoms/skeleton/Skeleton.tsx +6 -23
- package/src/lib/components/atoms/snackbar/snackbar.classes.ts +8 -8
- package/src/lib/components/atoms/toggle/toggle.classes.ts +6 -6
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +3 -2
- package/src/lib/components/atoms/video/Video.tsx +33 -0
- package/src/lib/components/atoms/video/index.ts +4 -0
- package/src/lib/components/atoms/video/video.constants.ts +31 -0
- package/src/lib/components/index.ts +0 -2
- package/src/lib/components/molecules/account/Account.tsx +4 -4
- package/src/lib/components/molecules/address/Address.tsx +1 -1
- package/src/lib/components/molecules/asset-media-renderer/AssetMediaRenderer.tsx +50 -0
- package/src/lib/components/molecules/asset-media-renderer/index.ts +4 -0
- package/src/lib/components/molecules/card/CardAction.tsx +3 -5
- package/src/lib/components/molecules/card/CardBody.tsx +3 -2
- package/src/lib/components/molecules/card/card.classes.ts +3 -3
- package/src/lib/components/molecules/chip/Chip.tsx +59 -18
- package/src/lib/components/molecules/chip/chip.classes.ts +37 -15
- package/src/lib/components/molecules/chip/chip.enums.ts +10 -2
- package/src/lib/components/molecules/chip/index.ts +1 -0
- package/src/lib/components/molecules/display-stats/DisplayStats.tsx +2 -2
- package/src/lib/components/molecules/display-stats/displayStats.classes.ts +6 -6
- package/src/lib/components/molecules/dropdown/Dropdown.tsx +1 -1
- package/src/lib/components/molecules/index.ts +2 -0
- package/src/lib/components/molecules/input/Input.tsx +37 -22
- package/src/lib/components/molecules/input/InputWrapper.tsx +1 -1
- package/src/lib/components/molecules/input/TextArea.tsx +4 -8
- package/src/lib/components/molecules/input/input.classes.ts +7 -8
- package/src/lib/components/molecules/navbar-item/NavbarItem.tsx +0 -1
- package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +1 -1
- package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +1 -1
- package/src/lib/components/molecules/navbar-item/navbarItem.classes.ts +4 -4
- package/src/lib/components/molecules/search/Search.tsx +10 -7
- package/src/lib/components/molecules/search/search.classes.ts +5 -5
- package/src/lib/components/molecules/segmented-button/segmentedButton.classes.ts +2 -2
- package/src/lib/components/molecules/select/Select.tsx +29 -16
- package/src/lib/components/molecules/table-cell/TableCell.tsx +2 -2
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +2 -2
- package/src/lib/components/molecules/title/Title.tsx +3 -3
- package/src/lib/components/{atoms → molecules}/visual-asset-card/VisualAssetCard.tsx +26 -40
- package/src/lib/components/organisms/accordion/Accordion.tsx +2 -3
- package/src/lib/components/organisms/accordion/accordion.classes.ts +1 -1
- package/src/lib/components/organisms/dialog/Dialog.tsx +39 -24
- package/src/lib/components/organisms/navbar/Navbar.tsx +2 -2
- package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +1 -1
- package/src/lib/components/organisms/table/Table.tsx +2 -2
- package/src/lib/constants/colors.constants.ts +114 -8
- package/src/lib/enums/index.ts +1 -0
- package/src/lib/enums/theme.enums.ts +8 -0
- package/src/lib/index.ts +2 -0
- package/src/lib/styles/base.css +137 -0
- package/src/lib/styles/components.css +735 -0
- package/src/lib/styles/fonts.css +2 -0
- package/src/lib/styles/index.css +10 -141
- package/src/lib/styles/utilities.css +61 -0
- package/src/lib/styles/variables/dark-variables.css +262 -0
- package/src/lib/styles/variables/general-variables.css +9 -0
- package/src/lib/styles/variables/light-variables.css +276 -0
- package/src/lib/styles/variables/names-variables.css +270 -0
- package/src/lib/tailwind/base.presets.ts +17 -8
- package/src/lib/tailwind/constants/customColors.constants.ts +13 -0
- package/src/lib/tailwind/constants/fontFamily.constants.ts +8 -0
- package/src/lib/tailwind/constants/fontSizes.constants.ts +9 -9
- package/src/lib/tailwind/constants/gradients.constants.ts +6 -0
- package/src/lib/tailwind/constants/index.ts +1 -0
- package/src/lib/tailwind/plugins.ts +4 -0
- package/src/storybook/blocks/Showcase.tsx +2 -2
- package/src/storybook/blocks/TypeSet.tsx +3 -3
- package/src/storybook/blocks/TypeSetItem.tsx +3 -3
- package/src/storybook/constants/gradients.constants.ts +8 -0
- package/src/storybook/helpers/formatGradientNames.ts +15 -0
- package/src/storybook/stories/atoms/Skeleton.stories.tsx +6 -6
- package/src/storybook/stories/atoms/Tooltip.stories.tsx +4 -2
- package/src/storybook/stories/atoms/VisualAssetCard.stories.tsx +3 -2
- package/src/storybook/stories/components/DocsSyncTheme.tsx +20 -0
- package/src/storybook/stories/components/VariableSpacingShowcase.tsx +2 -2
- package/src/storybook/stories/components/index.ts +1 -0
- package/src/storybook/stories/design-tokens/colors.stories.mdx +21 -0
- package/src/storybook/stories/design-tokens/icons.stories.mdx +2 -0
- package/src/storybook/stories/design-tokens/typeset.stories.mdx +2 -0
- package/src/storybook/stories/design-tokens/variable-spacing.stories.mdx +2 -1
- package/src/storybook/stories/molecules/Account.stories.tsx +3 -1
- package/src/storybook/stories/molecules/Chip.stories.tsx +5 -0
- package/src/storybook/stories/molecules/Input.stories.tsx +79 -2
- package/src/storybook/stories/molecules/Search.stories.tsx +2 -2
- package/src/storybook/stories/molecules/TableCell.stories.tsx +1 -1
- package/src/storybook/stories/molecules/TextArea.stories.tsx +1 -1
- package/src/storybook/stories/organisms/Dialog.stories.tsx +54 -28
- /package/src/lib/components/{atoms → molecules}/visual-asset-card/index.ts +0 -0
- /package/src/lib/components/{atoms → molecules}/visual-asset-card/visualAssetCard.enums.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @iota/apps-ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b3b2b4b: fix double scroll bar in the select component
|
|
8
|
+
- 5a3fd67: remove gradient from outline button & add CSS classes to components
|
|
9
|
+
- 8b8bf41: Improve typeset for the names theme
|
|
10
|
+
- 4a25f42: Add supportingValue to input
|
|
11
|
+
- 23c13dc: add new state-layer-secondary
|
|
12
|
+
- 4e7d5ae: Add colors for iota names
|
|
13
|
+
- eebb4f5: add gradient border to outline button
|
|
14
|
+
- c7ba8c4: export SecondaryText component
|
|
15
|
+
- Updated dependencies [3d09899]
|
|
16
|
+
- @iota/apps-ui-icons@0.4.1
|
|
17
|
+
|
|
18
|
+
## 0.7.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 9b4b517: support multi-theme
|
|
23
|
+
- 6fcddb3: Make react a peer dependency
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- b83d356: add chip size prop
|
|
28
|
+
- 01f03fb: Refactor components to improve reusability
|
|
29
|
+
- Updated dependencies [6fcddb3]
|
|
30
|
+
- @iota/apps-ui-icons@0.4.0
|
|
31
|
+
|
|
3
32
|
## 0.6.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,10 @@ import { ButtonSegmentType as ButtonSegmentType_2 } from '../../../../components
|
|
|
4
4
|
import { ButtonType as ButtonType_2 } from '../../../../components/atoms/button';
|
|
5
5
|
import { ComponentProps } from 'react';
|
|
6
6
|
import { Config } from 'tailwindcss';
|
|
7
|
+
import { default as default_2 } from 'react';
|
|
8
|
+
import { DetailedHTMLProps } from 'react';
|
|
7
9
|
import { ForwardRefExoticComponent } from 'react';
|
|
10
|
+
import { ImgHTMLAttributes } from 'react';
|
|
8
11
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
12
|
import { NavbarItemProps as NavbarItemProps_2 } from '../../../../components/molecules/navbar-item/NavbarItem';
|
|
10
13
|
import { NumericFormat } from 'react-number-format';
|
|
@@ -15,6 +18,7 @@ import { ReactNode } from 'react';
|
|
|
15
18
|
import { RefAttributes } from 'react';
|
|
16
19
|
import { TooltipPosition as TooltipPosition_2 } from '../../../../components/atoms';
|
|
17
20
|
import { TooltipPosition as TooltipPosition_3 } from '../../../../components/atoms/tooltip';
|
|
21
|
+
import { VideoHTMLAttributes } from 'react';
|
|
18
22
|
|
|
19
23
|
export declare function Accordion({ children, hideBorder, }: {
|
|
20
24
|
children: React.ReactNode;
|
|
@@ -175,6 +179,27 @@ declare interface AddressProps {
|
|
|
175
179
|
onOpen?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
176
180
|
}
|
|
177
181
|
|
|
182
|
+
export declare function AssetMediaRenderer({ src, isAutoPlayEnabled, assetType, altText: alt, showFallback, disableControls, }: AssetMediaRendererProps): React.JSX.Element;
|
|
183
|
+
|
|
184
|
+
export declare interface AssetMediaRendererProps extends VideoProps {
|
|
185
|
+
/**
|
|
186
|
+
* The source of the media to be displayed.
|
|
187
|
+
*/
|
|
188
|
+
src: string;
|
|
189
|
+
/**
|
|
190
|
+
* The type of the asset to be displayed.
|
|
191
|
+
*/
|
|
192
|
+
assetType: VisualAssetType;
|
|
193
|
+
/**
|
|
194
|
+
* Alt text for the image..
|
|
195
|
+
*/
|
|
196
|
+
altText?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Whether to show a fallback image if the main image fails to load.
|
|
199
|
+
*/
|
|
200
|
+
showFallback?: boolean;
|
|
201
|
+
}
|
|
202
|
+
|
|
178
203
|
export declare function Badge({ type, label }: BadgeProps): React.JSX.Element;
|
|
179
204
|
|
|
180
205
|
declare interface BadgeProps {
|
|
@@ -191,7 +216,7 @@ declare interface BadgeProps {
|
|
|
191
216
|
export declare enum BadgeType {
|
|
192
217
|
Neutral = "neutral",
|
|
193
218
|
PrimarySolid = "primary-solid",
|
|
194
|
-
PrimarySoft = "primary-
|
|
219
|
+
PrimarySoft = "primary-soft",
|
|
195
220
|
Success = "success",
|
|
196
221
|
Warning = "warning",
|
|
197
222
|
Error = "error"
|
|
@@ -201,7 +226,7 @@ export declare interface BaseInputProps extends InputWrapperProps {
|
|
|
201
226
|
/**
|
|
202
227
|
* A leading icon that is shown before the input
|
|
203
228
|
*/
|
|
204
|
-
leadingIcon?: React.
|
|
229
|
+
leadingIcon?: React.ReactNode;
|
|
205
230
|
/**
|
|
206
231
|
* Supporting text that is shown at the end of the input component.
|
|
207
232
|
*/
|
|
@@ -213,7 +238,7 @@ export declare interface BaseInputProps extends InputWrapperProps {
|
|
|
213
238
|
/**
|
|
214
239
|
* Trailing element that is shown after the input
|
|
215
240
|
*/
|
|
216
|
-
trailingElement?: React.
|
|
241
|
+
trailingElement?: React.ReactNode;
|
|
217
242
|
/**
|
|
218
243
|
* Is the content of the input visible
|
|
219
244
|
*/
|
|
@@ -222,6 +247,10 @@ export declare interface BaseInputProps extends InputWrapperProps {
|
|
|
222
247
|
* Value of the input
|
|
223
248
|
*/
|
|
224
249
|
value?: string | number;
|
|
250
|
+
/**
|
|
251
|
+
* Text that is shown below the value of the input.
|
|
252
|
+
*/
|
|
253
|
+
supportingValue?: string | null;
|
|
225
254
|
/**
|
|
226
255
|
* Default value of the input
|
|
227
256
|
*/
|
|
@@ -461,7 +490,7 @@ declare interface CheckboxProps {
|
|
|
461
490
|
name?: string;
|
|
462
491
|
}
|
|
463
492
|
|
|
464
|
-
export declare function Chip({ label,
|
|
493
|
+
export declare function Chip({ label, type, selected, showClose, onClose, onClick, avatar, leadingElement, trailingElement, disabled, size, }: ChipProps): JSX_2.Element;
|
|
465
494
|
|
|
466
495
|
declare interface ChipProps {
|
|
467
496
|
/**
|
|
@@ -500,6 +529,34 @@ declare interface ChipProps {
|
|
|
500
529
|
* The button is disabled or not.
|
|
501
530
|
*/
|
|
502
531
|
disabled?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* The type of the Chip
|
|
534
|
+
*/
|
|
535
|
+
type?: ChipType;
|
|
536
|
+
/**
|
|
537
|
+
* The size of the chip.
|
|
538
|
+
*/
|
|
539
|
+
size?: ChipSize;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export declare enum ChipSize {
|
|
543
|
+
Small = "small",
|
|
544
|
+
Default = "default"
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export declare enum ChipType {
|
|
548
|
+
Outline = "outline",
|
|
549
|
+
Elevated = "elevated",
|
|
550
|
+
Success = "success",
|
|
551
|
+
Brand = "brand",
|
|
552
|
+
Error = "error"
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare interface CustomAssetDisplayProps {
|
|
556
|
+
/**
|
|
557
|
+
* The media to be displayed inside the card.
|
|
558
|
+
*/
|
|
559
|
+
renderAsset?: React.ReactNode;
|
|
503
560
|
}
|
|
504
561
|
|
|
505
562
|
export declare const Dialog: ({ open, onOpenChange, children, ...props }: React_2.ComponentPropsWithoutRef<typeof RadixDialog.Root>) => JSX_2.Element;
|
|
@@ -513,6 +570,7 @@ export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<Radix
|
|
|
513
570
|
showCloseOnOverlay?: boolean;
|
|
514
571
|
position?: DialogPosition;
|
|
515
572
|
customWidth?: string;
|
|
573
|
+
isFixedPosition?: boolean;
|
|
516
574
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
517
575
|
|
|
518
576
|
export declare enum DialogPosition {
|
|
@@ -646,6 +704,9 @@ declare interface HeaderProps {
|
|
|
646
704
|
testId?: string;
|
|
647
705
|
}
|
|
648
706
|
|
|
707
|
+
declare const Image_2: ForwardRefExoticComponent<ImgHTMLAttributes<HTMLImageElement> & RefAttributes<HTMLImageElement>>;
|
|
708
|
+
export { Image_2 as Image }
|
|
709
|
+
|
|
649
710
|
export declare enum ImageShape {
|
|
650
711
|
Rounded = "rounded",
|
|
651
712
|
SquareRounded = "square-rounded"
|
|
@@ -658,6 +719,12 @@ export declare enum ImageType {
|
|
|
658
719
|
BgTransparent = "bg-transparent"
|
|
659
720
|
}
|
|
660
721
|
|
|
722
|
+
export declare const ImageWithFallback: ForwardRefExoticComponent<ImageWithFallbackProps & RefAttributes<HTMLImageElement>>;
|
|
723
|
+
|
|
724
|
+
export declare interface ImageWithFallbackProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
725
|
+
renderFallback?: React.ReactNode;
|
|
726
|
+
}
|
|
727
|
+
|
|
661
728
|
export declare function InfoBox({ icon, title, supportingText, type, style, }: InfoBoxProps): React.JSX.Element;
|
|
662
729
|
|
|
663
730
|
export declare interface InfoBoxProps {
|
|
@@ -741,8 +808,101 @@ declare interface InputWrapperProps {
|
|
|
741
808
|
labelHtmlTag?: LabelHtmlTag;
|
|
742
809
|
}
|
|
743
810
|
|
|
811
|
+
export declare const IOTA_NAMES_COLOR_PALETTE: {
|
|
812
|
+
'names-primary': {
|
|
813
|
+
'0': string;
|
|
814
|
+
'10': string;
|
|
815
|
+
'20': string;
|
|
816
|
+
'30': string;
|
|
817
|
+
'40': string;
|
|
818
|
+
'50': string;
|
|
819
|
+
'60': string;
|
|
820
|
+
'70': string;
|
|
821
|
+
'80': string;
|
|
822
|
+
'90': string;
|
|
823
|
+
'100': string;
|
|
824
|
+
};
|
|
825
|
+
'names-secondary': {
|
|
826
|
+
'0': string;
|
|
827
|
+
'10': string;
|
|
828
|
+
'20': string;
|
|
829
|
+
'30': string;
|
|
830
|
+
'40': string;
|
|
831
|
+
'50': string;
|
|
832
|
+
'60': string;
|
|
833
|
+
'70': string;
|
|
834
|
+
'80': string;
|
|
835
|
+
'90': string;
|
|
836
|
+
'100': string;
|
|
837
|
+
};
|
|
838
|
+
'names-tertiary': {
|
|
839
|
+
'0': string;
|
|
840
|
+
'10': string;
|
|
841
|
+
'20': string;
|
|
842
|
+
'30': string;
|
|
843
|
+
'40': string;
|
|
844
|
+
'50': string;
|
|
845
|
+
'60': string;
|
|
846
|
+
'70': string;
|
|
847
|
+
'80': string;
|
|
848
|
+
'90': string;
|
|
849
|
+
'100': string;
|
|
850
|
+
};
|
|
851
|
+
'names-error': {
|
|
852
|
+
'0': string;
|
|
853
|
+
'10': string;
|
|
854
|
+
'20': string;
|
|
855
|
+
'30': string;
|
|
856
|
+
'40': string;
|
|
857
|
+
'50': string;
|
|
858
|
+
'60': string;
|
|
859
|
+
'70': string;
|
|
860
|
+
'80': string;
|
|
861
|
+
'90': string;
|
|
862
|
+
'100': string;
|
|
863
|
+
};
|
|
864
|
+
'names-neutral': {
|
|
865
|
+
'0': string;
|
|
866
|
+
'4': string;
|
|
867
|
+
'6': string;
|
|
868
|
+
'10': string;
|
|
869
|
+
'12': string;
|
|
870
|
+
'20': string;
|
|
871
|
+
'30': string;
|
|
872
|
+
'40': string;
|
|
873
|
+
'50': string;
|
|
874
|
+
'60': string;
|
|
875
|
+
'70': string;
|
|
876
|
+
'80': string;
|
|
877
|
+
'90': string;
|
|
878
|
+
'92': string;
|
|
879
|
+
'96': string;
|
|
880
|
+
'98': string;
|
|
881
|
+
'100': string;
|
|
882
|
+
};
|
|
883
|
+
'names-solid': {
|
|
884
|
+
blue: string;
|
|
885
|
+
purple: string;
|
|
886
|
+
green: string;
|
|
887
|
+
neutral: string;
|
|
888
|
+
};
|
|
889
|
+
'names-warning': {
|
|
890
|
+
'0': string;
|
|
891
|
+
'10': string;
|
|
892
|
+
'20': string;
|
|
893
|
+
'30': string;
|
|
894
|
+
'40': string;
|
|
895
|
+
'50': string;
|
|
896
|
+
'60': string;
|
|
897
|
+
'70': string;
|
|
898
|
+
'80': string;
|
|
899
|
+
'90': string;
|
|
900
|
+
'100': string;
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
|
|
744
904
|
export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
745
|
-
primary: {
|
|
905
|
+
'iota-primary': {
|
|
746
906
|
'0': string;
|
|
747
907
|
'10': string;
|
|
748
908
|
'20': string;
|
|
@@ -755,7 +915,7 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
755
915
|
'90': string;
|
|
756
916
|
'100': string;
|
|
757
917
|
};
|
|
758
|
-
secondary: {
|
|
918
|
+
'iota-secondary': {
|
|
759
919
|
'0': string;
|
|
760
920
|
'10': string;
|
|
761
921
|
'20': string;
|
|
@@ -768,7 +928,7 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
768
928
|
'90': string;
|
|
769
929
|
'100': string;
|
|
770
930
|
};
|
|
771
|
-
tertiary: {
|
|
931
|
+
'iota-tertiary': {
|
|
772
932
|
'0': string;
|
|
773
933
|
'10': string;
|
|
774
934
|
'20': string;
|
|
@@ -781,7 +941,7 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
781
941
|
'90': string;
|
|
782
942
|
'100': string;
|
|
783
943
|
};
|
|
784
|
-
error: {
|
|
944
|
+
'iota-error': {
|
|
785
945
|
'0': string;
|
|
786
946
|
'10': string;
|
|
787
947
|
'20': string;
|
|
@@ -794,7 +954,7 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
794
954
|
'90': string;
|
|
795
955
|
'100': string;
|
|
796
956
|
};
|
|
797
|
-
neutral: {
|
|
957
|
+
'iota-neutral': {
|
|
798
958
|
'0': string;
|
|
799
959
|
'4': string;
|
|
800
960
|
'6': string;
|
|
@@ -813,11 +973,18 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
813
973
|
'98': string;
|
|
814
974
|
'100': string;
|
|
815
975
|
};
|
|
816
|
-
warning: {
|
|
976
|
+
'iota-warning': {
|
|
977
|
+
'0': string;
|
|
817
978
|
'10': string;
|
|
818
979
|
'20': string;
|
|
980
|
+
'30': string;
|
|
981
|
+
'40': string;
|
|
982
|
+
'50': string;
|
|
819
983
|
'60': string;
|
|
984
|
+
'70': string;
|
|
985
|
+
'80': string;
|
|
820
986
|
'90': string;
|
|
987
|
+
'100': string;
|
|
821
988
|
};
|
|
822
989
|
};
|
|
823
990
|
|
|
@@ -968,6 +1135,8 @@ export declare interface LoadingIndicatorProps {
|
|
|
968
1135
|
testId?: string;
|
|
969
1136
|
}
|
|
970
1137
|
|
|
1138
|
+
export declare function MediaFallback(): JSX_2.Element;
|
|
1139
|
+
|
|
971
1140
|
export declare function Navbar({ items, activeId, onClickItem, isCollapsible, onToggleNavbar, }: NavbarProps): JSX_2.Element;
|
|
972
1141
|
|
|
973
1142
|
export declare function NavbarItem(props: NavbarItemProps): React.JSX.Element;
|
|
@@ -1158,6 +1327,19 @@ export declare interface SearchProps {
|
|
|
1158
1327
|
renderSuggestion?: (suggestion: Suggestion, index: number) => React.ReactNode;
|
|
1159
1328
|
}
|
|
1160
1329
|
|
|
1330
|
+
export declare function SecondaryText({ children, hasErrorStyles }: SecondaryTextProps): JSX_2.Element;
|
|
1331
|
+
|
|
1332
|
+
declare interface SecondaryTextProps {
|
|
1333
|
+
/**
|
|
1334
|
+
* The children to render.
|
|
1335
|
+
*/
|
|
1336
|
+
children: React.ReactNode;
|
|
1337
|
+
/**
|
|
1338
|
+
* Should the text have error styles.
|
|
1339
|
+
*/
|
|
1340
|
+
hasErrorStyles?: boolean;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1161
1343
|
export declare function SegmentedButton({ type, children, shape, }: PropsWithChildren<SegmentedButtonProps>): React.JSX.Element;
|
|
1162
1344
|
|
|
1163
1345
|
declare interface SegmentedButtonProps {
|
|
@@ -1251,6 +1433,7 @@ export declare const SHADER_COLOR_PALETTE: {
|
|
|
1251
1433
|
'16': string;
|
|
1252
1434
|
'48': string;
|
|
1253
1435
|
'72': string;
|
|
1436
|
+
'100': string;
|
|
1254
1437
|
};
|
|
1255
1438
|
'shader-inverted-dark': {
|
|
1256
1439
|
'0': string;
|
|
@@ -1259,6 +1442,7 @@ export declare const SHADER_COLOR_PALETTE: {
|
|
|
1259
1442
|
'16': string;
|
|
1260
1443
|
'48': string;
|
|
1261
1444
|
'72': string;
|
|
1445
|
+
'100': string;
|
|
1262
1446
|
};
|
|
1263
1447
|
'shader-neutral-dark': {
|
|
1264
1448
|
'0': string;
|
|
@@ -1267,6 +1451,7 @@ export declare const SHADER_COLOR_PALETTE: {
|
|
|
1267
1451
|
'16': string;
|
|
1268
1452
|
'48': string;
|
|
1269
1453
|
'72': string;
|
|
1454
|
+
'100': string;
|
|
1270
1455
|
};
|
|
1271
1456
|
'shader-primary-light': {
|
|
1272
1457
|
0: string;
|
|
@@ -1275,6 +1460,7 @@ export declare const SHADER_COLOR_PALETTE: {
|
|
|
1275
1460
|
16: string;
|
|
1276
1461
|
48: string;
|
|
1277
1462
|
72: string;
|
|
1463
|
+
100: string;
|
|
1278
1464
|
};
|
|
1279
1465
|
'shader-inverted-light': {
|
|
1280
1466
|
0: string;
|
|
@@ -1283,6 +1469,7 @@ export declare const SHADER_COLOR_PALETTE: {
|
|
|
1283
1469
|
16: string;
|
|
1284
1470
|
48: string;
|
|
1285
1471
|
72: string;
|
|
1472
|
+
100: string;
|
|
1286
1473
|
};
|
|
1287
1474
|
'shader-neutral-light': {
|
|
1288
1475
|
0: string;
|
|
@@ -1291,28 +1478,17 @@ export declare const SHADER_COLOR_PALETTE: {
|
|
|
1291
1478
|
16: string;
|
|
1292
1479
|
48: string;
|
|
1293
1480
|
72: string;
|
|
1481
|
+
100: string;
|
|
1294
1482
|
};
|
|
1295
1483
|
};
|
|
1296
1484
|
|
|
1297
|
-
export declare function Skeleton({ children,
|
|
1485
|
+
export declare function Skeleton({ children, className, hasSecondaryColors, }: default_2.PropsWithChildren<SkeletonLoaderProps>): default_2.JSX.Element;
|
|
1298
1486
|
|
|
1299
|
-
declare interface SkeletonLoaderProps {
|
|
1300
|
-
/**
|
|
1301
|
-
* Width class for the skeleton div.
|
|
1302
|
-
*/
|
|
1303
|
-
widthClass?: string;
|
|
1304
|
-
/**
|
|
1305
|
-
* Height class for the skeleton div.
|
|
1306
|
-
*/
|
|
1307
|
-
heightClass?: string;
|
|
1487
|
+
declare interface SkeletonLoaderProps extends Pick<default_2.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
1308
1488
|
/**
|
|
1309
1489
|
* If true, the skeleton will use darker neutral colors.
|
|
1310
1490
|
*/
|
|
1311
1491
|
hasSecondaryColors?: boolean;
|
|
1312
|
-
/**
|
|
1313
|
-
* Whether the class `rounded-full` should be applied. Defaults to true.
|
|
1314
|
-
*/
|
|
1315
|
-
isRounded?: boolean;
|
|
1316
1492
|
}
|
|
1317
1493
|
|
|
1318
1494
|
export declare function Snackbar({ text, duration, onClose, showClose, type, }: SnackbarProps): JSX_2.Element;
|
|
@@ -1676,26 +1852,31 @@ export declare const uiKitResponsivePreset: Config;
|
|
|
1676
1852
|
|
|
1677
1853
|
export declare const uiKitStaticPreset: Config;
|
|
1678
1854
|
|
|
1855
|
+
export declare enum UIKitTheme {
|
|
1856
|
+
Light = "light",
|
|
1857
|
+
Dark = "dark",
|
|
1858
|
+
Names = "names"
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1679
1861
|
export declare enum ValueSize {
|
|
1680
1862
|
Small = "small",
|
|
1681
1863
|
Medium = "medium"
|
|
1682
1864
|
}
|
|
1683
1865
|
|
|
1684
|
-
export declare
|
|
1866
|
+
export declare const Video: ForwardRefExoticComponent<Omit<DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "ref"> & VideoProps & RefAttributes<HTMLVideoElement>>;
|
|
1685
1867
|
|
|
1686
|
-
export declare interface
|
|
1687
|
-
/**
|
|
1688
|
-
* The type of the asset to be displayed.
|
|
1689
|
-
*/
|
|
1690
|
-
assetType?: VisualAssetType;
|
|
1868
|
+
export declare interface VideoProps {
|
|
1691
1869
|
/**
|
|
1692
|
-
*
|
|
1870
|
+
* Whether the video should autoplay.
|
|
1693
1871
|
*/
|
|
1694
|
-
|
|
1872
|
+
isAutoPlayEnabled?: boolean;
|
|
1695
1873
|
/**
|
|
1696
|
-
*
|
|
1874
|
+
* If the video controls should be disabled.
|
|
1697
1875
|
*/
|
|
1698
|
-
|
|
1876
|
+
disableControls?: boolean;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
declare interface VisualAssetBaseProps {
|
|
1699
1880
|
/**
|
|
1700
1881
|
* The onClick event for the icon.
|
|
1701
1882
|
*/
|
|
@@ -1718,6 +1899,10 @@ export declare interface VisualAssetCardProps {
|
|
|
1718
1899
|
isHoverable?: boolean;
|
|
1719
1900
|
}
|
|
1720
1901
|
|
|
1902
|
+
export declare function VisualAssetCard({ onIconClick, onClick, icon, assetTitle, isHoverable, ...assetProps }: VisualAssetBaseProps & (AssetMediaRendererProps | CustomAssetDisplayProps)): React.JSX.Element;
|
|
1903
|
+
|
|
1904
|
+
export declare type VisualAssetCardProps = VisualAssetBaseProps & (AssetMediaRendererProps | CustomAssetDisplayProps);
|
|
1905
|
+
|
|
1721
1906
|
export declare enum VisualAssetType {
|
|
1722
1907
|
Image = "image",
|
|
1723
1908
|
Video = "video"
|