@kaizen/components 0.0.0-canary-01-13-tb-wrapping-20260113005905 → 0.0.0-canary-tb-variants-with-collapsed-20260116050501
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/dist/cjs/src/TitleBlock/TitleBlock.module.scss.cjs +1 -1
- package/dist/esm/src/TitleBlock/TitleBlock.module.scss.mjs +1 -1
- package/dist/styles.css +37 -38
- package/package.json +1 -1
- package/src/Tabs/subcomponents/Tab/Tab.module.css +1 -1
- package/src/TitleBlock/TitleBlock.module.scss +45 -40
- package/src/TitleBlock/_docs/TitleBlock.stories.tsx +129 -0
- package/src/TitleBlock/subcomponents/MainActions.module.scss +2 -2
|
@@ -25,9 +25,9 @@ var styles = {
|
|
|
25
25
|
"subtitle": "TitleBlock-module_subtitle__AI9tj",
|
|
26
26
|
"subtitleText": "TitleBlock-module_subtitleText__gpXET",
|
|
27
27
|
"sectionTitleContainer": "TitleBlock-module_sectionTitleContainer__LrDPV",
|
|
28
|
+
"sectionTitle": "TitleBlock-module_sectionTitle__b8daw",
|
|
28
29
|
"sectionTitleInner": "TitleBlock-module_sectionTitleInner__nJfOP",
|
|
29
30
|
"sectionTitleOverride": "TitleBlock-module_sectionTitleOverride__XcD8g",
|
|
30
|
-
"sectionTitle": "TitleBlock-module_sectionTitle__b8daw",
|
|
31
31
|
"sectionTitleDescription": "TitleBlock-module_sectionTitleDescription__wuVwm",
|
|
32
32
|
"dark": "TitleBlock-module_dark__KJexf",
|
|
33
33
|
"rowBelowSeparatorInnerContent": "TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w",
|
|
@@ -23,9 +23,9 @@ var styles = {
|
|
|
23
23
|
"subtitle": "TitleBlock-module_subtitle__AI9tj",
|
|
24
24
|
"subtitleText": "TitleBlock-module_subtitleText__gpXET",
|
|
25
25
|
"sectionTitleContainer": "TitleBlock-module_sectionTitleContainer__LrDPV",
|
|
26
|
+
"sectionTitle": "TitleBlock-module_sectionTitle__b8daw",
|
|
26
27
|
"sectionTitleInner": "TitleBlock-module_sectionTitleInner__nJfOP",
|
|
27
28
|
"sectionTitleOverride": "TitleBlock-module_sectionTitleOverride__XcD8g",
|
|
28
|
-
"sectionTitle": "TitleBlock-module_sectionTitle__b8daw",
|
|
29
29
|
"sectionTitleDescription": "TitleBlock-module_sectionTitleDescription__wuVwm",
|
|
30
30
|
"dark": "TitleBlock-module_dark__KJexf",
|
|
31
31
|
"rowBelowSeparatorInnerContent": "TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w",
|
package/dist/styles.css
CHANGED
|
@@ -9240,7 +9240,7 @@
|
|
|
9240
9240
|
border-bottom: 0;
|
|
9241
9241
|
border-top-left-radius: var(--border-borderless-border-radius);
|
|
9242
9242
|
border-top-right-radius: var(--border-borderless-border-radius);
|
|
9243
|
-
background:
|
|
9243
|
+
background: transparent;
|
|
9244
9244
|
white-space: nowrap;
|
|
9245
9245
|
text-decoration: none;
|
|
9246
9246
|
padding: var(--spacing-md) var(--spacing-md);
|
|
@@ -9982,7 +9982,7 @@
|
|
|
9982
9982
|
@container (max-width: 576px) {
|
|
9983
9983
|
.MainActions-module_mainActionsContainer__pk-78 {
|
|
9984
9984
|
justify-content: flex-start;
|
|
9985
|
-
margin-
|
|
9985
|
+
margin-inline-start: 48px;
|
|
9986
9986
|
}
|
|
9987
9987
|
}
|
|
9988
9988
|
.MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
|
|
@@ -9997,7 +9997,7 @@
|
|
|
9997
9997
|
}
|
|
9998
9998
|
.MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
|
|
9999
9999
|
display: flex;
|
|
10000
|
-
margin-
|
|
10000
|
+
margin-inline-end: 8px;
|
|
10001
10001
|
}
|
|
10002
10002
|
}
|
|
10003
10003
|
}
|
|
@@ -10058,11 +10058,6 @@
|
|
|
10058
10058
|
width: 100%;
|
|
10059
10059
|
justify-content: center;
|
|
10060
10060
|
}
|
|
10061
|
-
@container (max-width: calc(768px - 1px)) {
|
|
10062
|
-
.TitleBlock-module_rowBelowSeparator__H4E63 {
|
|
10063
|
-
height: 3.75rem;
|
|
10064
|
-
}
|
|
10065
|
-
}
|
|
10066
10061
|
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRow__Ifqiu {
|
|
10067
10062
|
background-color: var(--color-white, #ffffff);
|
|
10068
10063
|
margin-bottom: 0.063rem;
|
|
@@ -10090,7 +10085,7 @@
|
|
|
10090
10085
|
border-bottom: 1px solid var(--color-gray-300, #eaeaec);
|
|
10091
10086
|
}
|
|
10092
10087
|
.TitleBlock-module_rowBelowSeparatorInner__3gNec {
|
|
10093
|
-
padding: 0
|
|
10088
|
+
padding: 0 4px 0 12px;
|
|
10094
10089
|
}
|
|
10095
10090
|
@media (min-width: 1080px) {
|
|
10096
10091
|
.TitleBlock-module_rowBelowSeparatorInner__3gNec {
|
|
@@ -10098,11 +10093,6 @@
|
|
|
10098
10093
|
margin-inline: 24px;
|
|
10099
10094
|
}
|
|
10100
10095
|
}
|
|
10101
|
-
@container (max-width: calc(768px - 1px)) {
|
|
10102
|
-
.TitleBlock-module_rowBelowSeparatorInner__3gNec {
|
|
10103
|
-
height: 3.75rem;
|
|
10104
|
-
}
|
|
10105
|
-
}
|
|
10106
10096
|
.TitleBlock-module_titleRowInnerContent__NhTHV {
|
|
10107
10097
|
box-sizing: border-box;
|
|
10108
10098
|
position: relative;
|
|
@@ -10154,7 +10144,7 @@
|
|
|
10154
10144
|
}
|
|
10155
10145
|
@container (max-width: 1365px) {
|
|
10156
10146
|
.TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleAndSubtitle__-kLSn {
|
|
10157
|
-
transform: translateY(-
|
|
10147
|
+
transform: translateY(-12px);
|
|
10158
10148
|
}
|
|
10159
10149
|
}
|
|
10160
10150
|
.TitleBlock-module_titleAndSubtitleInner__TX8xw {
|
|
@@ -10201,7 +10191,10 @@
|
|
|
10201
10191
|
font-size: var(--typography-heading-3-font-size, 1.375rem);
|
|
10202
10192
|
line-height: var(--typography-heading-3-line-height, 1.875rem);
|
|
10203
10193
|
letter-spacing: var(--typography-heading-3-letter-spacing, normal);
|
|
10204
|
-
|
|
10194
|
+
margin: 8px 0;
|
|
10195
|
+
}
|
|
10196
|
+
.TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
|
|
10197
|
+
margin-bottom: 0;
|
|
10205
10198
|
}
|
|
10206
10199
|
@media (min-width: 1080px) and (max-width: 1095px) {
|
|
10207
10200
|
@container (min-width: 1065px) {
|
|
@@ -10209,7 +10202,10 @@
|
|
|
10209
10202
|
font-size: var(--typography-heading-2-font-size, 1.75rem);
|
|
10210
10203
|
line-height: var(--typography-heading-2-line-height, 2.25rem);
|
|
10211
10204
|
letter-spacing: var(--typography-heading-2-letter-spacing, normal);
|
|
10212
|
-
|
|
10205
|
+
margin: 2px 0;
|
|
10206
|
+
}
|
|
10207
|
+
.TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
|
|
10208
|
+
margin-bottom: 0;
|
|
10213
10209
|
}
|
|
10214
10210
|
}
|
|
10215
10211
|
}
|
|
@@ -10218,7 +10214,10 @@
|
|
|
10218
10214
|
font-size: var(--typography-heading-2-font-size, 1.75rem);
|
|
10219
10215
|
line-height: var(--typography-heading-2-line-height, 2.25rem);
|
|
10220
10216
|
letter-spacing: var(--typography-heading-2-letter-spacing, normal);
|
|
10221
|
-
|
|
10217
|
+
margin: 2px 0;
|
|
10218
|
+
}
|
|
10219
|
+
.TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
|
|
10220
|
+
margin-bottom: 0;
|
|
10222
10221
|
}
|
|
10223
10222
|
}
|
|
10224
10223
|
@media (min-width: 1080px) and (max-width: 1095px) {
|
|
@@ -10227,7 +10226,10 @@
|
|
|
10227
10226
|
font-size: var(--typography-heading-3-font-size, 1.375rem);
|
|
10228
10227
|
line-height: var(--typography-heading-3-line-height, 1.875rem);
|
|
10229
10228
|
letter-spacing: var(--typography-heading-3-letter-spacing, normal);
|
|
10230
|
-
|
|
10229
|
+
margin: 2px 0;
|
|
10230
|
+
}
|
|
10231
|
+
.TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
|
|
10232
|
+
margin-bottom: 0;
|
|
10231
10233
|
}
|
|
10232
10234
|
}
|
|
10233
10235
|
}
|
|
@@ -10236,11 +10238,15 @@
|
|
|
10236
10238
|
font-size: var(--typography-heading-3-font-size, 1.375rem);
|
|
10237
10239
|
line-height: var(--typography-heading-3-line-height, 1.875rem);
|
|
10238
10240
|
letter-spacing: var(--typography-heading-3-letter-spacing, normal);
|
|
10239
|
-
|
|
10241
|
+
margin: 2px 0;
|
|
10242
|
+
}
|
|
10243
|
+
.TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
|
|
10244
|
+
margin-bottom: 0;
|
|
10240
10245
|
}
|
|
10241
10246
|
}
|
|
10242
10247
|
.TitleBlock-module_avatar__mEjJ8 {
|
|
10243
10248
|
display: none;
|
|
10249
|
+
align-self: self-start;
|
|
10244
10250
|
box-sizing: border-box;
|
|
10245
10251
|
overflow: hidden;
|
|
10246
10252
|
height: 3rem;
|
|
@@ -10322,15 +10328,24 @@
|
|
|
10322
10328
|
.TitleBlock-module_sectionTitleContainer__LrDPV {
|
|
10323
10329
|
display: flex;
|
|
10324
10330
|
align-items: center;
|
|
10325
|
-
padding:
|
|
10331
|
+
padding-inline-end: 8px;
|
|
10332
|
+
}
|
|
10333
|
+
.TitleBlock-module_sectionTitle__b8daw {
|
|
10334
|
+
display: block;
|
|
10326
10335
|
}
|
|
10327
10336
|
.TitleBlock-module_sectionTitleInner__nJfOP {
|
|
10328
10337
|
display: flex;
|
|
10329
10338
|
flex-direction: column;
|
|
10330
10339
|
}
|
|
10340
|
+
@container (min-width: 1080px) {
|
|
10341
|
+
.TitleBlock-module_sectionTitleInner__nJfOP {
|
|
10342
|
+
flex-direction: row;
|
|
10343
|
+
align-items: center;
|
|
10344
|
+
column-gap: 12px;
|
|
10345
|
+
}
|
|
10346
|
+
}
|
|
10331
10347
|
.TitleBlock-module_sectionTitleOverride__XcD8g.TitleBlock-module_sectionTitleOverride__XcD8g {
|
|
10332
10348
|
white-space: nowrap;
|
|
10333
|
-
margin-inline: 0 var(--spacing-24);
|
|
10334
10349
|
font-family: var(--typography-heading-2-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
10335
10350
|
font-weight: var(--typography-heading-2-font-weight, 600);
|
|
10336
10351
|
font-size: var(--typography-heading-2-font-size, 1.75rem);
|
|
@@ -10355,9 +10370,6 @@
|
|
|
10355
10370
|
letter-spacing: var(--typography-heading-4-letter-spacing, normal);
|
|
10356
10371
|
}
|
|
10357
10372
|
}
|
|
10358
|
-
.TitleBlock-module_sectionTitle__b8daw {
|
|
10359
|
-
display: block;
|
|
10360
|
-
}
|
|
10361
10373
|
.TitleBlock-module_sectionTitleDescription__wuVwm {
|
|
10362
10374
|
color: var(--color-white, #ffffff);
|
|
10363
10375
|
max-width: 780px;
|
|
@@ -10367,9 +10379,6 @@
|
|
|
10367
10379
|
line-height: var(--typography-paragraph-small-line-height, 1.125rem);
|
|
10368
10380
|
letter-spacing: var(--typography-paragraph-small-letter-spacing, normal);
|
|
10369
10381
|
}
|
|
10370
|
-
.TitleBlock-module_sectionTitle__b8daw + .TitleBlock-module_sectionTitleDescription__wuVwm {
|
|
10371
|
-
margin-top: var(--spacing-6);
|
|
10372
|
-
}
|
|
10373
10382
|
.TitleBlock-module_sectionTitleDescription__wuVwm.TitleBlock-module_dark__KJexf {
|
|
10374
10383
|
color: rgba(var(--color-purple-800-rgb, 47, 36, 56), 0.7);
|
|
10375
10384
|
}
|
|
@@ -10379,11 +10388,6 @@
|
|
|
10379
10388
|
margin-top: -0.063rem;
|
|
10380
10389
|
justify-content: space-between;
|
|
10381
10390
|
}
|
|
10382
|
-
@container (max-width: calc(768px - 1px)) {
|
|
10383
|
-
.TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
|
|
10384
|
-
height: 3.75rem;
|
|
10385
|
-
}
|
|
10386
|
-
}
|
|
10387
10391
|
.TitleBlock-module_titleAndAdjacent__Q7W-m {
|
|
10388
10392
|
display: flex;
|
|
10389
10393
|
min-width: 0;
|
|
@@ -10517,11 +10521,6 @@
|
|
|
10517
10521
|
}
|
|
10518
10522
|
.TitleBlock-module_secondaryActionsContainer__-4q0l {
|
|
10519
10523
|
display: flex;
|
|
10520
|
-
align-items: flex-start;
|
|
10521
|
-
justify-content: flex-end;
|
|
10522
|
-
padding: calc(1.5rem / 2) 0;
|
|
10523
|
-
margin-inline-end: 0;
|
|
10524
|
-
margin-inline-start: 2.25rem;
|
|
10525
10524
|
}
|
|
10526
10525
|
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_secondaryActionsContainer__-4q0l {
|
|
10527
10526
|
color: var(--color-blue-500, #0168b3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-tb-variants-with-collapsed-20260116050501",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
border-bottom: 0;
|
|
7
7
|
border-top-left-radius: var(--border-borderless-border-radius);
|
|
8
8
|
border-top-right-radius: var(--border-borderless-border-radius);
|
|
9
|
-
background:
|
|
9
|
+
background: transparent;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
padding: var(--spacing-md) var(--spacing-md);
|
|
@@ -61,10 +61,6 @@
|
|
|
61
61
|
display: flex;
|
|
62
62
|
width: 100%;
|
|
63
63
|
justify-content: center;
|
|
64
|
-
|
|
65
|
-
@include title-block-small {
|
|
66
|
-
height: $tab-container-height-small;
|
|
67
|
-
}
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
.lightVariant .titleRow {
|
|
@@ -101,7 +97,7 @@
|
|
|
101
97
|
}
|
|
102
98
|
|
|
103
99
|
%rowBelowSeparatorInnerMarginOverride {
|
|
104
|
-
padding: 0
|
|
100
|
+
padding: 0 4px 0 12px;
|
|
105
101
|
|
|
106
102
|
@include title-block-min-media-1080 {
|
|
107
103
|
padding: 0;
|
|
@@ -112,10 +108,6 @@
|
|
|
112
108
|
.rowBelowSeparatorInner {
|
|
113
109
|
@extend %titleBlockInner;
|
|
114
110
|
@extend %rowBelowSeparatorInnerMarginOverride;
|
|
115
|
-
|
|
116
|
-
@include title-block-small {
|
|
117
|
-
height: $tab-container-height-small;
|
|
118
|
-
}
|
|
119
111
|
}
|
|
120
112
|
|
|
121
113
|
.titleRowInnerContent {
|
|
@@ -153,11 +145,6 @@
|
|
|
153
145
|
align-items: center;
|
|
154
146
|
min-width: 0; // this is an important trick to prevent flexbox items from overflowing
|
|
155
147
|
|
|
156
|
-
// Applying width 100% when the title is *not* long and is followed by a subtitle
|
|
157
|
-
// causes misalignment of both.
|
|
158
|
-
@include title-block-under-1366 {
|
|
159
|
-
width: 100%;
|
|
160
|
-
}
|
|
161
148
|
// truncation
|
|
162
149
|
overflow: hidden;
|
|
163
150
|
text-overflow: ellipsis;
|
|
@@ -165,6 +152,12 @@
|
|
|
165
152
|
line-clamp: 3;
|
|
166
153
|
-webkit-line-clamp: 3;
|
|
167
154
|
-webkit-box-orient: vertical;
|
|
155
|
+
|
|
156
|
+
// Applying width 100% when the title is *not* long and is followed by a subtitle
|
|
157
|
+
// causes misalignment of both.
|
|
158
|
+
@include title-block-under-1366 {
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
168
161
|
}
|
|
169
162
|
|
|
170
163
|
.titleAndSubtitle {
|
|
@@ -175,7 +168,7 @@
|
|
|
175
168
|
|
|
176
169
|
.hasSubtitle & {
|
|
177
170
|
@include title-block-under-1366 {
|
|
178
|
-
transform: translateY(-
|
|
171
|
+
transform: translateY(-12px);
|
|
179
172
|
}
|
|
180
173
|
}
|
|
181
174
|
}
|
|
@@ -227,20 +220,32 @@
|
|
|
227
220
|
font-size: $typography-heading-3-font-size;
|
|
228
221
|
line-height: $typography-heading-3-line-height;
|
|
229
222
|
letter-spacing: $typography-heading-3-letter-spacing;
|
|
230
|
-
|
|
223
|
+
margin: 8px 0;
|
|
224
|
+
|
|
225
|
+
.hasSubtitle & {
|
|
226
|
+
margin-bottom: 0;
|
|
227
|
+
}
|
|
231
228
|
|
|
232
229
|
@include title-block-media-mixed-width {
|
|
233
230
|
font-size: $typography-heading-2-font-size;
|
|
234
231
|
line-height: $typography-heading-2-line-height;
|
|
235
232
|
letter-spacing: $typography-heading-2-letter-spacing;
|
|
236
|
-
|
|
233
|
+
margin: 2px 0;
|
|
234
|
+
|
|
235
|
+
.hasSubtitle & {
|
|
236
|
+
margin-bottom: 0;
|
|
237
|
+
}
|
|
237
238
|
}
|
|
238
239
|
|
|
239
240
|
@include title-block-min-container-1080 {
|
|
240
241
|
font-size: $typography-heading-2-font-size;
|
|
241
242
|
line-height: $typography-heading-2-line-height;
|
|
242
243
|
letter-spacing: $typography-heading-2-letter-spacing;
|
|
243
|
-
|
|
244
|
+
margin: 2px 0;
|
|
245
|
+
|
|
246
|
+
.hasSubtitle & {
|
|
247
|
+
margin-bottom: 0;
|
|
248
|
+
}
|
|
244
249
|
}
|
|
245
250
|
|
|
246
251
|
.hasLongTitle & {
|
|
@@ -248,20 +253,29 @@
|
|
|
248
253
|
font-size: $typography-heading-3-font-size;
|
|
249
254
|
line-height: $typography-heading-3-line-height;
|
|
250
255
|
letter-spacing: $typography-heading-3-letter-spacing;
|
|
251
|
-
|
|
256
|
+
margin: 2px 0;
|
|
257
|
+
|
|
258
|
+
.hasSubtitle & {
|
|
259
|
+
margin-bottom: 0;
|
|
260
|
+
}
|
|
252
261
|
}
|
|
253
262
|
|
|
254
263
|
@container (min-width: #{$layout-breakpoints-large}) and (max-width: 1365px) {
|
|
255
264
|
font-size: $typography-heading-3-font-size;
|
|
256
265
|
line-height: $typography-heading-3-line-height;
|
|
257
266
|
letter-spacing: $typography-heading-3-letter-spacing;
|
|
258
|
-
|
|
267
|
+
margin: 2px 0;
|
|
268
|
+
|
|
269
|
+
.hasSubtitle & {
|
|
270
|
+
margin-bottom: 0;
|
|
271
|
+
}
|
|
259
272
|
}
|
|
260
273
|
}
|
|
261
274
|
}
|
|
262
275
|
|
|
263
276
|
.avatar {
|
|
264
277
|
display: none;
|
|
278
|
+
align-self: self-start;
|
|
265
279
|
box-sizing: border-box;
|
|
266
280
|
overflow: hidden;
|
|
267
281
|
height: $ca-grid * 2;
|
|
@@ -294,7 +308,6 @@
|
|
|
294
308
|
.hamburger {
|
|
295
309
|
display: flex;
|
|
296
310
|
align-self: self-start;
|
|
297
|
-
// @include ca-margin($end: $spacing-xs);
|
|
298
311
|
|
|
299
312
|
@include title-block-min-media-1080 {
|
|
300
313
|
display: none;
|
|
@@ -346,17 +359,26 @@
|
|
|
346
359
|
.sectionTitleContainer {
|
|
347
360
|
display: flex;
|
|
348
361
|
align-items: center;
|
|
349
|
-
padding:
|
|
362
|
+
padding-inline-end: 8px; // 20 take 12 result in 8 extra padding needed in section versus tabs UI
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.sectionTitle {
|
|
366
|
+
display: block;
|
|
350
367
|
}
|
|
351
368
|
|
|
352
369
|
.sectionTitleInner {
|
|
353
370
|
display: flex;
|
|
354
371
|
flex-direction: column;
|
|
372
|
+
|
|
373
|
+
@include title-block-min-container-1080 {
|
|
374
|
+
flex-direction: row;
|
|
375
|
+
align-items: center;
|
|
376
|
+
column-gap: $title-block-gap-default;
|
|
377
|
+
}
|
|
355
378
|
}
|
|
356
379
|
|
|
357
380
|
.sectionTitleOverride.sectionTitleOverride {
|
|
358
381
|
white-space: nowrap;
|
|
359
|
-
margin-inline: 0 var(--spacing-24);
|
|
360
382
|
font-family: $typography-heading-2-font-family;
|
|
361
383
|
font-weight: $typography-heading-2-font-weight;
|
|
362
384
|
font-size: $typography-heading-2-font-size;
|
|
@@ -380,10 +402,6 @@
|
|
|
380
402
|
}
|
|
381
403
|
}
|
|
382
404
|
|
|
383
|
-
.sectionTitle {
|
|
384
|
-
display: block;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
405
|
.sectionTitleDescription {
|
|
388
406
|
color: $color-white;
|
|
389
407
|
max-width: 780px;
|
|
@@ -393,10 +411,6 @@
|
|
|
393
411
|
line-height: $typography-paragraph-small-line-height;
|
|
394
412
|
letter-spacing: $typography-paragraph-small-letter-spacing;
|
|
395
413
|
|
|
396
|
-
.sectionTitle + & {
|
|
397
|
-
margin-top: var(--spacing-6);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
414
|
&.dark {
|
|
401
415
|
color: rgba($color-purple-800-rgb, 0.7);
|
|
402
416
|
}
|
|
@@ -407,10 +421,6 @@
|
|
|
407
421
|
width: 100%;
|
|
408
422
|
margin-top: -$title-block-separator-height;
|
|
409
423
|
justify-content: space-between;
|
|
410
|
-
|
|
411
|
-
@include title-block-small {
|
|
412
|
-
height: $tab-container-height-small;
|
|
413
|
-
}
|
|
414
424
|
}
|
|
415
425
|
|
|
416
426
|
.titleAndAdjacent {
|
|
@@ -567,11 +577,6 @@
|
|
|
567
577
|
// but the variants prevent us from breaking this out.
|
|
568
578
|
.secondaryActionsContainer {
|
|
569
579
|
display: flex;
|
|
570
|
-
align-items: flex-start;
|
|
571
|
-
justify-content: flex-end;
|
|
572
|
-
padding: (calc(#{$ca-grid} / 2)) 0;
|
|
573
|
-
|
|
574
|
-
@include ca-margin($start: $ca-grid * 1.5);
|
|
575
580
|
|
|
576
581
|
// To be removed eventually – the Dropdown does not
|
|
577
582
|
// currently set its own color, and we want it
|
|
@@ -301,6 +301,102 @@ export const StickerSheetVariants: Story = {
|
|
|
301
301
|
</StickerSheet>
|
|
302
302
|
),
|
|
303
303
|
}
|
|
304
|
+
export const StickerSheetVariantsWithSection: Story = {
|
|
305
|
+
name: 'Sticker Sheet (Variants With Section)',
|
|
306
|
+
render: () => (
|
|
307
|
+
<StickerSheet title="TitleBlock Variants">
|
|
308
|
+
<StickerSheet.Row header="Default (Purple background)">
|
|
309
|
+
<TitleBlock
|
|
310
|
+
title="Default Variant"
|
|
311
|
+
subtitle="This is the default purple variant with white text"
|
|
312
|
+
sectionTitle="Section title"
|
|
313
|
+
sectionTitleDescription="Description of section can go here"
|
|
314
|
+
navigationTabs={undefined}
|
|
315
|
+
surveyStatus={undefined}
|
|
316
|
+
/>
|
|
317
|
+
</StickerSheet.Row>
|
|
318
|
+
<StickerSheet.Row header="Education (Purple background)">
|
|
319
|
+
<TitleBlock
|
|
320
|
+
variant="education"
|
|
321
|
+
title="Education Variant"
|
|
322
|
+
subtitle="This is the education variant with purple background"
|
|
323
|
+
sectionTitle="Section title"
|
|
324
|
+
sectionTitleDescription="Description of section can go here"
|
|
325
|
+
navigationTabs={undefined}
|
|
326
|
+
surveyStatus={undefined}
|
|
327
|
+
/>
|
|
328
|
+
</StickerSheet.Row>
|
|
329
|
+
<StickerSheet.Row header="Admin (White background)">
|
|
330
|
+
<TitleBlock
|
|
331
|
+
variant="admin"
|
|
332
|
+
title="Admin Variant"
|
|
333
|
+
subtitle="This is the admin variant with white background"
|
|
334
|
+
sectionTitle="Section title"
|
|
335
|
+
sectionTitleDescription="Description of section can go here"
|
|
336
|
+
navigationTabs={undefined}
|
|
337
|
+
surveyStatus={undefined}
|
|
338
|
+
/>
|
|
339
|
+
</StickerSheet.Row>
|
|
340
|
+
<StickerSheet.Row header="Light (White background)">
|
|
341
|
+
<TitleBlock
|
|
342
|
+
variant="light"
|
|
343
|
+
title="Light Variant"
|
|
344
|
+
subtitle="This is the light variant with clean white background"
|
|
345
|
+
sectionTitle="Section title"
|
|
346
|
+
sectionTitleDescription="Description of section can go here"
|
|
347
|
+
navigationTabs={undefined}
|
|
348
|
+
surveyStatus={undefined}
|
|
349
|
+
/>
|
|
350
|
+
</StickerSheet.Row>
|
|
351
|
+
</StickerSheet>
|
|
352
|
+
),
|
|
353
|
+
}
|
|
354
|
+
export const StickerSheetVariantsWithTitleOnly: Story = {
|
|
355
|
+
name: 'Sticker Sheet (Variants With Title Only)',
|
|
356
|
+
render: () => (
|
|
357
|
+
<StickerSheet title="TitleBlock Variants">
|
|
358
|
+
<StickerSheet.Row header="Default">
|
|
359
|
+
<TitleBlock
|
|
360
|
+
title="Default Variant"
|
|
361
|
+
subtitle={undefined}
|
|
362
|
+
breadcrumb={undefined}
|
|
363
|
+
navigationTabs={undefined}
|
|
364
|
+
collapseNavigationAreaWhenPossible={true}
|
|
365
|
+
/>
|
|
366
|
+
</StickerSheet.Row>
|
|
367
|
+
<StickerSheet.Row header="Education">
|
|
368
|
+
<TitleBlock
|
|
369
|
+
variant="education"
|
|
370
|
+
title="Education Variant"
|
|
371
|
+
subtitle={undefined}
|
|
372
|
+
breadcrumb={undefined}
|
|
373
|
+
navigationTabs={undefined}
|
|
374
|
+
collapseNavigationAreaWhenPossible={true}
|
|
375
|
+
/>
|
|
376
|
+
</StickerSheet.Row>
|
|
377
|
+
<StickerSheet.Row header="Admin">
|
|
378
|
+
<TitleBlock
|
|
379
|
+
variant="admin"
|
|
380
|
+
title="Admin Variant"
|
|
381
|
+
subtitle={undefined}
|
|
382
|
+
breadcrumb={undefined}
|
|
383
|
+
navigationTabs={undefined}
|
|
384
|
+
collapseNavigationAreaWhenPossible={true}
|
|
385
|
+
/>
|
|
386
|
+
</StickerSheet.Row>
|
|
387
|
+
<StickerSheet.Row header="Light">
|
|
388
|
+
<TitleBlock
|
|
389
|
+
variant="light"
|
|
390
|
+
title="Light Variant"
|
|
391
|
+
subtitle={undefined}
|
|
392
|
+
breadcrumb={undefined}
|
|
393
|
+
navigationTabs={undefined}
|
|
394
|
+
collapseNavigationAreaWhenPossible={true}
|
|
395
|
+
/>
|
|
396
|
+
</StickerSheet.Row>
|
|
397
|
+
</StickerSheet>
|
|
398
|
+
),
|
|
399
|
+
}
|
|
304
400
|
|
|
305
401
|
export const StickerSheetBreadcrumbs: Story = {
|
|
306
402
|
name: 'Sticker Sheet (Breadcrumb)',
|
|
@@ -434,3 +530,36 @@ export const StickerSheetSurveyStatus: Story = {
|
|
|
434
530
|
</StickerSheet>
|
|
435
531
|
),
|
|
436
532
|
}
|
|
533
|
+
|
|
534
|
+
export const WithSection: Story = {
|
|
535
|
+
parameters: {
|
|
536
|
+
viewport: viewports,
|
|
537
|
+
chromatic: chromaticViewports,
|
|
538
|
+
},
|
|
539
|
+
args: {
|
|
540
|
+
title: 'A extra long title with over thirty characters so it truncates in a mobile viewport',
|
|
541
|
+
variant: 'light',
|
|
542
|
+
sectionTitle: 'Section title',
|
|
543
|
+
sectionTitleDescription: 'Description of section can go here',
|
|
544
|
+
navigationTabs: undefined,
|
|
545
|
+
surveyStatus: undefined,
|
|
546
|
+
},
|
|
547
|
+
}
|
|
548
|
+
export const WithTitleOnly: Story = {
|
|
549
|
+
parameters: {
|
|
550
|
+
viewport: viewports,
|
|
551
|
+
chromatic: chromaticViewports,
|
|
552
|
+
},
|
|
553
|
+
args: {
|
|
554
|
+
title: 'Page title',
|
|
555
|
+
navigationTabs: undefined,
|
|
556
|
+
surveyStatus: undefined,
|
|
557
|
+
primaryAction: undefined,
|
|
558
|
+
defaultAction: undefined,
|
|
559
|
+
secondaryActions: undefined,
|
|
560
|
+
secondaryOverflowMenuItems: undefined,
|
|
561
|
+
breadcrumb: undefined,
|
|
562
|
+
avatar: undefined,
|
|
563
|
+
collapseNavigationAreaWhenPossible: true,
|
|
564
|
+
},
|
|
565
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@include title-block-under-576 {
|
|
14
14
|
justify-content: flex-start;
|
|
15
15
|
// offset: hamburger menu button is 48px wide
|
|
16
|
-
margin-
|
|
16
|
+
margin-inline-start: 48px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.defaultActionButtonMinimized {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.defaultActionButtonMinimized {
|
|
31
31
|
display: flex;
|
|
32
|
-
margin-
|
|
32
|
+
margin-inline-end: 8px;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|