@kaizen/components 2.3.6 → 2.4.0

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 (64) hide show
  1. package/dist/cjs/index.cjs +2 -0
  2. package/dist/cjs/src/Container/Container.cjs +1 -1
  3. package/dist/cjs/src/Container/{Container.module.scss.cjs → Container.module.css.cjs} +1 -1
  4. package/dist/cjs/src/Content/Content.cjs +1 -1
  5. package/dist/cjs/src/Content/{Content.module.scss.cjs → Content.module.css.cjs} +1 -1
  6. package/dist/cjs/src/Divider/Divider.cjs +1 -1
  7. package/dist/cjs/src/Divider/Divider.module.css.cjs +10 -0
  8. package/dist/cjs/src/ErrorPage/ErrorPage.cjs +1 -1
  9. package/dist/cjs/src/ErrorPage/ErrorPage.module.css.cjs +6 -0
  10. package/dist/cjs/src/Illustration/Spot/Spot.cjs +9 -0
  11. package/dist/cjs/src/Tag/Tag.cjs +1 -1
  12. package/dist/cjs/src/Tag/Tag.module.css.cjs +30 -0
  13. package/dist/cjs/src/TimeField/TimeField.cjs +6 -1
  14. package/dist/cjs/src/VisuallyHidden/VisuallyHidden.cjs +1 -1
  15. package/dist/cjs/src/VisuallyHidden/{VisuallyHidden.module.scss.cjs → VisuallyHidden.module.css.cjs} +1 -1
  16. package/dist/esm/index.mjs +1 -1
  17. package/dist/esm/src/Container/Container.mjs +1 -1
  18. package/dist/esm/src/Container/Container.module.css.mjs +4 -0
  19. package/dist/esm/src/Content/Content.mjs +1 -1
  20. package/dist/esm/src/Content/{Content.module.scss.mjs → Content.module.css.mjs} +1 -1
  21. package/dist/esm/src/Divider/Divider.mjs +1 -1
  22. package/dist/esm/src/Divider/Divider.module.css.mjs +8 -0
  23. package/dist/esm/src/ErrorPage/ErrorPage.mjs +1 -1
  24. package/dist/esm/src/ErrorPage/ErrorPage.module.css.mjs +4 -0
  25. package/dist/esm/src/Illustration/Spot/Spot.mjs +8 -1
  26. package/dist/esm/src/Tag/Tag.mjs +1 -1
  27. package/dist/esm/src/Tag/Tag.module.css.mjs +28 -0
  28. package/dist/esm/src/TimeField/TimeField.mjs +7 -2
  29. package/dist/esm/src/VisuallyHidden/VisuallyHidden.mjs +1 -1
  30. package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.css.mjs +4 -0
  31. package/dist/styles.css +220 -151
  32. package/dist/types/Illustration/Spot/Spot.d.ts +5 -0
  33. package/package.json +1 -1
  34. package/src/Container/Container.tsx +1 -1
  35. package/src/Content/Content.module.css +15 -0
  36. package/src/Content/Content.tsx +1 -1
  37. package/src/Content/_docs/Content.stories.tsx +1 -1
  38. package/src/Content/_variables.css +5 -0
  39. package/src/Divider/Divider.module.css +41 -0
  40. package/src/Divider/Divider.tsx +1 -1
  41. package/src/ErrorPage/ErrorPage.module.css +5 -0
  42. package/src/ErrorPage/ErrorPage.tsx +1 -1
  43. package/src/Illustration/Spot/Spot.tsx +6 -0
  44. package/src/Illustration/Spot/_docs/Spot.stickersheet.stories.tsx +22 -0
  45. package/src/Tag/Tag.module.css +217 -0
  46. package/src/Tag/Tag.tsx +1 -1
  47. package/src/TimeField/TimeField.tsx +8 -2
  48. package/src/TitleBlock/TitleBlock.module.scss +14 -12
  49. package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
  50. package/dist/cjs/src/Divider/Divider.module.scss.cjs +0 -10
  51. package/dist/cjs/src/ErrorPage/ErrorPage.module.scss.cjs +0 -6
  52. package/dist/cjs/src/Tag/Tag.module.scss.cjs +0 -30
  53. package/dist/esm/src/Container/Container.module.scss.mjs +0 -4
  54. package/dist/esm/src/Divider/Divider.module.scss.mjs +0 -8
  55. package/dist/esm/src/ErrorPage/ErrorPage.module.scss.mjs +0 -4
  56. package/dist/esm/src/Tag/Tag.module.scss.mjs +0 -28
  57. package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.scss.mjs +0 -4
  58. package/src/Content/Content.module.scss +0 -17
  59. package/src/Content/_variables.scss +0 -3
  60. package/src/Divider/Divider.module.scss +0 -39
  61. package/src/ErrorPage/ErrorPage.module.scss +0 -7
  62. package/src/Tag/Tag.module.scss +0 -215
  63. /package/src/Container/{Container.module.scss → Container.module.css} +0 -0
  64. /package/src/VisuallyHidden/{VisuallyHidden.module.scss → VisuallyHidden.module.css} +0 -0
