@workday/canvas-kit-docs 9.0.0-alpha.368-next.6 → 9.0.0-alpha.382-next.2

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 (57) hide show
  1. package/dist/es6/docgen/createTraversals.js +41 -22
  2. package/dist/es6/docgen/docParser.js +285 -257
  3. package/dist/es6/docgen/getExternalSymbol.js +2 -2
  4. package/dist/es6/docgen/plugins/componentParser.js +28 -33
  5. package/dist/es6/docgen/plugins/enhancedComponentParser.js +211 -150
  6. package/dist/es6/docgen/plugins/modelParser.js +139 -79
  7. package/dist/es6/docgen/traversals.js +396 -397
  8. package/dist/es6/docgen/traverse.js +8 -9
  9. package/dist/es6/lib/DescriptionTooltip.js +1 -1
  10. package/dist/es6/lib/MDXElements.js +13 -39
  11. package/dist/es6/lib/MoreTooltip.js +21 -41
  12. package/dist/es6/lib/Specifications.js +30 -34
  13. package/dist/es6/lib/StylePropsTable.js +8 -9
  14. package/dist/es6/lib/Table.js +19 -30
  15. package/dist/es6/lib/Value.js +13 -17
  16. package/dist/es6/lib/docs.js +701 -397
  17. package/dist/es6/lib/widgetUtils.js +44 -76
  18. package/dist/es6/lib/widgets/array.js +1 -2
  19. package/dist/es6/lib/widgets/callExpression.js +4 -5
  20. package/dist/es6/lib/widgets/canvasColor.js +2 -2
  21. package/dist/es6/lib/widgets/component.js +1 -2
  22. package/dist/es6/lib/widgets/conditional.js +1 -2
  23. package/dist/es6/lib/widgets/enhancedComponent.js +19 -24
  24. package/dist/es6/lib/widgets/external.js +1 -4
  25. package/dist/es6/lib/widgets/function.js +5 -7
  26. package/dist/es6/lib/widgets/intersection.js +3 -4
  27. package/dist/es6/lib/widgets/model.js +4 -6
  28. package/dist/es6/lib/widgets/object.js +2 -3
  29. package/dist/es6/lib/widgets/parenthesis.js +1 -2
  30. package/dist/es6/lib/widgets/primitives.js +17 -39
  31. package/dist/es6/lib/widgets/qualifiedName.js +1 -2
  32. package/dist/es6/lib/widgets/symbol.js +1 -2
  33. package/dist/es6/lib/widgets/tuple.js +2 -3
  34. package/dist/es6/lib/widgets/typeParameter.js +1 -2
  35. package/dist/es6/lib/widgets/union.js +3 -4
  36. package/dist/es6/mdx/installBlock.js +6 -7
  37. package/dist/es6/mdx/style-props/examples/Background.js +5 -16
  38. package/dist/es6/mdx/style-props/examples/Border.js +5 -16
  39. package/dist/es6/mdx/style-props/examples/Color.js +5 -16
  40. package/dist/es6/mdx/style-props/examples/Depth.js +5 -16
  41. package/dist/es6/mdx/style-props/examples/Flex.js +11 -22
  42. package/dist/es6/mdx/style-props/examples/FlexItem.js +10 -21
  43. package/dist/es6/mdx/style-props/examples/Grid.js +6 -17
  44. package/dist/es6/mdx/style-props/examples/GridItem.js +6 -17
  45. package/dist/es6/mdx/style-props/examples/Layout.js +5 -16
  46. package/dist/es6/mdx/style-props/examples/Other.js +5 -16
  47. package/dist/es6/mdx/style-props/examples/Position.js +5 -16
  48. package/dist/es6/mdx/style-props/examples/Space.js +6 -17
  49. package/dist/es6/mdx/style-props/examples/Text.js +2 -2
  50. package/dist/es6/mdx/welcomePage.js +3 -3
  51. package/dist/mdx/9.0-UPGRADE-GUIDE.mdx +30 -3
  52. package/dist/mdx/preview-react/text-area/examples/Alert.tsx +1 -1
  53. package/dist/mdx/preview-react/text-input/examples/Alert.tsx +1 -1
  54. package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +5 -2
  55. package/dist/mdx/react/banner/examples/StickyAnimation.tsx +7 -5
  56. package/dist/mdx/react/common/examples/ResponsiveViewport.tsx +2 -3
  57. package/package.json +5 -5
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export var GithubUrl = React.createContext('https://github.com/Workday/canvas-kit/');
3
- export var GithubBranch = React.createContext('master');
4
- export var StorybookUrl = React.createContext(typeof location !== 'undefined' && location.pathname.indexOf('/canvas-kit/') === 0
2
+ export const GithubUrl = React.createContext('https://github.com/Workday/canvas-kit/');
3
+ export const GithubBranch = React.createContext('master');
4
+ export const StorybookUrl = React.createContext(typeof location !== 'undefined' && location.pathname.indexOf('/canvas-kit/') === 0
5
5
  ? '/canvas-kit/'
6
6
  : '/');
7
- export var docs = (typeof window !== 'undefined' && window.__docs) ||
7
+ export const docs = (typeof window !== 'undefined' && window.__docs) ||
8
8
  [
9
9
 
10
10
  {
@@ -958,221 +958,6 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
958
958
  ]
959
959
  }
960
960
  },
