@veeqo/ui 13.4.4 → 13.5.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 (48) hide show
  1. package/dist/components/Container/Container.cjs +37 -0
  2. package/dist/components/Container/Container.cjs.map +1 -0
  3. package/dist/components/Container/Container.d.ts +20 -0
  4. package/dist/components/Container/Container.js +30 -0
  5. package/dist/components/Container/Container.js.map +1 -0
  6. package/dist/components/Container/Container.module.scss.cjs +9 -0
  7. package/dist/components/Container/Container.module.scss.cjs.map +1 -0
  8. package/dist/components/Container/Container.module.scss.js +7 -0
  9. package/dist/components/Container/Container.module.scss.js.map +1 -0
  10. package/dist/components/Container/index.d.ts +1 -0
  11. package/dist/components/Divider/Divider.cjs +18 -0
  12. package/dist/components/Divider/Divider.cjs.map +1 -0
  13. package/dist/components/Divider/Divider.d.ts +4 -0
  14. package/dist/components/Divider/Divider.js +12 -0
  15. package/dist/components/Divider/Divider.js.map +1 -0
  16. package/dist/components/Divider/Divider.module.scss.cjs +9 -0
  17. package/dist/components/Divider/Divider.module.scss.cjs.map +1 -0
  18. package/dist/components/Divider/Divider.module.scss.js +7 -0
  19. package/dist/components/Divider/Divider.module.scss.js.map +1 -0
  20. package/dist/components/Divider/index.d.ts +1 -0
  21. package/dist/components/SectionLayout/SectionLayout.cjs +25 -0
  22. package/dist/components/SectionLayout/SectionLayout.cjs.map +1 -0
  23. package/dist/components/SectionLayout/SectionLayout.d.ts +9 -0
  24. package/dist/components/SectionLayout/SectionLayout.js +19 -0
  25. package/dist/components/SectionLayout/SectionLayout.js.map +1 -0
  26. package/dist/components/SectionLayout/SectionLayout.module.scss.cjs +9 -0
  27. package/dist/components/SectionLayout/SectionLayout.module.scss.cjs.map +1 -0
  28. package/dist/components/SectionLayout/SectionLayout.module.scss.js +7 -0
  29. package/dist/components/SectionLayout/SectionLayout.module.scss.js.map +1 -0
  30. package/dist/components/SectionLayout/index.d.ts +1 -0
  31. package/dist/components/SelectDropdown/SelectDropdown.cjs +2 -1
  32. package/dist/components/SelectDropdown/SelectDropdown.cjs.map +1 -1
  33. package/dist/components/SelectDropdown/SelectDropdown.d.ts +1 -1
  34. package/dist/components/SelectDropdown/SelectDropdown.js +2 -1
  35. package/dist/components/SelectDropdown/SelectDropdown.js.map +1 -1
  36. package/dist/components/SelectDropdown/SelectDropdown.module.scss.cjs +2 -2
  37. package/dist/components/SelectDropdown/SelectDropdown.module.scss.cjs.map +1 -1
  38. package/dist/components/SelectDropdown/SelectDropdown.module.scss.js +2 -2
  39. package/dist/components/SelectDropdown/SelectDropdown.module.scss.js.map +1 -1
  40. package/dist/components/SelectDropdown/types.d.ts +1 -0
  41. package/dist/components/_internal/Placeholder.d.ts +13 -0
  42. package/dist/components/index.d.ts +3 -0
  43. package/dist/index.cjs +6 -0
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.js +3 -0
  46. package/dist/index.js.map +1 -1
  47. package/dist/testUtils/itSupportsCommonProps.d.ts +6 -0
  48. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var buildClassnames = require('../../utils/buildClassnames.cjs');
