@workday/canvas-kit-react 10.0.0-alpha.446-next.0 → 10.0.0-alpha.449-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 (70) hide show
  1. package/button/lib/BaseButton.tsx +4 -4
  2. package/checkbox/lib/Checkbox.tsx +18 -12
  3. package/dist/commonjs/button/lib/BaseButton.d.ts +1 -1
  4. package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -1
  5. package/dist/commonjs/button/lib/BaseButton.js +4 -4
  6. package/dist/commonjs/checkbox/lib/Checkbox.d.ts.map +1 -1
  7. package/dist/commonjs/checkbox/lib/Checkbox.js +11 -11
  8. package/dist/commonjs/popup/lib/Popper.d.ts +4 -4
  9. package/dist/commonjs/popup/lib/Popper.d.ts.map +1 -1
  10. package/dist/commonjs/popup/lib/Popper.js +2 -2
  11. package/dist/commonjs/popup/lib/fallbackPlacements.d.ts +3 -3
  12. package/dist/commonjs/popup/lib/fallbackPlacements.d.ts.map +1 -1
  13. package/dist/commonjs/popup/lib/fallbackPlacements.js +3 -22
  14. package/dist/commonjs/radio/lib/Radio.d.ts.map +1 -1
  15. package/dist/commonjs/radio/lib/Radio.js +13 -13
  16. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  17. package/dist/commonjs/select/lib/Select.js +1 -1
  18. package/dist/commonjs/table/lib/TableRow.js +1 -1
  19. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  20. package/dist/commonjs/text-area/lib/TextArea.js +3 -3
  21. package/dist/commonjs/text-input/lib/TextInput.js +1 -1
  22. package/dist/commonjs/tokens/index.d.ts.map +1 -1
  23. package/dist/commonjs/tokens/lib/depth.d.ts +6 -6
  24. package/dist/commonjs/tokens/lib/depth.d.ts.map +1 -1
  25. package/dist/commonjs/tokens/lib/depth.js +6 -6
  26. package/dist/commonjs/tokens/lib/space.d.ts +65 -27
  27. package/dist/commonjs/tokens/lib/space.d.ts.map +1 -1
  28. package/dist/commonjs/tokens/lib/space.js +61 -23
  29. package/dist/commonjs/tooltip/lib/TooltipContainer.js +8 -8
  30. package/dist/es6/button/lib/BaseButton.d.ts +1 -1
  31. package/dist/es6/button/lib/BaseButton.d.ts.map +1 -1
  32. package/dist/es6/button/lib/BaseButton.js +4 -4
  33. package/dist/es6/checkbox/lib/Checkbox.d.ts.map +1 -1
  34. package/dist/es6/checkbox/lib/Checkbox.js +12 -12
  35. package/dist/es6/popup/lib/Popper.d.ts +4 -4
  36. package/dist/es6/popup/lib/Popper.d.ts.map +1 -1
  37. package/dist/es6/popup/lib/Popper.js +2 -2
  38. package/dist/es6/popup/lib/fallbackPlacements.d.ts +3 -3
  39. package/dist/es6/popup/lib/fallbackPlacements.d.ts.map +1 -1
  40. package/dist/es6/popup/lib/fallbackPlacements.js +3 -3
  41. package/dist/es6/radio/lib/Radio.d.ts.map +1 -1
  42. package/dist/es6/radio/lib/Radio.js +14 -14
  43. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  44. package/dist/es6/select/lib/Select.js +2 -2
  45. package/dist/es6/table/lib/TableRow.js +1 -1
  46. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  47. package/dist/es6/text-area/lib/TextArea.js +4 -4
  48. package/dist/es6/text-input/lib/TextInput.js +1 -1
  49. package/dist/es6/tokens/index.d.ts.map +1 -1
  50. package/dist/es6/tokens/index.js +1 -1
  51. package/dist/es6/tokens/lib/depth.d.ts +6 -6
  52. package/dist/es6/tokens/lib/depth.d.ts.map +1 -1
  53. package/dist/es6/tokens/lib/depth.js +6 -6
  54. package/dist/es6/tokens/lib/space.d.ts +65 -27
  55. package/dist/es6/tokens/lib/space.d.ts.map +1 -1
  56. package/dist/es6/tokens/lib/space.js +61 -23
  57. package/dist/es6/tooltip/lib/TooltipContainer.js +8 -8
  58. package/package.json +3 -3
  59. package/popup/lib/Popper.tsx +6 -6
  60. package/popup/lib/fallbackPlacements.ts +16 -8
  61. package/radio/lib/Radio.tsx +20 -14
  62. package/select/lib/Select.tsx +2 -9
  63. package/table/lib/TableRow.tsx +1 -1
  64. package/text-area/lib/TextArea.tsx +10 -4
  65. package/text-input/lib/TextInput.tsx +1 -1
  66. package/tokens/README.md +19 -19
  67. package/tokens/index.ts +1 -2
  68. package/tokens/lib/depth.ts +16 -12
  69. package/tokens/lib/space.ts +84 -46
  70. package/tooltip/lib/TooltipContainer.tsx +8 -8