961
- {
962
- "name": "getPaletteColors",
963
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts",
964
- "description": "",
965
- "declarations": [
966
- {
967
- "name": "getPaletteColors",
968
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
969
- }
970
- ],
971
- "tags": {},
972
- "type": {
973
- "kind": "function",
974
- "parameters": [
975
- {
976
- "kind": "parameter",
977
- "name": "type",
978
- "type": {
979
- "kind": "type",
980
- "typeParameters": [],
981
- "value": {
982
- "kind": "symbol",
983
- "name": "Exclude",
984
- "typeParameters": [
985
- {
986
- "kind": "union",
987
- "value": [
988
- {
989
- "kind": "string",
990
- "value": "common"
991
- },
992
- {
993
- "kind": "string",
994
- "value": "primary"
995
- },
996
- {
997
- "kind": "string",
998
- "value": "error"
999
- },
1000
- {
1001
- "kind": "string",
1002
- "value": "alert"
1003
- },
1004
- {
1005
- "kind": "string",
1006
- "value": "success"
1007
- },
1008
- {
1009
- "kind": "string",
1010
- "value": "neutral"
1011
- }
1012
- ]
1013
- },
1014
- {
1015
- "kind": "string",
1016
- "value": "common"
1017
- }
1018
- ],
1019
- "value": "Exclude<T, U>"
1020
- }
1021
- },
1022
- "required": true,
1023
- "rest": false,
1024
- "description": "",
1025
- "declarations": [
1026
- {
1027
- "name": "type",
1028
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
1029
- }
1030
- ],
1031
- "tags": {}
1032
- },
1033
- {
1034
- "kind": "parameter",
1035
- "name": "theme",
1036
- "type": {
1037
- "kind": "symbol",
1038
- "name": "EmotionCanvasTheme",
1039
- "value": "EmotionCanvasTheme"
1040
- },
1041
- "required": true,
1042
- "rest": false,
1043
- "description": "",
1044
- "declarations": [
1045
- {
1046
- "name": "theme",
1047
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
1048
- }
1049
- ],
1050
- "tags": {}
1051
- }
1052
- ],
1053
- "members": [],
1054
- "returnType": {
1055
- "kind": "object",
1056
- "properties": [
1057
- {
1058
- "kind": "property",
1059
- "name": "outer",
1060
- "required": false,
1061
- "type": {
1062
- "kind": "primitive",
1063
- "value": "string"
1064
- },
1065
- "description": "",
1066
- "declarations": [
1067
- {
1068
- "name": "outer",
1069
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
1070
- }
1071
- ],
1072
- "tags": {}
1073
- },
1074
- {
1075
- "kind": "property",
1076
- "name": "inner",
1077
- "required": false,
1078
- "type": {
1079
- "kind": "primitive",
1080
- "value": "string"
1081
- },
1082
- "description": "",
1083
- "declarations": [
1084
- {
1085
- "name": "inner",
1086
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
1087
- }
1088
- ],
1089
- "tags": {}
1090
- }
1091
- ]
1092
- }
1093
- }
1094
- },
1095
- {
1096
- "name": "useThemedRing",
1097
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts",
1098
- "description": "",
1099
- "declarations": [
1100
- {
1101
- "name": "useThemedRing",
1102
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
1103
- }
1104
- ],
1105
- "tags": {},
1106
- "type": {
1107
- "kind": "function",
1108
- "parameters": [
1109
- {
1110
- "kind": "parameter",
1111
- "name": "type",
1112
- "type": {
1113
- "kind": "type",
1114
- "typeParameters": [],
1115
- "value": {
1116
- "kind": "symbol",
1117
- "name": "Exclude",
1118
- "typeParameters": [
1119
- {
1120
- "kind": "union",
1121
- "value": [
1122
- {
1123
- "kind": "string",
1124
- "value": "common"
1125
- },
1126
- {
1127
- "kind": "string",
1128
- "value": "primary"
1129
- },
1130
- {
1131
- "kind": "string",
1132
- "value": "error"
1133
- },
1134
- {
1135
- "kind": "string",
1136
- "value": "alert"
1137
- },
1138
- {
1139
- "kind": "string",
1140
- "value": "success"
1141
- },
1142
- {
1143
- "kind": "string",
1144
- "value": "neutral"
1145
- }
1146
- ]
1147
- },
1148
- {
1149
- "kind": "string",
1150
- "value": "common"
1151
- }
1152
- ],
1153
- "value": "Exclude<T, U>"
1154
- }
1155
- },
1156
- "required": true,
1157
- "rest": false,
1158
- "description": "",
1159
- "declarations": [
1160
- {
1161
- "name": "type",
1162
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemedRing.ts"
1163
- }
1164
- ],
1165
- "tags": {}
1166
- }
1167
- ],
1168
- "members": [],
1169
- "returnType": {
1170
- "kind": "symbol",
1171
- "name": "CSSProperties",
1172
- "value": "CSSProperties"
1173
- }
1174
- }
1175
- },
1176
961
  {
1177
962
  "name": "ComponentStyles",
1178
963
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemeRTL.ts",
@@ -1208,7 +993,7 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
1208
993
  {
1209
994
  "name": "useThemeRTL",
1210
995
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/labs-react/common/lib/theming/useThemeRTL.ts",
1211
- "description": "A helpful hook for supporting bidirectional styles.\n* Read below for more detail or [view the docs](https://github.com/Workday/canvas-kit/blob/master/modules/labs-react/common/README.md#useThemeRTL).",
996
+ "description": "",
1212
997
  "declarations": [
1213
998
  {
1214
999
  "name": "useThemeRTL",
@@ -1216,6 +1001,7 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
1216
1001
  }
1217
1002
  ],
1218
1003
  "tags": {
1004
+ "deprecated": "Now that IE11 is no longer supported, we encourage consumers to use [CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties)\n\n\nA helpful hook for supporting bidirectional styles.\n* Read below for more detail or [view the docs](https://github.com/Workday/canvas-kit/blob/master/modules/labs-react/common/README.md#useThemeRTL).",
1219
1005
  "returns": "* `themeRTL` - a function to transform bidirectional styles\n* `theme` - the Canvas theme object (optional, provided for convenience)\n\n`themeRTL` allows you to support bidirectionality with a single set of styles and pass them along to a component.\nIt accepts CSS object styles and transforms CSS attributes based on the content direction set in the theme (LTR or RTL).",
1220
1006
  "example": "import { type } from '@workday/canvas-kit-react/tokens';\nimport { useThemeRTL } from '@workday/canvas-kit-labs-react/common';\n\nconst ErrorText: React.FC = (props) => {\n const { themeRTL, theme } = useThemeRTL();\n // `borderLeft` will be converted to `borderRight`\n // when the theme direction is `RTL`.\n // All other styles will remain unchanged.\n const errorTextStyles = themeRTL({\n ...type.levels.subtext.medium,\n color: theme.canvas.palette.error.main,\n borderLeft: `solid 2px ${theme.canvas.palette.error.main}`,\n });\n\n return <span css={errorTextStyles} {...props} />;\n}"
1221
1007
  },
@@ -17681,6 +17467,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
17681
17467
  ],
17682
17468
  "tags": {}
17683
17469
  },
