@televet/kibble-ui 1.12.11-beta.2wp7xv5.0 → 1.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +63 -29
- package/build/index.js.map +1 -1
- package/build/theme/theme.types.d.ts +0 -1
- package/package.json +1 -1
- package/build/components/Overlay/Modal/modalBody.component.d.ts +0 -2
- package/build/components/Overlay/Modal/modalCloseButton.component.d.ts +0 -2
- package/build/components/Overlay/Modal/modalFooter.component.d.ts +0 -4
- package/build/components/Overlay/Modal/modalFooterButtons.component.d.ts +0 -10
- package/build/components/Overlay/Modal/modalHeader.component.d.ts +0 -6
package/build/index.js
CHANGED
|
@@ -3766,39 +3766,58 @@ var CheckboxConfig = {
|
|
|
3766
3766
|
|
|
3767
3767
|
var Textarea = withFormControl(function (props) {
|
|
3768
3768
|
props.isFieldInline; var textareaRef = props.textareaRef, domProps = __rest(props, ["isFieldInline", "textareaRef"]);
|
|
3769
|
-
return React__default["default"].createElement(react.Textarea, __assign({}, domProps, { ref: textareaRef }));
|
|
3769
|
+
return React__default["default"].createElement(react.Textarea, __assign({ background: colors.background.light }, domProps, { ref: textareaRef }));
|
|
3770
3770
|
});
|
|
3771
3771
|
var WrappedTextArea = React.forwardRef(function (props, ref) { return (React__default["default"].createElement(Textarea, __assign({ textareaRef: ref }, props))); });
|
|
3772
3772
|
WrappedTextArea.displayName = 'Textarea';
|
|
3773
3773
|
|
|
3774
|
-
var baseStyle = {
|
|
3775
|
-
bgColor: colors.background.light,
|
|
3776
|
-
borderColor: colors.border.light.default,
|
|
3777
|
-
borderRadius: radii.base,
|
|
3778
|
-
color: adaptiveColors.text.light.default,
|
|
3779
|
-
};
|
|
3780
|
-
var disabledStyle = {
|
|
3781
|
-
bgColor: colors.border.light.default,
|
|
3782
|
-
borderColor: colors.border.light.default,
|
|
3783
|
-
opacity: 0.4,
|
|
3784
|
-
'::placeholder': {
|
|
3785
|
-
color: colors.text.light.placeholder,
|
|
3786
|
-
opacity: 1,
|
|
3787
|
-
},
|
|
3788
|
-
};
|
|
3789
|
-
var hoverStyle = {
|
|
3790
|
-
borderColor: colors.border.light.heavy,
|
|
3791
|
-
};
|
|
3792
3774
|
var FormControlConfig = {
|
|
3775
|
+
baseStyle: {
|
|
3776
|
+
borderRadius: radii.base,
|
|
3777
|
+
color: adaptiveColors.text.light.default,
|
|
3778
|
+
},
|
|
3793
3779
|
variants: {
|
|
3794
|
-
outline:
|
|
3780
|
+
outline: {
|
|
3781
|
+
// textarea doesn't have a "field" prop, so its disabled styles live a level up from the others
|
|
3782
|
+
_disabled: {
|
|
3783
|
+
background: colors.border.light.default,
|
|
3784
|
+
borderColor: colors.border.light.default,
|
|
3785
|
+
opacity: 0.4,
|
|
3786
|
+
'::placeholder': {
|
|
3787
|
+
color: colors.text.light.placeholder,
|
|
3788
|
+
opacity: 1,
|
|
3789
|
+
},
|
|
3790
|
+
},
|
|
3791
|
+
field: {
|
|
3792
|
+
background: coreColors.white,
|
|
3793
|
+
borderColor: colors.border.light.default,
|
|
3794
|
+
_hover: {
|
|
3795
|
+
borderColor: colors.border.dark.default,
|
|
3796
|
+
},
|
|
3797
|
+
_disabled: {
|
|
3798
|
+
background: colors.border.light.default,
|
|
3799
|
+
borderColor: colors.border.light.default,
|
|
3800
|
+
opacity: 0.4,
|
|
3801
|
+
'::placeholder': {
|
|
3802
|
+
color: colors.text.light.placeholder,
|
|
3803
|
+
opacity: 1,
|
|
3804
|
+
},
|
|
3805
|
+
},
|
|
3806
|
+
_focus: {
|
|
3795
3807
|
_hover: {
|
|
3796
3808
|
borderColor: colors.border.light.focus,
|
|
3797
3809
|
},
|
|
3798
|
-
|
|
3810
|
+
_invalid: {
|
|
3811
|
+
borderColor: colors.border.light.error,
|
|
3812
|
+
boxShadow: "0 0 0 1px ".concat(colors.border.light.error),
|
|
3813
|
+
},
|
|
3814
|
+
},
|
|
3815
|
+
},
|
|
3816
|
+
},
|
|
3799
3817
|
},
|
|
3800
3818
|
sizes: {
|
|
3801
3819
|
sm: {
|
|
3820
|
+
borderRadius: radii.base,
|
|
3802
3821
|
fontSize: fontSizes.sm,
|
|
3803
3822
|
},
|
|
3804
3823
|
md: {
|
|
@@ -3817,7 +3836,15 @@ var TextInput = withFormControl(function (props) {
|
|
|
3817
3836
|
var leftElement = props.leftElement, rightElement = props.rightElement, inputRef = props.inputRef; props.isFieldInline; var domProps = __rest(props, ["leftElement", "rightElement", "inputRef", "isFieldInline"]);
|
|
3818
3837
|
return (React__default["default"].createElement(react.InputGroup, null,
|
|
3819
3838
|
leftElement ? React__default["default"].createElement(react.InputLeftElement, { children: leftElement, h: "100%" }) : null,
|
|
3820
|
-
React__default["default"].createElement(react.Input, __assign({
|
|
3839
|
+
React__default["default"].createElement(react.Input, __assign({ background: colors.background.light, _disabled: {
|
|
3840
|
+
background: colors.border.light.default,
|
|
3841
|
+
opacity: 0.4,
|
|
3842
|
+
cursor: 'not-allowed',
|
|
3843
|
+
'::placeholder': {
|
|
3844
|
+
color: colors.text.light.placeholder,
|
|
3845
|
+
opacity: 1,
|
|
3846
|
+
},
|
|
3847
|
+
}, ref: inputRef }, domProps)),
|
|
3821
3848
|
rightElement ? React__default["default"].createElement(react.InputRightElement, { children: rightElement, h: "100%" }) : null));
|
|
3822
3849
|
});
|
|
3823
3850
|
var WrappedTextInput = React.forwardRef(function (props, ref) { return (React__default["default"].createElement(TextInput, __assign({ inputRef: ref }, props))); });
|
|
@@ -4468,12 +4495,14 @@ var Select = function (props) {
|
|
|
4468
4495
|
}
|
|
4469
4496
|
}
|
|
4470
4497
|
}, [value, options]);
|
|
4471
|
-
var focusStyle = {
|
|
4472
|
-
borderWidth: '2px',
|
|
4473
|
-
borderColor: colors.border.light.focus,
|
|
4474
|
-
};
|
|
4475
4498
|
if (useBrowserDefaultMenu) {
|
|
4476
|
-
return (React__default["default"].createElement(react.Select, __assign({ value: value, placeholder: placeholder }, domProps, {
|
|
4499
|
+
return (React__default["default"].createElement(react.Select, __assign({ value: value, placeholder: placeholder }, domProps, { _hover: {
|
|
4500
|
+
borderWidth: '1px',
|
|
4501
|
+
borderColor: colors.border.light.heavy,
|
|
4502
|
+
}, _focus: {
|
|
4503
|
+
borderWidth: '2px',
|
|
4504
|
+
borderColor: colors.border.light.focus,
|
|
4505
|
+
} }), options.map(function (option, index) { return (React__default["default"].createElement("option", { key: "options-".concat(index), value: option.value }, option.label)); })));
|
|
4477
4506
|
}
|
|
4478
4507
|
var handleSelectOption = function (selectedOption) {
|
|
4479
4508
|
setSelectedOption(selectedOption);
|
|
@@ -4488,7 +4517,13 @@ var Select = function (props) {
|
|
|
4488
4517
|
};
|
|
4489
4518
|
return (React__default["default"].createElement(MenuProvider, { menuItems: options, onMenuClose: handleMenuClose },
|
|
4490
4519
|
React__default["default"].createElement(MenuContainer, { matchWidth: true, isLazy: true },
|
|
4491
|
-
React__default["default"].createElement(react.Select, __assign({ as: react.MenuButton }, domProps, {
|
|
4520
|
+
React__default["default"].createElement(react.Select, __assign({ as: react.MenuButton }, domProps, { _hover: {
|
|
4521
|
+
borderWidth: '1px',
|
|
4522
|
+
borderColor: colors.border.light.heavy,
|
|
4523
|
+
}, _focus: {
|
|
4524
|
+
borderWidth: '2px',
|
|
4525
|
+
borderColor: colors.border.light.focus,
|
|
4526
|
+
}, ref: selectRef, onClick: function (event) { return event.stopPropagation(); } }),
|
|
4492
4527
|
React__default["default"].createElement(react.HStack, null,
|
|
4493
4528
|
(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.leftElement)
|
|
4494
4529
|
? selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.leftElement
|
|
@@ -6907,7 +6942,6 @@ var theme = react.extendTheme({
|
|
|
6907
6942
|
Switch: SwitchConfig,
|
|
6908
6943
|
Text: TextConfig,
|
|
6909
6944
|
Textarea: TextareaConfig,
|
|
6910
|
-
Input: TextInputConfig,
|
|
6911
6945
|
Tooltip: TooltipConfig,
|
|
6912
6946
|
Avatar: AvatarConfig,
|
|
6913
6947
|
Menu: MenuConfig,
|