@carbon-labs/react-animated-header 0.21.0 → 0.23.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 +0 -332
- package/es/components/AnimatedHeader/AnimatedHeader.js +19 -20
- package/es/components/TasksController/TasksController.js +7 -8
- package/es/components/Tiles/AIPromptTile/AIPromptTile.js +12 -13
- package/es/components/Tiles/GlassTile/GlassTile.js +14 -15
- package/es/components/Tiles/GlassTile/GlassTileBody.js +9 -10
- package/es/components/WorkspaceSelector/WorkspaceSelector.js +5 -6
- package/lib/__stories__/AnimatedHeader.stories.d.ts +0 -332
- package/lib/components/AnimatedHeader/AnimatedHeader.js +20 -21
- package/lib/components/TasksController/TasksController.js +7 -8
- package/lib/components/Tiles/AIPromptTile/AIPromptTile.js +12 -13
- package/lib/components/Tiles/GlassTile/GlassTile.js +14 -15
- package/lib/components/Tiles/GlassTile/GlassTileBody.js +9 -10
- package/lib/components/WorkspaceSelector/WorkspaceSelector.js +5 -6
- package/package.json +3 -3
- package/scss/AnimatedHeader/animated-header.scss +14 -56
- package/es/node_modules/@carbon/icons-react/es/Icon.js +0 -71
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +0 -3181
- package/es/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +0 -14
- package/es/node_modules/@carbon/icons-react/node_modules/@carbon/icon-helpers/es/index.js +0 -125
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +0 -75
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +0 -3307
- package/lib/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +0 -16
- package/lib/node_modules/@carbon/icons-react/node_modules/@carbon/icon-helpers/es/index.js +0 -128
|
@@ -276,11 +276,13 @@ body {
|
|
|
276
276
|
display: flex;
|
|
277
277
|
flex-direction: column;
|
|
278
278
|
margin: 0;
|
|
279
|
+
margin-block-start: $spacing-08;
|
|
279
280
|
opacity: 1;
|
|
280
281
|
transition: opacity 500ms linear;
|
|
281
282
|
}
|
|
282
283
|
|
|
283
284
|
.#{$prefix}__workspace--container {
|
|
285
|
+
margin-block-start: calc(-1 * $spacing-08);
|
|
284
286
|
min-block-size: $spacing-08;
|
|
285
287
|
opacity: 1;
|
|
286
288
|
transition: opacity 500ms linear;
|
|
@@ -482,34 +484,18 @@ body {
|
|
|
482
484
|
margin-block-start: $spacing-06;
|
|
483
485
|
}
|
|
484
486
|
|
|
485
|
-
.#{$prefix}
|
|
486
|
-
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(1))
|
|
490
|
-
> .#{$prefix}__tile {
|
|
491
|
-
inline-size: calc(50% - 16px);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(2))
|
|
495
|
-
> .#{$prefix}__tile {
|
|
496
|
-
inline-size: calc(50% - 16px);
|
|
487
|
+
.#{$prefix}__workspace--container {
|
|
488
|
+
margin-block-start: 0;
|
|
497
489
|
}
|
|
498
490
|
|
|
499
|
-
.#{$prefix}
|
|
500
|
-
|
|
501
|
-
inline-size: calc(50% - 16px);
|
|
491
|
+
.#{$prefix}__button-collapse--container .cds--popover-container {
|
|
492
|
+
display: flex;
|
|
502
493
|
}
|
|
503
494
|
|
|
504
|
-
.#{$prefix}__tiles-container
|
|
505
|
-
> .#{$prefix}__tile {
|
|
495
|
+
.#{$prefix}__tiles-container > .#{$prefix}__tile {
|
|
506
496
|
inline-size: calc(50% - 16px);
|
|
507
497
|
}
|
|
508
498
|
|
|
509
|
-
.#{$prefix}__tiles-container:has(> :nth-child(4)) > .#{$prefix}__tile {
|
|
510
|
-
inline-size: calc(33% - 16px);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
499
|
.#{$prefix}__tiles-container:has(> :first-child)
|
|
514
500
|
> ##{$prefix}__ai-prompt-tile {
|
|
515
501
|
inline-size: calc(100% - 16px);
|
|
@@ -535,30 +521,18 @@ body {
|
|
|
535
521
|
}
|
|
536
522
|
|
|
537
523
|
.#{$prefix}__content {
|
|
538
|
-
margin-block-start:
|
|
524
|
+
margin-block-start: $spacing-08;
|
|
539
525
|
}
|
|
540
526
|
|
|
541
|
-
.#{$prefix}
|
|
542
|
-
|
|
543
|
-
inline-size: calc(33% - 16px);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(2))
|
|
547
|
-
> .#{$prefix}__tile {
|
|
548
|
-
inline-size: calc(50% - 16px);
|
|
527
|
+
.#{$prefix}__workspace--container {
|
|
528
|
+
margin-block-start: calc(-1 * $spacing-08);
|
|
549
529
|
}
|
|
550
530
|
|
|
551
|
-
.#{$prefix}__tiles-container
|
|
552
|
-
> .#{$prefix}__tile {
|
|
553
|
-
inline-size: calc(50% - 16px);
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(4))
|
|
557
|
-
> .#{$prefix}__tile {
|
|
531
|
+
.#{$prefix}__tiles-container > .#{$prefix}__tile {
|
|
558
532
|
inline-size: calc(33% - 16px);
|
|
559
533
|
}
|
|
560
534
|
|
|
561
|
-
.#{$prefix}__tiles-container:has(> :nth-child(
|
|
535
|
+
.#{$prefix}__tiles-container:has(> :nth-child(5)) > .#{$prefix}__tile {
|
|
562
536
|
inline-size: calc(33% - 16px);
|
|
563
537
|
}
|
|
564
538
|
|
|
@@ -584,27 +558,11 @@ body {
|
|
|
584
558
|
background-size: 89% auto;
|
|
585
559
|
}
|
|
586
560
|
|
|
587
|
-
.#{$prefix}__tiles-container
|
|
588
|
-
> .#{$prefix}__tile {
|
|
589
|
-
inline-size: calc(25% - 16px);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(2))
|
|
593
|
-
> .#{$prefix}__tile {
|
|
594
|
-
inline-size: calc(50% - 16px);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(3))
|
|
598
|
-
> .#{$prefix}__tile {
|
|
599
|
-
inline-size: calc(33% - 16px);
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.#{$prefix}__tiles-container:has(> :last-child:nth-child(4))
|
|
603
|
-
> .#{$prefix}__tile {
|
|
561
|
+
.#{$prefix}__tiles-container > .#{$prefix}__tile {
|
|
604
562
|
inline-size: calc(25% - 16px);
|
|
605
563
|
}
|
|
606
564
|
|
|
607
|
-
.#{$prefix}__tiles-container:has(> :nth-child(
|
|
565
|
+
.#{$prefix}__tiles-container:has(> :nth-child(5)) > .#{$prefix}__tile {
|
|
608
566
|
inline-size: calc(25% - 16px);
|
|
609
567
|
}
|
|
610
568
|
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2024
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { getAttributes } from '../node_modules/@carbon/icon-helpers/es/index.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Copyright IBM Corp. 2019, 2023
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
18
|
-
const Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref, ref) {
|
|
19
|
-
let {
|
|
20
|
-
className,
|
|
21
|
-
children,
|
|
22
|
-
tabIndex,
|
|
23
|
-
xmlns = 'http://www.w3.org/2000/svg',
|
|
24
|
-
preserveAspectRatio = 'xMidYMid meet',
|
|
25
|
-
...rest
|
|
26
|
-
} = _ref;
|
|
27
|
-
const {
|
|
28
|
-
tabindex,
|
|
29
|
-
...attrs
|
|
30
|
-
} = getAttributes({
|
|
31
|
-
...rest,
|
|
32
|
-
tabindex: tabIndex
|
|
33
|
-
});
|
|
34
|
-
const props = attrs;
|
|
35
|
-
if (className) {
|
|
36
|
-
props.className = className;
|
|
37
|
-
}
|
|
38
|
-
if (tabindex !== undefined && tabindex !== null) {
|
|
39
|
-
if (typeof tabindex === 'number') {
|
|
40
|
-
props.tabIndex = tabindex;
|
|
41
|
-
} else {
|
|
42
|
-
props.tabIndex = Number(tabIndex);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (ref) {
|
|
46
|
-
props.ref = ref;
|
|
47
|
-
}
|
|
48
|
-
if (xmlns) {
|
|
49
|
-
props.xmlns = xmlns;
|
|
50
|
-
}
|
|
51
|
-
if (preserveAspectRatio) {
|
|
52
|
-
props.preserveAspectRatio = preserveAspectRatio;
|
|
53
|
-
}
|
|
54
|
-
return /*#__PURE__*/React.createElement('svg', props, children);
|
|
55
|
-
});
|
|
56
|
-
Icon.displayName = 'Icon';
|
|
57
|
-
Icon.propTypes = {
|
|
58
|
-
'aria-hidden': PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['true', 'false'])]),
|
|
59
|
-
'aria-label': PropTypes.string,
|
|
60
|
-
'aria-labelledby': PropTypes.string,
|
|
61
|
-
children: PropTypes.node,
|
|
62
|
-
className: PropTypes.string,
|
|
63
|
-
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
64
|
-
preserveAspectRatio: PropTypes.string,
|
|
65
|
-
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
66
|
-
viewBox: PropTypes.string,
|
|
67
|
-
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
68
|
-
xmlns: PropTypes.string
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export { Icon as default };
|