17470
+ {
17471
+ "kind": "property",
17472
+ "name": "inset",
17473
+ "required": false,
17474
+ "type": {
17475
+ "kind": "union",
17476
+ "value": [
17477
+ {
17478
+ "kind": "primitive",
17479
+ "value": "number"
17480
+ },
17481
+ {
17482
+ "kind": "primitive",
17483
+ "value": "string"
17484
+ }
17485
+ ]
17486
+ },
17487
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
17488
+ "declarations": [
17489
+ {
17490
+ "name": "inset",
17491
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
17492
+ }
17493
+ ],
17494
+ "tags": {}
17495
+ },
17684
17496
  {
17685
17497
  "kind": "property",
17686
17498
  "name": "insetInlineStart",
@@ -38220,15 +38032,15 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
38220
38032
  "value": [
38221
38033
  {
38222
38034
  "kind": "string",
38223
- "value": "common"
38035
+ "value": "error"
38224
38036
  },
38225
38037
  {
38226
38038
  "kind": "string",
38227
- "value": "primary"
38039
+ "value": "common"
38228
38040
  },
38229
38041
  {
38230
38042
  "kind": "string",
38231
- "value": "error"
38043
+ "value": "primary"
38232
38044
  },
38233
38045
  {
38234
38046
  "kind": "string",
@@ -38371,15 +38183,15 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
38371
38183
  "value": [
38372
38184
  {
38373
38185
  "kind": "string",
38374
- "value": "common"
38186
+ "value": "error"
38375
38187
  },
38376
38188
  {
38377
38189
  "kind": "string",
38378
- "value": "primary"
38190
+ "value": "common"
38379
38191
  },
38380
38192
  {
38381
38193
  "kind": "string",
38382
- "value": "error"
38194
+ "value": "primary"
38383
38195
  },
38384
38196
  {
38385
38197
  "kind": "string",
@@ -50024,6 +49836,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
50024
49836
  ],
50025
49837
  "tags": {}
50026
49838
  },
49839
+ {
49840
+ "kind": "property",
49841
+ "name": "inset",
49842
+ "required": false,
49843
+ "type": {
49844
+ "kind": "union",
49845
+ "value": [
49846
+ {
49847
+ "kind": "primitive",
49848
+ "value": "number"
49849
+ },
49850
+ {
49851
+ "kind": "primitive",
49852
+ "value": "string"
49853
+ }
49854
+ ]
49855
+ },
49856
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
49857
+ "declarations": [
49858
+ {
49859
+ "name": "inset",
49860
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
49861
+ }
49862
+ ],
49863
+ "tags": {}
49864
+ },
50027
49865
  {
50028
49866
  "kind": "property",
50029
49867
  "name": "insetInlineStart",
@@ -90983,99 +90821,6 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
90983
90821
  }
90984
90822
  }
90985
90823
  },
90986
- {
90987
- "name": "getCanvasTheme",
90988
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getCanvasTheme.ts",
90989
- "description": "Use this function when you have access to `theme` in styled components.\nThis function ensures that a theme is defined via a proxy and allows access to properties on the theme object.",
90990
- "declarations": [
90991
- {
90992
- "name": "getCanvasTheme",
90993
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getCanvasTheme.ts"
90994
- }
90995
- ],
90996
- "tags": {
90997
- "param": "theme Any partial or full theme object.",
90998
- "returns": "a theme object if it is defined, otherwise it will fall back on using defaultCanvasTheme",
90999
- "example": "const ResponsiveContainer = styled('div')(({theme}) => {\nconst canvas = getCanvasTheme(theme);\n return {\n maxHeight: '100vh',\n display: 'flex',\n position: 'absolute',\n left: 0,\n top: 0,\n justifyContent: 'center',\n alignItems: 'center',\n height: '100vh',\n [canvas.breakpoints.down('s')]: {\n alignItems: 'end',\n },\n };\n});"
91000
- },
91001
- "type": {
91002
- "kind": "function",
91003
- "parameters": [
91004
- {
91005
- "kind": "parameter",
91006
- "name": "theme",
91007
- "defaultValue": {
91008
- "kind": "object",
91009
- "properties": []
91010
- },
91011
- "type": {
91012
- "kind": "primitive",
91013
- "value": "any"
91014
- },
91015
- "required": false,
91016
- "rest": false,
91017
- "description": "Any partial or full theme object.",
91018
- "declarations": [
91019
- {
91020
- "name": "theme",
91021
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getCanvasTheme.ts"
91022
- }
91023
- ],
91024
- "tags": {
91025
- "param": "theme Any partial or full theme object."
91026
- }
91027
- }
91028
- ],
91029
- "members": [],
91030
- "returnType": {
91031
- "kind": "symbol",
91032
- "name": "CanvasTheme",
91033
- "value": "CanvasTheme"
91034
- }
91035
- }
91036
- },
91037
- {
91038
- "name": "useCanvasTheme",
91039
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getCanvasTheme.ts",
91040
- "description": "",
91041
- "declarations": [
91042
- {
91043
- "name": "useCanvasTheme",
91044
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getCanvasTheme.ts"
91045
- }
91046
- ],
91047
- "tags": {},
91048
- "type": {
91049
- "kind": "function",
91050
- "parameters": [
91051
- {
91052
- "kind": "parameter",
91053
- "name": "themeOverride",
91054
- "type": {
91055
- "kind": "symbol",
91056
- "name": "Theme",
91057
- "value": "Theme"
91058
- },
91059
- "required": false,
91060
- "rest": false,
91061
- "description": "",
91062
- "declarations": [
91063
- {
91064
- "name": "themeOverride",
91065
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getCanvasTheme.ts"
91066
- }
91067
- ],
91068
- "tags": {}
91069
- }
91070
- ],
91071
- "members": [],
91072
- "returnType": {
91073
- "kind": "symbol",
91074
- "name": "CanvasTheme",
91075
- "value": "CanvasTheme"
91076
- }
91077
- }
91078
- },
91079
90824
  {
91080
90825
  "name": "RecursivePartial",
91081
90826
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/getObjectProxy.ts",
@@ -92074,10 +91819,58 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
92074
91819
  }
92075
91820
  }
