@kaizen/components 1.24.2 → 1.25.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.
Files changed (189) hide show
  1. package/dist/cjs/dts/Brand/Brand.d.ts +11 -0
  2. package/dist/cjs/dts/Brand/index.d.ts +1 -0
  3. package/dist/cjs/dts/Checkbox/Checkbox/Checkbox.d.ts +13 -0
  4. package/dist/cjs/dts/Checkbox/Checkbox/index.d.ts +1 -0
  5. package/dist/cjs/dts/Checkbox/CheckboxField/CheckboxField.d.ts +19 -0
  6. package/dist/cjs/dts/Checkbox/CheckboxField/index.d.ts +1 -0
  7. package/dist/cjs/dts/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +17 -0
  8. package/dist/cjs/dts/Checkbox/CheckboxGroup/index.d.ts +1 -0
  9. package/dist/cjs/dts/Checkbox/index.d.ts +3 -0
  10. package/dist/cjs/dts/Collapsible/Collapsible/Collapsible.d.ts +50 -0
  11. package/dist/cjs/dts/Collapsible/Collapsible/index.d.ts +1 -0
  12. package/dist/cjs/dts/Collapsible/CollapsibleGroup/CollapsibleGroup.d.ts +17 -0
  13. package/dist/cjs/dts/Collapsible/CollapsibleGroup/index.d.ts +1 -0
  14. package/dist/cjs/dts/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.d.ts +11 -0
  15. package/dist/cjs/dts/Collapsible/ExpertAdviceCollapsible/index.d.ts +1 -0
  16. package/dist/cjs/dts/Collapsible/index.d.ts +3 -0
  17. package/dist/cjs/dts/Collapsible/types.d.ts +3 -0
  18. package/dist/cjs/dts/FieldGroup/FieldGroup.d.ts +10 -0
  19. package/dist/cjs/dts/FieldGroup/index.d.ts +1 -0
  20. package/dist/cjs/dts/FieldMessage/FieldMessage.d.ts +15 -0
  21. package/dist/cjs/dts/FieldMessage/index.d.ts +1 -0
  22. package/dist/cjs/dts/FilterSelect/FilterSelect.d.ts +7 -8
  23. package/dist/cjs/dts/FilterSelect/types.d.ts +1 -23
  24. package/dist/cjs/dts/Input/Input/Input.d.ts +17 -0
  25. package/dist/cjs/dts/Input/Input/index.d.ts +1 -0
  26. package/dist/cjs/dts/Input/Input/types.d.ts +2 -0
  27. package/dist/cjs/dts/Input/InputRange/InputRange.d.ts +18 -0
  28. package/dist/cjs/dts/Input/InputRange/index.d.ts +1 -0
  29. package/dist/cjs/dts/{InputSearch → Input/InputSearch}/InputSearch.d.ts +1 -1
  30. package/dist/cjs/dts/Input/index.d.ts +3 -0
  31. package/dist/cjs/dts/Label/Label.d.ts +17 -0
  32. package/dist/cjs/dts/Label/index.d.ts +1 -0
  33. package/dist/cjs/dts/Label/types.d.ts +3 -0
  34. package/dist/cjs/dts/MultiSelect/subcomponents/Popover/Popover.d.ts +4 -4
  35. package/dist/cjs/dts/Radio/Radio/Radio.d.ts +16 -0
  36. package/dist/cjs/dts/Radio/Radio/index.d.ts +1 -0
  37. package/dist/cjs/dts/Radio/RadioField/RadioField.d.ts +18 -0
  38. package/dist/cjs/dts/Radio/RadioField/index.d.ts +1 -0
  39. package/dist/cjs/dts/Radio/RadioGroup/RadioGroup.d.ts +14 -0
  40. package/dist/cjs/dts/Radio/RadioGroup/index.d.ts +1 -0
  41. package/dist/cjs/dts/Radio/index.d.ts +3 -0
  42. package/dist/cjs/dts/SearchField/SearchField.d.ts +17 -0
  43. package/dist/cjs/dts/SearchField/index.d.ts +1 -0
  44. package/dist/cjs/dts/Slider/Slider.d.ts +19 -0
  45. package/dist/cjs/dts/Slider/index.d.ts +1 -0
  46. package/dist/cjs/dts/Text/Text.d.ts +4 -1
  47. package/dist/cjs/dts/__future__/Select/Select.d.ts +80 -0
  48. package/dist/cjs/dts/__future__/Select/_docs/mockData.d.ts +6 -0
  49. package/dist/cjs/dts/__future__/Select/index.d.ts +2 -0
  50. package/dist/{esm/dts/FilterSelect → cjs/dts/__future__/Select}/subcomponents/ListBox/ListBox.d.ts +1 -1
  51. package/dist/{esm/dts/FilterSelect → cjs/dts/__future__/Select}/subcomponents/Option/Option.d.ts +1 -1
  52. package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/Overlay/Overlay.d.ts +1 -1
  53. package/dist/cjs/dts/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.d.ts +13 -0
  54. package/dist/cjs/dts/__future__/Select/subcomponents/SelectPopoverContents/index.d.ts +1 -0
  55. package/dist/cjs/dts/__future__/Select/subcomponents/SelectToggle/SelectToggle.d.ts +33 -0
  56. package/dist/cjs/dts/__future__/Select/subcomponents/SelectToggle/index.d.ts +1 -0
  57. package/dist/cjs/dts/__future__/Select/subcomponents/index.d.ts +9 -0
  58. package/dist/cjs/dts/__future__/Select/types.d.ts +23 -0
  59. package/dist/cjs/dts/__future__/Select/utils/getDisabledKeysFromItems.d.ts +2 -0
  60. package/dist/cjs/dts/__future__/Tag/Tag.d.ts +12 -0
  61. package/dist/cjs/dts/__future__/Tag/index.d.ts +1 -0
  62. package/dist/cjs/dts/__future__/Tag/types.d.ts +2 -0
  63. package/dist/cjs/dts/__future__/index.d.ts +2 -0
  64. package/dist/cjs/dts/index.d.ts +22 -1
  65. package/dist/cjs/future.js +119 -27
  66. package/dist/cjs/future.js.map +1 -1
  67. package/dist/cjs/index.css +44 -13
  68. package/dist/cjs/index.js +1424 -927
  69. package/dist/cjs/index.js.map +1 -1
  70. package/dist/cjs/transformSelectItemToCollectionElement-a76aaebf.js +435 -0
  71. package/dist/cjs/transformSelectItemToCollectionElement-a76aaebf.js.map +1 -0
  72. package/dist/cjs/transformSelectItemToCollectionElement-e5ff0d5a.js +435 -0
  73. package/dist/cjs/transformSelectItemToCollectionElement-e5ff0d5a.js.map +1 -0
  74. package/dist/esm/dts/Brand/Brand.d.ts +11 -0
  75. package/dist/esm/dts/Brand/index.d.ts +1 -0
  76. package/dist/esm/dts/Checkbox/Checkbox/Checkbox.d.ts +13 -0
  77. package/dist/esm/dts/Checkbox/Checkbox/index.d.ts +1 -0
  78. package/dist/esm/dts/Checkbox/CheckboxField/CheckboxField.d.ts +19 -0
  79. package/dist/esm/dts/Checkbox/CheckboxField/index.d.ts +1 -0
  80. package/dist/esm/dts/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +17 -0
  81. package/dist/esm/dts/Checkbox/CheckboxGroup/index.d.ts +1 -0
  82. package/dist/esm/dts/Checkbox/index.d.ts +3 -0
  83. package/dist/esm/dts/Collapsible/Collapsible/Collapsible.d.ts +50 -0
  84. package/dist/esm/dts/Collapsible/Collapsible/index.d.ts +1 -0
  85. package/dist/esm/dts/Collapsible/CollapsibleGroup/CollapsibleGroup.d.ts +17 -0
  86. package/dist/esm/dts/Collapsible/CollapsibleGroup/index.d.ts +1 -0
  87. package/dist/esm/dts/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.d.ts +11 -0
  88. package/dist/esm/dts/Collapsible/ExpertAdviceCollapsible/index.d.ts +1 -0
  89. package/dist/esm/dts/Collapsible/index.d.ts +3 -0
  90. package/dist/esm/dts/Collapsible/types.d.ts +3 -0
  91. package/dist/esm/dts/FieldGroup/FieldGroup.d.ts +10 -0
  92. package/dist/esm/dts/FieldGroup/index.d.ts +1 -0
  93. package/dist/esm/dts/FieldMessage/FieldMessage.d.ts +15 -0
  94. package/dist/esm/dts/FieldMessage/index.d.ts +1 -0
  95. package/dist/esm/dts/FilterSelect/FilterSelect.d.ts +7 -8
  96. package/dist/esm/dts/FilterSelect/types.d.ts +1 -23
  97. package/dist/esm/dts/Input/Input/Input.d.ts +17 -0
  98. package/dist/esm/dts/Input/Input/index.d.ts +1 -0
  99. package/dist/esm/dts/Input/Input/types.d.ts +2 -0
  100. package/dist/esm/dts/Input/InputRange/InputRange.d.ts +18 -0
  101. package/dist/esm/dts/Input/InputRange/index.d.ts +1 -0
  102. package/dist/esm/dts/{InputSearch → Input/InputSearch}/InputSearch.d.ts +1 -1
  103. package/dist/esm/dts/Input/index.d.ts +3 -0
  104. package/dist/esm/dts/Label/Label.d.ts +17 -0
  105. package/dist/esm/dts/Label/index.d.ts +1 -0
  106. package/dist/esm/dts/Label/types.d.ts +3 -0
  107. package/dist/esm/dts/MultiSelect/subcomponents/Popover/Popover.d.ts +4 -4
  108. package/dist/esm/dts/Radio/Radio/Radio.d.ts +16 -0
  109. package/dist/esm/dts/Radio/Radio/index.d.ts +1 -0
  110. package/dist/esm/dts/Radio/RadioField/RadioField.d.ts +18 -0
  111. package/dist/esm/dts/Radio/RadioField/index.d.ts +1 -0
  112. package/dist/esm/dts/Radio/RadioGroup/RadioGroup.d.ts +14 -0
  113. package/dist/esm/dts/Radio/RadioGroup/index.d.ts +1 -0
  114. package/dist/esm/dts/Radio/index.d.ts +3 -0
  115. package/dist/esm/dts/SearchField/SearchField.d.ts +17 -0
  116. package/dist/esm/dts/SearchField/index.d.ts +1 -0
  117. package/dist/esm/dts/Slider/Slider.d.ts +19 -0
  118. package/dist/esm/dts/Slider/index.d.ts +1 -0
  119. package/dist/esm/dts/Text/Text.d.ts +4 -1
  120. package/dist/esm/dts/__future__/Select/Select.d.ts +80 -0
  121. package/dist/esm/dts/__future__/Select/_docs/mockData.d.ts +6 -0
  122. package/dist/esm/dts/__future__/Select/index.d.ts +2 -0
  123. package/dist/{cjs/dts/FilterSelect → esm/dts/__future__/Select}/subcomponents/ListBox/ListBox.d.ts +1 -1
  124. package/dist/{cjs/dts/FilterSelect → esm/dts/__future__/Select}/subcomponents/Option/Option.d.ts +1 -1
  125. package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/Overlay/Overlay.d.ts +1 -1
  126. package/dist/esm/dts/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.d.ts +13 -0
  127. package/dist/esm/dts/__future__/Select/subcomponents/SelectPopoverContents/index.d.ts +1 -0
  128. package/dist/esm/dts/__future__/Select/subcomponents/SelectToggle/SelectToggle.d.ts +33 -0
  129. package/dist/esm/dts/__future__/Select/subcomponents/SelectToggle/index.d.ts +1 -0
  130. package/dist/esm/dts/__future__/Select/subcomponents/index.d.ts +9 -0
  131. package/dist/esm/dts/__future__/Select/types.d.ts +23 -0
  132. package/dist/esm/dts/__future__/Select/utils/getDisabledKeysFromItems.d.ts +2 -0
  133. package/dist/esm/dts/__future__/Tag/Tag.d.ts +12 -0
  134. package/dist/esm/dts/__future__/Tag/index.d.ts +1 -0
  135. package/dist/esm/dts/__future__/Tag/types.d.ts +2 -0
  136. package/dist/esm/dts/__future__/index.d.ts +2 -0
  137. package/dist/esm/dts/index.d.ts +22 -1
  138. package/dist/esm/future.js +95 -5
  139. package/dist/esm/future.js.map +1 -1
  140. package/dist/esm/index.css +46 -15
  141. package/dist/esm/index.js +1045 -578
  142. package/dist/esm/index.js.map +1 -1
  143. package/dist/esm/transformSelectItemToCollectionElement-1ee02b07.js +409 -0
  144. package/dist/esm/transformSelectItemToCollectionElement-1ee02b07.js.map +1 -0
  145. package/dist/esm/transformSelectItemToCollectionElement-2fe1c2dc.js +409 -0
  146. package/dist/esm/transformSelectItemToCollectionElement-2fe1c2dc.js.map +1 -0
  147. package/dist/index.d.ts +599 -21
  148. package/dist/styles.css +1 -1
  149. package/package.json +20 -19
  150. package/dist/cjs/SuccessIcon-cb7b5e33.js +0 -111
  151. package/dist/cjs/SuccessIcon-cb7b5e33.js.map +0 -1
  152. package/dist/cjs/SuccessIcon-d0cca714.js +0 -111
  153. package/dist/cjs/SuccessIcon-d0cca714.js.map +0 -1
  154. package/dist/esm/SuccessIcon-3556331e.js +0 -104
  155. package/dist/esm/SuccessIcon-3556331e.js.map +0 -1
  156. package/dist/esm/SuccessIcon-9460f0cf.js +0 -104
  157. package/dist/esm/SuccessIcon-9460f0cf.js.map +0 -1
  158. /package/dist/cjs/dts/{InputSearch → Input/InputSearch}/index.d.ts +0 -0
  159. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/context/SelectContext.d.ts +0 -0
  160. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/context/index.d.ts +0 -0
  161. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListBox/index.d.ts +0 -0
  162. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListBoxSection/ListBoxSection.d.ts +0 -0
  163. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListBoxSection/index.d.ts +0 -0
  164. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListItem/ListItem.d.ts +0 -0
  165. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListItem/index.d.ts +0 -0
  166. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListItems/ListItems.d.ts +0 -0
  167. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/ListItems/index.d.ts +0 -0
  168. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/Option/index.d.ts +0 -0
  169. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/Overlay/index.d.ts +0 -0
  170. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/SectionDivider/SectionDivider.d.ts +0 -0
  171. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/subcomponents/SectionDivider/index.d.ts +0 -0
  172. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/utils/isSelectOptionGroup.d.ts +0 -0
  173. /package/dist/cjs/dts/{FilterSelect → __future__/Select}/utils/transformSelectItemToCollectionElement.d.ts +0 -0
  174. /package/dist/esm/dts/{InputSearch → Input/InputSearch}/index.d.ts +0 -0
  175. /package/dist/esm/dts/{FilterSelect → __future__/Select}/context/SelectContext.d.ts +0 -0
  176. /package/dist/esm/dts/{FilterSelect → __future__/Select}/context/index.d.ts +0 -0
  177. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListBox/index.d.ts +0 -0
  178. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListBoxSection/ListBoxSection.d.ts +0 -0
  179. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListBoxSection/index.d.ts +0 -0
  180. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListItem/ListItem.d.ts +0 -0
  181. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListItem/index.d.ts +0 -0
  182. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListItems/ListItems.d.ts +0 -0
  183. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/ListItems/index.d.ts +0 -0
  184. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/Option/index.d.ts +0 -0
  185. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/Overlay/index.d.ts +0 -0
  186. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/SectionDivider/SectionDivider.d.ts +0 -0
  187. /package/dist/esm/dts/{FilterSelect → __future__/Select}/subcomponents/SectionDivider/index.d.ts +0 -0
  188. /package/dist/esm/dts/{FilterSelect → __future__/Select}/utils/isSelectOptionGroup.d.ts +0 -0
  189. /package/dist/esm/dts/{FilterSelect → __future__/Select}/utils/transformSelectItemToCollectionElement.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { CheckboxProps, CheckedStatus } from "../Checkbox/Checkbox";
