@uxf/ui 10.0.0-beta.21 → 10.0.0-beta.25

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/chip/chip.js CHANGED
@@ -41,10 +41,11 @@ const CloseButton = (props) => {
41
41
  };
42
42
  exports.Chip = (0, react_1.forwardRef)((props, ref) => {
43
43
  var _a, _b, _c;
44
- const { children, className, onClose, ...restProps } = props;
44
+ const { children, className, onClose, suppressFocus, tabIndex, ...restProps } = props;
45
45
  const chipClassName = (0, cx_1.cx)("uxf-chip", `uxf-chip--color-${(_a = props.color) !== null && _a !== void 0 ? _a : "default"}`, `uxf-chip--size-${(_b = props.size) !== null && _b !== void 0 ? _b : "default"}`, `uxf-chip--variant-${(_c = props.variant) !== null && _c !== void 0 ? _c : "default"}`, onClose && "has-button", className);
46
46
  const anchorProps = (0, useAnchorProps_1.useAnchorProps)({
47
47
  className: (0, cx_1.cx)(chipClassName),
48
+ tabIndex: suppressFocus ? -1 : tabIndex,
48
49
  ...restProps,
49
50
  });
50
51
  return (react_1.default.createElement("a", { ref: ref, ...anchorProps },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "10.0.0-beta.21",
3
+ "version": "10.0.0-beta.25",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@floating-ui/react": "0.24.2",
17
17
  "@headlessui/react": "1.7.14",
18
- "@uxf/core": "10.0.0-beta.15",
18
+ "@uxf/core": "10.0.0-beta.25",
19
19
  "@uxf/datepicker": "10.0.0-beta.9",
20
20
  "@uxf/styles": "10.0.0-beta.9",
21
21
  "color2k": "^2.0.2",
@@ -42,7 +42,7 @@ const RasterImage = (props) => {
42
42
  : props.width && props.height
43
43
  ? Math.ceil((props.height / props.width) * w)
44
44
  : "auto", key: `${w}-${i}`, options: props.options, quality: props.quality, src: props.src, width: w }))).reverse()) !== null && _f !== void 0 ? _f : (react_1.default.createElement(image_1.ImgSources, { height: (_g = props.height) !== null && _g !== void 0 ? _g : "auto", options: props.options, quality: props.quality, src: props.src, width: (_h = props.width) !== null && _h !== void 0 ? _h : "auto" })),
45
- react_1.default.createElement("img", { alt: props.alt, className: (0, cx_1.cx)(imgClassName), height: props.height, loading: props.loading, src: resizerSrc, width: props.width })));
45
+ react_1.default.createElement("img", { alt: props.alt, className: (0, cx_1.cx)(imgClassName), height: (0, image_1.getImgElementHeight)(props.src, props.width, props.height), loading: props.loading, src: resizerSrc, width: (0, image_1.getImgElementWidth)(props.src, props.width, props.height) })));
46
46
  };
47
47
  exports.RasterImage = RasterImage;
48
48
  exports.RasterImage.displayName = "UxfUiRasterImage";