@@ -1,44 +1,82 @@
1
1
  declare type ValueOf<T> = T[keyof T];
2
- /** Type for the `space` object with keys and px values (strings) */
2
+ /** Type for the `space` object with keys and rem values (strings) */
3
3
  export declare type CanvasSpace = {
4
- zero: '0px';
5
- xxxs: '4px';
6
- xxs: '8px';
7
- xs: '12px';
8
- s: '16px';
9
- m: '24px';
10
- l: '32px';
11
- xl: '40px';
12
- xxl: '64px';
13
- xxxl: '80px';
4
+ zero: '0';
5
+ xxxs: '0.25rem';
6
+ xxs: '0.5rem';
7
+ xs: '0.75rem';
8
+ s: '1rem';
9
+ m: '1.5rem';
10
+ l: '2rem';
11
+ xl: '2.5rem';
12
+ xxl: '4rem';
13
+ xxxl: '5rem';
14
14
  };
15
15
  /** Type for `CanvasSpace` keys */
16
16
  export declare type CanvasSpaceKeys = keyof CanvasSpace;
17
- /** The px values for CanvasSpace (strings) */
17
+ /** The rem values for CanvasSpace (strings) */
18
18
  export declare type CanvasSpaceValues = ValueOf<CanvasSpace>;
19
- /** An object of space keys and px values (strings) */
19
+ /**
20
+ * An object of space keys and rem values (strings)
21
+ *
22
+ * Below is a table to show the equivalent values from `px` to `rem`.
23
+ * This is based on the default browser font size which is `16px`.
24
+ *
25
+ * | px Value | rem Value | space token |
26
+ * | --------- | --------- | ----------- |
27
+ * | 0 | 0 | zero |
28
+ * | 4px | 0.25rem | xxxs |
29
+ * | 8px | 0.5rem | xxs |
30
+ * | 12px | 0.75rem | xs |
31
+ * | 16px | 1rem | s |
32
+ * | 24px | 1.5rem | m |
33
+ * | 32px | 2rem | l |
34
+ * | 40px | 2.5rem | xl |
35
+ * | 64px | 4rem | xxl |
36
+ * | 80px | 5rem | xxxl |
37
+ *
38
+ * */
20
39
  export declare const space: CanvasSpace;
21
- /** Type for the `spaceNumbers` object with keys and numeric px values (numbers) */
40
+ /** Type for the `spaceNumbers` object with keys and numeric rem values (numbers) */
22
41
  export declare type CanvasSpaceNumbers = {
23
42
  zero: 0;
24
- xxxs: 4;
25
- xxs: 8;
26
- xs: 12;
27
- s: 16;
28
- m: 24;
29
- l: 32;
30
- xl: 40;
31
- xxl: 64;
32
- xxxl: 80;
43
+ xxxs: 0.25;
44
+ xxs: 0.5;
45
+ xs: 0.75;
46
+ s: 1;
47
+ m: 1.5;
48
+ l: 2;
49
+ xl: 2.5;
50
+ xxl: 4;
51
+ xxxl: 5;
33
52
  };
34
- /** The numeric px values for CanvasSpaceNumbers (numbers) */
53
+ /** The numeric rem values for CanvasSpaceNumbers (numbers) */
35
54
  export declare type CanvasSpaceNumberValues = ValueOf<CanvasSpaceNumbers>;
36
55
  /**
37
- * An object of space keys and their numeric px values (numbers)
38
- * - These are helpful when you need a raw numeric px value.
56
+ * An object of space keys and their numeric rem values (numbers)
57
+ * - These are helpful when you need a raw numeric rem value.
39
58
  * - Here's an example usage to perform calculations:
40
59
  * @example
41
- * const buttonPaddingLeft = spaceNumbers.s + iconSize;
60
+ * ```tsx
61
+ * const buttonPaddingLeft = `${spaceNumbers.s + iconSize}rem`;
62
+ * ```
63
+ *
64
+ * Below is a table to show the equivalent values from `px` to `rem`.
65
+ * This is based on the default browser font size which is `16px`.
66
+ *
67
+ * | px Value | rem Value | space token |
68
+ * | --------- | --------- | ----------- |
69
+ * | 0 | 0 | zero |
70
+ * | 4px | 0.25rem | xxxs |
71
+ * | 8px | 0.5rem | xxs |
72
+ * | 12px | 0.75rem | xs |
73
+ * | 16px | 1rem | s |
74
+ * | 24px | 1.5rem | m |
75
+ * | 32px | 2rem | l |
76
+ * | 40px | 2.5rem | xl |
77
+ * | 64px | 4rem | xxl |
78
+ * | 80px | 5rem | xxxl |
79
+ *
42
80
  */
43
81
  export declare const spaceNumbers: CanvasSpaceNumbers;
