@workday/canvas-kit-react 6.0.0-alpha.0-next.22 → 6.0.0-alpha.0-next.28

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 (105) hide show
  1. package/action-bar/lib/ActionBar.tsx +43 -30
  2. package/button/lib/PrimaryButton.tsx +110 -32
  3. package/button/lib/parts/ButtonContainer.tsx +16 -5
  4. package/button/lib/parts/ButtonLabelIcon.tsx +34 -14
  5. package/button/lib/types.ts +10 -0
  6. package/common/lib/styles/accessibleHide.ts +2 -2
  7. package/common/lib/theming/README.md +189 -25
  8. package/common/lib/theming/breakpoints.ts +296 -16
  9. package/common/lib/theming/types.ts +191 -1
  10. package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
  11. package/dist/commonjs/action-bar/lib/ActionBar.js +35 -27
  12. package/dist/commonjs/button/lib/PrimaryButton.d.ts +80 -6
  13. package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
  14. package/dist/commonjs/button/lib/PrimaryButton.js +80 -26
  15. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +5 -3
  16. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts.map +1 -1
  17. package/dist/commonjs/button/lib/parts/ButtonContainer.js +11 -9
  18. package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +1 -1
  19. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  20. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  21. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +28 -13
  22. package/dist/commonjs/button/lib/types.d.ts +8 -0
  23. package/dist/commonjs/button/lib/types.d.ts.map +1 -1
  24. package/dist/commonjs/common/lib/styles/accessibleHide.d.ts +2 -2
  25. package/dist/commonjs/common/lib/styles/accessibleHide.d.ts.map +1 -1
  26. package/dist/commonjs/common/lib/theming/breakpoints.d.ts +287 -6
  27. package/dist/commonjs/common/lib/theming/breakpoints.d.ts.map +1 -1
  28. package/dist/commonjs/common/lib/theming/breakpoints.js +192 -10
  29. package/dist/commonjs/common/lib/theming/types.d.ts +191 -1
  30. package/dist/commonjs/common/lib/theming/types.d.ts.map +1 -1
  31. package/dist/commonjs/common/lib/utils/components.d.ts +1 -1
  32. package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
  33. package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  34. package/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
  35. package/dist/commonjs/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  36. package/dist/commonjs/tokens/index.d.ts +3 -20
  37. package/dist/commonjs/tokens/index.d.ts.map +1 -1
  38. package/dist/commonjs/tokens/index.js +3 -6
  39. package/dist/commonjs/tokens/lib/depth.d.ts +109 -3
  40. package/dist/commonjs/tokens/lib/depth.d.ts.map +1 -1
  41. package/dist/commonjs/tokens/lib/depth.js +40 -5
  42. package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
  43. package/dist/es6/action-bar/lib/ActionBar.js +33 -22
  44. package/dist/es6/button/lib/PrimaryButton.d.ts +80 -6
  45. package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
  46. package/dist/es6/button/lib/PrimaryButton.js +81 -27
  47. package/dist/es6/button/lib/parts/ButtonContainer.d.ts +5 -3
  48. package/dist/es6/button/lib/parts/ButtonContainer.d.ts.map +1 -1
  49. package/dist/es6/button/lib/parts/ButtonContainer.js +11 -9
  50. package/dist/es6/button/lib/parts/ButtonLabel.d.ts +1 -1
  51. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  52. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  53. package/dist/es6/button/lib/parts/ButtonLabelIcon.js +28 -13
  54. package/dist/es6/button/lib/types.d.ts +8 -0
  55. package/dist/es6/button/lib/types.d.ts.map +1 -1
  56. package/dist/es6/common/lib/styles/accessibleHide.d.ts +2 -2
  57. package/dist/es6/common/lib/styles/accessibleHide.d.ts.map +1 -1
  58. package/dist/es6/common/lib/theming/breakpoints.d.ts +287 -6
  59. package/dist/es6/common/lib/theming/breakpoints.d.ts.map +1 -1
  60. package/dist/es6/common/lib/theming/breakpoints.js +192 -10
  61. package/dist/es6/common/lib/theming/types.d.ts +191 -1
  62. package/dist/es6/common/lib/theming/types.d.ts.map +1 -1
  63. package/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
  64. package/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  65. package/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
  66. package/dist/es6/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  67. package/dist/es6/tokens/index.d.ts +3 -20
  68. package/dist/es6/tokens/index.d.ts.map +1 -1
  69. package/dist/es6/tokens/index.js +1 -1
  70. package/dist/es6/tokens/lib/depth.d.ts +109 -3
  71. package/dist/es6/tokens/lib/depth.d.ts.map +1 -1
  72. package/dist/es6/tokens/lib/depth.js +40 -2
  73. package/package.json +5 -6
  74. package/tokens/README.md +5 -12
  75. package/tokens/index.ts +2 -2
  76. package/tokens/lib/depth.ts +125 -3
  77. package/ts3.5/dist/commonjs/button/lib/PrimaryButton.d.ts +80 -6
  78. package/ts3.5/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +5 -3
  79. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +1 -1
  80. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  81. package/ts3.5/dist/commonjs/button/lib/types.d.ts +8 -0
  82. package/ts3.5/dist/commonjs/common/lib/styles/accessibleHide.d.ts +2 -2
  83. package/ts3.5/dist/commonjs/common/lib/theming/breakpoints.d.ts +287 -6
  84. package/ts3.5/dist/commonjs/common/lib/theming/types.d.ts +191 -1
  85. package/ts3.5/dist/commonjs/common/lib/utils/components.d.ts +1 -1
  86. package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
  87. package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  88. package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
  89. package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  90. package/ts3.5/dist/commonjs/tokens/index.d.ts +3 -20
  91. package/ts3.5/dist/commonjs/tokens/lib/depth.d.ts +109 -3
  92. package/ts3.5/dist/es6/button/lib/PrimaryButton.d.ts +80 -6
  93. package/ts3.5/dist/es6/button/lib/parts/ButtonContainer.d.ts +5 -3
  94. package/ts3.5/dist/es6/button/lib/parts/ButtonLabel.d.ts +1 -1
  95. package/ts3.5/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  96. package/ts3.5/dist/es6/button/lib/types.d.ts +8 -0
  97. package/ts3.5/dist/es6/common/lib/styles/accessibleHide.d.ts +2 -2
  98. package/ts3.5/dist/es6/common/lib/theming/breakpoints.d.ts +287 -6
  99. package/ts3.5/dist/es6/common/lib/theming/types.d.ts +191 -1
  100. package/ts3.5/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
  101. package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  102. package/ts3.5/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
  103. package/ts3.5/dist/es6/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  104. package/ts3.5/dist/es6/tokens/index.d.ts +3 -20
  105. package/ts3.5/dist/es6/tokens/lib/depth.d.ts +109 -3
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/breakpoints.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,CAAC,MAAM;IACP,CAAC,MAAM;IACP,CAAC,MAAM;IACP,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB,GAAG,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AAE3E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,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,EAAE,CAAC,GAAG,EAAE,iBAAiB,UAGxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,iBAAiB,UAU7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,iBAAiB,UAWvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,iBAAiB,UAE1C"}
@@ -7,36 +7,218 @@ export var BreakpointKey;
7
7
  BreakpointKey["xl"] = "xl";
