@scaleflex/ui-tw 0.0.157 → 0.0.158
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/combobox/combobox-multi-tag/combobox-multi-tag.component.js +1 -1
- package/form/components/form-field-group.component.d.ts +1 -1
- package/form/components/form-field-group.component.js +2 -0
- package/form/form.types.d.ts +1 -0
- package/label/components/info-outline-icon.js +2 -8
- package/package.json +2 -2
|
@@ -95,7 +95,7 @@ export function ComboboxMultiTag(_ref) {
|
|
|
95
95
|
onClick: handleOnTriggerClick,
|
|
96
96
|
onKeyDown: handleOnTriggerKeyDown
|
|
97
97
|
}, triggerProps), !isSelected ? /*#__PURE__*/React.createElement("span", {
|
|
98
|
-
className: "text-muted-foreground"
|
|
98
|
+
className: "text-muted-foreground min-w-0 truncate text-left"
|
|
99
99
|
}, placeholder) : /*#__PURE__*/React.createElement("div", {
|
|
100
100
|
className: cn('flex w-full flex-wrap justify-start gap-2 overflow-y-auto', textareaVariants({
|
|
101
101
|
size: size
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldValues, Path } from 'react-hook-form';
|
|
3
3
|
import type { FormFieldGroupProps } from '../form.types';
|
|
4
|
-
declare function FormFieldGroup<TFieldValues extends FieldValues, TName extends Path<TFieldValues>>({ control, name, label, description, size, readOnly, disabled, tooltip, disabledTooltip, highlight, horizontal, horizontalLabelWidth, showCharCount, maxLength, children, }: FormFieldGroupProps<TFieldValues, TName>): React.JSX.Element;
|
|
4
|
+
declare function FormFieldGroup<TFieldValues extends FieldValues, TName extends Path<TFieldValues>>({ control, name, label, description, size, readOnly, disabled, tooltip, disabledTooltip, tooltipIcon, highlight, horizontal, horizontalLabelWidth, showCharCount, maxLength, children, }: FormFieldGroupProps<TFieldValues, TName>): React.JSX.Element;
|
|
5
5
|
export { FormFieldGroup };
|
|
@@ -18,6 +18,7 @@ function FormFieldGroup(_ref) {
|
|
|
18
18
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
19
19
|
tooltip = _ref.tooltip,
|
|
20
20
|
disabledTooltip = _ref.disabledTooltip,
|
|
21
|
+
tooltipIcon = _ref.tooltipIcon,
|
|
21
22
|
highlight = _ref.highlight,
|
|
22
23
|
_ref$horizontal = _ref.horizontal,
|
|
23
24
|
horizontal = _ref$horizontal === void 0 ? false : _ref$horizontal,
|
|
@@ -49,6 +50,7 @@ function FormFieldGroup(_ref) {
|
|
|
49
50
|
size: size,
|
|
50
51
|
tooltip: tooltip,
|
|
51
52
|
disabledTooltip: disabledTooltip,
|
|
53
|
+
icon: tooltipIcon,
|
|
52
54
|
disabled: disabled
|
|
53
55
|
}, resolvedLabel) : /*#__PURE__*/React.createElement("span", null), showCharCount && /*#__PURE__*/React.createElement("span", {
|
|
54
56
|
className: cn('text-muted-foreground shrink-0 tabular-nums', 'group-data-[disabled=true]:opacity-50', maxLength && charCount >= maxLength && 'text-destructive-foreground', formMessageSizeOptions[size])
|
package/form/form.types.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface FormBaseFieldProps {
|
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
tooltip?: ReactElement | string | (() => ReactElement);
|
|
36
36
|
disabledTooltip?: ReactElement | string | (() => ReactElement);
|
|
37
|
+
tooltipIcon?: ReactElement | (() => ReactElement);
|
|
37
38
|
showCharCount?: boolean;
|
|
38
39
|
maxLength?: number;
|
|
39
40
|
}
|
|
@@ -13,17 +13,11 @@ var InfoOutlineIcon = function InfoOutlineIcon(_ref) {
|
|
|
13
13
|
ref: ref,
|
|
14
14
|
width: size,
|
|
15
15
|
height: size,
|
|
16
|
-
viewBox: "0 0
|
|
16
|
+
viewBox: "0 0 44 44",
|
|
17
17
|
fill: "none",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg"
|
|
19
19
|
}, rest), /*#__PURE__*/React.createElement("path", {
|
|
20
|
-
d: "
|
|
21
|
-
fill: color
|
|
22
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
-
d: "M28.3755 13.125C28.3755 11.3992 26.9765 10 25.2505 10C23.5245 10 22.1255 11.3992 22.1255 13.125C22.1255 14.8516 23.5245 16.25 25.2505 16.25C26.9765 16.25 28.3755 14.8516 28.3755 13.125Z",
|
|
24
|
-
fill: color
|
|
25
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
-
d: "M20.563 38.5H29.938C30.8009 38.5 31.5005 37.8012 31.5005 36.9375C31.5005 36.0746 30.8009 35.375 29.938 35.375H28.3755V20.9375C28.3755 20.0746 27.6759 19.375 26.813 19.375H20.563C19.7001 19.375 19.0005 20.0746 19.0005 20.9375C19.0005 21.8012 19.7001 22.5 20.563 22.5H22.1255V35.375H20.563C19.7001 35.375 19.0005 36.0746 19.0005 36.9375C19.0005 37.8012 19.7001 38.5 20.563 38.5Z",
|
|
20
|
+
d: "M40 22C40 12.0589 31.9411 4 22 4C12.0589 4 4 12.0589 4 22C4 31.9411 12.0589 40 22 40C31.9411 40 40 31.9411 40 22ZM20 31V21C20 19.8954 20.8954 19 22 19C23.1046 19 24 19.8954 24 21V31C24 32.1046 23.1046 33 22 33C20.8954 33 20 32.1046 20 31ZM22.0195 11C23.1241 11 24.0195 11.8954 24.0195 13C24.0195 14.1046 23.1241 15 22.0195 15H22C20.8954 15 20 14.1046 20 13C20 11.8954 20.8954 11 22 11H22.0195ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22Z",
|
|
27
21
|
fill: color
|
|
28
22
|
}));
|
|
29
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/ui-tw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.158",
|
|
4
4
|
"author": "scaleflex",
|
|
5
5
|
"repository": "github:scaleflex/ui",
|
|
6
6
|
"homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@radix-ui/react-switch": "^1.0.1",
|
|
30
30
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
31
31
|
"@radix-ui/react-tooltip": "^1.2.6",
|
|
32
|
-
"@scaleflex/icons-tw": "^0.0.
|
|
32
|
+
"@scaleflex/icons-tw": "^0.0.158",
|
|
33
33
|
"@tanstack/react-table": "^8.21.3",
|
|
34
34
|
"@types/lodash.merge": "^4.6.9",
|
|
35
35
|
"class-variance-authority": "^0.7.1",
|