@workday/canvas-kit-react 14.0.0-alpha.1253-next.0 → 14.0.0-alpha.1255-next.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 (160) hide show
  1. package/button/lib/BaseButton.tsx +0 -6
  2. package/button/lib/Button.tsx +27 -2
  3. package/button/lib/ToolbarDropdownButton.tsx +21 -2
  4. package/button/lib/ToolbarIconButton.tsx +11 -1
  5. package/button/lib/parts/ButtonLabelIcon.tsx +21 -3
  6. package/collection/lib/keyUtils.ts +4 -2
  7. package/collection/lib/useListItemRemoveable.ts +2 -3
  8. package/collection/lib/useListItemRovingFocus.tsx +2 -3
  9. package/collection/lib/useListKeyboardHandler.ts +2 -4
  10. package/combobox/lib/hooks/useComboboxListKeyboardHandler.ts +2 -4
  11. package/common/lib/theming/README.md +3 -48
  12. package/common/lib/theming/useIsRTL.ts +5 -1
  13. package/common/lib/utils/index.ts +1 -0
  14. package/common/lib/utils/isElementRTL.ts +27 -0
  15. package/dist/commonjs/avatar/lib/Avatar.js +7 -7
  16. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.js +1 -1
  17. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.js +1 -1
  18. package/dist/commonjs/button/lib/BaseButton.d.ts +0 -5
  19. package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -1
  20. package/dist/commonjs/button/lib/BaseButton.js +28 -28
  21. package/dist/commonjs/button/lib/Button.d.ts +14 -0
  22. package/dist/commonjs/button/lib/Button.d.ts.map +1 -1
  23. package/dist/commonjs/button/lib/Button.js +2 -2
  24. package/dist/commonjs/button/lib/DeleteButton.js +1 -1
  25. package/dist/commonjs/button/lib/ExternalHyperlink.js +1 -1
  26. package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
  27. package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
  28. package/dist/commonjs/button/lib/TertiaryButton.js +3 -3
  29. package/dist/commonjs/button/lib/ToolbarDropdownButton.d.ts +11 -0
  30. package/dist/commonjs/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
  31. package/dist/commonjs/button/lib/ToolbarDropdownButton.js +6 -3
  32. package/dist/commonjs/button/lib/ToolbarIconButton.d.ts +1 -0
  33. package/dist/commonjs/button/lib/ToolbarIconButton.d.ts.map +1 -1
  34. package/dist/commonjs/button/lib/ToolbarIconButton.js +4 -4
  35. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +10 -1
  36. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  37. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +2 -2
  38. package/dist/commonjs/collection/lib/keyUtils.d.ts +1 -1
  39. package/dist/commonjs/collection/lib/keyUtils.d.ts.map +1 -1
  40. package/dist/commonjs/collection/lib/keyUtils.js +3 -1
  41. package/dist/commonjs/collection/lib/useListItemRemoveable.d.ts.map +1 -1
  42. package/dist/commonjs/collection/lib/useListItemRemoveable.js +1 -2
  43. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  44. package/dist/commonjs/collection/lib/useListItemRovingFocus.js +1 -2
  45. package/dist/commonjs/collection/lib/useListKeyboardHandler.d.ts.map +1 -1
  46. package/dist/commonjs/collection/lib/useListKeyboardHandler.js +1 -2
  47. package/dist/commonjs/combobox/lib/hooks/useComboboxListKeyboardHandler.d.ts.map +1 -1
  48. package/dist/commonjs/combobox/lib/hooks/useComboboxListKeyboardHandler.js +1 -2
  49. package/dist/commonjs/common/lib/theming/useIsRTL.d.ts +5 -1
  50. package/dist/commonjs/common/lib/theming/useIsRTL.d.ts.map +1 -1
  51. package/dist/commonjs/common/lib/theming/useIsRTL.js +5 -1
  52. package/dist/commonjs/common/lib/utils/index.d.ts +1 -0
  53. package/dist/commonjs/common/lib/utils/index.d.ts.map +1 -1
  54. package/dist/commonjs/common/lib/utils/index.js +1 -0
  55. package/dist/commonjs/common/lib/utils/isElementRTL.d.ts +25 -0
  56. package/dist/commonjs/common/lib/utils/isElementRTL.d.ts.map +1 -0
  57. package/dist/commonjs/common/lib/utils/isElementRTL.js +31 -0
  58. package/dist/commonjs/expandable/lib/ExpandableIcon.d.ts +8 -4
  59. package/dist/commonjs/expandable/lib/ExpandableIcon.d.ts.map +1 -1
  60. package/dist/commonjs/icon/lib/AccentIcon.d.ts +8 -4
  61. package/dist/commonjs/icon/lib/AccentIcon.d.ts.map +1 -1
  62. package/dist/commonjs/icon/lib/AccentIcon.js +3 -2
  63. package/dist/commonjs/icon/lib/AppletIcon.d.ts +8 -5
  64. package/dist/commonjs/icon/lib/AppletIcon.d.ts.map +1 -1
  65. package/dist/commonjs/icon/lib/AppletIcon.js +2 -2
  66. package/dist/commonjs/icon/lib/Graphic.d.ts +8 -3
  67. package/dist/commonjs/icon/lib/Graphic.d.ts.map +1 -1
  68. package/dist/commonjs/icon/lib/Graphic.js +1 -1
  69. package/dist/commonjs/icon/lib/Svg.d.ts +17 -1
  70. package/dist/commonjs/icon/lib/Svg.d.ts.map +1 -1
  71. package/dist/commonjs/icon/lib/Svg.js +8 -5
  72. package/dist/commonjs/icon/lib/SystemIcon.d.ts +7 -0
  73. package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
  74. package/dist/commonjs/icon/lib/SystemIcon.js +1 -1
  75. package/dist/commonjs/icon/lib/SystemIconCircle.d.ts +10 -1
  76. package/dist/commonjs/icon/lib/SystemIconCircle.d.ts.map +1 -1
  77. package/dist/commonjs/icon/lib/SystemIconCircle.js +4 -4
  78. package/dist/commonjs/pagination/lib/Pagination/PageButton.js +2 -2
  79. package/dist/commonjs/popup/lib/hooks/usePopupStack.d.ts.map +1 -1
  80. package/dist/commonjs/popup/lib/hooks/usePopupStack.js +10 -7
  81. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.js +1 -1
  82. package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -5
  83. package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
  84. package/dist/commonjs/tabs/lib/TabsItem.js +1 -1
  85. package/dist/es6/avatar/lib/Avatar.js +7 -7
  86. package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.js +1 -1
  87. package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.js +1 -1
  88. package/dist/es6/button/lib/BaseButton.d.ts +0 -5
  89. package/dist/es6/button/lib/BaseButton.d.ts.map +1 -1
  90. package/dist/es6/button/lib/BaseButton.js +28 -28
  91. package/dist/es6/button/lib/Button.d.ts +14 -0
  92. package/dist/es6/button/lib/Button.d.ts.map +1 -1
  93. package/dist/es6/button/lib/Button.js +2 -2
  94. package/dist/es6/button/lib/DeleteButton.js +1 -1
  95. package/dist/es6/button/lib/ExternalHyperlink.js +1 -1
  96. package/dist/es6/button/lib/PrimaryButton.js +2 -2
  97. package/dist/es6/button/lib/SecondaryButton.js +2 -2
  98. package/dist/es6/button/lib/TertiaryButton.js +3 -3
  99. package/dist/es6/button/lib/ToolbarDropdownButton.d.ts +11 -0
  100. package/dist/es6/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
  101. package/dist/es6/button/lib/ToolbarDropdownButton.js +6 -3
  102. package/dist/es6/button/lib/ToolbarIconButton.d.ts +1 -0
  103. package/dist/es6/button/lib/ToolbarIconButton.d.ts.map +1 -1
  104. package/dist/es6/button/lib/ToolbarIconButton.js +4 -4
  105. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +10 -1
  106. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  107. package/dist/es6/button/lib/parts/ButtonLabelIcon.js +2 -2
  108. package/dist/es6/collection/lib/keyUtils.d.ts +1 -1
  109. package/dist/es6/collection/lib/keyUtils.d.ts.map +1 -1
  110. package/dist/es6/collection/lib/keyUtils.js +3 -1
  111. package/dist/es6/collection/lib/useListItemRemoveable.d.ts.map +1 -1
  112. package/dist/es6/collection/lib/useListItemRemoveable.js +2 -3
  113. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  114. package/dist/es6/collection/lib/useListItemRovingFocus.js +2 -3
  115. package/dist/es6/collection/lib/useListKeyboardHandler.d.ts.map +1 -1
  116. package/dist/es6/collection/lib/useListKeyboardHandler.js +2 -3
  117. package/dist/es6/combobox/lib/hooks/useComboboxListKeyboardHandler.d.ts.map +1 -1
  118. package/dist/es6/combobox/lib/hooks/useComboboxListKeyboardHandler.js +2 -3
  119. package/dist/es6/common/lib/theming/useIsRTL.d.ts +5 -1
  120. package/dist/es6/common/lib/theming/useIsRTL.d.ts.map +1 -1
  121. package/dist/es6/common/lib/theming/useIsRTL.js +5 -1
  122. package/dist/es6/common/lib/utils/index.d.ts +1 -0
  123. package/dist/es6/common/lib/utils/index.d.ts.map +1 -1
  124. package/dist/es6/common/lib/utils/index.js +1 -0
  125. package/dist/es6/common/lib/utils/isElementRTL.d.ts +25 -0
  126. package/dist/es6/common/lib/utils/isElementRTL.d.ts.map +1 -0
  127. package/dist/es6/common/lib/utils/isElementRTL.js +27 -0
  128. package/dist/es6/expandable/lib/ExpandableIcon.d.ts +8 -4
  129. package/dist/es6/expandable/lib/ExpandableIcon.d.ts.map +1 -1
  130. package/dist/es6/icon/lib/AccentIcon.d.ts +8 -4
  131. package/dist/es6/icon/lib/AccentIcon.d.ts.map +1 -1
  132. package/dist/es6/icon/lib/AccentIcon.js +3 -2
  133. package/dist/es6/icon/lib/AppletIcon.d.ts +8 -5
  134. package/dist/es6/icon/lib/AppletIcon.d.ts.map +1 -1
  135. package/dist/es6/icon/lib/AppletIcon.js +2 -2
  136. package/dist/es6/icon/lib/Graphic.d.ts +8 -3
  137. package/dist/es6/icon/lib/Graphic.d.ts.map +1 -1
  138. package/dist/es6/icon/lib/Graphic.js +1 -1
  139. package/dist/es6/icon/lib/Svg.d.ts +17 -1
  140. package/dist/es6/icon/lib/Svg.d.ts.map +1 -1
  141. package/dist/es6/icon/lib/Svg.js +8 -5
  142. package/dist/es6/icon/lib/SystemIcon.d.ts +7 -0
  143. package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
  144. package/dist/es6/icon/lib/SystemIcon.js +1 -1
  145. package/dist/es6/icon/lib/SystemIconCircle.d.ts +10 -1
  146. package/dist/es6/icon/lib/SystemIconCircle.d.ts.map +1 -1
  147. package/dist/es6/icon/lib/SystemIconCircle.js +4 -4
  148. package/dist/es6/pagination/lib/Pagination/PageButton.js +2 -2
  149. package/dist/es6/popup/lib/hooks/usePopupStack.d.ts.map +1 -1
  150. package/dist/es6/popup/lib/hooks/usePopupStack.js +11 -8
  151. package/dist/es6/segmented-control/lib/SegmentedControlButton.js +1 -1
  152. package/dist/es6/tabs/lib/TabsItem.d.ts +1 -5
  153. package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
  154. package/dist/es6/tabs/lib/TabsItem.js +1 -1
  155. package/icon/lib/AccentIcon.tsx +10 -1
  156. package/icon/lib/AppletIcon.tsx +3 -1
  157. package/icon/lib/Svg.tsx +23 -3
  158. package/icon/lib/SystemIconCircle.tsx +26 -3
  159. package/package.json +4 -4
  160. package/popup/lib/hooks/usePopupStack.ts +10 -7
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIsRTL, createElemPropsHook, slugify } from '@workday/canvas-kit-react/common';
2
+ import { createElemPropsHook, slugify } from '@workday/canvas-kit-react/common';
3
3
  import { getCursor, isCursor, useCursorListModel } from './useCursorListModel';