8
8
  })(BreakpointKey || (BreakpointKey = {}));
9
9
  export var breakpointKeys = ['zero', 's', 'm', 'l', 'xl'];
10
+ /**
11
+ * ### Theme Breakpoint Values
12
+ *
13
+ * Breakpoints are used by media queries to conditionally apply or modify styles based on the viewport width.
14
+ * This allows the UI to be responsive to various screen sizes. This object provides five breakpoint values
15
+ * that correspond to the min-widths of our standard screen sizes.
16
+ *
17
+ * - `zero`: 0
18
+ * - `s`: 320
19
+ * - `m`: 768
20
+ * - `l`: 1024
21
+ * - `xl`: 1440
22
+ *
23
+ * And these are our standard screen size ranges:
24
+ *
25
+ * - `small` (320px - 767px) Used for mobile-sized screens
26
+ * - `medium` (768px - 1023px) Used for tablet-sized screens
27
+ * - `large` - (1024px - 1439px) Used for laptop and small desktop screens
28
+ * - `extra-large` (≥1440px) Used for very large screens
29
+ *
30
+ * Note: Some applications may only require a subset of screen sizes and not use all breakpoints.
31
+ *
32
+ */
10
33
  export var breakpoints = {
11
34
  zero: 0,
12
- s: 600,
13
- m: 960,
14
- l: 1280,
15
- xl: 1920,
35
+ s: 320,
36
+ m: 768,
37
+ l: 1024,
38
+ xl: 1440,
16
39
  };
