@workday/canvas-kit-preview-react 9.0.0-alpha.407-next.9 → 9.0.0-alpha.409-next.11

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 (33) hide show
  1. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
  2. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  3. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
  4. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  5. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
  6. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  7. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +3 -5
  8. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
  9. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +18 -4
  10. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
  11. package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +3 -5
  12. package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
  13. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts +3 -6
  14. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
  15. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +3 -5
  16. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  17. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
  18. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  19. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
  20. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  21. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
  22. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  23. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +3 -5
  24. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
  25. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +18 -4
  26. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
  27. package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +3 -5
  28. package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
  29. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts +3 -6
  30. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
  31. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +3 -5
  32. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  33. package/package.json +3 -3
@@ -2,16 +2,14 @@
2
2
  * Adds the necessary props to a `Hint` component.
3
3
  * Used by the FormField.Hint subcomponent and other input type components
4
4
  */
5
- export declare const useFormFieldHint: <P extends {}, R>(model: {
5
+ export declare const useFormFieldHint: import("@workday/canvas-kit-react/common").BehaviorHook<{
6
6
  state: {
7
7
  id: string;
8
8
  hasError: boolean;
9
9
  isRequired: boolean;
10
10
  };
11
11
  events: {};
12
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
12
+ }, {
13
13
  id: string;
14
- } & P & (R extends HTMLOrSVGElement ? {
15
- ref: import("react").Ref<R>;
16
- } : {});
14
+ }>;
17
15
  //# sourceMappingURL=useFormFieldHint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormFieldHint.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldHint.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;OAI3B,CAAC"}
1
+ {"version":3,"file":"useFormFieldHint.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldHint.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;EAI3B,CAAC"}
@@ -2,19 +2,17 @@
2
2
  * Adds the necessary props to an `Input` component.
3
3
  * Used by the FormField.Input subcomponent and other input type components
4
4
  */
5
- export declare const useFormFieldInput: <P extends {}, R>(model: {
5
+ export declare const useFormFieldInput: import("@workday/canvas-kit-react/common").BehaviorHook<{
6
6
  state: {
7
7
  id: string;
8
8
  hasError: boolean;
9
9
  isRequired: boolean;
10
10
  };
11
11
  events: {};
12
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
12
+ }, {
13
13
  required: boolean | undefined;
14
14
  'aria-invalid': boolean | undefined;
15
15
  'aria-describedby': string;
16
16
  id: string;
17
- } & P & (R extends HTMLOrSVGElement ? {
18
- ref: import("react").Ref<R>;
19
- } : {});
17
+ }>;
20
18
  //# sourceMappingURL=useFormFieldInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormFieldInput.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldInput.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;OAO5B,CAAC"}
1
+ {"version":3,"file":"useFormFieldInput.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldInput.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAO5B,CAAC"}
@@ -2,16 +2,14 @@
2
2
  * Adds the necessary props to a `Label` component.
3
3
  * Used by the FormField.Label subcomponent and other input type components
4
4
  */
5
- export declare const useFormFieldLabel: <P extends {}, R>(model: {
5
+ export declare const useFormFieldLabel: import("@workday/canvas-kit-react/common").BehaviorHook<{
6
6
  state: {
7
7
  id: string;
8
8
  hasError: boolean;
9
9
  isRequired: boolean;
10
10
  };
11
11
  events: {};
12
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
12
+ }, {
13
13
  htmlFor: string;
14
- } & P & (R extends HTMLOrSVGElement ? {
15
- ref: import("react").Ref<R>;
16
- } : {});
14
+ }>;
17
15
  //# sourceMappingURL=useFormFieldLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormFieldLabel.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldLabel.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;OAI5B,CAAC"}
1
+ {"version":3,"file":"useFormFieldLabel.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldLabel.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EAI5B,CAAC"}
@@ -5,7 +5,7 @@ export interface SegmentedControlListProps<T = any> extends Omit<Partial<Extract
5
5
  'aria-label': string;
6
6
  children: ((item: T) => React.ReactNode) | React.ReactNode;
7
7
  }
8
- export declare const useSegmentedControlList: <P extends {}, R>(model: {
8
+ export declare const useSegmentedControlList: import("@workday/canvas-kit-react/common").BehaviorHook<{
9
9
  state: {
10
10
  disabled: boolean;
11
11
  size: "small" | "medium" | "large";
@@ -62,12 +62,10 @@ export declare const useSegmentedControlList: <P extends {}, R>(model: {
62
62
  selection: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectionManager;
63
63
  navigation: import("@workday/canvas-kit-react/collection/lib/useCursorListModel").NavigationManager;
64
64
  getId: (item: any) => string;
65
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {
65
+ }, {
66
66
  [x: string]: string | number | undefined;
67
67
  opacity: number | undefined;
68
- } & P & (R extends HTMLOrSVGElement ? {
69
- ref: React.Ref<R>;
70
- } : {});
68
+ }>;
71
69
  export declare const SegmentedControlList: import("@workday/canvas-kit-react/common").ElementComponentM<"div", SegmentedControlListProps<any>, {
72
70
  state: {
73
71
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControlList.d.ts","sourceRoot":"","sources":["../../../../segmented-control/lib/SegmentedControlList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,YAAY,EAEb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAItD,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,GAAG,CAChD,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAQnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB/B,CAAC"}
1
+ {"version":3,"file":"SegmentedControlList.d.ts","sourceRoot":"","sources":["../../../../segmented-control/lib/SegmentedControlList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,YAAY,EAEb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAItD,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,GAAG,CAChD,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB/B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const useSegmentedControlItem: <P extends {}, R>(model: {
2
+ export declare const useSegmentedControlItem: import("@workday/canvas-kit-react/common").BehaviorHook<{
3
3
  state: {
4
4
  selectedIds: string[] | "all";
5
5
  unselectedIds: string[];
@@ -54,7 +54,21 @@ export declare const useSegmentedControlItem: <P extends {}, R>(model: {
54
54
  selection: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectionManager;
55
55
  navigation: import("@workday/canvas-kit-react/collection/lib/useCursorListModel").NavigationManager;
56
56
  getId: (item: any) => string;
57
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {} & P & (R extends HTMLOrSVGElement ? {
58
- ref: React.Ref<R>;
59
- } : {});
57
+ }, {
58
+ onClick: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
59
+ } & {
60
+ id: string;
61
+ 'aria-pressed': boolean;
62
+ } & {
63
+ ref: (instance: HTMLElement | null) => void;
64
+ 'data-id': string;
65
+ disabled: boolean | undefined;
66
+ item: null;
67
+ virtual: null;
68
+ 'aria-setsize': number | undefined;
69
+ 'aria-posinset': number | undefined;
70
+ style: React.CSSProperties;
71
+ } & {
72
+ disabled: boolean | undefined;
73
+ }>;
60
74
  //# sourceMappingURL=useSegmentedControlItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../../../segmented-control/lib/hooks/useSegmentedControlItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BnC,CAAC"}
1
+ {"version":3,"file":"useSegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../../../segmented-control/lib/hooks/useSegmentedControlItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BnC,CAAC"}
@@ -7,19 +7,17 @@ export interface StatusIndicatorProps extends ExtractProps<typeof Flex, never> {
7
7
  */
8
8
  children: React.ReactNode;
9
9
  }
10
- export declare const useStatusIndicator: <P extends {}, R>(model: {
10
+ export declare const useStatusIndicator: import("@workday/canvas-kit-react/common").BehaviorHook<{
11
11
  state: {
12
12
  emphasis: import("./hooks").StatusIndicatorEmphasis;
13
13
  variant: import("./hooks").StatusIndicatorVariant;
14
14
  };
15
15
  events: {};
16
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {
16
+ }, {
17
17
  opacity: string | undefined;
18
18
  color: string;
19
19
  background: string;
20
- } & P & (R extends HTMLOrSVGElement ? {
21
- ref: React.Ref<R>;
22
- } : {});
20
+ }>;
23
21
  /**
24
22
  * `StatusIndicator` is a container component which renders an {@link Flex} under the hood to
25
23
  * apply spacing evenly between its children. It has a default maximum width of `200px`.
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAuC,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC;IAC5E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;OAO7B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;IAKxB;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;;;;;;;CAmBL,CAAC"}
1
+ {"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAuC,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC;IAC5E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;EAO7B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;IAKxB;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;;;;;;;CAmBL,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { SystemIconProps } from '@workday/canvas-kit-react/icon';
3
2
  export interface StatusIndicatorIconProps extends SystemIconProps {
4
3
  }
@@ -64,18 +63,16 @@ export declare const statusIndicatorColors: {
64
63
  };
65
64
  };
66
65
  };
67
- export declare const useStatusIndicatorIcon: <P extends {}, R>(model: {
66
+ export declare const useStatusIndicatorIcon: import("@workday/canvas-kit-react/common").BehaviorHook<{
68
67
  state: {
69
68
  emphasis: import("./hooks").StatusIndicatorEmphasis;
70
69
  variant: import("./hooks").StatusIndicatorVariant;
71
70
  };
72
71
  events: {};
73
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {
72
+ }, {
74
73
  color: string;
75
74
  colorHover: string;
76
- } & P & (R extends HTMLOrSVGElement ? {
77
- ref: React.Ref<R>;
78
- } : {});
75
+ }>;
79
76
  export declare const StatusIndicatorIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", StatusIndicatorIconProps, {
80
77
  state: {
81
78
  emphasis: import("./hooks").StatusIndicatorEmphasis;
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIndicatorIcon.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,MAAM,WAAW,wBAAyB,SAAQ,eAAe;CAAG;AAIpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;OAMjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;EAK9B,CAAC"}
1
+ {"version":3,"file":"StatusIndicatorIcon.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,MAAM,WAAW,wBAAyB,SAAQ,eAAe;CAAG;AAIpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;EAK9B,CAAC"}
@@ -1,16 +1,14 @@
1
1
  /**
2
2
  * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
3
3
  */
4
- export declare const useTextInputField: <P extends {}, R>(model: {
4
+ export declare const useTextInputField: import("@workday/canvas-kit-react/common").BehaviorHook<{
5
5
  state: {
6
6
  id: string;
7
7
  hasError: boolean;
8
8
  isRequired: boolean;
9
9
  };
10
10
  events: {};
11
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
11
+ }, {
12
12
  type: string;
13
- } & P & (R extends HTMLOrSVGElement ? {
14
- ref: import("react").Ref<R>;
15
- } : {});
13
+ }>;
16
14
  //# sourceMappingURL=useTextInputField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;OAI5B,CAAC"}
1
+ {"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EAI5B,CAAC"}
@@ -2,16 +2,14 @@
2
2
  * Adds the necessary props to a `Hint` component.
3
3
  * Used by the FormField.Hint subcomponent and other input type components
4
4
  */
5
- export declare const useFormFieldHint: <P extends {}, R>(model: {
5
+ export declare const useFormFieldHint: import("@workday/canvas-kit-react/common").BehaviorHook<{
6
6
  state: {
7
7
  id: string;
8
8
  hasError: boolean;
9
9
  isRequired: boolean;
10
10
  };
11
11
  events: {};
12
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
12
+ }, {
13
13
  id: string;
14
- } & P & (R extends HTMLOrSVGElement ? {
15
- ref: import("react").Ref<R>;
16
- } : {});
14
+ }>;
17
15
  //# sourceMappingURL=useFormFieldHint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormFieldHint.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldHint.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;OAI3B,CAAC"}
1
+ {"version":3,"file":"useFormFieldHint.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldHint.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;EAI3B,CAAC"}
@@ -2,19 +2,17 @@
2
2
  * Adds the necessary props to an `Input` component.
3
3
  * Used by the FormField.Input subcomponent and other input type components
4
4
  */
5
- export declare const useFormFieldInput: <P extends {}, R>(model: {
5
+ export declare const useFormFieldInput: import("@workday/canvas-kit-react/common").BehaviorHook<{
6
6
  state: {
7
7
  id: string;
8
8
  hasError: boolean;
9
9
  isRequired: boolean;
10
10
  };
11
11
  events: {};
12
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
12
+ }, {
13
13
  required: boolean | undefined;
14
14
  'aria-invalid': boolean | undefined;
15
15
  'aria-describedby': string;
16
16
  id: string;
17
- } & P & (R extends HTMLOrSVGElement ? {
18
- ref: import("react").Ref<R>;
19
- } : {});
17
+ }>;
20
18
  //# sourceMappingURL=useFormFieldInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormFieldInput.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldInput.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;OAO5B,CAAC"}
1
+ {"version":3,"file":"useFormFieldInput.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldInput.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAO5B,CAAC"}
@@ -2,16 +2,14 @@
2
2
  * Adds the necessary props to a `Label` component.
3
3
  * Used by the FormField.Label subcomponent and other input type components
4
4
  */
5
- export declare const useFormFieldLabel: <P extends {}, R>(model: {
5
+ export declare const useFormFieldLabel: import("@workday/canvas-kit-react/common").BehaviorHook<{
6
6
  state: {
7
7
  id: string;
8
8
  hasError: boolean;
9
9
  isRequired: boolean;
10
10
  };
11
11
  events: {};
12
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
12
+ }, {
13
13
  htmlFor: string;
14
- } & P & (R extends HTMLOrSVGElement ? {
15
- ref: import("react").Ref<R>;
16
- } : {});
14
+ }>;
17
15
  //# sourceMappingURL=useFormFieldLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormFieldLabel.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldLabel.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;OAI5B,CAAC"}
1
+ {"version":3,"file":"useFormFieldLabel.d.ts","sourceRoot":"","sources":["../../../../../form-field/lib/hooks/useFormFieldLabel.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EAI5B,CAAC"}
@@ -5,7 +5,7 @@ export interface SegmentedControlListProps<T = any> extends Omit<Partial<Extract
5
5
  'aria-label': string;
6
6
  children: ((item: T) => React.ReactNode) | React.ReactNode;
7
7
  }
8
- export declare const useSegmentedControlList: <P extends {}, R>(model: {
8
+ export declare const useSegmentedControlList: import("@workday/canvas-kit-react/common").BehaviorHook<{
9
9
  state: {
10
10
  disabled: boolean;
11
11
  size: "small" | "medium" | "large";
@@ -62,12 +62,10 @@ export declare const useSegmentedControlList: <P extends {}, R>(model: {
62
62
  selection: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectionManager;
63
63
  navigation: import("@workday/canvas-kit-react/collection/lib/useCursorListModel").NavigationManager;
64
64
  getId: (item: any) => string;
65
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {
65
+ }, {
66
66
  [x: string]: string | number | undefined;
67
67
  opacity: number | undefined;
68
- } & P & (R extends HTMLOrSVGElement ? {
69
- ref: React.Ref<R>;
70
- } : {});
68
+ }>;
71
69
  export declare const SegmentedControlList: import("@workday/canvas-kit-react/common").ElementComponentM<"div", SegmentedControlListProps<any>, {
72
70
  state: {
73
71
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControlList.d.ts","sourceRoot":"","sources":["../../../../segmented-control/lib/SegmentedControlList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,YAAY,EAEb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAItD,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,GAAG,CAChD,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAQnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB/B,CAAC"}
1
+ {"version":3,"file":"SegmentedControlList.d.ts","sourceRoot":"","sources":["../../../../segmented-control/lib/SegmentedControlList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,YAAY,EAEb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAItD,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,GAAG,CAChD,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB/B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const useSegmentedControlItem: <P extends {}, R>(model: {
2
+ export declare const useSegmentedControlItem: import("@workday/canvas-kit-react/common").BehaviorHook<{
3
3
  state: {
4
4
  selectedIds: string[] | "all";
5
5
  unselectedIds: string[];
@@ -54,7 +54,21 @@ export declare const useSegmentedControlItem: <P extends {}, R>(model: {
54
54
  selection: import("@workday/canvas-kit-react/collection/lib/useSelectionListModel").SelectionManager;
55
55
  navigation: import("@workday/canvas-kit-react/collection/lib/useCursorListModel").NavigationManager;
56
56
  getId: (item: any) => string;
57
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {} & P & (R extends HTMLOrSVGElement ? {
58
- ref: React.Ref<R>;
59
- } : {});
57
+ }, {
58
+ onClick: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
59
+ } & {
60
+ id: string;
61
+ 'aria-pressed': boolean;
62
+ } & {
63
+ ref: (instance: HTMLElement | null) => void;
64
+ 'data-id': string;
65
+ disabled: boolean | undefined;
66
+ item: null;
67
+ virtual: null;
68
+ 'aria-setsize': number | undefined;
69
+ 'aria-posinset': number | undefined;
70
+ style: React.CSSProperties;
71
+ } & {
72
+ disabled: boolean | undefined;
73
+ }>;
60
74
  //# sourceMappingURL=useSegmentedControlItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../../../segmented-control/lib/hooks/useSegmentedControlItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BnC,CAAC"}
1
+ {"version":3,"file":"useSegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../../../segmented-control/lib/hooks/useSegmentedControlItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BnC,CAAC"}
@@ -7,19 +7,17 @@ export interface StatusIndicatorProps extends ExtractProps<typeof Flex, never> {
7
7
  */
8
8
  children: React.ReactNode;
9
9
  }
10
- export declare const useStatusIndicator: <P extends {}, R>(model: {
10
+ export declare const useStatusIndicator: import("@workday/canvas-kit-react/common").BehaviorHook<{
11
11
  state: {
12
12
  emphasis: import("./hooks").StatusIndicatorEmphasis;
13
13
  variant: import("./hooks").StatusIndicatorVariant;
14
14
  };
15
15
  events: {};
16
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {
16
+ }, {
17
17
  opacity: string | undefined;
18
18
  color: string;
19
19
  background: string;
20
- } & P & (R extends HTMLOrSVGElement ? {
21
- ref: React.Ref<R>;
22
- } : {});
20
+ }>;
23
21
  /**
24
22
  * `StatusIndicator` is a container component which renders an {@link Flex} under the hood to
25
23
  * apply spacing evenly between its children. It has a default maximum width of `200px`.
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAuC,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC;IAC5E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;OAO7B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;IAKxB;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;;;;;;;CAmBL,CAAC"}
1
+ {"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAuC,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC;IAC5E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;EAO7B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;IAKxB;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;;;;;;;CAmBL,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { SystemIconProps } from '@workday/canvas-kit-react/icon';
3
2
  export interface StatusIndicatorIconProps extends SystemIconProps {
4
3
  }
@@ -64,18 +63,16 @@ export declare const statusIndicatorColors: {
64
63
  };
65
64
  };
66
65
  };
67
- export declare const useStatusIndicatorIcon: <P extends {}, R>(model: {
66
+ export declare const useStatusIndicatorIcon: import("@workday/canvas-kit-react/common").BehaviorHook<{
68
67
  state: {
69
68
  emphasis: import("./hooks").StatusIndicatorEmphasis;
70
69
  variant: import("./hooks").StatusIndicatorVariant;
71
70
  };
72
71
  events: {};
73
- }, elemProps?: P | undefined, ref?: React.Ref<R> | undefined) => {
72
+ }, {
74
73
  color: string;
75
74
  colorHover: string;
76
- } & P & (R extends HTMLOrSVGElement ? {
77
- ref: React.Ref<R>;
78
- } : {});
75
+ }>;
79
76
  export declare const StatusIndicatorIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", StatusIndicatorIconProps, {
80
77
  state: {
81
78
  emphasis: import("./hooks").StatusIndicatorEmphasis;
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIndicatorIcon.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,MAAM,WAAW,wBAAyB,SAAQ,eAAe;CAAG;AAIpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;OAMjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;EAK9B,CAAC"}
1
+ {"version":3,"file":"StatusIndicatorIcon.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicatorIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG3E,MAAM,WAAW,wBAAyB,SAAQ,eAAe;CAAG;AAIpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;EAK9B,CAAC"}
@@ -1,16 +1,14 @@
1
1
  /**
2
2
  * Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
3
3
  */
4
- export declare const useTextInputField: <P extends {}, R>(model: {
4
+ export declare const useTextInputField: import("@workday/canvas-kit-react/common").BehaviorHook<{
5
5
  state: {
6
6
  id: string;
7
7
  hasError: boolean;
8
8
  isRequired: boolean;
9
9
  };
10
10
  events: {};
11
- }, elemProps?: P | undefined, ref?: import("react").Ref<R> | undefined) => {
11
+ }, {
12
12
  type: string;
13
- } & P & (R extends HTMLOrSVGElement ? {
14
- ref: import("react").Ref<R>;
15
- } : {});
13
+ }>;
16
14
  //# sourceMappingURL=useTextInputField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;OAI5B,CAAC"}
1
+ {"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EAI5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-preview-react",
3
- "version": "9.0.0-alpha.407-next.9+2b1ba94f",
3
+ "version": "9.0.0-alpha.409-next.11+ce4ca6f8",
4
4
  "description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@emotion/react": "^11.7.1",
48
48
  "@emotion/styled": "^11.6.0",
49
- "@workday/canvas-kit-react": "^9.0.0-alpha.407-next.9+2b1ba94f",
49
+ "@workday/canvas-kit-react": "^9.0.0-alpha.409-next.11+ce4ca6f8",
50
50
  "@workday/canvas-system-icons-web": "^3.0.0",
51
51
  "@workday/design-assets-types": "^0.2.8"
52
52
  },
@@ -56,5 +56,5 @@
56
56
  "react-hook-form": "7.36.1",
57
57
  "yup": "^0.32.11"
58
58
  },
59
- "gitHead": "2b1ba94f0e4bd308665768595fc5fa39535a7763"
59
+ "gitHead": "ce4ca6f8301d805a48b5b3694e873d98635939b5"
60
60
  }