@workday/canvas-kit-docs 14.0.9 → 14.1.0-1282-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.
@@ -195100,7 +195100,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
195100
195100
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/createCanvasTheme.ts"
195101
195101
  }
195102
195102
  ],
195103
- "tags": {},
195103
+ "tags": {
195104
+ "deprecated": "⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on an algorithm for color shifting, you can use [oklch from or with calc](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) to calculate colors."
195105
+ },
195104
195106
  "type": {
195105
195107
  "kind": "function",
195106
195108
  "parameters": [
@@ -195162,7 +195164,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
195162
195164
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/createCanvasTheme.ts"
195163
195165
  }
195164
195166
  ],
195165
- "tags": {},
195167
+ "tags": {
195168
+ "deprecated": "⚠️ `createCanvasTheme` is deprecated and will be removed in a future major version. Please use our CSS Branding tokens to create a theme. For more information, please use our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs)."
195169
+ },
195166
195170
  "type": {
195167
195171
  "kind": "function",
195168
195172
  "parameters": [
@@ -195322,7 +195326,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
195322
195326
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/styled.ts"
195323
195327
  }
195324
195328
  ],
195325
- "tags": {},
195329
+ "tags": {
195330
+ "deprecated": "⚠️ `filterOutProps` is deprecated and will be removed in a future major version. Use our `createComponent` and `handleCsProp` helpers to handle props. For more information, view our [Meriging Styles Docs](https://workday.github.io/canvas-kit/?path=/docs/styling-guides-merging-styles--docs#handlecsprop)."
195331
+ },
195326
195332
  "type": {
195327
195333
  "kind": "function",
195328
195334
  "parameters": [
@@ -195444,7 +195450,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
195444
195450
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/theme.ts"
195445
195451
  }
195446
195452
  ],
195447
- "tags": {},
195453
+ "tags": {
195454
+ "deprecated": "⚠️ `defaultCanvasTheme` is deprecated and will be removed in a future major version. If you want to reset the theme, use `defaultBranding` and apply it to the `CanvasProvider`. For more information, view our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs)."
195455
+ },
195448
195456
  "type": {
195449
195457
  "kind": "symbol",
195450
195458
  "name": "CanvasTheme",
@@ -196277,7 +196285,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
196277
196285
  }
196278
196286
  ],
196279
196287
  "tags": {
196280
- "deprecated": "Use isElementRTL instead."
196288
+ "deprecated": "⚠️ `useIsRTL` is deprecated and will be removed in a future major version. Please use `isElementRTL` instead."
196281
196289
  },
