@kaizen/components 2.2.4 → 2.3.1

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.
Files changed (37) hide show
  1. package/dist/cjs/src/MenuV1/index.cjs +4 -3
  2. package/dist/cjs/src/TitleBlock/TitleBlock.cjs +26 -36
  3. package/dist/cjs/src/TitleBlock/TitleBlock.module.scss.cjs +3 -0
  4. package/dist/cjs/src/TitleBlock/subcomponents/MainActions.cjs +90 -45
  5. package/dist/cjs/src/TitleBlock/subcomponents/MainActions.module.scss.cjs +3 -1
  6. package/dist/cjs/src/TitleBlock/subcomponents/SecondaryActions.cjs +51 -14
  7. package/dist/esm/src/MenuV1/index.mjs +5 -3
  8. package/dist/esm/src/TitleBlock/TitleBlock.mjs +27 -37
  9. package/dist/esm/src/TitleBlock/TitleBlock.module.scss.mjs +3 -0
  10. package/dist/esm/src/TitleBlock/subcomponents/MainActions.mjs +92 -47
  11. package/dist/esm/src/TitleBlock/subcomponents/MainActions.module.scss.mjs +3 -1
  12. package/dist/esm/src/TitleBlock/subcomponents/SecondaryActions.mjs +51 -14
  13. package/dist/styles.css +78 -207
  14. package/dist/types/TitleBlock/TitleBlock.d.ts +1 -1
  15. package/dist/types/TitleBlock/subcomponents/MainActions.d.ts +4 -3
  16. package/package.json +1 -1
  17. package/src/TitleBlock/TitleBlock.module.scss +51 -14
  18. package/src/TitleBlock/TitleBlock.spec.tsx +33 -461
  19. package/src/TitleBlock/TitleBlock.tsx +4 -24
  20. package/src/TitleBlock/_docs/TitleBlock.stories.tsx +78 -100
  21. package/src/TitleBlock/_mixins.scss +6 -0
  22. package/src/TitleBlock/subcomponents/MainActions.module.scss +27 -2
  23. package/src/TitleBlock/subcomponents/MainActions.tsx +127 -70
  24. package/src/TitleBlock/subcomponents/SecondaryActions.tsx +105 -45
  25. package/src/TitleBlock/subcomponents/Toolbar.tsx +1 -0
  26. package/dist/cjs/src/MenuV1/subcomponents/MenuHeading/MenuHeading.cjs +0 -27
  27. package/dist/cjs/src/MenuV1/subcomponents/MenuHeading/MenuHeading.module.scss.cjs +0 -6
  28. package/dist/cjs/src/TitleBlock/subcomponents/MobileActions.cjs +0 -306
  29. package/dist/cjs/src/TitleBlock/subcomponents/MobileActions.module.scss.cjs +0 -16
  30. package/dist/esm/src/MenuV1/subcomponents/MenuHeading/MenuHeading.mjs +0 -21
  31. package/dist/esm/src/MenuV1/subcomponents/MenuHeading/MenuHeading.module.scss.mjs +0 -4
  32. package/dist/esm/src/TitleBlock/subcomponents/MobileActions.mjs +0 -300
  33. package/dist/esm/src/TitleBlock/subcomponents/MobileActions.module.scss.mjs +0 -14
  34. package/dist/types/TitleBlock/subcomponents/MobileActions.d.ts +0 -14
  35. package/src/TitleBlock/subcomponents/MobileActions.module.scss +0 -208
  36. package/src/TitleBlock/subcomponents/MobileActions.spec.tsx +0 -210
  37. package/src/TitleBlock/subcomponents/MobileActions.tsx +0 -472
package/dist/styles.css CHANGED
@@ -10018,199 +10018,33 @@
10018
10018
  margin-inline-end: 0;
10019
10019
  margin-inline-start: calc(1.5rem / 2);
10020
10020
  }
