carbon-react 118.0.0 → 118.1.1
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.
- package/esm/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
- package/esm/components/button-minor/button-minor.style.js +8 -0
- package/esm/components/pager/pager.component.js +5 -5
- package/esm/components/pill/pill.component.d.ts +3 -1
- package/esm/components/pill/pill.component.js +1 -0
- package/esm/components/select/__internal__/select-list-context.d.ts +7 -0
- package/esm/components/select/__internal__/select-text/index.d.ts +2 -0
- package/esm/components/select/__internal__/select-text/index.js +1 -0
- package/esm/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
- package/esm/components/select/__internal__/select-text/select-text.component.js +16 -36
- package/esm/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
- package/esm/components/select/filterable-select/filterable-select.component.d.ts +65 -0
- package/esm/components/select/filterable-select/filterable-select.component.js +568 -102
- package/esm/components/select/filterable-select/index.d.ts +2 -1
- package/esm/components/select/filterable-select/index.js +1 -0
- package/esm/components/select/index.d.ts +6 -0
- package/esm/components/select/index.js +6 -6
- package/esm/components/select/list-action-button/index.d.ts +2 -0
- package/esm/components/select/list-action-button/index.js +1 -0
- package/esm/components/select/list-action-button/list-action-button.component.d.ts +7 -0
- package/esm/components/select/list-action-button/list-action-button.component.js +9 -6
- package/esm/components/select/list-action-button/list-action-button.style.d.ts +2 -0
- package/esm/components/select/multi-select/index.d.ts +2 -1
- package/esm/components/select/multi-select/index.js +1 -0
- package/esm/components/select/multi-select/multi-select.component.d.ts +62 -0
- package/esm/components/select/multi-select/multi-select.component.js +575 -104
- package/esm/components/select/multi-select/multi-select.style.d.ts +4 -0
- package/esm/components/select/multi-select/multi-select.style.js +1 -0
- package/esm/components/select/option/index.d.ts +2 -25
- package/esm/components/select/option/index.js +1 -0
- package/esm/components/select/option/option.component.d.ts +34 -0
- package/esm/components/select/option/option.component.js +399 -62
- package/esm/components/select/option/option.style.d.ts +6 -0
- package/esm/components/select/option/option.style.js +0 -5
- package/esm/components/select/option-group-header/index.d.ts +2 -10
- package/esm/components/select/option-group-header/index.js +1 -0
- package/esm/components/select/option-group-header/option-group-header.component.d.ts +16 -0
- package/esm/components/select/option-group-header/option-group-header.component.js +4 -15
- package/esm/components/select/option-group-header/option-group-header.style.d.ts +2 -0
- package/esm/components/select/option-row/index.d.ts +2 -16
- package/esm/components/select/option-row/index.js +1 -0
- package/esm/components/select/option-row/option-row.component.d.ts +42 -0
- package/esm/components/select/option-row/option-row.component.js +10 -40
- package/esm/components/select/option-row/option-row.style.d.ts +6 -0
- package/esm/components/select/select-list/index.d.ts +2 -0
- package/esm/components/select/select-list/index.js +1 -0
- package/esm/components/select/select-list/select-list-container.style.d.ts +6 -0
- package/esm/components/select/select-list/select-list.component.d.ts +64 -0
- package/esm/components/select/select-list/select-list.component.js +69 -100
- package/esm/components/select/select-list/select-list.style.d.ts +12 -0
- package/esm/components/select/select-list/select-list.style.js +2 -2
- package/esm/components/select/select-textbox/index.d.ts +2 -1
- package/esm/components/select/select-textbox/index.js +1 -0
- package/esm/components/select/select-textbox/select-textbox.component.d.ts +81 -0
- package/esm/components/select/select-textbox/select-textbox.component.js +567 -142
- package/esm/components/select/select.style.d.ts +8 -0
- package/esm/components/select/simple-select/index.d.ts +2 -1
- package/esm/components/select/simple-select/index.js +1 -0
- package/esm/components/select/simple-select/simple-select.component.d.ts +58 -0
- package/esm/components/select/simple-select/simple-select.component.js +578 -111
- package/esm/components/select/utils/get-next-child-by-text.d.ts +5 -0
- package/esm/components/select/utils/get-next-child-by-text.js +20 -17
- package/esm/components/select/utils/get-next-index-by-key.d.ts +2 -0
- package/esm/components/select/utils/highlight-part-of-text.d.ts +2 -0
- package/esm/components/select/utils/highlight-part-of-text.js +10 -3
- package/esm/components/select/utils/is-expected-option.d.ts +2 -0
- package/esm/components/select/utils/is-expected-option.js +1 -1
- package/esm/components/select/utils/is-expected-value.d.ts +1 -0
- package/esm/components/select/utils/is-expected-value.js +1 -1
- package/esm/components/select/utils/is-navigation-key.d.ts +1 -0
- package/esm/components/select/utils/matching-text.style.d.ts +2 -0
- package/esm/components/select/utils/with-filter.hoc.d.ts +14 -0
- package/esm/components/select/utils/with-filter.hoc.js +59 -41
- package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
- package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
- package/lib/components/button-minor/button-minor.style.js +8 -0
- package/lib/components/pager/pager.component.js +5 -5
- package/lib/components/pill/pill.component.d.ts +3 -1
- package/lib/components/pill/pill.component.js +1 -0
- package/lib/components/select/__internal__/select-list-context.d.ts +7 -0
- package/lib/components/select/__internal__/select-text/index.d.ts +2 -0
- package/lib/components/select/__internal__/select-text/index.js +15 -0
- package/lib/components/select/__internal__/select-text/package.json +6 -0
- package/lib/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
- package/lib/components/select/__internal__/select-text/select-text.component.js +16 -36
- package/lib/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
- package/lib/components/select/filterable-select/filterable-select.component.d.ts +65 -0
- package/lib/components/select/filterable-select/filterable-select.component.js +569 -103
- package/lib/components/select/filterable-select/index.d.ts +2 -1
- package/lib/components/select/filterable-select/index.js +15 -0
- package/lib/components/select/filterable-select/package.json +6 -0
- package/lib/components/select/index.d.ts +6 -0
- package/lib/components/select/index.js +6 -6
- package/lib/components/select/list-action-button/index.d.ts +2 -0
- package/lib/components/select/list-action-button/index.js +15 -0
- package/lib/components/select/list-action-button/list-action-button.component.d.ts +7 -0
- package/lib/components/select/list-action-button/list-action-button.component.js +9 -6
- package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
- package/lib/components/select/list-action-button/package.json +6 -0
- package/lib/components/select/multi-select/index.d.ts +2 -1
- package/lib/components/select/multi-select/index.js +15 -0
- package/lib/components/select/multi-select/multi-select.component.d.ts +62 -0
- package/lib/components/select/multi-select/multi-select.component.js +576 -105
- package/lib/components/select/multi-select/multi-select.style.d.ts +4 -0
- package/lib/components/select/multi-select/multi-select.style.js +1 -0
- package/lib/components/select/multi-select/package.json +6 -0
- package/lib/components/select/option/index.d.ts +2 -25
- package/lib/components/select/option/index.js +15 -0
- package/lib/components/select/option/option.component.d.ts +34 -0
- package/lib/components/select/option/option.component.js +399 -62
- package/lib/components/select/option/option.style.d.ts +6 -0
- package/lib/components/select/option/option.style.js +0 -8
- package/lib/components/select/option/package.json +6 -0
- package/lib/components/select/option-group-header/index.d.ts +2 -10
- package/lib/components/select/option-group-header/index.js +15 -0
- package/lib/components/select/option-group-header/option-group-header.component.d.ts +16 -0
- package/lib/components/select/option-group-header/option-group-header.component.js +4 -15
- package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
- package/lib/components/select/option-group-header/package.json +6 -0
- package/lib/components/select/option-row/index.d.ts +2 -16
- package/lib/components/select/option-row/index.js +15 -0
- package/lib/components/select/option-row/option-row.component.d.ts +42 -0
- package/lib/components/select/option-row/option-row.component.js +10 -40
- package/lib/components/select/option-row/option-row.style.d.ts +6 -0
- package/lib/components/select/option-row/package.json +6 -0
- package/lib/components/select/select-list/index.d.ts +2 -0
- package/lib/components/select/select-list/index.js +15 -0
- package/lib/components/select/select-list/package.json +6 -0
- package/lib/components/select/select-list/select-list-container.style.d.ts +6 -0
- package/lib/components/select/select-list/select-list.component.d.ts +64 -0
- package/lib/components/select/select-list/select-list.component.js +69 -100
- package/lib/components/select/select-list/select-list.style.d.ts +12 -0
- package/lib/components/select/select-list/select-list.style.js +2 -2
- package/lib/components/select/select-textbox/index.d.ts +2 -1
- package/lib/components/select/select-textbox/index.js +15 -0
- package/lib/components/select/select-textbox/package.json +6 -0
- package/lib/components/select/select-textbox/select-textbox.component.d.ts +81 -0
- package/lib/components/select/select-textbox/select-textbox.component.js +567 -142
- package/lib/components/select/select.style.d.ts +8 -0
- package/lib/components/select/simple-select/index.d.ts +2 -1
- package/lib/components/select/simple-select/index.js +15 -0
- package/lib/components/select/simple-select/package.json +6 -0
- package/lib/components/select/simple-select/simple-select.component.d.ts +58 -0
- package/lib/components/select/simple-select/simple-select.component.js +579 -113
- package/lib/components/select/utils/get-next-child-by-text.d.ts +5 -0
- package/lib/components/select/utils/get-next-child-by-text.js +20 -17
- package/lib/components/select/utils/get-next-index-by-key.d.ts +2 -0
- package/lib/components/select/utils/highlight-part-of-text.d.ts +2 -0
- package/lib/components/select/utils/highlight-part-of-text.js +10 -3
- package/lib/components/select/utils/is-expected-option.d.ts +2 -0
- package/lib/components/select/utils/is-expected-option.js +1 -1
- package/lib/components/select/utils/is-expected-value.d.ts +1 -0
- package/lib/components/select/utils/is-expected-value.js +1 -1
- package/lib/components/select/utils/is-navigation-key.d.ts +1 -0
- package/lib/components/select/utils/matching-text.style.d.ts +2 -0
- package/lib/components/select/utils/with-filter.hoc.d.ts +14 -0
- package/lib/components/select/utils/with-filter.hoc.js +59 -42
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
- package/package.json +1 -1
- package/esm/components/select/__internal__/select-text/select-text.d.ts +0 -36
- package/esm/components/select/filterable-select/filterable-select.d.ts +0 -71
- package/esm/components/select/multi-select/multi-select.d.ts +0 -68
- package/esm/components/select/select-textbox/select-textbox.d.ts +0 -72
- package/esm/components/select/simple-select/simple-select.d.ts +0 -64
- package/lib/components/select/__internal__/select-text/select-text.d.ts +0 -36
- package/lib/components/select/filterable-select/filterable-select.d.ts +0 -71
- package/lib/components/select/multi-select/multi-select.d.ts +0 -68
- package/lib/components/select/select-textbox/select-textbox.d.ts +0 -72
- package/lib/components/select/simple-select/simple-select.d.ts +0 -64
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const StyledSelectPillContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
declare const StyledSelectMultiSelect: import("styled-components").StyledComponent<"div", any, import("../select.style").StyledSelectProps, never>;
|
|
3
|
+
declare const StyledAccessibilityLabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export { StyledSelectPillContainer, StyledSelectMultiSelect, StyledAccessibilityLabelContainer, };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface OptionProps {
|
|
4
|
-
/** The option's visible text, displayed within <Textbox> of <Select>, and used for filtering */
|
|
5
|
-
text: string;
|
|
6
|
-
/** Optional: alternative rendered content, displayed within <SelectList> of <Select> (eg: an icon, an image, etc) */
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
/** The option's invisible internal value */
|
|
9
|
-
value: string | Record<string, unknown>;
|
|
10
|
-
/** MultiSelect only - custom Pill border color - provide any color from palette or any valid css color value. */
|
|
11
|
-
borderColor?: string;
|
|
12
|
-
/** MultiSelect only - fill Pill background with color */
|
|
13
|
-
fill?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
* @ignore
|
|
17
|
-
* OnClick callback */
|
|
18
|
-
onClick?: (ev: React.MouseEvent<HTMLLIElement>) => void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare function Option(
|
|
22
|
-
props: OptionProps & React.RefAttributes<HTMLLIElement>
|
|
23
|
-
): JSX.Element;
|
|
24
|
-
|
|
25
|
-
export default Option;
|
|
1
|
+
export { default } from "./option.component";
|
|
2
|
+
export type { OptionProps } from "./option.component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./option.component";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface OptionProps extends Omit<React.InputHTMLAttributes<HTMLLIElement>, "value" | "onSelect" | "onClick"> {
|
|
3
|
+
/** The option's visible text, displayed within <Textbox> of <Select>, and used for filtering */
|
|
4
|
+
text: string;
|
|
5
|
+
/** Optional: alternative rendered content, displayed within <SelectList> of <Select> (eg: an icon, an image, etc) */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** The option's invisible internal value */
|
|
8
|
+
value: string | Record<string, unknown>;
|
|
9
|
+
/** MultiSelect only - custom Pill border color - provide any color from palette or any valid css color value. */
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
/** MultiSelect only - fill Pill background with color */
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
* @ignore
|
|
16
|
+
* OnClick callback */
|
|
17
|
+
onClick?: (value: string | Record<string, unknown>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* @private
|
|
20
|
+
* @ignore
|
|
21
|
+
* OnSelect callback */
|
|
22
|
+
onSelect?: (target?: {
|
|
23
|
+
text?: string;
|
|
24
|
+
value?: string | Record<string, unknown>;
|
|
25
|
+
id?: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
/**
|
|
28
|
+
* @private
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
index?: number;
|
|
32
|
+
}
|
|
33
|
+
declare const Option: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<HTMLLIElement>>;
|
|
34
|
+
export default Option;
|
|
@@ -25,20 +25,14 @@ const Option = /*#__PURE__*/React.forwardRef(({
|
|
|
25
25
|
|
|
26
26
|
function handleClick() {
|
|
27
27
|
if (!onClick) {
|
|
28
|
-
onSelect({
|
|
28
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect({
|
|
29
29
|
text,
|
|
30
30
|
value,
|
|
31
31
|
id
|
|
32
32
|
});
|
|
33
33
|
} else {
|
|
34
|
-
onSelect();
|
|
35
|
-
onClick(
|
|
36
|
-
target: {
|
|
37
|
-
text,
|
|
38
|
-
value,
|
|
39
|
-
id
|
|
40
|
-
}
|
|
41
|
-
});
|
|
34
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
35
|
+
onClick(value);
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
38
|
|
|
@@ -55,58 +49,401 @@ const Option = /*#__PURE__*/React.forwardRef(({
|
|
|
55
49
|
}, rest), children || text);
|
|
56
50
|
});
|
|
57
51
|
Option.propTypes = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
52
|
+
"about": PropTypes.string,
|
|
53
|
+
"accept": PropTypes.string,
|
|
54
|
+
"accessKey": PropTypes.string,
|
|
55
|
+
"alt": PropTypes.string,
|
|
56
|
+
"aria-activedescendant": PropTypes.string,
|
|
57
|
+
"aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
58
|
+
"aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
|
|
59
|
+
"aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
60
|
+
"aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
61
|
+
"aria-colcount": PropTypes.number,
|
|
62
|
+
"aria-colindex": PropTypes.number,
|
|
63
|
+
"aria-colspan": PropTypes.number,
|
|
64
|
+
"aria-controls": PropTypes.string,
|
|
65
|
+
"aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
|
|
66
|
+
"aria-describedby": PropTypes.string,
|
|
67
|
+
"aria-details": PropTypes.string,
|
|
68
|
+
"aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
69
|
+
"aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
|
|
70
|
+
"aria-errormessage": PropTypes.string,
|
|
71
|
+
"aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
72
|
+
"aria-flowto": PropTypes.string,
|
|
73
|
+
"aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
74
|
+
"aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
|
|
75
|
+
"aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
76
|
+
"aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
|
|
77
|
+
"aria-keyshortcuts": PropTypes.string,
|
|
78
|
+
"aria-label": PropTypes.string,
|
|
79
|
+
"aria-labelledby": PropTypes.string,
|
|
80
|
+
"aria-level": PropTypes.number,
|
|
81
|
+
"aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
|
|
82
|
+
"aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
83
|
+
"aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
84
|
+
"aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
85
|
+
"aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
|
|
86
|
+
"aria-owns": PropTypes.string,
|
|
87
|
+
"aria-placeholder": PropTypes.string,
|
|
88
|
+
"aria-posinset": PropTypes.number,
|
|
89
|
+
"aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
90
|
+
"aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
91
|
+
"aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
|
|
92
|
+
"aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
93
|
+
"aria-roledescription": PropTypes.string,
|
|
94
|
+
"aria-rowcount": PropTypes.number,
|
|
95
|
+
"aria-rowindex": PropTypes.number,
|
|
96
|
+
"aria-rowspan": PropTypes.number,
|
|
97
|
+
"aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
98
|
+
"aria-setsize": PropTypes.number,
|
|
99
|
+
"aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
|
|
100
|
+
"aria-valuemax": PropTypes.number,
|
|
101
|
+
"aria-valuemin": PropTypes.number,
|
|
102
|
+
"aria-valuenow": PropTypes.number,
|
|
103
|
+
"aria-valuetext": PropTypes.string,
|
|
104
|
+
"autoCapitalize": PropTypes.string,
|
|
105
|
+
"autoComplete": PropTypes.string,
|
|
106
|
+
"autoCorrect": PropTypes.string,
|
|
107
|
+
"autoFocus": PropTypes.bool,
|
|
108
|
+
"autoSave": PropTypes.string,
|
|
109
|
+
"borderColor": PropTypes.string,
|
|
110
|
+
"capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
|
|
111
|
+
"checked": PropTypes.bool,
|
|
112
|
+
"children": PropTypes.node,
|
|
113
|
+
"className": PropTypes.string,
|
|
114
|
+
"color": PropTypes.string,
|
|
115
|
+
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
116
|
+
"contextMenu": PropTypes.string,
|
|
117
|
+
"crossOrigin": PropTypes.string,
|
|
118
|
+
"css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
119
|
+
"__emotion_styles": PropTypes.any.isRequired
|
|
120
|
+
}), PropTypes.string, PropTypes.bool]),
|
|
121
|
+
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
122
|
+
"__html": PropTypes.string.isRequired
|
|
123
|
+
}),
|
|
124
|
+
"datatype": PropTypes.string,
|
|
125
|
+
"defaultChecked": PropTypes.bool,
|
|
126
|
+
"defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
|
|
127
|
+
"dir": PropTypes.string,
|
|
128
|
+
"disabled": PropTypes.bool,
|
|
129
|
+
"draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
130
|
+
"enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
131
|
+
"fill": PropTypes.bool,
|
|
132
|
+
"form": PropTypes.string,
|
|
133
|
+
"formAction": PropTypes.string,
|
|
134
|
+
"formEncType": PropTypes.string,
|
|
135
|
+
"formMethod": PropTypes.string,
|
|
136
|
+
"formNoValidate": PropTypes.bool,
|
|
137
|
+
"formTarget": PropTypes.string,
|
|
138
|
+
"height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
139
|
+
"hidden": PropTypes.bool,
|
|
140
|
+
"id": PropTypes.string,
|
|
141
|
+
"index": PropTypes.number,
|
|
142
|
+
"inlist": PropTypes.any,
|
|
143
|
+
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
144
|
+
"is": PropTypes.string,
|
|
145
|
+
"itemID": PropTypes.string,
|
|
146
|
+
"itemProp": PropTypes.string,
|
|
147
|
+
"itemRef": PropTypes.string,
|
|
148
|
+
"itemScope": PropTypes.bool,
|
|
149
|
+
"itemType": PropTypes.string,
|
|
150
|
+
"lang": PropTypes.string,
|
|
151
|
+
"list": PropTypes.string,
|
|
152
|
+
"max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
153
|
+
"maxLength": PropTypes.number,
|
|
154
|
+
"min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
155
|
+
"minLength": PropTypes.number,
|
|
156
|
+
"multiple": PropTypes.bool,
|
|
157
|
+
"name": PropTypes.string,
|
|
158
|
+
"onAbort": PropTypes.func,
|
|
159
|
+
"onAbortCapture": PropTypes.func,
|
|
160
|
+
"onAnimationEnd": PropTypes.func,
|
|
161
|
+
"onAnimationEndCapture": PropTypes.func,
|
|
162
|
+
"onAnimationIteration": PropTypes.func,
|
|
163
|
+
"onAnimationIterationCapture": PropTypes.func,
|
|
164
|
+
"onAnimationStart": PropTypes.func,
|
|
165
|
+
"onAnimationStartCapture": PropTypes.func,
|
|
166
|
+
"onAuxClick": PropTypes.func,
|
|
167
|
+
"onAuxClickCapture": PropTypes.func,
|
|
168
|
+
"onBeforeInput": PropTypes.func,
|
|
169
|
+
"onBeforeInputCapture": PropTypes.func,
|
|
170
|
+
"onBlur": PropTypes.func,
|
|
171
|
+
"onBlurCapture": PropTypes.func,
|
|
172
|
+
"onCanPlay": PropTypes.func,
|
|
173
|
+
"onCanPlayCapture": PropTypes.func,
|
|
174
|
+
"onCanPlayThrough": PropTypes.func,
|
|
175
|
+
"onCanPlayThroughCapture": PropTypes.func,
|
|
176
|
+
"onChange": PropTypes.func,
|
|
177
|
+
"onChangeCapture": PropTypes.func,
|
|
178
|
+
"onClick": PropTypes.func,
|
|
179
|
+
"onClickCapture": PropTypes.func,
|
|
180
|
+
"onCompositionEnd": PropTypes.func,
|
|
181
|
+
"onCompositionEndCapture": PropTypes.func,
|
|
182
|
+
"onCompositionStart": PropTypes.func,
|
|
183
|
+
"onCompositionStartCapture": PropTypes.func,
|
|
184
|
+
"onCompositionUpdate": PropTypes.func,
|
|
185
|
+
"onCompositionUpdateCapture": PropTypes.func,
|
|
186
|
+
"onContextMenu": PropTypes.func,
|
|
187
|
+
"onContextMenuCapture": PropTypes.func,
|
|
188
|
+
"onCopy": PropTypes.func,
|
|
189
|
+
"onCopyCapture": PropTypes.func,
|
|
190
|
+
"onCut": PropTypes.func,
|
|
191
|
+
"onCutCapture": PropTypes.func,
|
|
192
|
+
"onDoubleClick": PropTypes.func,
|
|
193
|
+
"onDoubleClickCapture": PropTypes.func,
|
|
194
|
+
"onDrag": PropTypes.func,
|
|
195
|
+
"onDragCapture": PropTypes.func,
|
|
196
|
+
"onDragEnd": PropTypes.func,
|
|
197
|
+
"onDragEndCapture": PropTypes.func,
|
|
198
|
+
"onDragEnter": PropTypes.func,
|
|
199
|
+
"onDragEnterCapture": PropTypes.func,
|
|
200
|
+
"onDragExit": PropTypes.func,
|
|
201
|
+
"onDragExitCapture": PropTypes.func,
|
|
202
|
+
"onDragLeave": PropTypes.func,
|
|
203
|
+
"onDragLeaveCapture": PropTypes.func,
|
|
204
|
+
"onDragOver": PropTypes.func,
|
|
205
|
+
"onDragOverCapture": PropTypes.func,
|
|
206
|
+
"onDragStart": PropTypes.func,
|
|
207
|
+
"onDragStartCapture": PropTypes.func,
|
|
208
|
+
"onDrop": PropTypes.func,
|
|
209
|
+
"onDropCapture": PropTypes.func,
|
|
210
|
+
"onDurationChange": PropTypes.func,
|
|
211
|
+
"onDurationChangeCapture": PropTypes.func,
|
|
212
|
+
"onEmptied": PropTypes.func,
|
|
213
|
+
"onEmptiedCapture": PropTypes.func,
|
|
214
|
+
"onEncrypted": PropTypes.func,
|
|
215
|
+
"onEncryptedCapture": PropTypes.func,
|
|
216
|
+
"onEnded": PropTypes.func,
|
|
217
|
+
"onEndedCapture": PropTypes.func,
|
|
218
|
+
"onError": PropTypes.func,
|
|
219
|
+
"onErrorCapture": PropTypes.func,
|
|
220
|
+
"onFocus": PropTypes.func,
|
|
221
|
+
"onFocusCapture": PropTypes.func,
|
|
222
|
+
"onGotPointerCapture": PropTypes.func,
|
|
223
|
+
"onGotPointerCaptureCapture": PropTypes.func,
|
|
224
|
+
"onInput": PropTypes.func,
|
|
225
|
+
"onInputCapture": PropTypes.func,
|
|
226
|
+
"onInvalid": PropTypes.func,
|
|
227
|
+
"onInvalidCapture": PropTypes.func,
|
|
228
|
+
"onKeyDown": PropTypes.func,
|
|
229
|
+
"onKeyDownCapture": PropTypes.func,
|
|
230
|
+
"onKeyPress": PropTypes.func,
|
|
231
|
+
"onKeyPressCapture": PropTypes.func,
|
|
232
|
+
"onKeyUp": PropTypes.func,
|
|
233
|
+
"onKeyUpCapture": PropTypes.func,
|
|
234
|
+
"onLoad": PropTypes.func,
|
|
235
|
+
"onLoadCapture": PropTypes.func,
|
|
236
|
+
"onLoadedData": PropTypes.func,
|
|
237
|
+
"onLoadedDataCapture": PropTypes.func,
|
|
238
|
+
"onLoadedMetadata": PropTypes.func,
|
|
239
|
+
"onLoadedMetadataCapture": PropTypes.func,
|
|
240
|
+
"onLoadStart": PropTypes.func,
|
|
241
|
+
"onLoadStartCapture": PropTypes.func,
|
|
242
|
+
"onLostPointerCapture": PropTypes.func,
|
|
243
|
+
"onLostPointerCaptureCapture": PropTypes.func,
|
|
244
|
+
"onMouseDown": PropTypes.func,
|
|
245
|
+
"onMouseDownCapture": PropTypes.func,
|
|
246
|
+
"onMouseEnter": PropTypes.func,
|
|
247
|
+
"onMouseLeave": PropTypes.func,
|
|
248
|
+
"onMouseMove": PropTypes.func,
|
|
249
|
+
"onMouseMoveCapture": PropTypes.func,
|
|
250
|
+
"onMouseOut": PropTypes.func,
|
|
251
|
+
"onMouseOutCapture": PropTypes.func,
|
|
252
|
+
"onMouseOver": PropTypes.func,
|
|
253
|
+
"onMouseOverCapture": PropTypes.func,
|
|
254
|
+
"onMouseUp": PropTypes.func,
|
|
255
|
+
"onMouseUpCapture": PropTypes.func,
|
|
256
|
+
"onPaste": PropTypes.func,
|
|
257
|
+
"onPasteCapture": PropTypes.func,
|
|
258
|
+
"onPause": PropTypes.func,
|
|
259
|
+
"onPauseCapture": PropTypes.func,
|
|
260
|
+
"onPlay": PropTypes.func,
|
|
261
|
+
"onPlayCapture": PropTypes.func,
|
|
262
|
+
"onPlaying": PropTypes.func,
|
|
263
|
+
"onPlayingCapture": PropTypes.func,
|
|
264
|
+
"onPointerCancel": PropTypes.func,
|
|
265
|
+
"onPointerCancelCapture": PropTypes.func,
|
|
266
|
+
"onPointerDown": PropTypes.func,
|
|
267
|
+
"onPointerDownCapture": PropTypes.func,
|
|
268
|
+
"onPointerEnter": PropTypes.func,
|
|
269
|
+
"onPointerEnterCapture": PropTypes.func,
|
|
270
|
+
"onPointerLeave": PropTypes.func,
|
|
271
|
+
"onPointerLeaveCapture": PropTypes.func,
|
|
272
|
+
"onPointerMove": PropTypes.func,
|
|
273
|
+
"onPointerMoveCapture": PropTypes.func,
|
|
274
|
+
"onPointerOut": PropTypes.func,
|
|
275
|
+
"onPointerOutCapture": PropTypes.func,
|
|
276
|
+
"onPointerOver": PropTypes.func,
|
|
277
|
+
"onPointerOverCapture": PropTypes.func,
|
|
278
|
+
"onPointerUp": PropTypes.func,
|
|
279
|
+
"onPointerUpCapture": PropTypes.func,
|
|
280
|
+
"onProgress": PropTypes.func,
|
|
281
|
+
"onProgressCapture": PropTypes.func,
|
|
282
|
+
"onRateChange": PropTypes.func,
|
|
283
|
+
"onRateChangeCapture": PropTypes.func,
|
|
284
|
+
"onReset": PropTypes.func,
|
|
285
|
+
"onResetCapture": PropTypes.func,
|
|
286
|
+
"onScroll": PropTypes.func,
|
|
287
|
+
"onScrollCapture": PropTypes.func,
|
|
288
|
+
"onSeeked": PropTypes.func,
|
|
289
|
+
"onSeekedCapture": PropTypes.func,
|
|
290
|
+
"onSeeking": PropTypes.func,
|
|
291
|
+
"onSeekingCapture": PropTypes.func,
|
|
292
|
+
"onSelect": PropTypes.func,
|
|
293
|
+
"onSelectCapture": PropTypes.func,
|
|
294
|
+
"onStalled": PropTypes.func,
|
|
295
|
+
"onStalledCapture": PropTypes.func,
|
|
296
|
+
"onSubmit": PropTypes.func,
|
|
297
|
+
"onSubmitCapture": PropTypes.func,
|
|
298
|
+
"onSuspend": PropTypes.func,
|
|
299
|
+
"onSuspendCapture": PropTypes.func,
|
|
300
|
+
"onTimeUpdate": PropTypes.func,
|
|
301
|
+
"onTimeUpdateCapture": PropTypes.func,
|
|
302
|
+
"onTouchCancel": PropTypes.func,
|
|
303
|
+
"onTouchCancelCapture": PropTypes.func,
|
|
304
|
+
"onTouchEnd": PropTypes.func,
|
|
305
|
+
"onTouchEndCapture": PropTypes.func,
|
|
306
|
+
"onTouchMove": PropTypes.func,
|
|
307
|
+
"onTouchMoveCapture": PropTypes.func,
|
|
308
|
+
"onTouchStart": PropTypes.func,
|
|
309
|
+
"onTouchStartCapture": PropTypes.func,
|
|
310
|
+
"onTransitionEnd": PropTypes.func,
|
|
311
|
+
"onTransitionEndCapture": PropTypes.func,
|
|
312
|
+
"onVolumeChange": PropTypes.func,
|
|
313
|
+
"onVolumeChangeCapture": PropTypes.func,
|
|
314
|
+
"onWaiting": PropTypes.func,
|
|
315
|
+
"onWaitingCapture": PropTypes.func,
|
|
316
|
+
"onWheel": PropTypes.func,
|
|
317
|
+
"onWheelCapture": PropTypes.func,
|
|
318
|
+
"pattern": PropTypes.string,
|
|
319
|
+
"placeholder": PropTypes.string,
|
|
320
|
+
"prefix": PropTypes.string,
|
|
321
|
+
"property": PropTypes.string,
|
|
322
|
+
"radioGroup": PropTypes.string,
|
|
323
|
+
"readOnly": PropTypes.bool,
|
|
324
|
+
"required": PropTypes.bool,
|
|
325
|
+
"resource": PropTypes.string,
|
|
326
|
+
"results": PropTypes.number,
|
|
327
|
+
"role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
|
|
328
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
329
|
+
"anchor": PropTypes.func.isRequired,
|
|
330
|
+
"at": PropTypes.func.isRequired,
|
|
331
|
+
"big": PropTypes.func.isRequired,
|
|
332
|
+
"blink": PropTypes.func.isRequired,
|
|
333
|
+
"bold": PropTypes.func.isRequired,
|
|
334
|
+
"charAt": PropTypes.func.isRequired,
|
|
335
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
336
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
337
|
+
"concat": PropTypes.func.isRequired,
|
|
338
|
+
"endsWith": PropTypes.func.isRequired,
|
|
339
|
+
"fixed": PropTypes.func.isRequired,
|
|
340
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
341
|
+
"fontsize": PropTypes.func.isRequired,
|
|
342
|
+
"includes": PropTypes.func.isRequired,
|
|
343
|
+
"indexOf": PropTypes.func.isRequired,
|
|
344
|
+
"italics": PropTypes.func.isRequired,
|
|
345
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
346
|
+
"length": PropTypes.number.isRequired,
|
|
347
|
+
"link": PropTypes.func.isRequired,
|
|
348
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
349
|
+
"match": PropTypes.func.isRequired,
|
|
350
|
+
"matchAll": PropTypes.func.isRequired,
|
|
351
|
+
"normalize": PropTypes.func.isRequired,
|
|
352
|
+
"padEnd": PropTypes.func.isRequired,
|
|
353
|
+
"padStart": PropTypes.func.isRequired,
|
|
354
|
+
"repeat": PropTypes.func.isRequired,
|
|
355
|
+
"replace": PropTypes.func.isRequired,
|
|
356
|
+
"search": PropTypes.func.isRequired,
|
|
357
|
+
"slice": PropTypes.func.isRequired,
|
|
358
|
+
"small": PropTypes.func.isRequired,
|
|
359
|
+
"split": PropTypes.func.isRequired,
|
|
360
|
+
"startsWith": PropTypes.func.isRequired,
|
|
361
|
+
"strike": PropTypes.func.isRequired,
|
|
362
|
+
"sub": PropTypes.func.isRequired,
|
|
363
|
+
"substr": PropTypes.func.isRequired,
|
|
364
|
+
"substring": PropTypes.func.isRequired,
|
|
365
|
+
"sup": PropTypes.func.isRequired,
|
|
366
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
367
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
368
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
369
|
+
"toString": PropTypes.func.isRequired,
|
|
370
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
371
|
+
"trim": PropTypes.func.isRequired,
|
|
372
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
373
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
374
|
+
"trimRight": PropTypes.func.isRequired,
|
|
375
|
+
"trimStart": PropTypes.func.isRequired,
|
|
376
|
+
"valueOf": PropTypes.func.isRequired
|
|
377
|
+
})]),
|
|
378
|
+
"security": PropTypes.string,
|
|
379
|
+
"size": PropTypes.number,
|
|
380
|
+
"slot": PropTypes.string,
|
|
381
|
+
"spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
382
|
+
"src": PropTypes.string,
|
|
383
|
+
"step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
384
|
+
"style": PropTypes.object,
|
|
385
|
+
"suppressContentEditableWarning": PropTypes.bool,
|
|
386
|
+
"suppressHydrationWarning": PropTypes.bool,
|
|
387
|
+
"tabIndex": PropTypes.number,
|
|
388
|
+
"text": PropTypes.string.isRequired,
|
|
389
|
+
"title": PropTypes.string,
|
|
390
|
+
"translate": PropTypes.oneOf(["no", "yes"]),
|
|
391
|
+
"type": PropTypes.oneOfType([PropTypes.oneOf(["button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week"]), PropTypes.shape({
|
|
392
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
393
|
+
"anchor": PropTypes.func.isRequired,
|
|
394
|
+
"at": PropTypes.func.isRequired,
|
|
395
|
+
"big": PropTypes.func.isRequired,
|
|
396
|
+
"blink": PropTypes.func.isRequired,
|
|
397
|
+
"bold": PropTypes.func.isRequired,
|
|
398
|
+
"charAt": PropTypes.func.isRequired,
|
|
399
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
400
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
401
|
+
"concat": PropTypes.func.isRequired,
|
|
402
|
+
"endsWith": PropTypes.func.isRequired,
|
|
403
|
+
"fixed": PropTypes.func.isRequired,
|
|
404
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
405
|
+
"fontsize": PropTypes.func.isRequired,
|
|
406
|
+
"includes": PropTypes.func.isRequired,
|
|
407
|
+
"indexOf": PropTypes.func.isRequired,
|
|
408
|
+
"italics": PropTypes.func.isRequired,
|
|
409
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
410
|
+
"length": PropTypes.number.isRequired,
|
|
411
|
+
"link": PropTypes.func.isRequired,
|
|
412
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
413
|
+
"match": PropTypes.func.isRequired,
|
|
414
|
+
"matchAll": PropTypes.func.isRequired,
|
|
415
|
+
"normalize": PropTypes.func.isRequired,
|
|
416
|
+
"padEnd": PropTypes.func.isRequired,
|
|
417
|
+
"padStart": PropTypes.func.isRequired,
|
|
418
|
+
"repeat": PropTypes.func.isRequired,
|
|
419
|
+
"replace": PropTypes.func.isRequired,
|
|
420
|
+
"search": PropTypes.func.isRequired,
|
|
421
|
+
"slice": PropTypes.func.isRequired,
|
|
422
|
+
"small": PropTypes.func.isRequired,
|
|
423
|
+
"split": PropTypes.func.isRequired,
|
|
424
|
+
"startsWith": PropTypes.func.isRequired,
|
|
425
|
+
"strike": PropTypes.func.isRequired,
|
|
426
|
+
"sub": PropTypes.func.isRequired,
|
|
427
|
+
"substr": PropTypes.func.isRequired,
|
|
428
|
+
"substring": PropTypes.func.isRequired,
|
|
429
|
+
"sup": PropTypes.func.isRequired,
|
|
430
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
431
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
432
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
433
|
+
"toString": PropTypes.func.isRequired,
|
|
434
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
435
|
+
"trim": PropTypes.func.isRequired,
|
|
436
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
437
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
438
|
+
"trimRight": PropTypes.func.isRequired,
|
|
439
|
+
"trimStart": PropTypes.func.isRequired,
|
|
440
|
+
"valueOf": PropTypes.func.isRequired
|
|
441
|
+
})]),
|
|
442
|
+
"typeof": PropTypes.string,
|
|
443
|
+
"unselectable": PropTypes.oneOf(["off", "on"]),
|
|
444
|
+
"value": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired,
|
|
445
|
+
"vocab": PropTypes.string,
|
|
446
|
+
"width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
111
447
|
};
|
|
448
|
+
Option.displayName = "Option";
|
|
112
449
|
export default Option;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OptionProps } from ".";
|
|
2
|
+
interface StyledOptionProps extends Pick<OptionProps, "id"> {
|
|
3
|
+
isHighlighted?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const StyledOption: import("styled-components").StyledComponent<"li", any, StyledOptionProps, never>;
|
|
6
|
+
export default StyledOption;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
|
-
import propTypes from "prop-types";
|
|
3
2
|
const StyledOption = styled.li`
|
|
4
3
|
cursor: pointer;
|
|
5
4
|
box-sizing: border-box;
|
|
@@ -26,8 +25,4 @@ const StyledOption = styled.li`
|
|
|
26
25
|
background-color: var(--colorsUtilityMajor100);
|
|
27
26
|
}
|
|
28
27
|
`;
|
|
29
|
-
StyledOption.propTypes = {
|
|
30
|
-
id: propTypes.any,
|
|
31
|
-
isHighlighted: propTypes.bool
|
|
32
|
-
};
|
|
33
28
|
export default StyledOption;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
/** Any valid Carbon icon name */
|
|
5
|
-
icon?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare function OptionGroupHeader(props: OptionGroupHeaderProps): JSX.Element;
|
|
9
|
-
|
|
10
|
-
export default OptionGroupHeader;
|
|
1
|
+
export { default } from "./option-group-header.component";
|
|
2
|
+
export type { OptionGroupHeaderProps } from "./option-group-header.component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./option-group-header.component";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CSSProperties } from "styled-components";
|
|
3
|
+
import { IconProps } from "../../icon";
|
|
4
|
+
export interface OptionGroupHeaderProps {
|
|
5
|
+
/** Heading text */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Any valid Carbon icon name */
|
|
8
|
+
icon?: IconProps["type"];
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
* @ignore
|
|
12
|
+
* object containing CSS styles to be passed to the underlying DOM element */
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
declare const OptionGroupHeader: React.ForwardRefExoticComponent<OptionGroupHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export default OptionGroupHeader;
|
|
@@ -19,20 +19,9 @@ const OptionGroupHeader = /*#__PURE__*/React.forwardRef(({
|
|
|
19
19
|
}), /*#__PURE__*/React.createElement("h4", null, label));
|
|
20
20
|
});
|
|
21
21
|
OptionGroupHeader.propTypes = {
|
|
22
|
-
|
|
23
|
-
label: PropTypes.string.isRequired,
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* <a href="https://brand.sage.com/d/NdbrveWvNheA/foundations#/icons/icons" target="_blank">List of supported icons</a>
|
|
27
|
-
*
|
|
28
|
-
* Any valid Carbon icon name
|
|
29
|
-
*/
|
|
30
|
-
icon: PropTypes.string,
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @private
|
|
34
|
-
* @ignore
|
|
35
|
-
* object containing CSS styles to be passed to the underlying DOM element */
|
|
36
|
-
style: PropTypes.object
|
|
22
|
+
"icon": PropTypes.oneOf(["add", "admin", "alert_on", "alert", "analysis", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "coins", "collaborate", "computer_clock", "connect", "construction", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "italic", "key", "laptop", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "link", "list_view", "location", "locked", "logout", "lookup", "maintenance", "marker", "message", "messages", "minus_large", "minus", "mobile", "money_bag", "new", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "question_hollow", "question_mark", "question", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "success", "sync", "tag", "talk", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "warning"]),
|
|
23
|
+
"label": PropTypes.string.isRequired,
|
|
24
|
+
"style": PropTypes.object
|
|
37
25
|
};
|
|
26
|
+
OptionGroupHeader.displayName = "OptionGroupHeader";
|
|
38
27
|
export default OptionGroupHeader;
|