5
+ require('uid/secure');
6
+ var Container_module = require('./Container.module.scss.cjs');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+
12
+ const sizeClasses = {
13
+ small: Container_module.small,
14
+ medium: Container_module.medium,
15
+ large: Container_module.large,
16
+ };
17
+ /**
18
+ * Warning: This component uses container queries, and they don't work well when used on an element that is a direct child
19
+ * of a flexbox or grid container. This is because the element doesn't have a defined width, so the container
20
+ * query can't be resolved correctly.
21
+ *
22
+ * If you need to use multiple Container components stacked vertically, consider wrapping them in a div and using
23
+ * margins to apply spacing between them if necessary.
24
+ */
25
+ function Container({ size, children, className, ...otherProps }) {
26
+ const classNames = buildClassnames.buildClassnames([
27
+ className,
28
+ Container_module.container,
29
+ size && Container_module.centered,
30
+ size && sizeClasses[size],
31
+ ]);
32
+ return (React__default.default.createElement("div", { className: classNames, ...otherProps }, children));
33
+ }
34
+
35
+ exports.Container = Container;
36
+ exports.sizeClasses = sizeClasses;
37
+ //# sourceMappingURL=Container.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.cjs","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport styles from './Container.module.scss';\n\nexport const sizeClasses = {\n small: styles.small,\n medium: styles.medium,\n large: styles.large,\n};\n\nexport type ContainerSize = keyof typeof sizeClasses;\n\nexport type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {\n size?: ContainerSize;\n children: React.ReactNode;\n};\n\n/**\n * Warning: This component uses container queries, and they don't work well when used on an element that is a direct child\n * of a flexbox or grid container. This is because the element doesn't have a defined width, so the container\n * query can't be resolved correctly.\n *\n * If you need to use multiple Container components stacked vertically, consider wrapping them in a div and using\n * margins to apply spacing between them if necessary.\n */\nexport function Container({ size, children, className, ...otherProps }: ContainerProps) {\n const classNames = buildClassnames([\n className,\n styles.container,\n size && styles.centered,\n size && sizeClasses[size],\n ]);\n\n return (\n <div className={classNames} {...otherProps}>\n {children}\n </div>\n );\n}\n"],"names":["styles","buildClassnames","React"],"mappings":";;;;;;;;;;;AAIa,MAAA,WAAW,GAAG;IACzB,KAAK,EAAEA,gBAAM,CAAC,KAAK;IACnB,MAAM,EAAEA,gBAAM,CAAC,MAAM;IACrB,KAAK,EAAEA,gBAAM,CAAC,KAAK;;AAUrB;;;;;;;AAOG;AACa,SAAA,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,UAAU,EAAkB,EAAA;IACpF,MAAM,UAAU,GAAGC,+BAAe,CAAC;QACjC,SAAS;AACT,QAAAD,gBAAM,CAAC,SAAS;QAChB,IAAI,IAAIA,gBAAM,CAAC,QAAQ;AACvB,QAAA,IAAI,IAAI,WAAW,CAAC,IAAI,CAAC;AAC1B,KAAA,CAAC;IAEF,QACEE,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,UAAU,EAAM,GAAA,UAAU,EACvC,EAAA,QAAQ,CACL;AAEV;;;;;"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export declare const sizeClasses: {
3
+ small: any;
4
+ medium: any;
5
+ large: any;
6
+ };
7
+ export type ContainerSize = keyof typeof sizeClasses;
8
+ export type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {
9
+ size?: ContainerSize;
10
+ children: React.ReactNode;
11
+ };
12
+ /**
13
+ * Warning: This component uses container queries, and they don't work well when used on an element that is a direct child
14
+ * of a flexbox or grid container. This is because the element doesn't have a defined width, so the container
15
+ * query can't be resolved correctly.
16
+ *
17
+ * If you need to use multiple Container components stacked vertically, consider wrapping them in a div and using
18
+ * margins to apply spacing between them if necessary.
19
+ */
20
+ export declare function Container({ size, children, className, ...otherProps }: ContainerProps): React.JSX.Element;
@@ -0,0 +1,30 @@
1
+ import React__default from 'react';
2
+ import { buildClassnames } from '../../utils/buildClassnames.js';
3
+ import 'uid/secure';
4
+ import styles from './Container.module.scss.js';
5
+
6
+ const sizeClasses = {
7
+ small: styles.small,
8
+ medium: styles.medium,
9
+ large: styles.large,
10
+ };
11
+ /**
12
+ * Warning: This component uses container queries, and they don't work well when used on an element that is a direct child
13
+ * of a flexbox or grid container. This is because the element doesn't have a defined width, so the container
14
+ * query can't be resolved correctly.
15
+ *
16
+ * If you need to use multiple Container components stacked vertically, consider wrapping them in a div and using
17
+ * margins to apply spacing between them if necessary.
18
+ */
19
+ function Container({ size, children, className, ...otherProps }) {
20
+ const classNames = buildClassnames([
21
+ className,
22
+ styles.container,
23
+ size && styles.centered,
24
+ size && sizeClasses[size],
25
+ ]);
26
+ return (React__default.createElement("div", { className: classNames, ...otherProps }, children));
27
+ }
28
+
29
+ export { Container, sizeClasses };
30
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.js","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport styles from './Container.module.scss';\n\nexport const sizeClasses = {\n small: styles.small,\n medium: styles.medium,\n large: styles.large,\n};\n\nexport type ContainerSize = keyof typeof sizeClasses;\n\nexport type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {\n size?: ContainerSize;\n children: React.ReactNode;\n};\n\n/**\n * Warning: This component uses container queries, and they don't work well when used on an element that is a direct child\n * of a flexbox or grid container. This is because the element doesn't have a defined width, so the container\n * query can't be resolved correctly.\n *\n * If you need to use multiple Container components stacked vertically, consider wrapping them in a div and using\n * margins to apply spacing between them if necessary.\n */\nexport function Container({ size, children, className, ...otherProps }: ContainerProps) {\n const classNames = buildClassnames([\n className,\n styles.container,\n size && styles.centered,\n size && sizeClasses[size],\n ]);\n\n return (\n <div className={classNames} {...otherProps}>\n {children}\n </div>\n );\n}\n"],"names":["React"],"mappings":";;;;;AAIa,MAAA,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC,KAAK;;AAUrB;;;;;;;AAOG;AACa,SAAA,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,UAAU,EAAkB,EAAA;IACpF,MAAM,UAAU,GAAG,eAAe,CAAC;QACjC,SAAS;AACT,QAAA,MAAM,CAAC,SAAS;QAChB,IAAI,IAAI,MAAM,CAAC,QAAQ;AACvB,QAAA,IAAI,IAAI,WAAW,CAAC,IAAI,CAAC;AAC1B,KAAA,CAAC;IAEF,QACEA,cAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,UAAU,EAAM,GAAA,UAAU,EACvC,EAAA,QAAQ,CACL;AAEV;;;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
4
+
5
+ ___$insertStyle("._container_tqie6_1 {\n container-type: inline-size;\n}\n\n._centered_tqie6_5 {\n margin-inline: auto;\n padding-inline: var(--sizes-6);\n}\n\n._small_tqie6_10 {\n max-width: 540px;\n}\n\n._medium_tqie6_14 {\n max-width: 720px;\n}\n\n._large_tqie6_18 {\n max-width: 960px;\n}");
6
+ var styles = {"container":"_container_tqie6_1","centered":"_centered_tqie6_5","small":"_small_tqie6_10","medium":"_medium_tqie6_14","large":"_large_tqie6_18"};
7
+
8
+ module.exports = styles;
9
+ //# sourceMappingURL=Container.module.scss.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.module.scss.cjs","sources":["../../../src/components/Container/Container.module.scss"],"sourcesContent":[".container {\n container-type: inline-size;\n}\n\n.centered {\n margin-inline: auto;\n padding-inline: var(--sizes-6);\n}\n\n.small {\n max-width: 540px;\n}\n\n.medium {\n max-width: 720px;\n}\n\n.large {\n max-width: 960px;\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,2RAAA;;;;;"}
@@ -0,0 +1,7 @@
1
+ import insertStyle from '../../_virtual/____insertStyle.js';
2
+
3
+ insertStyle("._container_tqie6_1 {\n container-type: inline-size;\n}\n\n._centered_tqie6_5 {\n margin-inline: auto;\n padding-inline: var(--sizes-6);\n}\n\n._small_tqie6_10 {\n max-width: 540px;\n}\n\n._medium_tqie6_14 {\n max-width: 720px;\n}\n\n._large_tqie6_18 {\n max-width: 960px;\n}");
4
+ var styles = {"container":"_container_tqie6_1","centered":"_centered_tqie6_5","small":"_small_tqie6_10","medium":"_medium_tqie6_14","large":"_large_tqie6_18"};
5
+
6
+ export { styles as default };
7
+ //# sourceMappingURL=Container.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.module.scss.js","sources":["../../../src/components/Container/Container.module.scss"],"sourcesContent":[".container {\n container-type: inline-size;\n}\n\n.centered {\n margin-inline: auto;\n padding-inline: var(--sizes-6);\n}\n\n.small {\n max-width: 540px;\n}\n\n.medium {\n max-width: 720px;\n}\n\n.large {\n max-width: 960px;\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,2RAAA;;;;;"}
@@ -0,0 +1 @@
1
+ export { Container } from './Container';
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var buildClassnames = require('../../utils/buildClassnames.cjs');
5
+ require('uid/secure');
6
+ var Divider_module = require('./Divider.module.scss.cjs');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+
12
+ function Divider({ className, ...otherProps }) {
13
+ const classNames = buildClassnames.buildClassnames([Divider_module.divider, className]);
14
+ return React__default.default.createElement("div", { className: classNames, ...otherProps });
15
+ }
16
+
17
+ exports.Divider = Divider;
18
+ //# sourceMappingURL=Divider.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.cjs","sources":["../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport styles from './Divider.module.scss';\n\ntype DividerProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport function Divider({ className, ...otherProps }: DividerProps) {\n const classNames = buildClassnames([styles.divider, className]);\n return <div className={classNames} {...otherProps} />;\n}\n"],"names":["buildClassnames","styles","React"],"mappings":";;;;;;;;;;;AAMM,SAAU,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,UAAU,EAAgB,EAAA;AAChE,IAAA,MAAM,UAAU,GAAGA,+BAAe,CAAC,CAACC,cAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAC/D,IAAA,OAAOC,8CAAK,SAAS,EAAE,UAAU,EAAM,GAAA,UAAU,GAAI;AACvD;;;;"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ type DividerProps = React.HTMLAttributes<HTMLDivElement>;
3
+ export declare function Divider({ className, ...otherProps }: DividerProps): React.JSX.Element;
4
+ export {};
@@ -0,0 +1,12 @@
1
+ import React__default from 'react';
2
+ import { buildClassnames } from '../../utils/buildClassnames.js';
3
+ import 'uid/secure';
4
+ import styles from './Divider.module.scss.js';
5
+
6
+ function Divider({ className, ...otherProps }) {
7
+ const classNames = buildClassnames([styles.divider, className]);
8
+ return React__default.createElement("div", { className: classNames, ...otherProps });
9
+ }
10
+
11
+ export { Divider };
12
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.js","sources":["../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport styles from './Divider.module.scss';\n\ntype DividerProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport function Divider({ className, ...otherProps }: DividerProps) {\n const classNames = buildClassnames([styles.divider, className]);\n return <div className={classNames} {...otherProps} />;\n}\n"],"names":["React"],"mappings":";;;;;AAMM,SAAU,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,UAAU,EAAgB,EAAA;AAChE,IAAA,MAAM,UAAU,GAAG,eAAe,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAC/D,IAAA,OAAOA,sCAAK,SAAS,EAAE,UAAU,EAAM,GAAA,UAAU,GAAI;AACvD;;;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
4
+
5
+ ___$insertStyle("._divider_1bzcp_1 {\n height: var(--sizes-line);\n background-color: var(--colors-neutral-grey-base);\n}");
6
+ var styles = {"divider":"_divider_1bzcp_1"};
7
+
8
+ module.exports = styles;
9
+ //# sourceMappingURL=Divider.module.scss.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.module.scss.cjs","sources":["../../../src/components/Divider/Divider.module.scss"],"sourcesContent":[".divider {\n height: var(--sizes-line);\n background-color: var(--colors-neutral-grey-base);\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,4GAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ import insertStyle from '../../_virtual/____insertStyle.js';
2
+
3
+ insertStyle("._divider_1bzcp_1 {\n height: var(--sizes-line);\n background-color: var(--colors-neutral-grey-base);\n}");
4
+ var styles = {"divider":"_divider_1bzcp_1"};
5
+
6
+ export { styles as default };
7
+ //# sourceMappingURL=Divider.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.module.scss.js","sources":["../../../src/components/Divider/Divider.module.scss"],"sourcesContent":[".divider {\n height: var(--sizes-line);\n background-color: var(--colors-neutral-grey-base);\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,4GAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA;;;;"}
@@ -0,0 +1 @@
1
+ export { Divider } from './Divider';
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var buildClassnames = require('../../utils/buildClassnames.cjs');
5
+ require('uid/secure');
6
+ var FlexCol = require('../Flex/FlexCol/FlexCol.cjs');
7
+ var Text = require('../Text/Text.cjs');
8
+ var SectionLayout_module = require('./SectionLayout.module.scss.cjs');
9
+
10
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
+
14
+ function SectionLayout({ children, title, description, accessorySlot, className, ...otherProps }) {
15
+ const classNames = buildClassnames.buildClassnames([SectionLayout_module.grid, className]);
16
+ return (React__default.default.createElement("div", { className: classNames, ...otherProps },
17
+ React__default.default.createElement(FlexCol.FlexCol, null,
18
+ React__default.default.createElement(Text.Text, { variant: "headingSmall" }, title),
19
+ description && React__default.default.createElement(Text.Text, { variant: "hintText" }, description),
20
+ accessorySlot),
21
+ React__default.default.createElement("div", null, children)));
22
+ }
23
+
24
+ exports.SectionLayout = SectionLayout;
25
+ //# sourceMappingURL=SectionLayout.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionLayout.cjs","sources":["../../../src/components/SectionLayout/SectionLayout.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport { FlexCol } from '../Flex/FlexCol';\nimport { Text } from '../Text';\nimport styles from './SectionLayout.module.scss';\n\ntype SectionLayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode;\n title: string;\n description?: string;\n accessorySlot?: React.ReactNode;\n};\n\nexport function SectionLayout({\n children,\n title,\n description,\n accessorySlot,\n className,\n ...otherProps\n}: SectionLayoutProps) {\n const classNames = buildClassnames([styles.grid, className]);\n return (\n <div className={classNames} {...otherProps}>\n <FlexCol>\n <Text variant=\"headingSmall\">{title}</Text>\n {description && <Text variant=\"hintText\">{description}</Text>}\n {accessorySlot}\n </FlexCol>\n <div>{children}</div>\n </div>\n );\n}\n"],"names":["buildClassnames","styles","React","FlexCol","Text"],"mappings":";;;;;;;;;;;;;SAagB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,WAAW,EACX,aAAa,EACb,SAAS,EACT,GAAG,UAAU,EACM,EAAA;AACnB,IAAA,MAAM,UAAU,GAAGA,+BAAe,CAAC,CAACC,oBAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC5D,IAAA,QACEC,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,UAAU,KAAM,UAAU,EAAA;AACxC,QAAAA,sBAAA,CAAA,aAAA,CAACC,eAAO,EAAA,IAAA;AACN,YAAAD,sBAAA,CAAA,aAAA,CAACE,SAAI,EAAC,EAAA,OAAO,EAAC,cAAc,EAAA,EAAE,KAAK,CAAQ;YAC1C,WAAW,IAAIF,qCAACE,SAAI,EAAA,EAAC,OAAO,EAAC,UAAU,EAAE,EAAA,WAAW,CAAQ;AAC5D,YAAA,aAAa,CACN;AACV,QAAAF,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,IAAA,EAAM,QAAQ,CAAO,CACjB;AAEV;;;;"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type SectionLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
3
+ children: React.ReactNode;
4
+ title: string;
5
+ description?: string;
6
+ accessorySlot?: React.ReactNode;
7
+ };
8
+ export declare function SectionLayout({ children, title, description, accessorySlot, className, ...otherProps }: SectionLayoutProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,19 @@
1
+ import React__default from 'react';
2
+ import { buildClassnames } from '../../utils/buildClassnames.js';
3
+ import 'uid/secure';
4
+ import { FlexCol } from '../Flex/FlexCol/FlexCol.js';
5
+ import { Text } from '../Text/Text.js';
6
+ import styles from './SectionLayout.module.scss.js';
7
+
8
+ function SectionLayout({ children, title, description, accessorySlot, className, ...otherProps }) {
9
+ const classNames = buildClassnames([styles.grid, className]);
10
+ return (React__default.createElement("div", { className: classNames, ...otherProps },
11
+ React__default.createElement(FlexCol, null,
12
+ React__default.createElement(Text, { variant: "headingSmall" }, title),
13
+ description && React__default.createElement(Text, { variant: "hintText" }, description),
14
+ accessorySlot),
15
+ React__default.createElement("div", null, children)));
16
+ }
17
+
18
+ export { SectionLayout };
19
+ //# sourceMappingURL=SectionLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionLayout.js","sources":["../../../src/components/SectionLayout/SectionLayout.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport { FlexCol } from '../Flex/FlexCol';\nimport { Text } from '../Text';\nimport styles from './SectionLayout.module.scss';\n\ntype SectionLayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode;\n title: string;\n description?: string;\n accessorySlot?: React.ReactNode;\n};\n\nexport function SectionLayout({\n children,\n title,\n description,\n accessorySlot,\n className,\n ...otherProps\n}: SectionLayoutProps) {\n const classNames = buildClassnames([styles.grid, className]);\n return (\n <div className={classNames} {...otherProps}>\n <FlexCol>\n <Text variant=\"headingSmall\">{title}</Text>\n {description && <Text variant=\"hintText\">{description}</Text>}\n {accessorySlot}\n </FlexCol>\n <div>{children}</div>\n </div>\n );\n}\n"],"names":["React"],"mappings":";;;;;;;SAagB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,WAAW,EACX,aAAa,EACb,SAAS,EACT,GAAG,UAAU,EACM,EAAA;AACnB,IAAA,MAAM,UAAU,GAAG,eAAe,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC5D,IAAA,QACEA,cAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,UAAU,KAAM,UAAU,EAAA;AACxC,QAAAA,cAAA,CAAA,aAAA,CAAC,OAAO,EAAA,IAAA;AACN,YAAAA,cAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,OAAO,EAAC,cAAc,EAAA,EAAE,KAAK,CAAQ;YAC1C,WAAW,IAAIA,6BAAC,IAAI,EAAA,EAAC,OAAO,EAAC,UAAU,EAAE,EAAA,WAAW,CAAQ;AAC5D,YAAA,aAAa,CACN;AACV,QAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA,IAAA,EAAM,QAAQ,CAAO,CACjB;AAEV;;;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
4
+
5
+ ___$insertStyle("._grid_o5hjx_1 {\n display: grid;\n grid-template-columns: 1fr 2fr;\n gap: var(--sizes-10);\n}\n\n@container (width < 600px) {\n ._grid_o5hjx_1 {\n grid-template-columns: 1fr;\n gap: var(--sizes-6);\n }\n}");
6
+ var styles = {"grid":"_grid_o5hjx_1"};
7
+
8
+ module.exports = styles;
9
+ //# sourceMappingURL=SectionLayout.module.scss.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionLayout.module.scss.cjs","sources":["../../../src/components/SectionLayout/SectionLayout.module.scss"],"sourcesContent":[".grid {\n display: grid;\n grid-template-columns: 1fr 2fr;\n gap: var(--sizes-10);\n}\n\n@container (width < 600px) {\n .grid {\n grid-template-columns: 1fr;\n gap: var(--sizes-6);\n }\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,0NAAA;AACA,aAAA,CAAA,MAAA,CAAA,eAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ import insertStyle from '../../_virtual/____insertStyle.js';
2
+
3
+ insertStyle("._grid_o5hjx_1 {\n display: grid;\n grid-template-columns: 1fr 2fr;\n gap: var(--sizes-10);\n}\n\n@container (width < 600px) {\n ._grid_o5hjx_1 {\n grid-template-columns: 1fr;\n gap: var(--sizes-6);\n }\n}");
4
+ var styles = {"grid":"_grid_o5hjx_1"};
5
+
6
+ export { styles as default };
7
+ //# sourceMappingURL=SectionLayout.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionLayout.module.scss.js","sources":["../../../src/components/SectionLayout/SectionLayout.module.scss"],"sourcesContent":[".grid {\n display: grid;\n grid-template-columns: 1fr 2fr;\n gap: var(--sizes-10);\n}\n\n@container (width < 600px) {\n .grid {\n grid-template-columns: 1fr;\n gap: var(--sizes-6);\n }\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,0NAAA;AACA,aAAA,CAAA,MAAA,CAAA,eAAA;;;;"}
@@ -0,0 +1 @@
1
+ export { SectionLayout } from './SectionLayout';
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
17
17
 
18
18
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
19
 
20
- const SelectDropdown = ({ id, className, placeholder = 'Select item', multiple = false, compact = false, hasError = false, disabled, options, value, actions, isLoading = false, searchValue, emptyStateSlot, selectedSlot, onSearchChange, onSelectionChange, topAction, isSelectOpen, setIsSelectOpen, hasSection, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...otherProps }) => {
20
+ const SelectDropdown = ({ id, className, placeholder = 'Select item', multiple = false, compact = false, hasError = false, disabled, options, value, actions, isLoading = false, searchValue, headerSlot, emptyStateSlot, selectedSlot, onSearchChange, onSelectionChange, topAction, isSelectOpen, setIsSelectOpen, hasSection, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...otherProps }) => {
21
21
  const classNames = utils.generateClassNames(className);
22
22
  const selectedValues = utils.getSelectedValues(options, hasSection, value);
23
23
  const selectionMode = multiple ? 'multiple' : 'single';
@@ -32,6 +32,7 @@ const SelectDropdown = ({ id, className, placeholder = 'Select item', multiple =
32
32
  compact && form_module.compact,
33
33
  ]) }, selectedSlot || (React__default.default.createElement(SelectedOption.SelectedOption, { placeholder: placeholder, options: selectedValues, selectionMode: selectionMode }))));
