@kaizen/components 2.3.1 → 2.3.2

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.
@@ -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",
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var styles = {
4
- "toolbar": "Toolbar-module_toolbar__8T-NB",
5
- "toolbarItem": "Toolbar-module_toolbarItem__-l3QZ",
6
- "noGap": "Toolbar-module_noGap__X-W59"
4
+ "toolbar": "Toolbar-module_toolbar__8T-NB"
7
5
  };
8
6
  module.exports = styles;
@@ -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",
@@ -1,6 +1,4 @@
1
1
  var styles = {
2
- "toolbar": "Toolbar-module_toolbar__8T-NB",
3
- "toolbarItem": "Toolbar-module_toolbarItem__-l3QZ",
4
- "noGap": "Toolbar-module_noGap__X-W59"
2
+ "toolbar": "Toolbar-module_toolbar__8T-NB"
5
3
  };
6
4
  export { styles as default };
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: var(--color-white);
9243
+ background: transparent;
9244
9244
  white-space: nowrap;
9245
9245
  text-decoration: none;
9246
9246
  padding: var(--spacing-md) var(--spacing-md);
@@ -9954,43 +9954,7 @@
9954
9954
  .Toolbar-module_toolbar__8T-NB {
9955
9955
  display: flex;
9956
9956
  align-items: center;
9957
- }
9958
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ {
9959
- margin: 0 calc(1.5rem / 4);
9960
- }
9961
- @container (max-width: 1023px) {
9962
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ {
9963
- margin: 0 calc(1.5rem / 8);
9964
- }
9965
- }
9966
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ.Toolbar-module_noGap__X-W59 {
9967
- margin: 0;
9968
- }
9969
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ:first-of-type {
9970
- margin-inline-end: calc(1.5rem / 4);
9971
- margin-inline-start: 0;
9972
- }
9973
- @container (max-width: 1023px) {
9974
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ:first-of-type {
9975
- margin-inline-end: calc(1.5rem / 8);
9976
- margin-inline-start: 0;
9977
- }
9978
- }
9979
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ:first-of-type.Toolbar-module_noGap__X-W59 {
9980
- margin: 0;
9981
- }
9982
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ:last-of-type {
9983
- margin-inline-end: 0;
9984
- margin-inline-start: calc(1.5rem / 4);
9985
- }
9986
- @container (max-width: 1023px) {
9987
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ:last-of-type {
9988
- margin-inline-end: 0;
9989
- margin-inline-start: calc(1.5rem / 8);
9990
- }
9991
- }
9992
- .Toolbar-module_toolbar__8T-NB .Toolbar-module_toolbarItem__-l3QZ:last-of-type.Toolbar-module_noGap__X-W59 {
9993
- margin: 0;
9957
+ gap: inherit;
9994
9958
  }
9995
9959
  }
9996
9960
  /* stylelint-disable scss/at-if-no-null, declaration-block-no-redundant-longhand-properties */
@@ -10011,39 +9975,29 @@
10011
9975
  @layer kz-components {
10012
9976
  .MainActions-module_mainActionsContainer__pk-78 {
10013
9977
  display: flex;
10014
- align-items: center;
10015
- justify-content: flex-end;
10016
- flex-grow: 1;
9978
+ align-self: flex-start;
10017
9979
  flex-shrink: 0;
10018
- margin-inline-end: 0;
10019
- margin-inline-start: calc(1.5rem / 2);
9980
+ gap: 4px;
9981
+ }
9982
+ @container (max-width: 576px) {
9983
+ .MainActions-module_mainActionsContainer__pk-78 {
9984
+ justify-content: flex-start;
9985
+ margin-inline-start: 48px;
9986
+ }
10020
9987
  }
10021
9988
  .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
10022
9989
  display: none;
10023
- margin-inline-end: 0;
10024
9990
  }
10025
- @container (max-width: 511px) {
9991
+ @media (max-width: 360px) {
10026
9992
  .MainActions-module_mainActionsContainer__pk-78 {
10027
- padding-top: 12px;
10028
- justify-content: flex-start;
10029
- padding-left: 1.25rem;
9993
+ gap: 0;
10030
9994
  }
10031
- @media (max-width: 511px) {
10032
- .MainActions-module_mainActionsContainer__pk-78 {
10033
- padding-top: 0;
10034
- padding-left: 3.375rem;
10035
- }
9995
+ .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButton__VbER1 {
9996
+ display: none;
10036
9997
  }
10037
- @media (max-width: 360px) {
10038
- .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButton__VbER1 {
10039
- display: none;
10040
- margin-inline-end: 0;
10041
- }
10042
- .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
10043
- display: flex;
10044
- margin-inline-end: 3px;
10045
- margin-left: -0.5rem;
10046
- }
9998
+ .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
9999
+ display: flex;
10000
+ margin-inline-end: 8px;
10047
10001
  }
10048
10002
  }
10049
10003
  }
@@ -10094,6 +10048,7 @@
10094
10048
  }
10095
10049
  }
