@kaizen/components 2.5.0 → 3.0.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.
- package/dist/cjs/src/Button/Button.cjs +2 -4
- package/dist/cjs/src/GuidanceBlock/GuidanceBlock.cjs +16 -82
- package/dist/cjs/src/GuidanceBlock/GuidanceBlock.module.css.cjs +0 -1
- package/dist/cjs/src/LinkButton/LinkButton.cjs +2 -4
- package/dist/cjs/src/Modal/ConfirmationModal/ConfirmationModal.cjs +3 -2
- package/dist/cjs/src/Modal/ContextModal/ContextModal.cjs +0 -1
- package/dist/cjs/src/Modal/GenericModal/GenericModal.cjs +2 -2
- package/dist/cjs/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +3 -6
- package/dist/cjs/src/Select/Select.cjs +14 -15
- package/dist/cjs/src/Select/Select.module.scss.cjs +0 -1
- package/dist/cjs/src/SingleSelect/SingleSelect.cjs +12 -19
- package/dist/cjs/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.cjs +3 -5
- package/dist/cjs/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss.cjs +0 -1
- package/dist/cjs/src/TimeField/TimeField.cjs +2 -3
- package/dist/esm/src/Button/Button.mjs +2 -4
- package/dist/esm/src/GuidanceBlock/GuidanceBlock.mjs +18 -84
- package/dist/esm/src/GuidanceBlock/GuidanceBlock.module.css.mjs +0 -1
- package/dist/esm/src/LinkButton/LinkButton.mjs +2 -4
- package/dist/esm/src/Modal/ConfirmationModal/ConfirmationModal.mjs +3 -2
- package/dist/esm/src/Modal/ContextModal/ContextModal.mjs +0 -1
- package/dist/esm/src/Modal/GenericModal/GenericModal.mjs +2 -2
- package/dist/esm/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +3 -6
- package/dist/esm/src/Select/Select.mjs +14 -15
- package/dist/esm/src/Select/Select.module.scss.mjs +0 -1
- package/dist/esm/src/SingleSelect/SingleSelect.mjs +12 -19
- package/dist/esm/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.mjs +3 -5
- package/dist/esm/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss.mjs +0 -1
- package/dist/esm/src/TimeField/TimeField.mjs +2 -3
- package/dist/styles.css +0 -94
- package/dist/types/Button/Button.d.ts +0 -5
- package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +2 -1
- package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +2 -1
- package/dist/types/Calendar/types.d.ts +1 -0
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +1 -26
- package/dist/types/Input/Input/Input.d.ts +1 -6
- package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +1 -5
- package/dist/types/Select/Select.d.ts +3 -13
- package/dist/types/SingleSelect/SingleSelect.d.ts +2 -24
- package/dist/types/SingleSelect/subcomponents/SelectToggle/SelectToggle.d.ts +2 -12
- package/dist/types/TextArea/TextArea.d.ts +1 -6
- package/dist/types/TimeField/TimeField.d.ts +1 -1
- package/package.json +1 -2
- package/src/Button/Button.tsx +1 -8
- package/src/Button/_docs/Button--api-specification.mdx +0 -1
- package/src/Calendar/CalendarRange/CalendarRange.tsx +4 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +4 -1
- package/src/Calendar/types.ts +18 -0
- package/src/GuidanceBlock/GuidanceBlock.module.css +0 -8
- package/src/GuidanceBlock/GuidanceBlock.spec.tsx +1 -26
- package/src/GuidanceBlock/GuidanceBlock.tsx +2 -112
- package/src/GuidanceBlock/_docs/GuidanceBlock.stories.tsx +0 -90
- package/src/Input/Input/Input.module.scss +0 -31
- package/src/Input/Input/Input.tsx +1 -6
- package/src/LinkButton/LinkButton.tsx +1 -3
- package/src/LinkButton/_docs/LinkButton--api-specification.mdx +0 -1
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +7 -6
- package/src/Modal/ContextModal/ContextModal.tsx +0 -1
- package/src/Modal/GenericModal/GenericModal.tsx +3 -4
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +2 -8
- package/src/Select/Select.module.scss +0 -16
- package/src/Select/Select.tsx +16 -19
- package/src/SingleSelect/SingleSelect.tsx +1 -14
- package/src/SingleSelect/_docs/SingleSelect.stories.tsx +5 -2
- package/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss +0 -8
- package/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.tsx +2 -9
- package/src/TextArea/TextArea.tsx +1 -6
- package/src/TimeField/TimeField.tsx +2 -9
- package/dist/cjs/src/Modal/util/console.cjs +0 -16
- package/dist/esm/src/Modal/util/console.mjs +0 -13
- package/dist/types/Modal/util/console.d.ts +0 -5
- package/dist/types/utils/useResizeObserver.d.ts +0 -22
- package/src/Modal/util/console.ts +0 -13
- package/src/utils/useResizeObserver.ts +0 -73
|
@@ -77,7 +77,9 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
77
77
|
if (onConfirm) {
|
|
78
78
|
var confirmAction = {
|
|
79
79
|
label: confirmLabel,
|
|
80
|
-
onClick: onConfirm
|
|
80
|
+
onClick: onConfirm,
|
|
81
|
+
destructive: variant === 'warning',
|
|
82
|
+
primary: variant !== 'warning'
|
|
81
83
|
};
|
|
82
84
|
var workingProps = confirmWorking ? {
|
|
83
85
|
working: true,
|
|
@@ -118,7 +120,6 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
118
120
|
className: classnames(isProminent && styles.prominent, !unpadded && styles.padded)
|
|
119
121
|
}, /*#__PURE__*/React.createElement(ModalAccessibleDescription, null, children))), /*#__PURE__*/React.createElement(ModalFooter, {
|
|
120
122
|
actions: footerActions,
|
|
121
|
-
appearance: variant == 'warning' ? 'destructive' : 'primary',
|
|
122
123
|
unpadded: unpadded
|
|
123
124
|
})));
|
|
124
125
|
};
|
|
@@ -4,7 +4,6 @@ import { Transition } from '@headlessui/react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { FocusOn } from 'react-focus-on';
|
|
6
6
|
import { useIsClientReady } from '../../utils/useIsClientReady/useIsClientReady.mjs';
|
|
7
|
-
import { warn } from '../util/console.mjs';
|
|
8
7
|
import { ModalContext } from './context/ModalContext.mjs';
|
|
9
8
|
import styles from './GenericModal.module.scss.mjs';
|
|
10
9
|
const GenericModal = /*#__PURE__*/function () {
|
|
@@ -42,7 +41,8 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
42
41
|
// Ensure that consumers have provided an element that labels the modal
|
|
43
42
|
// to meet ARIA accessibility guidelines.
|
|
44
43
|
if (!document.getElementById(labelledByID)) {
|
|
45
|
-
|
|
44
|
+
// eslint-disable-next-line no-console
|
|
45
|
+
console.warn('When using the Modal component, you must provide a label for the modal. Make sure you have a <ModalAccessibleLabel /> component with content that labels the modal.');
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
var focusOnAccessibleLabel = function () {
|
|
@@ -10,11 +10,9 @@ const ModalFooter = /*#__PURE__*/function () {
|
|
|
10
10
|
const ModalFooter = function (_a) {
|
|
11
11
|
var unpadded = _a.unpadded,
|
|
12
12
|
actions = _a.actions,
|
|
13
|
-
_b = _a.appearance,
|
|
14
|
-
appearance = _b === void 0 ? 'primary' : _b,
|
|
15
13
|
alignStart = _a.alignStart,
|
|
16
14
|
variant = _a.variant,
|
|
17
|
-
props = __rest(_a, ["unpadded", "actions", "
|
|
15
|
+
props = __rest(_a, ["unpadded", "actions", "alignStart", "variant"]);
|
|
18
16
|
var queries = useMediaQueries().queries;
|
|
19
17
|
return /*#__PURE__*/React.createElement(ModalBody, {
|
|
20
18
|
inputEdit: variant === 'inputEdit'
|
|
@@ -26,9 +24,8 @@ const ModalFooter = /*#__PURE__*/function () {
|
|
|
26
24
|
key: index
|
|
27
25
|
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
28
26
|
type: "button",
|
|
29
|
-
primary: index === 0 &&
|
|
30
|
-
|
|
31
|
-
secondary: index > 0,
|
|
27
|
+
primary: index === 0 && !action.destructive && !action.secondary,
|
|
28
|
+
secondary: index > 0 && !action.destructive && !action.primary,
|
|
32
29
|
fullWidth: queries.isSmall
|
|
33
30
|
}, action)));
|
|
34
31
|
})));
|
|
@@ -11,6 +11,14 @@ import { Label } from '../Label/Label.mjs';
|
|
|
11
11
|
import { Tag } from '../Tag/Tag.mjs';
|
|
12
12
|
import styles from './Select.module.scss.mjs';
|
|
13
13
|
|
|
14
|
+
// react-select defaults to showing "Select..." placeholder text, which goes against our a11y
|
|
15
|
+
// standards — use `label` for the field name and `description` for help text instead.
|
|
16
|
+
// `noPlaceholderText` overrides the default string; `NullPlaceholder` removes the empty DOM node
|
|
17
|
+
// that react-select still renders even when the text is empty.
|
|
18
|
+
var noPlaceholderText = '';
|
|
19
|
+
var NullPlaceholder = function () {
|
|
20
|
+
return null;
|
|
21
|
+
};
|
|
14
22
|
/**
|
|
15
23
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896474/Select Guidance} |
|
|
16
24
|
* {@link https://cultureamp.design/?path=/docs/components-select--docs Storybook}
|
|
@@ -28,8 +36,7 @@ const Select = /*#__PURE__*/function () {
|
|
|
28
36
|
description = _a.description,
|
|
29
37
|
propsFullWidth = _a.fullWidth,
|
|
30
38
|
propsClassName = _a.className,
|
|
31
|
-
|
|
32
|
-
props = __rest(_a, ["variant", "status", "reversed", "label", "validationMessage", "description", "fullWidth", "className", "placeholder"]);
|
|
39
|
+
props = __rest(_a, ["variant", "status", "reversed", "label", "validationMessage", "description", "fullWidth", "className"]);
|
|
33
40
|
var reactId = useId();
|
|
34
41
|
// the default for fullWidth depends on the variant
|
|
35
42
|
var fullWidth = propsFullWidth !== null && propsFullWidth !== void 0 ? propsFullWidth : !['secondary', 'secondary-small'].includes(variant);
|
|
@@ -41,10 +48,10 @@ const Select = /*#__PURE__*/function () {
|
|
|
41
48
|
}, label)) : null, /*#__PURE__*/React.createElement(ReactSelect, __assign({}, props, {
|
|
42
49
|
ref: ref,
|
|
43
50
|
"aria-labelledby": labelId,
|
|
44
|
-
placeholder:
|
|
51
|
+
placeholder: noPlaceholderText,
|
|
45
52
|
components: {
|
|
46
53
|
Control: Control,
|
|
47
|
-
Placeholder:
|
|
54
|
+
Placeholder: NullPlaceholder,
|
|
48
55
|
DropdownIndicator: DropdownIndicator,
|
|
49
56
|
Menu: Menu,
|
|
50
57
|
GroupHeading: GroupHeading,
|
|
@@ -72,14 +79,13 @@ const Select = /*#__PURE__*/function () {
|
|
|
72
79
|
const AsyncSelect = /*#__PURE__*/function () {
|
|
73
80
|
const AsyncSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
74
81
|
var propsClassName = _a.className,
|
|
75
|
-
|
|
76
|
-
props = __rest(_a, ["className", "placeholder"]);
|
|
82
|
+
props = __rest(_a, ["className"]);
|
|
77
83
|
return /*#__PURE__*/React.createElement(Async, __assign({}, props, {
|
|
78
84
|
ref: ref,
|
|
79
|
-
placeholder:
|
|
85
|
+
placeholder: noPlaceholderText,
|
|
80
86
|
components: {
|
|
81
87
|
Control: Control,
|
|
82
|
-
Placeholder:
|
|
88
|
+
Placeholder: NullPlaceholder,
|
|
83
89
|
DropdownIndicator: DropdownIndicator,
|
|
84
90
|
Menu: Menu,
|
|
85
91
|
Option: Option,
|
|
@@ -106,13 +112,6 @@ var Control = function (props) {
|
|
|
106
112
|
className: classnames(styles.control, props.isFocused && styles.focusedControl, props.isDisabled && styles.disabled)
|
|
107
113
|
})));
|
|
108
114
|
};
|
|
109
|
-
var Placeholder = function (props) {
|
|
110
|
-
return /*#__PURE__*/React.createElement(components.Placeholder, __assign({}, props, {
|
|
111
|
-
className: styles.placeholderOverrides
|
|
112
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
113
|
-
className: styles.placeholder
|
|
114
|
-
}, props.children));
|
|
115
|
-
};
|
|
116
115
|
var DropdownIndicator = function (props) {
|
|
117
116
|
return /*#__PURE__*/React.createElement(components.DropdownIndicator, __assign({}, props, {
|
|
118
117
|
className: styles.dropdownIndicator
|
|
@@ -11,7 +11,6 @@ var styles = {
|
|
|
11
11
|
"valueContainer": "Select-module_valueContainer__MGkpr",
|
|
12
12
|
"indicatorsContainer": "Select-module_indicatorsContainer__2xCsm",
|
|
13
13
|
"loadingMessage": "Select-module_loadingMessage__4Ej9T",
|
|
14
|
-
"placeholder": "Select-module_placeholder__OAeGA",
|
|
15
14
|
"menu": "Select-module_menu__axmUL",
|
|
16
15
|
"groupHeading": "Select-module_groupHeading__eNw6U",
|
|
17
16
|
"option": "Select-module_option__EdP-F",
|
|
@@ -8,7 +8,7 @@ import { FieldMessage } from '../FieldMessage/FieldMessage.mjs';
|
|
|
8
8
|
import { Popover } from '../MultiSelect/subcomponents/Popover/Popover.mjs';
|
|
9
9
|
import { useFloating } from '@floating-ui/react-dom';
|
|
10
10
|
import { SelectProvider } from './context/SelectContext.mjs';
|
|
11
|
-
import
|
|
11
|
+
import './subcomponents/ListBox/ListBox.mjs';
|
|
12
12
|
import { ListBoxSection } from './subcomponents/ListBoxSection/ListBoxSection.mjs';
|
|
13
13
|
import { ListItem } from './subcomponents/ListItem/ListItem.mjs';
|
|
14
14
|
import './subcomponents/ListItems/ListItems.mjs';
|
|
@@ -42,12 +42,10 @@ const SingleSelect = /*#__PURE__*/function () {
|
|
|
42
42
|
classNameOverride = _a.classNameOverride,
|
|
43
43
|
selectedKey = _a.selectedKey,
|
|
44
44
|
description = _a.description,
|
|
45
|
-
_d = _a.placeholder,
|
|
46
|
-
placeholder = _d === void 0 ? '' : _d,
|
|
47
45
|
isDisabled = _a.isDisabled,
|
|
48
46
|
onSelectionChange = _a.onSelectionChange,
|
|
49
47
|
portalContainerId = _a.portalContainerId,
|
|
50
|
-
restProps = __rest(_a, ["label", "items", "id", "trigger", "children", "status", "validationMessage", "isReversed", "isRequired", "isFullWidth", "classNameOverride", "selectedKey", "description", "
|
|
48
|
+
restProps = __rest(_a, ["label", "items", "id", "trigger", "children", "status", "validationMessage", "isReversed", "isRequired", "isFullWidth", "classNameOverride", "selectedKey", "description", "isDisabled", "onSelectionChange", "portalContainerId"]);
|
|
51
49
|
var refs = useFloating().refs;
|
|
52
50
|
var triggerRef = refs.reference;
|
|
53
51
|
var fallbackId = useId();
|
|
@@ -63,7 +61,6 @@ const SingleSelect = /*#__PURE__*/function () {
|
|
|
63
61
|
disabledKeys: disabledKeys,
|
|
64
62
|
selectedKey: typeof selectedKey === 'number' ? selectedKey.toString() : selectedKey,
|
|
65
63
|
description: description,
|
|
66
|
-
placeholder: placeholder,
|
|
67
64
|
isDisabled: isDisabled,
|
|
68
65
|
isRequired: isRequired,
|
|
69
66
|
onSelectionChange: onSelectionChange ? function (key) {
|
|
@@ -71,13 +68,13 @@ const SingleSelect = /*#__PURE__*/function () {
|
|
|
71
68
|
} : undefined
|
|
72
69
|
}, restProps);
|
|
73
70
|
var state = useSelectState(ariaSelectProps);
|
|
74
|
-
var
|
|
75
|
-
labelProps =
|
|
76
|
-
reactAriaTriggerProps =
|
|
77
|
-
valueProps =
|
|
78
|
-
menuProps =
|
|
79
|
-
errorMessageProps =
|
|
80
|
-
descriptionProps =
|
|
71
|
+
var _d = useSelect(ariaSelectProps, state, triggerRef),
|
|
72
|
+
labelProps = _d.labelProps,
|
|
73
|
+
reactAriaTriggerProps = _d.triggerProps,
|
|
74
|
+
valueProps = _d.valueProps,
|
|
75
|
+
menuProps = _d.menuProps,
|
|
76
|
+
errorMessageProps = _d.errorMessageProps,
|
|
77
|
+
descriptionProps = _d.descriptionProps;
|
|
81
78
|
// Hack incoming:
|
|
82
79
|
// react-aria/useSelect wants to prefix the combobox's accessible name with the value of the select.
|
|
83
80
|
// We use role=combobox, meaning screen readers will read the value.
|
|
@@ -94,7 +91,6 @@ const SingleSelect = /*#__PURE__*/function () {
|
|
|
94
91
|
'value': (_b = state === null || state === void 0 ? void 0 : state.selectedItem) === null || _b === void 0 ? void 0 : _b.rendered,
|
|
95
92
|
valueProps: valueProps,
|
|
96
93
|
'isOpen': state.isOpen,
|
|
97
|
-
placeholder: placeholder,
|
|
98
94
|
status: status,
|
|
99
95
|
'isDisabled': triggerProps.isDisabled,
|
|
100
96
|
isReversed: isReversed,
|
|
@@ -102,9 +98,9 @@ const SingleSelect = /*#__PURE__*/function () {
|
|
|
102
98
|
'aria-describedby': classnames(validationMessage && validationId, description && descriptionId),
|
|
103
99
|
'aria-required': isRequired
|
|
104
100
|
});
|
|
105
|
-
var
|
|
106
|
-
portalContainer =
|
|
107
|
-
setPortalContainer =
|
|
101
|
+
var _e = useState(),
|
|
102
|
+
portalContainer = _e[0],
|
|
103
|
+
setPortalContainer = _e[1];
|
|
108
104
|
useEffect(function () {
|
|
109
105
|
if (portalContainerId) {
|
|
110
106
|
var portalElement = document.getElementById(portalContainerId);
|
|
@@ -145,9 +141,6 @@ const SingleSelect = /*#__PURE__*/function () {
|
|
|
145
141
|
SingleSelect.SectionDivider = SectionDivider;
|
|
146
142
|
SingleSelect.Option = Option;
|
|
147
143
|
SingleSelect.ItemDefaultRender = ListItem;
|
|
148
|
-
// @deprecated Legacy exported aliases
|
|
149
|
-
SingleSelect.TriggerButton = SelectToggle;
|
|
150
|
-
SingleSelect.ListBox = ListBox;
|
|
151
144
|
return SingleSelect;
|
|
152
145
|
}();
|
|
153
146
|
export { SingleSelect };
|
|
@@ -11,13 +11,11 @@ const SelectToggle = /*#__PURE__*/function () {
|
|
|
11
11
|
value = _a.value,
|
|
12
12
|
valueProps = _a.valueProps,
|
|
13
13
|
isOpen = _a.isOpen,
|
|
14
|
-
_b = _a.placeholder,
|
|
15
|
-
placeholder = _b === void 0 ? 'Select' : _b,
|
|
16
14
|
status = _a.status,
|
|
17
15
|
isDisabled = _a.isDisabled,
|
|
18
16
|
isReversed = _a.isReversed,
|
|
19
17
|
classNameOverride = _a.classNameOverride,
|
|
20
|
-
restProps = __rest(_a, ["label", "labelProps", "value", "valueProps", "isOpen", "
|
|
18
|
+
restProps = __rest(_a, ["label", "labelProps", "value", "valueProps", "isOpen", "status", "isDisabled", "isReversed", "classNameOverride"]);
|
|
21
19
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, __assign({}, labelProps, {
|
|
22
20
|
reversed: isReversed,
|
|
23
21
|
disabled: isDisabled
|
|
@@ -28,10 +26,10 @@ const SelectToggle = /*#__PURE__*/function () {
|
|
|
28
26
|
role: "combobox"
|
|
29
27
|
}, restProps, {
|
|
30
28
|
ref: ref,
|
|
31
|
-
className: classnames(styles.selectToggle,
|
|
29
|
+
className: classnames(styles.selectToggle, status === 'error' && styles.error, status === 'caution' && styles.caution, isDisabled && styles.disabled, isReversed && styles.reversed, classNameOverride)
|
|
32
30
|
}), /*#__PURE__*/React.createElement("span", __assign({}, valueProps, {
|
|
33
31
|
className: styles.value
|
|
34
|
-
}), value
|
|
32
|
+
}), value), /*#__PURE__*/React.createElement(Icon, {
|
|
35
33
|
name: isOpen ? 'keyboard_arrow_up' : 'keyboard_arrow_down',
|
|
36
34
|
isPresentational: true,
|
|
37
35
|
className: styles.icon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
var styles = {
|
|
2
2
|
"icon": "SelectToggle-module_icon__rsV9A",
|
|
3
3
|
"selectToggle": "SelectToggle-module_selectToggle__e6slL",
|
|
4
|
-
"placeholder": "SelectToggle-module_placeholder__w7o7S",
|
|
5
4
|
"error": "SelectToggle-module_error__npEgr",
|
|
6
5
|
"caution": "SelectToggle-module_caution__9jSK0",
|
|
7
6
|
"disabled": "SelectToggle-module_disabled__2MKmF",
|
|
@@ -55,8 +55,7 @@ const TimeFieldComponent = /*#__PURE__*/function () {
|
|
|
55
55
|
onChange: handleOnChange,
|
|
56
56
|
isDisabled: isDisabled,
|
|
57
57
|
hideTimeZone: true,
|
|
58
|
-
locale: locale
|
|
59
|
-
validationState: status === 'default' ? 'valid' : 'invalid'
|
|
58
|
+
locale: locale
|
|
60
59
|
}));
|
|
61
60
|
var hasError = !!validationMessage && status === 'error';
|
|
62
61
|
var descriptionId = hasError ? "".concat(id, "-field-message") : undefined;
|
|
@@ -79,7 +78,7 @@ const TimeFieldComponent = /*#__PURE__*/function () {
|
|
|
79
78
|
}, /*#__PURE__*/React.createElement("div", __assign({}, fieldProps, {
|
|
80
79
|
id: id,
|
|
81
80
|
ref: inputRef,
|
|
82
|
-
className: classnames(styles.input, state.isDisabled && styles.isDisabled,
|
|
81
|
+
className: classnames(styles.input, state.isDisabled && styles.isDisabled, status === 'error' && styles.error)
|
|
83
82
|
}), state.segments.map(function (segment, i) {
|
|
84
83
|
return /*#__PURE__*/React.createElement(TimeSegment, {
|
|
85
84
|
key: i,
|
package/dist/styles.css
CHANGED
|
@@ -2815,40 +2815,13 @@
|
|
|
2815
2815
|
width: 100%;
|
|
2816
2816
|
margin-bottom: 2px;
|
|
2817
2817
|
}
|
|
2818
|
-
.Input-module_input__d-Moh::placeholder {
|
|
2819
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
2820
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
2821
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
2822
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
2823
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
2824
|
-
position: static;
|
|
2825
|
-
opacity: 100%;
|
|
2826
|
-
}
|
|
2827
2818
|
.Input-module_input__d-Moh:focus:not([disabled]), .Input-module_input__d-Moh:hover:focus:not([disabled]) {
|
|
2828
2819
|
outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style) var(--color-blue-500);
|
|
2829
2820
|
outline-offset: 1px;
|
|
2830
2821
|
}
|
|
2831
|
-
.Input-module_input__d-Moh:focus:not([disabled])::placeholder, .Input-module_input__d-Moh:hover:focus:not([disabled])::placeholder {
|
|
2832
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
2833
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
2834
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
2835
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
2836
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
2837
|
-
position: static;
|
|
2838
|
-
opacity: 0%;
|
|
2839
|
-
}
|
|
2840
2822
|
.Input-module_input__d-Moh.Input-module_disabled__CJeOi:not(.Input-module_reversed__Kh7dc) {
|
|
2841
2823
|
background: var(--color-gray-300, #eaeaec);
|
|
2842
2824
|
}
|
|
2843
|
-
.Input-module_input__d-Moh.Input-module_disabled__CJeOi::placeholder {
|
|
2844
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
2845
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
2846
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
2847
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
2848
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
2849
|
-
position: static;
|
|
2850
|
-
color: rgba(var(--color-purple-800-rgb, 47, 36, 56), 0.3);
|
|
2851
|
-
}
|
|
2852
2825
|
/* stylelint-disable no-descending-specificity */
|
|
2853
2826
|
.Input-module_withStartIconAdornment__de6-U .Input-module_startIconAdornment__pnn-b {
|
|
2854
2827
|
position: absolute;
|
|
@@ -2926,16 +2899,6 @@
|
|
|
2926
2899
|
display: flex;
|
|
2927
2900
|
align-items: center;
|
|
2928
2901
|
}
|
|
2929
|
-
.Input-module_input__d-Moh.Input-module_default__zata3::placeholder {
|
|
2930
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
2931
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
2932
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
2933
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
2934
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
2935
|
-
position: static;
|
|
2936
|
-
color: var(--color-purple-800, #2f2438);
|
|
2937
|
-
opacity: 0.5;
|
|
2938
|
-
}
|
|
2939
2902
|
.Input-module_input__d-Moh.Input-module_default__zata3:focus:not([disabled]), .Input-module_input__d-Moh.Input-module_default__zata3:hover:not([disabled]), .Input-module_input__d-Moh.Input-module_default__zata3:hover:focus:not([disabled]) {
|
|
2940
2903
|
background-color: var(--color-gray-200, #f4f4f5);
|
|
2941
2904
|
}
|
|
@@ -2947,15 +2910,6 @@
|
|
|
2947
2910
|
border-color: rgba(var(--color-gray-500-rgb, 135, 135, 146), 0.3);
|
|
2948
2911
|
color: rgba(var(--color-purple-800-rgb, 47, 36, 56), 0.3);
|
|
2949
2912
|
}
|
|
2950
|
-
.Input-module_input__d-Moh.Input-module_default__zata3.Input-module_disabled__CJeOi::placeholder {
|
|
2951
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
2952
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
2953
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
2954
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
2955
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
2956
|
-
position: static;
|
|
2957
|
-
opacity: 0.3;
|
|
2958
|
-
}
|
|
2959
2913
|
.Input-module_input__d-Moh.Input-module_default__zata3:not(.Input-module_error__a-BFh, .Input-module_caution__rC0sY) {
|
|
2960
2914
|
border-color: var(--color-gray-500, #878792);
|
|
2961
2915
|
}
|
|
@@ -2981,16 +2935,6 @@
|
|
|
2981
2935
|
background: transparent;
|
|
2982
2936
|
color: var(--color-white, #ffffff);
|
|
2983
2937
|
}
|
|
2984
|
-
.Input-module_input__d-Moh.Input-module_reversed__Kh7dc::placeholder {
|
|
2985
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
2986
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
2987
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
2988
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
2989
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
2990
|
-
position: static;
|
|
2991
|
-
color: var(--color-white, #ffffff);
|
|
2992
|
-
opacity: 0.5;
|
|
2993
|
-
}
|
|
2994
2938
|
.Input-module_input__d-Moh.Input-module_reversed__Kh7dc:focus:not([disabled]), .Input-module_input__d-Moh.Input-module_reversed__Kh7dc:hover:not([disabled]), .Input-module_input__d-Moh.Input-module_reversed__Kh7dc:hover:focus:not([disabled]) {
|
|
2995
2939
|
background: rgba(var(--color-white-rgb, 255, 255, 255), 0.1);
|
|
2996
2940
|
}
|
|
@@ -3010,15 +2954,6 @@
|
|
|
3010
2954
|
background: transparent;
|
|
3011
2955
|
color: rgba(var(--color-white-rgb, 255, 255, 255), 0.3);
|
|
3012
2956
|
}
|
|
3013
|
-
.Input-module_input__d-Moh.Input-module_reversed__Kh7dc.Input-module_disabled__CJeOi::placeholder {
|
|
3014
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
3015
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
3016
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
3017
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
3018
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
3019
|
-
position: static;
|
|
3020
|
-
opacity: 0.3;
|
|
3021
|
-
}
|
|
3022
2957
|
.Input-module_input__d-Moh.Input-module_reversed__Kh7dc.Input-module_error__a-BFh {
|
|
3023
2958
|
border-color: var(--color-red-300, #f597a8);
|
|
3024
2959
|
}
|
|
@@ -4509,9 +4444,6 @@
|
|
|
4509
4444
|
background-color: var(--color-gray-200, #f4f4f5);
|
|
4510
4445
|
border-color: var(--color-gray-600, #524e56);
|
|
4511
4446
|
}
|
|
4512
|
-
.SelectToggle-module_placeholder__w7o7S {
|
|
4513
|
-
color: rgb(var(--color-purple-800-rgb, 47, 36, 56), 0.7);
|
|
4514
|
-
}
|
|
4515
4447
|
.SelectToggle-module_error__npEgr {
|
|
4516
4448
|
border: var(--border-solid-border-width, 2px) var(--border-solid-border-style, solid) var(--color-red-500, #c93b55);
|
|
4517
4449
|
}
|
|
@@ -4529,9 +4461,6 @@
|
|
|
4529
4461
|
background-color: transparent;
|
|
4530
4462
|
color: var(--color-white, #ffffff);
|
|
4531
4463
|
}
|
|
4532
|
-
.SelectToggle-module_reversed__2MXx0.SelectToggle-module_placeholder__w7o7S {
|
|
4533
|
-
color: rgba(var(--color-white-rgb, 255, 255, 255), 0.65);
|
|
4534
|
-
}
|
|
4535
4464
|
.SelectToggle-module_reversed__2MXx0.SelectToggle-module_selectToggle__e6slL .SelectToggle-module_icon__rsV9A {
|
|
4536
4465
|
color: rgba(255, 255, 255, 0.8);
|
|
4537
4466
|
}
|
|
@@ -4770,9 +4699,6 @@
|
|
|
4770
4699
|
box-shadow: var(--shadow-small-box-shadow);
|
|
4771
4700
|
position: relative;
|
|
4772
4701
|
top: -1px;
|
|
4773
|
-
transition:
|
|
4774
|
-
opacity var(--animation-duration-slow) ease,
|
|
4775
|
-
margin-top var(--animation-duration-fast) var(--animation-duration-slow) ease;
|
|
4776
4702
|
color: var(--color-purple-800);
|
|
4777
4703
|
|
|
4778
4704
|
@media (width >= 1024px) {
|
|
@@ -4882,11 +4808,6 @@
|
|
|
4882
4808
|
}
|
|
4883
4809
|
}
|
|
4884
4810
|
|
|
4885
|
-
.GuidanceBlock-module_hidden__mwvrs {
|
|
4886
|
-
opacity: 0;
|
|
4887
|
-
margin-bottom: 0;
|
|
4888
|
-
}
|
|
4889
|
-
|
|
4890
4811
|
.GuidanceBlock-module_headingWrapper__OfZB5 {
|
|
4891
4812
|
margin-bottom: var(--spacing-24);
|
|
4892
4813
|
}
|
|
@@ -8939,15 +8860,6 @@
|
|
|
8939
8860
|
.Select-module_specificityIncreaser__cZtQV .Select-module_focusedControl__3AwhP:hover {
|
|
8940
8861
|
box-shadow: none;
|
|
8941
8862
|
}
|
|
8942
|
-
.Select-module_specificityIncreaser__cZtQV .Select-module_placeholder__OAeGA {
|
|
8943
|
-
font-family: var(--typography-paragraph-body-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
|
|
8944
|
-
font-weight: var(--typography-paragraph-body-font-weight, 400);
|
|
8945
|
-
font-size: var(--typography-paragraph-body-font-size, 1rem);
|
|
8946
|
-
line-height: var(--typography-paragraph-body-line-height, 1.5rem);
|
|
8947
|
-
letter-spacing: var(--typography-paragraph-body-letter-spacing, normal);
|
|
8948
|
-
color: var(--color-purple-800, #2f2438);
|
|
8949
|
-
opacity: 0.7;
|
|
8950
|
-
}
|
|
8951
8863
|
.Select-module_specificityIncreaser__cZtQV .Select-module_menu__axmUL {
|
|
8952
8864
|
border: 6px var(--border-solid-border-style, solid) transparent;
|
|
8953
8865
|
border-radius: var(--border-solid-border-radius, 7px);
|
|
@@ -9048,9 +8960,6 @@
|
|
|
9048
8960
|
.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_clearIndicator__O6EuX {
|
|
9049
8961
|
color: var(--color-white, #ffffff);
|
|
9050
8962
|
}
|
|
9051
|
-
.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_placeholder__OAeGA {
|
|
9052
|
-
color: var(--color-white, #ffffff);
|
|
9053
|
-
}
|
|
9054
8963
|
.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs.Select-module_error__GpAw6 .Select-module_control__ehUuP {
|
|
9055
8964
|
border: var(--border-solid-border-width, 2px) var(--border-solid-border-style, solid) var(--color-red-300, #f597a8);
|
|
9056
8965
|
}
|
|
@@ -9095,9 +9004,6 @@
|
|
|
9095
9004
|
.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_focusedControl__3AwhP:hover, .Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_focusedControl__3AwhP:hover {
|
|
9096
9005
|
border-color: var(--color-blue-300, #73c0e8);
|
|
9097
9006
|
}
|
|
9098
|
-
.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_placeholder__OAeGA, .Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_placeholder__OAeGA {
|
|
9099
|
-
color: var(--color-white, #ffffff);
|
|
9100
|
-
}
|
|
9101
9007
|
.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_control__ehUuP {
|
|
9102
9008
|
background: transparent;
|
|
9103
9009
|
border: 0;
|
|
@@ -17,11 +17,6 @@ export type ButtonUIProps = {
|
|
|
17
17
|
iconPosition?: 'start' | 'end';
|
|
18
18
|
/** Controls if the button inherits width from its parent. @default "false" */
|
|
19
19
|
isFullWidth?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Controls the reversed style of Button
|
|
22
|
-
* @deprecated Use the ReversedColors Provider instead. This is here to support gradual migration to the ReversedColors Provider and will take precedence if a value is provided. {@link https://cultureamp.design/?path=/docs/actions-button-button-next-api-specification--docs#variants}
|
|
23
|
-
*/
|
|
24
|
-
isReversed?: boolean;
|
|
25
20
|
};
|
|
26
21
|
export type ButtonProps = ButtonUIProps & PendingButtonProps & Omit<RACButtonProps, 'children'> & {
|
|
27
22
|
/** Used as the label for the button. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type PropsBase, type PropsRange } from 'react-day-picker';
|
|
2
2
|
import { type OverrideClassName } from "../../types/OverrideClassName";
|
|
3
|
+
import { type DeprecatedReactDayPickerProps } from '../types';
|
|
3
4
|
export type CalendarRangeElement = HTMLDivElement;
|
|
4
5
|
export type CalendarRangeProps = {
|
|
5
6
|
id?: string;
|
|
6
7
|
onMount?: (calendarElement: CalendarRangeElement) => void;
|
|
7
8
|
hasDivider?: boolean;
|
|
8
|
-
} & OverrideClassName<Omit<PropsRange & Omit<PropsBase, 'mode'>, 'mode'>>;
|
|
9
|
+
} & OverrideClassName<Omit<PropsRange & Omit<PropsBase, 'mode'>, 'mode' | DeprecatedReactDayPickerProps>>;
|
|
9
10
|
export declare const CalendarRange: {
|
|
10
11
|
({ id, onMount, hasDivider, classNameOverride, selected, defaultMonth, numberOfMonths, locale, ...restProps }: CalendarRangeProps): JSX.Element;
|
|
11
12
|
displayName: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type PropsBase, type PropsSingle } from 'react-day-picker';
|
|
2
2
|
import { type OverrideClassName } from "../../types/OverrideClassName";
|
|
3
|
+
import { type DeprecatedReactDayPickerProps } from '../types';
|
|
3
4
|
export type CalendarSingleElement = HTMLDivElement;
|
|
4
5
|
export type CalendarSingleProps = {
|
|
5
6
|
id?: string;
|
|
6
7
|
onMount?: (calendarElement: CalendarSingleElement) => void;
|
|
7
8
|
/** Exposes the react-day-picker component prop. Please be aware, consumers using this will have to guarentee functions as expected */
|
|
8
9
|
components?: PropsBase['components'];
|
|
9
|
-
} & OverrideClassName<Omit<PropsSingle & Omit<PropsBase, 'mode'>, 'mode'>>;
|
|
10
|
+
} & OverrideClassName<Omit<PropsSingle & Omit<PropsBase, 'mode'>, 'mode' | DeprecatedReactDayPickerProps>>;
|
|
10
11
|
export declare const CalendarSingle: {
|
|
11
12
|
({ id, onMount, classNameOverride, selected, defaultMonth, weekStartsOn, locale, components, ...restProps }: CalendarSingleProps): JSX.Element;
|
|
12
13
|
displayName: string;
|
|
@@ -2,6 +2,7 @@ import { type DateInterval, type DateRange, type DayPickerProps } from 'react-da
|
|
|
2
2
|
import { type DayOfWeek } from './enums';
|
|
3
3
|
export type { DateInterval, DateRange };
|
|
4
4
|
export type DisabledDays = DayPickerProps['disabled'];
|
|
5
|
+
export type DeprecatedReactDayPickerProps = 'fromDate' | 'fromMonth' | 'fromYear' | 'toDate' | 'toMonth' | 'toYear' | 'initialFocus' | 'onDayKeyUp' | 'onDayKeyPress' | 'onDayPointerEnter' | 'onDayPointerLeave' | 'onDayTouchCancel' | 'onDayTouchEnd' | 'onDayTouchMove' | 'onDayTouchStart' | 'onWeekNumberClick';
|
|
5
6
|
export type DisabledDayMatchers = {
|
|
6
7
|
/**
|
|
7
8
|
* Accepts an array of singluar dates and disables them.
|
|
@@ -1,39 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ButtonProps as V1ButtonProps } from "../ButtonV1";
|
|
3
2
|
import { type HeadingProps } from "../Heading";
|
|
4
3
|
import { type SceneProps, type SpotProps } from "../Illustration";
|
|
5
|
-
import { type TooltipProps } from "../TooltipV1";
|
|
6
4
|
import { type VariantType } from './types';
|
|
7
|
-
export type ActionProps = V1ButtonProps & {
|
|
8
|
-
'tooltip'?: TooltipProps;
|
|
9
|
-
'aria-label'?: string;
|
|
10
|
-
'aria-labelledby'?: string;
|
|
11
|
-
'aria-describedby'?: string;
|
|
12
|
-
};
|
|
13
5
|
type LayoutType = 'default' | 'inline' | 'stacked';
|
|
14
6
|
type IllustrationType = 'spot' | 'scene';
|
|
15
7
|
type TextAlignment = 'center' | 'left';
|
|
16
|
-
type GuidanceBlockActions = {
|
|
17
|
-
primary: ActionProps;
|
|
18
|
-
secondary?: ActionProps;
|
|
19
|
-
dismiss?: {
|
|
20
|
-
onClick: () => void;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
8
|
type BaseGuidanceBlockProps = {
|
|
24
9
|
layout?: LayoutType;
|
|
25
10
|
illustration: React.ReactElement<SpotProps | SceneProps>;
|
|
26
11
|
illustrationType?: IllustrationType;
|
|
27
12
|
smallScreenTextAlignment?: TextAlignment;
|
|
28
|
-
/** @deprecated use the `actionsSlot` prop with Button/next instead */
|
|
29
|
-
actions?: GuidanceBlockActions;
|
|
30
13
|
/** A slot for the primary and secondary action. It is recommended to use the {@link https://cultureamp.design/?path=/docs/components-button-button-next-api-specification--docs | Button} or {@link https://cultureamp.design/?path=/docs/components-linkbutton-usage-guidelines--docs | LinkButton} wrapped in fragment. */
|
|
31
14
|
actionsSlot?: React.ReactNode;
|
|
32
|
-
/** @deprecated this is no longer a used feature and is only the deprecated `actions` prop, ie: {secondary: { label: "Dismiss action" }}` */
|
|
33
|
-
secondaryDismiss?: boolean;
|
|
34
15
|
variant?: VariantType;
|
|
35
|
-
/** @deprecated use the `actionsSlot` and pass the icon into the JSX elements */
|
|
36
|
-
withActionButtonArrow?: boolean;
|
|
37
16
|
noMaxWidth?: boolean;
|
|
38
17
|
};
|
|
39
18
|
type GuidanceBlockWithText = {
|
|
@@ -47,16 +26,12 @@ type GuidanceBlockPropsWithContent = {
|
|
|
47
26
|
content: React.ReactElement;
|
|
48
27
|
} & BaseGuidanceBlockProps;
|
|
49
28
|
export type GuidanceBlockProps = GuidanceBlockWithText | GuidanceBlockPropsWithContent;
|
|
50
|
-
export type GuidanceBlockState = {
|
|
51
|
-
hidden: boolean;
|
|
52
|
-
removed: boolean;
|
|
53
|
-
};
|
|
54
29
|
/**
|
|
55
30
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093807/Guidance+Block Guidance} |
|
|
56
31
|
* {@link https://cultureamp.design/?path=/docs/components-guidanceblock--docs Storybook}
|
|
57
32
|
*/
|
|
58
33
|
export declare const GuidanceBlock: {
|
|
59
|
-
({ layout, variant,
|
|
34
|
+
({ layout, variant, noMaxWidth, illustrationType, smallScreenTextAlignment, illustration, actionsSlot, ...restProps }: GuidanceBlockProps): JSX.Element;
|
|
60
35
|
displayName: string;
|
|
61
36
|
};
|
|
62
37
|
export {};
|
|
@@ -10,12 +10,7 @@ export type InputProps = {
|
|
|
10
10
|
endIconAdornment?: React.ReactNode;
|
|
11
11
|
reversed?: boolean;
|
|
12
12
|
type?: InputType;
|
|
13
|
-
|
|
14
|
-
* @deprecated Use of placeholder text goes against our a11y standards.
|
|
15
|
-
* Use the `labelText` prop to provide a concise name, and the `description` prop for any help text.
|
|
16
|
-
*/
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
} & OverrideClassName<InputHTMLAttributes<HTMLInputElement>>;
|
|
13
|
+
} & OverrideClassName<Omit<InputHTMLAttributes<HTMLInputElement>, 'placeholder'>>;
|
|
19
14
|
export declare const Input: {
|
|
20
15
|
({ inputRef, status, startIconAdornment, endIconAdornment, reversed, type, value, defaultValue, classNameOverride, disabled, ...restProps }: InputProps): JSX.Element;
|
|
21
16
|
displayName: string;
|
|
@@ -12,15 +12,11 @@ export type ModalFooterProps = {
|
|
|
12
12
|
'variant'?: ActionsVariantProps;
|
|
13
13
|
'unpadded'?: boolean;
|
|
14
14
|
'actions': ButtonProps[];
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated we are no longer supporting different appearances for ModalFooter, instead there will only be a single default appearance set by the Button.
|
|
17
|
-
*/
|
|
18
|
-
'appearance'?: 'primary' | 'destructive';
|
|
19
15
|
'data-testid'?: string;
|
|
20
16
|
'alignStart'?: boolean;
|
|
21
17
|
} & HTMLAttributes<HTMLDivElement>;
|
|
22
18
|
export declare const ModalFooter: {
|
|
23
|
-
({ unpadded, actions,
|
|
19
|
+
({ unpadded, actions, alignStart, variant, ...props }: ModalFooterProps): JSX.Element;
|
|
24
20
|
displayName: string;
|
|
25
21
|
};
|
|
26
22
|
export {};
|