34
34
  } },
35
+ headerSlot && React__default.default.createElement("div", { className: SelectDropdown_module.headerContainer }, headerSlot),
35
36
  onSearchChange && (React__default.default.createElement(React__default.default.Fragment, null,
36
37
  React__default.default.createElement(Search.Search, { className: SelectDropdown_module.search, value: searchValue, onChange: onSearchChange }),
37
38
  React__default.default.createElement("hr", { className: SelectDropdown_module.separator }))),
@@ -1 +1 @@
1
- {"version":3,"file":"SelectDropdown.cjs","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport { Dropdown } from '../Dropdown';\nimport { buildClassnames } from '../../utils';\nimport { generateClassNames, getSelectedValues } from './utils';\nimport { SelectedOption } from './components/SelectedOption';\n\nimport styles from './SelectDropdown.module.scss';\nimport formStyles from '../../utils/forms/form.module.scss';\n\ntype SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {\n isSelectOpen: boolean;\n setIsSelectOpen: (isOpen: boolean) => void;\n onSelectionChange: (keys: Selection) => void;\n hasSection: boolean;\n};\n\nexport const SelectDropdown = ({\n id,\n className,\n placeholder = 'Select item',\n multiple = false,\n compact = false,\n hasError = false,\n disabled,\n options,\n value,\n actions,\n isLoading = false,\n searchValue,\n emptyStateSlot,\n selectedSlot,\n onSearchChange,\n onSelectionChange,\n topAction,\n isSelectOpen,\n setIsSelectOpen,\n hasSection,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n ...otherProps\n}: SelectDropdownElementProps) => {\n const classNames = generateClassNames(className);\n\n const selectedValues = getSelectedValues(options, hasSection, value);\n const selectionMode = multiple ? 'multiple' : 'single';\n\n const hasRowAction = options.some(\n (option) => 'onClickRowAction' in option && option.onClickRowAction,\n );\n\n return (\n <Dropdown\n id={`select-dropdown-${id}`}\n className={buildClassnames([classNames?.popover, styles.dropdown, className])}\n shouldShow={isSelectOpen}\n setShouldShow={setIsSelectOpen}\n useAnchorWidth\n disabled={disabled}\n renderCta={(buttonProps, anchorRef) => {\n return (\n <button\n {...buttonProps}\n type=\"button\"\n ref={anchorRef}\n className={buildClassnames([\n className,\n styles.dropdownTrigger,\n formStyles.fullStyles,\n formStyles.base,\n hasError && formStyles.error,\n compact && formStyles.compact,\n ])}\n >\n {selectedSlot || (\n <SelectedOption\n placeholder={placeholder}\n options={selectedValues}\n selectionMode={selectionMode}\n />\n )}\n </button>\n );\n }}\n >\n {onSearchChange && (\n <>\n <Search className={styles.search} value={searchValue} onChange={onSearchChange} />\n <hr className={styles.separator} />\n </>\n )}\n {topAction && (\n <Fragment key={topAction.label}>\n <Button\n className={styles.ctaButton}\n key={topAction.label}\n variant=\"flat\"\n {...topAction}\n />\n <hr className={styles.separator} key={`separator-${topAction.label}`} />\n </Fragment>\n )}\n {hasRowAction ? (\n <GridList\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options as GridItemProps[]}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues as GridItemProps[]}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n {...otherProps}\n />\n ) : (\n <ListBox\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n hasSection={hasSection}\n {...otherProps}\n />\n )}\n {actions?.map(({ label, ...actionProps }) => (\n <Fragment key={label}>\n <hr className={styles.separator} key={`separator-${label}`} />\n <Button className={styles.ctaButton} variant=\"flat\" key={label} {...actionProps} />\n </Fragment>\n ))}\n </Dropdown>\n );\n};\n"],"names":["generateClassNames","getSelectedValues","React","Dropdown","buildClassnames","styles","formStyles","SelectedOption","Search","Fragment","Button","GridList","ListBox"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBO,MAAM,cAAc,GAAG,CAAC,EAC7B,EAAE,EACF,SAAS,EACT,WAAW,GAAG,aAAa,EAC3B,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,GAAG,UAAU,EACc,KAAI;AAC/B,IAAA,MAAM,UAAU,GAAGA,wBAAkB,CAAC,SAAS,CAAC;IAEhD,MAAM,cAAc,GAAGC,uBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC;IACpE,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,QA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,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EAAA,GAClB,UAAU,EAAA,CACd,CACH,EACA,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,SAAA,GAAA,SAAA;AAAP,QAAA,OAAO,CAAE,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,MACtCV,sBAAA,CAAA,aAAA,CAACO,cAAQ,EAAC,EAAA,GAAG,EAAE,KAAK,EAAA;YAClBP,sBAAI,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,SAAS,EAAEG,qBAAM,CAAC,SAAS,EAAE,GAAG,EAAE,CAAA,UAAA,EAAa,KAAK,CAAA,CAAE,EAAI,CAAA;YAC9DH,sBAAC,CAAA,aAAA,CAAAQ,aAAM,IAAC,SAAS,EAAEL,qBAAM,CAAC,SAAS,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,KAAK,EAAA,GAAM,WAAW,EAAA,CAAI,CAC1E,CACZ,CAAC,CACO;AAEf;;;;"}
1
+ {"version":3,"file":"SelectDropdown.cjs","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport { Dropdown } from '../Dropdown';\nimport { buildClassnames } from '../../utils';\nimport { generateClassNames, getSelectedValues } from './utils';\nimport { SelectedOption } from './components/SelectedOption';\n\nimport styles from './SelectDropdown.module.scss';\nimport formStyles from '../../utils/forms/form.module.scss';\n\ntype SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {\n isSelectOpen: boolean;\n setIsSelectOpen: (isOpen: boolean) => void;\n onSelectionChange: (keys: Selection) => void;\n hasSection: boolean;\n};\n\nexport const SelectDropdown = ({\n id,\n className,\n placeholder = 'Select item',\n multiple = false,\n compact = false,\n hasError = false,\n disabled,\n options,\n value,\n actions,\n isLoading = false,\n searchValue,\n headerSlot,\n emptyStateSlot,\n selectedSlot,\n onSearchChange,\n onSelectionChange,\n topAction,\n isSelectOpen,\n setIsSelectOpen,\n hasSection,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n ...otherProps\n}: SelectDropdownElementProps) => {\n const classNames = generateClassNames(className);\n\n const selectedValues = getSelectedValues(options, hasSection, value);\n const selectionMode = multiple ? 'multiple' : 'single';\n\n const hasRowAction = options.some(\n (option) => 'onClickRowAction' in option && option.onClickRowAction,\n );\n\n return (\n <Dropdown\n id={`select-dropdown-${id}`}\n className={buildClassnames([classNames?.popover, styles.dropdown, className])}\n shouldShow={isSelectOpen}\n setShouldShow={setIsSelectOpen}\n useAnchorWidth\n disabled={disabled}\n renderCta={(buttonProps, anchorRef) => {\n return (\n <button\n {...buttonProps}\n type=\"button\"\n ref={anchorRef}\n className={buildClassnames([\n className,\n styles.dropdownTrigger,\n formStyles.fullStyles,\n formStyles.base,\n hasError && formStyles.error,\n compact && formStyles.compact,\n ])}\n >\n {selectedSlot || (\n <SelectedOption\n placeholder={placeholder}\n options={selectedValues}\n selectionMode={selectionMode}\n />\n )}\n </button>\n );\n }}\n >\n {headerSlot && <div className={styles.headerContainer}>{headerSlot}</div>}\n {onSearchChange && (\n <>\n <Search className={styles.search} value={searchValue} onChange={onSearchChange} />\n <hr className={styles.separator} />\n </>\n )}\n {topAction && (\n <Fragment key={topAction.label}>\n <Button\n className={styles.ctaButton}\n key={topAction.label}\n variant=\"flat\"\n {...topAction}\n />\n <hr className={styles.separator} key={`separator-${topAction.label}`} />\n </Fragment>\n )}\n {hasRowAction ? (\n <GridList\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options as GridItemProps[]}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues as GridItemProps[]}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n {...otherProps}\n />\n ) : (\n <ListBox\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n hasSection={hasSection}\n {...otherProps}\n />\n )}\n {actions?.map(({ label, ...actionProps }) => (\n <Fragment key={label}>\n <hr className={styles.separator} key={`separator-${label}`} />\n <Button className={styles.ctaButton} variant=\"flat\" key={label} {...actionProps} />\n </Fragment>\n ))}\n </Dropdown>\n );\n};\n"],"names":["generateClassNames","getSelectedValues","React","Dropdown","buildClassnames","styles","formStyles","SelectedOption","Search","Fragment","Button","GridList","ListBox"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBO,MAAM,cAAc,GAAG,CAAC,EAC7B,EAAE,EACF,SAAS,EACT,WAAW,GAAG,aAAa,EAC3B,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,GAAG,UAAU,EACc,KAAI;AAC/B,IAAA,MAAM,UAAU,GAAGA,wBAAkB,CAAC,SAAS,CAAC;IAEhD,MAAM,cAAc,GAAGC,uBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC;IACpE,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ;AAEtD,IAAA,MAAM,Y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BAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EAAA,GAClB,UAAU,EAAA,CACd,CACH,EACA,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,SAAA,GAAA,SAAA;AAAP,QAAA,OAAO,CAAE,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,MACtCV,sBAAA,CAAA,aAAA,CAACO,cAAQ,EAAC,EAAA,GAAG,EAAE,KAAK,EAAA;YAClBP,sBAAI,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,SAAS,EAAEG,qBAAM,CAAC,SAAS,EAAE,GAAG,EAAE,CAAA,UAAA,EAAa,KAAK,CAAA,CAAE,EAAI,CAAA;YAC9DH,sBAAC,CAAA,aAAA,CAAAQ,aAAM,IAAC,SAAS,EAAEL,qBAAM,CAAC,SAAS,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,KAAK,EAAA,GAAM,WAAW,EAAA,CAAI,CAC1E,CACZ,CAAC,CACO;AAEf;;;;"}
@@ -7,5 +7,5 @@ type SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {
7
7
  onSelectionChange: (keys: Selection) => void;
8
8
  hasSection: boolean;
9
9
  };
10
- export declare const SelectDropdown: ({ id, className, placeholder, multiple, compact, hasError, disabled, options, value, actions, isLoading, searchValue, emptyStateSlot, selectedSlot, onSearchChange, onSelectionChange, topAction, isSelectOpen, setIsSelectOpen, hasSection, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...otherProps }: SelectDropdownElementProps) => React.JSX.Element;
10
+ export declare const SelectDropdown: ({ id, className, placeholder, multiple, compact, hasError, disabled, options, value, actions, isLoading, searchValue, headerSlot, emptyStateSlot, selectedSlot, onSearchChange, onSelectionChange, topAction, isSelectOpen, setIsSelectOpen, hasSection, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...otherProps }: SelectDropdownElementProps) => React.JSX.Element;
11
11
  export {};
@@ -11,7 +11,7 @@ import { SelectedOption } from './components/SelectedOption.js';
11
11
  import styles from './SelectDropdown.module.scss.js';
12
12
  import formStyles from '../../utils/forms/form.module.scss.js';
13
13
 
14
- const SelectDropdown = ({ id, className, placeholder = 'Select item', multiple = false, compact = false, hasError = false, disabled, options, value, actions, isLoading = false, searchValue, emptyStateSlot, selectedSlot, onSearchChange, onSelectionChange, topAction, isSelectOpen, setIsSelectOpen, hasSection, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...otherProps }) => {
14
+ const SelectDropdown = ({ id, className, placeholder = 'Select item', multiple = false, compact = false, hasError = false, disabled, options, value, actions, isLoading = false, searchValue, headerSlot, emptyStateSlot, selectedSlot, onSearchChange, onSelectionChange, topAction, isSelectOpen, setIsSelectOpen, hasSection, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...otherProps }) => {
15
15
  const classNames = generateClassNames(className);
16
16
  const selectedValues = getSelectedValues(options, hasSection, value);
17
17
  const selectionMode = multiple ? 'multiple' : 'single';
@@ -26,6 +26,7 @@ const SelectDropdown = ({ id, className, placeholder = 'Select item', multiple =
26
26
  compact && formStyles.compact,
27
27
  ]) }, selectedSlot || (React__default.createElement(SelectedOption, { placeholder: placeholder, options: selectedValues, selectionMode: selectionMode }))));
28
28
  } },