10096
10050
  .TitleBlock-module_titleRow__Ifqiu {
10051
+ box-sizing: border-box;
10097
10052
  display: flex;
10098
10053
  width: 100%;
10099
10054
  justify-content: center;
@@ -10117,24 +10072,30 @@
10117
10072
  margin-bottom: 0.063rem;
10118
10073
  }
10119
10074
  .TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
10075
+ box-sizing: border-box;
10120
10076
  max-width: 1392px;
10121
- margin: 0 72px;
10122
10077
  display: flex;
10123
10078
  flex-direction: column;
10124
10079
  width: 100%;
10125
10080
  min-width: 0;
10081
+ padding: 0 20px 0 0;
10126
10082
  }
10127
- @container (max-width: calc(1080px - 1px)) {
10083
+ @media (min-width: 1080px) {
10128
10084
  .TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
10129
- margin: 0 12px;
10085
+ padding: 0;
10086
+ margin-inline: 24px;
10130
10087
  }
10131
10088
  }
10132
10089
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10133
10090
  border-bottom: 1px solid var(--color-gray-300, #eaeaec);
10134
10091
  }
10135
- @container (max-width: 511px) {
10136
- .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10137
- padding-bottom: 12px;
10092
+ .TitleBlock-module_rowBelowSeparatorInner__3gNec {
10093
+ padding: 0 4px 0 12px;
10094
+ }
10095
+ @media (min-width: 1080px) {
10096
+ .TitleBlock-module_rowBelowSeparatorInner__3gNec {
10097
+ padding: 0;
10098
+ margin-inline: 24px;
10138
10099
  }
10139
10100
  }
10140
10101
  @container (max-width: calc(768px - 1px)) {
@@ -10143,11 +10104,13 @@
10143
10104
  }
10144
10105
  }
10145
10106
  .TitleBlock-module_titleRowInnerContent__NhTHV {
10107
+ box-sizing: border-box;
10146
10108
  position: relative;
10147
10109
  display: flex;
10148
10110
  width: 100%;
10149
10111
  align-items: center;
10150
- min-height: 5.25rem;
10112
+ gap: 12px;
10113
+ padding-block: 20px 19px;
10151
10114
  justify-content: space-between;
10152
10115
  border-bottom: 0.063rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10153
10116
  }
@@ -10162,15 +10125,21 @@
10162
10125
  border-bottom: none;
10163
10126
  }
10164
10127
  }
10165
- @container (max-width: 511px) {
10128
+ @container (max-width: 576px) {
10166
10129
  .TitleBlock-module_titleRowInnerContent__NhTHV {
10167
10130
  flex-wrap: wrap;
10131
+ gap: 4px;
10168
10132
  }
10169
10133
  }
10170
10134
  .TitleBlock-module_title__c5JWR {
10171
- display: flex;
10172
10135
  align-items: center;
10173
10136
  min-width: 0;
10137
+ overflow: hidden;
10138
+ text-overflow: ellipsis;
10139
+ display: -webkit-box;
10140
+ line-clamp: 3;
10141
+ -webkit-line-clamp: 3;
10142
+ -webkit-box-orient: vertical;
10174
10143
  }
10175
10144
  @container (max-width: 1365px) {
10176
10145
  .TitleBlock-module_title__c5JWR {
@@ -10185,7 +10154,7 @@
10185
10154
  }
10186
10155
  @container (max-width: 1365px) {
10187
10156
  .TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleAndSubtitle__-kLSn {
10188
- transform: translateY(-0.3833em);
10157
+ transform: translateY(-12px);
10189
10158
  }
10190
10159
  }
10191
10160
  .TitleBlock-module_titleAndSubtitleInner__TX8xw {
@@ -10229,34 +10198,65 @@
10229
10198
  }
10230
10199
  }
10231
10200
  .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10232
- padding: 4px 0;
10201
+ font-size: var(--typography-heading-3-font-size, 1.375rem);
10202
+ line-height: var(--typography-heading-3-line-height, 1.875rem);
10203
+ letter-spacing: var(--typography-heading-3-letter-spacing, normal);
10204
+ margin: 8px 0;
10233
10205
  }
10234
- @container (max-width: 1365px) {
10206
+ .TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10207
+ margin-bottom: 0;
10208
+ }
10209
+ @media (min-width: 1080px) and (max-width: 1095px) {
10210
+ @container (min-width: 1065px) {
10211
+ .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10212
+ font-size: var(--typography-heading-2-font-size, 1.75rem);
10213
+ line-height: var(--typography-heading-2-line-height, 2.25rem);
10214
+ letter-spacing: var(--typography-heading-2-letter-spacing, normal);
10215
+ margin: 2px 0;
10216
+ }
10217
+ .TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10218
+ margin-bottom: 0;
10219
+ }
10220
+ }
10221
+ }
10222
+ @container (min-width: 1080px) {
10235
10223
  .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10236
10224
  font-size: var(--typography-heading-2-font-size, 1.75rem);
10237
10225
  line-height: var(--typography-heading-2-line-height, 2.25rem);
10238
10226
  letter-spacing: var(--typography-heading-2-letter-spacing, normal);
10239
- padding: 2px 0;
10227
+ margin: 2px 0;
10228
+ }
10229
+ .TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10230
+ margin-bottom: 0;
10240
10231
  }