44
82
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../../tokens/lib/space.ts"],"names":[],"mappings":"AAAA,aAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAO7B,oEAAoE;AACpE,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,KAAK,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,kCAAkC;AAClC,oBAAY,eAAe,GAAG,MAAM,WAAW,CAAC;AAEhD,8CAA8C;AAC9C,oBAAY,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAErD,sDAAsD;AACtD,eAAO,MAAM,KAAK,EAAE,WAWnB,CAAC;AAEF,mFAAmF;AACnF,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,CAAC,CAAC;IACR,GAAG,EAAE,CAAC,CAAC;IACP,EAAE,EAAE,EAAE,CAAC;IACP,CAAC,EAAE,EAAE,CAAC;IACN,CAAC,EAAE,EAAE,CAAC;IACN,CAAC,EAAE,EAAE,CAAC;IACN,EAAE,EAAE,EAAE,CAAC;IACP,GAAG,EAAE,EAAE,CAAC;IACR,IAAI,EAAE,EAAE,CAAC;CACV,CAAC;AAEF,6DAA6D;AAC7D,oBAAY,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAElE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,kBAW1B,CAAC"}
1
+ {"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../../tokens/lib/space.ts"],"names":[],"mappings":"AAAA,aAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAO7B,qEAAqE;AACrE,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,GAAG,CAAC;IACV,IAAI,EAAE,SAAS,CAAC;IAChB,GAAG,EAAE,QAAQ,CAAC;IACd,EAAE,EAAE,SAAS,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,QAAQ,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,QAAQ,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,kCAAkC;AAClC,oBAAY,eAAe,GAAG,MAAM,WAAW,CAAC;AAEhD,+CAA+C;AAC/C,oBAAY,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAErD;;;;;;;;;;;;;;;;;;;KAmBK;AACL,eAAO,MAAM,KAAK,EAAE,WAWnB,CAAC;AAEF,oFAAoF;AACpF,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,EAAE,GAAG,CAAC;IACT,EAAE,EAAE,IAAI,CAAC;IACT,CAAC,EAAE,CAAC,CAAC;IACL,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,CAAC,CAAC;IACL,EAAE,EAAE,GAAG,CAAC;IACR,GAAG,EAAE,CAAC,CAAC;IACP,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,8DAA8D;AAC9D,oBAAY,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,EAAE,kBAW1B,CAAC"}
@@ -1,35 +1,73 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.spaceNumbers = exports.space = void 0;
4
- /** An object of space keys and px values (strings) */
4
+ /**
5
+ * An object of space keys and rem values (strings)
6
+ *
7
+ * Below is a table to show the equivalent values from `px` to `rem`.
8
+ * This is based on the default browser font size which is `16px`.
9
+ *
10
+ * | px Value | rem Value | space token |
11
+ * | --------- | --------- | ----------- |
12
+ * | 0 | 0 | zero |
13
+ * | 4px | 0.25rem | xxxs |
14
+ * | 8px | 0.5rem | xxs |
15
+ * | 12px | 0.75rem | xs |
16
+ * | 16px | 1rem | s |
17
+ * | 24px | 1.5rem | m |
18
+ * | 32px | 2rem | l |
19
+ * | 40px | 2.5rem | xl |
20
+ * | 64px | 4rem | xxl |
21
+ * | 80px | 5rem | xxxl |
22
+ *
23
+ * */
5
24
  exports.space = {
6
- zero: '0px',
7
- xxxs: '4px',
8
- xxs: '8px',
9
- xs: '12px',
10
- s: '16px',
11
- m: '24px',
12
- l: '32px',
13
- xl: '40px',
14
- xxl: '64px',
15
- xxxl: '80px',
25
+ zero: '0',
26
+ xxxs: '0.25rem',
27
+ xxs: '0.5rem',
28
+ xs: '0.75rem',
29
+ s: '1rem',
30
+ m: '1.5rem',
31
+ l: '2rem',
32
+ xl: '2.5rem',
33
+ xxl: '4rem',
34
+ xxxl: '5rem',
16
35
  };
17
36
  /**
18
- * An object of space keys and their numeric px values (numbers)
19
- * - These are helpful when you need a raw numeric px value.
37
+ * An object of space keys and their numeric rem values (numbers)
38
+ * - These are helpful when you need a raw numeric rem value.
20
39
  * - Here's an example usage to perform calculations:
21
40
  * @example
22
- * const buttonPaddingLeft = spaceNumbers.s + iconSize;
41
+ * ```tsx
42
+ * const buttonPaddingLeft = `${spaceNumbers.s + iconSize}rem`;
43
+ * ```
44
+ *
45
+ * Below is a table to show the equivalent values from `px` to `rem`.
46
+ * This is based on the default browser font size which is `16px`.
47
+ *
48
+ * | px Value | rem Value | space token |
49
+ * | --------- | --------- | ----------- |
50
+ * | 0 | 0 | zero |
51
+ * | 4px | 0.25rem | xxxs |
52
+ * | 8px | 0.5rem | xxs |
53
+ * | 12px | 0.75rem | xs |
54
+ * | 16px | 1rem | s |
55
+ * | 24px | 1.5rem | m |
56
+ * | 32px | 2rem | l |
57
+ * | 40px | 2.5rem | xl |
58
+ * | 64px | 4rem | xxl |
59
+ * | 80px | 5rem | xxxl |
60
+ *
23
61
  */