17
40
  var step = 0.5;
41
+ /**
42
+ * ### Up
43
+ *
44
+ * _Returns a media query above the `min-width` for the range of a given breakpoint_
45
+ *
46
+ * Given a `start` breakpoint key ("zero", "s", "m", "l", "xl"),
47
+ * this function returns a media query (string) using a `min-width`.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * import { useTheme } from '@workday/canvas-kit-react/common';
52
+ * import { space } from '@workday/canvas-kit-react/tokens';
53
+ *
54
+ * const theme = useTheme();
55
+ * const { up } = theme.canvas.breakpoints;
56
+ * const mediaQuery = up('l'); // Returns '@media (min-width: 1024px)'
57
+ * const styles = {
58
+ * [mediaQuery]: {
59
+ * padding: space.m,
60
+ * }
61
+ * };
62
+ * ```
63
+ */
18
64
  export function up(key) {
19
65
  var value = typeof breakpoints[key] === 'number' ? breakpoints[key] : key;
20
- return "@media (min-width:" + value + "px)";
66
+ return "@media (min-width: " + value + "px)";
21
67
  }
22
- export function down(key) {
23
- var endIndex = breakpointKeys.indexOf(key) + 1;
68
+ /**
69
+ * ### Down
70
+ *
71
+ * _Returns a media query below the `max-width` for the range of a given breakpoint_
72
+ *
73
+ * Given an `end` breakpoint key ("zero", "s", "m", "l", "xl"),
74
+ * this function returns a media query (string) using a `max-width`.
75
+ *
76
+ * Note: This function subtracts `0.5px` from the next breakpoint value to prevent collisions.
77
+ * For example, `breakpoints.values.s`, has a `min-width` of `320px`, and the `max-width` is `767.5px`).
78
+ *
79
+ * If the `xl` breakpoint is provided, this function returns a media query with only a `min-width` of `0`,
80
+ * as seen in the second example below.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * import { useTheme } from '@workday/canvas-kit-react/common';
85
+ * import { space } from '@workday/canvas-kit-react/tokens';
86
+ *
87
+ * const theme = useTheme();
88
+ * const { down } = theme.canvas.breakpoints;
89
+ * const mediaQuery = down('m'); // Returns '@media (max-width: 1023.5px)'
90
+ * const styles = {
91
+ * [mediaQuery]: {
92
+ * padding: space.m,
93
+ * }
94
+ * };
95
+ * ```
96
+ *
97
+ * This example uses the `xl` breakpoint and only adds a `min-width` of `0` to the media query.
98
+ * @example
99
+ * ```ts
100
+ * import { useTheme } from '@workday/canvas-kit-react/common';
101
+ * import { space } from '@workday/canvas-kit-react/tokens';
102
+ *
103
+ * const theme = useTheme();
104
+ * const { down } = theme.canvas.breakpoints;
105
+ * const mediaQuery = down('xl'); // Returns '@media (min-width: 0)'
106
+ * const styles = {
107
+ * [mediaQuery]: {
108
+ * padding: space.m,
109
+ * }
110
+ * };
111
+ * ```
112
+ */
113
+ export function down(endKey) {
114
+ var endIndex = breakpointKeys.indexOf(endKey) + 1;
24
115
  var upperbound = breakpoints[breakpointKeys[endIndex]];
25
116
  if (endIndex === breakpointKeys.length) {
26
117
  // xl down applies to all sizes
27
118
  return up(BreakpointKey.zero);
28
119
  }
29
120
  var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : 0;
30
- return "@media (max-width:" + (value - step) + "px)";
121
+ return "@media (max-width: " + (value - step) + "px)";
31
122
  }
123
+ /**
124
+ * ### Between
125
+ *
126
+ * _Returns a media query between two given breakpoints_
127
+ *
128
+ * Given `start` and `end` breakpoint keys ("zero", "s", "m", "l", "xl"),
129
+ * this function returns a media query (string) using a min-width and max-width.
130
+ *
131
+ * Note: This function subtracts `0.5px` from the next breakpoint value to prevent collisions.
132
+ * For example, `breakpoints.values.s`, has a `min-width` of `320px`, and the `max-width` is `767.5px`).
133
+ *
134
+ * If the `xl` breakpoint is provided, this function returns a media query with only a `min-width`,
135
+ * as seen in the second example below.
136
+ *
137
+ * @example
138
+ * ```ts
139
+ * import { useTheme } from '@workday/canvas-kit-react/common';
140
+ * import { space } from '@workday/canvas-kit-react/tokens';
141
+ *
142
+ * const theme = useTheme();
143
+ * const { between } = theme.canvas.breakpoints;
144
+ * // Returns '@media (min-width: 320px) and (max-width: 1023.5px)'
145
+ * const mediaQuery = between('s', 'm');
146
+ * const styles = {
147
+ * [mediaQuery]: {
148
+ * padding: space.s,
149
+ * }
150
+ * };
151
+ * ```
152
+ *
153
+ * This example uses `xl` as the `end` breakpoint and only adds a min-width to the media query.
154
+ * @example
155
+ * ```ts
156
+ * import { useTheme } from '@workday/canvas-kit-react/common';
157
+ * import { space } from '@workday/canvas-kit-react/tokens';
158
+ *
159
+ * const theme = useTheme();
160
+ * const { between } = theme.canvas.breakpoints;
161
+ * const mediaQuery = between('m', 'xl'); // Returns '@media (min-width: 768px)'
162
+ * const styles = {
163
+ * [mediaQuery]: {
164
+ * padding: space.s,
165
+ * }
166
+ * };
167
+ * ```
168
+ */
32
169
  export function between(start, end) {
33
170
  var endIndex = breakpointKeys.indexOf(end) + 1;
34
171
  if (endIndex === breakpointKeys.length) {
35
172
  return up(start);
36
173
  }
37
- return ("@media (min-width:" + breakpoints[start] + "px) and " +
38
- ("(max-width:" + (breakpoints[breakpointKeys[endIndex]] - step) + "px)"));
174
+ return ("@media (min-width: " + breakpoints[start] + "px) and " +
175
+ ("(max-width: " + (breakpoints[breakpointKeys[endIndex]] - step) + "px)"));
39
176
  }
177
+ /**
178
+ * ### Only
179
+ *
180
+ * _Returns a media query with a `min-width` and `max-width` for a given breakpoint_
181
+ *
182
+ * Given a breakpoint key ("zero", "s", "m", "l", "xl"),
183
+ * this function returns a media query (string) using a `min-width` and `max-width`.
184
+ *
185
+ * Note: This function subtracts `0.5px` from the next breakpoint value to prevent collisions.
186
+ * For example, `breakpoints.values.s`, has a `min-width` of `320px`, and the `max-width` is `767.5px`).
187
+ *
188
+ * If the `xl` breakpoint is provided, this function returns a media query with only a `min-width` of `1440px`,
189
+ * as seen in the second example below.
190
+ *
191
+ * @example
192
+ * ```ts
193
+ * import { useTheme } from '@workday/canvas-kit-react/common';
194
+ * import { space } from '@workday/canvas-kit-react/tokens';
195
+ *
196
+ * const theme = useTheme();
197
+ * const { only } = theme.canvas.breakpoints;
198
+ * const mediaQuery = only('s'); // Returns '@media (min-width: 320px) and (max-width: 767.5px)'
199
+ * const styles = {
200
+ * [mediaQuery]: {
201
+ * padding: space.s,
202
+ * }
203
+ * };
204
+ * ```
205
+ *
206
+ * This example uses the `xl` breakpoint and only adds a `min-width` of `1440px` to the media query.
207
+ * @example
208
+ * ```ts
209
+ * import { useTheme } from '@workday/canvas-kit-react/common';
210
+ * import { space } from '@workday/canvas-kit-react/tokens';
211
+ *
212
+ * const theme = useTheme();
213
+ * const { only } = theme.canvas.breakpoints;
214
+ * const mediaQuery = only('xl'); // Returns '@media (min-width: 1440px)'
215
+ * const styles = {
216
+ * [mediaQuery]: {
217
+ * padding: space.s,
218
+ * }
219
+ * };
220
+ * ```
221
+ */
40
222
  export function only(key) {
41
223
  return between(key, key);
42
224
  }
@@ -32,12 +32,202 @@ export interface CanvasTheme {
32
32
  success: CanvasThemePalette;
33
33
  neutral: CanvasThemePalette;
34
34
  };
35
+ /**
36
+ * ### Theme Breakpoints
37
+ *
38
+ * Breakpoints are used by media queries to conditionally apply or modify styles based on the viewport width.
39
+ * This allows the UI to be responsive to various screen sizes.
40
+ *
41
+ * This breakpoints object contains `values` and several helper functions: `up`, `down`, `between`, and `only`.
42
+ * You can find more detailed information by inspecting individual values and functions.
43
+ */
35
44
  breakpoints: {
45
+ /**
46
+ * ### Breakpoint Values
47
+ *
48
+ * This object provides five breakpoint values
49
+ * that correspond to the min-widths of our standard screen sizes.
50
+ *
51
+ * - `zero`: 0
52
+ * - `s`: 320
53
+ * - `m`: 768
54
+ * - `l`: 1024
55
+ * - `xl`: 1440
56
+ *
57
+ * And these are our standard screen size ranges:
58
+ *
59
+ * - `small` (320px - 767px) Used for mobile-sized screens
60
+ * - `medium` (768px - 1023px) Used for tablet-sized screens
61
+ * - `large` - (1024px - 1439px) Used for laptop and small desktop screens
62
+ * - `extra-large` (≥1440px) Used for very large screens
63
+ *
64
+ * Note: Some applications may only require a subset of screen sizes and not use all breakpoints.
65
+ *
66
+ */
36
67
  values: CanvasBreakpoints;
68
+ /**
69
+ * ### Up
70
+ *
71
+ * _Returns a media query above the `min-width` for the range of a given breakpoint_
72
+ *
73
+ * Given a `start` breakpoint key ("zero", "s", "m", "l", "xl"),
74
+ * this function returns a media query (string) using a `min-width`.
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * import { useTheme } from '@workday/canvas-kit-react/common';
79
+ * import { space } from '@workday/canvas-kit-react/tokens';
80
+ *
81
+ * const theme = useTheme();
82
+ * const { up } = theme.canvas.breakpoints;
83
+ * const mediaQuery = up('l'); // Returns '@media (min-width: 1024px)'
84
+ * const styles = {
85
+ * [mediaQuery]: {
86
+ * padding: space.m,
87
+ * }
88
+ * };
89
+ * ```
90
+ */
37
91
  up: (key: BreakpointFnParam) => string;
92
+ /**
93
+ * ### Down
94
+ *
95
+ * _Returns a media query below the `max-width` for the range of a given breakpoint_
96
+ *
97
+ * Given an `end` breakpoint key ("zero", "s", "m", "l", "xl"),
98
+ * this function returns a media query (string) using a `max-width`.
99
+ *
100
+ * Note: This function subtracts `0.5px` from the next breakpoint value to prevent collisions.
101
+ * For example, `breakpoints.values.s`, has a `min-width` of `320px`, and the `max-width` is `767.5px`).
102
+ *
103
+ * If the `xl` breakpoint is provided, this function returns a media query with only a `min-width` of `0`,
104
+ * as seen in the second example below.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * import { useTheme } from '@workday/canvas-kit-react/common';
109
+ * import { space } from '@workday/canvas-kit-react/tokens';
110
+ *
111
+ * const theme = useTheme();
112
+ * const { down } = theme.canvas.breakpoints;
113
+ * const mediaQuery = down('m'); // Returns '@media (max-width: 1023.5px)'
114
+ * const styles = {
115
+ * [mediaQuery]: {
116
+ * padding: space.m,
117
+ * }
118
+ * };
119
+ * ```
120
+ *
121
+ * This example uses the `xl` breakpoint and only adds a `min-width` of `0` to the media query.
122
+ * @example
123
+ * ```ts
124
+ * import { useTheme } from '@workday/canvas-kit-react/common';
125
+ * import { space } from '@workday/canvas-kit-react/tokens';
126
+ *
127
+ * const theme = useTheme();
128
+ * const { down } = theme.canvas.breakpoints;
129
+ * const mediaQuery = down('xl'); // Returns '@media (min-width: 0)'
130
+ * const styles = {
131
+ * [mediaQuery]: {
132
+ * padding: space.m,
133
+ * }
134
+ * };
135
+ * ```
136
+ */
38
137
  down: (key: BreakpointFnParam) => string;
39
- only: (key: BreakpointFnParam) => string;
138
+ /**
139
+ * ### Between
140
+ *
141
+ * _Returns a media query between two given breakpoints_
142
+ *
143
+ * Given `start` and `end` breakpoint keys ("zero", "s", "m", "l", "xl"),
144
+ * this function returns a media query (string) using a min-width and max-width.
145
+ *
146
+ * Note: This function subtracts `0.5px` from the next breakpoint value to prevent collisions.
147
+ * For example, `breakpoints.values.s`, has a `min-width` of `320px`, and the `max-width` is `767.5px`).
148
+ *
149
+ * If the `xl` breakpoint is provided, this function returns a media query with only a `min-width`,
150
+ * as seen in the second example below.
151
+ *
152
+ * @example
153
+ * ```ts
154
+ * import { useTheme } from '@workday/canvas-kit-react/common';
155
+ * import { space } from '@workday/canvas-kit-react/tokens';
156
+ *
157
+ * const theme = useTheme();
158
+ * const { between } = theme.canvas.breakpoints;
159
+ * // Returns '@media (min-width: 320px) and (max-width: 1023.5px)'
160
+ * const mediaQuery = between('s', 'm');
161
+ * const styles = {
162
+ * [mediaQuery]: {
163
+ * padding: space.s,
164
+ * }
165
+ * };
166
+ * ```
167
+ *
168
+ * This example uses `xl` as the `end` breakpoint and only adds a min-width to the media query.
169
+ * @example
170
+ * ```ts
171
+ * import { useTheme } from '@workday/canvas-kit-react/common';
172
+ * import { space } from '@workday/canvas-kit-react/tokens';
173
+ *
174
+ * const theme = useTheme();
175
+ * const { between } = theme.canvas.breakpoints;
176
+ * const mediaQuery = between('m', 'xl'); // Returns '@media (min-width: 768px)'
177
+ * const styles = {
178
+ * [mediaQuery]: {
179
+ * padding: space.s,
180
+ * }
181
+ * };
182
+ * ```
183
+ */
40
184
  between: (start: BreakpointFnParam, end: BreakpointFnParam) => string;
185
+ /**
186
+ * ### Only
187
+ *
188
+ * _Returns a media query with a `min-width` and `max-width` for a given breakpoint_
189
+ *
190
+ * Given a breakpoint key ("zero", "s", "m", "l", "xl"),
191
+ * this function returns a media query (string) using a `min-width` and `max-width`.
192
+ *
193
+ * Note: This function subtracts `0.5px` from the next breakpoint value to prevent collisions.
194
+ * For example, `breakpoints.values.s`, has a `min-width` of `320px`, and the `max-width` is `767.5px`).
195
+ *
196
+ * If the `xl` breakpoint is provided, this function returns a media query with only a `min-width` of `1440px`,
197
+ * as seen in the second example below.
198
+ *
199
+ * @example
200
+ * ```ts
201
+ * import { useTheme } from '@workday/canvas-kit-react/common';
202
+ * import { space } from '@workday/canvas-kit-react/tokens';
203
+ *
204
+ * const theme = useTheme();
205
+ * const { only } = theme.canvas.breakpoints;
206
+ * const mediaQuery = only('s'); // Returns '@media (min-width: 320px) and (max-width: 767.5px)'
207
+ * const styles = {
208
+ * [mediaQuery]: {
209
+ * padding: space.s,
210
+ * }
211
+ * };
212
+ * ```
213
+ *
214
+ * This example uses the `xl` breakpoint and only adds a `min-width` of `1440px` to the media query.
215
+ * @example
216
+ * ```ts
217
+ * import { useTheme } from '@workday/canvas-kit-react/common';
218
+ * import { space } from '@workday/canvas-kit-react/tokens';
219
+ *
220
+ * const theme = useTheme();
221
+ * const { only } = theme.canvas.breakpoints;
222
+ * const mediaQuery = only('xl'); // Returns '@media (min-width: 1440px)'
223
+ * const styles = {
224
+ * [mediaQuery]: {
225
+ * padding: space.s,
226
+ * }
227
+ * };
228
+ * ```
229
+ */
230
+ only: (key: BreakpointFnParam) => string;
41
231
  };
42
232
  direction: ContentDirection;
43
233
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAEnE;;GAEG;AACH,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb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AI,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,MAAM,CAAC;QACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6CG;QACH,OAAO,EAAE,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,iBAAiB,KAAK,MAAM,CAAC;QACtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4CG;QACH,IAAI,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,MAAM,CAAC;KAC1C,CAAC;IACF,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED;;GAEG;AACH,aAAK,gBAAgB,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAC/D,oBAAY,yBAAyB,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AAC7E,oBAAY,yBAAyB,GAAG;IAAC,MAAM,CAAC,EAAE,kBAAkB,CAAA;CAAC,CAAC;AACtE,oBAAY,kBAAkB,GAAG;IAAC,MAAM,EAAE,WAAW,CAAA;CAAC,CAAC"}
@@ -8,5 +8,5 @@ export interface PageListProps extends Omit<ListProps, 'as'> {
8
8
  }
9
9
  export declare const PageList: ({ model, children, ...elemProps }: PageListProps) => JSX.Element;
10
10
  export declare type PageListItemProps = ListItemProps;
11
- export declare const PageListItem: ({ children, ...elemProps }: Pick<import("./common/Flex").FlexProps, "hidden" | "color" | "style" | "flex" | "wrap" | "padding" | "p" | "title" | "children" | "alignContent" | "alignItems" | "alignSelf" | "direction" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "overflowX" | "overflowY" | "verticalAlign" | "width" | "margin" | "overflow" | "m" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "grow" | "marginX" | "marginY" | "paddingX" | "paddingY" | "basis" | "mx" | "my" | "marginT" | "mt" | "marginR" | "mr" | "marginB" | "mb" | "marginL" | "ml" | "px" | "py" | "paddingT" | "pt" | "paddingR" | "pr" | "paddingB" | "pb" | "paddingL" | "pl" | "shrink">) => JSX.Element;
11
+ export declare const PageListItem: ({ children, ...elemProps }: Pick<import("./common/Flex").FlexProps, "hidden" | "color" | "style" | "flex" | "wrap" | "padding" | "p" | "title" | "children" | "alignContent" | "alignItems" | "alignSelf" | "direction" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "overflowX" | "overflowY" | "verticalAlign" | "width" | "margin" | "overflow" | "m" | "css" | "dir" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "grow" | "marginX" | "marginY" | "paddingX" | "paddingY" | "basis" | "mx" | "my" | "marginT" | "mt" | "marginR" | "mr" | "marginB" | "mb" | "marginL" | "ml" | "px" | "py" | "paddingT" | "pt" | "paddingR" | "pr" | "paddingB" | "pb" | "paddingL" | "pl" | "shrink">) => JSX.Element;
12
12
  //# sourceMappingURL=PageList.d.ts.map