@carbon-labs/react-animated-header 0.2.0 → 0.4.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/es/__stories__/AnimatedHeader.stories.d.ts +438 -520
- package/es/__stories__/data/index.d.ts +19 -9
- package/es/components/AnimatedHeader/AnimatedHeader.d.ts +31 -12
- package/es/components/AnimatedHeader/AnimatedHeader.js +76 -65
- package/es/components/Tiles/AIPromptTile/AIPromptTile.d.ts +3 -3
- package/es/components/Tiles/AIPromptTile/AIPromptTile.js +10 -8
- package/es/components/Tiles/BaseTile/BaseTile.d.ts +1 -1
- package/es/components/Tiles/BaseTile/BaseTile.js +4 -4
- package/es/components/Tiles/GlassTile/GlassTile.d.ts +3 -3
- package/es/components/Tiles/GlassTile/GlassTile.js +6 -6
- package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -1
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-0.js +392 -403
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-1.js +679 -676
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +808 -768
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-11.js +959 -998
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-12.js +827 -826
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-13.js +890 -853
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-14.js +741 -776
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-15.js +935 -939
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-16.js +839 -760
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-17.js +705 -779
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-18.js +941 -1002
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-19.js +992 -123
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +676 -775
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +803 -719
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-4.js +834 -828
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-5.js +768 -781
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-6.js +836 -822
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-7.js +816 -850
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-8.js +943 -986
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +921 -915
- package/es/node_modules/@carbon/icons-react/es/index.js +20 -20
- package/lib/__stories__/AnimatedHeader.stories.d.ts +438 -520
- package/lib/__stories__/data/index.d.ts +19 -9
- package/lib/components/AnimatedHeader/AnimatedHeader.d.ts +31 -12
- package/lib/components/AnimatedHeader/AnimatedHeader.js +75 -64
- package/lib/components/Tiles/AIPromptTile/AIPromptTile.d.ts +3 -3
- package/lib/components/Tiles/AIPromptTile/AIPromptTile.js +11 -9
- package/lib/components/Tiles/BaseTile/BaseTile.d.ts +1 -1
- package/lib/components/Tiles/BaseTile/BaseTile.js +4 -4
- package/lib/components/Tiles/GlassTile/GlassTile.d.ts +3 -3
- package/lib/components/Tiles/GlassTile/GlassTile.js +6 -6
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +1 -1
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-0.js +394 -405
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-1.js +686 -683
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +833 -793
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-11.js +985 -1024
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-12.js +854 -853
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-13.js +920 -883
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-14.js +771 -806
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-15.js +966 -970
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-16.js +871 -792
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-17.js +738 -812
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-18.js +974 -1035
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-19.js +1025 -122
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +684 -783
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +811 -727
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-4.js +843 -837
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-5.js +778 -791
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-6.js +848 -834
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-7.js +832 -866
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-8.js +964 -1007
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +943 -937
- package/lib/node_modules/@carbon/icons-react/es/index.js +435 -401
- package/package.json +2 -2
- package/scss/AnimatedHeader/animated-header.scss +31 -17
- package/scss/Tiles/AIPromptTile/ai-prompt-tile.scss +12 -5
- package/scss/Tiles/GlassTile/glass-tile.scss +17 -3
- /package/es/node_modules/@carbon/{icon-helpers → icons-react/node_modules/@carbon/icon-helpers}/es/index.js +0 -0
- /package/lib/node_modules/@carbon/{icon-helpers → icons-react/node_modules/@carbon/icon-helpers}/es/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon-labs/react-animated-header",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@carbon-labs/utilities": "canary"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ea0564e6ceea7d3bdcc08472ac8825f05299083c"
|
|
36
36
|
}
|
|
@@ -14,22 +14,26 @@
|
|
|
14
14
|
@use '@carbon/styles/scss/type' as *;
|
|
15
15
|
@use '@carbon/motion';
|
|
16
16
|
|
|
17
|
-
$prefix: 'clabs
|
|
17
|
+
$prefix: 'clabs--animated-header' !default;
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
@include theme(themes.$g10);
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
[data-carbon-theme='white'] {
|
|
20
|
-
@include theme(themes.$white
|
|
24
|
+
@include theme(themes.$white);
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
[data-carbon-theme='g10'] {
|
|
24
|
-
@include theme(themes.$g10
|
|
28
|
+
@include theme(themes.$g10);
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
[data-carbon-theme='g90'] {
|
|
28
|
-
@include theme(themes.$g90
|
|
32
|
+
@include theme(themes.$g90);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
[data-carbon-theme='g100'] {
|
|
32
|
-
@include theme(themes.$g100
|
|
36
|
+
@include theme(themes.$g100);
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
body {
|
|
@@ -42,9 +46,9 @@ body {
|
|
|
42
46
|
.#{$prefix} {
|
|
43
47
|
position: relative;
|
|
44
48
|
display: flex;
|
|
45
|
-
overflow:
|
|
49
|
+
overflow: visible;
|
|
46
50
|
background: $background;
|
|
47
|
-
inline-size:
|
|
51
|
+
inline-size: 100%;
|
|
48
52
|
max-block-size: 90vh;
|
|
49
53
|
outline: 1px solid transparent;
|
|
50
54
|
padding-block: 0 $spacing-10;
|
|
@@ -58,6 +62,7 @@ body {
|
|
|
58
62
|
.#{$prefix}__static--container {
|
|
59
63
|
position: absolute;
|
|
60
64
|
display: flex;
|
|
65
|
+
overflow: hidden;
|
|
61
66
|
justify-content: flex-end;
|
|
62
67
|
|
|
63
68
|
block-size: 100%;
|
|
@@ -125,6 +130,7 @@ body {
|
|
|
125
130
|
padding-inline: var(--cds-grid-margin);
|
|
126
131
|
}
|
|
127
132
|
|
|
133
|
+
:root .#{$prefix}__container--gradient,
|
|
128
134
|
[data-carbon-theme='white'] .#{$prefix}__container--gradient,
|
|
129
135
|
[data-carbon-theme='g10'] .#{$prefix}__container--gradient {
|
|
130
136
|
background: linear-gradient(0deg, #e0e0e0bf 0%, transparent 100%);
|
|
@@ -224,6 +230,11 @@ body {
|
|
|
224
230
|
max-inline-size: fit-content;
|
|
225
231
|
}
|
|
226
232
|
|
|
233
|
+
.#{$prefix}__header-dropdown--container {
|
|
234
|
+
inline-size: auto;
|
|
235
|
+
max-inline-size: 30rem;
|
|
236
|
+
}
|
|
237
|
+
|
|
227
238
|
.#{$prefix}__header-dropdown {
|
|
228
239
|
border-width: 1px;
|
|
229
240
|
border-style: solid;
|
|
@@ -232,7 +243,10 @@ body {
|
|
|
232
243
|
animation-delay: 300ms;
|
|
233
244
|
animation-fill-mode: both;
|
|
234
245
|
background-color: transparent;
|
|
235
|
-
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
##{$prefix}__header-dropdown {
|
|
249
|
+
inline-size: 100%;
|
|
236
250
|
}
|
|
237
251
|
|
|
238
252
|
.#{$prefix}__content {
|
|
@@ -244,13 +258,13 @@ body {
|
|
|
244
258
|
transition: opacity 500ms linear;
|
|
245
259
|
}
|
|
246
260
|
|
|
247
|
-
.#{$prefix}
|
|
261
|
+
.#{$prefix}__workspace--container {
|
|
248
262
|
min-block-size: $spacing-08;
|
|
249
263
|
opacity: 1;
|
|
250
264
|
transition: opacity 500ms linear;
|
|
251
265
|
}
|
|
252
266
|
|
|
253
|
-
.#{$prefix}
|
|
267
|
+
.#{$prefix}__workspace {
|
|
254
268
|
position: relative;
|
|
255
269
|
z-index: 9999;
|
|
256
270
|
animation: 500ms motion.motion(standard, expressive) 0ms 1 slide-in;
|
|
@@ -287,6 +301,7 @@ body {
|
|
|
287
301
|
.#{$prefix}__lottie-animation--container {
|
|
288
302
|
position: absolute;
|
|
289
303
|
display: flex;
|
|
304
|
+
overflow: hidden;
|
|
290
305
|
justify-content: flex-end;
|
|
291
306
|
|
|
292
307
|
block-size: 100%;
|
|
@@ -336,6 +351,7 @@ body {
|
|
|
336
351
|
inset-inline-end: 0;
|
|
337
352
|
}
|
|
338
353
|
|
|
354
|
+
:root .#{$prefix}__button-collapse--gradient,
|
|
339
355
|
[data-carbon-theme='white'] .#{$prefix}__button-collapse--gradient,
|
|
340
356
|
[data-carbon-theme='g10'] .#{$prefix}__button-collapse--gradient {
|
|
341
357
|
background: radial-gradient(
|
|
@@ -364,6 +380,7 @@ body {
|
|
|
364
380
|
}
|
|
365
381
|
|
|
366
382
|
.#{$prefix}--collapsed {
|
|
383
|
+
overflow: hidden;
|
|
367
384
|
padding: 0;
|
|
368
385
|
max-block-size: $spacing-09;
|
|
369
386
|
outline: 1px solid $border-subtle-00;
|
|
@@ -387,10 +404,6 @@ body {
|
|
|
387
404
|
display: none;
|
|
388
405
|
}
|
|
389
406
|
|
|
390
|
-
.#{$prefix}__tile-dropdown {
|
|
391
|
-
margin-block-start: $spacing-06;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
407
|
.#{$prefix}__content {
|
|
395
408
|
display: none;
|
|
396
409
|
}
|
|
@@ -407,7 +420,7 @@ body {
|
|
|
407
420
|
}
|
|
408
421
|
|
|
409
422
|
.#{$prefix}__header-dropdown {
|
|
410
|
-
display:
|
|
423
|
+
display: block;
|
|
411
424
|
}
|
|
412
425
|
|
|
413
426
|
.#{$prefix}__static {
|
|
@@ -429,6 +442,7 @@ body {
|
|
|
429
442
|
|
|
430
443
|
.#{$prefix}__content {
|
|
431
444
|
display: flex;
|
|
445
|
+
margin-block-start: $spacing-06;
|
|
432
446
|
}
|
|
433
447
|
|
|
434
448
|
.#{$prefix}__button-collapse--container .cds--popover-container {
|
|
@@ -485,7 +499,7 @@ body {
|
|
|
485
499
|
background: linear-gradient(90deg, $background 25%, transparent 75%);
|
|
486
500
|
}
|
|
487
501
|
|
|
488
|
-
.#{$prefix}
|
|
502
|
+
.#{$prefix}__content {
|
|
489
503
|
margin-block-start: 0;
|
|
490
504
|
}
|
|
491
505
|
|
|
@@ -611,7 +625,7 @@ body {
|
|
|
611
625
|
.#{$prefix}__heading-name,
|
|
612
626
|
.#{$prefix}__description,
|
|
613
627
|
.#{$prefix}__button,
|
|
614
|
-
.#{$prefix}
|
|
628
|
+
.#{$prefix}__workspace,
|
|
615
629
|
.#{$prefix}__tile,
|
|
616
630
|
.#{$prefix}__icon-button {
|
|
617
631
|
animation: none;
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
@use '@carbon/styles/scss/type' as *;
|
|
13
13
|
@use '@carbon/motion';
|
|
14
14
|
|
|
15
|
-
$prefix: 'clabs
|
|
15
|
+
$prefix: 'clabs--animated-header__ai-prompt-tile' !default;
|
|
16
16
|
|
|
17
17
|
.#{$prefix} {
|
|
18
18
|
position: relative;
|
|
19
19
|
display: flex;
|
|
20
20
|
-webkit-backdrop-filter: blur(3px);
|
|
21
21
|
backdrop-filter: blur(3px);
|
|
22
|
-
min-block-size:
|
|
22
|
+
min-block-size: 192px;
|
|
23
23
|
text-decoration: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -35,14 +35,14 @@ $prefix: 'clabs-animated-header__ai-prompt-tile' !default;
|
|
|
35
35
|
flex: 1;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
justify-content: flex-start;
|
|
38
|
-
padding: $spacing-05
|
|
38
|
+
padding: $spacing-05;
|
|
39
39
|
background-color: transparent;
|
|
40
40
|
color: $text-primary;
|
|
41
|
-
gap: $spacing-05;
|
|
42
41
|
opacity: 1;
|
|
43
42
|
transition: opacity 500ms linear;
|
|
44
43
|
}
|
|
45
44
|
|
|
45
|
+
:root .#{$prefix}--body::before,
|
|
46
46
|
[data-carbon-theme='white'] .#{$prefix}--body::before,
|
|
47
47
|
[data-carbon-theme='g10'] .#{$prefix}--body::before {
|
|
48
48
|
background-color: $layer-01;
|
|
@@ -101,6 +101,7 @@ $prefix: 'clabs-animated-header__ai-prompt-tile' !default;
|
|
|
101
101
|
z-index: 3;
|
|
102
102
|
display: flex;
|
|
103
103
|
justify-content: space-between;
|
|
104
|
+
margin-block-end: $spacing-05;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
.#{$prefix}--title {
|
|
@@ -127,7 +128,12 @@ $prefix: 'clabs-animated-header__ai-prompt-tile' !default;
|
|
|
127
128
|
z-index: 3;
|
|
128
129
|
display: flex;
|
|
129
130
|
justify-content: flex-end;
|
|
130
|
-
|
|
131
|
+
margin-block: $spacing-03 calc(-1 * $spacing-05);
|
|
132
|
+
margin-inline-end: calc(-1 * $spacing-05);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.#{$prefix}--footer > a {
|
|
136
|
+
padding: 14px $spacing-05;
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
.#{$prefix}--subtitle {
|
|
@@ -144,6 +150,7 @@ $prefix: 'clabs-animated-header__ai-prompt-tile' !default;
|
|
|
144
150
|
border: 1px solid $border-subtle-01;
|
|
145
151
|
border-radius: 8px;
|
|
146
152
|
background-color: $layer-01;
|
|
153
|
+
margin-block-start: $spacing-06;
|
|
147
154
|
transition: border 200ms motion.motion(standard, expressive);
|
|
148
155
|
}
|
|
149
156
|
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
@use '@carbon/styles/scss/type' as *;
|
|
13
13
|
@use '@carbon/motion';
|
|
14
14
|
|
|
15
|
-
$prefix: 'clabs
|
|
15
|
+
$prefix: 'clabs--animated-header__glass-tile' !default;
|
|
16
16
|
|
|
17
17
|
.#{$prefix} {
|
|
18
18
|
position: relative;
|
|
19
19
|
display: flex;
|
|
20
20
|
-webkit-backdrop-filter: blur(3px);
|
|
21
21
|
backdrop-filter: blur(3px);
|
|
22
|
-
min-block-size:
|
|
22
|
+
min-block-size: 192px;
|
|
23
23
|
text-decoration: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -39,7 +39,6 @@ $prefix: 'clabs-animated-header__glass-tile' !default;
|
|
|
39
39
|
background-color: transparent;
|
|
40
40
|
color: $text-primary;
|
|
41
41
|
cursor: pointer;
|
|
42
|
-
gap: $spacing-05;
|
|
43
42
|
opacity: 1;
|
|
44
43
|
transition: opacity 500ms linear;
|
|
45
44
|
}
|
|
@@ -48,6 +47,7 @@ $prefix: 'clabs-animated-header__glass-tile' !default;
|
|
|
48
47
|
opacity: 0;
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
:root .#{$prefix}--body::before,
|
|
51
51
|
[data-carbon-theme='white'] .#{$prefix}--body::before,
|
|
52
52
|
[data-carbon-theme='g10'] .#{$prefix}--body::before {
|
|
53
53
|
background-color: $layer-01;
|
|
@@ -75,6 +75,8 @@ $prefix: 'clabs-animated-header__glass-tile' !default;
|
|
|
75
75
|
position: relative;
|
|
76
76
|
display: flex;
|
|
77
77
|
justify-content: space-between;
|
|
78
|
+
|
|
79
|
+
margin-block-end: $spacing-05;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
.#{$prefix}--title {
|
|
@@ -107,5 +109,17 @@ $prefix: 'clabs-animated-header__glass-tile' !default;
|
|
|
107
109
|
@include type-style('body-short-01');
|
|
108
110
|
|
|
109
111
|
position: relative;
|
|
112
|
+
overflow: hidden;
|
|
110
113
|
color: $text-secondary;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
|
|
117
|
+
@supports (-webkit-line-clamp: 1) {
|
|
118
|
+
display: -webkit-box;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
-webkit-box-orient: vertical;
|
|
121
|
+
-webkit-line-clamp: 1;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
white-space: initial;
|
|
124
|
+
}
|
|
111
125
|
}
|
|
File without changes
|
|
File without changes
|