92076
91821
  },
91822
+ {
91823
+ "name": "getTheme",
91824
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useTheme.ts",
91825
+ "description": "Function to get the correct theme object for `styled` and class components\nor to be used outside component.",
91826
+ "declarations": [
91827
+ {
91828
+ "name": "getTheme",
91829
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useTheme.ts"
91830
+ }
91831
+ ],
91832
+ "tags": {
91833
+ "param": "theme - 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.",
91834
+ "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.",
91835
+ "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}"
91836
+ },
91837
+ "type": {
91838
+ "kind": "function",
91839
+ "parameters": [
91840
+ {
91841
+ "kind": "parameter",
91842
+ "name": "theme",
91843
+ "type": {
91844
+ "kind": "symbol",
91845
+ "name": "PartialEmotionCanvasTheme",
91846
+ "value": "PartialEmotionCanvasTheme"
91847
+ },
91848
+ "required": false,
91849
+ "rest": false,
91850
+ "description": "- 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.",
91851
+ "declarations": [
91852
+ {
91853
+ "name": "theme",
91854
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useTheme.ts"
91855
+ }
91856
+ ],
91857
+ "tags": {
91858
+ "param": "theme - 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."
91859
+ }
91860
+ }
91861
+ ],
91862
+ "members": [],
91863
+ "returnType": {
91864
+ "kind": "symbol",
91865
+ "name": "EmotionCanvasTheme",
91866
+ "value": "EmotionCanvasTheme"
91867
+ }
91868
+ }
91869
+ },
92077
91870
  {
92078
91871
  "name": "useTheme",
92079
91872
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useTheme.ts",
92080
- "description": "Hook function to get the correct theme object.",
91873
+ "description": "Hook function to get the correct theme object for functional components.",
92081
91874
  "declarations": [
92082
91875
  {
92083
91876
  "name": "useTheme",
@@ -92085,7 +91878,9 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
92085
91878
  }
92086
91879
  ],
92087
91880
  "tags": {
92088
- "param": "theme - The theme object returned from the emotion ThemeContext\n(through ThemeProvider). The Canvas Kit theme is namespaced within this variable under the `canvas` key.\n\nNOTE: If you are using a class component, you MUST pass the theme.\nIf 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."
91881
+ "param": "theme - 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.",
91882
+ "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.",
91883
+ "example": "export const ErrorMessage = () => {\n const theme = useTheme();\n return (\n <Subtext size=\"large\" color={theme.canvas.palette.error.main}>\n );\n}"
92089
91884
  },
92090
91885
  "type": {
92091
91886
  "kind": "function",
@@ -92100,7 +91895,7 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
92100
91895
  },
92101
91896
  "required": false,
92102
91897
  "rest": false,
92103
- "description": "- The theme object returned from the emotion ThemeContext\n(through ThemeProvider). The Canvas Kit theme is namespaced within this variable under the `canvas` key.\n\nNOTE: If you are using a class component, you MUST pass the theme.\nIf 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.",
91898
+ "description": "- 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.",
92104
91899
  "declarations": [
92105
91900
  {
92106
91901
  "name": "theme",
@@ -92108,7 +91903,7 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
92108
91903
  }
92109
91904
  ],
92110
91905
  "tags": {
92111
- "param": "theme - The theme object returned from the emotion ThemeContext\n(through ThemeProvider). The Canvas Kit theme is namespaced within this variable under the `canvas` key.\n\nNOTE: If you are using a class component, you MUST pass the theme.\nIf 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."
91906
+ "param": "theme - 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."
92112
91907
  }
92113
91908
  }
92114
91909
  ],
@@ -92120,6 +91915,221 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
92120
91915
  }
92121
91916
  }
92122
91917
  },
