@kaizen/components 1.4.19 → 1.4.20-canary.3469

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 (120) hide show
  1. package/dist/esm/index.js +0 -53
  2. package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +72 -0
  3. package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +420 -398
  4. package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +423 -404
  5. package/dist/iife/KaizenProvider/ThemeProvider/index.js +434 -412
  6. package/dist/iife/KaizenProvider/index.js +436 -414
  7. package/dist/iife/__future__/index.js +915 -594
  8. package/dist/iife/index.js +1965 -115235
  9. package/dist/index.d.ts +1 -41
  10. package/dist/index.js +1 -54
  11. package/package.json +32 -32
  12. package/dist/iife/ActionButton.module-LHTIA2D3.scss +0 -10
  13. package/dist/iife/Avatar.module-GUG7HXMZ.scss +0 -165
  14. package/dist/iife/AvatarGroup.module-QAVTI4PR.scss +0 -85
  15. package/dist/iife/Base.module-DJPJNUQ5.scss +0 -80
  16. package/dist/iife/BaseButton.module-4FKZZLVI.scss +0 -103
  17. package/dist/iife/Brand.module-FCHTLJQK.scss +0 -4
  18. package/dist/iife/BrandMoment.module-4P7H2D3W.scss +0 -196
  19. package/dist/iife/Calendar.module-H7XBQXTA.scss +0 -211
  20. package/dist/iife/CalendarRange.module-QWW624PJ.scss +0 -64
  21. package/dist/iife/CalendarSingle.module-N2P3DWLM.scss +0 -18
  22. package/dist/iife/Card.module-VEUOO2LT.scss +0 -38
  23. package/dist/iife/Collapsible.module-ZJNVWQIB.scss +0 -119
  24. package/dist/iife/CollapsibleGroup.module-UR2SIYLJ.scss +0 -10
  25. package/dist/iife/ConfirmationModal.module-RN2H7KPL.scss +0 -157
  26. package/dist/iife/Content.module-6CTLBAHR.scss +0 -25
  27. package/dist/iife/ContextModal.module-TTFVPUPU.scss +0 -77
  28. package/dist/iife/DateInput.module-YBXARKD2.scss +0 -3
  29. package/dist/iife/DateInputDescription.module-SGAJNB7K.scss +0 -19
  30. package/dist/iife/DateInputField.module-2LG4I24X.scss +0 -5
  31. package/dist/iife/DateInputWithIconButton.module-RSUEQ345.scss +0 -53
  32. package/dist/iife/DateRangePicker.module-EIUGUIIA.scss +0 -115
  33. package/dist/iife/DropdownButton.module-WZ6FRRPS.scss +0 -44
  34. package/dist/iife/EditableRichTextContent.module-N2SFSI5C.scss +0 -25
  35. package/dist/iife/EmptyState.module-DOSURL5X.scss +0 -156
  36. package/dist/iife/ExpertAdviceCollapsible.module-L554JCXB.scss +0 -47
  37. package/dist/iife/FilterMenuButton.module-26EL5K3H.scss +0 -19
  38. package/dist/iife/FilterSplitButton.module-LMMEHFXQ.scss +0 -133
  39. package/dist/iife/FloatingCalendarWrapper.module-62NLSOUD.scss +0 -12
  40. package/dist/iife/GenericModal.module-DW6NSOGA.scss +0 -110
  41. package/dist/iife/GenericModalSection.module-MJ4MTMSP.scss +0 -7
  42. package/dist/iife/GenericNotification.module-DAERSOHE.scss +0 -115
  43. package/dist/iife/GenericTile.module-ZXQ4XWP4.scss +0 -136
  44. package/dist/iife/GuidanceBlock.module-FAHJFZMK.scss +0 -324
  45. package/dist/iife/HeroCard.module-LXHTKJTW.scss +0 -106
  46. package/dist/iife/InputEditModal.module-X3TLJPFO.scss +0 -36
  47. package/dist/iife/LikertScaleLegacy.module-JYCJ5CON.scss +0 -298
  48. package/dist/iife/LinkPopover-7NCAPCQ3.scss +0 -22
  49. package/dist/iife/MainActions.module-T43D33YO.scss +0 -16
  50. package/dist/iife/MenuDropdown.module-DYV6JLT6.scss +0 -26
  51. package/dist/iife/MenuItem.module-LD7ZYX4T.scss +0 -99
  52. package/dist/iife/MenuList.module-44RMG7CF.scss +0 -35
  53. package/dist/iife/MobileActions.module-Z6PD4VIR.scss +0 -198
  54. package/dist/iife/ModalAccessibleDescription.module-NIJNKHHO.scss +0 -3
  55. package/dist/iife/ModalAccessibleLabel.module-NG26HDU4.scss +0 -58
  56. package/dist/iife/ModalFooter.module-TK3HAXMB.scss +0 -69
  57. package/dist/iife/ModalHeader.module-6SW7KZ22.scss +0 -23
  58. package/dist/iife/MultiActionTile.module-4Y2NA4H6.scss +0 -3
  59. package/dist/iife/NavigationTabs.module-VDIXMFXJ.scss +0 -108
  60. package/dist/iife/Pagination.module-U5S6WZ5K.scss +0 -124
  61. package/dist/iife/Popover.module-5ZQUBHXG.scss +0 -264
  62. package/dist/iife/ProgressBar.module-RL2UWVEH.scss +0 -91
  63. package/dist/iife/RichTextContent.module-4HA44IM4.scss +0 -5
  64. package/dist/iife/RichTextEditor.module-ZHXEK4XJ.scss +0 -97
  65. package/dist/iife/RoadblockModal.module-KVZCYLF2.scss +0 -45
  66. package/dist/iife/Select.module-6LHWOGGY.scss +0 -391
  67. package/dist/iife/Skirt.module-S3GPHMMQ.scss +0 -32
  68. package/dist/iife/SkirtCard.module-6YQ4PS2K.scss +0 -16
  69. package/dist/iife/SplitButton.module-WMGCIDDK.scss +0 -4
  70. package/dist/iife/StatelessMenu.module-SX2T5P4I.scss +0 -3
  71. package/dist/iife/Table.module-LCDRXCBP.scss +0 -233
  72. package/dist/iife/Tabs.module-BUPNPYW4.scss +0 -172
  73. package/dist/iife/Tag.module-T6PQJLSW.scss +0 -268
  74. package/dist/iife/TileGrid.module-NJQFVYRS.scss +0 -23
  75. package/dist/iife/TimeField.module-B4WNYAUE.scss +0 -75
  76. package/dist/iife/TimeSegment.module-TKOTKIXH.scss +0 -53
  77. package/dist/iife/TitleBlockMenuItem.module-LWVSMJTH.scss +0 -99
  78. package/dist/iife/TitleBlockZen.module-OK3QIC4Y.scss +0 -695
  79. package/dist/iife/ToastNotificationsList.module-EHDVGWDW.scss +0 -26
  80. package/dist/iife/ToggleIconButton.module-COM67MDC.scss +0 -132
  81. package/dist/iife/Toolbar.module-3BZYZE6H.scss +0 -44
  82. package/dist/iife/Toolbar.module-BP3GTBGW.scss +0 -6
  83. package/dist/iife/ToolbarSection.module-LZTHWGO7.scss +0 -15
  84. package/dist/iife/Well.module-4TIRC3HQ.scss +0 -73
  85. package/dist/iife/add-link.icon-2JH25LOT.svg +0 -3
  86. package/dist/iife/arrow-left.icon-RWWYLDT3.svg +0 -17
  87. package/dist/iife/arrow-right.icon-3ZGNCW3O.svg +0 -17
  88. package/dist/iife/bold.icon-FEZQ56AP.svg +0 -3
  89. package/dist/iife/bulletted-list.icon-ZDSXNO72.svg +0 -3
  90. package/dist/iife/caution.icon-BHBJMNMA.svg +0 -1
  91. package/dist/iife/clear-white.icon-O3ZK5Z2K.svg +0 -18
  92. package/dist/iife/close.icon-7H6W45MB.svg +0 -1
  93. package/dist/iife/date-start.icon-NV4EVRXI.svg +0 -17
  94. package/dist/iife/decrease-indent.icon-VAYQUHQG.svg +0 -3
  95. package/dist/iife/edit.icon-YJ4EIXHJ.svg +0 -17
  96. package/dist/iife/ellipsis.icon-DECY5OPU.svg +0 -17
  97. package/dist/iife/exclamation.icon-FJBHW7NP.svg +0 -17
  98. package/dist/iife/external-link.icon-7FNRTMN2.svg +0 -17
  99. package/dist/iife/hamburger.icon-YHQT7RB6.svg +0 -17
  100. package/dist/iife/increase-indent.icon-3XUPJEBD.svg +0 -3
  101. package/dist/iife/information-white.icon-3DXZDERC.svg +0 -19
  102. package/dist/iife/information.icon-5LHKLG66.svg +0 -17
  103. package/dist/iife/italics.icon-WWQDZP3S.svg +0 -3
  104. package/dist/iife/meatballs.icon-DECY5OPU.svg +0 -17
  105. package/dist/iife/numbered-list.icon-WPE4LE5R.svg +0 -3
  106. package/dist/iife/remove-link.icon-QMFTP7WO.svg +0 -3
  107. package/dist/iife/sort-ascending.icon-E24DTSHO.svg +0 -17
  108. package/dist/iife/sort-descending.icon-4SMPW2PG.svg +0 -17
  109. package/dist/iife/success-white.icon-VXFA2PUU.svg +0 -18
  110. package/dist/iife/underline.icon-ACYVVVSD.svg +0 -3
  111. package/dist/iife/user.icon-24JPACDP.svg +0 -17
  112. package/dist/styles.css +0 -98
  113. /package/dist/iife/{Dropdown.module-4CIBZTRZ.scss → Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss} +0 -0
  114. /package/dist/iife/{Layout.module-MZ6JYT46.scss → Layout.module-MZ6JYT46-MZ6JYT46.scss} +0 -0
  115. /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
  116. /package/dist/iife/{Menu.module-N76N74LN.scss → Menu.module-N76N74LN-N76N74LN.scss} +0 -0
  117. /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
  118. /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
  119. /package/dist/iife/{Text.module-SXGFOHGJ.scss → Text.module-SXGFOHGJ-SXGFOHGJ.scss} +0 -0
  120. /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
