@workday/canvas-kit-docs 14.0.0-alpha.1214-next.0 → 14.0.0-alpha.1215-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.
@@ -111,18 +111,22 @@ yarn remove @workday/canvas-kit-codemod
111
111
 
112
112
  **PR:** [#3430](https://github.com/Workday/canvas-kit/pull/3430)
113
113
 
114
- A new `Avatar` component has been added to the `@workday/canvas-kit-preview-react` package that matches our brand refresh.
114
+ A new `Avatar` component has been added to the `@workday/canvas-kit-preview-react` package that
115
+ matches our brand refresh.
115
116
 
116
117
  #### API Changes from the Main Avatar
117
118
 
118
- - `Avatar` has a `name` prop. This is required to ensure a fallback if a `url` is not provided. The `name` prop also determines the initials and the `alt` text for the image if a `url` is provided.
119
+ - `Avatar` has a `name` prop. This is required to ensure a fallback if a `url` is not provided. The
120
+ `name` prop also determines the initials and the `alt` text for the image if a `url` is provided.
119
121
  - `url` stays the same. This prop is optional and will be used to display an image `Avatar`.
120
- - `variant` defines the color of the `Avatar`. The default is `blue` but you can choose one of the following colors:
122
+ - `variant` defines the color of the `Avatar`. The default is `blue` but you can choose one of the
123
+ following colors:
121
124
  - `teal`
122
125
  - `purple`
123
126
  - `amber`
124
127
  - `blue`
125
- - By default, the `Avatar` will render a `div` element. If you need to render a `button` element use the `BaseAvatar` component.
128
+ - By default, the `Avatar` will render a `div` element. If you need to render a `button` element use
129
+ the `BaseAvatar` component.
126
130
  - `size` accepts the following values:
127
131
  - `extraExtraLarge`
128
132
  - `extraLarge`
@@ -130,7 +134,7 @@ A new `Avatar` component has been added to the `@workday/canvas-kit-preview-reac
130
134
  - `medium`
131
135
  - `small`
132
136
  - `extraSmall`
133
- - `extraExtraSmall`
137
+ - `extraExtraSmall`
134
138
 
135
139
  ### Branding Changes 💅
136
140
 
@@ -139,7 +143,9 @@ revolve around the use of our new brand colors.
139
143
 
140
144
  The following components have been updated:
141
145
 
142
- - `Breadcrumbs` [#3270](https://github.com/Workday/canvas-kit/pull/3270)
146
+ - `Breadcrumbs`
147
+ - [#3270](https://github.com/Workday/canvas-kit/pull/3270)
148
+ - [#3447](https://github.com/Workday/canvas-kit/pull/3447)
143
149
  - `Buttons` [#3394](https://github.com/Workday/canvas-kit/pull/3394)
144
150
  - `ColorPicker` (Main) [#3307](https://github.com/Workday/canvas-kit/pull/3307)
145
151
  - `ColorPicker` (preview) [#3307](https://github.com/Workday/canvas-kit/pull/3307)
@@ -276,17 +282,18 @@ emphasis for the badge.
276
282
 
277
283
  ### Expandable
278
284
 
279
- **PRs:** [#3389](https://github.com/Workday/canvas-kit/pull/3389), [#3430](https://github.com/Workday/canvas-kit/pull/3430)
285
+ **PRs:** [#3389](https://github.com/Workday/canvas-kit/pull/3389),
286
+ [#3430](https://github.com/Workday/canvas-kit/pull/3430)
280
287
 
281
288
  - `<Expandable.Target>` hover state has been update to use `system.color.bg.alt.soft` instead of
282
289
  `system.color.bg.alt.default` to match our new brand directions.
283
290
  - The `focus` state has been update to use `system.color.border.primary.default` to ensure the same
284
291
  focus state color across all components.
285
- - `Expandable.Avatar` has been updated to use the `Avatar` component from Preview. This change requires that you update the `altText` prop to `name`.
292
+ - `Expandable.Avatar` has been updated to use the `Avatar` component from Preview. This change
293
+ requires that you update the `altText` prop to `name`.
286
294
 
287
295
  > 🤖 The codemod will handle the change of `altText` to `name` on `Expandable.Avatar`.
288
296
 
289
-
290
297
  These changes are only **visual** and should not affect the functionality of the component.
291
298
 
292
299
  ### Hyperlink and External Hyperlink
@@ -325,11 +332,11 @@ These changes are only **visual** and should not affect the functionality of the
325
332
 
326
333
  **PR:** [#3430](https://github.com/Workday/canvas-kit/pull/3430)
327
334
 
328
- - `Pill` has been updated to use the `Avatar` component from Preview. This change requires that you provide a value for the `name` prop.
335
+ - `Pill` has been updated to use the `Avatar` component from Preview. This change requires that you
336
+ provide a value for the `name` prop.
329
337
 
330
338
  > 🤖 The codemod will handle the change of `altText` to `name` on `Pill.Avatar`.
331
339
 
332
-
333
340
  ### Search Form 🚨
334
341
 
335
342
  **PR:** [#3303](https://github.com/Workday/canvas-kit/pull/3303)
@@ -412,7 +419,8 @@ deprecated code is removed.
412
419
 
413
420
  **PR:** [#3430](https://github.com/Workday/canvas-kit/pull/3430)
414
421
 
415
- We've deprecated the `Avatar` component in `@workday/canvas-kit-react` Main package. Please use the `Avatar` component in our Preview package.
422
+ We've deprecated the `Avatar` component in `@workday/canvas-kit-react` Main package. Please use the
423
+ `Avatar` component in our Preview package.
416
424
 
417
425
  **Before in v13**
418
426
 
@@ -429,20 +437,26 @@ import { Avatar } from '@workday/canvas-kit-react/avatar';
429
437
  **After in v14**
430
438
 
431
439
  ```tsx
432
- import { Avatar } from '@workday/canvas-kit-preview-react/avatar';
440
+ import {Avatar} from '@workday/canvas-kit-preview-react/avatar';
433
441
  // name is used as a fallback if the image url is broken or still loading
434
442
  // variant light or dark are not used. Instead, variant defines the color of the Avatar
435
- <Avatar name="John Doe" size="extraExtraLarge" variant='teal' url={yourImageUrl} />
443
+ <Avatar name="John Doe" size="extraExtraLarge" variant="teal" url={yourImageUrl} />;
436
444
  ```
437
445
 
438
446
  If you need to render a `button` element use the `BaseAvatar` component.
439
447
 
440
448
  ```tsx
441
- import { BaseAvatar } from '@workday/canvas-kit-preview-react/avatar';
442
-
443
- <BaseAvatar name="John Doe" size="extraExtraLarge" variant='teal' as="button" onClick={() => console.log('Avatar clicked')}>
449
+ import {BaseAvatar} from '@workday/canvas-kit-preview-react/avatar';
450
+
451
+ <BaseAvatar
452
+ name="John Doe"
453
+ size="extraExtraLarge"
454
+ variant="teal"
455
+ as="button"
456
+ onClick={() => console.log('Avatar clicked')}
457
+ >
444
458
  <BaseAvatar.Name name="John Doe" />
445
- </BaseAvatar>
459
+ </BaseAvatar>;
446
460
  ```
447
461
 
448
462
  ### Combobox (Labs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "14.0.0-alpha.1214-next.0",
3
+ "version": "14.0.0-alpha.1215-next.0",
4
4
  "description": "Documentation components of Canvas Kit components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -45,10 +45,10 @@
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@stackblitz/sdk": "^1.11.0",
47
47
  "@storybook/csf": "0.0.1",
48
- "@workday/canvas-kit-labs-react": "^14.0.0-alpha.1214-next.0",
49
- "@workday/canvas-kit-preview-react": "^14.0.0-alpha.1214-next.0",
50
- "@workday/canvas-kit-react": "^14.0.0-alpha.1214-next.0",
51
- "@workday/canvas-kit-styling": "^14.0.0-alpha.1214-next.0",
48
+ "@workday/canvas-kit-labs-react": "^14.0.0-alpha.1215-next.0",
49
+ "@workday/canvas-kit-preview-react": "^14.0.0-alpha.1215-next.0",
50
+ "@workday/canvas-kit-react": "^14.0.0-alpha.1215-next.0",
51
+ "@workday/canvas-kit-styling": "^14.0.0-alpha.1215-next.0",
52
52
  "@workday/canvas-system-icons-web": "^3.0.35",
53
53
  "@workday/canvas-tokens-web": "3.0.0-alpha.12",
54
54
  "markdown-to-jsx": "^7.2.0",
@@ -61,5 +61,5 @@
61
61
  "mkdirp": "^1.0.3",
62
62
  "typescript": "5.0"
63
63
  },
64
- "gitHead": "59a0288d16c936e52b30b160c1862bfcf2f8e1c2"
64
+ "gitHead": "443f211902d3c5cf9c91704aa41f3b4e0ce41e65"
65
65
  }