3
+ export type CheckboxFieldProps = Omit<CheckboxProps, "id"> & {
4
+ id?: string;
5
+ labelText: string | React.ReactNode;
6
+ checkedStatus?: CheckedStatus;
7
+ disabled?: boolean;
8
+ reversed?: boolean;
9
+ noBottomMargin?: boolean;
10
+ "data-testid"?: string;
11
+ };
12
+ /**
13
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094661/Checkbox+Field Guidance} |
14
+ * {@link https://cultureamp.design/?path=/docs/components-checkobx-controls-checkbox-field--docs Storybook}
15
+ */
16
+ export declare const CheckboxField: {
17
+ ({ id: propsId, labelText, checkedStatus, disabled, reversed, noBottomMargin, "data-testid": dataTestId, classNameOverride, ...restProps }: CheckboxFieldProps): JSX.Element;
18
+ displayName: string;
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./CheckboxField";
@@ -0,0 +1,17 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
+ export type CheckboxGroupProps = {
4
+ children?: React.ReactNode;
5
+ labelText: string | React.ReactNode;
6
+ labelId?: string;
7
+ noBottomMargin?: boolean;
8
+ reversed?: boolean;
9
+ } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
10
+ /**
11
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094522/Checkbox+Group Guidance} |
12
+ * {@link https://cultureamp.design/storybook/?path=/docs/components-checkbox-controls-checkbox-group--docs Storybook}
13
+ */
14
+ export declare const CheckboxGroup: {
15
+ ({ children, labelText, labelId: propsLabelId, noBottomMargin, reversed, classNameOverride, ...restProps }: CheckboxGroupProps): JSX.Element;
16
+ displayName: string;
17
+ };
@@ -0,0 +1 @@
1
+ export * from "./CheckboxGroup";
@@ -0,0 +1,3 @@
1
+ export * from "./Checkbox";
2
+ export * from "./CheckboxField";
3
+ export * from "./CheckboxGroup";
@@ -0,0 +1,50 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
+ import { Sticky } from "../types";
4
+ type Variant = "default" | "clear";
5
+ export type CollapsibleProps = {
6
+ children: JSX.Element | JSX.Element[] | string;
7
+ title: string;
8
+ renderHeader?: (title: string) => JSX.Element | JSX.Element[];
9
+ open?: boolean;
10
+ group?: boolean;
11
+ separated?: boolean;
12
+ sticky?: Sticky;
13
+ noSectionPadding?: boolean;
14
+ onToggle?: (open: boolean, id: string) => void;
15
+ /**
16
+ * By default, the header will change background colour when open. When the variant
17
+ * is set to 'clear', it will not have a background but a border-bottom will appear
18
+ * to separate the heading from the content.
19
+ */
20
+ variant?: Variant;
21
+ /**
22
+ * Will avoid rendering the content until required (especially important when you
23
+ * have queries inside sections).
24
+ * Removes animation.
25
+ */
26
+ lazyLoad?: boolean;
27
+ /**
28
+ * Disables internal `open` state, allowing it to be controlled in the usage.
29
+ */
30
+ controlled?: boolean;
31
+ } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
32
+ type State = {
33
+ open: boolean;
34
+ id: string;
35
+ };
36
+ /**
37
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094383/Collapsible Guidance} |
38
+ * {@link https://cultureamp.design/?path=/docs/components-collapsible--docs Storybook}
39
+ */
40
+ export declare class Collapsible extends React.Component<CollapsibleProps, State> {
41
+ state: {
42
+ open: boolean;
43
+ id: string;
44
+ };
45
+ render(): JSX.Element;
46
+ private getOpen;
47
+ private handleSectionToggle;
48
+ private handleButtonPress;
49
+ }
50
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Collapsible";
@@ -0,0 +1,17 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ import { CollapsibleProps } from "../Collapsible";
3
+ import { Sticky } from "../types";
4
+ import { OverrideClassName } from "../../types/OverrideClassName";
5
+ export type CollapsibleGroupProps = {
6
+ children: Array<React.ReactElement<CollapsibleProps>>;
7
+ separated?: boolean;
8
+ sticky?: Sticky;
9
+ noSectionPadding?: boolean;
10
+ lazyLoad?: boolean;
11
+ onToggle?: (open: boolean, id: string) => void;
12
+ } & Omit<OverrideClassName<HTMLAttributes<HTMLDivElement>>, "children">;
13
+ /**
14
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094383/Collapsible Guidance} |
15
+ * {@link https://cultureamp.design/?path=/docs/components-collapsible-collapsible-group--docs Storybook}
16
+ */
17
+ export declare const CollapsibleGroup: ({ children, separated, sticky, noSectionPadding, lazyLoad, onToggle, classNameOverride, ...props }: CollapsibleGroupProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./CollapsibleGroup";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CollapsibleProps } from "../Collapsible";
3
+ export type ExpertAdviceCollapsibleProps = Omit<CollapsibleProps, "renderHeader" | "variant" | "group" | "separated">;
4
+ /**
5
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094383/Collapsible Guidance} |
6
+ * {@link https://cultureamp.design/?path=/docs/components-collapsible--docs Storybook}
7
+ */
8
+ export declare const ExpertAdviceCollapsible: {
9
+ (props: ExpertAdviceCollapsibleProps): JSX.Element;
10
+ displayName: string;
11
+ };
@@ -0,0 +1 @@
1
+ export * from "./ExpertAdviceCollapsible";
@@ -0,0 +1,3 @@
1
+ export * from "./Collapsible";
2
+ export * from "./CollapsibleGroup";
3
+ export * from "./ExpertAdviceCollapsible";
@@ -0,0 +1,3 @@
1
+ export type Sticky = {
2
+ top: string;
3
+ };
@@ -0,0 +1,10 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../types/OverrideClassName";
3
+ export type FieldGroupProps = {
4
+ children?: React.ReactNode;
5
+ inline?: boolean;
6
+ } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
7
+ export declare const FieldGroup: {
8
+ ({ children, inline, classNameOverride, ...restProps }: FieldGroupProps): JSX.Element;
9
+ displayName: string;
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./FieldGroup";
@@ -0,0 +1,15 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../types/OverrideClassName";
3
+ export type FieldMessageStatus = "default" | "success" | "error" | "caution";
4
+ export type FieldMessageProps = {
5
+ message?: React.ReactNode;
6
+ /** @default "default" */
7
+ status?: FieldMessageStatus;
8
+ /** @default "bottom" */
9
+ position?: "top" | "bottom";
10
+ reversed?: boolean;
11
+ } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
12
+ export declare const FieldMessage: {
13
+ ({ message, status, position, reversed, classNameOverride, ...restProps }: FieldMessageProps): JSX.Element;
14
+ displayName: string;
15
+ };
@@ -0,0 +1 @@
1
+ export * from "./FieldMessage";
@@ -1,24 +1,23 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { SelectProps as AriaSelectProps } from "@react-stately/select";
3
3
  import { FilterButtonProps } from "../FilterButton";
4
+ import { SelectPopoverContentsProps } from "../__future__/Select/subcomponents";
4
5
  import { OverrideClassName } from "../types/OverrideClassName";
5
- import { SelectItem, SelectItemNode, SelectOption } from "./types";
6
+ import { SelectItem, SelectOption } from "./types";
6
7
  type OmittedAriaSelectProps = "label" | "children" | "isOpen" | "onOpenChange" | "defaultOpen" | "items";
7
8
  export type FilterSelectProps<Option extends SelectOption = SelectOption> = {
8
9
  isOpen: boolean;
9
10
  setIsOpen: (isOpen: boolean) => void;
10
11
  renderTrigger: (triggerButtonProps: FilterButtonProps) => JSX.Element;
11
12
  label: string;
12
- children?: (args: {
13
- items: Array<SelectItemNode<Option>>;
14
- }) => React.ReactNode;
13
+ children?: SelectPopoverContentsProps<Option>["children"];
15
14
  items: Array<SelectItem<Option>>;
16
15
  } & OverrideClassName<Omit<AriaSelectProps<Option>, OmittedAriaSelectProps>>;
17
16
  export declare const FilterSelect: {
18
17
  <Option extends SelectOption = SelectOption>({ isOpen, setIsOpen, renderTrigger, label, children, items, classNameOverride, selectedKey, ...restProps }: FilterSelectProps<Option>): JSX.Element;
19
18
  displayName: string;
20
19
  Section: {
21
- <Option_1 extends SelectOption = SelectOption>({ section, }: import("./subcomponents/ListBoxSection").ListBoxSectionProps<Option_1>): JSX.Element;
20
+ <Option_1 extends SelectOption = SelectOption>({ section, }: import("../__future__/Select/subcomponents").ListBoxSectionProps<Option_1>): JSX.Element;
22
21
  displayName: string;
23
22
  };
24
23
  SectionDivider: {
@@ -26,11 +25,11 @@ export declare const FilterSelect: {
26
25
  displayName: string;
27
26
  };
28
27
  Option: {
29
- <Option_2 extends SelectOption = SelectOption>({ item, classNameOverride, ...props }: import("./subcomponents/Option").OptionProps<Option_2>): JSX.Element;
28
+ <Option_2 extends SelectOption = SelectOption>({ item, classNameOverride, ...props }: import("../__future__/Select/subcomponents").OptionProps<Option_2>): JSX.Element;
30
29
  displayName: string;
31
30
  };
32
31
  ItemDefaultRender: {
33
- <Option_3 extends SelectOption = SelectOption>({ item, }: import("./subcomponents/ListItem").ListItemProps<Option_3>): JSX.Element;
32
+ <Option_3 extends SelectOption = SelectOption>({ item, }: import("../__future__/Select/subcomponents").ListItemProps<Option_3>): JSX.Element;
34
33
  displayName: string;
35
34
  };
36
35
  };
@@ -1,23 +1 @@
1
- /// <reference types="react" />
2
- import { Node } from "@react-types/shared";
3
- export type SelectOption = {
4
- label: string;
5
- value: React.Key;
6
- disabled?: boolean;
7
- options?: never;
8
- };
9
- export type SelectOptionGroup<Option extends SelectOption> = {
10
- label: string;
11
- options: Iterable<Option>;
12
- };
13
- export type SelectItem<Option extends SelectOption = SelectOption> = Option | SelectOptionGroup<Option>;
14
- export type SelectOptionNode<Option extends SelectOption = SelectOption> = Node<Option> & {
15
- type: "item";
16
- hasChildNodes: false;
17
- };
18
- export type SelectOptionGroupNode<Option extends SelectOption = SelectOption> = Omit<Node<SelectOptionGroup<Option>>, "childNodes"> & {
19
- type: "section";
20
- hasChildNodes: true;
21
- childNodes: Array<SelectOptionNode<Option>>;
22
- };
23
- export type SelectItemNode<Option extends SelectOption = SelectOption> = SelectOptionNode<Option> | SelectOptionGroupNode<Option>;
1
+ export * from "../__future__/Select/types";
@@ -0,0 +1,17 @@
1
+ import React, { InputHTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
+ import { InputStatus, InputTypes } from "./types";
4
+ export type InputType = (typeof InputTypes)[number];
5
+ export type InputStatusType = (typeof InputStatus)[number];
6
+ export type InputProps = {
7
+ inputRef?: React.RefObject<HTMLInputElement>;
8
+ status?: InputStatusType;
9
+ startIconAdornment?: React.ReactNode;
10
+ endIconAdornment?: React.ReactNode;
11
+ reversed?: boolean;
12
+ type?: InputType;
13
+ } & OverrideClassName<InputHTMLAttributes<HTMLInputElement>>;
14
+ export declare const Input: {
15
+ ({ inputRef, status, startIconAdornment, endIconAdornment, reversed, type, value, defaultValue, classNameOverride, disabled, ...restProps }: InputProps): JSX.Element;
16
+ displayName: string;
17
+ };
@@ -0,0 +1 @@
1
+ export * from "./Input";
@@ -0,0 +1,2 @@
1
+ export declare const InputStatus: readonly ["default", "success", "error", "caution"];
2
+ export declare const InputTypes: readonly ["text", "email", "password"];
@@ -0,0 +1,18 @@
1
+ import { InputHTMLAttributes, ReactNode } from "react";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
+ export type InputRangeProps = {
4
+ id: string;
5
+ defaultValue?: number;
6
+ value?: number;
7
+ minLabel: ReactNode;
8
+ maxLabel: ReactNode;
9
+ min?: number;
10
+ max?: number;
11
+ } & OverrideClassName<InputHTMLAttributes<HTMLInputElement>>;
12
+ /**
13
+ * {@link https://cultureamp.design/?path=/docs/components-input-range--docs Storybook}
14
+ */
15
+ export declare const InputRange: {
16
+ ({ id, defaultValue, value, minLabel, maxLabel, min, max, onChange, "aria-describedby": ariaDescribedby, classNameOverride, disabled, readOnly, ...restProps }: InputRangeProps): JSX.Element;
17
+ displayName: string;
18
+ };
@@ -0,0 +1 @@
1
+ export * from "./InputRange";
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from "react";
2
- import { OverrideClassName } from "../types/OverrideClassName";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
3
  export type InputSearchProps = {
4
4
  id: string;
5
5
  reversed?: boolean;
@@ -0,0 +1,3 @@
1
+ export * from "./Input";
2
+ export * from "./InputRange";
3
+ export * from "./InputSearch";
@@ -0,0 +1,17 @@
1
+ import React, { LabelHTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../types/OverrideClassName";
3
+ type LabelType = "text" | "checkbox" | "toggle" | "radio";
4
+ export type LabelProps = {
5
+ children?: React.ReactNode;
6
+ labelText?: string | React.ReactNode;
7
+ labelType?: LabelType;
8
+ labelPosition?: "start" | "end";
9
+ reversed?: boolean;
10
+ variant?: "default" | "prominent";
11
+ disabled?: boolean;
12
+ } & OverrideClassName<LabelHTMLAttributes<HTMLLabelElement>>;
13
+ export declare const Label: {
14
+ ({ children, labelText, labelType, labelPosition, reversed, variant, disabled, classNameOverride, ...restProps }: LabelProps): JSX.Element;
15
+ displayName: string;
16
+ };
17
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Label";
@@ -0,0 +1,3 @@
1
+ export declare const InlineLabelTypes: readonly ["checkbox", "radio", "toggle"];
2
+ export declare const BlockLabelTypes: readonly ["text"];
3
+ export declare const LabelTypes: readonly ["checkbox", "radio", "toggle", "text"];
@@ -1,10 +1,10 @@
1
1
  import React, { HTMLAttributes } from "react";
2
- import { UseFloatingReturn, UseFloatingOptions } from "@floating-ui/react-dom";
2
+ import { ReferenceType, UseFloatingReturn, UseFloatingOptions } from "@floating-ui/react-dom";
3
3
  import { ReactFocusOnProps } from "react-focus-on/dist/es5/types";
4
4
  import { OverrideClassName } from "../../../types/OverrideClassName";
5
- export type PopoverProps = {
5
+ export type PopoverProps<RT extends ReferenceType = ReferenceType> = {
6
6
  children: React.ReactNode;
7
- refs: UseFloatingReturn["refs"];
7
+ refs: UseFloatingReturn<RT>["refs"];
8
8
  /**
9
9
  * passes in additional options / override for https://floating-ui.com/docs/tooltip#usefloating-hook
10
10
  */
@@ -13,6 +13,6 @@ export type PopoverProps = {
13
13
  portalContainer?: Element | DocumentFragment;
14
14
  } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
15
15
  export declare const Popover: {
16
- ({ children, refs, floatingOptions, focusOnProps, portalContainer, classNameOverride, ...restProps }: PopoverProps): JSX.Element;
16
+ <RT extends ReferenceType>({ children, refs, floatingOptions, focusOnProps, portalContainer, classNameOverride, ...restProps }: PopoverProps<RT>): JSX.Element;
17
17
  displayName: string;
18
18
  };
@@ -0,0 +1,16 @@
1
+ import { InputHTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
+ export type RadioProps = OverrideClassName<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "checked">> & {
4
+ /**
5
+ * This needs to be enforced to ensure the Radio always gets an id to match a label when composed.
6
+ */
7
+ id: string;
8
+ name: string;
9
+ value: string;
10
+ selectedStatus?: boolean;
11
+ reversed?: boolean;
12
+ };
13
+ export declare const Radio: {
14
+ ({ name, value, selectedStatus, reversed, onChange, classNameOverride, ...restProps }: RadioProps): JSX.Element;
15
+ displayName: string;
16
+ };
@@ -0,0 +1 @@
1
+ export * from "./Radio";
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { RadioProps } from "../Radio/Radio";
3
+ export type RadioFieldProps = Omit<RadioProps, "id"> & {
4
+ id?: string;
5
+ labelText: string | React.ReactNode;
6
+ selectedStatus?: boolean;
7
+ disabled?: boolean;
8
+ reversed?: boolean;
9
+ "data-testid"?: string;
10
+ };
11
+ /**
12
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082092822/Radio+Field Guidance} |
13
+ * {@link https://cultureamp.design/?path=/docs/components-radio-controls-radio-field--docs Storybook}
14
+ */
15
+ export declare const RadioField: {
16
+ ({ id: propsId, labelText, selectedStatus, disabled, reversed, classNameOverride, "data-testid": dataTestId, ...restProps }: RadioFieldProps): JSX.Element;
17
+ displayName: string;
18
+ };
@@ -0,0 +1 @@
1
+ export * from "./RadioField";
@@ -0,0 +1,14 @@
1
+ import React, { HTMLAttributes } from "react";
2
+ import { OverrideClassName } from "../../types/OverrideClassName";
3
+ export type RadioGroupProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & {
4
+ children?: React.ReactNode;
5
+ labelText: string | React.ReactNode;
6
+ labelId?: string;
7
+ noBottomMargin?: boolean;
8
+ reversed?: boolean;
9
+ "data-testId"?: string;
10
+ };
11
+ export declare const RadioGroup: {
12
+ ({ children, labelId: propsLabelId, labelText, noBottomMargin, reversed, classNameOverride, "data-testId": dataTestId, ...restProps }: RadioGroupProps): JSX.Element;
13
+ displayName: string;
14
+ };
@@ -0,0 +1 @@
1
+ export * from "./RadioGroup";
@@ -0,0 +1,3 @@
1
+ export * from "./Radio";
2
+ export * from "./RadioField";
3
+ export * from "./RadioGroup";
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { InputSearchProps } from "../Input/InputSearch";
3
+ export type SearchFieldProps = Omit<InputSearchProps, "id"> & {
4
+ id?: string;
5
+ labelText: string;
6
+ disabled?: boolean;
7
+ reversed?: boolean;
8
+ secondary?: boolean;
9
+ };
10
+ /**
11
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896613/Search+Field Guidance} |
12
+ * {@link https://cultureamp.design/?path=/docs/components-search-field--docs Storybook}
13
+ */
14
+ export declare const SearchField: {
15
+ ({ id: propsId, labelText, disabled, reversed, secondary, classNameOverride, ...restProps }: SearchFieldProps): JSX.Element;
16
+ displayName: string;
17
+ };
@@ -0,0 +1 @@
1
+ export * from "./SearchField";
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from "react";
2
+ import { InputRangeProps } from "../Input/InputRange";
3
+ export type SliderFieldProps = {
4
+ id?: string;
5
+ labelText: ReactNode;
6
+ description?: ReactNode;
7
+ labelPosition?: "inline" | "block";
8
+ variant?: "default" | "prominent";
9
+ disabled?: boolean;
10
+ readOnlyMessage?: ReactNode;
11
+ } & Omit<InputRangeProps, "id">;
12
+ /**
13
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896335/Slider Guidance} |
14
+ * {@link https://cultureamp.design/?path=/docs/components-slider--docs Storybook}
15
+ */
16
+ export declare const Slider: {
17
+ ({ id: propsId, labelText, description, labelPosition, variant, disabled, readOnlyMessage, ...restProps }: SliderFieldProps): JSX.Element;
18
+ displayName: string;
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./Slider";
@@ -20,4 +20,7 @@ export interface TextProps extends OverrideClassName<HTMLAttributes<HTMLElement>
20
20
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3074885298/Typography#Paragraph Guidance}
21
21
  * {@link https://cultureamp.design/?path=/docs/components-typography-text--body Storybook}
22
22
  */
23
- export declare const Text: ({ children, tag, variant, color, classNameOverride, ...restProps }: TextProps) => JSX.Element;
23
+ export declare const Text: {
24
+ ({ children, tag, variant, color, classNameOverride, ...restProps }: TextProps): JSX.Element;
25
+ displayName: string;
26
+ };
@@ -0,0 +1,80 @@
1
+ import React from "react";
2
+ import { UseFloatingReturn } from "@floating-ui/react-dom";
3
+ import { SelectProps as AriaSelectProps } from "@react-stately/select";
4
+ import { OverrideClassName } from "../../types/OverrideClassName";
5
+ import { SelectPopoverContentsProps, SelectToggleProps } from "./subcomponents";
6
+ import { SelectItem, SelectOption } from "./types";
7
+ type OmittedAriaSelectProps = "children" | "items";
8
+ export type SelectProps<Option extends SelectOption = SelectOption> = {
9
+ /**
10
+ * Item objects in the collection.
11
+ */
12
+ items: Array<SelectItem<Option>>;
13
+ id?: string;
14
+ trigger?: (selectToggleProps: SelectToggleProps & {
15
+ ref: UseFloatingReturn<HTMLButtonElement>["refs"]["setReference"];
16
+ }, ref: UseFloatingReturn<HTMLButtonElement>["refs"]["setReference"]) => JSX.Element;
17
+ children?: SelectPopoverContentsProps<Option>["children"];
18
+ /**
19
+ * Updates the styling of the validation FieldMessage.
20
+ */
21
+ status?: "error" | "caution";
22
+ /**
23
+ * A descriptive message for the 'status' states.
24
+ */
25
+ validationMessage?: React.ReactNode | undefined;
26
+ /**
27
+ * Use the `reversed` styles.
28
+ */
29
+ isReversed?: boolean;
30
+ /**
31
+ * Use the `fullWidth` styles.
32
+ */
33
+ isFullWidth?: boolean;
34
+ /**
35
+ * @deprecated: Either define `disabled` in your `Option` (in `items`), or use `disabledKeys`
36
+ */
37
+ disabledValues?: React.Key[];
38
+ } & OverrideClassName<Omit<AriaSelectProps<Option>, OmittedAriaSelectProps>>;
39
+ /**
40
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896474/Select Guidance} |
41
+ * {@link https://cultureamp.design/?path=/docs/components-select--docs Storybook}
42
+ */
43
+ export declare const Select: {
44
+ <Option extends SelectOption = SelectOption>({ label, items, id: propsId, trigger, children, status, validationMessage, isReversed, isFullWidth, disabledValues, classNameOverride, selectedKey, description, placeholder, isDisabled, ...restProps }: SelectProps<Option>): JSX.Element;
45
+ displayName: string;
46
+ Section: {
47
+ <Option_1 extends SelectOption = SelectOption>({ section, }: import("./subcomponents").ListBoxSectionProps<Option_1>): JSX.Element;
48
+ displayName: string;
49
+ };
50
+ SectionDivider: {
51
+ (): JSX.Element;
52
+ displayName: string;
53
+ };
54
+ Option: {
55
+ <Option_2 extends SelectOption = SelectOption>({ item, classNameOverride, ...props }: import("./subcomponents").OptionProps<Option_2>): JSX.Element;
56
+ displayName: string;
57
+ };
58
+ ItemDefaultRender: {
59
+ <Option_3 extends SelectOption = SelectOption>({ item, }: import("./subcomponents").ListItemProps<Option_3>): JSX.Element;
60
+ displayName: string;
61
+ };
62
+ TriggerButton: React.ForwardRefExoticComponent<{
63
+ label: React.ReactNode;
64
+ labelProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
65
+ value: React.ReactNode;
66
+ valueProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
67
+ isOpen?: boolean | undefined;
68
+ placeholder?: string | undefined;
69
+ status?: "error" | "caution" | undefined;
70
+ isDisabled?: boolean | undefined;
71
+ isReversed?: boolean | undefined;
72
+ } & Omit<React.HTMLAttributes<HTMLButtonElement>, "className"> & {
73
+ classNameOverride?: string | undefined;
74
+ } & React.RefAttributes<HTMLButtonElement>>;
75
+ ListBox: {
76
+ <Option_4 extends SelectOption>({ children, menuProps, classNameOverride, ...restProps }: import("./subcomponents").SingleListBoxProps<Option_4>): JSX.Element;
77
+ displayName: string;
78
+ };
79
+ };
80
+ export {};
@@ -0,0 +1,6 @@
1
+ import { SelectItem } from "../types";
2
+ export declare const singleMockItems: SelectItem[];
3
+ export declare const groupedMockItems: SelectItem[];
4
+ export declare const mixedMockItemsDisabled: SelectItem[];
5
+ export declare const mixedMockItemsUngroupedFirst: SelectItem[];
6
+ export declare const mixedMockItemsUnordered: SelectItem[];
@@ -0,0 +1,2 @@
1
+ export * from "./Select";
2
+ export * from "./types";
@@ -1,6 +1,6 @@
1
1
  import React, { HTMLAttributes } from "react";
2
2
  import { AriaListBoxOptions } from "@react-aria/listbox";
3
- import { OverrideClassName } from "../../../types/OverrideClassName";
3
+ import { OverrideClassName } from "../../../../types/OverrideClassName";
4
4
  import { SelectOption, SelectItem } from "../../types";
5
5
  export type SingleListBoxProps<Option extends SelectOption> = OverrideClassName<HTMLAttributes<HTMLUListElement>> & {
6
6
  children: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from "react";
2
- import { OverrideClassName } from "../../../types/OverrideClassName";
2
+ import { OverrideClassName } from "../../../../types/OverrideClassName";
3
3
  import { SelectOption, SelectOptionNode } from "../../types";
4
4
  export type OptionProps<Option extends SelectOption = SelectOption> = {
5
5
  item: SelectOptionNode<Option>;
@@ -1,5 +1,5 @@
1
1
  import React, { HTMLAttributes } from "react";
2
- import { OverrideClassName } from "../../../types/OverrideClassName";
2
+ import { OverrideClassName } from "../../../../types/OverrideClassName";
3
3
  import { SelectOption } from "../../types";
4
4
  export type OverlayProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> & {
5
5
  children: React.ReactNode;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { AriaListBoxOptions } from "@react-aria/listbox";
3
+ import { SelectOption, SelectItem, SelectItemNode } from "../../types";
4
+ export type SelectPopoverContentsProps<Option extends SelectOption> = {
5
+ children?: (args: {
6
+ items: Array<SelectItemNode<Option>>;
7
+ }) => React.ReactNode;
8
+ menuProps: AriaListBoxOptions<SelectItem<Option>>;
9
+ };
10
+ export declare const SelectPopoverContents: {
11
+ <Option extends SelectOption>({ children, menuProps, }: SelectPopoverContentsProps<Option>): JSX.Element;
12
+ displayName: string;
13
+ };