@carbon/ibm-products 2.94.0 → 2.95.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/css/carbon.css +92 -103
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +605 -186
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +43 -7
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +513 -83
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +308 -178
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.d.ts +3 -0
- package/es/components/APIKeyModal/APIKeyModal.d.ts.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +8 -0
- package/es/components/AddSelect/next/AddSelect.d.ts +7 -9
- package/es/components/AddSelect/next/AddSelect.d.ts.map +1 -1
- package/es/components/AddSelect/next/AddSelect.js +0 -2
- package/es/components/AddSelect/next/AddSelectBody.d.ts +4 -0
- package/es/components/AddSelect/next/AddSelectBody.d.ts.map +1 -1
- package/es/components/AddSelect/next/AddSelectBody.js +80 -4
- package/es/components/AddSelect/next/AddSelectColumn.d.ts +1 -1
- package/es/components/AddSelect/next/AddSelectRow.d.ts +6 -0
- package/es/components/AddSelect/next/AddSelectRow.d.ts.map +1 -1
- package/es/components/AddSelect/next/AddSelectRow.js +10 -3
- package/es/components/AddSelect/next/AddSelectSelectionSummaryItem.d.ts.map +1 -1
- package/es/components/AddSelect/next/AddSelectSelectionSummaryItem.js +5 -3
- package/es/components/AddSelect/next/index.d.ts +0 -1
- package/es/components/AddSelect/next/index.d.ts.map +1 -1
- package/es/components/BigNumber/BigNumber.d.ts +1 -1
- package/es/components/BigNumber/BigNumber.d.ts.map +1 -1
- package/es/components/BigNumber/BigNumber.js +2 -2
- package/es/components/Card/next/Card.d.ts +87 -11
- package/es/components/Card/next/Card.d.ts.map +1 -1
- package/es/components/Card/next/Card.js +62 -8
- package/es/components/Card/next/Card.types.d.ts +13 -0
- package/es/components/Card/next/Card.types.d.ts.map +1 -1
- package/es/components/Card/next/CardAction.d.ts +43 -0
- package/es/components/Card/next/CardAction.d.ts.map +1 -0
- package/es/components/Card/next/CardAction.js +51 -0
- package/es/components/Card/next/CardActions.d.ts +46 -0
- package/es/components/Card/next/CardActions.d.ts.map +1 -0
- package/es/components/Card/next/CardActions.js +107 -0
- package/es/components/Card/next/CardCaption.d.ts +46 -0
- package/es/components/Card/next/CardCaption.d.ts.map +1 -0
- package/es/components/Card/next/CardCaption.js +52 -0
- package/es/components/Card/next/CardContext.js +12 -2
- package/es/components/Card/next/CardFooter.d.ts.map +1 -1
- package/es/components/Card/next/CardHeader.d.ts.map +1 -1
- package/es/components/Card/next/CardHeader.js +25 -2
- package/es/components/Card/next/CardHeaderMedia.d.ts +33 -0
- package/es/components/Card/next/CardHeaderMedia.d.ts.map +1 -0
- package/es/components/Card/next/CardHeaderMedia.js +44 -0
- package/es/components/Card/next/CardLabel.d.ts +46 -0
- package/es/components/Card/next/CardLabel.d.ts.map +1 -0
- package/es/components/Card/next/CardLabel.js +52 -0
- package/es/components/Card/next/CardMedia.d.ts +39 -0
- package/es/components/Card/next/CardMedia.d.ts.map +1 -0
- package/es/components/Card/next/CardMedia.js +50 -0
- package/es/components/Card/next/CardTitle.d.ts +82 -0
- package/es/components/Card/next/CardTitle.d.ts.map +1 -0
- package/es/components/Card/next/CardTitle.js +77 -0
- package/es/components/Card/next/CardTitleMedia.d.ts +24 -0
- package/es/components/Card/next/CardTitleMedia.d.ts.map +1 -0
- package/es/components/Card/next/CardTitleMedia.js +48 -0
- package/es/components/Card/next/index.d.ts +2 -3
- package/es/components/Card/next/index.d.ts.map +1 -1
- package/es/components/Card/next/index.js +17 -5
- package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts +9 -3
- package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts.map +1 -1
- package/es/components/Coachmark/next/Coachmark/Coachmark.js +6 -13
- package/es/components/Coachmark/next/Coachmark/CoachmarkContent.d.ts +1 -1
- package/es/components/Coachmark/next/Coachmark/CoachmarkContent.d.ts.map +1 -1
- package/es/components/Coachmark/next/Coachmark/CoachmarkContent.js +16 -32
- package/es/components/Coachmark/next/Coachmark/context.d.ts +2 -2
- package/es/components/Coachmark/next/Coachmark/context.d.ts.map +1 -1
- package/es/components/Coachmark/next/Coachmark/context.js +1 -2
- package/es/components/ExportModal/ExportModal.d.ts +1 -0
- package/es/components/ExportModal/ExportModal.d.ts.map +1 -1
- package/es/components/ExportModal/ExportModal.js +6 -0
- package/es/components/ImportModal/ImportModal.d.ts +3 -0
- package/es/components/ImportModal/ImportModal.d.ts.map +1 -1
- package/es/components/ImportModal/ImportModal.js +8 -0
- package/es/components/PageHeader/PageHeader.d.ts +6 -0
- package/es/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/es/components/PageHeader/PageHeader.js +11 -0
- package/es/components/Tearsheet/next/StackContext.d.ts +2 -2
- package/es/components/Tearsheet/next/StackContext.d.ts.map +1 -1
- package/es/components/Tearsheet/next/Tearsheet.d.ts +30 -28
- package/es/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
- package/es/components/Tearsheet/next/Tearsheet.js +4 -2
- package/es/components/Tearsheet/next/TearsheetBody.d.ts +20 -14
- package/es/components/Tearsheet/next/TearsheetBody.d.ts.map +1 -1
- package/es/components/Tearsheet/next/TearsheetBody.js +4 -0
- package/es/components/Tearsheet/next/TearsheetHeader.d.ts +15 -14
- package/es/components/Tearsheet/next/TearsheetHeader.d.ts.map +1 -1
- package/es/components/Tearsheet/next/TearsheetHeader.js +14 -7
- package/es/components/Tearsheet/next/TearsheetHeaderActions.d.ts +10 -6
- package/es/components/Tearsheet/next/TearsheetHeaderActions.d.ts.map +1 -1
- package/es/components/Tearsheet/next/TearsheetHeaderActions.js +6 -3
- package/es/components/Tearsheet/next/TearsheetHeaderContent.d.ts.map +1 -1
- package/es/components/Tearsheet/next/TearsheetHeaderContent.js +7 -4
- package/es/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +7 -1
- package/es/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts.map +1 -1
- package/es/components/Tearsheet/next/context.d.ts +2 -1
- package/es/components/Tearsheet/next/context.d.ts.map +1 -1
- package/es/components/index.d.ts +1 -1
- package/es/components/index.d.ts.map +1 -1
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-11.js +283 -294
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +25 -41
- package/es/node_modules/@carbon/icons-react/es/{iconPropTypes-BElKp6Sn.js → iconPropTypes-CdMBxq3Y.js} +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +3 -0
- package/lib/components/APIKeyModal/APIKeyModal.d.ts.map +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +8 -0
- package/lib/components/AddSelect/next/AddSelect.d.ts +7 -9
- package/lib/components/AddSelect/next/AddSelect.d.ts.map +1 -1
- package/lib/components/AddSelect/next/AddSelect.js +0 -2
- package/lib/components/AddSelect/next/AddSelectBody.d.ts +4 -0
- package/lib/components/AddSelect/next/AddSelectBody.d.ts.map +1 -1
- package/lib/components/AddSelect/next/AddSelectBody.js +78 -2
- package/lib/components/AddSelect/next/AddSelectColumn.d.ts +1 -1
- package/lib/components/AddSelect/next/AddSelectRow.d.ts +6 -0
- package/lib/components/AddSelect/next/AddSelectRow.d.ts.map +1 -1
- package/lib/components/AddSelect/next/AddSelectRow.js +9 -2
- package/lib/components/AddSelect/next/AddSelectSelectionSummaryItem.d.ts.map +1 -1
- package/lib/components/AddSelect/next/AddSelectSelectionSummaryItem.js +5 -3
- package/lib/components/AddSelect/next/index.d.ts +0 -1
- package/lib/components/AddSelect/next/index.d.ts.map +1 -1
- package/lib/components/BigNumber/BigNumber.d.ts +1 -1
- package/lib/components/BigNumber/BigNumber.d.ts.map +1 -1
- package/lib/components/BigNumber/BigNumber.js +2 -2
- package/lib/components/Card/next/Card.d.ts +87 -11
- package/lib/components/Card/next/Card.d.ts.map +1 -1
- package/lib/components/Card/next/Card.js +61 -11
- package/lib/components/Card/next/Card.types.d.ts +13 -0
- package/lib/components/Card/next/Card.types.d.ts.map +1 -1
- package/lib/components/Card/next/CardAction.d.ts +43 -0
- package/lib/components/Card/next/CardAction.d.ts.map +1 -0
- package/lib/components/Card/next/CardAction.js +53 -0
- package/lib/components/Card/next/CardActions.d.ts +46 -0
- package/lib/components/Card/next/CardActions.d.ts.map +1 -0
- package/lib/components/Card/next/CardActions.js +109 -0
- package/lib/components/Card/next/CardCaption.d.ts +46 -0
- package/lib/components/Card/next/CardCaption.d.ts.map +1 -0
- package/lib/components/Card/next/CardCaption.js +54 -0
- package/lib/components/Card/next/CardContext.js +13 -1
- package/lib/components/Card/next/CardFooter.d.ts.map +1 -1
- package/lib/components/Card/next/CardHeader.d.ts.map +1 -1
- package/lib/components/Card/next/CardHeader.js +24 -1
- package/lib/components/Card/next/CardHeaderMedia.d.ts +33 -0
- package/lib/components/Card/next/CardHeaderMedia.d.ts.map +1 -0
- package/lib/components/Card/next/CardHeaderMedia.js +46 -0
- package/lib/components/Card/next/CardLabel.d.ts +46 -0
- package/lib/components/Card/next/CardLabel.d.ts.map +1 -0
- package/lib/components/Card/next/CardLabel.js +54 -0
- package/lib/components/Card/next/CardMedia.d.ts +39 -0
- package/lib/components/Card/next/CardMedia.d.ts.map +1 -0
- package/lib/components/Card/next/CardMedia.js +52 -0
- package/lib/components/Card/next/CardTitle.d.ts +82 -0
- package/lib/components/Card/next/CardTitle.d.ts.map +1 -0
- package/lib/components/Card/next/CardTitle.js +79 -0
- package/lib/components/Card/next/CardTitleMedia.d.ts +24 -0
- package/lib/components/Card/next/CardTitleMedia.d.ts.map +1 -0
- package/lib/components/Card/next/CardTitleMedia.js +50 -0
- package/lib/components/Card/next/index.d.ts +2 -3
- package/lib/components/Card/next/index.d.ts.map +1 -1
- package/lib/components/Card/next/index.js +16 -4
- package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts +9 -3
- package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts.map +1 -1
- package/lib/components/Coachmark/next/Coachmark/Coachmark.js +6 -13
- package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.d.ts +1 -1
- package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.d.ts.map +1 -1
- package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.js +16 -32
- package/lib/components/Coachmark/next/Coachmark/context.d.ts +2 -2
- package/lib/components/Coachmark/next/Coachmark/context.d.ts.map +1 -1
- package/lib/components/Coachmark/next/Coachmark/context.js +1 -2
- package/lib/components/ExportModal/ExportModal.d.ts +1 -0
- package/lib/components/ExportModal/ExportModal.d.ts.map +1 -1
- package/lib/components/ExportModal/ExportModal.js +6 -0
- package/lib/components/ImportModal/ImportModal.d.ts +3 -0
- package/lib/components/ImportModal/ImportModal.d.ts.map +1 -1
- package/lib/components/ImportModal/ImportModal.js +8 -0
- package/lib/components/PageHeader/PageHeader.d.ts +6 -0
- package/lib/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/lib/components/PageHeader/PageHeader.js +11 -0
- package/lib/components/Tearsheet/next/StackContext.d.ts +2 -2
- package/lib/components/Tearsheet/next/StackContext.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/Tearsheet.d.ts +30 -28
- package/lib/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/Tearsheet.js +4 -2
- package/lib/components/Tearsheet/next/TearsheetBody.d.ts +20 -14
- package/lib/components/Tearsheet/next/TearsheetBody.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/TearsheetBody.js +4 -0
- package/lib/components/Tearsheet/next/TearsheetHeader.d.ts +15 -14
- package/lib/components/Tearsheet/next/TearsheetHeader.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/TearsheetHeader.js +14 -7
- package/lib/components/Tearsheet/next/TearsheetHeaderActions.d.ts +10 -6
- package/lib/components/Tearsheet/next/TearsheetHeaderActions.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/TearsheetHeaderActions.js +4 -1
- package/lib/components/Tearsheet/next/TearsheetHeaderContent.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/TearsheetHeaderContent.js +7 -4
- package/lib/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +7 -1
- package/lib/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/context.d.ts +2 -1
- package/lib/components/Tearsheet/next/context.d.ts.map +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/node_modules/@carbon/icons-react/lib/{Icon-2zUDcllO.js → Icon.js} +8 -37
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-0.js +133 -131
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-1.js +140 -138
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-10.js +393 -403
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-11.js +417 -426
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-12.js +447 -441
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-13.js +449 -470
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-14.js +487 -456
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-15.js +550 -548
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-16.js +680 -733
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-17.js +810 -828
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-18.js +754 -670
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-19.js +622 -726
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-2.js +150 -148
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-20.js +752 -752
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-21.js +724 -55
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-3.js +176 -190
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-4.js +198 -180
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-5.js +217 -227
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-6.js +270 -335
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-7.js +405 -339
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-8.js +400 -577
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-9.js +578 -388
- package/lib/node_modules/@carbon/icons-react/lib/{iconPropTypes-DaTOKOBs.js → iconPropTypes-Dkz7B3UR.js} +6 -6
- package/lib/node_modules/@carbon/icons-react/lib/index.js +465 -423
- package/lib/node_modules/@carbon/icons-react/lib/rolldown-runtime-DyAcNxqs.js +51 -0
- package/package.json +18 -18
- package/scss/components/AboutModal/_about-modal.scss +12 -3
- package/scss/components/AddSelect/_add-select_next.scss +238 -99
- package/scss/components/BigNumber/_big-number.scss +4 -0
- package/scss/components/Card/_card-next.scss +394 -8
- package/scss/components/Tearsheet/_tearsheet_next.scss +38 -4
- package/telemetry.yml +24 -18
- package/es/components/AddSelect/next/AddSelectContent.d.ts +0 -26
- package/es/components/AddSelect/next/AddSelectContent.d.ts.map +0 -1
- package/es/components/AddSelect/next/AddSelectContent.js +0 -113
- package/lib/components/AddSelect/next/AddSelectContent.d.ts +0 -26
- package/lib/components/AddSelect/next/AddSelectContent.d.ts.map +0 -1
- package/lib/components/AddSelect/next/AddSelectContent.js +0 -115
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Standard imports.
|
|
9
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
|
9
10
|
@use '@carbon/styles/scss/theme' as *;
|
|
10
11
|
@use '@carbon/styles/scss/spacing' as *;
|
|
11
|
-
@use '@carbon/styles/scss/type'
|
|
12
|
+
@use '@carbon/styles/scss/type' as *;
|
|
12
13
|
@use '@carbon/styles/scss/motion' as *;
|
|
13
|
-
@use '../../global/styles/project-settings' as *;
|
|
14
14
|
|
|
15
|
-
$block-class__next: #{
|
|
15
|
+
$block-class__next: #{c4p-settings.$pkg-prefix}--add-select__next;
|
|
16
|
+
$carbon-prefix: #{c4p-settings.$carbon-prefix};
|
|
16
17
|
|
|
17
18
|
/// Composable AddSelect styles (next)
|
|
18
19
|
/// These styles support the composable AddSelect component structure
|
|
@@ -39,8 +40,10 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
.#{$block-class__next}__header {
|
|
42
|
-
padding: $spacing-05;
|
|
43
43
|
border-block-end: 1px solid $border-subtle-01;
|
|
44
|
+
padding-block-end: $spacing-03;
|
|
45
|
+
padding-block-start: $spacing-05;
|
|
46
|
+
padding-inline: $spacing-05;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
.#{$block-class__next}__search {
|
|
@@ -74,10 +77,10 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
.#{$block-class__next}__tags-label {
|
|
77
|
-
@include type
|
|
80
|
+
@include type-style('heading-compact-02');
|
|
78
81
|
|
|
79
82
|
margin: 0;
|
|
80
|
-
color: $text-
|
|
83
|
+
color: $text-primary;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.#{$block-class__next}__sub-header-actions {
|
|
@@ -88,8 +91,10 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
.#{$block-class__next}__content {
|
|
94
|
+
display: flex;
|
|
91
95
|
overflow: auto;
|
|
92
96
|
flex: 1;
|
|
97
|
+
flex-direction: column;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
// ──────────────────────────────────────────────────────────────
|
|
@@ -97,8 +102,10 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
97
102
|
// ──────────────────────────────────────────────────────────────
|
|
98
103
|
.#{$block-class__next}-list {
|
|
99
104
|
display: flex;
|
|
105
|
+
flex: 1;
|
|
100
106
|
flex-direction: column;
|
|
101
107
|
overflow-y: auto;
|
|
108
|
+
|
|
102
109
|
@supports (overflow-block: auto) {
|
|
103
110
|
overflow-block: auto;
|
|
104
111
|
}
|
|
@@ -115,8 +122,12 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
115
122
|
// Horizontal layout for hierarchy view (columns side-by-side)
|
|
116
123
|
&--horizontal {
|
|
117
124
|
flex-direction: row;
|
|
125
|
+
align-items: stretch;
|
|
126
|
+
block-size: 100%;
|
|
127
|
+
|
|
118
128
|
.#{$block-class__next}-column {
|
|
119
|
-
padding: $spacing-05;
|
|
129
|
+
padding-block: $spacing-05;
|
|
130
|
+
padding-inline: $spacing-05;
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
133
|
}
|
|
@@ -141,22 +152,51 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
141
152
|
|
|
142
153
|
&--selected {
|
|
143
154
|
background-color: $layer-selected-01;
|
|
155
|
+
|
|
156
|
+
.#{$block-class__next}-row__cell-wrapper {
|
|
157
|
+
border-block-end-color: $border-subtle-selected-01;
|
|
158
|
+
}
|
|
144
159
|
}
|
|
145
160
|
|
|
146
161
|
&--disabled {
|
|
147
162
|
cursor: not-allowed;
|
|
148
|
-
|
|
163
|
+
|
|
164
|
+
.#{$block-class__next}-row__title,
|
|
165
|
+
.#{$block-class__next}-row__subtitle {
|
|
166
|
+
color: $text-disabled;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.#{$block-class__next}-row__icon svg,
|
|
170
|
+
.#{$block-class__next}-row__view-item-panel svg,
|
|
171
|
+
.#{$block-class__next}-row__nav-indicator svg {
|
|
172
|
+
fill: $icon-disabled;
|
|
173
|
+
}
|
|
149
174
|
}
|
|
150
175
|
|
|
151
176
|
&:hover:not(&--disabled) {
|
|
152
177
|
background: $layer-hover-01;
|
|
153
178
|
|
|
154
179
|
.#{$block-class__next}-row__title {
|
|
155
|
-
color: $
|
|
180
|
+
color: $link-primary;
|
|
156
181
|
}
|
|
157
182
|
|
|
183
|
+
.#{$block-class__next}-row__view-item-panel svg,
|
|
158
184
|
.#{$block-class__next}-row__nav-indicator svg {
|
|
159
|
-
|
|
185
|
+
fill: $icon-disabled;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Must come after &:hover to win the specificity tie
|
|
190
|
+
&--selected:hover:not(&--disabled) {
|
|
191
|
+
background: $layer-selected-hover-01;
|
|
192
|
+
|
|
193
|
+
.#{$block-class__next}-row__title {
|
|
194
|
+
color: $text-primary;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.#{$block-class__next}-row__view-item-panel svg,
|
|
198
|
+
.#{$block-class__next}-row__nav-indicator svg {
|
|
199
|
+
fill: $icon-primary;
|
|
160
200
|
}
|
|
161
201
|
}
|
|
162
202
|
|
|
@@ -164,31 +204,35 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
164
204
|
display: flex;
|
|
165
205
|
flex: 1;
|
|
166
206
|
flex-direction: column;
|
|
167
|
-
justify-content: center;
|
|
168
207
|
}
|
|
169
208
|
|
|
170
209
|
&__cell-wrapper {
|
|
171
210
|
display: flex;
|
|
172
211
|
align-items: center;
|
|
173
212
|
justify-content: space-between;
|
|
174
|
-
|
|
175
|
-
block-size: $spacing-09;
|
|
176
|
-
|
|
213
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
214
|
+
min-block-size: $spacing-09;
|
|
215
|
+
padding-block: $spacing-03;
|
|
216
|
+
padding-inline: $spacing-05;
|
|
177
217
|
}
|
|
178
218
|
|
|
179
219
|
&__content {
|
|
180
220
|
display: flex;
|
|
181
221
|
flex: 1;
|
|
182
222
|
align-items: center;
|
|
223
|
+
align-self: center;
|
|
183
224
|
}
|
|
184
225
|
|
|
185
226
|
&__checkbox {
|
|
186
227
|
flex: none;
|
|
228
|
+
align-self: center;
|
|
187
229
|
margin-inline-end: $spacing-05;
|
|
188
230
|
}
|
|
189
231
|
|
|
190
232
|
&__radio {
|
|
191
|
-
|
|
233
|
+
align-self: center;
|
|
234
|
+
|
|
235
|
+
.#{$carbon-prefix}--radio-button__appearance {
|
|
192
236
|
margin-inline-end: 0;
|
|
193
237
|
}
|
|
194
238
|
}
|
|
@@ -206,14 +250,14 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
206
250
|
}
|
|
207
251
|
|
|
208
252
|
&__title {
|
|
209
|
-
@include type
|
|
253
|
+
@include type-style('body-compact-01');
|
|
210
254
|
|
|
211
255
|
display: block;
|
|
212
256
|
color: $text-primary;
|
|
213
257
|
}
|
|
214
258
|
|
|
215
259
|
&__subtitle {
|
|
216
|
-
@include type
|
|
260
|
+
@include type-style('helper-text-01');
|
|
217
261
|
|
|
218
262
|
display: block;
|
|
219
263
|
color: $text-secondary;
|
|
@@ -239,14 +283,14 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
239
283
|
display: flex;
|
|
240
284
|
align-items: center;
|
|
241
285
|
justify-content: center;
|
|
242
|
-
padding: $spacing-02;
|
|
243
|
-
border-radius: $spacing-02;
|
|
244
286
|
cursor: pointer;
|
|
245
287
|
margin-inline-start: $spacing-03;
|
|
288
|
+
padding-block: $spacing-02;
|
|
289
|
+
padding-inline: $spacing-02;
|
|
246
290
|
transition: none;
|
|
247
291
|
|
|
248
292
|
&:hover {
|
|
249
|
-
background-color: $
|
|
293
|
+
background-color: $background-hover;
|
|
250
294
|
}
|
|
251
295
|
|
|
252
296
|
&:focus {
|
|
@@ -264,14 +308,14 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
264
308
|
display: flex;
|
|
265
309
|
align-items: center;
|
|
266
310
|
justify-content: center;
|
|
267
|
-
padding: $spacing-02;
|
|
268
|
-
border-radius: $spacing-02;
|
|
269
311
|
cursor: pointer;
|
|
270
312
|
margin-inline-start: $spacing-03;
|
|
313
|
+
padding-block: $spacing-02;
|
|
314
|
+
padding-inline: $spacing-02;
|
|
271
315
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
272
316
|
|
|
273
317
|
&:hover {
|
|
274
|
-
background-color: $
|
|
318
|
+
background-color: $background-hover;
|
|
275
319
|
}
|
|
276
320
|
|
|
277
321
|
&:focus {
|
|
@@ -283,6 +327,39 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
283
327
|
fill: $icon-primary;
|
|
284
328
|
}
|
|
285
329
|
}
|
|
330
|
+
|
|
331
|
+
&--skeleton {
|
|
332
|
+
cursor: default;
|
|
333
|
+
pointer-events: none;
|
|
334
|
+
|
|
335
|
+
&:hover {
|
|
336
|
+
background: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.#{$block-class__next}-row__skeleton-control {
|
|
340
|
+
flex: none;
|
|
341
|
+
border-radius: $spacing-01;
|
|
342
|
+
background-color: $skeleton-element;
|
|
343
|
+
block-size: $spacing-05;
|
|
344
|
+
inline-size: $spacing-05;
|
|
345
|
+
margin-inline-end: $spacing-05;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.#{$block-class__next}-row__icon .#{$carbon-prefix}--icon--skeleton {
|
|
349
|
+
border-radius: 50%;
|
|
350
|
+
block-size: $spacing-07;
|
|
351
|
+
inline-size: $spacing-07;
|
|
352
|
+
|
|
353
|
+
&::before {
|
|
354
|
+
border-radius: 50%;
|
|
355
|
+
animation: none;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.#{$block-class__next}-row__skeleton-title {
|
|
360
|
+
margin-block-end: 0;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
286
363
|
}
|
|
287
364
|
|
|
288
365
|
// ──────────────────────────────────────────────────────────────
|
|
@@ -294,16 +371,22 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
294
371
|
block-size: 100%;
|
|
295
372
|
border-inline-end: 1px solid $border-subtle-01;
|
|
296
373
|
min-inline-size: 300px;
|
|
374
|
+
padding-block: $spacing-05;
|
|
375
|
+
padding-inline: $spacing-05;
|
|
297
376
|
|
|
377
|
+
// default: no border on last column
|
|
298
378
|
&:last-child {
|
|
299
379
|
border-inline-end: none;
|
|
300
380
|
}
|
|
301
381
|
|
|
382
|
+
.#{$block-class__next}-list-body--horizontal & {
|
|
383
|
+
&:last-child {
|
|
384
|
+
border-inline-end: 1px solid $border-subtle-01; // override: keep border inside horizontal layout
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
302
388
|
// Search section with actions
|
|
303
389
|
&__search {
|
|
304
|
-
padding: $spacing-05;
|
|
305
|
-
padding-block-end: 0;
|
|
306
|
-
|
|
307
390
|
&--with-actions {
|
|
308
391
|
display: flex;
|
|
309
392
|
align-items: flex-end;
|
|
@@ -321,8 +404,9 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
321
404
|
|
|
322
405
|
// Search bar section (legacy)
|
|
323
406
|
&__search-bar {
|
|
324
|
-
padding: $spacing-05;
|
|
325
407
|
padding-block-end: 0;
|
|
408
|
+
padding-block-start: $spacing-05;
|
|
409
|
+
padding-inline: $spacing-05;
|
|
326
410
|
}
|
|
327
411
|
|
|
328
412
|
&__search-wrapper {
|
|
@@ -348,9 +432,10 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
348
432
|
}
|
|
349
433
|
|
|
350
434
|
&__filter-popover {
|
|
351
|
-
padding: $spacing-05;
|
|
435
|
+
padding-block: $spacing-05;
|
|
436
|
+
padding-inline: $spacing-05;
|
|
352
437
|
|
|
353
|
-
|
|
438
|
+
.#{$carbon-prefix}--checkbox-wrapper {
|
|
354
439
|
margin-block-end: $spacing-03;
|
|
355
440
|
|
|
356
441
|
&:last-child {
|
|
@@ -363,18 +448,19 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
363
448
|
&__header {
|
|
364
449
|
display: flex;
|
|
365
450
|
align-items: center;
|
|
366
|
-
padding: $spacing-05;
|
|
367
451
|
border-block-end: 1px solid $border-subtle-01;
|
|
452
|
+
padding-block: $spacing-05;
|
|
453
|
+
padding-inline: $spacing-05;
|
|
368
454
|
}
|
|
369
455
|
|
|
370
456
|
&__select-all {
|
|
371
|
-
|
|
457
|
+
.#{$carbon-prefix}--checkbox-label {
|
|
372
458
|
display: flex;
|
|
373
459
|
align-items: center;
|
|
374
460
|
gap: 0;
|
|
375
461
|
}
|
|
376
462
|
|
|
377
|
-
|
|
463
|
+
.#{$carbon-prefix}--checkbox-label-text {
|
|
378
464
|
display: flex;
|
|
379
465
|
align-items: center;
|
|
380
466
|
gap: $spacing-03;
|
|
@@ -389,10 +475,7 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
389
475
|
}
|
|
390
476
|
|
|
391
477
|
&__title {
|
|
392
|
-
@include type
|
|
393
|
-
|
|
394
|
-
color: $text-secondary;
|
|
395
|
-
font-weight: 600;
|
|
478
|
+
@include type-style('heading-compact-01');
|
|
396
479
|
}
|
|
397
480
|
|
|
398
481
|
// Rows container
|
|
@@ -426,13 +509,14 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
426
509
|
}
|
|
427
510
|
|
|
428
511
|
&-button {
|
|
429
|
-
@include type
|
|
512
|
+
@include type-style('body-compact-01');
|
|
430
513
|
|
|
431
|
-
padding: 0;
|
|
432
514
|
border: none;
|
|
433
515
|
background: none;
|
|
434
516
|
color: $link-primary;
|
|
435
517
|
cursor: pointer;
|
|
518
|
+
padding-block: 0;
|
|
519
|
+
padding-inline: 0;
|
|
436
520
|
text-decoration: none;
|
|
437
521
|
|
|
438
522
|
&:hover {
|
|
@@ -457,7 +541,7 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
457
541
|
}
|
|
458
542
|
|
|
459
543
|
&-current {
|
|
460
|
-
@include type
|
|
544
|
+
@include type-style('body-compact-01');
|
|
461
545
|
|
|
462
546
|
color: $text-primary;
|
|
463
547
|
}
|
|
@@ -473,12 +557,14 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
473
557
|
&-header {
|
|
474
558
|
display: flex;
|
|
475
559
|
align-items: center;
|
|
476
|
-
padding: $spacing-07 $spacing-05 $spacing-03 $spacing-05;
|
|
477
560
|
border-block-end: 1px solid $layer-accent-01;
|
|
561
|
+
padding-block-end: $spacing-03;
|
|
562
|
+
padding-block-start: $spacing-06;
|
|
563
|
+
padding-inline: $spacing-05;
|
|
478
564
|
}
|
|
479
565
|
|
|
480
566
|
&-title {
|
|
481
|
-
@include type
|
|
567
|
+
@include type-style('heading-compact-02');
|
|
482
568
|
|
|
483
569
|
margin-inline-end: $spacing-03;
|
|
484
570
|
}
|
|
@@ -490,25 +576,20 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
490
576
|
margin-inline-start: auto;
|
|
491
577
|
}
|
|
492
578
|
|
|
493
|
-
&-edit-button {
|
|
494
|
-
// Edit icon button styles
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
&-body {
|
|
498
|
-
// padding: 0 $spacing-05;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
579
|
&-item-default {
|
|
502
|
-
|
|
503
|
-
|
|
580
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
581
|
+
padding-block: $spacing-04;
|
|
582
|
+
padding-inline: $spacing-05;
|
|
504
583
|
}
|
|
505
584
|
|
|
506
585
|
&-item-default-title {
|
|
586
|
+
@include type-style('body-compact-01');
|
|
587
|
+
|
|
507
588
|
color: $text-primary;
|
|
508
589
|
}
|
|
509
590
|
|
|
510
591
|
&-item-default-subtitle {
|
|
511
|
-
@include type
|
|
592
|
+
@include type-style('body-01');
|
|
512
593
|
|
|
513
594
|
color: $text-secondary;
|
|
514
595
|
}
|
|
@@ -516,30 +597,59 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
516
597
|
|
|
517
598
|
// ──────────────────────────────────────────────────────────────
|
|
518
599
|
// AddSelectSelectionSummaryItem - Individual selected item
|
|
600
|
+
// Figma reference: node 10473-340689
|
|
601
|
+
// https://github.com/carbon-design-system/ibm-products/issues/9607#issuecomment-4969016515
|
|
519
602
|
// ──────────────────────────────────────────────────────────────
|
|
520
603
|
.#{$block-class__next}__selection-summary-item {
|
|
604
|
+
// Figma: var(--layer (contextual)) background on every row (#1)
|
|
605
|
+
// Figma: every row has a 1px bottom border (border-subtle-01) (#2)
|
|
521
606
|
position: relative;
|
|
607
|
+
background-color: $layer-01;
|
|
608
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
522
609
|
|
|
523
|
-
//
|
|
524
|
-
|
|
525
|
-
|
|
610
|
+
// Figma: var(--layer/layer-hover-01) on hover (#3)
|
|
611
|
+
&:hover {
|
|
612
|
+
background-color: $layer-hover-01;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// Carbon Accordion adds border-block-start on every .cds--accordion__item
|
|
616
|
+
// and border-block-end on :last-child — causing a double bottom border and a
|
|
617
|
+
// stray top border. Our wrapper owns the sole border per Figma spec. (#13)
|
|
618
|
+
// Border ownership: bottom border → __selection-summary-item; Carbon borders → zeroed.
|
|
619
|
+
&--accordion .#{$carbon-prefix}--accordion__item,
|
|
620
|
+
&--accordion .#{$carbon-prefix}--accordion__item:last-child {
|
|
621
|
+
border-block-end: none;
|
|
622
|
+
border-block-start: none;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// Carbon's default heading uses min-block-size: 40px with no block padding.
|
|
626
|
+
// Figma: py-[10px] px-[16px] on the heading row, so override to $spacing-04 (10px)
|
|
627
|
+
// block padding and unset the 40px minimum. (#4)
|
|
628
|
+
&--accordion .#{$carbon-prefix}--accordion__heading {
|
|
629
|
+
min-block-size: unset;
|
|
630
|
+
padding-block: $spacing-04; // 10px top/bottom — Figma: py-[10px]
|
|
631
|
+
padding-inline-end: $spacing-05; // 16px — Figma: px-[16px]
|
|
526
632
|
}
|
|
527
633
|
|
|
528
634
|
&--default {
|
|
529
|
-
//
|
|
635
|
+
// Non-accordion mode: Figma py-[10px] px-[16px] on the title row (#4)
|
|
530
636
|
.#{$block-class__next}__selection-summary-item-title-wrapper {
|
|
531
637
|
display: flex;
|
|
532
638
|
align-items: center;
|
|
533
639
|
justify-content: space-between;
|
|
534
|
-
padding: $spacing-
|
|
640
|
+
padding-block: $spacing-04; // 10px top/bottom, matches Figma py-[10px]
|
|
641
|
+
padding-inline: $spacing-05; // 16px inline, matches Figma px-[16px]
|
|
535
642
|
}
|
|
643
|
+
|
|
644
|
+
// Figma: expanded content area closes with 10px bottom gap (#5)
|
|
536
645
|
.#{$block-class__next}__selection-summary-item-content {
|
|
646
|
+
padding-block-end: $spacing-04;
|
|
537
647
|
padding-inline: $spacing-05;
|
|
538
648
|
}
|
|
539
|
-
}
|
|
540
649
|
|
|
541
|
-
|
|
542
|
-
|
|
650
|
+
.#{$block-class__next}__selection-summary-item-title {
|
|
651
|
+
@include type-style('heading-compact-01');
|
|
652
|
+
}
|
|
543
653
|
}
|
|
544
654
|
|
|
545
655
|
&-title-wrapper {
|
|
@@ -552,12 +662,18 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
552
662
|
flex: 1;
|
|
553
663
|
}
|
|
554
664
|
|
|
665
|
+
// Figma: 14px / 18px line-height / 0.16px letter-spacing = body-compact-01 (#6)
|
|
666
|
+
// Previously had color only with no type-style applied.
|
|
555
667
|
&-title {
|
|
668
|
+
@include type-style('body-compact-01');
|
|
669
|
+
|
|
556
670
|
color: $text-primary;
|
|
557
671
|
}
|
|
558
672
|
|
|
673
|
+
// Figma: 14px / 20px line-height / 0.16px letter-spacing = body-01 (#7)
|
|
674
|
+
// Previously used label-01 (12px) which was incorrect.
|
|
559
675
|
&-subtitle {
|
|
560
|
-
@include type
|
|
676
|
+
@include type-style('body-01');
|
|
561
677
|
|
|
562
678
|
color: $text-secondary;
|
|
563
679
|
}
|
|
@@ -567,38 +683,42 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
567
683
|
}
|
|
568
684
|
|
|
569
685
|
&-header {
|
|
570
|
-
@include type
|
|
686
|
+
@include type-style('label-01');
|
|
571
687
|
|
|
572
688
|
color: $text-secondary;
|
|
573
689
|
margin-block-end: $spacing-03;
|
|
574
690
|
}
|
|
575
691
|
|
|
576
692
|
&-body {
|
|
577
|
-
@include type
|
|
693
|
+
@include type-style('body-01');
|
|
578
694
|
|
|
579
695
|
margin-block-end: $spacing-05;
|
|
580
696
|
}
|
|
581
697
|
|
|
582
|
-
//
|
|
698
|
+
// Figma: remove button (32px ghost IconButton) is flush to the right edge
|
|
699
|
+
// inside the 16px inline padding. $spacing-03 (8px) gap gives the correct
|
|
700
|
+
// right-edge alignment. Previously used $spacing-05 (16px). (#8)
|
|
583
701
|
&-remove-button-container {
|
|
584
702
|
display: inline-flex;
|
|
585
703
|
align-items: center;
|
|
586
704
|
justify-content: center;
|
|
587
|
-
padding-inline-start: $spacing-
|
|
705
|
+
padding-inline-start: $spacing-03; // 8px gap before the 32px button
|
|
588
706
|
|
|
589
|
-
// In accordion mode
|
|
707
|
+
// In accordion mode the remove button is absolutely positioned within the
|
|
708
|
+
// heading (position:relative). It sits inside .cds--accordion__title which
|
|
709
|
+
// is full-width, so inset-inline-end aligns it to the heading's right
|
|
710
|
+
// padding edge. Previously lacked vertical centering. (#9)
|
|
590
711
|
.#{$block-class__next}__selection-summary-item--accordion & {
|
|
591
712
|
position: absolute;
|
|
592
|
-
inset-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
.#{$block-class__next}__selection-summary-item--simple & {
|
|
597
|
-
position: relative;
|
|
598
|
-
margin-inline-start: auto;
|
|
713
|
+
inset-block-start: 50%;
|
|
714
|
+
inset-inline-end: $spacing-05; // 16px from inline-end — matches heading padding
|
|
715
|
+
padding-inline-start: 0;
|
|
716
|
+
transform: translateY(-50%);
|
|
599
717
|
}
|
|
600
718
|
}
|
|
601
719
|
|
|
720
|
+
// Figma: remove button visible on hover only (#3, #8)
|
|
721
|
+
// Opacity transition keeps the reveal smooth (prefers-reduced-motion respected).
|
|
602
722
|
&-remove-button {
|
|
603
723
|
opacity: 0;
|
|
604
724
|
transition: opacity $duration-fast-01 motion(standard, productive);
|
|
@@ -608,39 +728,59 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
608
728
|
}
|
|
609
729
|
}
|
|
610
730
|
|
|
611
|
-
//
|
|
731
|
+
// Reveal on hover or keyboard focus within the item
|
|
612
732
|
&:hover &-remove-button,
|
|
613
733
|
&:focus-within &-remove-button {
|
|
614
734
|
opacity: 1;
|
|
615
735
|
}
|
|
616
736
|
|
|
737
|
+
// No extra top margin — padding is owned by the --default title-wrapper above (#11)
|
|
617
738
|
&-content {
|
|
618
|
-
margin-block-start:
|
|
739
|
+
margin-block-start: 0;
|
|
619
740
|
}
|
|
620
741
|
}
|
|
621
742
|
|
|
622
|
-
// Accordion overrides for
|
|
743
|
+
// Accordion overrides for SelectionSummaryItem accordion variant
|
|
744
|
+
// Figma reference: node 10473-340689 (collapsed) / 10473-340699 (expanded)
|
|
623
745
|
.#{$block-class__next}__selection-summary {
|
|
624
|
-
|
|
625
|
-
|
|
746
|
+
// Figma collapsed state: chevron-down (∨); expanded: chevron-up (∧)
|
|
747
|
+
// Carbon renders ChevronRight (→). Rotate to match Figma orientations.
|
|
748
|
+
// Previously: collapsed = rotate(0deg) [pointing right], expanded = rotate(90deg)
|
|
749
|
+
// [pointing down] — both wrong against the Figma spec.
|
|
750
|
+
.#{$carbon-prefix}--accordion__arrow {
|
|
751
|
+
transform: rotate(90deg); // collapsed: points down (∨)
|
|
626
752
|
}
|
|
627
753
|
|
|
628
|
-
|
|
629
|
-
|
|
754
|
+
.#{$carbon-prefix}--accordion__item--active
|
|
755
|
+
.#{$carbon-prefix}--accordion__arrow {
|
|
756
|
+
transform: rotate(-90deg); // expanded: points up (∧)
|
|
630
757
|
}
|
|
631
758
|
|
|
632
|
-
|
|
633
|
-
|
|
759
|
+
// Figma: px-[16px] — arrow sits 16px from the inline-start edge of the row
|
|
760
|
+
.#{$carbon-prefix}--accordion--start .#{$carbon-prefix}--accordion__arrow {
|
|
761
|
+
margin-block: 0;
|
|
762
|
+
margin-inline-end: 0;
|
|
763
|
+
margin-inline-start: $spacing-05; // 16px from inline-start
|
|
634
764
|
}
|
|
635
765
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
766
|
+
// Figma: gap-[16px] between the arrow and the title content group.
|
|
767
|
+
// $spacing-03 (8px) left gap + 8px arrow width = 16px total visual gap.
|
|
768
|
+
// padding-inline-end reserves 32px for the absolutely-positioned remove button.
|
|
769
|
+
.#{$carbon-prefix}--accordion--start .#{$carbon-prefix}--accordion__title {
|
|
770
|
+
margin-inline-end: 0;
|
|
771
|
+
margin-inline-start: $spacing-03; // 8px gap after arrow → 16px total Figma gap
|
|
772
|
+
padding-inline-end: $spacing-07; // 32px: prevents text overlap with remove button
|
|
639
773
|
}
|
|
640
774
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
775
|
+
// Figma expanded slot: p-[16px] = $spacing-05 on all sides (#12)
|
|
776
|
+
// Previously: padding-block: 0 (no vertical padding) and no inline padding.
|
|
777
|
+
// This selector is more specific than Carbon's responsive padding-inline-end
|
|
778
|
+
// overrides on .cds--accordion__content, so one rule covers all breakpoints.
|
|
779
|
+
.#{$carbon-prefix}--accordion__item--active
|
|
780
|
+
.#{$carbon-prefix}--accordion__content {
|
|
781
|
+
margin-block-start: 0;
|
|
782
|
+
padding-block: $spacing-05; // 16px top/bottom
|
|
783
|
+
padding-inline: $spacing-05; // 16px inline
|
|
644
784
|
}
|
|
645
785
|
}
|
|
646
786
|
|
|
@@ -648,36 +788,35 @@ $block-class__next: #{$pkg-prefix}--add-select__next;
|
|
|
648
788
|
// AddSelectItemSummaryPanel - Item summary view
|
|
649
789
|
// ──────────────────────────────────────────────────────────────
|
|
650
790
|
.#{$block-class__next}__item-summary-panel {
|
|
651
|
-
padding: $spacing-05;
|
|
652
|
-
|
|
653
791
|
&-header {
|
|
654
792
|
display: flex;
|
|
655
793
|
align-items: center;
|
|
656
794
|
justify-content: space-between;
|
|
657
|
-
|
|
795
|
+
border-block-end: 1px solid $layer-accent-01;
|
|
796
|
+
gap: $spacing-03;
|
|
797
|
+
padding-block-end: $spacing-03;
|
|
798
|
+
padding-block-start: $spacing-07;
|
|
799
|
+
padding-inline: $spacing-05;
|
|
658
800
|
}
|
|
659
801
|
|
|
660
802
|
&-title {
|
|
661
|
-
@include type
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
&-close {
|
|
665
|
-
// Close button styles
|
|
803
|
+
@include type-style('heading-compact-02');
|
|
666
804
|
}
|
|
667
805
|
|
|
668
806
|
&-body {
|
|
669
|
-
|
|
807
|
+
padding-block: $spacing-05;
|
|
808
|
+
padding-inline: $spacing-05;
|
|
670
809
|
}
|
|
671
810
|
|
|
672
811
|
&-entry {
|
|
673
812
|
margin-block-end: $spacing-05;
|
|
674
813
|
|
|
675
814
|
&-title {
|
|
676
|
-
@include type
|
|
815
|
+
@include type-style('heading-compact-01');
|
|
677
816
|
}
|
|
678
817
|
|
|
679
818
|
&-body {
|
|
680
|
-
@include type
|
|
819
|
+
@include type-style('body-compact-01');
|
|
681
820
|
}
|
|
682
821
|
}
|
|
683
822
|
}
|