10241
10232
  }
10242
- @container (max-width: 1365px) {
10243
- .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10244
- font-size: var(--typography-heading-3-font-size, 1.375rem);
10245
- line-height: var(--typography-heading-3-line-height, 1.875rem);
10246
- letter-spacing: var(--typography-heading-3-letter-spacing, normal);
10247
- padding: 2px 0;
10233
+ @media (min-width: 1080px) and (max-width: 1095px) {
10234
+ @container (min-width: 1065px) {
10235
+ .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10236
+ font-size: var(--typography-heading-3-font-size, 1.375rem);
10237
+ line-height: var(--typography-heading-3-line-height, 1.875rem);
10238
+ letter-spacing: var(--typography-heading-3-letter-spacing, normal);
10239
+ margin: 2px 0;
10240
+ }
10241
+ .TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10242
+ margin-bottom: 0;
10243
+ }
10248
10244
  }
10249
10245
  }
10250
- @container (max-width: calc(1080px - 1px)) {
10251
- .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10246
+ @container (min-width: 1080px) and (max-width: 1365px) {
10247
+ .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10252
10248
  font-size: var(--typography-heading-3-font-size, 1.375rem);
10253
10249
  line-height: var(--typography-heading-3-line-height, 1.875rem);
10254
10250
  letter-spacing: var(--typography-heading-3-letter-spacing, normal);
10255
- padding: 8px 0;
10251
+ margin: 2px 0;
10252
+ }
10253
+ .TitleBlock-module_hasSubtitle__DQWKd .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10254
+ margin-bottom: 0;
10256
10255
  }
10257
10256
  }