package/dist/styles.css CHANGED
@@ -559,7 +559,7 @@
559
559
  }
560
560
  }
561
561
  @layer kz-components {
562
- .VisuallyHidden-module_srOnly__tTjOK {
562
+ .VisuallyHidden-module_srOnly__-f5sJ {
563
563
  clip-path: rect(0 0 0 0);
564
564
  height: 1px;
565
565
  overflow: hidden;
@@ -568,6 +568,7 @@
568
568
  width: 1px;
569
569
  }
570
570
  }
571
+
571
572
  @layer kz-components {
572
573
  .LoadingSpinner-module_loadingSpinner__Zc2mJ {
573
574
  --loading-spinner-size: 48px;
@@ -2689,29 +2690,37 @@
2689
2690
  }
2690
2691
  }
2691
2692
  @layer kz-components {
2692
- .Container-module_container__jSUGk {
2693
+ .Container-module_container__Aj6o8 {
2693
2694
  display: flex;
2694
2695
  width: 100%;
2695
2696
  justify-content: center;
2696
- }
2697
- .Container-module_container__jSUGk *, .Container-module_container__jSUGk *::after, .Container-module_container__jSUGk *::before {
2698
- box-sizing: border-box;
2697
+
2698
+ * {
2699
+ &,
2700
+ &::after,
2701
+ &::before {
2702
+ box-sizing: border-box;
2703
+ }
2704
+ }
2699
2705
  }
2700
2706
  }
2701
- /** THIS IS AN AUTOGENERATED FILE **/
2707
+
2702
2708
  @layer kz-components {
2703
- .Content-module_content__ZeTRs {
2704
- max-width: 1392px;
2705
- margin: 0 72px;
2709
+ .Content-module_content__DUKqQ {
2710
+ max-width: var(--layout-content-max-width);
2711
+ margin: 0 var(--layout-content-side-margin);
2706
2712
  width: 100%;
2713
+
2714
+ /* Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table) */
2707
2715
  min-width: 0;
2708
- }
2709
- @media (max-width: calc(1080px - 1px)) {
2710
- .Content-module_content__ZeTRs {
2711
- margin: 0 12px;
2716
+
2717
+ /* Currently unable to do media query equations so using a fixed value instead */
2718
+ @media (width <= 1079px) {
2719
+ margin: 0 var(--content-margin-width-on-medium-and-small);
2712
2720
  }
2713
2721
  }
2714
2722
  }
2723
+
2715
2724
  /** THIS IS AN AUTOGENERATED FILE **/
2716
2725
  /** THIS IS AN AUTOGENERATED FILE **/
2717
2726
  /** THIS IS AN AUTOGENERATED FILE **/
@@ -3614,33 +3623,48 @@
3614
3623
  }
3615
3624
  /* stylelint-enable no-descending-specificity */
3616
3625
  }
3617
- /** THIS IS AN AUTOGENERATED FILE **/
3618
- /** THIS IS AN AUTOGENERATED FILE **/
3619
3626
  @layer kz-components {
3620
- .Divider-module_wrapper__K5mht {
3627
+ /*
3628
+ Use different tokens with different opacities across the Zen and Heart themes, by assuming that when Zen is applied there won't be any CSS variables declared.
3629
+ */
3630
+
3631
+ :root {
3632
+ --dt-content-border-color: rgb(var(--color-gray-600-rgb), 0.1);
3633
+ }
3634
+
3635
+ .Divider-module_wrapper__AzvdU {
3621
3636
  width: 100%;
3622
3637
  border: 0;
3623
3638
  margin: 0;
3624
- border-radius: var(--border-solid-border-radius, 7px);
3639
+ border-radius: var(--border-solid-border-radius);
3640
+
3641
+ /*
3642
+ This is here to protect against a global style in a consumer.
3643
+ https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
3644
+ */
3625
3645
  visibility: visible;
3626
3646
  }
3627
- .Divider-module_content__BhDyy, .Divider-module_menuSeparator__kjXV5 {
3628
- border-top: 1px solid;
3629
- border-color: rgba(var(--color-gray-600-rgb, 82, 78, 86), 0.1);
3647
+
3648
+ .Divider-module_content__eq5aD,
3649
+ .Divider-module_menuSeparator__FAvna {
3650
+ border-top: 1px solid var(--dt-content-border-color);
3630
3651
  }
3631
- .Divider-module_canvas__2eQT6 {
3652
+
3653
+ .Divider-module_canvas__G87W- {
3632
3654
  border-top: 1px solid;
3633
3655
  border-bottom: 1px solid;
3634
- border-color: rgba(var(--color-gray-600-rgb, 82, 78, 86), 0.1);
3656
+ border-color: var(--dt-content-border-color);
3635
3657
  }
3636
- .Divider-module_reversed__puJw2 {
3637
- border-color: rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
3658
+
3659
+ .Divider-module_reversed__GuBmn {
3660
+ border-color: rgb(var(--color-white-rgb), 0.1);
3638
3661
  }
3639
- .Divider-module_menuSeparator__kjXV5 {
3640
- /* stylelint-disable-line scss/at-extend-no-missing-placeholder */
3662
+
3663
+ .Divider-module_menuSeparator__FAvna {
3641
3664
  margin: 5px 0;
3642
3665
  }
3643
3666
  }
3667
+
3644
3668
  /** THIS IS AN AUTOGENERATED FILE **/
3645
3669
  /** THIS IS AN AUTOGENERATED FILE **/
3646
3670
  @layer kz-components {
@@ -3841,12 +3865,12 @@
3841
3865
  }
3842
3866
  }
3843
3867
 
3844
- /** THIS IS AN AUTOGENERATED FILE **/
3845
3868
  @layer kz-components {
3846
- .ErrorPage-module_paragraphPadding__-L-qy {
3847
- padding: var(--spacing-24, 1.5rem) 0;
3869
+ .ErrorPage-module_paragraphPadding__PJzGg {
3870
+ padding: var(--spacing-24) 0;
3848
3871
  }
3849
3872
  }
3873
+
3850
3874
  /** THIS IS AN AUTOGENERATED FILE **/
3851
3875
  @layer kz-components {
3852
3876
  .FieldGroup-module_group__74Z9M {
@@ -8477,179 +8501,224 @@
8477
8501
  }
8478
8502
  }
8479
8503
 
8480
- /** THIS IS AN AUTOGENERATED FILE **/
8481
- /** THIS IS AN AUTOGENERATED FILE **/
8482
- /** THIS IS AN AUTOGENERATED FILE **/
8483
- /** THIS IS AN AUTOGENERATED FILE **/
8484
8504
  @layer kz-components {
8485
- .Tag-module_root__uRhoc {
8486
- margin-inline-end: calc(var(--spacing-md, 1.5rem) * 0.5);
8487
- font-size: var(--typography-paragraph-small-font-size, 0.875rem);
8488
- font-weight: var(--typography-paragraph-small-font-weight, 400);
8489
- letter-spacing: var(--typography-paragraph-small-letter-spacing, normal);
8490
- color: var(--color-purple-800, #2f2438);
8505
+ .Tag-module_root__sGbnM {
8506
+ --medium: calc(var(--spacing-md) * 1.25);
8507
+ --small: var(--spacing-md);
8508
+
8509
+ margin-inline-end: calc(var(--spacing-md) * 0.5);
8510
+ font-size: var(--typography-paragraph-small-font-size);
8511
+ font-weight: var(--typography-paragraph-small-font-weight);
8512
+ letter-spacing: var(--typography-paragraph-small-letter-spacing);
8513
+ color: var(--color-purple-800);
8491
8514
  display: inline-block;
8492
- border: var(--border-borderless-border-width, 2px) var(--border-borderless-border-style, solid) var(--border-borderless-border-color, transparent);
8493
- border-radius: calc(var(--spacing-md, 1.5rem) * 0.75);
8494
- padding: 0 calc(var(--spacing-md, 1.5rem) * 0.4);
8515
+ border: var(--border-borderless-border-width) var(--border-borderless-border-style)
8516
+ var(--border-borderless-border-color);
8517
+ border-radius: calc(var(--spacing-md) * 0.75);
8518
+ padding: 0 calc(var(--spacing-md) * 0.4);
8495
8519
  box-sizing: border-box;
8520
+
8521
+ &.Tag-module_profile__lpDJR {
8522
+ padding-left: calc(var(--spacing-md) * 0.2);
8523
+ }
8496
8524
  }
8497
- .Tag-module_root__uRhoc.Tag-module_profile__OoGsS {
8498
- padding-left: calc(var(--spacing-md, 1.5rem) * 0.2);
8499
- }
8500
- .Tag-module_layoutContainer__pBLSz {
8525
+
8526
+ .Tag-module_layoutContainer__cPxSs {
8501
8527
  height: 100%;
8502
8528
  display: flex;
8503
8529
  align-items: center;
8504
8530
  }
8505
- .Tag-module_validationIcon__B-YLv {
8531
+
8532
+ .Tag-module_validationIcon__i87BD {
8506
8533
  align-items: center;
8507
8534
  display: flex;
8508
- color: var(--color-white, #ffffff);
8509
- margin-inline: calc(var(--spacing-md, 1.5rem) * -0.15) var(--spacing-xs, 0.375rem);
8535
+ color: var(--color-white);
8536
+ margin-inline: calc(var(--spacing-md) * -0.15) var(--spacing-xs);
8510
8537
  }
8511
- .Tag-module_profile__OoGsS {
8512
- margin-inline: calc(var(--spacing-md, 1.5rem) * -0.15) var(--spacing-xs, 0.375rem);
8538
+
8539
+ .Tag-module_profile__lpDJR {
8540
+ margin-inline: calc(var(--spacing-md) * -0.15) var(--spacing-xs);
8513
8541
  display: inline-flex;
8514
8542
  align-items: center;
8515
8543
  }
8516
- .Tag-module_textContent__q76X- {
8544
+
8545
+ .Tag-module_textContent__61iwm {
8517
8546
  margin-top: -1px;
8518
- font-family: var(--typography-paragraph-small-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
8519
- font-weight: var(--typography-paragraph-small-font-weight, 400);
8520
- font-size: var(--typography-paragraph-small-font-size, 0.875rem);
8521
- line-height: var(--typography-paragraph-small-line-height, 1.125rem);
8522
- letter-spacing: var(--typography-paragraph-small-letter-spacing, normal);
8547
+ font-family: var(--typography-paragraph-small-font-family);
8548
+ font-weight: var(--typography-paragraph-small-font-weight);
8549
+ font-size: var(--typography-paragraph-small-font-size);
8550
+ line-height: var(--typography-paragraph-small-line-height);
8551
+ letter-spacing: var(--typography-paragraph-small-letter-spacing);
8523
8552
  white-space: nowrap;
8524
8553
  }
8525
- .Tag-module_iconWrapper__aPrKH {
8554
+
8555
+ .Tag-module_iconWrapper__gXgCb {
8526
8556
  --icon-size: 16;
8557
+
8527
8558
  position: relative;
8528
8559
  height: 16px;
8529
8560
  width: 16px;
8530
8561
  }
8531
- .Tag-module_dismissButton__rHv7r {
8562
+
8563
+ .Tag-module_dismissButton__MgLNJ {
8564
+ /* Replace @include button-reset to reset button's style */
8532
8565
  appearance: none;
8533
- display: inline;
8534
8566
  background: transparent;
8535
- color: inherit;
8536
8567
  font: inherit;
8537
8568
  margin: 0;
8538
- padding: 0;
8539
8569
  border: none;
8570
+
8571
+ /* Original style */
8540
8572
  position: relative;
8541
8573
  display: flex;
8542
8574
  height: 100%;
8543
8575
  align-items: center;
8544
- padding: 0 var(--spacing-xs, 0.375rem);
8576
+ padding: 0 var(--spacing-xs);
8545
8577
  margin-inline: -0.225rem -0.6625rem;
8546
- color: rgba(var(--color-purple-800-rgb, 47, 36, 56), 0.7);
8578
+ color: rgb(var(--color-purple-800-rgb), 0.7);
8547
8579
  cursor: pointer;
8580
+
8581
+ &:hover {
8582
+ color: var(--color-purple-800);
8583
+ }
8584
+
8585
+ &:active {
8586
+ color: var(--color-purple-800);
8587
+ }
8588
+
8589
+ svg {
8590
+ position: relative;
8591
+ }
8592
+
8593
+ &:focus {
8594
+ outline: none;
8595
+ }
8596
+
8597
+ &:focus-visible .Tag-module_iconWrapper__gXgCb {
8598
+ color: var(--color-purple-800);
8599
+
8600
+ &::after {
8601
+ --focus-ring-offset: calc((var(--border-focus-ring-border-width)));
8602
+
8603
+ content: '';
8604
+ position: absolute;
8605
+ background: transparent;
8606
+ border-radius: 50%;
8607
+ border-width: var(--border-focus-ring-border-width);
8608
+ border-style: var(--border-focus-ring-border-style);
8609
+ border-color: var(--color-blue-500);
8610
+ inset: calc(-1 * var(--focus-ring-offset));
8611
+ }
8612
+ }
8548
8613
  }
8549
- .Tag-module_dismissButton__rHv7r:hover {
8550
- color: var(--color-purple-800, #2f2438);
8551
- }
8552
- .Tag-module_dismissButton__rHv7r:active {
8553
- color: var(--color-purple-800, #2f2438);
8554
- }
8555
- .Tag-module_dismissButton__rHv7r svg {
8556
- position: relative;
8557
- }
8558
- .Tag-module_dismissButton__rHv7r:focus {
8559
- outline: none;
8560
- }
8561
- .Tag-module_dismissButton__rHv7r:focus-visible .Tag-module_iconWrapper__aPrKH {
8562
- color: var(--color-purple-800, #2f2438);
8563
- }
8564
- .Tag-module_dismissButton__rHv7r:focus-visible .Tag-module_iconWrapper__aPrKH::after {
8565
- content: "";
8566
- position: absolute;
8567
- background: transparent;
8568
- border-radius: 50%;
8569
- border-width: var(--border-focus-ring-border-width, 2px);
8570
- border-style: var(--border-focus-ring-border-style, solid);
8571
- border-color: var(--color-blue-500, #0168b3);
8572
- inset: calc(-1 * calc((var(--border-focus-ring-border-width, 2px))));
8573
- }
8574
- .Tag-module_background__LkzGB {
8614
+
8615
+ .Tag-module_background__DaA0W {
8616
+ /*
8617
+ As our icons are only one-tone, this span places
8618
+ a white background under the dismissible icon to
8619
+ give the illusion of a background colour that is
8620
+ different to the rest of the tag
8621
+ */
8575
8622
  position: absolute;
8576
8623
  display: inline-block;
8577
- width: calc(var(--spacing-xs, 0.375rem) + 0.125rem);
8578
- height: calc(var(--spacing-xs, 0.375rem) + 0.125rem);
8624
+ width: calc(var(--spacing-xs) + 0.125rem); /* optical adjustment */
8625
+ height: calc(var(--spacing-xs) + 0.125rem); /* optical adjustment */
8579
8626
  background-color: white;
8580
8627
  left: 10px;
8581
8628
  top: 10px;
8582
8629
  }
8583
- .Tag-module_truncate__5w7HW {
8630
+
8631
+ .Tag-module_truncate__5kX5V {
8584
8632
  text-overflow: ellipsis;
8585
8633
  overflow-x: hidden;
8586
8634
  white-space: nowrap;
8587
8635
  }
8588
- .Tag-module_inline__pPM-d {
8636
+
8637
+ .Tag-module_inline__QQfqi {
8589
8638
  margin: 0;
8590
8639
  }
8591
- .Tag-module_medium__NkOrv {
8592
- height: calc(var(--spacing-md, 1.5rem) * 1.25);
8593
- }
8594
- .Tag-module_small__-xyNk {
8595
- height: var(--spacing-md, 1.5rem);
8596
- }
8597
- .Tag-module_default__6PVke {
8598
- background-color: var(--color-gray-300, #eaeaec);
8599
- }
8600
- .Tag-module_sentimentPositive__nbqE1 {
8601
- background-color: var(--color-green-100, #e8f8f4);
8602
- }
8603
- .Tag-module_sentimentNeutral__8BtD8 {
8604
- background-color: var(--color-gray-300, #eaeaec);
8640
+
8641
+ .Tag-module_medium__PI53x {
8642
+ height: var(--medium);
8605
8643
  }
8606
- .Tag-module_sentimentNegative__1J85t {
8607
- background-color: var(--color-red-100, #fdeaee);
8644
+
8645
+ .Tag-module_small__hcPrf {
8646
+ height: var(--small);
8608
8647
  }
8609
- .Tag-module_sentimentNone__8BWjU {
8610
- background-color: var(--color-white, #ffffff);
8611
- border-color: var(--color-gray-300, #eaeaec);
8648
+
8649
+ .Tag-module_default__Wq9hK {
8650
+ background-color: var(--color-gray-300);
8612
8651
  }
8613
- .Tag-module_validationPositive__vgFUE {
8614
- background-color: var(--color-green-100, #e8f8f4);
8652
+
8653
+ .Tag-module_sentimentPositive__M4lXI {
8654
+ background-color: var(--color-green-100);
8615
8655
  }
8616
- .Tag-module_validationPositive__vgFUE .Tag-module_validationIcon__B-YLv {
8617
- color: var(--color-green-500, #3f9a86);
8656
+
8657
+ .Tag-module_sentimentNeutral__uxZ6y {
8658
+ background-color: var(--color-gray-300);
8618
8659
  }
8619
- .Tag-module_validationInformative__bnJ4A {
8620
- background-color: var(--color-blue-100, #e6f6ff);
8660
+
8661
+ .Tag-module_sentimentNegative__JxDtU {
8662
+ background-color: var(--color-red-100);
8621
8663
  }
8622
- .Tag-module_validationInformative__bnJ4A .Tag-module_validationIcon__B-YLv {
8623
- color: var(--color-blue-500, #0168b3);
8664
+
8665
+ .Tag-module_sentimentNone__vDXoz {
8666
+ background-color: var(--color-white);
8667
+ border-color: var(--color-gray-300);
8624
8668
  }
8625
- .Tag-module_validationNegative__lZgIY {
8626
- background-color: var(--color-red-100, #fdeaee);
8669
+
8670
+ .Tag-module_validationPositive__KXW2z {
8671
+ background-color: var(--color-green-100);
8672
+
8673
+ .Tag-module_validationIcon__i87BD {
8674
+ color: var(--color-green-500);
8675
+ }
8627
8676
  }
8628
- .Tag-module_validationNegative__lZgIY .Tag-module_validationIcon__B-YLv {
8629
- color: var(--color-red-500, #c93b55);
8677
+
8678
+ .Tag-module_validationInformative__wJlj5 {
8679
+ background-color: var(--color-blue-100);
8680
+
8681
+ .Tag-module_validationIcon__i87BD {
8682
+ color: var(--color-blue-500);
8683
+ }
8630
8684
  }
8631
- .Tag-module_validationCautionary__ERS2t {
8632
- background-color: var(--color-yellow-100, #fff9e4);
8685
+
8686
+ .Tag-module_validationNegative__CEuAp {
8687
+ background-color: var(--color-red-100);
8688
+
8689
+ .Tag-module_validationIcon__i87BD {
8690
+ color: var(--color-red-500);
8691
+ }
8633
8692
  }
8634
- .Tag-module_validationCautionary__ERS2t .Tag-module_validationIcon__B-YLv {
8635
- color: var(--color-yellow-700);
8693
+
8694
+ .Tag-module_validationCautionary__ay3Dg {
8695
+ background-color: var(--color-yellow-100);
8696
+
8697
+ .Tag-module_validationIcon__i87BD {
8698
+ color: var(--color-yellow-700);
8699
+ }
8636
8700
  }
8637
- .Tag-module_statusLive__xG48w {
8638
- background-color: var(--color-green-100, #e8f8f4);
8639
- color: var(--color-purple-800, #2f2438);
8701
+
8702
+ .Tag-module_statusLive__Ycm63 {
8703
+ background-color: var(--color-green-100);
8704
+ color: var(--color-purple-800);
8640
8705
  }
8641
- .Tag-module_statusAction__woL-O {
8642
- background-color: var(--color-orange-100, #fff0e8);
8643
- color: var(--color-purple-800, #2f2438);
8706
+
8707
+ .Tag-module_statusAction__Gdpew {
8708
+ background-color: var(--color-orange-100);
8709
+ color: var(--color-purple-800);
8644
8710
  }
8645
- .Tag-module_statusClosed__VhZP- {
8646
- background-color: var(--color-red-100, #fdeaee);
8711
+
8712
+ .Tag-module_statusClosed__9Ggv1 {
8713
+ background-color: var(--color-red-100);
8647
8714
  }
8648
- .Tag-module_statusDraft__9QZDv {
8649
- background-color: var(--color-blue-100, #e6f6ff);
8650
- color: var(--color-purple-800, #2f2438);
8715
+
8716
+ .Tag-module_statusDraft__m3ksY {
8717
+ background-color: var(--color-blue-100);
8718
+ color: var(--color-purple-800);
8651
8719
  }
8652
8720
  }
8721
+
8653
8722
  /** THIS IS AN AUTOGENERATED FILE **/
8654
8723
  /** THIS IS AN AUTOGENERATED FILE **/
8655
8724
  /** THIS IS AN AUTOGENERATED FILE **/
@@ -10061,11 +10130,9 @@
10061
10130
  }
10062
10131
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRow__Ifqiu {
10063
10132
  background-color: var(--color-white, #ffffff);
10064
- margin-bottom: 0.063rem;
10065
10133
  }
10066
10134
  .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_titleRow__Ifqiu {
10067
10135
  background-color: var(--color-white, #ffffff);
10068
- margin-bottom: 0.063rem;
10069
10136
  }
10070
10137
  .TitleBlock-module_rowBelowSeparatorInner__3gNec, .TitleBlock-module_titleRowInner__SlArS {
10071
10138
  box-sizing: border-box;
@@ -10083,7 +10150,7 @@
10083
10150
  }
10084
10151
  }
10085
10152
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInner__SlArS {
10086
- border-bottom: 1px solid var(--color-gray-300, #eaeaec);
10153
+ box-shadow: inset 0 -0.0625rem 0 0 var(--color-gray-300, #eaeaec);
10087
10154
  }
10088
10155
  .TitleBlock-module_rowBelowSeparatorInner__3gNec {
10089
10156
  padding: 0 4px 0 12px;
@@ -10096,24 +10163,28 @@
10096
10163
  }
10097
10164
  .TitleBlock-module_titleRowInnerContent__NhTHV {
10098
10165
  box-sizing: border-box;
10166
+ min-height: 88px;
10099
10167
  position: relative;
10100
10168
  display: flex;
10101
10169
  width: 100%;
10102
10170
  align-items: center;
10103
10171
  gap: 12px;
10104
- padding-block: 20px 19px;
10172
+ padding-block: 20px;
10105
10173
  justify-content: space-between;
10106
- border-bottom: 0.063rem solid rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10174
+ box-shadow: inset 0 -0.0625rem 0 0 rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
10107
10175
  }
10108
10176
  .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_titleRowInnerContent__NhTHV {
10109
- border-bottom-color: rgba(var(--color-purple-700-rgb, 74, 35, 77), 0.2);
10177
+ box-shadow: inset 0 -0.0625rem 0 0 rgba(var(--color-purple-700-rgb, 74, 35, 77), 0.2);
10110
10178
  }
10111
10179
  .TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRowInnerContent__NhTHV, .TitleBlock-module_adminVariant__s95nS .TitleBlock-module_titleRowInnerContent__NhTHV, .TitleBlock-module_collapseNavigationArea__x9hzQ .TitleBlock-module_titleRowInnerContent__NhTHV {
10112
- border-bottom-color: transparent;
10180
+ box-shadow: none;
10113
10181
  }
10114
10182
  @container (max-width: calc(1080px - 1px)) {
10115
10183
  .TitleBlock-module_titleRowInnerContent__NhTHV {
10116
- border-bottom: none;
10184
+ box-shadow: none;
10185
+ }
10186
+ .TitleBlock-module_educationVariant__YvpWa .TitleBlock-module_titleRowInnerContent__NhTHV {
10187
+ box-shadow: none;
10117
10188
  }
10118
10189
  }
10119
10190
  @container (max-width: 576px) {
@@ -10393,7 +10464,6 @@
10393
10464
  .TitleBlock-module_rowBelowSeparatorInnerContent__g5H9w {
10394
10465
  display: flex;
10395
10466
  width: 100%;
10396
- margin-top: -0.063rem;
10397
10467
  justify-content: space-between;
10398
10468
  }
10399
10469
  .TitleBlock-module_titleAndAdjacent__Q7W-m {
@@ -10456,7 +10526,6 @@
10456
10526
  }
10457
10527
  @container (max-width: calc(768px - 1px)) {
10458
10528
  .TitleBlock-module_hasNavigationTabs__v09jL .TitleBlock-module_navigationTabScrollerContainer__o234q {
10459
- margin-top: 0.063rem;
10460
10529
  height: 3.75rem;
10461
10530
  display: block;
10462
10531
  overflow-x: scroll;
@@ -10485,7 +10554,7 @@
10485
10554
  .TitleBlock-module_navigationTabEdgeShadowRight__xkIWc, .TitleBlock-module_navigationTabEdgeShadowLeft__9pGhR {
10486
10555
  display: block;
10487
10556
  position: absolute;
10488
- top: 3.687rem;
10557
+ top: 3.75rem;
10489
10558
  width: 3.75rem;
10490
10559
  height: 3.75rem;
10491
10560
  background: linear-gradient(0deg, var(--color-purple-600, #5f3361), rgba(var(--color-purple-600-rgb, 95, 51, 97), 0));
@@ -10,6 +10,11 @@ export declare const Informative: ({ enableAspectRatio, ...restProps }: SpotProp
10
10
  export declare const Negative: ({ enableAspectRatio, ...restProps }: SpotProps) => JSX.Element;
11
11
  export declare const Positive: ({ enableAspectRatio, ...restProps }: SpotProps) => JSX.Element;
12
12
  export declare const Assertive: ({ enableAspectRatio, ...restProps }: SpotProps) => JSX.Element;
13
+ /**
14
+ * Template Library / PCD
15
+ */
16
+ export declare const PCDSurvey: ({ enableAspectRatio, ...restProps }: SpotProps) => JSX.Element;
17
+ export declare const PCDPulseSurvey: ({ enableAspectRatio, ...restProps }: SpotProps) => JSX.Element;
13
18
  /**
14
19
  * Template Library / Engagement
15
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "2.3.6",
3
+ "version": "2.4.0",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { type ContentProps } from '~components/Content'
4
- import styles from './Container.module.scss'
4
+ import styles from './Container.module.css'
5
5
 
6
6
  /**
7
7
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3086156812/Layout Guidance} |
@@ -0,0 +1,15 @@
1
+ @layer kz-components {
2
+ .content {
3
+ max-width: var(--layout-content-max-width);
4
+ margin: 0 var(--layout-content-side-margin);
5
+ width: 100%;
6
+
7
+ /* Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table) */
8
+ min-width: 0;
9
+
10
+ /* Currently unable to do media query equations so using a fixed value instead */
11
+ @media (width <= 1079px) {
12
+ margin: 0 var(--content-margin-width-on-medium-and-small);
13
+ }
14
+ }
15
+ }
@@ -1,7 +1,7 @@
1
1
  import React, { type HTMLAttributes } from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { type OverrideClassName } from '~components/types/OverrideClassName'
4
- import styles from './Content.module.scss'
4
+ import styles from './Content.module.css'
5
5
 
6
6
  export type ContentProps = {
7
7
  children?: React.ReactNode
@@ -51,7 +51,7 @@ export const Example: Story = {
51
51
  </Container>
52
52
  ),
53
53
  parameters: {
54
- chromatic: { disable: false },
54
+ chromatic: { disable: false, viewports: [1079, 1200] },
55
55
  docs: {
56
56
  canvas: {
57
57
  sourceState: 'shown',
@@ -0,0 +1,5 @@
1
+ /* This replicates the layout max-width logic in
2
+ packages/components/TitleBlock/TitleBlock.module.scss */
3
+ :root {
4
+ --content-margin-width-on-medium-and-small: 12px;
5
+ }
@@ -0,0 +1,41 @@
1
+ @layer kz-components {
2
+ /*
3
+ Use different tokens with different opacities across the Zen and Heart themes, by assuming that when Zen is applied there won't be any CSS variables declared.
4
+ */
5
+
6
+ :root {
7
+ --dt-content-border-color: rgb(var(--color-gray-600-rgb), 0.1);
8
+ }
9
+
10
+ .wrapper {
11
+ width: 100%;
12
+ border: 0;
13
+ margin: 0;
14
+ border-radius: var(--border-solid-border-radius);
15
+
16
+ /*
17
+ This is here to protect against a global style in a consumer.
18
+ https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
19
+ */
20
+ visibility: visible;
21
+ }
22
+
23
+ .content,
24
+ .menuSeparator {
25
+ border-top: 1px solid var(--dt-content-border-color);
26
+ }
27
+
28
+ .canvas {
29
+ border-top: 1px solid;
30
+ border-bottom: 1px solid;
31
+ border-color: var(--dt-content-border-color);
32
+ }
33
+
34
+ .reversed {
35
+ border-color: rgb(var(--color-white-rgb), 0.1);
36
+ }
37
+
38
+ .menuSeparator {
39
+ margin: 5px 0;
40
+ }
41
+ }