196282
196290
  "type": {
196283
196291
  "kind": "function",
@@ -196322,7 +196330,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
196322
196330
  "tags": {
196323
196331
  "param": "theme\n \n- The theme object with the Canvas Kit theme.\nIt should be namespaced within this variable under the `canvas` key.\nValue of `canvas` property is any partial or full theme object to overwtite default theme.",
196324
196332
  "returns": "An object containing updated or default Canvas Kit theme under `canvas` key.\n\nThe passed partial theme object will be merged with the default Canvas theme\n(using memoized createCanvasTheme()) to establish any missing fields that have\nnot been defined by the consumer's theme object.\n\nIf theme is not passed, the function will try to retrieve it from the window object.\nIf window theme is not found, it will return the default Canvas theme.",
196325
- "example": "import {getTheme} from '@workday/canvas-kit-react/common';\n\nconst theme = getTheme();\nconst {up, down} = theme.canvas.breakpoints;\nconst small = down('m'); // Returns '@media (max-width: 768px)'\nconst medium = up('m'); // Returns '@media (min-width: 768px)'\n\nconst styles = {\n [small]: {\n margin: space.m\n },\n [medium]: {\n margin: space.l\n }\n}"
196333
+ "example": "import {getTheme} from '@workday/canvas-kit-react/common';\n\nconst theme = getTheme();\nconst {up, down} = theme.canvas.breakpoints;\nconst small = down('m'); // Returns '@media (max-width: 768px)'\nconst medium = up('m'); // Returns '@media (min-width: 768px)'\n\nconst styles = {\n [small]: {\n margin: space.m\n },\n [medium]: {\n margin: space.l\n }\n}",
196334
+ "deprecated": "⚠️ `getTheme` is deprecated and will be removed in a future major version. Please use our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) to theme components."
196326
196335
  },
196327
196336
  "type": {
196328
196337
  "kind": "function",
@@ -196370,7 +196379,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
196370
196379
  "tags": {
196371
196380
  "param": "theme\n \n- The theme object with the Canvas Kit theme.\nIt should be namespaced within this variable under the `canvas` key.\nValue of `canvas` property is any partial or full theme object to overwtite default theme.",
196372
196381
  "returns": "An object containing updated or default Canvas Kit theme under `canvas` key.\n\nNOTE: If theme is not passed, the function will try to pull the theme from ThemeContext.\nIf that does not work, it will try to retrieve it from the window object.\nAs a last resort, it will return the default Canvas theme.\n\nThe resulting theme will be merged with the default Canvas theme\n(using memoized createCanvasTheme()) to establish any missing fields that have\nnot been defined by the consumer's theme object.\n\nProviding the default theme here is currently a work around for when no\nThemeProvider or context exists.\nTracked on https://github.com/emotion-js/emotion/issues/1193.",
196373
- "example": "export const ErrorMessage = () => {\n const theme = useTheme();\n return (\n <Subtext size=\"large\" color={theme.canvas.palette.error.main}>\n );\n}"
196382
+ "example": "export const ErrorMessage = () => {\n const theme = useTheme();\n return (\n <Subtext size=\"large\" color={theme.canvas.palette.error.main}>\n );\n}",
196383
+ "deprecated": "⚠️ `useTheme` is deprecated and will be removed in a future major version. Please use our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) to theme components."
196374
196384
  },
196375
196385
  "type": {
196376
196386
  "kind": "function",
@@ -196415,7 +196425,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
196415
196425
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
196416
196426
  }
196417
196427
  ],
196418
- "tags": {},
196428
+ "tags": {
196429
+ "deprecated": "⚠️ `getPaletteColorsForFocusRing` is deprecated and will be removed in a future major version. Please use the `brand.common.focusRing` CSS variable to theme focus rings. For more information, view our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs)."
196430
+ },
196419
196431
  "type": {
196420
196432
  "kind": "function",
196421
196433
  "parameters": [
@@ -196510,7 +196522,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
196510
196522
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
196511
196523
  }
196512
196524
  ],
196513
- "tags": {},
196525
+ "tags": {
196526
+ "deprecated": "`useThemedRing` is deprecated and will be removed in a future major version. Please use `brand.common.focusOutline` CSS variable instead. View our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) for more information."
196527
+ },
196514
196528
  "type": {
196515
196529
  "kind": "function",
196516
196530
  "parameters": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "14.0.9",
3
+ "version": "14.1.0-1282-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.9",
49
- "@workday/canvas-kit-preview-react": "^14.0.9",
50
- "@workday/canvas-kit-react": "^14.0.9",
51
- "@workday/canvas-kit-styling": "^14.0.9",
48
+ "@workday/canvas-kit-labs-react": "^14.1.0-1282-next.0",
49
+ "@workday/canvas-kit-preview-react": "^14.1.0-1282-next.0",
50
+ "@workday/canvas-kit-react": "^14.1.0-1282-next.0",
51
+ "@workday/canvas-kit-styling": "^14.1.0-1282-next.0",
52
52
  "@workday/canvas-system-icons-web": "^3.0.36",
53
53
  "@workday/canvas-tokens-web": "^3.1.1",
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": "63f17c093376eb1d2ad11be8f9c5340a4d9a71df"
64
+ "gitHead": "69e1e3b1fb6262a3db424e4b538fb6dc1afb20f2"
65
65
  }