@kaizen/components 0.0.0-canary-04-titleblock-logic-20251211225600 → 0.0.0-canary-guidance-block-codemod-20251212045145

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 (44) hide show
  1. package/codemods/migrateGuidanceBlockActionsToActionsSlot/migrateGuidanceBlockActionsToActionsSlot.spec.ts +209 -26
  2. package/codemods/migrateGuidanceBlockActionsToActionsSlot/migrateGuidanceBlockActionsToActionsSlot.ts +24 -1
  3. package/codemods/migrateGuidanceBlockActionsToActionsSlot/transformActionsToActionsSlot.spec.ts +2 -1
  4. package/codemods/migrateGuidanceBlockActionsToActionsSlot/transformActionsToActionsSlot.ts +20 -0
  5. package/codemods/runV1Codemods/__snapshots__/runV1Codemods.spec.ts.snap +2 -3
  6. package/codemods/runV1Codemods/runV1Codemods.spec.ts +2 -3
  7. package/codemods/utils/transformV1ButtonPropsToButtonOrLinkButton.ts +40 -0
  8. package/dist/cjs/src/MenuV1/index.cjs +3 -4
  9. package/dist/cjs/src/MenuV1/subcomponents/MenuHeading/MenuHeading.cjs +27 -0
  10. package/dist/cjs/src/MenuV1/subcomponents/MenuHeading/MenuHeading.module.scss.cjs +6 -0
  11. package/dist/cjs/src/TitleBlock/TitleBlock.cjs +36 -32
  12. package/dist/cjs/src/TitleBlock/TitleBlock.module.scss.cjs +1 -5
  13. package/dist/cjs/src/TitleBlock/subcomponents/MainActions.cjs +45 -90
  14. package/dist/cjs/src/TitleBlock/subcomponents/MainActions.module.scss.cjs +1 -3
  15. package/dist/cjs/src/TitleBlock/subcomponents/MobileActions.cjs +306 -0
  16. package/dist/cjs/src/TitleBlock/subcomponents/MobileActions.module.scss.cjs +16 -0
  17. package/dist/cjs/src/TitleBlock/subcomponents/SecondaryActions.cjs +14 -60
  18. package/dist/esm/src/MenuV1/index.mjs +3 -5
  19. package/dist/esm/src/MenuV1/subcomponents/MenuHeading/MenuHeading.mjs +21 -0
  20. package/dist/esm/src/MenuV1/subcomponents/MenuHeading/MenuHeading.module.scss.mjs +4 -0
  21. package/dist/esm/src/TitleBlock/TitleBlock.mjs +37 -33
  22. package/dist/esm/src/TitleBlock/TitleBlock.module.scss.mjs +1 -5
  23. package/dist/esm/src/TitleBlock/subcomponents/MainActions.mjs +47 -92
  24. package/dist/esm/src/TitleBlock/subcomponents/MainActions.module.scss.mjs +1 -3
  25. package/dist/esm/src/TitleBlock/subcomponents/MobileActions.mjs +300 -0
  26. package/dist/esm/src/TitleBlock/subcomponents/MobileActions.module.scss.mjs +14 -0
  27. package/dist/esm/src/TitleBlock/subcomponents/SecondaryActions.mjs +14 -60
  28. package/dist/styles.css +206 -82
  29. package/dist/types/TitleBlock/TitleBlock.d.ts +1 -1
  30. package/dist/types/TitleBlock/subcomponents/MainActions.d.ts +3 -4
  31. package/dist/types/TitleBlock/subcomponents/MobileActions.d.ts +14 -0
  32. package/package.json +1 -1
  33. package/src/TitleBlock/TitleBlock.module.scss +14 -55
  34. package/src/TitleBlock/TitleBlock.spec.tsx +461 -33
  35. package/src/TitleBlock/TitleBlock.tsx +24 -7
  36. package/src/TitleBlock/_docs/TitleBlock.stories.tsx +5 -25
  37. package/src/TitleBlock/_mixins.scss +0 -6
  38. package/src/TitleBlock/subcomponents/MainActions.module.scss +2 -28
  39. package/src/TitleBlock/subcomponents/MainActions.tsx +70 -127
  40. package/src/TitleBlock/subcomponents/MobileActions.module.scss +208 -0
  41. package/src/TitleBlock/subcomponents/MobileActions.spec.tsx +210 -0
  42. package/src/TitleBlock/subcomponents/MobileActions.tsx +472 -0
  43. package/src/TitleBlock/subcomponents/SecondaryActions.tsx +45 -114
  44. package/src/TitleBlock/subcomponents/Toolbar.tsx +0 -1