10021
- @container (max-width: calc(768px - 1px)) {
10022
- .MainActions-module_mainActionsContainer__pk-78 {
10023
- display: none;
10024
- }
10025
- }
10026
- }
10027
- /** THIS IS AN AUTOGENERATED FILE **/
10028
- /** THIS IS AN AUTOGENERATED FILE **/
10029
- /** THIS IS AN AUTOGENERATED FILE **/
10030
- /** THIS IS AN AUTOGENERATED FILE **/
10031
- /** THIS IS AN AUTOGENERATED FILE **/
10032
- /* stylelint-disable scss/at-if-no-null, declaration-block-no-redundant-longhand-properties */
10033
- /** THIS IS AN AUTOGENERATED FILE **/
10034
- /** THIS IS AN AUTOGENERATED FILE **/
10035
- /** THIS IS AN AUTOGENERATED FILE **/
10036
- /** THIS IS AN AUTOGENERATED FILE **/
10037
- /** THIS IS AN AUTOGENERATED FILE **/
10038
- /* 16px */
10039
- /* 16px */
10040
- /* 16px */
10041
- /*
10042
- Because these components are deprecated, we've kept any inline/non-token values as values from the Zen theme to prevent any style regressions,
10043
- as this is what consumers would have expected when pulling them in a the time.
10044
- */
10045
- /* stylelint-enable scss/at-if-no-null, declaration-block-no-redundant-longhand-properties */
10046
- /** THIS IS AN AUTOGENERATED FILE **/
10047
- @layer kz-components {
10048
- /* stylelint-disable no-descending-specificity */
10049
- .MobileActions-module_mobileActionsContainer__XoepA {
10021
+ .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
10050
10022
  display: none;
10051
- z-index: 1030;
10052
- flex-direction: column;
10053
- position: fixed;
10054
- bottom: 0;
10055
- left: 0;
10056
- right: 0;
10057
- border-start-start-radius: var(--border-solid-border-radius, 7px);
10058
- border-start-end-radius: var(--border-solid-border-radius, 7px);
10059
- -webkit-font-smoothing: antialiased;
10060
- -moz-osx-font-smoothing: grayscale;
10061
- overflow: hidden;
10062
- transform: translateY(calc(100% - 60px));
10063
- transition: 0.4s ease;
10064
- animation: MobileActions-module_slide-up__xezn3 1s ease;
10065
- }
10066
- .MobileActions-module_mobileActionsContainer__XoepA.MobileActions-module_isOpen__D40v5 {
10067
- transform: translateY(0%);
10068
- }
10069
- .MobileActions-module_mobileActionsContainer__XoepA.MobileActions-module_isOpen__D40v5 .MobileActions-module_mobileActionsMenuContainer__x--Eb {
10070
- visibility: visible;
10071
- }
10072
- @container (max-width: calc(768px - 1px)) {
10073
- .MobileActions-module_mobileActionsContainer__XoepA {
10074
- display: flex;
10075
- }
10076
- }
10077
- .MobileActions-module_mobileActionsTopRow__RXNFZ {
10078
- display: flex;
10079
- align-items: center;
10080
- justify-content: space-between;
10081
- height: 60px;
10082
- }
10083
- .MobileActions-module_mobileActionsTopRow__RXNFZ.MobileActions-module_mobileActionsTopRowSingleButton__5EjiI {
10084
- justify-content: center;
10085
- }
10086
- .MobileActions-module_mobileActionsMenuContainer__x--Eb {
10087
- visibility: hidden;
10088
- width: 100%;
10089
- background: var(--color-white, #ffffff);
10090
- padding: var(--spacing-xs, 0.375rem) 0;
10091
- transition: visibility 0.4s;
10092
- }
10093
- .MobileActions-module_drawerHandleIcon__q9ewm {
10094
- display: flex;
10095
- justify-content: center;
10096
- align-items: center;
10097
- margin-inline-end: calc(1.5rem / 2);
10098
- margin-inline-start: 0;
10099
- }
10100
- .MobileActions-module_drawerHandleLabelText__MwJTA + .MobileActions-module_drawerHandleIcon__q9ewm {
10101
10023
  margin-inline-end: 0;
10102
- margin-inline-start: calc(1.5rem / 2);
10103
- }
10104
- .MobileActions-module_mobileActionsPrimaryLabel__8yfuH {
10105
- text-align: left;
10106
- text-decoration: none;
10107
- color: var(--color-white, #ffffff);
10108
- font-family: var(--typography-button-primary-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
10109
- font-weight: var(--typography-button-primary-font-weight, 500);
10110
- font-size: var(--typography-button-primary-font-size, 1.125rem);
10111
- line-height: var(--typography-button-primary-line-height, 1.5rem);
10112
- letter-spacing: var(--typography-button-primary-letter-spacing, normal);
10113
- padding-inline-end: 0;
10114
- padding-inline-start: 1.125rem;
10115
- }
10116
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-,
10117
- .MobileActions-module_mobileActionsExpandButton__XuHNU {
10118
- display: flex;
10119
- position: relative;
10120
- justify-content: flex-start;
10121
- align-items: center;
10122
- height: 100%;
10123
- border: 0;
10124
- box-sizing: border-box;
10125
- color: var(--color-white, #ffffff);
10126
- background-color: var(--color-blue-500, #0168b3);
10127
10024
  }
10128
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:focus,
10129
- .MobileActions-module_mobileActionsExpandButton__XuHNU:focus {
10130
- background-color: var(--color-blue-600, #004970);
10131
- outline: none;
10132
- }
10133
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:focus-visible,
10134
- .MobileActions-module_mobileActionsExpandButton__XuHNU:focus-visible {
10135
- height: 52px;
10136
- }
10137
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:focus-visible::after,
10138
- .MobileActions-module_mobileActionsExpandButton__XuHNU:focus-visible::after {
10139
- content: "";
10140
- position: absolute;
10141
- background: transparent;
10142
- border-width: 2px;
10143
- border-style: var(--border-focus-ring-border-style, solid);
10144
- border-color: var(--color-blue-500, #0168b3);
10145
- inset: calc(-1 * calc(var(--border-focus-ring-border-width, 2px) * 2));
10146
- }
10147
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:hover,
10148
- .MobileActions-module_mobileActionsExpandButton__XuHNU:hover {
10149
- text-decoration: none;
10150
- }
10151
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:only-child,
10152
- .MobileActions-module_mobileActionsExpandButton__XuHNU:only-child {
10153
- flex-basis: 100%;
10154
- border-start-start-radius: var(--border-solid-border-radius, 7px);
10155
- border-start-end-radius: var(--border-solid-border-radius, 7px);
10156
- }
10157
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:only-child:focus-visible,
10158
- .MobileActions-module_mobileActionsExpandButton__XuHNU:only-child:focus-visible {
10159
- flex-basis: calc(100% - 8px);
10160
- }
10161
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:only-child:focus-visible::after,
10162
- .MobileActions-module_mobileActionsExpandButton__XuHNU:only-child:focus-visible::after {
10163
- border-start-start-radius: var(--border-focus-ring-border-radius, 10px);
10164
- border-start-end-radius: var(--border-focus-ring-border-radius, 10px);
10165
- }
10166
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child) {
10167
- flex: 0 0 calc(100% - 3.75rem);
10168
- }
10169
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child):focus-visible {
10170
- flex-basis: calc(100% - 3.75rem - 8px);
10171
- margin-left: 4px;
10172
- border-start-start-radius: var(--border-solid-border-radius, 7px);
10173
- }
10174
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child):focus-visible + .MobileActions-module_mobileActionsExpandButton__XuHNU {
10175
- border-color: var(--color-white, #ffffff);
10176
- }
10177
- .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child):focus-visible::after {
10178
- border-start-start-radius: var(--border-focus-ring-border-radius, 10px);
10179
- }
10180
- .MobileActions-module_mobileActionsExpandButton__XuHNU:not(:only-child) {
10181
- flex: 0 0 3.75rem;
10182
- border-left: 2px solid var(--color-blue-200, #bde2f5);
10183
- justify-content: center;
10184
- }
10185
- .MobileActions-module_mobileActionsExpandButton__XuHNU:not(:only-child):focus-visible {
10186
- border-color: var(--color-white, #ffffff);
10187
- flex-basis: calc(3.75rem - 8px);
10188
- margin-right: 4px;
10189
- border-start-end-radius: var(--border-solid-border-radius, 7px);
10190
- }
10191
- .MobileActions-module_mobileActionsExpandButton__XuHNU:not(:only-child):focus-visible::after {
10192
- border-start-end-radius: var(--border-focus-ring-border-radius, 10px);
10193
- }
10194
- .MobileActions-module_mobileActionsChevronSquare__SPIsI {
10195
- display: flex;
10196
- justify-content: center;
10197
- align-items: center;
10198
- height: 100%;
10199
- position: absolute;
10200
- inset-inline-end: 20px;
10201
- inset-inline-start: auto;
10202
- }
10203
- /* stylelint-enable no-descending-specificity */
10204
- }
10205
- @keyframes MobileActions-module_slide-up__xezn3 {
10206
- 0% {
10207
- transform: translateY(100%);
10208
- }
10209
- 50% {
10210
- transform: translateY(100%);
10211
- }
10212
- 100% {
10213
- transform: translateY(calc(100% - 60px));
10025
+ @container (max-width: 511px) {
10026
+ .MainActions-module_mainActionsContainer__pk-78 {
10027
+ padding-top: 12px;
10028
+ justify-content: flex-start;
10029
+ padding-left: 1.25rem;
10030
+ }
10031
+ @media (max-width: 511px) {
10032
+ .MainActions-module_mainActionsContainer__pk-78 {
10033
+ padding-top: 0;
10034
+ padding-left: 3.375rem;
10035
+ }
10036
+ }
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
+ }
10047
+ }
10214
10048
  }
10215
10049
  }
10216
10050
  /** THIS IS AN AUTOGENERATED FILE **/
@@ -10259,19 +10093,28 @@
10259
10093
  display: none;
10260
10094
  }
10261
10095
  }
10262
- .TitleBlock-module_titleRow__Ifqiu,
10096
+ .TitleBlock-module_titleRow__Ifqiu {
10097
+ display: flex;
10098
+ width: 100%;
10099
+ justify-content: center;
10100
+ }
10263
10101
  .TitleBlock-module_rowBelowSeparator__H4E63 {
10264
10102
  display: flex;
10265
10103
  width: 100%;
10266
10104
  justify-content: center;
10267
10105
  }
10106
+ @container (max-width: calc(768px - 1px)) {
10107
+ .TitleBlock-module_rowBelowSeparator__H4E63 {
10108
+ height: 3.75rem;
10109
+ }
10110
+ }
10268
10111
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRow__Ifqiu {
10269
10112
  background-color: var(--color-white, #ffffff);
10270
- margin-bottom: 3px;
10113
+ margin-bottom: 0.063rem;
10271
10114
  }
10272
10115
  .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_titleRow__Ifqiu {
10273
10116
  background-color: var(--color-white, #ffffff);
10274
- margin-bottom: 3px;
10117
+ margin-bottom: 0.063rem;
10275
10118
  }
10276
10119
  .TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
10277
10120
  max-width: 1392px;
@@ -10289,6 +10132,16 @@
10289
10132
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10290
10133
  border-bottom: 1px solid var(--color-gray-300, #eaeaec);
10291
10134
  }
10135
+ @container (max-width: 511px) {
10136
+ .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10137
+ padding-bottom: 12px;
10138
+ }
10139
+ }
10140
+ @container (max-width: calc(768px - 1px)) {
10141
+ .TitleBlock-module_rowBelowSeparatorInner__3gNec {
10142
+ height: 3.75rem;
10143
+ }
10144
+ }
10292
10145
  .TitleBlock-module_titleRowInnerContent__NhTHV {
10293
10146
  position: relative;
10294
10147
  display: flex;
@@ -10296,7 +10149,7 @@
10296
10149
  align-items: center;
10297
10150
  min-height: 5.25rem;
10298
10151
  justify-content: space-between;
10299
- border-bottom: 0.1875rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10152
+ border-bottom: 0.063rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10300
10153
  }
10301
10154
  .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_titleRowInnerContent__NhTHV {
10302
10155
  border-bottom-color: rgba(var(--color-purple-700-rgb, 74, 35, 77), 0.2);
@@ -10309,6 +10162,11 @@
10309
10162
  border-bottom: none;
10310
10163
  }
10311
10164
  }
10165
+ @container (max-width: 511px) {
10166
+ .TitleBlock-module_titleRowInnerContent__NhTHV {
10167
+ flex-wrap: wrap;
10168
+ }
10169
+ }
10312
10170
  .TitleBlock-module_title__c5JWR {
10313
10171
  display: flex;
10314
10172
  align-items: center;
@@ -10391,10 +10249,10 @@
10391
10249
  }
10392
10250
  @container (max-width: calc(1080px - 1px)) {
10393
10251
  .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10394
- font-size: var(--typography-heading-4-font-size, 1.125rem);
10395
- line-height: var(--typography-heading-4-line-height, 1.5rem);
10396
- letter-spacing: var(--typography-heading-4-letter-spacing, normal);
10397
- padding: 0;
10252
+ font-size: var(--typography-heading-3-font-size, 1.375rem);
10253
+ line-height: var(--typography-heading-3-line-height, 1.875rem);
10254
+ letter-spacing: var(--typography-heading-3-letter-spacing, normal);
10255
+ padding: 8px 0;
10398
10256
  }
10399
10257
  }
10400
10258
  .TitleBlock-module_avatar__mEjJ8 {
@@ -10429,7 +10287,6 @@
10429
10287
  @container (max-width: calc(1080px - 1px)) {
10430
10288
  .TitleBlock-module_hamburger__qe4R0 {
10431
10289
  display: flex;
10432
- align-items: center;
10433
10290
  }
10434
10291
  }
10435
10292
  .TitleBlock-module_subtitle__AI9tj {
@@ -10529,9 +10386,14 @@
10529
10386
  .TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
10530
10387
  display: flex;
10531
10388
  width: 100%;
10532
- margin-top: -0.1875rem;
10389
+ margin-top: -0.063rem;
10533
10390
  justify-content: space-between;
10534
10391
  }
10392
+ @container (max-width: calc(768px - 1px)) {
10393
+ .TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
10394
+ height: 3.75rem;
10395
+ }
10396
+ }
10535
10397
  .TitleBlock-module_titleAndAdjacent__Q7W-m {
10536
10398
  display: flex;
10537
10399
  min-width: 0;
@@ -10585,6 +10447,8 @@
10585
10447
  }
10586
10448
  @container (max-width: calc(768px - 1px)) {
10587
10449
  .TitleBlock-module_hasNavigationTabs__v09jL .TitleBlock-module_navigationTabScrollerContainer__o234q {
10450
+ margin-top: 0.063rem;
10451
+ height: 3.75rem;
10588
10452
  display: block;
10589
10453
  overflow-x: scroll;
10590
10454
  scrollbar-width: none;
@@ -10612,7 +10476,7 @@
10612
10476
  .TitleBlock-module_navigationTabEdgeShadowRight__xkIWc, .TitleBlock-module_navigationTabEdgeShadowLeft__9pGhR {
10613
10477
  display: block;
10614
10478
  position: absolute;
10615
- top: 3.5625rem;
10479
+ top: 3.687rem;
10616
10480
  width: 3.75rem;
10617
10481
  height: 3.75rem;
10618
10482
  background: linear-gradient(0deg, var(--color-purple-600, #5f3361), rgba(var(--color-purple-600-rgb, 95, 51, 97), 0));
@@ -10665,10 +10529,17 @@
10665
10529
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_secondaryActionsContainer__-4q0l {
10666
10530
  color: var(--color-blue-500, #0168b3);
10667
10531
  }
10532
+ .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowCombinedMenu__CTddK {
10533
+ display: none;
10534
+ }
10668
10535
  @container (max-width: calc(1080px - 1px)) {
10669
- .TitleBlock-module_secondaryActionsContainer__-4q0l {
10536
+ .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryButtonContainer__xFL9X,
10537
+ .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowMenu__gvmgW {
10670
10538
  display: none;
10671
10539
  }
10540
+ .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowCombinedMenu__CTddK {
10541
+ display: flex;
10542
+ }
10672
10543
  }
10673
10544
  .TitleBlock-module_breadcrumb__lVNKz {
10674
10545
  appearance: none;
@@ -10717,11 +10588,6 @@
10717
10588
  }
10718
10589
  }
10719
10590
  }
10720
- @container (max-width: calc(1080px - 1px)) {
10721
- .TitleBlock-module_breadcrumb__lVNKz {
10722
- display: none;
10723
- }
10724
- }
10725
10591
  .TitleBlock-module_breadcrumbTextLink__ngx82 {
10726
10592
  clip-path: rect(0 0 0 0);
10727
10593
  height: 1px;
@@ -10815,6 +10681,11 @@
10815
10681
  color: var(--color-blue-500, #0168b3);
10816
10682
  background-color: rgba(var(--color-blue-500-rgb, 1, 104, 179), 0.1);
10817
10683
  }
10684
+ @container (max-width: calc(1080px - 1px)) {
10685
+ .TitleBlock-module_circle__68z-T {
10686
+ display: none;
10687
+ }
10688
+ }
10818
10689
  /* stylelint-enable no-descending-specificity */
10819
10690
  }
10820
10691
  @keyframes TitleBlock-module_slide-fade__o5TnP {
@@ -4,6 +4,6 @@ import { type TitleBlockProps } from './types';
4
4
  * {@link https://cultureamp.design/?path=/docs/components-titleblock-api-specification--docs Storybook}
5
5
  */
6
6
  export declare const TitleBlock: {
7
- ({ title, variant, breadcrumb, avatar, subtitle, sectionTitle, sectionTitleDescription, renderSectionTitle, pageSwitcherSelect, handleHamburgerClick, primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, navigationTabs, collapseNavigationAreaWhenPossible, textDirection, surveyStatus, id, titleAutomationId, avatarAutomationId, subtitleAutomationId, sectionTitleAutomationId, sectionTitleDescriptionAutomationId, breadcrumbAutomationId, breadcrumbTextAutomationId, autoHideMobileActionsMenu, }: TitleBlockProps): JSX.Element;
7
+ ({ title, variant, breadcrumb, avatar, subtitle, sectionTitle, sectionTitleDescription, renderSectionTitle, pageSwitcherSelect, handleHamburgerClick, primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, navigationTabs, collapseNavigationAreaWhenPossible, textDirection, surveyStatus, id, titleAutomationId, avatarAutomationId, subtitleAutomationId, sectionTitleAutomationId, sectionTitleDescriptionAutomationId, breadcrumbAutomationId, breadcrumbTextAutomationId, }: TitleBlockProps): JSX.Element;
8
8
  displayName: string;
9
9
  };
@@ -1,13 +1,14 @@
1
- import { type DefaultActionProps, type PrimaryActionProps, type TitleBlockMenuItemProps } from '../types';
1
+ import { type DefaultActionProps, type PrimaryActionProps, type SecondaryActionsProps, type TitleBlockMenuItemProps } from '../types';
2
2
  type MainActionsProps = {
3
3
  primaryAction?: PrimaryActionProps;
4
4
  defaultAction?: DefaultActionProps;
5
5
  reversed?: boolean;
6
- overflowMenuItems?: TitleBlockMenuItemProps[];
6
+ secondaryActions?: SecondaryActionsProps;
7
+ secondaryOverflowMenuItems?: TitleBlockMenuItemProps[];
7
8
  showOverflowMenu?: boolean;
8
9
  };
9
10
  export declare const MainActions: {
10
- ({ primaryAction, defaultAction, reversed, overflowMenuItems, showOverflowMenu, }: MainActionsProps): JSX.Element;
11
+ ({ primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, reversed, }: MainActionsProps): JSX.Element;
11
12
  displayName: string;
12
13
  };
13
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "2.2.4",
3
+ "version": "2.3.1",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -14,7 +14,7 @@
14
14
  $breadcrumb-circle-width: 48px;
15
15
  $breadcrumb-breakpoint-width: $layout-content-max-width + $layout-content-side-margin * 2 +
16
16
  $breadcrumb-circle-width * 2.25;
17
- $title-block-separator-height: 0.1875rem;
17
+ $title-block-separator-height: 0.063rem;
18
18
  $tab-container-height-default: $ca-grid * 3;
19
19
  $tab-container-height-small: $ca-grid * 2.5;
20
20
  $tab-container-height-default-collapsed: 0;
@@ -48,21 +48,30 @@
48
48
  }
49
49
  }
50
50
 
51
- .titleRow,
51
+ .titleRow {
52
+ display: flex;
53
+ width: 100%;
54
+ justify-content: center;
55
+ }
56
+
52
57
  .rowBelowSeparator {
53
58
  display: flex;
54
59
  width: 100%;
55
60
  justify-content: center;
61
+
62
+ @include title-block-small {
63
+ height: $tab-container-height-small;
64
+ }
56
65
  }
57
66
 
58
67
  .lightVariant .titleRow {
59
68
  background-color: $color-white;
60
- margin-bottom: 3px; // needed to correctly position the active tab label :after element
69
+ margin-bottom: $title-block-separator-height;
61
70
  }
62
71
 
63
72
  .adminVariant .titleRow {
64
73
  background-color: $color-white;
65
- margin-bottom: 3px; // needed to correctly position the active tab label :after element
74
+ margin-bottom: $title-block-separator-height;
66
75
  }
67
76
 
68
77
  %titleBlockInner {
@@ -84,10 +93,18 @@
84
93
 
85
94
  .lightVariant .titleRowInner {
86
95
  border-bottom: 1px solid $color-gray-300;
96
+
97
+ @include title-block-xsmall {
98
+ padding-bottom: 12px;
99
+ }
87
100
  }
88
101
 
89
102
  .rowBelowSeparatorInner {
90
103
  @extend %titleBlockInner;
104
+
105
+ @include title-block-small {
106
+ height: $tab-container-height-small;
107
+ }
91
108
  }
92
109
 
93
110
  .titleRowInnerContent {
@@ -112,6 +129,10 @@
112
129
  @include title-block-medium-and-small {
113
130
  border-bottom: none;
114
131
  }
132
+
133
+ @include title-block-xsmall {
134
+ flex-wrap: wrap;
135
+ }
115
136
  }
116
137
 
117
138
  .title {
@@ -202,10 +223,10 @@
202
223
  }
203
224
 
204
225
  @include title-block-medium-and-small {
205
- font-size: $typography-heading-4-font-size;
206
- line-height: $typography-heading-4-line-height;
207
- letter-spacing: $typography-heading-4-letter-spacing;
208
- padding: 0;
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;
209
230
  }
210
231
  }
211
232
 
@@ -243,7 +264,6 @@
243
264
 
244
265
  @include title-block-medium-and-small {
245
266
  display: flex;
246
- align-items: center;
247
267
  }
248
268
  }
249
269
 
@@ -353,6 +373,10 @@
353
373
  width: 100%;
354
374
  margin-top: -$title-block-separator-height;
355
375
  justify-content: space-between;
376
+
377
+ @include title-block-small {
378
+ height: $tab-container-height-small;
379
+ }
356
380
  }
357
381
 
358
382
  .titleAndAdjacent {
@@ -418,6 +442,8 @@
418
442
  .navigationTabScrollerContainer {
419
443
  .hasNavigationTabs & {
420
444
  @include title-block-small {
445
+ margin-top: $title-block-separator-height;
446
+ height: $tab-container-height-small;
421
447
  display: block;
422
448
  overflow-x: scroll;
423
449
  scrollbar-width: none;
@@ -518,9 +544,20 @@
518
544
  color: $color-blue-500;
519
545
  }
520
546
 
521
- @include title-block-medium-and-small {
547
+ .secondaryOverflowCombinedMenu {
522
548
  display: none;
523
549
  }
550
+
551
+ @include title-block-medium-and-small {
552
+ .secondaryButtonContainer,
553
+ .secondaryOverflowMenu {
554
+ display: none;
555
+ }
556
+
557
+ .secondaryOverflowCombinedMenu {
558
+ display: flex;
559
+ }
560
+ }
524
561
  }
525
562
 
526
563
  .breadcrumb {
@@ -570,10 +607,6 @@
570
607
  @include ca-position($start: 0);
571
608
  }
572
609
  }
573
-
574
- @include title-block-medium-and-small {
575
- display: none;
576
- }
577
610
  }
578
611
 
579
612
  @mixin visually-hidden {
@@ -696,6 +729,10 @@
696
729
  color: $color-blue-500;
697
730
  background-color: rgba($color-blue-500-rgb, 0.1);
698
731
  }
732
+
733
+ @include title-block-medium-and-small {
734
+ display: none;
735
+ }
699
736
  }
700
737
  /* stylelint-enable no-descending-specificity */
701
738
  }