91918
+ {
91919
+ "name": "getPaletteColorsForFocusRing",
91920
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts",
91921
+ "description": "",
91922
+ "declarations": [
91923
+ {
91924
+ "name": "getPaletteColorsForFocusRing",
91925
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
91926
+ }
91927
+ ],
91928
+ "tags": {},
91929
+ "type": {
91930
+ "kind": "function",
91931
+ "parameters": [
91932
+ {
91933
+ "kind": "parameter",
91934
+ "name": "type",
91935
+ "type": {
91936
+ "kind": "type",
91937
+ "typeParameters": [],
91938
+ "value": {
91939
+ "kind": "symbol",
91940
+ "name": "Exclude",
91941
+ "typeParameters": [
91942
+ {
91943
+ "kind": "union",
91944
+ "value": [
91945
+ {
91946
+ "kind": "string",
91947
+ "value": "error"
91948
+ },
91949
+ {
91950
+ "kind": "string",
91951
+ "value": "common"
91952
+ },
91953
+ {
91954
+ "kind": "string",
91955
+ "value": "primary"
91956
+ },
91957
+ {
91958
+ "kind": "string",
91959
+ "value": "alert"
91960
+ },
91961
+ {
91962
+ "kind": "string",
91963
+ "value": "success"
91964
+ },
91965
+ {
91966
+ "kind": "string",
91967
+ "value": "neutral"
91968
+ }
91969
+ ]
91970
+ },
91971
+ {
91972
+ "kind": "string",
91973
+ "value": "common"
91974
+ }
91975
+ ],
91976
+ "value": "Exclude<T, U>"
91977
+ }
91978
+ },
91979
+ "required": true,
91980
+ "rest": false,
91981
+ "description": "",
91982
+ "declarations": [
91983
+ {
91984
+ "name": "type",
91985
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
91986
+ }
91987
+ ],
91988
+ "tags": {}
91989
+ },
91990
+ {
91991
+ "kind": "parameter",
91992
+ "name": "theme",
91993
+ "type": {
91994
+ "kind": "symbol",
91995
+ "name": "EmotionCanvasTheme",
91996
+ "value": "EmotionCanvasTheme"
91997
+ },
91998
+ "required": true,
91999
+ "rest": false,
92000
+ "description": "",
92001
+ "declarations": [
92002
+ {
92003
+ "name": "theme",
92004
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
92005
+ }
92006
+ ],
92007
+ "tags": {}
92008
+ }
92009
+ ],
92010
+ "members": [],
92011
+ "returnType": {
92012
+ "kind": "object",
92013
+ "properties": [
92014
+ {
92015
+ "kind": "property",
92016
+ "name": "outer",
92017
+ "required": false,
92018
+ "type": {
92019
+ "kind": "primitive",
92020
+ "value": "string"
92021
+ },
92022
+ "description": "",
92023
+ "declarations": [
92024
+ {
92025
+ "name": "outer",
92026
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
92027
+ }
92028
+ ],
92029
+ "tags": {}
92030
+ },
92031
+ {
92032
+ "kind": "property",
92033
+ "name": "inner",
92034
+ "required": false,
92035
+ "type": {
92036
+ "kind": "primitive",
92037
+ "value": "string"
92038
+ },
92039
+ "description": "",
92040
+ "declarations": [
92041
+ {
92042
+ "name": "inner",
92043
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
92044
+ }
92045
+ ],
92046
+ "tags": {}
92047
+ }
92048
+ ]
92049
+ }
92050
+ }
92051
+ },
92052
+ {
92053
+ "name": "useThemedRing",
92054
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts",
92055
+ "description": "This is a way to automatically add themed colors to your input and is helpful when showing alerts, success or errors to users.\nIt supports `error`, `alert`, and `success` states. It will try and use the corresponding\n`main` colors from your `CanvasThemePalette` unless they do not meet accessibility contrast, in\nwhich case the outer ring will use the `darkest` color. This hook will also show a `focusOutline`\nring when the input is focused. Note: You should not rely on these colors alone to differentiate\nalerts, but use them in combination with icons or hint text.\n```tsx\n// Add here jsx pragma to use css\nimport {jsx} from '@emotion/core';\nimport React from 'react';\nimport {TextInput} from '@workday/canvas-kit-preview-react/text-input';\nimport {useThemedRing} from '@workday/canvas-kit-react/common';\n\nexport const MyInput = ({handleChange}) => {\n const [value, setValue] = React.useState('invalid@email');\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value);\n };\n\n const alertStyles = useThemedRing('alert');\n\n return (\n <TextInput>\n <TextInput.Label>Email</TextInput.Label>\n <TextInput.Field css={alertStyles} onChange={handleChange} value={value} />\n <TextInput.Hint>Please enter a valid email.</TextInput.Hint>\n </TextInput>\n );\n};\n```",
92056
+ "declarations": [
92057
+ {
92058
+ "name": "useThemedRing",
92059
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
92060
+ }
92061
+ ],
92062
+ "tags": {},
92063
+ "type": {
92064
+ "kind": "function",
92065
+ "parameters": [
92066
+ {
92067
+ "kind": "parameter",
92068
+ "name": "type",
92069
+ "type": {
92070
+ "kind": "type",
92071
+ "typeParameters": [],
92072
+ "value": {
92073
+ "kind": "symbol",
92074
+ "name": "Exclude",
92075
+ "typeParameters": [
92076
+ {
92077
+ "kind": "union",
92078
+ "value": [
92079
+ {
92080
+ "kind": "string",
92081
+ "value": "error"
92082
+ },
92083
+ {
92084
+ "kind": "string",
92085
+ "value": "common"
92086
+ },
92087
+ {
92088
+ "kind": "string",
92089
+ "value": "primary"
92090
+ },
92091
+ {
92092
+ "kind": "string",
92093
+ "value": "alert"
92094
+ },
92095
+ {
92096
+ "kind": "string",
92097
+ "value": "success"
92098
+ },
92099
+ {
92100
+ "kind": "string",
92101
+ "value": "neutral"
92102
+ }
92103
+ ]
92104
+ },
92105
+ {
92106
+ "kind": "string",
92107
+ "value": "common"
92108
+ }
92109
+ ],
92110
+ "value": "Exclude<T, U>"
92111
+ }
92112
+ },
92113
+ "required": true,
92114
+ "rest": false,
92115
+ "description": "",
92116
+ "declarations": [
92117
+ {
92118
+ "name": "type",
92119
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/useThemedRing.ts"
92120
+ }
92121
+ ],
92122
+ "tags": {}
92123
+ }
92124
+ ],
92125
+ "members": [],
92126
+ "returnType": {
92127
+ "kind": "symbol",
92128
+ "name": "CSSProperties",
92129
+ "value": "CSSProperties"
92130
+ }
92131
+ }
92132
+ },
92123
92133
  {
92124
92134
  "name": "GrowthBehavior",
92125
92135
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/types.ts",
@@ -92614,6 +92624,70 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
92614
92624
  }