4
4
  import { keyboardEventToCursorEvents } from './keyUtils';
5
5
  // retry a function each frame so we don't rely on the timing mechanism of React's render cycle.
@@ -31,7 +31,6 @@ export const useListItemRemove = createElemPropsHook(useCursorListModel)((model,
31
31
  const stateRef = React.useRef(model.state);
32
32
  stateRef.current = model.state;
33
33
  const keyElementRef = React.useRef(null);
34
- const isRTL = useIsRTL();
35
34
  React.useEffect(() => {
36
35
  if (keyElementRef.current) {
37
36
  const item = model.navigation.getItem(getCursor(model.state), model);
@@ -69,7 +68,7 @@ export const useListItemRemove = createElemPropsHook(useCursorListModel)((model,
69
68
  }, [model.state.cursorId, model.state.items, model.events]);
70
69
  return {
71
70
  onKeyDown(event) {
72
- const handled = keyboardEventToCursorEvents(event, model, isRTL);
71
+ const handled = keyboardEventToCursorEvents(event, model);
73
72
  if (handled) {
74
73
  event.preventDefault();
75
74
  keyElementRef.current = event.currentTarget;
@@ -1 +1 @@
1
- {"version":3,"file":"useListItemRovingFocus.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListItemRovingFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAgCZ,mBAAmB,CAAC,WAAW,CAAC;;;;EAkBtD,CAAC"}
1
+ {"version":3,"file":"useListItemRovingFocus.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListItemRovingFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA+BZ,mBAAmB,CAAC,WAAW,CAAC;;;;EAkBtD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIsRTL, createElemPropsHook, slugify } from '@workday/canvas-kit-react/common';
2
+ import { createElemPropsHook, slugify } from '@workday/canvas-kit-react/common';
3
3
  import { getCursor, isCursor } from './useCursorListModel';
4
4
  import { keyboardEventToCursorEvents } from './keyUtils';
5
5
  import { focusOnCurrentCursor } from './focusOnCurrentCursor';
@@ -25,7 +25,6 @@ export const useListItemRovingFocus = createElemPropsHook(useListModel)((model,
25
25
  const stateRef = React.useRef(model.state);
26
26
  stateRef.current = model.state;
27
27
  const keyElementRef = React.useRef(null);
28
- const isRTL = useIsRTL();
29
28
  React.useEffect(() => {
30
29
  // If the cursor change was triggered by this hook, we should change focus
31
30
  if (keyElementRef.current) {
@@ -46,7 +45,7 @@ export const useListItemRovingFocus = createElemPropsHook(useListModel)((model,
46
45
  }, [model.state.cursorId, model.state.items, model.events]);
47
46
  return {
48
47
  onKeyDown(event) {
49
- const handled = keyboardEventToCursorEvents(event, model, isRTL);
48
+ const handled = keyboardEventToCursorEvents(event, model);
50
49
  if (handled) {
51
50
  event.preventDefault();
52
51
  keyElementRef.current = event.currentTarget;
@@ -1 +1 @@
1
- {"version":3,"file":"useListKeyboardHandler.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListKeyboardHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAId,mBAAmB;EAOtC,CAAC"}
1
+ {"version":3,"file":"useListKeyboardHandler.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListKeyboardHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAEd,mBAAmB;EAOtC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { useIsRTL, createElemPropsHook } from '@workday/canvas-kit-react/common';
1
+ import { createElemPropsHook } from '@workday/canvas-kit-react/common';
2
2
  import { useCursorListModel } from './useCursorListModel';
3
3
  import { keyboardEventToCursorEvents } from './keyUtils';
4
4
  /**
@@ -12,10 +12,9 @@ import { keyboardEventToCursorEvents } from './keyUtils';
12
12
  ```
13
13
  */
14
14
  export const useListKeyboardHandler = createElemPropsHook(useCursorListModel)(model => {
15
- const isRTL = useIsRTL();
16
15
  return {
17
16
  onKeyDown(event) {
18
- const handled = keyboardEventToCursorEvents(event, model, isRTL);
17
+ const handled = keyboardEventToCursorEvents(event, model);
19
18
  if (handled) {
20
19
  event.preventDefault();
21
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useComboboxListKeyboardHandler.d.ts","sourceRoot":"","sources":["../../../../../combobox/lib/hooks/useComboboxListKeyboardHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAItB,mBAAmB;EAStC,CAAC"}
1
+ {"version":3,"file":"useComboboxListKeyboardHandler.d.ts","sourceRoot":"","sources":["../../../../../combobox/lib/hooks/useComboboxListKeyboardHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAEtB,mBAAmB;EAStC,CAAC"}
@@ -1,15 +1,14 @@
1
- import { createElemPropsHook, useIsRTL } from '@workday/canvas-kit-react/common';
1
+ import { createElemPropsHook } from '@workday/canvas-kit-react/common';
2
2
  import { keyboardEventToCursorEvents } from '@workday/canvas-kit-react/collection';
3
3
  import { useComboboxModel } from './useComboboxModel';
4
4
  /**
5
5
  * `useComboboxListKeyboardHandler` handle calling keyboard events like ArrowUp and ArrowDown only when the menu is visible.
6
6
  */
7
7
  export const useComboboxListKeyboardHandler = createElemPropsHook(useComboboxModel)(model => {
8
- const isRTL = useIsRTL();
9
8
  return {
10
9
  onKeyDown(event) {
11
10
  if (model.state.visibility === 'visible') {
12
- const handled = keyboardEventToCursorEvents(event, model, isRTL);
11
+ const handled = keyboardEventToCursorEvents(event, model);
13
12
  if (handled) {
14
13
  event.preventDefault();
15
14
  }
@@ -2,8 +2,12 @@ import { PartialEmotionCanvasTheme } from './types';
2
2
  /**
3
3
  * This is a small hook to support right-to-left logic.
4
4
  * It returns a boolean
5
- * @example
5
+ *
6
+ * ```ts
6
7
  * const isRTL = useIsRTL();
8
+ * ```
9
+ *
10
+ * @deprecated Use isElementRTL instead.
7
11
  */
8
12
  export declare const useIsRTL: (partialTheme?: PartialEmotionCanvasTheme) => boolean;
9
13
  //# sourceMappingURL=useIsRTL.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsRTL.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/useIsRTL.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuC,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAMxF;;;;;GAKG;AAEH,eAAO,MAAM,QAAQ,kBAAmB,yBAAyB,YAIhE,CAAC"}
1
+ {"version":3,"file":"useIsRTL.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/useIsRTL.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuC,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAMxF;;;;;;;;;GASG;AAEH,eAAO,MAAM,QAAQ,kBAAmB,yBAAyB,YAIhE,CAAC"}
@@ -7,8 +7,12 @@ function useDefaultTheme(theme, config, fn) {
7
7
  /**
8
8
  * This is a small hook to support right-to-left logic.
9
9
  * It returns a boolean
10
- * @example
10
+ *
11
+ * ```ts
11
12
  * const isRTL = useIsRTL();
13
+ * ```
14
+ *
15
+ * @deprecated Use isElementRTL instead.
12
16
  */
13
17
  export const useIsRTL = (partialTheme) => {
14
18
  const theme = useDefaultTheme(partialTheme, ThemeContext, React.useContext);
@@ -1,5 +1,6 @@
1
1
  export * from './colorUtils';
2
2
  export * from './getTranslateFromOrigin';
3
+ export * from './isElementRTL';
3
4
  export * from './dispatchInputEvent';
4
5
  export * from './changeFocus';
5
6
  export * from './makeMq';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './colorUtils';
2
2
  export * from './getTranslateFromOrigin';
3
+ export * from './isElementRTL';
3
4
  export * from './dispatchInputEvent';
4
5
  export * from './changeFocus';
5
6
  export * from './makeMq';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Returns true if element has a right-to-left content direction. This is most useful to get
3
+ * direction from a JavaScript event. If you desire to get a direction for styling, use [CSS Logical
4
+ * Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties)
5
+ *
6
+ * The performance cost of getting the direction from an element is negligible, but it is intended
7
+ * to be used in event handlers and not a part of render functions.
8
+ *
9
+ * ```ts
10
+ * onKeyDown(e) {
11
+ * const isRTL = isElementRTL(e.currentTarget);
12
+ *
13
+ * if (e.key === 'ArrowRight') {
14
+ * if (isRTL) {
15
+ * // Right arrow moves to the right even on RTL languages, but "right" doesn't mean
16
+ * //"advance" in RTL. Previous is to the right of the current in RTL.
17
+ * model.events.goToPreviousRow();
18
+ * } else {
19
+ * model.events.goToNextRow();
20
+ * }
21
+ * }
22
+ * ```
23
+ */
24
+ export declare const isElementRTL: (element: Element) => boolean;
25
+ //# sourceMappingURL=isElementRTL.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isElementRTL.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/isElementRTL.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,YAAY,YAAa,OAAO,KAAG,OAG/C,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Returns true if element has a right-to-left content direction. This is most useful to get
3
+ * direction from a JavaScript event. If you desire to get a direction for styling, use [CSS Logical
4
+ * Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties)
5
+ *
6
+ * The performance cost of getting the direction from an element is negligible, but it is intended
7
+ * to be used in event handlers and not a part of render functions.
8
+ *
9
+ * ```ts
10
+ * onKeyDown(e) {
11
+ * const isRTL = isElementRTL(e.currentTarget);
12
+ *
13
+ * if (e.key === 'ArrowRight') {
14
+ * if (isRTL) {
15
+ * // Right arrow moves to the right even on RTL languages, but "right" doesn't mean
16
+ * //"advance" in RTL. Previous is to the right of the current in RTL.
17
+ * model.events.goToPreviousRow();
18
+ * } else {
19
+ * model.events.goToNextRow();
20
+ * }
21
+ * }
22
+ * ```
23
+ */
24
+ export const isElementRTL = (element) => {
25
+ const direction = getComputedStyle(element).direction;
26
+ return direction === 'rtl';
27
+ };
@@ -35,12 +35,16 @@ export declare const expandableIconStencil: import("@workday/canvas-kit-styling"
35
35
  transform: string;
36
36
  };
37
37
  };
38
+ shouldMirrorInRTL: {
39
+ true: {
40
+ '&:dir(rtl)': {
41
+ transform: string;
42
+ };
43
+ };
44
+ };
38
45
  }, {}, {
39
46
  width: string;
40
- height: string; /**
41
- * Icon to display from `@workday/canvas-accent-icons-web`
42
- * @default chevronUpIcon
43
- */
47
+ height: string;
44
48
  size: string;
45
49
  }, never, never>, never>, never>;
46
50
  export declare const ExpandableIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", ExpandableIconProps, {
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandableIcon.d.ts","sourceRoot":"","sources":["../../../../expandable/lib/ExpandableIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAC,UAAU,EAAoB,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAM/D,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAC/F;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;oBAbhC;;;OAGG;;gCA4DH,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;EAczB,CAAC"}
1
+ {"version":3,"file":"ExpandableIcon.d.ts","sourceRoot":"","sources":["../../../../expandable/lib/ExpandableIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAC,UAAU,EAAoB,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAM/D,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAC/F;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAkDhC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;EAczB,CAAC"}
@@ -49,13 +49,17 @@ export declare const accentIconStencil: import("@workday/canvas-kit-styling").St
49
49
  transform: string;
50
50
  };
51
51
  };
52
+ shouldMirrorInRTL: {
53
+ true: {
54
+ '&:dir(rtl)': {
55
+ transform: string;
56
+ };
57
+ };
58
+ };
52
59
  }, {}, {
53
60
  width: string;
54
61
  height: string;
55
- size: string; /**
56
- * The fill color of the AccentIcon.
57
- * @default system.color.bg.primary.strong
58
- */
62
+ size: string;
59
63
  }, never, never>, never>;
60
64
  export declare const AccentIcon: import("@workday/canvas-kit-react/common").ElementComponent<"span", AccentIconProps>;
61
65
  //# sourceMappingURL=AccentIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccentIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/AccentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAGlE,OAAO,EAAM,QAAQ,EAAwC,MAAM,OAAO,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACvF;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,4BAG1B,gBAAgB,KAAG,SAOpB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;kBAxC5B;;;OAGG;wBA4DH,CAAC;AAEH,eAAO,MAAM,UAAU,sFAwBrB,CAAC"}
1
+ {"version":3,"file":"AccentIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/AccentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAGlE,OAAO,EAAM,QAAQ,EAAwC,MAAM,OAAO,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACvF;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,4BAG1B,gBAAgB,KAAG,SAOpB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuB5B,CAAC;AAEH,eAAO,MAAM,UAAU,sFAiCrB,CAAC"}
@@ -21,7 +21,7 @@ export const accentIconStencil = createStencil({
21
21
  vars: {
22
22
  color: '',
23
23
  },
24
- base: { name: "8918a", styles: "box-sizing:border-box;--size-svg-728c60:3.5rem;& .color-500{fill:var(--color-accent-icon-05e3c8, var(--cnvs-sys-color-bg-primary-strong));}& .french-vanilla-100{fill:var(--cnvs-sys-color-bg-default);}" },
24
+ base: { name: "8918a", styles: "box-sizing:border-box;--size-svg-8fcab8:3.5rem;& .color-500{fill:var(--color-accent-icon-05e3c8, var(--cnvs-sys-color-bg-primary-strong));}& .french-vanilla-100{fill:var(--cnvs-sys-color-bg-default);}" },
25
25
  modifiers: {
26
26
  transparent: {
27
27
  true: { name: "239han", styles: "& .french-vanilla-100{fill:transparent;}" }
@@ -30,12 +30,13 @@ export const accentIconStencil = createStencil({
30
30
  }, "accent-icon-05e3c8");
31
31
  export const AccentIcon = createComponent('span')({
32
32
  displayName: 'AccentIcon',
33
- Component: ({ transparent, size, icon, color, shouldMirror, ...elemProps }, ref, Element) => {
33
+ Component: ({ transparent, size, icon, color, shouldMirror, shouldMirrorInRTL, ...elemProps }, ref, Element) => {
34
34
  return (_jsx(Svg, { src: icon, type: CanvasIconTypes.Accent, as: Element, ref: ref, ...handleCsProp(elemProps, [
35
35
  accentIconStencil({
36
36
  color: transformColorNameToToken(color),
37
37
  size: typeof size === 'number' ? px2rem(size) : undefined,
38
38
  shouldMirror,
39
+ shouldMirrorInRTL,
39
40
  transparent,
40
41
  }),
41
42
  ]) }));
@@ -16,7 +16,7 @@ export interface AppletIconStyles {
16
16
  * @deprecated `appletIconStyles` will be removed in in a future version as a part of implementation of stencils and new tokens. Consider to use `appletIconStencil` instead.
17
17
  */
18
18
  export declare const appletIconStyles: ({ color, }: AppletIconStyles) => CSSObject;
19
- export interface AppletIconProps extends AppletIconStyles, Pick<SvgProps, 'shouldMirror' | 'cs'> {
19
+ export interface AppletIconProps extends AppletIconStyles, Pick<SvgProps, 'shouldMirror' | 'shouldMirrorInRTL' | 'cs'> {
20
20
  /**
21
21
  * The icon to display from `@workday/canvas-applet-icons-web`.
22
22
  */
@@ -43,11 +43,14 @@ export declare const appletIconStencil: import("@workday/canvas-kit-styling").St
43
43
  transform: string;
44
44
  };
45
45
  };
46
+ shouldMirrorInRTL: {
47
+ true: {
48
+ '&:dir(rtl)': {
49
+ transform: string;
50
+ };
51
+ };
52
+ };
46
53
  }, {}, {
47
- /**
48
- * The icon color hue. Must use a member of the `AppletIcon.Colors` static enum.
49
- * @default AppletIcon.Colors.Blueberry
50
- */
51
54
  width: string;
52
55
  height: string;
53
56
  size: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AppletIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/AppletIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAc,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAM,QAAQ,EAAa,MAAM,OAAO,CAAC;AAKhD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,eAE1B,gBAAgB,KAAG,SAsCrB,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9F;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;IAhE5B;;;OAGG;;;;wBA0FH,CAAC;AAEH,eAAO,MAAM,UAAU;;CAyBrB,CAAC"}
1
+ {"version":3,"file":"AppletIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/AppletIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAc,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAM,QAAQ,EAAa,MAAM,OAAO,CAAC;AAKhD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,eAE1B,gBAAgB,KAAG,SAsCrB,CAAC;AAEF,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,QAAQ,EAAE,cAAc,GAAG,mBAAmB,GAAG,IAAI,CAAC;IAC7D;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6B5B,CAAC;AAEH,eAAO,MAAM,UAAU;;CAyBrB,CAAC"}
@@ -51,8 +51,8 @@ export const appletIconStencil = createStencil({
51
51
  color400: '',
52
52
  color500: '',
53
53
  },
54
- base: { name: "fdacy", styles: "box-sizing:border-box;--size-svg-728c60:5.75rem;& .color-100{fill:var(--cnvs-sys-color-fg-inverse);}& .color-200{fill:var(--color200-applet-icon-dc839d, var(--cnvs-base-palette-blue-200));}& .color-300{fill:var(--color300-applet-icon-dc839d, var(--cnvs-base-palette-blue-400));}& .color-400{fill:var(--color400-applet-icon-dc839d, var(--cnvs-base-palette-blue-600));}& .color-400-alpha-20{fill:var(--color400-applet-icon-dc839d, var(--cnvs-base-palette-blue-600));}& .color-500{fill:var(--color500-applet-icon-dc839d, var(--cnvs-base-palette-blue-700));}" }
55
- }, "applet-icon-dc839d");
54
+ base: { name: "46fqck", styles: "box-sizing:border-box;--size-svg-8fcab8:5.75rem;& .color-100{fill:var(--cnvs-sys-color-fg-inverse);}& .color-200{fill:var(--color200-applet-icon-c96fac, var(--cnvs-base-palette-blue-200));}& .color-300{fill:var(--color300-applet-icon-c96fac, var(--cnvs-base-palette-blue-400));}& .color-400{fill:var(--color400-applet-icon-c96fac, var(--cnvs-base-palette-blue-600));}& .color-400-alpha-20{fill:var(--color400-applet-icon-c96fac, var(--cnvs-base-palette-blue-600));}& .color-500{fill:var(--color500-applet-icon-c96fac, var(--cnvs-base-palette-blue-700));}" }
55
+ }, "applet-icon-c96fac");
56
56
  export const AppletIcon = createComponent('span')({
57
57
  displayName: 'AppletIcon',
58
58
  Component: ({ size, icon, color, ...elemProps }, ref, Element) => {
@@ -74,9 +74,14 @@ export declare const graphicStencil: import("@workday/canvas-kit-styling").Stenc
74
74
  true: {
75
75
  transform: string;
76
76
  };
77
- }; /**
78
- * The width of the graphic
79
- */
77
+ };
78
+ shouldMirrorInRTL: {
79
+ true: {
80
+ '&:dir(rtl)': {
81
+ transform: string;
82
+ };
83
+ };
84
+ };
80
85
  }, {}, {
81
86
  width: string;
82
87
  height: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Graphic.d.ts","sourceRoot":"","sources":["../../../../icon/lib/Graphic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAG1C,OAAO,EAAgB,OAAO,EAAuB,MAAM,6BAA6B,CAAC;AAEzF;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAa,SAAQ,OAAO;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,GAAG,EAAE;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC7D;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC;IACvD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,4BAA2B,aAAa,KAAG,SA4BpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;OAlEzB;;OAEG;;;;;wBA2EH,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;gBA0B9B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,WAKxC,CAAC;AAEF,eAAO,MAAM,OAAO,mFA6BlB,CAAC"}
1
+ {"version":3,"file":"Graphic.d.ts","sourceRoot":"","sources":["../../../../icon/lib/Graphic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAG1C,OAAO,EAAgB,OAAO,EAAuB,MAAM,6BAA6B,CAAC;AAEzF;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAa,SAAQ,OAAO;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,GAAG,EAAE;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC7D;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC;IACvD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,4BAA2B,aAAa,KAAG,SA4BpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;wBAWzB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;gBA0B9B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,WAKxC,CAAC;AAEF,eAAO,MAAM,OAAO,mFA6BlB,CAAC"}
@@ -41,7 +41,7 @@ export const graphicStencil = createStencil({
41
41
  base: { name: "j55a7", styles: "box-sizing:border-box;" },
42
42
  modifiers: {
43
43
  grow: {
44
- true: { name: "pgjct", styles: "width:100%;--width-svg-728c60:100%;" }
44
+ true: { name: "pgjct", styles: "width:100%;--width-svg-8fcab8:100%;" }
45
45
  }
46
46
  }
47
47
  }, "graphic-385fe4");
@@ -4,10 +4,19 @@ export interface SvgProps extends BoxProps {
4
4
  src: CanvasIcon;
5
5
  type: CanvasIconTypes;
6
6
  /**
7
- * If set to `true`, transform the SVG's x-axis to mirror the graphic
7
+ * If set to `true`, transform the SVG's x-axis to mirror the graphic. Use this if you want to
8
+ * always mirror the icon regardless of the content direction. If the SVG should mirror only when
9
+ * in an right-to-left language, use `shouldMirrorInRTL` instead.
8
10
  * @default false
9
11
  */
10
12
  shouldMirror?: boolean;
13
+ /**
14
+ * If set to `true`, transform the SVG's x-axis to mirror the graphic when the content direction
15
+ * is `rtl`. Icons don't have enough context to know if they should be mirrored in all cases.
16
+ * Setting this to `true` indicates the icon should be mirrored in right-to-left languages.
17
+ * @default false
18
+ */
19
+ shouldMirrorInRTL?: boolean;
11
20
  }
12
21
  export declare const svgStencil: import("@workday/canvas-kit-styling").Stencil<{
13
22
  shouldMirror: {
@@ -15,6 +24,13 @@ export declare const svgStencil: import("@workday/canvas-kit-styling").Stencil<{
15
24
  transform: string;
16
25
  };
17
26
  };
27
+ shouldMirrorInRTL: {
28
+ true: {
29
+ '&:dir(rtl)': {
30
+ transform: string;
31
+ };
32
+ };
33
+ };
18
34
  }, {}, {
19
35
  /** sets width of svg element */
20
36
  width: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Svg.d.ts","sourceRoot":"","sources":["../../../../icon/lib/Svg.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAGzE,OAAO,EAAC,QAAQ,EAAc,MAAM,kCAAkC,CAAC;AAIvE,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,eAAe,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,UAAU;;;;;;;IAEnB,gCAAgC;;IAEhC,iCAAiC;;IAEjC,2CAA2C;;gBAkB7C,CAAC;AAEH,kBAAkB;AAClB,eAAO,MAAM,yBAAyB,WAAY,MAAM,uBAUvD,CAAC;AAEF,eAAO,MAAM,GAAG,+EAkBd,CAAC"}
1
+ {"version":3,"file":"Svg.d.ts","sourceRoot":"","sources":["../../../../icon/lib/Svg.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAGzE,OAAO,EAAC,QAAQ,EAAc,MAAM,kCAAkC,CAAC;AAIvE,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,eAAe,CAAC;IACtB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;IAEnB,gCAAgC;;IAEhC,iCAAiC;;IAEjC,2CAA2C;;gBAyB7C,CAAC;AAEH,kBAAkB;AAClB,eAAO,MAAM,yBAAyB,WAAY,MAAM,uBAUvD,CAAC;AAEF,eAAO,MAAM,GAAG,+EAsBd,CAAC"}
@@ -13,13 +13,16 @@ export const svgStencil = createStencil({
13
13
  /** sets width and height of svg element */
14
14
  size: '',
15
15
  },
16
- base: { name: "2h4msu", styles: "box-sizing:border-box;display:inline-block;> svg{display:block;width:var(--width-svg-728c60, var(--size-svg-728c60));height:var(--height-svg-728c60, var(--size-svg-728c60));}" },
16
+ base: { name: "1cfgff", styles: "box-sizing:border-box;display:inline-block;> svg{display:block;width:var(--width-svg-8fcab8, var(--size-svg-8fcab8));height:var(--height-svg-8fcab8, var(--size-svg-8fcab8));}" },
17
17
  modifiers: {
18
18
  shouldMirror: {
19
- true: { name: "ep9mb", styles: "transform:scaleX(-1);" }
19
+ true: { name: "3v0dfr", styles: "transform:scaleX(-1);" }
20
+ },
21
+ shouldMirrorInRTL: {
22
+ true: { name: "nmprx", styles: "&:dir(rtl){transform:scaleX(-1);}" }
20
23
  }
21
24
  }
22
- }, "svg-728c60");
25
+ }, "svg-8fcab8");
23
26
  /** @deprecated */
24
27
  export const transformColorNameToToken = (color) => {
25
28
  if (color && color in base) {
@@ -32,7 +35,7 @@ export const transformColorNameToToken = (color) => {
32
35
  };
33
36
  export const Svg = createComponent('span')({
34
37
  displayName: 'Svg',
35
- Component: ({ shouldMirror, src, type, ...elemProps }, ref, Element) => {
38
+ Component: ({ shouldMirror, shouldMirrorInRTL, src, type, ...elemProps }, ref, Element) => {
36
39
  try {
37
40
  validateIconType(src, type);
38
41
  }
@@ -40,6 +43,6 @@ export const Svg = createComponent('span')({
40
43
  console.error(e);
41
44
  return null;
42
45
  }
43
- return (_jsx(Element, { ref: ref, dangerouslySetInnerHTML: { __html: src.svg }, ...mergeStyles(elemProps, svgStencil({ shouldMirror })) }));
46
+ return (_jsx(Element, { ref: ref, dangerouslySetInnerHTML: { __html: src.svg }, ...mergeStyles(elemProps, svgStencil({ shouldMirror, shouldMirrorInRTL })) }));
44
47
  },
45
48
  });
@@ -103,6 +103,13 @@ export declare const systemIconStencil: import("@workday/canvas-kit-styling").St
103
103
  transform: string;
104
104
  };
105
105
  };
106
+ shouldMirrorInRTL: {
107
+ true: {
108
+ '&:dir(rtl)': {
109
+ transform: string;
110
+ };
111
+ };
112
+ };
106
113
  }, {}, {
107
114
  width: string;
108
115
  height: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SystemIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAI1C,OAAO,EAAM,QAAQ,EAAwC,MAAM,OAAO,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC;IAClE;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,8FAS1B,gBAAgB,KAAG,SAmBpB,CAAC;AAiBH,eAAO,MAAM,iBAAiB;IAG1B;;;;OAIG;;;;;;;;;;;;;;wBAkDL,CAAC;AAEH,eAAO,MAAM,UAAU,sFA6CrB,CAAC"}
1
+ {"version":3,"file":"SystemIcon.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAkB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAI1C,OAAO,EAAM,QAAQ,EAAwC,MAAM,OAAO,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC;IAClE;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,8FAS1B,gBAAgB,KAAG,SAmBpB,CAAC;AAiBH,eAAO,MAAM,iBAAiB;IAG1B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;wBAkDL,CAAC;AAEH,eAAO,MAAM,UAAU,sFA6CrB,CAAC"}
@@ -55,7 +55,7 @@ export const systemIconStencil = createStencil({
55
55
  accentColor: '',
56
56
  backgroundColor: '',
57
57
  },
58
- base: { name: "2s986p", styles: "box-sizing:border-box;& svg{width:var(--width-svg-728c60, var(--size-svg-728c60, var(--cnvs-sys-space-x6)));height:var(--height-svg-728c60, var(--size-svg-728c60, var(--cnvs-sys-space-x6)));}& .wd-icon-fill{fill:var(--color-system-icon-3a4847, var(--cnvs-sys-color-icon-default));}& .wd-icon-accent, & .wd-icon-accent2{fill:var(--accentColor-system-icon-3a4847, var(--color-system-icon-3a4847, var(--cnvs-sys-color-fg-default)));}& .wd-icon-background{fill:var(--backgroundColor-system-icon-3a4847, transparent);}&:where(:hover, .hover) .wd-icon-fill{fill:var(--fillHover-02493f, var(--colorHover-02493f, var(--color-system-icon-3a4847, var(--cnvs-sys-color-fg-default))));}&:where(:hover, .hover) .wd-icon-accent, & .wd-icon-accent2{fill:var(--accentHover-02493f, var(--colorHover-02493f, var(--accentColor-system-icon-3a4847, var(--color-system-icon-3a4847, var(--cnvs-sys-color-fg-default)))));}&:where(:hover, .hover) .wd-icon-background{fill:var(--backgroundHover-02493f, var(--backgroundColor-system-icon-3a4847, transparent));}@media (prefers-contrast: more){.wd-icon-fill, .wd-icon-accent{color:currentColor;fill:currentColor;}}" },
58
+ base: { name: "2s986p", styles: "box-sizing:border-box;& svg{width:var(--width-svg-8fcab8, var(--size-svg-8fcab8, var(--cnvs-sys-space-x6)));height:var(--height-svg-8fcab8, var(--size-svg-8fcab8, var(--cnvs-sys-space-x6)));}& .wd-icon-fill{fill:var(--color-system-icon-3a4847, var(--cnvs-sys-color-icon-default));}& .wd-icon-accent, & .wd-icon-accent2{fill:var(--accentColor-system-icon-3a4847, var(--color-system-icon-3a4847, var(--cnvs-sys-color-fg-default)));}& .wd-icon-background{fill:var(--backgroundColor-system-icon-3a4847, transparent);}&:where(:hover, .hover) .wd-icon-fill{fill:var(--fillHover-02493f, var(--colorHover-02493f, var(--color-system-icon-3a4847, var(--cnvs-sys-color-fg-default))));}&:where(:hover, .hover) .wd-icon-accent, & .wd-icon-accent2{fill:var(--accentHover-02493f, var(--colorHover-02493f, var(--accentColor-system-icon-3a4847, var(--color-system-icon-3a4847, var(--cnvs-sys-color-fg-default)))));}&:where(:hover, .hover) .wd-icon-background{fill:var(--backgroundHover-02493f, var(--backgroundColor-system-icon-3a4847, transparent));}@media (prefers-contrast: more){.wd-icon-fill, .wd-icon-accent{color:currentColor;fill:currentColor;}}" },
59
59
  modifiers: {}
60
60
  }, "system-icon-3a4847");
61
61
  export const SystemIcon = createComponent('span')({
@@ -30,10 +30,19 @@ export interface SystemIconCircleProps extends CSProps {
30
30
  */
31
31
  size?: SystemIconCircleSize | number;
32
32
  /**
33
- * If set to `true`, transform the SVG's x-axis to mirror the graphic
33
+ * If set to `true`, transform the SVG's x-axis to mirror the graphic. Use this if you want to
34
+ * always mirror the icon regardless of the content direction. If the SVG should mirror only when
35
+ * in an right-to-left language, use `shouldMirrorInRTL` instead.
34
36
  * @default false
35
37
  */
36
38
  shouldMirror?: boolean;
39
+ /**
40
+ * If set to `true`, transform the SVG's x-axis to mirror the graphic when the content direction
41
+ * is `rtl`. Icons don't have enough context to know if they should be mirrored in all cases.
42
+ * Setting this to `true` indicates the icon should be mirrored in right-to-left languages.
43
+ * @default false
44
+ */
45
+ shouldMirrorInRTL?: boolean;
37
46
  }
38
47
  export declare const systemIconCircleStencil: import("@workday/canvas-kit-styling").Stencil<import("@workday/canvas-kit-styling").StencilModifierConfig<{}, {
39
48
  containerSize: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SystemIconCircle.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIconCircle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAsC,OAAO,EAAC,MAAM,6BAA6B,CAAC;AAIzF,oBAAY,oBAAoB;IAC9B,EAAE,KAAK;IACP,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;IACN,EAAE,KAAK;IACP,GAAG,MAAM;CACV;AAED,MAAM,WAAW,qBAAsB,SAAQ,OAAO;IACpD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC;IACrC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB;;;;;;;;gBAwBlC,CAAC;AAEH,eAAO,MAAM,gBAAgB,4FAgC3B,CAAC"}
1
+ {"version":3,"file":"SystemIconCircle.d.ts","sourceRoot":"","sources":["../../../../icon/lib/SystemIconCircle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAsC,OAAO,EAAC,MAAM,6BAA6B,CAAC;AAIzF,oBAAY,oBAAoB;IAC9B,EAAE,KAAK;IACP,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;IACN,EAAE,KAAK;IACP,GAAG,MAAM;CACV;AAED,MAAM,WAAW,qBAAsB,SAAQ,OAAO;IACpD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC;IACrC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,uBAAuB;;;;;;;;gBAwBlC,CAAC;AAEH,eAAO,MAAM,gBAAgB,4FA8C3B,CAAC"}
@@ -21,11 +21,11 @@ export const systemIconCircleStencil = createStencil({
21
21
  background: '',
22
22
  color: '',
23
23
  },
24
- base: { name: "1yhr60", styles: "box-sizing:border-box;background:var(--background-system-icon-circle-39dde7, var(--cnvs-sys-color-bg-alt-soft));display:flex;align-items:center;justify-content:center;padding:var(--cnvs-sys-space-zero);border:none;border-radius:var(--cnvs-sys-shape-round);overflow:hidden;width:var(--containerSize-system-icon-circle-39dde7, var(--cnvs-sys-space-x10));height:var(--containerSize-system-icon-circle-39dde7, var(--cnvs-sys-space-x10));--size-svg-728c60:calc(var(--containerSize-system-icon-circle-39dde7, var(--cnvs-sys-space-x10)) * 0.625);--color-system-icon-3a4847:var(--color-system-icon-circle-39dde7);& img{width:100%;height:100%;}" }
25
- }, "system-icon-circle-39dde7");
24
+ base: { name: "3mr210", styles: "box-sizing:border-box;background:var(--background-system-icon-circle-308b31, var(--cnvs-sys-color-bg-alt-soft));display:flex;align-items:center;justify-content:center;padding:var(--cnvs-sys-space-zero);border:none;border-radius:var(--cnvs-sys-shape-round);overflow:hidden;width:var(--containerSize-system-icon-circle-308b31, var(--cnvs-sys-space-x10));height:var(--containerSize-system-icon-circle-308b31, var(--cnvs-sys-space-x10));--size-svg-8fcab8:calc(var(--containerSize-system-icon-circle-308b31, var(--cnvs-sys-space-x10)) * 0.625);--color-system-icon-3a4847:var(--color-system-icon-circle-308b31);& img{width:100%;height:100%;}" }
25
+ }, "system-icon-circle-308b31");
26
26
  export const SystemIconCircle = createComponent('span')({
27
27
  displayName: 'SystemIconCircle',
28
- Component: ({ background, color, size, icon, shouldMirror, ...elemProps }, ref, Element) => {
28
+ Component: ({ background, color, size, icon, shouldMirror, shouldMirrorInRTL, ...elemProps }, ref, Element) => {
29
29
  // `pickForegroundColor` hasn't support to use css variables to generate foregroundColor
30
30
  const backgroundFallback = background && !background.startsWith('--') ? background : colors.soap200;
31
31
  const iconColor = pickForegroundColor(backgroundFallback, 'rgba(0,0,0,0.65)', colors.frenchVanilla100);
@@ -33,6 +33,6 @@ export const SystemIconCircle = createComponent('span')({
33
33
  containerSize: typeof size === 'number' ? px2rem(size) : size,
34
34
  background: transformColorNameToToken(background),
35
35
  color: color || iconColor,
36
- })), children: _jsx(SystemIcon, { as: Element, ref: ref, icon: icon, shouldMirror: shouldMirror }) }));
36
+ })), children: _jsx(SystemIcon, { as: Element, ref: ref, icon: icon, shouldMirror: shouldMirror, shouldMirrorInRTL: shouldMirrorInRTL }) }));
37
37
  },
38
38
  });
@@ -7,10 +7,10 @@ import { createStencil, handleCsProp } from '@workday/canvas-kit-styling';
7
7
  import { PaginationContext } from './usePaginationModel';
8
8
  export const paginationPageButtonStencil = createStencil({
9
9
  extends: buttonStencil,
10
- base: { name: "23ov13", styles: "box-sizing:border-box;min-width:var(--cnvs-sys-space-x8);padding:var(--cnvs-sys-space-zero);font-weight:var(--cnvs-sys-font-weight-normal);--label-button-65cb05:var(--cnvs-sys-color-fg-default);&:hover, &.hover{--background-button-65cb05:var(--cnvs-sys-color-bg-alt-soft);--label-button-65cb05:var(--cnvs-sys-color-fg-strong);}&:active, &.active, &:focus-visible, &.focus{--label-button-65cb05:var(--cnvs-sys-color-fg-strong);}&:disabled, &.disabled{--background-button-65cb05:var(--cnvs-sys-color-fg-disabled);}" },
10
+ base: { name: "23ov13", styles: "box-sizing:border-box;min-width:var(--cnvs-sys-space-x8);padding:var(--cnvs-sys-space-zero);font-weight:var(--cnvs-sys-font-weight-normal);--label-button-85bf0e:var(--cnvs-sys-color-fg-default);&:hover, &.hover{--background-button-85bf0e:var(--cnvs-sys-color-bg-alt-soft);--label-button-85bf0e:var(--cnvs-sys-color-fg-strong);}&:active, &.active, &:focus-visible, &.focus{--label-button-85bf0e:var(--cnvs-sys-color-fg-strong);}&:disabled, &.disabled{--background-button-85bf0e:var(--cnvs-sys-color-fg-disabled);}" },
11
11
  modifiers: {
12
12
  toggled: {
13
- true: { name: "140272", styles: "font-weight:var(--cnvs-sys-font-weight-bold);--background-button-65cb05:var(--cnvs-brand-primary-base);--label-button-65cb05:var(--cnvs-sys-color-fg-inverse);&:hover, &.hover, &:active, &.active, &:focus-visible, &.focus{--background-button-65cb05:var(--cnvs-brand-primary-base);--label-button-65cb05:var(--cnvs-sys-color-fg-inverse);}&:disabled, &.disabled{--background-button-65cb05:var(--cnvs-sys-color-fg-disabled);}" }
13
+ true: { name: "140272", styles: "font-weight:var(--cnvs-sys-font-weight-bold);--background-button-85bf0e:var(--cnvs-brand-primary-base);--label-button-85bf0e:var(--cnvs-sys-color-fg-inverse);&:hover, &.hover, &:active, &.active, &:focus-visible, &.focus{--background-button-85bf0e:var(--cnvs-brand-primary-base);--label-button-85bf0e:var(--cnvs-sys-color-fg-inverse);}&:disabled, &.disabled{--background-button-85bf0e:var(--cnvs-sys-color-fg-disabled);}" }
14
14
  }
15
15
  }
16
16
  }, "pagination-page-button-88d20c");
@@ -1 +1 @@
1
- {"version":3,"file":"usePopupStack.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/usePopupStack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,aAAa,mEAEf,WAAW,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,KAClD,MAAM,SAAS,CAAC,WAAW,CAsF7B,CAAC"}
1
+ {"version":3,"file":"usePopupStack.d.ts","sourceRoot":"","sources":["../../../../../popup/lib/hooks/usePopupStack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,aAAa,mEAEf,WAAW,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,KAClD,MAAM,SAAS,CAAC,WAAW,CAyF7B,CAAC"}