@kaizen/components 0.0.0-canary-guidance-block-codemod-20251215033932 → 0.0.0-canary-01-titleblock-20251216220648
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/codemods/migrateGuidanceBlockActionsToActionsSlot/transformActionsToActionsSlot.spec.ts +105 -0
- package/codemods/utils/transformV1ButtonPropsToButtonOrLinkButton.ts +4 -14
- package/dist/cjs/src/MenuV1/index.cjs +4 -3
- package/dist/cjs/src/TitleBlock/TitleBlock.cjs +32 -36
- package/dist/cjs/src/TitleBlock/TitleBlock.module.scss.cjs +5 -1
- package/dist/cjs/src/TitleBlock/subcomponents/MainActions.cjs +90 -45
- package/dist/cjs/src/TitleBlock/subcomponents/MainActions.module.scss.cjs +3 -1
- package/dist/cjs/src/TitleBlock/subcomponents/SecondaryActions.cjs +51 -14
- package/dist/esm/src/MenuV1/index.mjs +5 -3
- package/dist/esm/src/TitleBlock/TitleBlock.mjs +33 -37
- package/dist/esm/src/TitleBlock/TitleBlock.module.scss.mjs +5 -1
- package/dist/esm/src/TitleBlock/subcomponents/MainActions.mjs +92 -47
- package/dist/esm/src/TitleBlock/subcomponents/MainActions.module.scss.mjs +3 -1
- package/dist/esm/src/TitleBlock/subcomponents/SecondaryActions.mjs +51 -14
- package/dist/styles.css +89 -210
- package/dist/types/TitleBlock/TitleBlock.d.ts +1 -1
- package/dist/types/TitleBlock/subcomponents/MainActions.d.ts +4 -3
- package/package.json +1 -1
- package/src/Avatar/Avatar.module.css +1 -0
- package/src/TitleBlock/TitleBlock.module.scss +63 -19
- package/src/TitleBlock/TitleBlock.spec.tsx +33 -461
- package/src/TitleBlock/TitleBlock.tsx +7 -24
- package/src/TitleBlock/_docs/TitleBlock.stories.tsx +59 -12
- package/src/TitleBlock/_mixins.scss +6 -0
- package/src/TitleBlock/subcomponents/MainActions.module.scss +20 -2
- package/src/TitleBlock/subcomponents/MainActions.tsx +127 -70
- package/src/TitleBlock/subcomponents/SecondaryActions.tsx +105 -45
- package/src/TitleBlock/subcomponents/Toolbar.tsx +1 -0
- package/dist/cjs/src/MenuV1/subcomponents/MenuHeading/MenuHeading.cjs +0 -27
- package/dist/cjs/src/MenuV1/subcomponents/MenuHeading/MenuHeading.module.scss.cjs +0 -6
- package/dist/cjs/src/TitleBlock/subcomponents/MobileActions.cjs +0 -306
- package/dist/cjs/src/TitleBlock/subcomponents/MobileActions.module.scss.cjs +0 -16
- package/dist/esm/src/MenuV1/subcomponents/MenuHeading/MenuHeading.mjs +0 -21
- package/dist/esm/src/MenuV1/subcomponents/MenuHeading/MenuHeading.module.scss.mjs +0 -4
- package/dist/esm/src/TitleBlock/subcomponents/MobileActions.mjs +0 -300
- package/dist/esm/src/TitleBlock/subcomponents/MobileActions.module.scss.mjs +0 -14
- package/dist/types/TitleBlock/subcomponents/MobileActions.d.ts +0 -14
- package/src/TitleBlock/subcomponents/MobileActions.module.scss +0 -208
- package/src/TitleBlock/subcomponents/MobileActions.spec.tsx +0 -210
- package/src/TitleBlock/subcomponents/MobileActions.tsx +0 -472
package/dist/styles.css
CHANGED
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
font-family: var(--typography-heading-1-font-family);
|
|
149
149
|
font-weight: var(--typography-heading-1-font-weight);
|
|
150
150
|
letter-spacing: var(--typography-heading-3-letter-spacing);
|
|
151
|
+
overflow-wrap: normal;
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.Avatar-module_initials__85roP.Avatar-module_longName__02zNk::before {
|
|
@@ -10014,203 +10015,29 @@
|
|
|
10014
10015
|
justify-content: flex-end;
|
|
10015
10016
|
flex-grow: 1;
|
|
10016
10017
|
flex-shrink: 0;
|
|
10018
|
+
white-space: nowrap;
|
|
10019
|
+
}
|
|
10020
|
+
.MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
|
|
10021
|
+
display: none;
|
|
10017
10022
|
margin-inline-end: 0;
|
|
10018
|
-
margin-inline-start: calc(1.5rem / 2);
|
|
10019
10023
|
}
|
|
10020
10024
|
@container (max-width: calc(768px - 1px)) {
|
|
10021
10025
|
.MainActions-module_mainActionsContainer__pk-78 {
|
|
10022
|
-
|
|
10026
|
+
justify-content: flex-start;
|
|
10027
|
+
padding-left: 2.75rem;
|
|
10023
10028
|
}
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
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;
|
|
10029
|
+
@media (max-width: 360px) {
|
|
10030
|
+
.MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButton__VbER1 {
|
|
10031
|
+
display: none;
|
|
10032
|
+
margin-inline-end: 0;
|
|
10033
|
+
}
|
|
10034
|
+
.MainActions-module_mainActionsContainer__pk-78 .MainActions-module_defaultActionButtonMinimized__XePRS {
|
|
10035
|
+
display: flex;
|
|
10036
|
+
margin-inline-end: 3px;
|
|
10037
|
+
margin-left: -0.5rem;
|
|
10038
|
+
}
|
|
10074
10039
|
}
|
|
10075
10040
|
}
|
|
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
|
-
}
|
|
10214
10041
|
}
|
|
10215
10042
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
10216
10043
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -10266,11 +10093,9 @@
|
|
|
10266
10093
|
}
|
|
10267
10094
|
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRow__Ifqiu {
|
|
10268
10095
|
background-color: var(--color-white, #ffffff);
|
|
10269
|
-
margin-bottom: 3px;
|
|
10270
10096
|
}
|
|
10271
10097
|
.TitleBlock-module_adminVariant__s95nS .TitleBlock-module_titleRow__Ifqiu {
|
|
10272
10098
|
background-color: var(--color-white, #ffffff);
|
|
10273
|
-
margin-bottom: 3px;
|
|
10274
10099
|
}
|
|
10275
10100
|
.TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
|
|
10276
10101
|
max-width: 1392px;
|
|
@@ -10282,20 +10107,36 @@
|
|
|
10282
10107
|
}
|
|
10283
10108
|
@container (max-width: calc(1080px - 1px)) {
|
|
10284
10109
|
.TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
|
|
10285
|
-
|
|
10110
|
+
padding-right: 20px;
|
|
10111
|
+
margin: 0;
|
|
10112
|
+
}
|
|
10113
|
+
@media (max-width: 1023px) {
|
|
10114
|
+
.TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
|
|
10115
|
+
padding-left: 20px;
|
|
10116
|
+
}
|
|
10117
|
+
}
|
|
10118
|
+
@media (max-width: 759px) {
|
|
10119
|
+
.TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
|
|
10120
|
+
padding-left: 0px;
|
|
10121
|
+
}
|
|
10286
10122
|
}
|
|
10287
10123
|
}
|
|
10288
10124
|
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
|
|
10289
10125
|
border-bottom: 1px solid var(--color-gray-300, #eaeaec);
|
|
10290
10126
|
}
|
|
10127
|
+
@container (max-width: 511px) {
|
|
10128
|
+
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
|
|
10129
|
+
padding-bottom: 12px;
|
|
10130
|
+
}
|
|
10131
|
+
}
|
|
10291
10132
|
.TitleBlock-module_titleRowInnerContent__NhTHV {
|
|
10133
|
+
padding-block: 20px;
|
|
10292
10134
|
position: relative;
|
|
10293
10135
|
display: flex;
|
|
10294
10136
|
width: 100%;
|
|
10295
10137
|
align-items: center;
|
|
10296
|
-
min-height: 5.25rem;
|
|
10297
10138
|
justify-content: space-between;
|
|
10298
|
-
border-bottom: 0.
|
|
10139
|
+
border-bottom: 0.083rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
|
|
10299
10140
|
}
|
|
10300
10141
|
.TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_titleRowInnerContent__NhTHV {
|
|
10301
10142
|
border-bottom-color: rgba(var(--color-purple-700-rgb, 74, 35, 77), 0.2);
|
|
@@ -10308,6 +10149,12 @@
|
|
|
10308
10149
|
border-bottom: none;
|
|
10309
10150
|
}
|
|
10310
10151
|
}
|
|
10152
|
+
@media (max-width: 670px) {
|
|
10153
|
+
.TitleBlock-module_titleRowInnerContent__NhTHV {
|
|
10154
|
+
flex-direction: column;
|
|
10155
|
+
align-items: flex-start;
|
|
10156
|
+
}
|
|
10157
|
+
}
|
|
10311
10158
|
.TitleBlock-module_title__c5JWR {
|
|
10312
10159
|
display: flex;
|
|
10313
10160
|
align-items: center;
|
|
@@ -10390,10 +10237,10 @@
|
|
|
10390
10237
|
}
|
|
10391
10238
|
@container (max-width: calc(1080px - 1px)) {
|
|
10392
10239
|
.TitleBlock-module_titleTextOverride__VhhQU.TitleBlock-module_titleTextOverride__VhhQU {
|
|
10393
|
-
font-size: var(--typography-heading-
|
|
10394
|
-
line-height: var(--typography-heading-
|
|
10395
|
-
letter-spacing: var(--typography-heading-
|
|
10396
|
-
padding: 0;
|
|
10240
|
+
font-size: var(--typography-heading-3-font-size, 1.375rem);
|
|
10241
|
+
line-height: var(--typography-heading-3-line-height, 1.875rem);
|
|
10242
|
+
letter-spacing: var(--typography-heading-3-letter-spacing, normal);
|
|
10243
|
+
padding: 8px 0;
|
|
10397
10244
|
}
|
|
10398
10245
|
}
|
|
10399
10246
|
.TitleBlock-module_avatar__mEjJ8 {
|
|
@@ -10422,10 +10269,14 @@
|
|
|
10422
10269
|
}
|
|
10423
10270
|
.TitleBlock-module_hamburger__qe4R0 {
|
|
10424
10271
|
display: none;
|
|
10425
|
-
margin-inline-end: var(--spacing-xs, 0.375rem);
|
|
10426
|
-
margin-inline-start: 0;
|
|
10427
10272
|
}
|
|
10428
|
-
@
|
|
10273
|
+
@media (max-width: 1023px) and (hover: none) {
|
|
10274
|
+
.TitleBlock-module_hamburger__qe4R0 {
|
|
10275
|
+
display: flex;
|
|
10276
|
+
align-items: center;
|
|
10277
|
+
}
|
|
10278
|
+
}
|
|
10279
|
+
@media (max-width: 759px) {
|
|
10429
10280
|
.TitleBlock-module_hamburger__qe4R0 {
|
|
10430
10281
|
display: flex;
|
|
10431
10282
|
align-items: center;
|
|
@@ -10528,9 +10379,13 @@
|
|
|
10528
10379
|
.TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
|
|
10529
10380
|
display: flex;
|
|
10530
10381
|
width: 100%;
|
|
10531
|
-
margin-top: -0.1875rem;
|
|
10532
10382
|
justify-content: space-between;
|
|
10533
10383
|
}
|
|
10384
|
+
@container (max-width: calc(768px - 1px)) {
|
|
10385
|
+
.TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
|
|
10386
|
+
height: 3.75rem;
|
|
10387
|
+
}
|
|
10388
|
+
}
|
|
10534
10389
|
.TitleBlock-module_titleAndAdjacent__Q7W-m {
|
|
10535
10390
|
display: flex;
|
|
10536
10391
|
min-width: 0;
|
|
@@ -10611,7 +10466,7 @@
|
|
|
10611
10466
|
.TitleBlock-module_navigationTabEdgeShadowRight__xkIWc, .TitleBlock-module_navigationTabEdgeShadowLeft__9pGhR {
|
|
10612
10467
|
display: block;
|
|
10613
10468
|
position: absolute;
|
|
10614
|
-
top: 3.
|
|
10469
|
+
top: 3.667rem;
|
|
10615
10470
|
width: 3.75rem;
|
|
10616
10471
|
height: 3.75rem;
|
|
10617
10472
|
background: linear-gradient(0deg, var(--color-purple-600, #5f3361), rgba(var(--color-purple-600-rgb, 95, 51, 97), 0));
|
|
@@ -10664,10 +10519,22 @@
|
|
|
10664
10519
|
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_secondaryActionsContainer__-4q0l, .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_secondaryActionsContainer__-4q0l {
|
|
10665
10520
|
color: var(--color-blue-500, #0168b3);
|
|
10666
10521
|
}
|
|
10522
|
+
.TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowCombinedMenu__CTddK {
|
|
10523
|
+
display: none;
|
|
10524
|
+
}
|
|
10667
10525
|
@container (max-width: calc(1080px - 1px)) {
|
|
10668
|
-
.TitleBlock-module_secondaryActionsContainer__-4q0l
|
|
10526
|
+
.TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryButtonContainer__xFL9X,
|
|
10527
|
+
.TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowMenu__gvmgW {
|
|
10669
10528
|
display: none;
|
|
10670
10529
|
}
|
|
10530
|
+
.TitleBlock-module_secondaryActionsContainer__-4q0l .TitleBlock-module_secondaryOverflowCombinedMenu__CTddK {
|
|
10531
|
+
display: flex;
|
|
10532
|
+
}
|
|
10533
|
+
}
|
|
10534
|
+
@container (max-width: calc(768px - 1px)) {
|
|
10535
|
+
.TitleBlock-module_secondaryActionsContainer__-4q0l {
|
|
10536
|
+
margin-top: -3px;
|
|
10537
|
+
}
|
|
10671
10538
|
}
|
|
10672
10539
|
.TitleBlock-module_breadcrumb__lVNKz {
|
|
10673
10540
|
appearance: none;
|
|
@@ -10705,6 +10572,11 @@
|
|
|
10705
10572
|
border-style: var(--border-focus-ring-border-style, solid);
|
|
10706
10573
|
inset: calc(-2 * var(--border-focus-ring-border-width, 2px) - var(--border-focus-ring-border-width, 2px));
|
|
10707
10574
|
}
|
|
10575
|
+
@media (max-width: 1023px) {
|
|
10576
|
+
.TitleBlock-module_breadcrumb__lVNKz {
|
|
10577
|
+
display: none;
|
|
10578
|
+
}
|
|
10579
|
+
}
|
|
10708
10580
|
@media only screen {
|
|
10709
10581
|
@container (max-width: 1644px) {
|
|
10710
10582
|
.TitleBlock-module_breadcrumb__lVNKz {
|
|
@@ -10716,12 +10588,8 @@
|
|
|
10716
10588
|
}
|
|
10717
10589
|
}
|
|
10718
10590
|
}
|
|
10719
|
-
@container (max-width: calc(1080px - 1px)) {
|
|
10720
|
-
.TitleBlock-module_breadcrumb__lVNKz {
|
|
10721
|
-
display: none;
|
|
10722
|
-
}
|
|
10723
|
-
}
|
|
10724
10591
|
.TitleBlock-module_breadcrumbTextLink__ngx82 {
|
|
10592
|
+
display: none;
|
|
10725
10593
|
clip-path: rect(0 0 0 0);
|
|
10726
10594
|
height: 1px;
|
|
10727
10595
|
overflow: hidden;
|
|
@@ -10814,8 +10682,19 @@
|
|
|
10814
10682
|
color: var(--color-blue-500, #0168b3);
|
|
10815
10683
|
background-color: rgba(var(--color-blue-500-rgb, 1, 104, 179), 0.1);
|
|
10816
10684
|
}
|
|
10685
|
+
@media (max-width: 1023px) {
|
|
10686
|
+
.TitleBlock-module_circle__68z-T {
|
|
10687
|
+
display: none;
|
|
10688
|
+
}
|
|
10689
|
+
}
|
|
10817
10690
|
/* stylelint-enable no-descending-specificity */
|
|
10818
10691
|
}
|
|
10692
|
+
.TitleBlock-module_staticIcon__5jeBS {
|
|
10693
|
+
display: none;
|
|
10694
|
+
width: 20px;
|
|
10695
|
+
height: 20px;
|
|
10696
|
+
}
|
|
10697
|
+
|
|
10819
10698
|
@keyframes TitleBlock-module_slide-fade__o5TnP {
|
|
10820
10699
|
0% {
|
|
10821
10700
|
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,
|
|
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
|
-
|
|
6
|
+
secondaryActions?: SecondaryActionsProps;
|
|
7
|
+
secondaryOverflowMenuItems?: TitleBlockMenuItemProps[];
|
|
7
8
|
showOverflowMenu?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export declare const MainActions: {
|
|
10
|
-
({ primaryAction, defaultAction,
|
|
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": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-01-titleblock-20251216220648",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
@import './variables';
|
|
11
11
|
|
|
12
12
|
@layer kz-components {
|
|
13
|
-
$title-block-margin-width-on-medium-and-small: 12px;
|
|
14
13
|
$breadcrumb-circle-width: 48px;
|
|
15
14
|
$breadcrumb-breakpoint-width: $layout-content-max-width + $layout-content-side-margin * 2 +
|
|
16
15
|
$breadcrumb-circle-width * 2.25;
|
|
17
|
-
$title-block-separator-height: 0.
|
|
16
|
+
$title-block-separator-height: 0.083rem;
|
|
18
17
|
$tab-container-height-default: $ca-grid * 3;
|
|
19
18
|
$tab-container-height-small: $ca-grid * 2.5;
|
|
20
19
|
$tab-container-height-default-collapsed: 0;
|
|
@@ -57,12 +56,10 @@
|
|
|
57
56
|
|
|
58
57
|
.lightVariant .titleRow {
|
|
59
58
|
background-color: $color-white;
|
|
60
|
-
margin-bottom: 3px; // needed to correctly position the active tab label :after element
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
.adminVariant .titleRow {
|
|
64
62
|
background-color: $color-white;
|
|
65
|
-
margin-bottom: 3px; // needed to correctly position the active tab label :after element
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
%titleBlockInner {
|
|
@@ -74,7 +71,14 @@
|
|
|
74
71
|
min-width: 0; // this is an important trick to prevent flexbox items from overflowing
|
|
75
72
|
|
|
76
73
|
@include title-block-medium-and-small {
|
|
77
|
-
|
|
74
|
+
padding-right: 20px;
|
|
75
|
+
margin: 0;
|
|
76
|
+
@media (max-width: 1023px) {
|
|
77
|
+
padding-left: 20px;
|
|
78
|
+
}
|
|
79
|
+
@media (max-width: 759px) {
|
|
80
|
+
padding-left: 0px;
|
|
81
|
+
}
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
|
|
@@ -84,6 +88,10 @@
|
|
|
84
88
|
|
|
85
89
|
.lightVariant .titleRowInner {
|
|
86
90
|
border-bottom: 1px solid $color-gray-300;
|
|
91
|
+
|
|
92
|
+
@include title-block-xsmall {
|
|
93
|
+
padding-bottom: 12px;
|
|
94
|
+
}
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
.rowBelowSeparatorInner {
|
|
@@ -91,11 +99,11 @@
|
|
|
91
99
|
}
|
|
92
100
|
|
|
93
101
|
.titleRowInnerContent {
|
|
102
|
+
padding-block: 20px;
|
|
94
103
|
position: relative;
|
|
95
104
|
display: flex;
|
|
96
105
|
width: 100%;
|
|
97
106
|
align-items: center;
|
|
98
|
-
min-height: $ca-grid * 3.5;
|
|
99
107
|
justify-content: space-between;
|
|
100
108
|
border-bottom: $title-block-separator-height solid rgba($color-white-rgb, 0.1);
|
|
101
109
|
|
|
@@ -112,6 +120,11 @@
|
|
|
112
120
|
@include title-block-medium-and-small {
|
|
113
121
|
border-bottom: none;
|
|
114
122
|
}
|
|
123
|
+
|
|
124
|
+
@media (max-width: 670px) {
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
align-items: flex-start;
|
|
127
|
+
}
|
|
115
128
|
}
|
|
116
129
|
|
|
117
130
|
.title {
|
|
@@ -202,10 +215,10 @@
|
|
|
202
215
|
}
|
|
203
216
|
|
|
204
217
|
@include title-block-medium-and-small {
|
|
205
|
-
font-size: $typography-heading-
|
|
206
|
-
line-height: $typography-heading-
|
|
207
|
-
letter-spacing: $typography-heading-
|
|
208
|
-
padding: 0;
|
|
218
|
+
font-size: $typography-heading-3-font-size;
|
|
219
|
+
line-height: $typography-heading-3-line-height;
|
|
220
|
+
letter-spacing: $typography-heading-3-letter-spacing;
|
|
221
|
+
padding: 8px 0;
|
|
209
222
|
}
|
|
210
223
|
}
|
|
211
224
|
|
|
@@ -238,10 +251,12 @@
|
|
|
238
251
|
|
|
239
252
|
.hamburger {
|
|
240
253
|
display: none;
|
|
254
|
+
@media (max-width: 1023px) and (hover: none) {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
}
|
|
241
258
|
|
|
242
|
-
@
|
|
243
|
-
|
|
244
|
-
@include title-block-medium-and-small {
|
|
259
|
+
@media (max-width: 759px) {
|
|
245
260
|
display: flex;
|
|
246
261
|
align-items: center;
|
|
247
262
|
}
|
|
@@ -351,8 +366,11 @@
|
|
|
351
366
|
.rowBelowSeparatorInnerContent {
|
|
352
367
|
display: flex;
|
|
353
368
|
width: 100%;
|
|
354
|
-
margin-top: -$title-block-separator-height;
|
|
355
369
|
justify-content: space-between;
|
|
370
|
+
|
|
371
|
+
@include title-block-small {
|
|
372
|
+
height: $tab-container-height-small;
|
|
373
|
+
}
|
|
356
374
|
}
|
|
357
375
|
|
|
358
376
|
.titleAndAdjacent {
|
|
@@ -518,9 +536,24 @@
|
|
|
518
536
|
color: $color-blue-500;
|
|
519
537
|
}
|
|
520
538
|
|
|
521
|
-
|
|
539
|
+
.secondaryOverflowCombinedMenu {
|
|
522
540
|
display: none;
|
|
523
541
|
}
|
|
542
|
+
|
|
543
|
+
@include title-block-medium-and-small {
|
|
544
|
+
.secondaryButtonContainer,
|
|
545
|
+
.secondaryOverflowMenu {
|
|
546
|
+
display: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.secondaryOverflowCombinedMenu {
|
|
550
|
+
display: flex;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@include title-block-small {
|
|
555
|
+
margin-top: -3px;
|
|
556
|
+
}
|
|
524
557
|
}
|
|
525
558
|
|
|
526
559
|
.breadcrumb {
|
|
@@ -561,6 +594,10 @@
|
|
|
561
594
|
}
|
|
562
595
|
}
|
|
563
596
|
|
|
597
|
+
@media (max-width: 1023px) {
|
|
598
|
+
display: none;
|
|
599
|
+
}
|
|
600
|
+
|
|
564
601
|
@media only screen {
|
|
565
602
|
@container (max-width: #{$breadcrumb-breakpoint-width}) {
|
|
566
603
|
position: relative;
|
|
@@ -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 {
|
|
@@ -595,6 +628,7 @@
|
|
|
595
628
|
}
|
|
596
629
|
|
|
597
630
|
.breadcrumbTextLink {
|
|
631
|
+
display: none;
|
|
598
632
|
// We are using visually hidden here instead of display:none so that a screen reader
|
|
599
633
|
// navigating via 'read mode' (which doesn't trigger hover/focus) will still hear this link name
|
|
600
634
|
@include visually-hidden;
|
|
@@ -696,10 +730,20 @@
|
|
|
696
730
|
color: $color-blue-500;
|
|
697
731
|
background-color: rgba($color-blue-500-rgb, 0.1);
|
|
698
732
|
}
|
|
733
|
+
|
|
734
|
+
@media (max-width: 1023px) {
|
|
735
|
+
display: none;
|
|
736
|
+
}
|
|
699
737
|
}
|
|
700
738
|
/* stylelint-enable no-descending-specificity */
|
|
701
739
|
}
|
|
702
740
|
|
|
741
|
+
.staticIcon {
|
|
742
|
+
display: none;
|
|
743
|
+
width: 20px;
|
|
744
|
+
height: 20px;
|
|
745
|
+
}
|
|
746
|
+
|
|
703
747
|
@keyframes slide-fade {
|
|
704
748
|
0% {
|
|
705
749
|
display: none;
|