24
62
  exports.spaceNumbers = {
25
63
  zero: 0,
26
- xxxs: 4,
27
- xxs: 8,
28
- xs: 12,
29
- s: 16,
30
- m: 24,
31
- l: 32,
32
- xl: 40,
33
- xxl: 64,
34
- xxxl: 80,
64
+ xxxs: 0.25,
65
+ xxs: 0.5,
66
+ xs: 0.75,
67
+ s: 1,
68
+ m: 1.5,
69
+ l: 2,
70
+ xl: 2.5,
71
+ xxl: 4,
72
+ xxxl: 5,
35
73
  };
@@ -29,7 +29,7 @@ exports.TooltipContainer = styled_1.default('div')({
29
29
  ...tokens_1.type.levels.subtext.medium,
30
30
  display: 'inline-flex',
31
31
  position: 'relative',
32
- padding: tokens_1.spaceNumbers.xxs + tokens_1.spaceNumbers.xxxs,
32
+ padding: tokens_1.space.xs,
33
33
  color: tokens_1.colors.frenchVanilla100,
34
34
  a: {
35
35
  color: tokens_1.colors.frenchVanilla100,
@@ -40,7 +40,7 @@ exports.TooltipContainer = styled_1.default('div')({
40
40
  content: '""',
41
41
  borderRadius: tokens_1.borderRadius.m,
42
42
  zIndex: -1,
43
- margin: tokens_1.spaceNumbers.xxxs,
43
+ margin: tokens_1.space.xxxs,
44
44
  backgroundColor: 'rgba(0,0,0,.85)',
45
45
  position: 'absolute',
46
46
  top: 0,
@@ -50,9 +50,9 @@ exports.TooltipContainer = styled_1.default('div')({
50
50
  },
51
51
  // offset tooltips by 2 pixels when a keyboard focus ring is detected
52
52
  '[data-whatinput=keyboard] &': {
53
- padding: tokens_1.spaceNumbers.xxs + tokens_1.spaceNumbers.xxxs + 2,
53
+ padding: `${tokens_1.spaceNumbers.s - 0.125}rem`,
54
54
  ':before': {
55
- margin: tokens_1.spaceNumbers.xxxs + 2,
55
+ margin: `${tokens_1.spaceNumbers.xxxs + 0.125}rem`,
56
56
  },
57
57
  },
58
58
  // Hide tooltip when the reference element is either clipped or fully hidden
@@ -62,16 +62,16 @@ exports.TooltipContainer = styled_1.default('div')({
62
62
  },
63
63
  // Fix offsets based on placement
64
64
  '[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &': {
65
- left: -tokens_1.spaceNumbers.xxxs,
65
+ left: `-${tokens_1.space.xxxs}`,
66
66
  },
67
67
  '[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &': {
68
- right: -tokens_1.spaceNumbers.xxxs,
68
+ right: `-${tokens_1.space.xxxs}`,
69
69
  },
70
70
  '[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &': {
71
- top: -tokens_1.spaceNumbers.xxxs,
71
+ top: `-${tokens_1.space.xxxs}`,
72
72
  },
73
73
  '[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &': {
74
- bottom: -tokens_1.spaceNumbers.xxxs,
74
+ bottom: `-${tokens_1.space.xxxs}`,
75
75
  },
76
76
  }, ({ transformOrigin = defaultTransformOrigin }) => {
77
77
  if (transformOrigin === null) {
@@ -26,7 +26,7 @@ export interface ButtonContainerProps extends Partial<SystemIconProps>, GrowthBe
26
26
  */
27
27
  export interface BaseButtonProps extends Omit<ButtonContainerProps, 'ref'> {
28
28
  }
29
- export declare const getMinWidthStyles: (children: React.ReactNode, size: ButtonSizes | TertiaryButtonSizes) => "24px" | "32px" | "40px" | "80px" | "auto" | "48px" | "112px" | "96px";
29
+ export declare const getMinWidthStyles: (children: React.ReactNode, size: ButtonSizes | TertiaryButtonSizes) => "1.5rem" | "2rem" | "2.5rem" | "5rem" | "auto" | "48px" | "112px" | "96px";
30
30
  export declare const getPaddingStyles: (children: React.ReactNode, size: ButtonSizes | TertiaryButtonSizes, icon: CanvasSystemIcon | undefined, iconPosition: IconPositions | undefined) => string | 0;
31
31
  export declare const BaseButton: import("@workday/canvas-kit-react/common").ElementComponent<"button", ButtonContainerProps> & {
32
32
  Icon: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("./parts/ButtonLabelIcon").ButtonLabelIconProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC,EAAE,cAAc;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;CAAG;AAgL7E,eAAO,MAAM,iBAAiB,aAClB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,2EAcxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,QACjC,gBAAgB,GAAG,SAAS,gBACpB,aAAa,GAAG,SAAS,eAiDxC,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAarB,CAAC"}
1
+ {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC,EAAE,cAAc;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;CAAG;AAgL7E,eAAO,MAAM,iBAAiB,aAClB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,+EAcxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,QACjC,gBAAgB,GAAG,SAAS,gBACpB,aAAa,GAAG,SAAS,eAiDxC,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAarB,CAAC"}
@@ -64,7 +64,7 @@ const ButtonContainer = styled('button')({
64
64
  fontWeight: type.properties.fontWeights.bold,
65
65
  height: '48px',
66
66
  '& > * ': {
67
- margin: `0 ${spaceNumbers.xxs / 2}px`,
67
+ margin: `0 ${space.xxxs}`,
68
68
  },
69
69
  };
70
70
  case 'medium':
@@ -72,14 +72,14 @@ const ButtonContainer = styled('button')({
72
72
  return {
73
73
  height: space.xl,
74
74
  '& > * ': {
75
- margin: `0 ${spaceNumbers.xxs / 2}px`,
75
+ margin: `0 ${space.xxxs}`,
76
76
  },
77
77
  };
78
78
  case 'small':
79
79
  return {
80
80
  height: space.l,
81
81
  '& > * ': {
82
- margin: `0 ${spaceNumbers.xxxs / 2}px`,
82
+ margin: `0 ${spaceNumbers.xxxs / 2}rem`,
83
83
  },
84
84
  };
85
85
  case 'extraSmall':
@@ -88,7 +88,7 @@ const ButtonContainer = styled('button')({
88
88
  fontWeight: type.properties.fontWeights.bold,
89
89
  height: space.m,
90
90
  '& > * ': {
91
- margin: `0 ${spaceNumbers.xxxs / 2}px`,
91
+ margin: `0 ${spaceNumbers.xxxs / 2}rem`,
92
92
  },
93
93
  };
94
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../checkbox/lib/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAOT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAM1C,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAqPD,eAAO,MAAM,QAAQ;;CAmEnB,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../checkbox/lib/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAOT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAY1C,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAqPD,eAAO,MAAM,QAAQ;;CAmEnB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { createComponent, ErrorType, useUniqueId, focusRing, mouseFocusBehavior, getErrorColors, styled, useTheme, } from '@workday/canvas-kit-react/common';
3
- import { borderRadius, colors, inputColors, spaceNumbers } from '@workday/canvas-kit-react/tokens';
3
+ import { borderRadius, colors, inputColors, space, spaceNumbers, } from '@workday/canvas-kit-react/tokens';
4
4
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
5
5
  import { checkSmallIcon } from '@workday/canvas-system-icons-web';
6
6
  import { LabelText } from '@workday/canvas-kit-react/text';
7
- const checkboxHeight = 18;
8
- const checkboxTapArea = spaceNumbers.m;
7
+ const checkboxHeight = (spaceNumbers.xl - spaceNumbers.xxxs) / 2;
8
+ const checkboxTapArea = space.m;
9
9
  const checkboxContainerHeight = checkboxTapArea;
10
- const checkboxLabelDistance = spaceNumbers.xs;
11
- const checkboxWidth = 18;
10
+ const checkboxLabelDistance = `${spaceNumbers.xs}rem`;
11
+ const checkboxWidth = checkboxHeight;
12
12
  const rippleRadius = (spaceNumbers.l - checkboxWidth) / 2;
13
13
  const CheckboxContainer = styled('div')({
14
14
  display: 'flex',
@@ -23,17 +23,17 @@ const CheckboxContainer = styled('div')({
23
23
  */
24
24
  const CheckboxInputWrapper = styled('div')({
25
25
  display: 'flex',
26
- height: checkboxHeight,
27
- minWidth: checkboxWidth,
26
+ height: `${checkboxHeight}rem`,
27
+ minWidth: `${checkboxWidth}rem`,
28
28
  marginTop: '3px',
29
29
  alignSelf: 'flex-start',
30
30
  });
31
31
  const CheckboxRipple = styled('span')({
32
32
  borderRadius: borderRadius.circle,
33
33
  boxShadow: `0 0 0 0 ${colors.soap200}`,
34
- height: checkboxHeight,
34
+ height: `${checkboxHeight}rem`,
35
35
  transition: 'box-shadow 150ms ease-out',
36
- width: checkboxWidth,
36
+ width: `${checkboxWidth}rem`,
37
37
  position: 'absolute',
38
38
  pointerEvents: 'none', // This is a decorative element we don't want it to block clicks to input
39
39
  }, ({ variant }) => ({
@@ -124,7 +124,7 @@ const CheckboxInput = styled('input')(({ theme: { canvas: { palette: { primary:
124
124
  }),
125
125
  }), ({ disabled }) => ({
126
126
  '&:hover ~ span:first-of-type': {
127
- boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}px ${colors.soap200}`,
127
+ boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}rem ${colors.soap200}`,
128
128
  },
129
129
  }), ({ theme, error, variant }) => {
130
130
  const errorColors = getErrorColors(error, theme);
@@ -167,13 +167,13 @@ const CheckboxBackground = styled('div')({
167
167
  borderRadius: borderRadius.s,
168
168
  boxSizing: 'border-box',
169
169
  display: 'flex',
170
- height: checkboxHeight,
170
+ height: `${checkboxHeight}rem`,
171
171
  justifyContent: 'center',
172
172
  padding: '0px 2px',
173
173
  pointerEvents: 'none',
174
174
  position: 'absolute',
175
175
  transition: 'border 200ms ease, background 200ms',
176
- width: checkboxWidth,
176
+ width: `${checkboxWidth}rem`,
177
177
  }, ({ variant }) => ({
178
178
  border: `1px solid ${variant === 'inverse' ? colors.soap300 : inputColors.border}`,
179
179
  }));
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import * as PopperJS from '@popperjs/core';
3
- export declare type Placement = `${PopperJS.Placement}`;
4
- export declare type PopperOptions = PopperJS.Options;
2
+ import { Placement as PopperJSPlacement, Options, Instance } from '@popperjs/core';
3
+ export declare type Placement = `${PopperJSPlacement}`;
4
+ export declare type PopperOptions = Options;
5
5
  export declare const defaultFallbackPlacements: Placement[];
6
6
  export interface PopperProps {
7
7
  /**
@@ -69,7 +69,7 @@ export interface PopperProps {
69
69
  * Reference to the PopperJS instance. Useful for making direct method calls on the popper
70
70
  * instance like `update`.
71
71
  */
72
- popperInstanceRef?: React.Ref<PopperJS.Instance>;
72
+ popperInstanceRef?: React.Ref<Instance>;
73
73
  }
74
74
  /**
75
75
  * A thin wrapper component around the Popper.js positioning engine. For reference:
@@ -1 +1 @@
1
- {"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../../popup/lib/Popper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,oBAAY,SAAS,GAAG,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;AAChD,oBAAY,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC;AAC7C,eAAO,MAAM,yBAAyB,EAAE,SAAS,EAAuC,CAAC;AAMzF,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IAC1D;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE;QAAC,SAAS,EAAE,SAAS,CAAA;KAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IACjF;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC;IACpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC;IACjC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IACnD;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;CAClD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,oFAQlB,CAAC"}
1
+ {"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../../popup/lib/Popper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,IAAI,iBAAiB,EAAE,OAAO,EAAE,QAAQ,EAA0B,MAAM,gBAAgB,CAAC;AAE3G,oBAAY,SAAS,GAAG,GAAG,iBAAiB,EAAE,CAAC;AAC/C,oBAAY,aAAa,GAAG,OAAO,CAAC;AACpC,eAAO,MAAM,yBAAyB,EAAE,SAAS,EAAuC,CAAC;AAMzF,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IAC1D;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE;QAAC,SAAS,EAAE,SAAS,CAAA;KAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IACjF;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC;IACpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC;IACjC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IACnD;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;CACzC;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,oFAQlB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as ReactDOM from 'react-dom';
3
- import * as PopperJS from '@popperjs/core';
3
+ import { createPopper } from '@popperjs/core';
4
4
  export const defaultFallbackPlacements = ['top', 'right', 'bottom', 'left'];
5
5
  import { usePopupStack } from './hooks';
6
6
  import { useLocalRef } from '@workday/canvas-kit-react/common';
@@ -71,7 +71,7 @@ const OpenPopper = React.forwardRef(({ anchorElement, getAnchorClientRect, poppe
71
71
  return undefined;
72
72
  }
73
73
  if (stackRef.current) {
74
- const instance = PopperJS.createPopper(anchorEl, stackRef.current, {
74
+ const instance = createPopper(anchorEl, stackRef.current, {
75
75
  placement: popperPlacement,
76
76
  ...popperOptions,
77
77
  modifiers: [
@@ -1,9 +1,9 @@
1
- import * as PopperJS from '@popperjs/core';
2
- export declare type Placement = PopperJS.Placement;
1
+ import { Placement as PopperJSPlacement, Modifier } from '@popperjs/core';
2
+ export declare type Placement = PopperJSPlacement;
3
3
  export declare type Options = {
4
4
  fallbackPlacements: Placement[];
5
5
  };
6
6
  declare const name = "fallbackModifier";
7
- export declare const fallbackPlacementsModifier: PopperJS.Modifier<typeof name, Options>;
7
+ export declare const fallbackPlacementsModifier: Modifier<typeof name, Options>;
8
8
  export {};
9
9
  //# sourceMappingURL=fallbackPlacements.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fallbackPlacements.d.ts","sourceRoot":"","sources":["../../../../popup/lib/fallbackPlacements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,oBAAY,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;AAyD3C,oBAAY,OAAO,GAAG;IACpB,kBAAkB,EAAE,SAAS,EAAE,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,IAAI,qBAAqB,CAAC;AAEhC,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,IAAI,EAAE,OAAO,CAwB9E,CAAC"}
1
+ {"version":3,"file":"fallbackPlacements.d.ts","sourceRoot":"","sources":["../../../../popup/lib/fallbackPlacements.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,iBAAiB,EAK9B,QAAQ,EAET,MAAM,gBAAgB,CAAC;AAExB,oBAAY,SAAS,GAAG,iBAAiB,CAAC;AAyD1C,oBAAY,OAAO,GAAG;IACpB,kBAAkB,EAAE,SAAS,EAAE,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,IAAI,qBAAqB,CAAC;AAEhC,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,OAAO,IAAI,EAAE,OAAO,CAwBrE,CAAC"}
@@ -1,4 +1,4 @@
1
- import * as PopperJS from '@popperjs/core';
1
+ import { placements, detectOverflow, } from '@popperjs/core';
2
2
  const getOppositePlacement = (popperPlacement) => {
3
3
  var _a;
4
4
  const [first, second] = popperPlacement.split('-');
@@ -21,7 +21,7 @@ const getOppositePlacement = (popperPlacement) => {
21
21
  }
22
22
  if (second) {
23
23
  oppositePlacement =
24
- (_a = PopperJS.placements.find(placement => placement.includes(`${oppositePlacement}-${second}`))) !== null && _a !== void 0 ? _a : oppositePlacement;
24
+ (_a = placements.find(placement => placement.includes(`${oppositePlacement}-${second}`))) !== null && _a !== void 0 ? _a : oppositePlacement;
25
25
  }
26
26
  return oppositePlacement;
27
27
  };
@@ -30,7 +30,7 @@ const choseAvailablePlacement = (placements, state, preferredPlacement) => {
30
30
  return preferredPlacement;
31
31
  }
32
32
  const { reference, popper } = state.rects;
33
- const overflow = PopperJS.detectOverflow({ ...state, placement: placements[0] });
33
+ const overflow = detectOverflow({ ...state, placement: placements[0] });
34
34
  const direction = /left|right/.test(placements[0].split('-')[0]) ? 'horizontal' : 'vertical';
35
35
  const isOverflowed = (overflow.top > 0 || overflow.bottom > 0 || overflow.left > 0 || overflow.right > 0) &&
36
36
  (direction === 'horizontal'
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../radio/lib/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,SAAS,EAEV,MAAM,kCAAkC,CAAC;AAI1C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAmOD,eAAO,MAAM,KAAK,kFAqDhB,CAAC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../radio/lib/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,SAAS,EAEV,MAAM,kCAAkC,CAAC;AAU1C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAmOD,eAAO,MAAM,KAAK,kFAqDhB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { createComponent, focusRing, mouseFocusBehavior, styled, useUniqueId, } from '@workday/canvas-kit-react/common';
3
- import { borderRadius, colors, inputColors, spaceNumbers } from '@workday/canvas-kit-react/tokens';
3
+ import { borderRadius, colors, inputColors, space, spaceNumbers, } from '@workday/canvas-kit-react/tokens';
4
4
  import { LabelText } from '@workday/canvas-kit-react/text';
5
- const radioBorderRadius = 9;
6
- const radioDot = 8;
7
- const radioHeight = 18;
8
- const radioTapArea = spaceNumbers.m;
5
+ const radioBorderRadius = `${spaceNumbers.xxs + 0.0625}rem`;
6
+ const radioDot = space.xxs;
7
+ const radioHeight = (spaceNumbers.xl - spaceNumbers.xxxs) / 2;
8
+ const radioTapArea = space.m;
9
9
  const radioContainerHeight = radioTapArea;
10
- const radioLabelDistance = spaceNumbers.xs;
11
- const radioWidth = 18;
10
+ const radioLabelDistance = space.xs;
11
+ const radioWidth = radioHeight;
12
12
  const rippleRadius = (spaceNumbers.l - radioWidth) / 2;
13
13
  const RadioContainer = styled('div')({
14
14
  display: 'flex',
@@ -23,15 +23,15 @@ const RadioContainer = styled('div')({
23
23
  */
24
24
  const RadioInputWrapper = styled('div')({
25
25
  display: 'flex',
26
- height: radioHeight,
27
- width: radioWidth,
26
+ height: `${radioHeight}rem`,
27
+ width: `${radioWidth}rem`,
28
28
  });
29
29
  const RadioRipple = styled('span')({
30
30
  borderRadius: borderRadius.circle,
31
31
  boxShadow: `0 0 0 0 ${colors.soap200}`,
32
- height: radioHeight,
32
+ height: `${radioHeight}rem`,
33
33
  transition: 'box-shadow 150ms ease-out',
34
- width: radioWidth,
34
+ width: `${radioWidth}rem`,
35
35
  position: 'absolute',
36
36
  pointerEvents: 'none', // This is a decorative element we don't want it to block clicks to input
37
37
  }, ({ variant }) => ({
@@ -62,7 +62,7 @@ const RadioInput = styled('input')({
62
62
  // `span:first-of-type` refers to `RadioRipple`, the light grey
63
63
  // element that animates around the component on hover
64
64
  '&:hover ~ span:first-of-type': {
65
- boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}px ${colors.soap200}`,
65
+ boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}rem ${colors.soap200}`,
66
66
  },
67
67
  // `div:first-of-type` refers to the `RadioBackground`, the visual facade of the
68
68
  // input (which is visually hidden)
@@ -141,13 +141,13 @@ const RadioBackground = styled('div')({
141
141
  borderWidth: '1px',
142
142
  boxSizing: 'border-box',
143
143
  display: 'flex',
144
- height: radioHeight,
144
+ height: `${radioHeight}rem`,
145
145
  justifyContent: 'center',
146
146
  padding: '0px 2px',
147
147
  pointerEvents: 'none',
148
148
  position: 'absolute',
149
149
  transition: 'border 200ms ease, background 200ms',
150
- width: radioWidth,
150
+ width: `${radioWidth}rem`,
151
151
  }, ({ checked, disabled, variant, theme: { canvas: { palette: { primary: themePrimary }, }, }, }) => ({
152
152
  borderColor: checked
153
153
  ? variant === 'inverse'
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,cAAc;IAC5D;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;IAChF;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0ED,eAAO,MAAM,MAAM;;CAiBjB,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,cAAc;IAC5D;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;IAChF;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0ED,eAAO,MAAM,MAAM;;CAiBjB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { createComponent, ErrorType, errorRing, styled, } from '@workday/canvas-kit-react/common';
3
- import { colors, borderRadius, inputColors, spaceNumbers, type, space, } from '@workday/canvas-kit-react/tokens';
3
+ import { colors, borderRadius, inputColors, type, space } from '@workday/canvas-kit-react/tokens';
4
4
  import { caretDownSmallIcon } from '@workday/canvas-system-icons-web';
5
5
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
6
6
  const StyledSelect = styled('select')({
@@ -13,7 +13,7 @@ const StyledSelect = styled('select')({
13
13
  height: space.xl,
14
14
  minWidth: 280,
15
15
  transition: '0.2s box-shadow, 0.2s border-color',
16
- padding: spaceNumbers.xxs,
16
+ padding: space.xxs,
17
17
  margin: 0,
18
18
  MozAppearance: 'none',
19
19
  WebkitAppearance: 'none',
@@ -77,7 +77,7 @@ const StyledTableRow = styled('tr')({
77
77
  fontSize: 13,
78
78
  borderRight: cellBorder,
79
79
  borderBottom: cellBorder,
80
- height: spaceNumbers.xl + spaceNumbers.xxs,
80
+ height: `${spaceNumbers.xl + spaceNumbers.xxs}rem`,
81
81
  boxSizing: 'border-box',
82
82
  transition: 'background-color 0.2s',
83
83
  },
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,cAAc;IAC9D;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AA8CD,eAAO,MAAM,QAAQ;;;CAWnB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAS1C,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,cAAc;IAC9D;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AA8CD,eAAO,MAAM,QAAQ;;;CAWnB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { createComponent, ErrorType, errorRing, styled, } from '@workday/canvas-kit-react/common';
3
- import { borderRadius, inputColors, spaceNumbers, type } from '@workday/canvas-kit-react/tokens';
3
+ import { borderRadius, inputColors, space, spaceNumbers, type, } from '@workday/canvas-kit-react/tokens';
4
4
  export var TextAreaResizeDirection;
5
5
  (function (TextAreaResizeDirection) {
6
6
  TextAreaResizeDirection["None"] = "none";
@@ -15,10 +15,10 @@ const StyledTextArea = styled('textarea')(({ theme, error }) => ({
15
15
  backgroundColor: inputColors.background,
16
16
  borderRadius: borderRadius.m,
17
17
  boxSizing: 'border-box',
18
- minHeight: 64,
19
- minWidth: 280,
18
+ minHeight: space.xxl,
19
+ minWidth: `${spaceNumbers.xxxl * 3 + spaceNumbers.xl}rem`,
20
20
  transition: '0.2s box-shadow, 0.2s border-color',
21
- padding: spaceNumbers.xxs,
21
+ padding: space.xxs,
22
22
  margin: 0,
23
23
  '&::webkit-resizer': {
24
24
  display: 'none',
@@ -10,7 +10,7 @@ const StyledTextInput = styled('input')({
10
10
  boxSizing: 'border-box',
11
11
  height: 40,
12
12
  transition: '0.2s box-shadow, 0.2s border-color',
13
- padding: spaceNumbers.xxs,
13
+ padding: `${spaceNumbers.xxs}rem`,
14
14
  margin: 0,
15
15
  '&::placeholder': {
16
16
  color: inputColors.placeholder,