29
+ headerSlot && React__default.createElement("div", { className: styles.headerContainer }, headerSlot),
29
30
  onSearchChange && (React__default.createElement(React__default.Fragment, null,
30
31
  React__default.createElement(Search, { className: styles.search, value: searchValue, onChange: onSearchChange }),
31
32
  React__default.createElement("hr", { className: styles.separator }))),
@@ -1 +1 @@
1
- {"version":3,"file":"SelectDropdown.js","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport { Dropdown } from '../Dropdown';\nimport { buildClassnames } from '../../utils';\nimport { generateClassNames, getSelectedValues } from './utils';\nimport { SelectedOption } from './components/SelectedOption';\n\nimport styles from './SelectDropdown.module.scss';\nimport formStyles from '../../utils/forms/form.module.scss';\n\ntype SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {\n isSelectOpen: boolean;\n setIsSelectOpen: (isOpen: boolean) => void;\n onSelectionChange: (keys: Selection) => void;\n hasSection: boolean;\n};\n\nexport const SelectDropdown = ({\n id,\n className,\n placeholder = 'Select item',\n multiple = false,\n compact = false,\n hasError = false,\n disabled,\n options,\n value,\n actions,\n isLoading = false,\n searchValue,\n emptyStateSlot,\n selectedSlot,\n onSearchChange,\n onSelectionChange,\n topAction,\n isSelectOpen,\n setIsSelectOpen,\n hasSection,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n ...otherProps\n}: SelectDropdownElementProps) => {\n const classNames = generateClassNames(className);\n\n const selectedValues = getSelectedValues(options, hasSection, value);\n const selectionMode = multiple ? 'multiple' : 'single';\n\n const hasRowAction = options.some(\n (option) => 'onClickRowAction' in option && option.onClickRowAction,\n );\n\n return (\n <Dropdown\n id={`select-dropdown-${id}`}\n className={buildClassnames([classNames?.popover, styles.dropdown, className])}\n shouldShow={isSelectOpen}\n setShouldShow={setIsSelectOpen}\n useAnchorWidth\n disabled={disabled}\n renderCta={(buttonProps, anchorRef) => {\n return (\n <button\n {...buttonProps}\n type=\"button\"\n ref={anchorRef}\n className={buildClassnames([\n className,\n styles.dropdownTrigger,\n formStyles.fullStyles,\n formStyles.base,\n hasError && formStyles.error,\n compact && formStyles.compact,\n ])}\n >\n {selectedSlot || (\n <SelectedOption\n placeholder={placeholder}\n options={selectedValues}\n selectionMode={selectionMode}\n />\n )}\n </button>\n );\n }}\n >\n {onSearchChange && (\n <>\n <Search className={styles.search} value={searchValue} onChange={onSearchChange} />\n <hr className={styles.separator} />\n </>\n )}\n {topAction && (\n <Fragment key={topAction.label}>\n <Button\n className={styles.ctaButton}\n key={topAction.label}\n variant=\"flat\"\n {...topAction}\n />\n <hr className={styles.separator} key={`separator-${topAction.label}`} />\n </Fragment>\n )}\n {hasRowAction ? (\n <GridList\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options as GridItemProps[]}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues as GridItemProps[]}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n {...otherProps}\n />\n ) : (\n <ListBox\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n hasSection={hasSection}\n {...otherProps}\n />\n )}\n {actions?.map(({ label, ...actionProps }) => (\n <Fragment key={label}>\n <hr className={styles.separator} key={`separator-${label}`} />\n <Button className={styles.ctaButton} variant=\"flat\" key={label} {...actionProps} />\n </Fragment>\n ))}\n </Dropdown>\n );\n};\n"],"names":["React"],"mappings":";;;;;;;;;;;;;AAwBO,MAAM,cAAc,GAAG,CAAC,EAC7B,EAAE,EACF,SAAS,EACT,WAAW,GAAG,aAAa,EAC3B,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EAAE,c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N,SAAS,EAAE,UAAU,CAAC,gBAAgB,EACtC,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EAAA,GAClB,UAAU,EAAA,CACd,CACH,EACA,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,SAAA,GAAA,SAAA;AAAP,QAAA,OAAO,CAAE,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,MACtCA,cAAA,CAAA,aAAA,CAAC,QAAQ,EAAC,EAAA,GAAG,EAAE,KAAK,EAAA;YAClBA,cAAI,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,GAAG,EAAE,CAAA,UAAA,EAAa,KAAK,CAAA,CAAE,EAAI,CAAA;YAC9DA,cAAC,CAAA,aAAA,CAAA,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,KAAK,EAAA,GAAM,WAAW,EAAA,CAAI,CAC1E,CACZ,CAAC,CACO;AAEf;;;;"}
1
+ {"version":3,"file":"SelectDropdown.js","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport { Dropdown } from '../Dropdown';\nimport { buildClassnames } from '../../utils';\nimport { generateClassNames, getSelectedValues } from './utils';\nimport { SelectedOption } from './components/SelectedOption';\n\nimport styles from './SelectDropdown.module.scss';\nimport formStyles from '../../utils/forms/form.module.scss';\n\ntype SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {\n isSelectOpen: boolean;\n setIsSelectOpen: (isOpen: boolean) => void;\n onSelectionChange: (keys: Selection) => void;\n hasSection: boolean;\n};\n\nexport const SelectDropdown = ({\n id,\n className,\n placeholder = 'Select item',\n multiple = false,\n compact = false,\n hasError = false,\n disabled,\n options,\n value,\n actions,\n isLoading = false,\n searchValue,\n headerSlot,\n emptyStateSlot,\n selectedSlot,\n onSearchChange,\n onSelectionChange,\n topAction,\n isSelectOpen,\n setIsSelectOpen,\n hasSection,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n ...otherProps\n}: SelectDropdownElementProps) => {\n const classNames = generateClassNames(className);\n\n const selectedValues = getSelectedValues(options, hasSection, value);\n const selectionMode = multiple ? 'multiple' : 'single';\n\n const hasRowAction = options.some(\n (option) => 'onClickRowAction' in option && option.onClickRowAction,\n );\n\n return (\n <Dropdown\n id={`select-dropdown-${id}`}\n className={buildClassnames([classNames?.popover, styles.dropdown, className])}\n shouldShow={isSelectOpen}\n setShouldShow={setIsSelectOpen}\n useAnchorWidth\n disabled={disabled}\n renderCta={(buttonProps, anchorRef) => {\n return (\n <button\n {...buttonProps}\n type=\"button\"\n ref={anchorRef}\n className={buildClassnames([\n className,\n styles.dropdownTrigger,\n formStyles.fullStyles,\n formStyles.base,\n hasError && formStyles.error,\n compact && formStyles.compact,\n ])}\n >\n {selectedSlot || (\n <SelectedOption\n placeholder={placeholder}\n options={selectedValues}\n selectionMode={selectionMode}\n />\n )}\n </button>\n );\n }}\n >\n {headerSlot && <div className={styles.headerContainer}>{headerSlot}</div>}\n {onSearchChange && (\n <>\n <Search className={styles.search} value={searchValue} onChange={onSearchChange} />\n <hr className={styles.separator} />\n </>\n )}\n {topAction && (\n <Fragment key={topAction.label}>\n <Button\n className={styles.ctaButton}\n key={topAction.label}\n variant=\"flat\"\n {...topAction}\n />\n <hr className={styles.separator} key={`separator-${topAction.label}`} />\n </Fragment>\n )}\n {hasRowAction ? (\n <GridList\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options as GridItemProps[]}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues as GridItemProps[]}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n {...otherProps}\n />\n ) : (\n <ListBox\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n hasSection={hasSection}\n {...otherProps}\n />\n )}\n {actions?.map(({ label, ...actionProps }) => (\n <Fragment key={label}>\n <hr className={styles.separator} key={`separator-${label}`} />\n <Button className={styles.ctaButton} variant=\"flat\" key={label} {...actionProps} />\n </Fragment>\n ))}\n </Dropdown>\n );\n};\n"],"names":["React"],"mappings":";;;;;;;;;;;;;AAwBO,MAAM,cAAc,GAAG,CAAC,EAC7B,EAAE,EACF,SAAS,EACT,WAAW,GAAG,aAAa,EAC3B,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,GAAG,UAAU,EACc,KAAI;AAC/B,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,SAAS,CAAC;IAEhD,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,EAAE,U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aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EAAA,GAClB,UAAU,EAAA,CACd,CACH,EACA,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,SAAA,GAAA,SAAA;AAAP,QAAA,OAAO,CAAE,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,MACtCA,cAAA,CAAA,aAAA,CAAC,QAAQ,EAAC,EAAA,GAAG,EAAE,KAAK,EAAA;YAClBA,cAAI,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,GAAG,EAAE,CAAA,UAAA,EAAa,KAAK,CAAA,CAAE,EAAI,CAAA;YAC9DA,cAAC,CAAA,aAAA,CAAA,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,KAAK,EAAA,GAAM,WAAW,EAAA,CAAI,CAC1E,CACZ,CAAC,CACO;AAEf;;;;"}
@@ -2,8 +2,8 @@
2
2
 