92615
92625
  }
92616
92626
  },
92627
+ {
92628
+ "name": "getColor",
92629
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/colorUtils.ts",
92630
+ "description": "The function takes in a color string or an enum value of CanvasColor and returns its hex value color.",
92631
+ "declarations": [
92632
+ {
92633
+ "name": "getColor",
92634
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/colorUtils.ts"
92635
+ }
92636
+ ],
92637
+ "tags": {
92638
+ "param": "value a string or an enum value of CanvasColor",
92639
+ "returns": "the hex value color"
92640
+ },
92641
+ "type": {
92642
+ "kind": "function",
92643
+ "parameters": [
92644
+ {
92645
+ "kind": "parameter",
92646
+ "name": "value",
92647
+ "type": {
92648
+ "kind": "union",
92649
+ "value": [
92650
+ {
92651
+ "kind": "symbol",
92652
+ "name": "CanvasColor",
92653
+ "value": "\"cinnamon600\" | \"cinnamon500\" | \"cinnamon400\" | \"cinnamon300\" | \"cinnamon200\" | \"cinnamon100\" | \"peach600\" | \"peach500\" | \"peach400\" | \"peach300\" | \"peach200\" | \"peach100\" | ... 149 more ... | \"blackPepper100\""
92654
+ },
92655
+ {
92656
+ "kind": "primitive",
92657
+ "value": "string"
92658
+ }
92659
+ ]
92660
+ },
92661
+ "required": false,
92662
+ "rest": false,
92663
+ "description": "a string or an enum value of CanvasColor",
92664
+ "declarations": [
92665
+ {
92666
+ "name": "value",
92667
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/colorUtils.ts"
92668
+ }
92669
+ ],
92670
+ "tags": {
92671
+ "param": "value a string or an enum value of CanvasColor"
92672
+ }
92673
+ }
92674
+ ],
92675
+ "members": [],
92676
+ "returnType": {
92677
+ "kind": "union",
92678
+ "value": [
92679
+ {
92680
+ "kind": "primitive",
92681
+ "value": "string"
92682
+ },
92683
+ {
92684
+ "kind": "primitive",
92685
+ "value": "undefined"
92686
+ }
92687
+ ]
92688
+ }
92689
+ }
92690
+ },
92617
92691
  {
92618
92692
  "name": "expandHex",
92619
92693
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/colorUtils.ts",
@@ -99504,8 +99578,11 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
99504
99578
  "kind": "parameter",
99505
99579
  "name": "args",
99506
99580
  "type": {
99507
- "kind": "primitive",
99508
- "value": "any"
99581
+ "kind": "array",
99582
+ "value": {
99583
+ "kind": "primitive",
99584
+ "value": "any"
99585
+ }
99509
99586
  },
99510
99587
  "required": true,
99511
99588
  "rest": true,
@@ -106883,8 +106960,8 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
106883
106960
  "name": "color",
106884
106961
  "required": false,
106885
106962
  "type": {
106886
- "kind": "primitive",
106887
- "value": "string"
106963
+ "kind": "symbol",
106964
+ "name": "CanvasColorTokens"
106888
106965
  },
106889
106966
  "description": "The fill color of the AccentIcon.",
106890
106967
  "declarations": [
@@ -107039,8 +107116,8 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
107039
107116
  "name": "color",
107040
107117
  "required": false,
107041
107118
  "type": {
107042
- "kind": "primitive",
107043
- "value": "string"
107119
+ "kind": "symbol",
107120
+ "name": "CanvasColorTokens"
107044
107121
  },
107045
107122
  "description": "The fill color of the AccentIcon.",
107046
107123
  "declarations": [
@@ -108887,8 +108964,8 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
108887
108964
  "name": "background",
108888
108965
  "required": false,
108889
108966
  "type": {
108890
- "kind": "primitive",
108891
- "value": "string"
108967
+ "kind": "symbol",
108968
+ "name": "CanvasColorTokens"
108892
108969
  },
108893
108970
  "description": "The background color of the SystemIconCircle from `@workday/canvas-colors-web`.",
108894
108971
  "declarations": [
@@ -109142,65 +109219,6 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
109142
109219
  }
109143
109220
  }
109144
109221
  },
109145
- {
109146
- "name": "getColor",
109147
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/utils.ts",
109148
- "description": "",
109149
- "declarations": [
109150
- {
109151
- "name": "getColor",
109152
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/utils.ts"
109153
- }
109154
- ],
109155
- "tags": {},
109156
- "type": {
109157
- "kind": "function",
109158
- "parameters": [
109159
- {
109160
- "kind": "parameter",
109161
- "name": "value",
109162
- "type": {
109163
- "kind": "union",
109164
- "value": [
109165
- {
109166
- "kind": "symbol",
109167
- "name": "CanvasColor",
109168
- "value": "\"cinnamon600\" | \"cinnamon500\" | \"cinnamon400\" | \"cinnamon300\" | \"cinnamon200\" | \"cinnamon100\" | \"peach600\" | \"peach500\" | \"peach400\" | \"peach300\" | \"peach200\" | \"peach100\" | ... 149 more ... | \"blackPepper100\""
109169
- },
109170
- {
109171
- "kind": "primitive",
109172
- "value": "string"
109173
- }
109174
- ]
109175
- },
109176
- "required": false,
109177
- "rest": false,
109178
- "description": "",
109179
- "declarations": [
109180
- {
109181
- "name": "value",
109182
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/utils.ts"
109183
- }
109184
- ],
109185
- "tags": {}
109186
- }
109187
- ],
109188
- "members": [],
109189
- "returnType": {
109190
- "kind": "union",
109191
- "value": [
109192
- {
109193
- "kind": "primitive",
109194
- "value": "string"
109195
- },
109196
- {
109197
- "kind": "primitive",
109198
- "value": "undefined"
109199
- }
109200
- ]
109201
- }
109202
- }
109203
- },
109204
109222
  {
109205
109223
  "name": "BoxProps",
109206
109224
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx",
@@ -111726,6 +111744,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
111726
111744
  ],
111727
111745
  "tags": {}
111728
111746
  },