package/dist/esm/index.js CHANGED
@@ -19,65 +19,12 @@ import {
19
19
 
20
20
  // src/index.ts
21
21
  export * from "@kaizen/a11y";
22
- export * from "@kaizen/brand";
23
- export * from "@kaizen/brand-moment";
24
- export * from "@kaizen/button";
25
- export * from "@kaizen/component-base";
26
- import { Icon, Box, Spacing } from "@kaizen/component-library";
27
- export * from "@kaizen/date-picker";
28
- export * from "@kaizen/draft-avatar";
29
- export * from "@kaizen/draft-badge";
30
- export * from "@kaizen/draft-card";
31
- export * from "@kaizen/draft-collapsible";
32
- export * from "@kaizen/draft-divider";
33
- export * from "@kaizen/draft-empty-state";
34
- export * from "@kaizen/draft-filter-menu-button";
35
- export * from "@kaizen/draft-form";
36
- export * from "@kaizen/draft-guidance-block";
37
- export * from "@kaizen/draft-hero-card";
38
- export * from "@kaizen/draft-illustration";
39
- export * from "@kaizen/draft-likert-scale-legacy";
40
- export * from "@kaizen/draft-menu";
41
- export * from "@kaizen/draft-modal";
42
- export * from "@kaizen/draft-page-layout";
43
- export * from "@kaizen/draft-popover";
44
- export * from "@kaizen/draft-table";
45
- export * from "@kaizen/draft-tabs";
46
- export * from "@kaizen/draft-tag";
47
- export * from "@kaizen/draft-tile";
48
- export * from "@kaizen/draft-title-block-zen";
49
- export * from "@kaizen/draft-tooltip";
50
- export * from "@kaizen/draft-well";
51
- export * from "@kaizen/hosted-assets";
52
- export * from "@kaizen/loading-skeleton";
53
- export * from "@kaizen/loading-spinner";
54
- export * from "@kaizen/notification";
55
- export * from "@kaizen/pagination";
56
- export * from "@kaizen/progress-bar";
57
- export * from "@kaizen/responsive";
58
- export * from "@kaizen/rich-text-editor";
59
- export * from "@kaizen/split-button";
60
- export * from "@kaizen/typography";
61
- import {
62
- makeCssVariableDefinitionsMap,
63
- makeCSSVariableTheme,
64
- mapLeafsOfObject
65
- } from "@kaizen/design-tokens";
66
- import { Select, AsyncSelect } from "@kaizen/draft-select";
67
22
  export {
68
- AsyncSelect,
69
- Box,
70
- Icon,
71
23
  KaizenProvider,
72
- Select,
73
- Spacing,
74
24
  ThemeContext,
75
25
  ThemeManager,
76
26
  ThemeProvider,
77
27
  defaultTheme,
78
28
  heartTheme,
79
- makeCSSVariableTheme,
80
- makeCssVariableDefinitionsMap,
81
- mapLeafsOfObject,
82
29
  useTheme
83
30
  };
@@ -0,0 +1,72 @@
1
+ @import "~@kaizen/design-tokens/sass/animation";
2
+ @import "./styles";
3
+
4
+ .icon {
5
+ @extend %caIcon;
6
+
7
+ // Set sensible defaults for icon colours when
8
+ // windows high-contrast mode is enabled. These
9
+ // should be overridden by the consumer when the
10
+ // icon colour conveys information, such as mood.
11
+ @media screen and (-ms-high-contrast: active) {
12
+ color: black;
13
+ }
14
+
15
+ @media screen and (-ms-high-contrast: white-on-black) {
16
+ color: white;
17
+ }
18
+
19
+ @media screen and (-ms-high-contrast: black-on-white) {
20
+ color: black;
21
+ }
22
+ }
23
+
24
+ .inheritSize {
25
+ @extend %caIconInheritSize;
26
+ }
27
+
28
+ .interactiveIconWrapper {
29
+ cursor: pointer;
30
+ .icon {
31
+ opacity: 0.7;
32
+ transition: $animation-duration-fast opacity;
33
+ }
34
+ &:disabled,
35
+ &.disabled {
36
+ .icon {
37
+ opacity: 0.3;
38
+ }
39
+ }
40
+ &:not(:disabled):not(.disabled) {
41
+ &:hover,
42
+ &:focus,
43
+ &.hover {
44
+ .icon {
45
+ opacity: 1;
46
+ }
47
+ }
48
+ &:active,
49
+ &.active {
50
+ .icon {
51
+ opacity: 1;
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ // On dark backgrounds, icons are fully opaque by default and half opacity when active.
58
+ // Hover and disabled states are the same.
59
+ .reversedInteractiveIconWrapper {
60
+ composes: interactiveIconWrapper;
61
+ .icon {
62
+ opacity: 1;
63
+ }
64
+ &:not(:disabled, .disabled) {
65
+ &:active,
66
+ &.active {
67
+ .icon {
68
+ opacity: 0.5;
69
+ }
70
+ }
71
+ }
72
+ }