@doist/reactist 27.3.6 → 27.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/reactist.cjs.development.js +26 -12
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/base-field/base-field.js +10 -3
- package/es/base-field/base-field.js.map +1 -1
- package/es/select-field/select-field.js.map +1 -1
- package/es/text-area/text-area.js.map +1 -1
- package/es/text-field/text-field.js +10 -5
- package/es/text-field/text-field.js.map +1 -1
- package/es/text-link/text-link.js +5 -3
- package/es/text-link/text-link.js.map +1 -1
- package/es/text-link/text-link.module.css.js +1 -1
- package/lib/base-field/base-field.d.ts +15 -2
- package/lib/base-field/base-field.js +1 -1
- package/lib/base-field/base-field.js.map +1 -1
- package/lib/select-field/select-field.d.ts +1 -1
- package/lib/select-field/select-field.js.map +1 -1
- package/lib/text-area/text-area.d.ts +1 -1
- package/lib/text-area/text-area.js.map +1 -1
- package/lib/text-field/text-field.d.ts +1 -1
- package/lib/text-field/text-field.js +1 -1
- package/lib/text-field/text-field.js.map +1 -1
- package/lib/text-link/text-link.d.ts +6 -2
- package/lib/text-link/text-link.js +1 -1
- package/lib/text-link/text-link.js.map +1 -1
- package/lib/text-link/text-link.module.css.js +1 -1
- package/package.json +2 -2
- package/styles/banner.css +1 -1
- package/styles/reactist.css +1 -1
- package/styles/text-link.css +1 -1
- package/styles/text-link.module.css.css +1 -1
|
@@ -896,21 +896,23 @@ function BannerSuccessIcon(props) {
|
|
|
896
896
|
}));
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
var modules_3d05deee = {"container":"
|
|
899
|
+
var modules_3d05deee = {"container":"d77fcdc6","default":"_468ce45c","inherit":"_54f92a1e","underline":"cdc8b08c","no-underline":"_06995bac"};
|
|
900
900
|
|
|
901
|
-
const _excluded$o = ["as", "openInNewTab", "exceptionallySetClassName"];
|
|
901
|
+
const _excluded$o = ["as", "openInNewTab", "exceptionallySetClassName", "color", "underline"];
|
|
902
902
|
const TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
903
903
|
let {
|
|
904
904
|
as = 'a',
|
|
905
905
|
openInNewTab = false,
|
|
906
|
-
exceptionallySetClassName
|
|
906
|
+
exceptionallySetClassName,
|
|
907
|
+
color = 'default',
|
|
908
|
+
underline = true
|
|
907
909
|
} = _ref,
|
|
908
910
|
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
909
911
|
|
|
910
912
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
911
913
|
as: as,
|
|
912
914
|
display: "inline",
|
|
913
|
-
className: [exceptionallySetClassName, modules_3d05deee.container],
|
|
915
|
+
className: [exceptionallySetClassName, modules_3d05deee.container, modules_3d05deee[color], underline ? modules_3d05deee.underline : modules_3d05deee['no-underline']],
|
|
914
916
|
ref: ref,
|
|
915
917
|
target: openInNewTab ? '_blank' : undefined,
|
|
916
918
|
rel: openInNewTab ? 'noopener noreferrer' : undefined
|
|
@@ -1980,7 +1982,9 @@ function BaseField({
|
|
|
1980
1982
|
hidden,
|
|
1981
1983
|
'aria-describedby': originalAriaDescribedBy,
|
|
1982
1984
|
id: originalId,
|
|
1983
|
-
characterCountPosition = 'below'
|
|
1985
|
+
characterCountPosition = 'below',
|
|
1986
|
+
endSlot,
|
|
1987
|
+
endSlotPosition = 'bottom'
|
|
1984
1988
|
}) {
|
|
1985
1989
|
const id = useId(originalId);
|
|
1986
1990
|
const messageId = useId();
|
|
@@ -2043,8 +2047,13 @@ function BaseField({
|
|
|
2043
2047
|
space: "xsmall",
|
|
2044
2048
|
hidden: hidden
|
|
2045
2049
|
}, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
2050
|
+
display: "flex",
|
|
2051
|
+
flexDirection: "row",
|
|
2046
2052
|
className: [className, modules_540a88ff.container, tone === 'error' ? modules_540a88ff.error : null, variant === 'bordered' ? modules_540a88ff.bordered : null],
|
|
2047
|
-
maxWidth: maxWidth
|
|
2053
|
+
maxWidth: maxWidth,
|
|
2054
|
+
alignItems: "center"
|
|
2055
|
+
}, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
2056
|
+
flexGrow: 1
|
|
2048
2057
|
}, label || auxiliaryLabel ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
2049
2058
|
as: "span",
|
|
2050
2059
|
display: "flex",
|
|
@@ -2059,7 +2068,7 @@ function BaseField({
|
|
|
2059
2068
|
}, label) : null), auxiliaryLabel ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
2060
2069
|
className: modules_540a88ff.auxiliaryLabel,
|
|
2061
2070
|
paddingLeft: "small"
|
|
2062
|
-
}, auxiliaryLabel) : null) : null, children(childrenProps)), message || characterCount ? /*#__PURE__*/React__namespace.createElement(Columns, {
|
|
2071
|
+
}, auxiliaryLabel) : null) : null, children(childrenProps)), endSlot && endSlotPosition === 'fullHeight' ? endSlot : null), message || characterCount ? /*#__PURE__*/React__namespace.createElement(Columns, {
|
|
2063
2072
|
align: "right",
|
|
2064
2073
|
space: "small",
|
|
2065
2074
|
maxWidth: maxWidth
|
|
@@ -2075,7 +2084,7 @@ function BaseField({
|
|
|
2075
2084
|
|
|
2076
2085
|
var modules_aaf25250 = {"inputWrapper":"c8f65b3b","readOnly":"_326f2644","bordered":"_5252fd3d","error":"_0141b7ac","slot":"b79b851f"};
|
|
2077
2086
|
|
|
2078
|
-
const _excluded$d = ["variant", "id", "label", "value", "auxiliaryLabel", "message", "tone", "type", "maxWidth", "maxLength", "hidden", "aria-describedby", "startSlot", "endSlot", "onChange", "characterCountPosition"],
|
|
2087
|
+
const _excluded$d = ["variant", "id", "label", "value", "auxiliaryLabel", "message", "tone", "type", "maxWidth", "maxLength", "hidden", "aria-describedby", "startSlot", "endSlot", "onChange", "characterCountPosition", "endSlotPosition"],
|
|
2079
2088
|
_excluded2$4 = ["onChange", "characterCountElement"];
|
|
2080
2089
|
const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(_ref, ref) {
|
|
2081
2090
|
let {
|
|
@@ -2094,7 +2103,8 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(_r
|
|
|
2094
2103
|
startSlot,
|
|
2095
2104
|
endSlot,
|
|
2096
2105
|
onChange: originalOnChange,
|
|
2097
|
-
characterCountPosition = 'below'
|
|
2106
|
+
characterCountPosition = 'below',
|
|
2107
|
+
endSlotPosition = 'bottom'
|
|
2098
2108
|
} = _ref,
|
|
2099
2109
|
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
2100
2110
|
|
|
@@ -2108,6 +2118,7 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(_r
|
|
|
2108
2118
|
(_internalRef$current = internalRef.current) == null ? void 0 : _internalRef$current.focus();
|
|
2109
2119
|
}
|
|
2110
2120
|
|
|
2121
|
+
const displayEndSlot = endSlot && (variant === 'default' || variant === 'bordered' && endSlotPosition === 'bottom');
|
|
2111
2122
|
return /*#__PURE__*/React__namespace.createElement(BaseField, {
|
|
2112
2123
|
variant: variant,
|
|
2113
2124
|
id: id,
|
|
@@ -2120,7 +2131,10 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(_r
|
|
|
2120
2131
|
maxLength: maxLength,
|
|
2121
2132
|
hidden: hidden,
|
|
2122
2133
|
"aria-describedby": ariaDescribedBy,
|
|
2123
|
-
characterCountPosition: characterCountPosition
|
|
2134
|
+
characterCountPosition: characterCountPosition,
|
|
2135
|
+
supportsStartAndEndSlots: true,
|
|
2136
|
+
endSlot: endSlot,
|
|
2137
|
+
endSlotPosition: variant === 'bordered' ? endSlotPosition : undefined
|
|
2124
2138
|
}, _ref2 => {
|
|
2125
2139
|
let {
|
|
2126
2140
|
onChange,
|
|
@@ -2146,12 +2160,12 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(_r
|
|
|
2146
2160
|
originalOnChange == null ? void 0 : originalOnChange(event);
|
|
2147
2161
|
onChange == null ? void 0 : onChange(event);
|
|
2148
2162
|
}
|
|
2149
|
-
})),
|
|
2163
|
+
})), displayEndSlot || characterCountElement ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
2150
2164
|
className: modules_aaf25250.slot,
|
|
2151
2165
|
display: "flex",
|
|
2152
2166
|
marginRight: variant === 'bordered' ? '-xsmall' : 'xsmall',
|
|
2153
2167
|
marginLeft: variant === 'bordered' ? 'xsmall' : '-xsmall'
|
|
2154
|
-
}, characterCountElement, endSlot) : null);
|
|
2168
|
+
}, characterCountElement, displayEndSlot ? endSlot : null) : null);
|
|
2155
2169
|
});
|
|
2156
2170
|
});
|
|
2157
2171
|
|