111747
+ {
111748
+ "kind": "property",
111749
+ "name": "inset",
111750
+ "required": false,
111751
+ "type": {
111752
+ "kind": "union",
111753
+ "value": [
111754
+ {
111755
+ "kind": "primitive",
111756
+ "value": "number"
111757
+ },
111758
+ {
111759
+ "kind": "primitive",
111760
+ "value": "string"
111761
+ }
111762
+ ]
111763
+ },
111764
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
111765
+ "declarations": [
111766
+ {
111767
+ "name": "inset",
111768
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
111769
+ }
111770
+ ],
111771
+ "tags": {}
111772
+ },
111729
111773
  {
111730
111774
  "kind": "property",
111731
111775
  "name": "insetInlineStart",
@@ -116012,6 +116056,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
116012
116056
  ],
116013
116057
  "tags": {}
116014
116058
  },
116059
+ {
116060
+ "kind": "property",
116061
+ "name": "inset",
116062
+ "required": false,
116063
+ "type": {
116064
+ "kind": "union",
116065
+ "value": [
116066
+ {
116067
+ "kind": "primitive",
116068
+ "value": "number"
116069
+ },
116070
+ {
116071
+ "kind": "primitive",
116072
+ "value": "string"
116073
+ }
116074
+ ]
116075
+ },
116076
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
116077
+ "declarations": [
116078
+ {
116079
+ "name": "inset",
116080
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
116081
+ }
116082
+ ],
116083
+ "tags": {}
116084
+ },
116015
116085
  {
116016
116086
  "kind": "property",
116017
116087
  "name": "insetInlineStart",
@@ -120721,6 +120791,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
120721
120791
  ],
120722
120792
  "tags": {}
120723
120793
  },
120794
+ {
120795
+ "kind": "property",
120796
+ "name": "inset",
120797
+ "required": false,
120798
+ "type": {
120799
+ "kind": "union",
120800
+ "value": [
120801
+ {
120802
+ "kind": "primitive",
120803
+ "value": "number"
120804
+ },
120805
+ {
120806
+ "kind": "primitive",
120807
+ "value": "string"
120808
+ }
120809
+ ]
120810
+ },
120811
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
120812
+ "declarations": [
120813
+ {
120814
+ "name": "inset",
120815
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
120816
+ }
120817
+ ],
120818
+ "tags": {}
120819
+ },
120724
120820
  {
120725
120821
  "kind": "property",
120726
120822
  "name": "insetInlineStart",
@@ -128103,6 +128199,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
128103
128199
  ],
128104
128200
  "tags": {}
128105
128201
  },
128202
+ {
128203
+ "kind": "property",
128204
+ "name": "inset",
128205
+ "required": false,
128206
+ "type": {
128207
+ "kind": "union",
128208
+ "value": [
128209
+ {
128210
+ "kind": "primitive",
128211
+ "value": "number"
128212
+ },
128213
+ {
128214
+ "kind": "primitive",
128215
+ "value": "string"
128216
+ }
128217
+ ]
128218
+ },
128219
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
128220
+ "declarations": [
128221
+ {
128222
+ "name": "inset",
128223
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
128224
+ }
128225
+ ],
128226
+ "tags": {}
128227
+ },
128106
128228
  {
128107
128229
  "kind": "property",
128108
128230
  "name": "insetInlineStart",
@@ -146526,6 +146648,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
146526
146648
  ],
146527
146649
  "tags": {}
146528
146650
  },
146651
+ {
146652
+ "kind": "property",
146653
+ "name": "inset",
146654
+ "required": false,
146655
+ "type": {
146656
+ "kind": "union",
146657
+ "value": [
146658
+ {
146659
+ "kind": "primitive",
146660
+ "value": "number"
146661
+ },
146662
+ {
146663
+ "kind": "primitive",
146664
+ "value": "string"
146665
+ }
146666
+ ]
146667
+ },
146668
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
146669
+ "declarations": [
146670
+ {
146671
+ "name": "inset",
146672
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
146673
+ }
146674
+ ],
146675
+ "tags": {}
146676
+ },
146529
146677
  {
146530
146678
  "kind": "property",
146531
146679
  "name": "insetInlineStart",
@@ -152992,6 +153140,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
152992
153140
  ],
152993
153141
  "tags": {}
152994
153142
  },
153143
+ {
153144
+ "kind": "property",
153145
+ "name": "inset",
153146
+ "required": false,
153147
+ "type": {
153148
+ "kind": "union",
153149
+ "value": [
153150
+ {
153151
+ "kind": "primitive",
153152
+ "value": "number"
153153
+ },
153154
+ {
153155
+ "kind": "primitive",
153156
+ "value": "string"
153157
+ }
153158
+ ]
153159
+ },
153160
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
153161
+ "declarations": [
153162
+ {
153163
+ "name": "inset",
153164
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
153165
+ }
153166
+ ],
153167
+ "tags": {}
153168
+ },
152995
153169
  {
152996
153170
  "kind": "property",
152997
153171
  "name": "insetInlineStart",
@@ -158072,6 +158246,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
158072
158246
  ],
158073
158247
  "tags": {}
158074
158248
  },