package/dist/styles.css CHANGED
@@ -10017,34 +10017,200 @@
10017
10017
  margin-inline-end: 0;
10018
10018
  margin-inline-start: calc(1.5rem / 2);
10019
10019
  }
10020
- .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
10021
- display: none;
10022
- margin-inline-end: 0;
10023
- }
10024
- @container (max-width: 511px) {
10020
+ @container (max-width: calc(768px - 1px)) {
10025
10021
  .MainActions-module_mainActionsContainer__pk-78 {
10026
- padding-top: 12px;
10027
- justify-content: flex-start;
10028
- padding-left: 1.25rem;
10029
- }
10030
- @media (max-width: 511px) {
10031
- .MainActions-module_mainActionsContainer__pk-78 {
10032
- padding-top: 0;
10033
- padding-left: 2.5rem;
10034
- }
10022
+ display: none;
10035
10023
  }
10036
- @media (max-width: 415px) {
10037
- .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButton__VbER1 {
10038
- display: none;
10039
- margin-inline-end: 0;
10040
- }
10041
- .MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
10042
- display: flex;
10043
- margin-inline-end: 3px;
10044
- margin-left: -0.5rem;
10045
- }
10024
+ }
10025
+ }
10026
+ /** THIS IS AN AUTOGENERATED FILE **/
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
+ /* stylelint-disable scss/at-if-no-null, declaration-block-no-redundant-longhand-properties */
10032
+ /** THIS IS AN AUTOGENERATED FILE **/
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
+ /* 16px */
10038
+ /* 16px */
10039
+ /* 16px */
10040
+ /*
10041
+ Because these components are deprecated, we've kept any inline/non-token values as values from the Zen theme to prevent any style regressions,
10042
+ as this is what consumers would have expected when pulling them in a the time.
10043
+ */
10044
+ /* stylelint-enable scss/at-if-no-null, declaration-block-no-redundant-longhand-properties */
10045
+ /** THIS IS AN AUTOGENERATED FILE **/
10046
+ @layer kz-components {
10047
+ /* stylelint-disable no-descending-specificity */
10048
+ .MobileActions-module_mobileActionsContainer__XoepA {
10049
+ display: none;
10050
+ z-index: 1030;
10051
+ flex-direction: column;
10052
+ position: fixed;
10053
+ bottom: 0;
10054
+ left: 0;
10055
+ right: 0;
10056
+ border-start-start-radius: var(--border-solid-border-radius, 7px);
10057
+ border-start-end-radius: var(--border-solid-border-radius, 7px);
10058
+ -webkit-font-smoothing: antialiased;
10059
+ -moz-osx-font-smoothing: grayscale;
10060
+ overflow: hidden;
10061
+ transform: translateY(calc(100% - 60px));
10062
+ transition: 0.4s ease;
10063
+ animation: MobileActions-module_slide-up__xezn3 1s ease;
10064
+ }
10065
+ .MobileActions-module_mobileActionsContainer__XoepA.MobileActions-module_isOpen__D40v5 {
10066
+ transform: translateY(0%);
10067
+ }
10068
+ .MobileActions-module_mobileActionsContainer__XoepA.MobileActions-module_isOpen__D40v5 .MobileActions-module_mobileActionsMenuContainer__x--Eb {
10069
+ visibility: visible;
10070
+ }
10071
+ @container (max-width: calc(768px - 1px)) {
10072
+ .MobileActions-module_mobileActionsContainer__XoepA {
10073
+ display: flex;
10046
10074
  }
10047
10075
  }
10076
+ .MobileActions-module_mobileActionsTopRow__RXNFZ {
10077
+ display: flex;
10078
+ align-items: center;
10079
+ justify-content: space-between;
10080
+ height: 60px;
10081
+ }
10082
+ .MobileActions-module_mobileActionsTopRow__RXNFZ.MobileActions-module_mobileActionsTopRowSingleButton__5EjiI {
10083
+ justify-content: center;
10084
+ }
10085
+ .MobileActions-module_mobileActionsMenuContainer__x--Eb {
10086
+ visibility: hidden;
10087
+ width: 100%;
10088
+ background: var(--color-white, #ffffff);
10089
+ padding: var(--spacing-xs, 0.375rem) 0;
10090
+ transition: visibility 0.4s;
10091
+ }
10092
+ .MobileActions-module_drawerHandleIcon__q9ewm {
10093
+ display: flex;
10094
+ justify-content: center;
10095
+ align-items: center;
10096
+ margin-inline-end: calc(1.5rem / 2);
10097
+ margin-inline-start: 0;
10098
+ }
10099
+ .MobileActions-module_drawerHandleLabelText__MwJTA + .MobileActions-module_drawerHandleIcon__q9ewm {
10100
+ margin-inline-end: 0;
10101
+ margin-inline-start: calc(1.5rem / 2);
10102
+ }
10103
+ .MobileActions-module_mobileActionsPrimaryLabel__8yfuH {
10104
+ text-align: left;
10105
+ text-decoration: none;
10106
+ color: var(--color-white, #ffffff);
10107
+ font-family: var(--typography-button-primary-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
10108
+ font-weight: var(--typography-button-primary-font-weight, 500);
10109
+ font-size: var(--typography-button-primary-font-size, 1.125rem);
10110
+ line-height: var(--typography-button-primary-line-height, 1.5rem);
10111
+ letter-spacing: var(--typography-button-primary-letter-spacing, normal);
10112
+ padding-inline-end: 0;
10113
+ padding-inline-start: 1.125rem;
10114
+ }
10115
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-,
10116
+ .MobileActions-module_mobileActionsExpandButton__XuHNU {
10117
+ display: flex;
10118
+ position: relative;
10119
+ justify-content: flex-start;
10120
+ align-items: center;
10121
+ height: 100%;
10122
+ border: 0;
10123
+ box-sizing: border-box;
10124
+ color: var(--color-white, #ffffff);
10125
+ background-color: var(--color-blue-500, #0168b3);
10126
+ }
10127
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:focus,
10128
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:focus {
10129
+ background-color: var(--color-blue-600, #004970);
10130
+ outline: none;
10131
+ }
10132
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:focus-visible,
10133
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:focus-visible {
10134
+ height: 52px;
10135
+ }
10136
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:focus-visible::after,
10137
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:focus-visible::after {
10138
+ content: "";
10139
+ position: absolute;
10140
+ background: transparent;
10141
+ border-width: 2px;
10142
+ border-style: var(--border-focus-ring-border-style, solid);
10143
+ border-color: var(--color-blue-500, #0168b3);
10144
+ inset: calc(-1 * calc(var(--border-focus-ring-border-width, 2px) * 2));
10145
+ }
10146
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:hover,
10147
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:hover {
10148
+ text-decoration: none;
10149
+ }
10150
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:only-child,
10151
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:only-child {
10152
+ flex-basis: 100%;
10153
+ border-start-start-radius: var(--border-solid-border-radius, 7px);
10154
+ border-start-end-radius: var(--border-solid-border-radius, 7px);
10155
+ }
10156
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:only-child:focus-visible,
10157
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:only-child:focus-visible {
10158
+ flex-basis: calc(100% - 8px);
10159
+ }
10160
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:only-child:focus-visible::after,
10161
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:only-child:focus-visible::after {
10162
+ border-start-start-radius: var(--border-focus-ring-border-radius, 10px);
10163
+ border-start-end-radius: var(--border-focus-ring-border-radius, 10px);
10164
+ }
10165
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child) {
10166
+ flex: 0 0 calc(100% - 3.75rem);
10167
+ }
10168
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child):focus-visible {
10169
+ flex-basis: calc(100% - 3.75rem - 8px);
10170
+ margin-left: 4px;
10171
+ border-start-start-radius: var(--border-solid-border-radius, 7px);
10172
+ }
10173
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child):focus-visible + .MobileActions-module_mobileActionsExpandButton__XuHNU {
10174
+ border-color: var(--color-white, #ffffff);
10175
+ }
10176
+ .MobileActions-module_mobileActionsPrimaryButton__Xsvo-:not(:only-child):focus-visible::after {
10177
+ border-start-start-radius: var(--border-focus-ring-border-radius, 10px);
10178
+ }
10179
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:not(:only-child) {
10180
+ flex: 0 0 3.75rem;
10181
+ border-left: 2px solid var(--color-blue-200, #bde2f5);
10182
+ justify-content: center;
10183
+ }
10184
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:not(:only-child):focus-visible {
10185
+ border-color: var(--color-white, #ffffff);
10186
+ flex-basis: calc(3.75rem - 8px);
10187
+ margin-right: 4px;
10188
+ border-start-end-radius: var(--border-solid-border-radius, 7px);
10189
+ }
10190
+ .MobileActions-module_mobileActionsExpandButton__XuHNU:not(:only-child):focus-visible::after {
10191
+ border-start-end-radius: var(--border-focus-ring-border-radius, 10px);
10192
+ }
10193
+ .MobileActions-module_mobileActionsChevronSquare__SPIsI {
10194
+ display: flex;
10195
+ justify-content: center;
10196
+ align-items: center;
10197
+ height: 100%;
10198
+ position: absolute;
10199
+ inset-inline-end: 20px;
10200
+ inset-inline-start: auto;
10201
+ }
10202
+ /* stylelint-enable no-descending-specificity */
10203
+ }
10204
+ @keyframes MobileActions-module_slide-up__xezn3 {
10205
+ 0% {
10206
+ transform: translateY(100%);
10207
+ }
10208
+ 50% {
10209
+ transform: translateY(100%);
10210
+ }
10211
+ 100% {
10212
+ transform: translateY(calc(100% - 60px));
10213
+ }
10048
10214
  }
10049
10215
  /** THIS IS AN AUTOGENERATED FILE **/
10050
10216
  /** THIS IS AN AUTOGENERATED FILE **/
@@ -10100,9 +10266,11 @@
10100
10266
  }
10101
10267
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRow__Ifqiu {
10102
10268
  background-color: var(--color-white, #ffffff);
10269
+ margin-bottom: 3px;
10103
10270
  }
10104
10271
  .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_titleRow__Ifqiu {
10105
10272
  background-color: var(--color-white, #ffffff);
10273
+ margin-bottom: 3px;
10106
10274
  }
10107
10275
  .TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
10108
10276
  max-width: 1392px;
@@ -10120,11 +10288,6 @@
10120
10288
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10121
10289
  border-bottom: 1px solid var(--color-gray-300, #eaeaec);
10122
10290
  }
10123
- @container (max-width: 511px) {
10124
- .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10125
- padding-bottom: 12px;
10126
- }
10127
- }
10128
10291
  .TitleBlock-module_titleRowInnerContent__NhTHV {
10129
10292
  position: relative;
10130
10293
  display: flex;
@@ -10132,7 +10295,7 @@
10132
10295
  align-items: center;
10133
10296
  min-height: 5.25rem;
10134
10297
  justify-content: space-between;
10135
- border-bottom: 0.083rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10298
+ border-bottom: 0.1875rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10136
10299
  }
10137
10300
  .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_titleRowInnerContent__NhTHV {
10138
10301
  border-bottom-color: rgba(var(--color-purple-700-rgb, 74, 35, 77), 0.2);
@@ -10145,11 +10308,6 @@
10145
10308
  border-bottom: none;
10146
10309
  }
10147
10310
  }
10148
- @container (max-width: 511px) {
10149
- .TitleBlock-module_titleRowInnerContent__NhTHV {
10150
- flex-wrap: wrap;
10151
- }
10152
- }
10153
10311
  .TitleBlock-module_title__c5JWR {
10154
10312
  display: flex;
10155
10313
  align-items: center;
@@ -10232,10 +10390,10 @@
10232
10390
  }
10233
10391
  @container (max-width: calc(1080px - 1px)) {
10234
10392
  .TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
10235
- font-size: var(--typography-heading-3-font-size, 1.375rem);
10236
- line-height: var(--typography-heading-3-line-height, 1.875rem);
10237
- letter-spacing: var(--typography-heading-3-letter-spacing, normal);
10238
- padding: 8px 0;
10393
+ font-size: var(--typography-heading-4-font-size, 1.125rem);
10394
+ line-height: var(--typography-heading-4-line-height, 1.5rem);
10395
+ letter-spacing: var(--typography-heading-4-letter-spacing, normal);
10396
+ padding: 0;
10239
10397
  }
10240
10398
  }
10241
10399
  .TitleBlock-module_avatar__mEjJ8 {
@@ -10267,7 +10425,7 @@
10267
10425
  margin-inline-end: var(--spacing-xs, 0.375rem);
10268
10426
  margin-inline-start: 0;
10269
10427
  }
10270
- @media (max-width: 511px) {
10428
+ @container (max-width: calc(1080px - 1px)) {
10271
10429
  .TitleBlock-module_hamburger__qe4R0 {
10272
10430
  display: flex;
10273
10431
  align-items: center;
@@ -10370,13 +10528,9 @@
10370
10528
  .TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
10371
10529
  display: flex;
10372
10530
  width: 100%;
10531
+ margin-top: -0.1875rem;
10373
10532
  justify-content: space-between;
10374
10533
  }
10375
- @container (max-width: calc(768px - 1px)) {
10376
- .TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
10377
- height: 3.75rem;
10378
- }
10379
- }
10380
10534
  .TitleBlock-module_titleAndAdjacent__Q7W-m {
10381
10535
  display: flex;
10382
10536
  min-width: 0;
@@ -10457,7 +10611,7 @@
10457
10611
  .TitleBlock-module_navigationTabEdgeShadowRight__xkIWc, .TitleBlock-module_navigationTabEdgeShadowLeft__9pGhR {
10458
10612
  display: block;
10459
10613
  position: absolute;
10460
- top: 3.667rem;
10614
+ top: 3.5625rem;
10461
10615
  width: 3.75rem;
10462
10616
  height: 3.75rem;
10463
10617
  background: linear-gradient(0deg, var(--color-purple-600, #5f3361), rgba(var(--color-purple-600-rgb, 95, 51, 97), 0));
@@ -10510,17 +10664,10 @@
10510
10664
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_secondaryActionsContainer__-4q0l {
10511
10665
  color: var(--color-blue-500, #0168b3);
10512
10666
  }
10513
- .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowCombinedMenu__CTddK {
10514
- display: none;
10515
- }
10516
10667
  @container (max-width: calc(1080px - 1px)) {
10517
- .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryButtonContainer__xFL9X,
10518
- .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowMenu__gvmgW {
10668
+ .TitleBlock-module_secondaryActionsContainer__-4q0l {
10519
10669
  display: none;
10520
10670
  }
10521
- .TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowCombinedMenu__CTddK {
10522
- display: flex;
10523
- }
10524
10671
  }
10525
10672
  .TitleBlock-module_breadcrumb__lVNKz {
10526
10673
  appearance: none;
@@ -10558,16 +10705,6 @@
10558
10705
  border-style: var(--border-focus-ring-border-style, solid);
10559
10706
  inset: calc(-2 * var(--border-focus-ring-border-width, 2px) - var(--border-focus-ring-border-width, 2px));
10560
10707
  }
10561
- @container (max-width: calc(1080px - 1px)) {
10562
- .TitleBlock-module_breadcrumb__lVNKz {
10563
- display: none;
10564
- }
10565
- @media only screen and (hover: none) {
10566
- .TitleBlock-module_breadcrumb__lVNKz {
10567
- display: flex;
10568
- }
10569
- }
10570
- }
10571
10708
  @media only screen {
10572
10709
  @container (max-width: 1644px) {
10573
10710
  .TitleBlock-module_breadcrumb__lVNKz {
@@ -10579,6 +10716,11 @@
10579
10716
  }
10580
10717
  }
10581
10718
  }
10719
+ @container (max-width: calc(1080px - 1px)) {
10720
+ .TitleBlock-module_breadcrumb__lVNKz {
10721
+ display: none;
10722
+ }
10723
+ }
10582
10724
  .TitleBlock-module_breadcrumbTextLink__ngx82 {
10583
10725
  clip-path: rect(0 0 0 0);
10584
10726
  height: 1px;
@@ -10672,26 +10814,8 @@
10672
10814
  color: var(--color-blue-500, #0168b3);
10673
10815
  background-color: rgba(var(--color-blue-500-rgb, 1, 104, 179), 0.1);
10674
10816
  }
10675
- @container (max-width: calc(1080px - 1px)) {
10676
- .TitleBlock-module_circle__68z-T {
10677
- display: none;
10678
- }
10679
- }
10680
10817
  /* stylelint-enable no-descending-specificity */
10681
10818
  }
10682
- .TitleBlock-module_staticIcon__5jeBS {
10683
- display: none;
10684
- width: 20px;
10685
- height: 20px;
10686
- }
10687
- @container (max-width: calc(1080px - 1px)) {
10688
- @media (min-width: 512px) {
10689
- .TitleBlock-module_staticIcon__5jeBS {
10690
- display: flex;
10691
- }
10692
- }
10693
- }
10694
-
10695
10819
  @keyframes TitleBlock-module_slide-fade__o5TnP {
10696
10820
  0% {
10697
10821
  display: none;
@@ -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, }: 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, autoHideMobileActionsMenu, }: TitleBlockProps): JSX.Element;
8
8
  displayName: string;
9
9
  };
@@ -1,14 +1,13 @@
1
- import { type DefaultActionProps, type PrimaryActionProps, type SecondaryActionsProps, type TitleBlockMenuItemProps } from '../types';
1
+ import { type DefaultActionProps, type PrimaryActionProps, type TitleBlockMenuItemProps } from '../types';
2
2
  type MainActionsProps = {
3
3
  primaryAction?: PrimaryActionProps;
4
4
  defaultAction?: DefaultActionProps;
5
5
  reversed?: boolean;
6
- secondaryActions?: SecondaryActionsProps;
7
- secondaryOverflowMenuItems?: TitleBlockMenuItemProps[];
6
+ overflowMenuItems?: TitleBlockMenuItemProps[];
8
7
  showOverflowMenu?: boolean;
9
8
  };
10
9
  export declare const MainActions: {
11
- ({ primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, reversed, }: MainActionsProps): JSX.Element;
10
+ ({ primaryAction, defaultAction, reversed, overflowMenuItems, showOverflowMenu, }: MainActionsProps): JSX.Element;
12
11
  displayName: string;
13
12
  };
14
13
  export {};
@@ -0,0 +1,14 @@
1
+ import type { ButtonProps } from "../../Button";
2
+ import { type DefaultActionProps, type PrimaryActionProps, type SecondaryActionsProps, type TitleBlockMenuItemProps } from '../types';
3
+ export type MobileActionsProps = {
4
+ primaryAction?: PrimaryActionProps;
5
+ defaultAction?: DefaultActionProps;
6
+ secondaryActions?: SecondaryActionsProps;
7
+ secondaryOverflowMenuItems?: TitleBlockMenuItemProps[];
8
+ drawerHandleLabelIconPosition?: ButtonProps['iconPosition'];
9
+ autoHide?: boolean;
10
+ };
11
+ export declare const MobileActions: {
12
+ ({ primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, drawerHandleLabelIconPosition, autoHide, }: MobileActionsProps): JSX.Element;
13
+ displayName: string;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "0.0.0-canary-04-titleblock-logic-20251211225600",
3
+ "version": "0.0.0-canary-guidance-block-codemod-20251212045145",
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.083rem;
17
+ $title-block-separator-height: 0.1875rem;
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;
@@ -57,10 +57,12 @@
57
57
 
58
58
  .lightVariant .titleRow {
59
59
  background-color: $color-white;
60
+ margin-bottom: 3px; // needed to correctly position the active tab label :after element
60
61
  }
61
62
 
62
63
  .adminVariant .titleRow {
63
64
  background-color: $color-white;
65
+ margin-bottom: 3px; // needed to correctly position the active tab label :after element
64
66
  }
65
67
 
66
68
  %titleBlockInner {
@@ -82,10 +84,6 @@
82
84
 
83
85
  .lightVariant .titleRowInner {
84
86
  border-bottom: 1px solid $color-gray-300;
85
-
86
- @include title-block-xsmall {
87
- padding-bottom: 12px;
88
- }
89
87
  }
90
88
 
91
89
  .rowBelowSeparatorInner {
@@ -114,10 +112,6 @@
114
112
  @include title-block-medium-and-small {
115
113
  border-bottom: none;
116
114
  }
117
-
118
- @include title-block-xsmall {
119
- flex-wrap: wrap;
120
- }
121
115
  }
122
116
 
123
117
  .title {
@@ -208,10 +202,10 @@
208
202
  }
209
203
 
210
204
  @include title-block-medium-and-small {
211
- font-size: $typography-heading-3-font-size;
212
- line-height: $typography-heading-3-line-height;
213
- letter-spacing: $typography-heading-3-letter-spacing;
214
- padding: 8px 0;
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;
215
209
  }
216
210
  }
217
211
 
@@ -247,7 +241,7 @@
247
241
 
248
242
  @include ca-margin($end: $spacing-xs);
249
243
 
250
- @media (max-width: 511px) {
244
+ @include title-block-medium-and-small {
251
245
  display: flex;
252
246
  align-items: center;
253
247
  }
@@ -357,11 +351,8 @@
357
351
  .rowBelowSeparatorInnerContent {
358
352
  display: flex;
359
353
  width: 100%;
354
+ margin-top: -$title-block-separator-height;
360
355
  justify-content: space-between;
361
-
362
- @include title-block-small {
363
- height: $tab-container-height-small;
364
- }
365
356
  }
366
357
 
367
358
  .titleAndAdjacent {
@@ -527,19 +518,8 @@
527
518
  color: $color-blue-500;
528
519
  }
529
520
 
530
- .secondaryOverflowCombinedMenu {
531
- display: none;
532
- }
533
-
534
521
  @include title-block-medium-and-small {
535
- .secondaryButtonContainer,
536
- .secondaryOverflowMenu {
537
- display: none;
538
- }
539
-
540
- .secondaryOverflowCombinedMenu {
541
- display: flex;
542
- }
522
+ display: none;
543
523
  }
544
524
  }
545
525
 
@@ -581,15 +561,6 @@
581
561
  }
582
562
  }
583
563
 
584
- @include title-block-medium-and-small {
585
- display: none;
586
-
587
- // Note: This media query is necessary to override the above on tablets and handheld devices
588
- @media only screen and (hover: none) {
589
- display: flex;
590
- }
591
- }
592
-
593
564
  @media only screen {
594
565
  @container (max-width: #{$breadcrumb-breakpoint-width}) {
595
566
  position: relative;
@@ -599,6 +570,10 @@
599
570
  @include ca-position($start: 0);
600
571
  }
601
572
  }
573
+
574
+ @include title-block-medium-and-small {
575
+ display: none;
576
+ }
602
577
  }
603
578
 
604
579
  @mixin visually-hidden {
@@ -721,26 +696,10 @@
721
696
  color: $color-blue-500;
722
697
  background-color: rgba($color-blue-500-rgb, 0.1);
723
698
  }
724
-
725
- @include title-block-medium-and-small {
726
- display: none;
727
- }
728
699
  }
729
700
  /* stylelint-enable no-descending-specificity */
730
701
  }
731
702
 
732
- .staticIcon {
733
- display: none;
734
- width: 20px;
735
- height: 20px;
736
-
737
- @include title-block-medium-and-small {
738
- @media (min-width: 512px) {
739
- display: flex;
740
- }
741
- }
742
- }
743
-
744
703
  @keyframes slide-fade {
745
704
  0% {
746
705
  display: none;