glints-aries 4.0.186 → 4.0.187
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/es/@next/Alert/Alert.d.ts +1 -1
- package/es/@next/Alert/Alert.js +3 -2
- package/es/@next/Alert/AlertWithProvider.d.ts +2 -2
- package/es/@next/Alert/AlertWithProvider.js +5 -3
- package/es/@next/Avatar/Avatar.d.ts +1 -1
- package/es/@next/Avatar/Avatar.js +3 -2
- package/es/@next/Badge/Badge.d.ts +1 -1
- package/es/@next/Badge/Badge.js +3 -2
- package/es/@next/Banner/Banner.d.ts +1 -1
- package/es/@next/Banner/Banner.js +3 -2
- package/es/@next/Button/Button.d.ts +1 -1
- package/es/@next/Button/Button.js +3 -2
- package/es/@next/Button/DesctructiveButtonStyle.d.ts +1 -1
- package/es/@next/Button/OutlineButtonStyle.d.ts +1 -1
- package/es/@next/Button/OutlineMonochromeStyle.d.ts +1 -1
- package/es/@next/Button/PrimaryButtonStyle.d.ts +1 -1
- package/es/@next/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/es/@next/ButtonGroup/ButtonGroup.js +3 -2
- package/es/@next/Checkbox/Checkbox.d.ts +1 -1
- package/es/@next/Checkbox/Checkbox.js +3 -2
- package/es/@next/CurrencyInput/CurrencyInput.d.ts +6 -2
- package/es/@next/CurrencyInput/CurrencyInput.js +3 -2
- package/es/@next/CurrencyInput/CurrencyStyles.d.ts +1 -1
- package/es/@next/Divider/Divider.d.ts +1 -1
- package/es/@next/Divider/Divider.js +5 -5
- package/es/@next/IndexTable/indexTableStoryHelper/ButtonGroupStyle.d.ts +1 -1
- package/es/@next/Input/Input.d.ts +1 -1
- package/es/@next/Input/Input.js +3 -2
- package/es/@next/NumberInput/NumberInput.d.ts +2 -2
- package/es/@next/NumberInput/NumberInput.js +3 -2
- package/es/@next/Pagination/Pagination.d.ts +2 -2
- package/es/@next/Pagination/Pagination.js +5 -3
- package/es/@next/Pagination/PaginationStyle.d.ts +2 -2
- package/es/@next/Pagination/SimplePagination.d.ts +2 -2
- package/es/@next/Pagination/SimplePagination.js +5 -3
- package/es/@next/Popover/Popover.d.ts +3 -3
- package/es/@next/Popover/Popover.js +6 -3
- package/es/@next/RadioButton/RadioButton.d.ts +1 -1
- package/es/@next/RadioButton/RadioButton.js +3 -2
- package/es/@next/Tabs/Tabs.d.ts +1 -1
- package/es/@next/Tabs/Tabs.js +5 -3
- package/es/@next/Tag/Tag.d.ts +1 -1
- package/es/@next/Tag/Tag.js +5 -3
- package/es/@next/TextInput/TextInput.d.ts +4 -2
- package/es/@next/TextInput/TextInput.js +3 -2
- package/lib/@next/Alert/Alert.d.ts +1 -1
- package/lib/@next/Alert/Alert.js +3 -2
- package/lib/@next/Alert/AlertWithProvider.d.ts +2 -2
- package/lib/@next/Alert/AlertWithProvider.js +5 -3
- package/lib/@next/Avatar/Avatar.d.ts +1 -1
- package/lib/@next/Avatar/Avatar.js +3 -2
- package/lib/@next/Badge/Badge.d.ts +1 -1
- package/lib/@next/Badge/Badge.js +3 -2
- package/lib/@next/Banner/Banner.d.ts +1 -1
- package/lib/@next/Banner/Banner.js +3 -2
- package/lib/@next/Button/Button.d.ts +1 -1
- package/lib/@next/Button/Button.js +3 -2
- package/lib/@next/Button/DesctructiveButtonStyle.d.ts +1 -1
- package/lib/@next/Button/OutlineButtonStyle.d.ts +1 -1
- package/lib/@next/Button/OutlineMonochromeStyle.d.ts +1 -1
- package/lib/@next/Button/PrimaryButtonStyle.d.ts +1 -1
- package/lib/@next/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/@next/ButtonGroup/ButtonGroup.js +3 -2
- package/lib/@next/Checkbox/Checkbox.d.ts +1 -1
- package/lib/@next/Checkbox/Checkbox.js +3 -2
- package/lib/@next/CurrencyInput/CurrencyInput.d.ts +6 -2
- package/lib/@next/CurrencyInput/CurrencyInput.js +3 -2
- package/lib/@next/CurrencyInput/CurrencyStyles.d.ts +1 -1
- package/lib/@next/Divider/Divider.d.ts +1 -1
- package/lib/@next/Divider/Divider.js +5 -5
- package/lib/@next/IndexTable/indexTableStoryHelper/ButtonGroupStyle.d.ts +1 -1
- package/lib/@next/Input/Input.d.ts +1 -1
- package/lib/@next/Input/Input.js +3 -2
- package/lib/@next/NumberInput/NumberInput.d.ts +2 -2
- package/lib/@next/NumberInput/NumberInput.js +3 -2
- package/lib/@next/Pagination/Pagination.d.ts +2 -2
- package/lib/@next/Pagination/Pagination.js +5 -3
- package/lib/@next/Pagination/PaginationStyle.d.ts +2 -2
- package/lib/@next/Pagination/SimplePagination.d.ts +2 -2
- package/lib/@next/Pagination/SimplePagination.js +5 -3
- package/lib/@next/Popover/Popover.d.ts +3 -3
- package/lib/@next/Popover/Popover.js +6 -3
- package/lib/@next/RadioButton/RadioButton.d.ts +1 -1
- package/lib/@next/RadioButton/RadioButton.js +3 -2
- package/lib/@next/Tabs/Tabs.d.ts +1 -1
- package/lib/@next/Tabs/Tabs.js +5 -3
- package/lib/@next/Tag/Tag.d.ts +1 -1
- package/lib/@next/Tag/Tag.js +5 -3
- package/lib/@next/TextInput/TextInput.d.ts +4 -2
- package/lib/@next/TextInput/TextInput.js +3 -2
- package/package.json +1 -1
package/lib/@next/Tag/Tag.js
CHANGED
|
@@ -11,7 +11,7 @@ var _Typography = require("../Typography");
|
|
|
11
11
|
var _colors = require("../utilities/colors");
|
|
12
12
|
var _TagStyle = require("./TagStyle");
|
|
13
13
|
var _excluded = ["children", "onRemove", "value"];
|
|
14
|
-
var Tag = function Tag(_ref) {
|
|
14
|
+
var Tag = /*#__PURE__*/_react["default"].forwardRef(function Tag(_ref, ref) {
|
|
15
15
|
var children = _ref.children,
|
|
16
16
|
onRemove = _ref.onRemove,
|
|
17
17
|
value = _ref.value,
|
|
@@ -30,10 +30,12 @@ var Tag = function Tag(_ref) {
|
|
|
30
30
|
height: 20,
|
|
31
31
|
onClick: onRemove
|
|
32
32
|
})));
|
|
33
|
-
return /*#__PURE__*/_react["default"].createElement(_TagStyle.TagStyle, (0, _extends2["default"])({
|
|
33
|
+
return /*#__PURE__*/_react["default"].createElement(_TagStyle.TagStyle, (0, _extends2["default"])({
|
|
34
|
+
ref: ref
|
|
35
|
+
}, props, {
|
|
34
36
|
value: value
|
|
35
37
|
}), /*#__PURE__*/_react["default"].createElement(_TagStyle.TagContentStyle, {
|
|
36
38
|
"data-removeable": !!onRemove
|
|
37
39
|
}, content), removeButton);
|
|
38
|
-
};
|
|
40
|
+
});
|
|
39
41
|
exports.Tag = Tag;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { InputProps } from '../Input/Input';
|
|
3
3
|
export declare type TextInputProps = Omit<InputProps, 'type'> & {
|
|
4
4
|
canClear?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare const TextInput:
|
|
6
|
+
export declare const TextInput: React.ForwardRefExoticComponent<Omit<InputProps, "type"> & {
|
|
7
|
+
canClear?: boolean;
|
|
8
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -11,7 +11,7 @@ var _Input = require("../Input/Input");
|
|
|
11
11
|
var _excluded = ["canClear", "suffix", "value", "onChange"];
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
var TextInput = function TextInput(_ref) {
|
|
14
|
+
var TextInput = /*#__PURE__*/_react["default"].forwardRef(function TextInput(_ref, ref) {
|
|
15
15
|
var canClear = _ref.canClear,
|
|
16
16
|
suffix = _ref.suffix,
|
|
17
17
|
value = _ref.value,
|
|
@@ -46,10 +46,11 @@ var TextInput = function TextInput(_ref) {
|
|
|
46
46
|
onChange == null ? void 0 : onChange(e);
|
|
47
47
|
};
|
|
48
48
|
return /*#__PURE__*/_react["default"].createElement(_Input.Input, (0, _extends2["default"])({
|
|
49
|
+
ref: ref,
|
|
49
50
|
type: "text",
|
|
50
51
|
suffix: suffixValue,
|
|
51
52
|
value: currentValue,
|
|
52
53
|
onChange: handleChange
|
|
53
54
|
}, props));
|
|
54
|
-
};
|
|
55
|
+
});
|
|
55
56
|
exports.TextInput = TextInput;
|