10258
10257
  .TitleBlock-module_avatar__mEjJ8 {
10259
10258
  display: none;
10259
+ align-self: self-start;
10260
10260
  box-sizing: border-box;
10261
10261
  overflow: hidden;
10262
10262
  height: 3rem;
@@ -10267,11 +10267,6 @@
10267
10267
  .TitleBlock-module_avatar__mEjJ8 > * {
10268
10268
  max-width: 100%;
10269
10269
  }
10270
- @container (min-width: 1080px) {
10271
- .TitleBlock-module_avatar__mEjJ8 {
10272
- display: block;
10273
- }
10274
- }
10275
10270
  .TitleBlock-module_avatar__mEjJ8.TitleBlock-module_withBorder__D8Mz2 {
10276
10271
  border: 3px solid var(--color-white, #ffffff);
10277
10272
  border-radius: 50%;
@@ -10279,14 +10274,25 @@
10279
10274
  .TitleBlock-module_hasLongTitle__L-6FV .TitleBlock-module_avatar__mEjJ8 {
10280
10275
  display: none;
10281
10276
  }
10277
+ @media (min-width: 1080px) and (max-width: 1095px) {
10278
+ @container (min-width: 1065px) {
10279
+ .TitleBlock-module_avatar__mEjJ8 {
10280
+ display: block;
10281
+ }
10282
+ }
10283
+ }
10284
+ @container (min-width: 1080px) {
10285
+ .TitleBlock-module_avatar__mEjJ8 {
10286
+ display: block;
10287
+ }
10288
+ }
10282
10289
  .TitleBlock-module_hamburger__qe4R0 {
10283
- display: none;
10284
- margin-inline-end: var(--spacing-xs, 0.375rem);
10285
- margin-inline-start: 0;
10290
+ display: flex;
10291
+ align-self: self-start;
10286
10292
  }
10287
- @container (max-width: calc(1080px - 1px)) {
10293
+ @media (min-width: 1080px) {
10288
10294
  .TitleBlock-module_hamburger__qe4R0 {
10289
- display: flex;
10295
+ display: none;
10290
10296
  }
10291
10297
  }
10292
10298
  .TitleBlock-module_subtitle__AI9tj {
@@ -10332,15 +10338,24 @@
10332
10338
  .TitleBlock-module_sectionTitleContainer__LrDPV {
10333
10339
  display: flex;
10334
10340
  align-items: center;
10335
- padding: calc(1.5rem * 3 / 4) 0;
10341
+ padding-inline-end: 8px;
10342
+ }
10343
+ .TitleBlock-module_sectionTitle__b8daw {
10344
+ display: block;
10336
10345
  }
10337
10346
  .TitleBlock-module_sectionTitleInner__nJfOP {
10338
10347
  display: flex;
10339
10348
  flex-direction: column;
10340
10349
  }
10350
+ @container (min-width: 1080px) {
10351
+ .TitleBlock-module_sectionTitleInner__nJfOP {
10352
+ flex-direction: row;
10353
+ align-items: center;
10354
+ column-gap: 12px;
10355
+ }
10356
+ }
10341
10357
  .TitleBlock-module_sectionTitleOverride__XcD8g.TitleBlock-module_sectionTitleOverride__XcD8g {
10342
10358
  white-space: nowrap;
10343
- margin-inline: 0 var(--spacing-24);
10344
10359
  font-family: var(--typography-heading-2-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
10345
10360
  font-weight: var(--typography-heading-2-font-weight, 600);
10346
10361
  font-size: var(--typography-heading-2-font-size, 1.75rem);
@@ -10365,9 +10380,6 @@
10365
10380
  letter-spacing: var(--typography-heading-4-letter-spacing, normal);
10366
10381
  }
10367
10382
  }
10368
- .TitleBlock-module_sectionTitle__b8daw {
10369
- display: block;
10370
- }
10371
10383
  .TitleBlock-module_sectionTitleDescription__wuVwm {
10372
10384
  color: var(--color-white, #ffffff);
10373
10385
  max-width: 780px;
@@ -10377,9 +10389,6 @@
10377
10389
  line-height: var(--typography-paragraph-small-line-height, 1.125rem);
10378
10390
  letter-spacing: var(--typography-paragraph-small-letter-spacing, normal);
10379
10391
  }
10380
- .TitleBlock-module_sectionTitle__b8daw + .TitleBlock-module_sectionTitleDescription__wuVwm {
10381
- margin-top: var(--spacing-6);
10382
- }
10383
10392
  .TitleBlock-module_sectionTitleDescription__wuVwm.TitleBlock-module_dark__KJexf {
10384
10393
  color: rgba(var(--color-purple-800-rgb, 47, 36, 56), 0.7);
10385
10394
  }
@@ -10389,11 +10398,6 @@
10389
10398
  margin-top: -0.063rem;
10390
10399
  justify-content: space-between;
10391
10400
  }
10392
- @container (max-width: calc(768px - 1px)) {
10393
- .TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
10394
- height: 3.75rem;
10395
- }
10396
- }
10397
10401
  .TitleBlock-module_titleAndAdjacent__Q7W-m {
10398
10402
  display: flex;
10399
10403
  min-width: 0;
@@ -10408,13 +10412,20 @@
10408
10412
  opacity: 0%;
10409
10413
  }
10410
10414
  .TitleBlock-module_tag__GDzmQ {
10411
- display: flex;
10415
+ display: none;
10412
10416
  align-items: center;
10413
10417
  margin-inline: var(--spacing-12) 0;
10414
10418
  }
10415
- @container (max-width: calc(1080px - 1px)) {
10419
+ @media (min-width: 1080px) and (max-width: 1095px) {
10420
+ @container (min-width: 1065px) {
10421
+ .TitleBlock-module_tag__GDzmQ {
10422
+ display: flex;
10423
+ }
10424
+ }
10425
+ }
10426
+ @container (min-width: 1080px) {
10416
10427
  .TitleBlock-module_tag__GDzmQ {
10417
- display: none;
10428
+ display: flex;
10418
10429
  }
10419
10430
  }
10420
10431
  .TitleBlock-module_tag__GDzmQ + .TitleBlock-module_pageSwitcherSelectNextToTitle__KZ0Uc {
@@ -10520,11 +10531,6 @@
10520
10531
  }
10521
10532
  .TitleBlock-module_secondaryActionsContainer__-4q0l {
10522
10533
  display: flex;
10523
- align-items: flex-start;
10524
- justify-content: flex-end;
10525
- padding: calc(1.5rem / 2) 0;
10526
- margin-inline-end: 0;
10527
- margin-inline-start: 2.25rem;
10528
10534
  }
10529
10535
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_secondaryActionsContainer__-4q0l {
10530
10536
  color: var(--color-blue-500, #0168b3);
@@ -10551,7 +10557,6 @@
10551
10557
  padding: 0;
10552
10558
  border: none;
10553
10559
  cursor: pointer;
10554
- display: flex;
10555
10560
  position: absolute;
10556
10561
  align-items: center;
10557
10562
  top: 50%;
@@ -10559,7 +10564,8 @@
10559
10564
  text-decoration: none;
10560
10565
  inset-inline-end: auto;
10561
10566
  inset-inline-start: calc(-48px - 1.5rem);
10562
- align-self: normal;
10567
+ align-self: self-start;
10568
+ display: none;
10563
10569
  }
10564
10570
  .TitleBlock-module_breadcrumb__lVNKz:hover .TitleBlock-module_breadcrumbTextLink__ngx82 {
10565
10571
  text-decoration: underline;
@@ -10577,9 +10583,10 @@
10577
10583
  border-style: var(--border-focus-ring-border-style, solid);
10578
10584
  inset: calc(-2 * var(--border-focus-ring-border-width, 2px) - var(--border-focus-ring-border-width, 2px));
10579
10585
  }
10580
- @media only screen {
10581
- @container (max-width: 1644px) {
10586
+ @media (min-width: 1080px) and (max-width: 1095px) {
10587
+ @container (min-width: 1065px) {
10582
10588
  .TitleBlock-module_breadcrumb__lVNKz {
10589
+ display: flex;
10583
10590
  position: relative;
10584
10591
  transform: translateY(0);
10585
10592
  margin-inline: 0 var(--spacing-12);
@@ -10588,6 +10595,16 @@
10588
10595
  }
10589
10596
  }
10590
10597
  }
10598
+ @container (min-width: 1080px) {
10599
+ .TitleBlock-module_breadcrumb__lVNKz {
10600
+ display: flex;
10601
+ position: relative;
10602
+ transform: translateY(0);
10603
+ margin-inline: 0 var(--spacing-12);
10604
+ inset-inline-end: auto;
10605
+ inset-inline-start: 0;
10606
+ }
10607
+ }
10591
10608
  .TitleBlock-module_breadcrumbTextLink__ngx82 {
10592
10609
  clip-path: rect(0 0 0 0);
10593
10610
  height: 1px;
@@ -10681,11 +10698,6 @@
10681
10698
  color: var(--color-blue-500, #0168b3);
10682
10699
  background-color: rgba(var(--color-blue-500-rgb, 1, 104, 179), 0.1);
10683
10700
  }
10684
- @container (max-width: calc(1080px - 1px)) {
10685
- .TitleBlock-module_circle__68z-T {
10686
- display: none;
10687
- }
10688
- }
10689
10701
  /* stylelint-enable no-descending-specificity */
10690
10702
  }
10691
10703
  @keyframes TitleBlock-module_slide-fade__o5TnP {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
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: var(--color-white);
9
+ background: transparent;
10
10
  white-space: nowrap;
11
11
  text-decoration: none;
12
12
  padding: var(--spacing-md) var(--spacing-md);
@@ -10,7 +10,9 @@
10
10
  @import './variables';
11
11
 
12
12
  @layer kz-components {
13
- $title-block-margin-width-on-medium-and-small: 12px;
13
+ $title-block-spacing-default: 20px;
14
+ $title-block-spacing-above-1080: 24px;
15
+ $title-block-gap-default: 12px;
14
16
  $breadcrumb-circle-width: 48px;
15
17
  $breadcrumb-breakpoint-width: $layout-content-max-width + $layout-content-side-margin * 2 +
16
18
  $breadcrumb-circle-width * 2.25;
@@ -49,6 +51,7 @@
49
51
  }
50
52
 
51
53
  .titleRow {
54
+ box-sizing: border-box;
52
55
  display: flex;
53
56
  width: 100%;
54
57
  justify-content: center;
@@ -75,15 +78,17 @@
75
78
  }
76
79
 
77
80
  %titleBlockInner {
81
+ box-sizing: border-box;
78
82
  max-width: $layout-content-max-width;
79
- margin: 0 $layout-content-side-margin;
80
83
  display: flex;
81
84
  flex-direction: column;
82
85
  width: 100%;
83
86
  min-width: 0; // this is an important trick to prevent flexbox items from overflowing
87
+ padding: 0 $title-block-spacing-default 0 0;
84
88
 
85
- @include title-block-medium-and-small {
86
- margin: 0 $title-block-margin-width-on-medium-and-small;
89
+ @include title-block-min-media-1080 {
90
+ padding: 0;
91
+ margin-inline: $title-block-spacing-above-1080;
87
92
  }
88
93
  }
89
94
 
@@ -93,14 +98,20 @@
93
98
 
94
99
  .lightVariant .titleRowInner {
95
100
  border-bottom: 1px solid $color-gray-300;
101
+ }
102
+
103
+ %rowBelowSeparatorInnerMarginOverride {
104
+ padding: 0 4px 0 12px;
96
105
 
97
- @include title-block-xsmall {
98
- padding-bottom: 12px;
106
+ @include title-block-min-media-1080 {
107
+ padding: 0;
108
+ margin-inline: $title-block-spacing-above-1080;
99
109
  }
100
110
  }
101
111
 
102
112
  .rowBelowSeparatorInner {
103
113
  @extend %titleBlockInner;
114
+ @extend %rowBelowSeparatorInnerMarginOverride;
104
115
 
105
116
  @include title-block-small {
106
117
  height: $tab-container-height-small;
@@ -108,11 +119,13 @@
108
119
  }
109
120
 
110
121
  .titleRowInnerContent {
122
+ box-sizing: border-box;
111
123
  position: relative;
112
124
  display: flex;
113
125
  width: 100%;
114
126
  align-items: center;
115
- min-height: $ca-grid * 3.5;
127
+ gap: $title-block-gap-default;
128
+ padding-block: $title-block-spacing-default 19px;
116
129
  justify-content: space-between;
117
130
  border-bottom: $title-block-separator-height solid rgba($color-white-rgb, 0.1);
118
131
 
@@ -130,16 +143,24 @@
130
143
  border-bottom: none;
131
144
  }
132
145
 
133
- @include title-block-xsmall {
146
+ @include title-block-under-576 {
134
147
  flex-wrap: wrap;
148
+ gap: 4px;
135
149
  }
136
150
  }
137
151
 
138
152
  .title {
139
- display: flex;
140
153
  align-items: center;
141
154
  min-width: 0; // this is an important trick to prevent flexbox items from overflowing
142
155
 
156
+ // truncation
157
+ overflow: hidden;
158
+ text-overflow: ellipsis;
159
+ display: -webkit-box;
160
+ line-clamp: 3;
161
+ -webkit-line-clamp: 3;
162
+ -webkit-box-orient: vertical;
163
+
143
164
  // Applying width 100% when the title is *not* long and is followed by a subtitle
144
165
  // causes misalignment of both.
145
166
  @include title-block-under-1366 {
@@ -155,7 +176,7 @@
155
176
 
156
177
  .hasSubtitle & {
157
178
  @include title-block-under-1366 {
158
- transform: translateY(-0.3833em);
179
+ transform: translateY(-12px);
159
180
  }
160
181
  }
161
182
  }
@@ -204,34 +225,65 @@
204
225
  }
205
226
 
206
227
  .titleTextOverride.titleTextOverride {
207
- padding: 4px 0;
228
+ font-size: $typography-heading-3-font-size;
229
+ line-height: $typography-heading-3-line-height;
230
+ letter-spacing: $typography-heading-3-letter-spacing;
231
+ margin: 8px 0;
208
232
 
209
- @include title-block-under-1366 {
233
+ .hasSubtitle & {
234
+ margin-bottom: 0;
235
+ }
236
+
237
+ @include title-block-media-mixed-width {
210
238
  font-size: $typography-heading-2-font-size;
211
239
  line-height: $typography-heading-2-line-height;
212
240
  letter-spacing: $typography-heading-2-letter-spacing;
213
- padding: 2px 0;
241
+ margin: 2px 0;
242
+
243
+ .hasSubtitle & {
244
+ margin-bottom: 0;
245
+ }
246
+ }
247
+
248
+ @include title-block-min-container-1080 {
249
+ font-size: $typography-heading-2-font-size;
250
+ line-height: $typography-heading-2-line-height;
251
+ letter-spacing: $typography-heading-2-letter-spacing;
252
+ margin: 2px 0;
253
+
254
+ .hasSubtitle & {
255
+ margin-bottom: 0;
256
+ }
214
257
  }
215
258
 
216
259
  .hasLongTitle & {
217
- @include title-block-under-1366 {
260
+ @include title-block-media-mixed-width {
218
261
  font-size: $typography-heading-3-font-size;
219
262
  line-height: $typography-heading-3-line-height;
220
263
  letter-spacing: $typography-heading-3-letter-spacing;
221
- padding: 2px 0;
264
+ margin: 2px 0;
265
+
266
+ .hasSubtitle & {
267
+ margin-bottom: 0;
268
+ }
222
269
  }
223
- }
224
270
 
225
- @include title-block-medium-and-small {
226
- font-size: $typography-heading-3-font-size;
227
- line-height: $typography-heading-3-line-height;
228
- letter-spacing: $typography-heading-3-letter-spacing;
229
- padding: 8px 0;
271
+ @container (min-width: #{$layout-breakpoints-large}) and (max-width: 1365px) {
272
+ font-size: $typography-heading-3-font-size;
273
+ line-height: $typography-heading-3-line-height;
274
+ letter-spacing: $typography-heading-3-letter-spacing;
275
+ margin: 2px 0;
276
+
277
+ .hasSubtitle & {
278
+ margin-bottom: 0;
279
+ }
280
+ }
230
281
  }
231
282
  }
232
283
 
233
284
  .avatar {
234
285
  display: none;
286
+ align-self: self-start;
235
287
  box-sizing: border-box;
236
288
  overflow: hidden;
237
289
  height: $ca-grid * 2;
@@ -243,10 +295,6 @@
243
295
  max-width: 100%;
244
296
  }
245
297
 
246
- @container (min-width: #{$layout-breakpoints-large}) {
247
- display: block;
248
- }
249
-
250
298
  &.withBorder {
251
299
  border: 3px solid $color-white;
252
300
  border-radius: 50%;
@@ -255,15 +303,22 @@
255
303
  .hasLongTitle & {
256
304
  display: none;
257
305
  }
306
+
307
+ @include title-block-media-mixed-width {
308
+ display: block;
309
+ }
310
+
311
+ @include title-block-min-container-1080 {
312
+ display: block;
313
+ }
258
314
  }
259
315
 
260
316
  .hamburger {
261
- display: none;
262
-
263
- @include ca-margin($end: $spacing-xs);
317
+ display: flex;
318
+ align-self: self-start;
264
319
 
265
- @include title-block-medium-and-small {
266
- display: flex;
320
+ @include title-block-min-media-1080 {
321
+ display: none;
267
322
  }
268
323
  }
269
324
 
@@ -312,17 +367,26 @@
312
367
  .sectionTitleContainer {
313
368
  display: flex;
314
369
  align-items: center;
315
- padding: calc(#{$ca-grid} * 3 / 4) 0;
370
+ padding-inline-end: 8px; // 20 take 12 result in 8 extra padding needed in section versus tabs UI
371
+ }
372
+
373
+ .sectionTitle {
374
+ display: block;
316
375
  }
317
376
 
318
377
  .sectionTitleInner {
319
378
  display: flex;
320
379
  flex-direction: column;
380
+
381
+ @include title-block-min-container-1080 {
382
+ flex-direction: row;
383
+ align-items: center;
384
+ column-gap: $title-block-gap-default;
385
+ }
321
386
  }
322
387
 
323
388
  .sectionTitleOverride.sectionTitleOverride {
324
389
  white-space: nowrap;
325
- margin-inline: 0 var(--spacing-24);
326
390
  font-family: $typography-heading-2-font-family;
327
391
  font-weight: $typography-heading-2-font-weight;
328
392
  font-size: $typography-heading-2-font-size;
@@ -346,10 +410,6 @@
346
410
  }
347
411
  }
348
412
 
349
- .sectionTitle {
350
- display: block;
351
- }
352
-
353
413
  .sectionTitleDescription {
354
414
  color: $color-white;
355
415
  max-width: 780px;
@@ -359,10 +419,6 @@
359
419
  line-height: $typography-paragraph-small-line-height;
360
420
  letter-spacing: $typography-paragraph-small-letter-spacing;
361
421
 
362
- .sectionTitle + & {
363
- margin-top: var(--spacing-6);
364
- }
365
-
366
422
  &.dark {
367
423
  color: rgba($color-purple-800-rgb, 0.7);
368
424
  }
@@ -373,10 +429,6 @@
373
429
  width: 100%;
374
430
  margin-top: -$title-block-separator-height;
375
431
  justify-content: space-between;
376
-
377
- @include title-block-small {
378
- height: $tab-container-height-small;
379
- }
380
432
  }
381
433
 
382
434
  .titleAndAdjacent {
@@ -399,12 +451,16 @@
399
451
  }
400
452
 
401
453
  .tag {
402
- display: flex;
454
+ display: none;
403
455
  align-items: center;
404
456
  margin-inline: var(--spacing-12) 0;
405
457
 
406
- @include title-block-medium-and-small {
407
- display: none;
458
+ @include title-block-media-mixed-width {
459
+ display: flex;
460
+ }
461
+
462
+ @include title-block-min-container-1080 {
463
+ display: flex;
408
464
  }
409
465
 
410
466
  + .pageSwitcherSelectNextToTitle {
@@ -529,11 +585,6 @@
529
585
  // but the variants prevent us from breaking this out.
530
586
  .secondaryActionsContainer {
531
587
  display: flex;
532
- align-items: flex-start;
533
- justify-content: flex-end;
534
- padding: (calc(#{$ca-grid} / 2)) 0;
535
-
536
- @include ca-margin($start: $ca-grid * 1.5);
537
588
 
538
589
  // To be removed eventually – the Dropdown does not
539
590
  // currently set its own color, and we want it
@@ -564,7 +615,6 @@
564
615
  @include button-reset;
565
616
 
566
617
  cursor: pointer;
567
- display: flex;
568
618
  position: absolute;
569
619
  align-items: center;
570
620
  top: 50%;
@@ -573,7 +623,7 @@
573
623
 
574
624
  @include ca-position($start: calc(-#{$breadcrumb-circle-width} - #{$ca-grid}));
575
625
 
576
- align-self: normal;
626
+ align-self: self-start;
577
627
 
578
628
  &:hover .breadcrumbTextLink {
579
629
  text-decoration: underline;
@@ -598,14 +648,24 @@
598
648
  }
599
649
  }
600
650
 
601
- @media only screen {
602
- @container (max-width: #{$breadcrumb-breakpoint-width}) {
603
- position: relative;
604
- transform: translateY(0);
605
- margin-inline: 0 var(--spacing-12);
651
+ display: none;
606
652
 
607
- @include ca-position($start: 0);
608
- }
653
+ @include title-block-media-mixed-width {
654
+ display: flex;
655
+ position: relative;
656
+ transform: translateY(0);
657
+ margin-inline: 0 var(--spacing-12);
658
+
659
+ @include ca-position($start: 0);
660
+ }
661
+
662
+ @include title-block-min-container-1080 {
663
+ display: flex;
664
+ position: relative;
665
+ transform: translateY(0);
666
+ margin-inline: 0 var(--spacing-12);
667
+
668
+ @include ca-position($start: 0);
609
669
  }
610
670
  }
611
671
 
@@ -729,10 +789,6 @@
729
789
  color: $color-blue-500;
730
790
  background-color: rgba($color-blue-500-rgb, 0.1);
731
791
  }
732
-
733
- @include title-block-medium-and-small {
734
- display: none;
735
- }
736
792
  }
737
793
  /* stylelint-enable no-descending-specificity */
738
794
  }
@@ -434,3 +434,18 @@ export const StickerSheetSurveyStatus: Story = {
434
434
  </StickerSheet>
435
435
  ),
436
436
  }
437
+
438
+ export const WithSection: Story = {
439
+ parameters: {
440
+ viewport: viewports,
441
+ chromatic: chromaticViewports,
442
+ },
443
+ args: {
444
+ title: 'A extra long title with over thirty characters so it truncates in a mobile viewport',
445
+ variant: 'light',
446
+ sectionTitle: 'Section title',
447
+ sectionTitleDescription: 'Description of section can go here',
448
+ navigationTabs: undefined,
449
+ surveyStatus: undefined,
450
+ },
451
+ }
@@ -41,3 +41,32 @@
41
41
  @content;
42
42
  }
43
43
  }
44
+
45
+ @mixin title-block-min-media-1080 {
46
+ @media (min-width: #{$layout-breakpoints-large}) {
47
+ @content;
48
+ }
49
+ }
50
+
51
+ @mixin title-block-min-container-1080 {
52
+ @container (min-width: #{$layout-breakpoints-large}) {
53
+ @content;
54
+ }
55
+ }
56
+
57
+ @mixin title-block-media-mixed-width {
58
+ // 1080
59
+ @media (min-width: #{$layout-breakpoints-large}) and (max-width: 1095px) {
60
+ // Note: There is a diff of 15px between the media and container query
61
+ @container (min-width: 1065px) {
62
+ @content;
63
+ }
64
+ }
65
+ }
66
+
67
+ // 576 is the specified breakpoint from design to wrap the primary actions
68
+ @mixin title-block-under-576 {
69
+ @container (max-width: 576px) {
70
+ @content;
71
+ }
72
+ }
@@ -4,39 +4,32 @@
4
4
  @layer kz-components {
5
5
  .mainActionsContainer {
6
6
  display: flex;
7
- align-items: center;
8
- justify-content: flex-end;
9
- flex-grow: 1;
7
+ align-self: flex-start;
10
8
  flex-shrink: 0;
9
+ // 8px gap between default and primary actions
10
+ // 4px needs to applied as 3rd empty div for minimized default action has gap applied also
11
+ gap: 4px;
12
+
13
+ @include title-block-under-576 {
14
+ justify-content: flex-start;
15
+ // offset: hamburger menu button is 48px wide
16
+ margin-inline-start: 48px;
17
+ }
11
18
 
12
19
  .defaultActionButtonMinimized {
13
20
  display: none;
14
- margin-inline-end: 0;
15
21
  }
16
22
 
17
- @include ca-margin($start: calc(#{$ca-grid} / 2));
23
+ @media (max-width: 360px) {
24
+ gap: 0;
18
25
 
19
- @include title-block-xsmall {
20
- padding-top: 12px;
21
- justify-content: flex-start;
22
- padding-left: 1.25rem;
23
-
24
- @media (max-width: 511px) {
25
- padding-top: 0;
26
- padding-left: 3.375rem;
26
+ .defaultActionButton {
27
+ display: none;
27
28
  }
28
29
 
29
- @media (max-width: 360px) {
30
- .defaultActionButton {
31
- display: none;
32
- margin-inline-end: 0;
33
- }
34
-
35
- .defaultActionButtonMinimized {
36
- display: flex;
37
- margin-inline-end: 3px;
38
- margin-left: -0.5rem;
39
- }
30
+ .defaultActionButtonMinimized {
31
+ display: flex;
32
+ margin-inline-end: 8px;
40
33
  }
41
34
  }
42
35
  }
@@ -6,41 +6,9 @@
6
6
  .toolbar {
7
7
  display: flex;
8
8
  align-items: center;
9
-
10
- .toolbarItem {
11
- margin: 0 calc(#{$ca-grid} / 4);
12
-
13
- @include title-block-under-1024 {
14
- margin: 0 calc(#{$ca-grid} / 8);
15
- }
16
-
17
- &.noGap {
18
- margin: 0;
19
- }
20
- }
21
-
22
- .toolbarItem:first-of-type {
23
- @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 4));
24
-
25
- @include title-block-under-1024 {
26
- @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 8));
27
- }
28
-
29
- &.noGap {
30
- margin: 0;
31
- }
32
- }
33
-
34
- .toolbarItem:last-of-type {
35
- @include ca-margin($start: calc(#{$ca-grid} / 4), $end: 0);
36
-
37
- @include title-block-under-1024 {
38
- @include ca-margin($start: calc(#{$ca-grid} / 8), $end: 0);
39
- }
40
-
41
- &.noGap {
42
- margin: 0;
43
- }
44
- }
9
+ // gap sizing needs to be applied on parent container
10
+ // the toolbar is used accross mutiple subcomponents within Titleblock,
11
+ // spacing in now the responsibility of the parent.
12
+ gap: inherit;
45
13
  }
46
14
  }