3
3
  var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
4
4
 
5
- ___$insertStyle("._listBox_1fva9_1 {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n}\n._listBox_1fva9_1[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n._dropdown_1fva9_13 {\n padding: var(--sizes-none) !important;\n}\n\n._dropdownTrigger_1fva9_17 {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n._separator_1fva9_25 {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n._search_1fva9_33 {\n margin: var(--sizes-sm) !important;\n}\n\n._ctaButton_1fva9_37 {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n}\n._ctaButton_1fva9_37 svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n}\n._ctaButton_1fva9_37 > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n}\n._ctaButton_1fva9_37:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n}");
6
- var styles = {"listBox":"_listBox_1fva9_1","dropdown":"_dropdown_1fva9_13","dropdownTrigger":"_dropdownTrigger_1fva9_17","separator":"_separator_1fva9_25","search":"_search_1fva9_33","ctaButton":"_ctaButton_1fva9_37"};
5
+ ___$insertStyle("._listBox_1rgmd_1 {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n}\n._listBox_1rgmd_1[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n._dropdown_1rgmd_13 {\n padding: var(--sizes-none) !important;\n}\n\n._dropdownTrigger_1rgmd_17 {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n._separator_1rgmd_25 {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n._search_1rgmd_33 {\n margin: var(--sizes-sm) !important;\n}\n\n._ctaButton_1rgmd_37 {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n}\n._ctaButton_1rgmd_37 svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n}\n._ctaButton_1rgmd_37 > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n}\n._ctaButton_1rgmd_37:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n}\n\n._headerContainer_1rgmd_57 {\n padding: var(--sizes-sm) var(--sizes-base);\n border-bottom: 1px solid var(--colors-neutral-grey-base);\n}");
6
+ var styles = {"listBox":"_listBox_1rgmd_1","dropdown":"_dropdown_1rgmd_13","dropdownTrigger":"_dropdownTrigger_1rgmd_17","separator":"_separator_1rgmd_25","search":"_search_1rgmd_33","ctaButton":"_ctaButton_1rgmd_37","headerContainer":"_headerContainer_1rgmd_57"};
7
7
 