158249
+ {
158250
+ "kind": "property",
158251
+ "name": "inset",
158252
+ "required": false,
158253
+ "type": {
158254
+ "kind": "union",
158255
+ "value": [
158256
+ {
158257
+ "kind": "primitive",
158258
+ "value": "number"
158259
+ },
158260
+ {
158261
+ "kind": "primitive",
158262
+ "value": "string"
158263
+ }
158264
+ ]
158265
+ },
158266
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
158267
+ "declarations": [
158268
+ {
158269
+ "name": "inset",
158270
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
158271
+ }
158272
+ ],
158273
+ "tags": {}
158274
+ },
158075
158275
  {
158076
158276
  "kind": "property",
158077
158277
  "name": "insetInlineStart",
@@ -173244,6 +173444,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
173244
173444
  ],
173245
173445
  "tags": {}
173246
173446
  },
173447
+ {
173448
+ "kind": "property",
173449
+ "name": "inset",
173450
+ "required": false,
173451
+ "type": {
173452
+ "kind": "union",
173453
+ "value": [
173454
+ {
173455
+ "kind": "primitive",
173456
+ "value": "number"
173457
+ },
173458
+ {
173459
+ "kind": "primitive",
173460
+ "value": "string"
173461
+ }
173462
+ ]
173463
+ },
173464
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
173465
+ "declarations": [
173466
+ {
173467
+ "name": "inset",
173468
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
173469
+ }
173470
+ ],
173471
+ "tags": {}
173472
+ },
173247
173473
  {
173248
173474
  "kind": "property",
173249
173475
  "name": "insetInlineStart",
@@ -179244,6 +179470,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
179244
179470
  ],
179245
179471
  "tags": {}
179246
179472
  },
179473
+ {
179474
+ "kind": "property",
179475
+ "name": "inset",
179476
+ "required": false,
179477
+ "type": {
179478
+ "kind": "union",
179479
+ "value": [
179480
+ {
179481
+ "kind": "primitive",
179482
+ "value": "number"
179483
+ },
179484
+ {
179485
+ "kind": "primitive",
179486
+ "value": "string"
179487
+ }
179488
+ ]
179489
+ },
179490
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
179491
+ "declarations": [
179492
+ {
179493
+ "name": "inset",
179494
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
179495
+ }
179496
+ ],
179497
+ "tags": {}
179498
+ },
179247
179499
  {
179248
179500
  "kind": "property",
179249
179501
  "name": "insetInlineStart",
@@ -192523,6 +192775,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
192523
192775
  ],
192524
192776
  "tags": {}
192525
192777
  },
192778
+ {
192779
+ "kind": "property",
192780
+ "name": "inset",
192781
+ "required": false,
192782
+ "type": {
192783
+ "kind": "union",
192784
+ "value": [
192785
+ {
192786
+ "kind": "primitive",
192787
+ "value": "number"
192788
+ },
192789
+ {
192790
+ "kind": "primitive",
192791
+ "value": "string"
192792
+ }
192793
+ ]
192794
+ },
192795
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
192796
+ "declarations": [
192797
+ {
192798
+ "name": "inset",
192799
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
192800
+ }
192801
+ ],
192802
+ "tags": {}
192803
+ },
192526
192804
  {
192527
192805
  "kind": "property",
192528
192806
  "name": "insetInlineStart",
@@ -197192,6 +197470,32 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
197192
197470
  ],
197193
197471
  "tags": {}
197194
197472
  },
197473
+ {
197474
+ "kind": "property",
197475
+ "name": "inset",
197476
+ "required": false,
197477
+ "type": {
197478
+ "kind": "union",
197479
+ "value": [
197480
+ {
197481
+ "kind": "primitive",
197482
+ "value": "number"
197483
+ },
197484
+ {
197485
+ "kind": "primitive",
197486
+ "value": "string"
197487
+ }
197488
+ ]
197489
+ },
197490
+ "description": "- sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)",
197491
+ "declarations": [
197492
+ {
197493
+ "name": "inset",
197494
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/utils/position.ts"
197495
+ }
197496
+ ],
197497
+ "tags": {}
197498
+ },
197195
197499
  {
197196
197500
  "kind": "property",
197197
197501
  "name": "insetInlineStart",
@@ -213874,26 +214178,26 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
213874
214178
 
213875
214179
  ];
213876
214180
  export function getDoc(name, fileName) {
213877
- return docs.find(function (d) {
214181
+ return docs.find(d => {
213878
214182
  return d.name === name && (fileName ? d.fileName.includes(fileName) : true);
213879
214183
  });
213880
214184
  }
213881
- var subscriptions = [];
214185
+ const subscriptions = [];
213882
214186
  export function subscribe(listener) {
213883
214187
  subscriptions.push(listener);
213884
- return function () {
213885
- var index = subscriptions.findIndex(function (s) { return s === listener; });
214188
+ return () => {
214189
+ const index = subscriptions.findIndex(s => s === listener);
213886
214190
  if (index > 0) {
213887
214191
  subscriptions.splice(index, 1);
213888
214192
  }
213889
214193
  };
213890
214194
  }
213891
214195
  export function updateDocs(updatedDocs) {
213892
- updatedDocs.forEach(function (doc) {
213893
- var foundIndex = docs.findIndex(function (d) { return d.fileName === doc.fileName && d.name === doc.name; });
214196
+ updatedDocs.forEach(doc => {
214197
+ const foundIndex = docs.findIndex(d => d.fileName === doc.fileName && d.name === doc.name);
213894
214198
  if (foundIndex !== -1) {
213895
214199
  // we need to replace the doc with updates
213896
- subscriptions.forEach(function (s) {
214200
+ subscriptions.forEach(s => {
213897
214201
  if (s.name === doc.name && s.fileName ? s.fileName === doc.fileName : true) {
213898
214202
  s.callback(doc);
213899
214203
  }