@alto-avios/alto-ui 4.5.0 → 4.6.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/{IconButton.module-4obqG6tY.js → IconButton.module-DcZ9ROrD.js} +5 -6
- package/dist/{IconButton.module-4obqG6tY.js.map → IconButton.module-DcZ9ROrD.js.map} +1 -1
- package/dist/components/Carousel/AutoplayControl/AutoplayControl.js +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/CarouselButton/CarouselButton.js +1 -1
- package/dist/components/ComboBox/ComboBox.d.ts +2 -1
- package/dist/components/ComboBox/ComboBox.js +2 -1
- package/dist/components/ComboBox/ComboBox.js.map +1 -1
- package/dist/utils/stories/DraggableContainer.js +1 -1
- package/package.json +1 -1
|
@@ -382,11 +382,10 @@ function useCarouselState({
|
|
|
382
382
|
updateSnaps();
|
|
383
383
|
const mutationObserver = new MutationObserver((mutations) => {
|
|
384
384
|
const childrenChanged = mutations.some(
|
|
385
|
-
(mutation) => (
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
)
|
|
385
|
+
(mutation) => [...mutation.addedNodes, ...mutation.removedNodes].some(
|
|
386
|
+
(el) => {
|
|
387
|
+
return el.nodeType === Node.ELEMENT_NODE && el.hasAttribute("data-carousel-item") && !el.hasAttribute("data-clone");
|
|
388
|
+
}
|
|
390
389
|
)
|
|
391
390
|
);
|
|
392
391
|
if (childrenChanged) {
|
|
@@ -1047,4 +1046,4 @@ export {
|
|
|
1047
1046
|
CarouselAutoplayControl as f,
|
|
1048
1047
|
iconButtonStyles as i
|
|
1049
1048
|
};
|
|
1050
|
-
//# sourceMappingURL=IconButton.module-
|
|
1049
|
+
//# sourceMappingURL=IconButton.module-DcZ9ROrD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.module-
|
|
1
|
+
{"version":3,"file":"IconButton.module-DcZ9ROrD.js","sources":[],"sources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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { f as CarouselAutoplayControl, i as iconButtonStyles } from "../../../IconButton.module-
|
|
3
|
+
import { f as CarouselAutoplayControl, i as iconButtonStyles } from "../../../IconButton.module-DcZ9ROrD.js";
|
|
4
4
|
import { useFocusRing } from "@react-aria/focus";
|
|
5
5
|
import { Icon } from "../../Icon/Icon.js";
|
|
6
6
|
import { focusStyleVariants } from "../../../utils/focus/focusStyles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import { c as cva } from "../../index-DdUYounA.js";
|
|
4
|
-
import { C as Carousel$1, a as CarouselScroller, b as CarouselItem, c as CarouselTabs, d as CarouselTab } from "../../IconButton.module-
|
|
4
|
+
import { C as Carousel$1, a as CarouselScroller, b as CarouselItem, c as CarouselTabs, d as CarouselTab } from "../../IconButton.module-DcZ9ROrD.js";
|
|
5
5
|
import { CarouselButton } from "./CarouselButton/CarouselButton.js";
|
|
6
6
|
import { CarouselDots } from "./CarouselDots/CarouselDots.js";
|
|
7
7
|
import { AutoplayControl } from "./AutoplayControl/AutoplayControl.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect } from "react";
|
|
3
|
-
import { e as CarouselButton$1, i as iconButtonStyles } from "../../../IconButton.module-
|
|
3
|
+
import { e as CarouselButton$1, i as iconButtonStyles } from "../../../IconButton.module-DcZ9ROrD.js";
|
|
4
4
|
import { useFocusRing } from "@react-aria/focus";
|
|
5
5
|
import { focusStyleVariants } from "../../../utils/focus/focusStyles.js";
|
|
6
6
|
import { Icon } from "../../Icon/Icon.js";
|
|
@@ -3,7 +3,8 @@ import { ComboBoxProps as AriaComboBoxProps, ListBoxItemProps as AriaListBoxItem
|
|
|
3
3
|
import { FieldProps } from '../_base/Field';
|
|
4
4
|
export interface ComboBoxProps<T extends object> extends FieldProps<AriaComboBoxProps<T>> {
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
+
hasDropDownButton?: boolean;
|
|
6
7
|
children: React.ReactNode | React.ReactElement<AriaListBoxItemProps<T>>;
|
|
7
8
|
}
|
|
8
|
-
export declare const ComboBox: <T extends object>({ children, isLoading, ...props }: ComboBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ComboBox: <T extends object>({ children, isLoading, hasDropDownButton, ...props }: ComboBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default ComboBox;
|
|
@@ -16,12 +16,13 @@ const styles = {
|
|
|
16
16
|
const ComboBox = ({
|
|
17
17
|
children,
|
|
18
18
|
isLoading,
|
|
19
|
+
hasDropDownButton = true,
|
|
19
20
|
...props
|
|
20
21
|
}) => {
|
|
21
22
|
return /* @__PURE__ */ jsxs(Field, { as: ComboBox$1, className: styles["comboBox"], ...props, children: [
|
|
22
23
|
/* @__PURE__ */ jsxs(Group, { className: styles["comboBox-group"], children: [
|
|
23
24
|
/* @__PURE__ */ jsx(Input, { className: styles["comboBox-input"] }),
|
|
24
|
-
isLoading ? /* @__PURE__ */ jsx(LoadingSpinner, { size: "1.25x", className: styles["comboBox-loading"] }) : /* @__PURE__ */ jsx(Button, { className: styles.comboBoxButton, isDisabled: props == null ? void 0 : props.isDisabled, children: /* @__PURE__ */ jsx(Icon, { iconName: "angles-up-down", iconPrefix: "fas", padding: "roomy", scale: "1x" }) })
|
|
25
|
+
isLoading ? /* @__PURE__ */ jsx(LoadingSpinner, { size: "1.25x", className: styles["comboBox-loading"] }) : hasDropDownButton && /* @__PURE__ */ jsx(Button, { className: styles.comboBoxButton, isDisabled: props == null ? void 0 : props.isDisabled, children: /* @__PURE__ */ jsx(Icon, { iconName: "angles-up-down", iconPrefix: "fas", padding: "roomy", scale: "1x" }) })
|
|
25
26
|
] }),
|
|
26
27
|
/* @__PURE__ */ jsx(Popover, { className: styles["comboBox-popover"], children })
|
|
27
28
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComboBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,7 +8,7 @@ import "../../components/Breadcrumbs/Breadcrumbs.js";
|
|
|
8
8
|
import "../../components/Button/Button.js";
|
|
9
9
|
import "../../components/IconButton/IconButton.js";
|
|
10
10
|
import "../../components/CardSection/CardSection.js";
|
|
11
|
-
import "../../IconButton.module-
|
|
11
|
+
import "../../IconButton.module-DcZ9ROrD.js";
|
|
12
12
|
import "../../components/Carousel/CarouselButton/CarouselButton.js";
|
|
13
13
|
import "@react-aria/focus";
|
|
14
14
|
import "@react-aria/interactions";
|