8
8
  module.exports = styles;
9
9
  //# sourceMappingURL=SelectDropdown.module.scss.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectDropdown.module.scss.cjs","sources":["../../../src/components/SelectDropdown/SelectDropdown.module.scss"],"sourcesContent":[".listBox {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n\n &[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n// used important to override styled-component styles from Dropdown\n.dropdown {\n padding: var(--sizes-none) !important;\n}\n\n.dropdownTrigger {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n.separator {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n// used important to override styled-component styles from Search\n.search {\n margin: var(--sizes-sm) !important;\n}\n\n// used important to override styled-component styles from Button\n.ctaButton {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n\n svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n }\n\n > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n }\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n }\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,qjDAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,UAAA,CAAA,oBAAA,CAAA,iBAAA,CAAA,2BAAA,CAAA,WAAA,CAAA,qBAAA,CAAA,QAAA,CAAA,kBAAA,CAAA,WAAA,CAAA,qBAAA;;;;"}
1
+ {"version":3,"file":"SelectDropdown.module.scss.cjs","sources":["../../../src/components/SelectDropdown/SelectDropdown.module.scss"],"sourcesContent":[".listBox {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n\n &[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n// used important to override styled-component styles from Dropdown\n.dropdown {\n padding: var(--sizes-none) !important;\n}\n\n.dropdownTrigger {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n.separator {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n// used important to override styled-component styles from Search\n.search {\n margin: var(--sizes-sm) !important;\n}\n\n// used important to override styled-component styles from Button\n.ctaButton {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n\n svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n }\n\n > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n }\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n }\n}\n\n.headerContainer {\n padding: var(--sizes-sm) var(--sizes-base);\n border-bottom: 1px solid var(--colors-neutral-grey-base);\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,osDAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,UAAA,CAAA,oBAAA,CAAA,iBAAA,CAAA,2BAAA,CAAA,WAAA,CAAA,qBAAA,CAAA,QAAA,CAAA,kBAAA,CAAA,WAAA,CAAA,qBAAA,CAAA,iBAAA,CAAA,2BAAA;;;;"}
@@ -1,7 +1,7 @@
1
1
  import insertStyle from '../../_virtual/____insertStyle.js';
2
2
 
3
- insertStyle("._listBox_1fva9_1 {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n}\n._listBox_1fva9_1[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n._dropdown_1fva9_13 {\n padding: var(--sizes-none) !important;\n}\n\n._dropdownTrigger_1fva9_17 {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n._separator_1fva9_25 {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n._search_1fva9_33 {\n margin: var(--sizes-sm) !important;\n}\n\n._ctaButton_1fva9_37 {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n}\n._ctaButton_1fva9_37 svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n}\n._ctaButton_1fva9_37 > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n}\n._ctaButton_1fva9_37:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n}");
4
- var styles = {"listBox":"_listBox_1fva9_1","dropdown":"_dropdown_1fva9_13","dropdownTrigger":"_dropdownTrigger_1fva9_17","separator":"_separator_1fva9_25","search":"_search_1fva9_33","ctaButton":"_ctaButton_1fva9_37"};
3
+ insertStyle("._listBox_1rgmd_1 {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n}\n._listBox_1rgmd_1[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n._dropdown_1rgmd_13 {\n padding: var(--sizes-none) !important;\n}\n\n._dropdownTrigger_1rgmd_17 {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n._separator_1rgmd_25 {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n._search_1rgmd_33 {\n margin: var(--sizes-sm) !important;\n}\n\n._ctaButton_1rgmd_37 {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n}\n._ctaButton_1rgmd_37 svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n}\n._ctaButton_1rgmd_37 > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n}\n._ctaButton_1rgmd_37:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n}\n\n._headerContainer_1rgmd_57 {\n padding: var(--sizes-sm) var(--sizes-base);\n border-bottom: 1px solid var(--colors-neutral-grey-base);\n}");
4
+ var styles = {"listBox":"_listBox_1rgmd_1","dropdown":"_dropdown_1rgmd_13","dropdownTrigger":"_dropdownTrigger_1rgmd_17","separator":"_separator_1rgmd_25","search":"_search_1rgmd_33","ctaButton":"_ctaButton_1rgmd_37","headerContainer":"_headerContainer_1rgmd_57"};
5
5
 
6
6
  export { styles as default };
7
7
  //# sourceMappingURL=SelectDropdown.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectDropdown.module.scss.js","sources":["../../../src/components/SelectDropdown/SelectDropdown.module.scss"],"sourcesContent":[".listBox {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n\n &[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n// used important to override styled-component styles from Dropdown\n.dropdown {\n padding: var(--sizes-none) !important;\n}\n\n.dropdownTrigger {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n.separator {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n// used important to override styled-component styles from Search\n.search {\n margin: var(--sizes-sm) !important;\n}\n\n// used important to override styled-component styles from Button\n.ctaButton {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n\n svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n }\n\n > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n }\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n }\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,qjDAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,UAAA,CAAA,oBAAA,CAAA,iBAAA,CAAA,2BAAA,CAAA,WAAA,CAAA,qBAAA,CAAA,QAAA,CAAA,kBAAA,CAAA,WAAA,CAAA,qBAAA;;;;"}
1
+ {"version":3,"file":"SelectDropdown.module.scss.js","sources":["../../../src/components/SelectDropdown/SelectDropdown.module.scss"],"sourcesContent":[".listBox {\n overflow-y: scroll;\n max-height: 300px;\n padding: var(--sizes-sm);\n scroll-padding: var(--sizes-xs) 0;\n\n &[data-empty] {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n// used important to override styled-component styles from Dropdown\n.dropdown {\n padding: var(--sizes-none) !important;\n}\n\n.dropdownTrigger {\n padding-right: var(--sizes-9);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--sizes-3) top 50%;\n width: 100%;\n}\n\n.separator {\n height: var(--sizes-line);\n background: var(--colors-neutral-grey-base);\n border: none;\n margin: var(--sizes-none) var(--sizes-none);\n width: 100%;\n}\n\n// used important to override styled-component styles from Search\n.search {\n margin: var(--sizes-sm) !important;\n}\n\n// used important to override styled-component styles from Button\n.ctaButton {\n justify-content: start !important;\n padding: var(--sizes-sm) var(--sizes-xs) !important;\n margin: var(--sizes-sm) !important;\n border-radius: var(--radius-base) !important;\n border: 0 !important;\n\n svg {\n width: var(--sizes-md) !important;\n height: var(--sizes-md) !important;\n }\n\n > span {\n gap: var(--sizes-base);\n padding: 0 var(--sizes-xs);\n }\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest) !important;\n font-weight: var(--text-body-bold-font-weight) !important;\n }\n}\n\n.headerContainer {\n padding: var(--sizes-sm) var(--sizes-base);\n border-bottom: 1px solid var(--colors-neutral-grey-base);\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,osDAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,UAAA,CAAA,oBAAA,CAAA,iBAAA,CAAA,2BAAA,CAAA,WAAA,CAAA,qBAAA,CAAA,QAAA,CAAA,kBAAA,CAAA,WAAA,CAAA,qBAAA,CAAA,iBAAA,CAAA,2BAAA;;;;"}
@@ -26,6 +26,7 @@ export type SelectDropdownControlledProps = (SelectDropdownSingleProps | SelectD
26
26
  hasError?: boolean;
27
27
  disabled?: boolean;
28
28
  options: SelectDropdownItem[];
29
+ headerSlot?: ReactNode;
29
30
  emptyStateSlot?: ReactElement;
30
31
  isLoading?: boolean;
31
32
  placeholder?: string;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ /**
3
+ * A visual placeholder component for internal use only.
4
+ *
5
+ * This component is intended to be used within stories or development environments
6
+ * to visually represent empty slots or areas where content will be placed.
7
+ * It displays a styled box with optional children content.
8
+ *
9
+ * @internal
10
+ * @param style - Optional custom styles to override the default placeholder styles.
11
+ * @param children - Optional React nodes to display inside the placeholder.
12
+ */
13
+ export declare function Placeholder({ style, children }: any): React.JSX.Element;
@@ -16,6 +16,7 @@ export { CardHeader } from './CardHeader';
16
16
  export { Checkbox } from './Checkbox';
17
17
  export { Choice } from './Choice';
18
18
  export { ChoiceList } from './ChoiceList';
19
+ export { Container } from './Container';
19
20
  export { CopyToClipboard } from './CopyToClipboard';
20
21
  export { DateInputField } from './DateInputField';
21
22
  export { DatePicker } from './DatePicker';
@@ -24,6 +25,7 @@ export { DataTable, ColumnWidthsType, ColumnConfig, useCellWidths, useColumns, u
24
25
  export { DescriptionList } from './DescriptionList';
25
26
  export { DetailPage } from './DetailPage';
26
27
  export { DimensionsInput } from './DimensionsInput';
28
+ export { Divider } from './Divider';
27
29
  export { Dropdown } from './Dropdown';
28
30
  export { FilterTag } from './FilterTag';
29
31
  export { Grid } from './Grid';
@@ -41,6 +43,7 @@ export { PriceInput } from './PriceInput';
41
43
  export { Radio } from './Radio';
42
44
  export { ScreenReaderOnly } from './ScreenReaderOnly';
43
45
  export { Search, SearchProps } from './Search';
46
+ export { SectionLayout } from './SectionLayout';
44
47
  export { SegmentedControl } from './SegmentedControl';
45
48
  export { Select, SelectOption } from './Select';
46
49
  export { ShortcutKeys } from './ShortcutKeys';
package/dist/index.cjs CHANGED
@@ -21,6 +21,7 @@ var CardHeader = require('./components/CardHeader/CardHeader.cjs');
21
21
  var Checkbox = require('./components/Checkbox/Checkbox.cjs');
22
22
  var Choice = require('./components/Choice/Choice.cjs');
23
23
  var ChoiceList = require('./components/ChoiceList/ChoiceList.cjs');
24
+ var Container = require('./components/Container/Container.cjs');
24
25
  var CopyToClipboard = require('./components/CopyToClipboard/CopyToClipboard.cjs');
25
26
  var index = require('./components/DateInputField/index.cjs');
26
27
  var DatePicker = require('./components/DatePicker/DatePicker.cjs');
@@ -35,6 +36,7 @@ var useSelection = require('./components/DataTable/hooks/useSelection.cjs');
35
36
  var DescriptionList = require('./components/DescriptionList/DescriptionList.cjs');
36
37
  var DetailPage = require('./components/DetailPage/DetailPage.cjs');
37
38
  var DimensionsInput = require('./components/DimensionsInput/DimensionsInput.cjs');
39
+ var Divider = require('./components/Divider/Divider.cjs');
38
40
  var Dropdown = require('./components/Dropdown/Dropdown.cjs');
39
41
  var FilterTag = require('./components/FilterTag/FilterTag.cjs');
40
42
  var index$1 = require('./components/Grid/index.cjs');
@@ -52,6 +54,7 @@ var PriceInput = require('./components/PriceInput/PriceInput.cjs');
52
54
  var Radio = require('./components/Radio/Radio.cjs');
53
55
  var ScreenReaderOnly = require('./components/ScreenReaderOnly/ScreenReaderOnly.cjs');
54
56
  var Search = require('./components/Search/Search.cjs');
57
+ var SectionLayout = require('./components/SectionLayout/SectionLayout.cjs');
55
58
  var SegmentedControl = require('./components/SegmentedControl/SegmentedControl.cjs');
56
59
  var Select = require('./components/Select/Select.cjs');
57
60
  var ShortcutKeys = require('./components/ShortcutKeys/ShortcutKeys.cjs');
@@ -355,6 +358,7 @@ exports.CardHeader = CardHeader.CardHeader;
355
358
  exports.Checkbox = Checkbox.Checkbox;
356
359
  exports.Choice = Choice.Choice;
357
360
  exports.ChoiceList = ChoiceList.ChoiceList;
361
+ exports.Container = Container.Container;
358
362
  exports.CopyToClipboard = CopyToClipboard.CopyToClipboard;
359
363
  exports.DateInputField = index.DateInputField;
360
364
  exports.DatePicker = DatePicker.DatePicker;
@@ -376,6 +380,7 @@ exports.useSelection = useSelection.useSelection;
376
380
  exports.DescriptionList = DescriptionList.DescriptionList;
377
381
  exports.DetailPage = DetailPage.DetailPage;
378
382
  exports.DimensionsInput = DimensionsInput.DimensionsInput;
383
+ exports.Divider = Divider.Divider;
379
384
  exports.Dropdown = Dropdown.Dropdown;
380
385
  exports.FilterTag = FilterTag.FilterTag;
381
386
  exports.Grid = index$1.Grid;
@@ -393,6 +398,7 @@ exports.PriceInput = PriceInput.PriceInput;
393
398
  exports.Radio = Radio.Radio;
394
399
  exports.ScreenReaderOnly = ScreenReaderOnly.ScreenReaderOnly;
395
400
  exports.Search = Search.Search;
401
+ exports.SectionLayout = SectionLayout.SectionLayout;
396
402
  exports.SegmentedControl = SegmentedControl.SegmentedControl;
397
403
  exports.Select = Select.Select;
398
404
  exports.ShortcutKeys = ShortcutKeys.ShortcutKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ export { CardHeader } from './components/CardHeader/CardHeader.js';
19
19
  export { Checkbox } from './components/Checkbox/Checkbox.js';
20
20
  export { Choice } from './components/Choice/Choice.js';
21
21
  export { ChoiceList } from './components/ChoiceList/ChoiceList.js';
22
+ export { Container } from './components/Container/Container.js';
22
23
  export { CopyToClipboard } from './components/CopyToClipboard/CopyToClipboard.js';
23
24
  export { DateInputField } from './components/DateInputField/index.js';
24
25
  export { DatePicker } from './components/DatePicker/DatePicker.js';
@@ -33,6 +34,7 @@ export { useSelection } from './components/DataTable/hooks/useSelection.js';
33
34
  export { DescriptionList } from './components/DescriptionList/DescriptionList.js';
34
35
  export { DetailPage } from './components/DetailPage/DetailPage.js';
35
36
  export { DimensionsInput } from './components/DimensionsInput/DimensionsInput.js';
37
+ export { Divider } from './components/Divider/Divider.js';
36
38
  export { Dropdown } from './components/Dropdown/Dropdown.js';
37
39
  export { FilterTag } from './components/FilterTag/FilterTag.js';
38
40
  export { Grid } from './components/Grid/index.js';
@@ -50,6 +52,7 @@ export { PriceInput } from './components/PriceInput/PriceInput.js';
50
52
  export { Radio } from './components/Radio/Radio.js';
51
53
  export { ScreenReaderOnly } from './components/ScreenReaderOnly/ScreenReaderOnly.js';
52
54
  export { Search } from './components/Search/Search.js';
55
+ export { SectionLayout } from './components/SectionLayout/SectionLayout.js';
53
56
  export { SegmentedControl } from './components/SegmentedControl/SegmentedControl.js';
54
57
  export { Select } from './components/Select/Select.js';
55
58
  export { ShortcutKeys } from './components/ShortcutKeys/ShortcutKeys.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type Options = {
3
+ Component: React.ComponentType<any>;
4
+ };
5
+ export declare function itSupportsCommonProps({ Component }: Options): void;
6
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/ui",
3
- "version": "13.4.4",
3
+ "version": "13.5.0",
4
4
  "description": "New optimised component library for Veeqo.",
5
5
  "author": "Robert Wealthall",
6
6
  "license": "ISC",