@iota/apps-ui-kit 0.5.1 → 0.7.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 +27 -0
- package/dist/index.d.ts +186 -20
- package/dist/index.es.js +3701 -6345
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +33 -165
- 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-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 +15 -3
- package/src/lib/components/atoms/button-segment/buttonSegment.classes.ts +15 -36
- package/src/lib/components/atoms/checkbox/Checkbox.tsx +20 -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 +3 -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 +3 -4
- 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 +4 -8
- package/src/lib/components/atoms/secondary-text/SecondaryText.tsx +3 -2
- package/src/lib/components/atoms/skeleton/Skeleton.tsx +1 -3
- 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 +115 -13
- 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/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 +9 -2
- package/src/lib/components/molecules/chip/chip.classes.ts +5 -5
- package/src/lib/components/molecules/chip/chip.enums.ts +5 -0
- 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 +3 -5
- package/src/lib/components/molecules/input/InputWrapper.tsx +1 -1
- package/src/lib/components/molecules/input/TextArea.tsx +2 -5
- package/src/lib/components/molecules/input/input.classes.ts +7 -8
- 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.tsx +5 -1
- package/src/lib/components/molecules/segmented-button/segmentedButton.classes.ts +2 -2
- package/src/lib/components/molecules/select/Select.tsx +6 -13
- 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 +4 -4
- 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 +4 -4
- package/src/lib/constants/colors.constants.ts +107 -8
- package/src/lib/styles/base.css +97 -0
- package/src/lib/styles/components.css +687 -0
- package/src/lib/styles/fonts.css +2 -0
- package/src/lib/styles/index.css +754 -136
- package/src/lib/styles/utilities.css +53 -0
- package/src/lib/tailwind/base.presets.ts +14 -9
- 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/index.ts +1 -0
- package/src/lib/tailwind/plugins.ts +4 -0
- package/src/lib/tailwind/responsive.presets.ts +1 -1
- package/src/storybook/blocks/Showcase.tsx +2 -2
- package/src/storybook/blocks/TypeSetItem.tsx +3 -3
- package/src/storybook/stories/atoms/Skeleton.stories.tsx +1 -1
- 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/VariableSpacingShowcase.tsx +2 -2
- package/src/storybook/stories/design-tokens/colors.stories.mdx +9 -0
- package/src/storybook/stories/molecules/Account.stories.tsx +3 -1
- 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/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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
export const IOTA_PRIMITIVES_COLOR_PALETTE = {
|
|
5
|
-
primary: {
|
|
5
|
+
'iota-primary': {
|
|
6
6
|
'0': '#000000',
|
|
7
7
|
'10': '#061244',
|
|
8
8
|
'20': '#182b8a',
|
|
@@ -15,7 +15,7 @@ export const IOTA_PRIMITIVES_COLOR_PALETTE = {
|
|
|
15
15
|
'90': '#d5e8ff',
|
|
16
16
|
'100': '#ffffff',
|
|
17
17
|
},
|
|
18
|
-
secondary: {
|
|
18
|
+
'iota-secondary': {
|
|
19
19
|
'0': '#000000',
|
|
20
20
|
'10': '#051631',
|
|
21
21
|
'20': '#17345f',
|
|
@@ -28,7 +28,7 @@ export const IOTA_PRIMITIVES_COLOR_PALETTE = {
|
|
|
28
28
|
'90': '#dde9f7',
|
|
29
29
|
'100': '#ffffff',
|
|
30
30
|
},
|
|
31
|
-
tertiary: {
|
|
31
|
+
'iota-tertiary': {
|
|
32
32
|
'0': '#000000',
|
|
33
33
|
'10': '#071f22',
|
|
34
34
|
'20': '#18393b',
|
|
@@ -41,7 +41,7 @@ export const IOTA_PRIMITIVES_COLOR_PALETTE = {
|
|
|
41
41
|
'90': '#c2f1f4',
|
|
42
42
|
'100': '#ffffff',
|
|
43
43
|
},
|
|
44
|
-
error: {
|
|
44
|
+
'iota-error': {
|
|
45
45
|
'0': '#000000',
|
|
46
46
|
'10': '#330009',
|
|
47
47
|
'20': '#610012',
|
|
@@ -54,7 +54,7 @@ export const IOTA_PRIMITIVES_COLOR_PALETTE = {
|
|
|
54
54
|
'90': '#ffd9e0',
|
|
55
55
|
'100': '#ffffff',
|
|
56
56
|
},
|
|
57
|
-
neutral: {
|
|
57
|
+
'iota-neutral': {
|
|
58
58
|
'0': '#000000',
|
|
59
59
|
'4': '#0a0f17',
|
|
60
60
|
'6': '#0f141c',
|
|
@@ -73,11 +73,110 @@ export const IOTA_PRIMITIVES_COLOR_PALETTE = {
|
|
|
73
73
|
'98': '#f8fafc',
|
|
74
74
|
'100': '#ffffff',
|
|
75
75
|
},
|
|
76
|
-
warning: {
|
|
77
|
-
'
|
|
78
|
-
'
|
|
76
|
+
'iota-warning': {
|
|
77
|
+
'0': '#000000',
|
|
78
|
+
'10': '#2D1E00',
|
|
79
|
+
'20': '#422C00',
|
|
80
|
+
'30': '#674500',
|
|
81
|
+
'40': '#8C5D00',
|
|
82
|
+
'50': '#A47518',
|
|
83
|
+
'60': '#BE8F32',
|
|
84
|
+
'70': '#D9AA4D',
|
|
85
|
+
'80': '#F4C568',
|
|
86
|
+
'90': '#FFE3AB',
|
|
87
|
+
'100': '#FFFFFF',
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
export const IOTA_NAMES_COLOR_PALETTE = {
|
|
91
|
+
'names-primary': {
|
|
92
|
+
'0': '#000000',
|
|
93
|
+
'10': '#061244',
|
|
94
|
+
'20': '#182b8a',
|
|
95
|
+
'30': '#3131ff',
|
|
96
|
+
'40': '#2563f5',
|
|
97
|
+
'50': '#3f80f0',
|
|
98
|
+
'60': '#5b9cfe',
|
|
99
|
+
'70': '#85b5fb',
|
|
100
|
+
'80': '#adceff',
|
|
101
|
+
'90': '#d5e8ff',
|
|
102
|
+
'100': '#ffffff',
|
|
103
|
+
},
|
|
104
|
+
'names-secondary': {
|
|
105
|
+
'0': '#000000',
|
|
106
|
+
'10': '#051631',
|
|
107
|
+
'20': '#17345f',
|
|
108
|
+
'30': '#2d4c7a',
|
|
109
|
+
'40': '#4b648a',
|
|
110
|
+
'50': '#637ca2',
|
|
111
|
+
'60': '#7e97bd',
|
|
112
|
+
'70': '#96b3d5',
|
|
113
|
+
'80': '#b6cde8',
|
|
114
|
+
'90': '#dde9f7',
|
|
115
|
+
'100': '#ffffff',
|
|
116
|
+
},
|
|
117
|
+
'names-tertiary': {
|
|
118
|
+
'0': '#000000',
|
|
119
|
+
'10': '#00231F',
|
|
120
|
+
'20': '#00453D',
|
|
121
|
+
'30': '#00685C',
|
|
122
|
+
'40': '#008C7C',
|
|
123
|
+
'50': '#00AF9B',
|
|
124
|
+
'60': '#00D7BE',
|
|
125
|
+
'70': '#17F3D9',
|
|
126
|
+
'80': '#54FFEB',
|
|
127
|
+
'90': '#A6FFF4',
|
|
128
|
+
'100': '#ffffff',
|
|
129
|
+
},
|
|
130
|
+
'names-error': {
|
|
131
|
+
'0': '#000000',
|
|
132
|
+
'10': '#3D001F',
|
|
133
|
+
'20': '#620432',
|
|
134
|
+
'30': '#A30251',
|
|
135
|
+
'40': '#C90E6A',
|
|
136
|
+
'50': '#DC2B82',
|
|
137
|
+
'60': '#E35A9E',
|
|
138
|
+
'70': '#EF84B9',
|
|
139
|
+
'80': '#FCADD4',
|
|
140
|
+
'90': '#FFD7EB',
|
|
141
|
+
'100': '#ffffff',
|
|
142
|
+
},
|
|
143
|
+
'names-neutral': {
|
|
144
|
+
'0': '#000000',
|
|
145
|
+
'4': '#0A0D23',
|
|
146
|
+
'6': '#0F1228',
|
|
147
|
+
'10': '#181B31',
|
|
148
|
+
'12': '#20233C',
|
|
149
|
+
'20': '#2B2E45',
|
|
150
|
+
'30': '#404359',
|
|
151
|
+
'40': '#585B71',
|
|
152
|
+
'50': '#71748B',
|
|
153
|
+
'60': '#8C8FA5',
|
|
154
|
+
'70': '#ACAFC5',
|
|
155
|
+
'80': '#CED1E7',
|
|
156
|
+
'90': '#DFE2F8',
|
|
157
|
+
'92': '#E5E8FE',
|
|
158
|
+
'96': '#F0F2FF',
|
|
159
|
+
'98': '#F8F9FF',
|
|
160
|
+
'100': '#ffffff',
|
|
161
|
+
},
|
|
162
|
+
'names-gradient': {
|
|
163
|
+
'stop-1': '#3131FF',
|
|
164
|
+
'stop-2': '#A139FF',
|
|
165
|
+
'stop-3': '#14F0D6',
|
|
166
|
+
'stop-4': '#20233C',
|
|
167
|
+
},
|
|
168
|
+
'names-warning': {
|
|
169
|
+
'0': '#000000',
|
|
170
|
+
'10': '#2D1E00',
|
|
171
|
+
'20': '#422C00',
|
|
172
|
+
'30': '#674500',
|
|
173
|
+
'40': '#8C5D00',
|
|
174
|
+
'50': '#A47518',
|
|
79
175
|
'60': '#BE8F32',
|
|
176
|
+
'70': '#D9AA4D',
|
|
177
|
+
'80': '#F4C568',
|
|
80
178
|
'90': '#FFE3AB',
|
|
179
|
+
'100': '#FFFFFF',
|
|
81
180
|
},
|
|
82
181
|
};
|
|
83
182
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
.text-display-lg,
|
|
3
|
+
.text-display-md,
|
|
4
|
+
.text-display-sm,
|
|
5
|
+
.text-headline-lg,
|
|
6
|
+
.text-headline-md,
|
|
7
|
+
.text-headline-sm {
|
|
8
|
+
font-family: var(--font-family-heading);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.text-title-lg,
|
|
12
|
+
.text-title-md,
|
|
13
|
+
.text-title-sm,
|
|
14
|
+
.text-body-lg,
|
|
15
|
+
.text-body-md,
|
|
16
|
+
.text-body-sm,
|
|
17
|
+
.text-body-ds-lg,
|
|
18
|
+
.text-body-ds-md,
|
|
19
|
+
.text-body-ds-sm,
|
|
20
|
+
.text-label-lg,
|
|
21
|
+
.text-label-md,
|
|
22
|
+
.text-label-sm {
|
|
23
|
+
font-family: var(--font-family-text);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.text-display-lg,
|
|
27
|
+
.text-display-md,
|
|
28
|
+
.text-display-sm,
|
|
29
|
+
.text-headline-lg,
|
|
30
|
+
.text-headline-md,
|
|
31
|
+
.text-headline-sm,
|
|
32
|
+
.text-body-ds-lg {
|
|
33
|
+
font-variant-alternates: 'ss02';
|
|
34
|
+
font-weight: var(--font-weight);
|
|
35
|
+
letter-spacing: var(--letter-spacing);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.text-label-md {
|
|
39
|
+
font-variant-alternates: 'ss01';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
input:-webkit-autofill,
|
|
43
|
+
input:-webkit-autofill:enabled,
|
|
44
|
+
input:-webkit-autofill:hover,
|
|
45
|
+
input:-webkit-autofill:focus {
|
|
46
|
+
@apply appearance-none !bg-transparent !bg-none;
|
|
47
|
+
@apply !text-iota-neutral-92 names:!text-names-neutral-10 dark:!text-iota-neutral-10;
|
|
48
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
49
|
+
-webkit-text-fill-color: theme('colors.iota-neutral.92') !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:root:not(.dark):not(.names) {
|
|
53
|
+
input:-webkit-autofill,
|
|
54
|
+
input:-webkit-autofill:enabled,
|
|
55
|
+
input:-webkit-autofill:hover,
|
|
56
|
+
input:-webkit-autofill:focus {
|
|
57
|
+
-webkit-text-fill-color: theme('colors.iota-neutral.10') !important;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@-moz-document url-prefix() {
|
|
63
|
+
* {
|
|
64
|
+
scrollbar-width: thin;
|
|
65
|
+
scrollbar-color: theme('colors.iota-neutral.30') transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:root:not(.dark) {
|
|
69
|
+
* {
|
|
70
|
+
scrollbar-color: theme('colors.iota-neutral.80') transparent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@supports selector(::-webkit-scrollbar) {
|
|
75
|
+
*::-webkit-scrollbar {
|
|
76
|
+
width: 0.875rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
*::-webkit-scrollbar-track {
|
|
80
|
+
border-radius: 0.75rem;
|
|
81
|
+
background-color: transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
*::-webkit-scrollbar-thumb {
|
|
85
|
+
box-shadow: inset 0 0 10px 10px #cad4e2;
|
|
86
|
+
border-radius: 0.75rem;
|
|
87
|
+
border: 4px solid transparent;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dark *::-webkit-scrollbar-thumb {
|
|
91
|
+
box-shadow: inset 0 0 10px 10px #3c4656;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.names *::-webkit-scrollbar-thumb {
|
|
95
|
+
box-shadow: inset 0 0 10px 10px #3c4656;
|
|
96
|
+
}
|
|
97
|
+
}
|