@carbon/ibm-products 2.90.0 → 2.91.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/css/index-full-carbon.css +244 -1
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +219 -41
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +244 -1
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +283 -40
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +1 -0
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts.map +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +6 -0
- package/es/components/Datagrid/utils/filterPropsForTesting.d.ts +2 -2
- package/es/components/Datagrid/utils/getBatchActions.d.ts +2 -2
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts.map +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -7
- package/es/components/InterstitialScreen/InterstitialScreenBody.d.ts.map +1 -1
- package/es/components/InterstitialScreen/InterstitialScreenBody.js +35 -22
- package/es/components/InterstitialScreen/context.d.ts +0 -1
- package/es/components/InterstitialScreen/context.d.ts.map +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel_data.d.ts +2 -2
- package/es/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/es/components/PageHeader/PageHeader.js +0 -3
- package/es/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
- package/es/components/Tearsheet/next/Tearsheet.js +6 -1
- package/es/global/js/hooks/index.d.ts +1 -0
- package/es/global/js/hooks/useCarbonFeatureFlagsObject.d.ts +17 -0
- package/es/global/js/hooks/useCarbonFeatureFlagsObject.d.ts.map +1 -0
- package/es/global/js/hooks/useCarbonFeatureFlagsObject.js +35 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +1 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts.map +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +6 -0
- package/lib/components/Datagrid/utils/filterPropsForTesting.d.ts +2 -2
- package/lib/components/Datagrid/utils/getBatchActions.d.ts +2 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts.map +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +1 -7
- package/lib/components/InterstitialScreen/InterstitialScreenBody.d.ts.map +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreenBody.js +34 -21
- package/lib/components/InterstitialScreen/context.d.ts +0 -1
- package/lib/components/InterstitialScreen/context.d.ts.map +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel_data.d.ts +2 -2
- package/lib/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/lib/components/PageHeader/PageHeader.js +0 -3
- package/lib/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
- package/lib/components/Tearsheet/next/Tearsheet.js +6 -1
- package/lib/global/js/hooks/index.d.ts +1 -0
- package/lib/global/js/hooks/useCarbonFeatureFlagsObject.d.ts +17 -0
- package/lib/global/js/hooks/useCarbonFeatureFlagsObject.d.ts.map +1 -0
- package/lib/global/js/hooks/useCarbonFeatureFlagsObject.js +36 -0
- package/package.json +17 -17
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +1 -2
- package/scss/components/PageHeader/_page-header.scss +2 -1
- package/es/global/js/utils/carousel/carousel-test.d.ts +0 -2
- package/es/global/js/utils/carousel/carousel-test.d.ts.map +0 -1
- package/es/global/js/utils/carousel/carousel.d.ts +0 -15
- package/es/global/js/utils/carousel/carousel.d.ts.map +0 -1
- package/es/global/js/utils/carousel/index.d.ts +0 -9
- package/es/global/js/utils/carousel/index.d.ts.map +0 -1
- package/es/global/js/utils/carousel/swipeEvents.d.ts +0 -8
- package/es/global/js/utils/carousel/swipeEvents.d.ts.map +0 -1
- package/es/global/js/utils/carousel/types.d.ts +0 -39
- package/es/global/js/utils/carousel/types.d.ts.map +0 -1
- package/lib/global/js/utils/carousel/carousel-test.d.ts +0 -2
- package/lib/global/js/utils/carousel/carousel-test.d.ts.map +0 -1
- package/lib/global/js/utils/carousel/carousel.d.ts +0 -15
- package/lib/global/js/utils/carousel/carousel.d.ts.map +0 -1
- package/lib/global/js/utils/carousel/index.d.ts +0 -9
- package/lib/global/js/utils/carousel/index.d.ts.map +0 -1
- package/lib/global/js/utils/carousel/swipeEvents.d.ts +0 -8
- package/lib/global/js/utils/carousel/swipeEvents.d.ts.map +0 -1
- package/lib/global/js/utils/carousel/types.d.ts +0 -39
- package/lib/global/js/utils/carousel/types.d.ts.map +0 -1
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
9
|
const require_devtools = require("../../global/js/utils/devtools.js");
|
|
10
10
|
const require_context = require("./context.js");
|
|
11
|
-
const require_Carousel = require("../Carousel/Carousel.js");
|
|
12
11
|
let react = require("react");
|
|
13
12
|
react = require_runtime.__toESM(react);
|
|
14
13
|
let prop_types = require("prop-types");
|
|
15
14
|
prop_types = require_runtime.__toESM(prop_types);
|
|
16
15
|
let _carbon_react = require("@carbon/react");
|
|
16
|
+
let _carbon_utilities = require("@carbon/utilities");
|
|
17
17
|
//#region src/components/InterstitialScreen/InterstitialScreenBody.tsx
|
|
18
18
|
/**
|
|
19
19
|
* Copyright IBM Corp. 2024, 2025
|
|
@@ -25,8 +25,9 @@ const InterstitialScreenBody = react.default.forwardRef((props, ref) => {
|
|
|
25
25
|
const { className = "", contentRenderer, ...rest } = props;
|
|
26
26
|
const bodyBlockClass = `${require_context.blockClass}--internal-body`;
|
|
27
27
|
const [stepType, setStepType] = (0, react.useState)();
|
|
28
|
-
const { setBodyChildrenData, bodyChildrenData, isFullScreen, setProgStep, bodyScrollRef,
|
|
29
|
-
const
|
|
28
|
+
const { setBodyChildrenData, bodyChildrenData, isFullScreen, setProgStep, bodyScrollRef, handleGotoStep, progStep, setStepCount, disableButtonConfig, setDisableButtonConfig } = (0, react.useContext)(require_context.InterstitialScreenContext);
|
|
29
|
+
const carouselContainerRef = (0, react.useRef)(null);
|
|
30
|
+
const carouselInitRef = (0, react.useRef)(null);
|
|
30
31
|
(0, react.useEffect)(() => {
|
|
31
32
|
const _bodyContent = contentRenderer?.({
|
|
32
33
|
handleGotoStep,
|
|
@@ -44,37 +45,49 @@ const InterstitialScreenBody = react.default.forwardRef((props, ref) => {
|
|
|
44
45
|
setStepCount?.(1);
|
|
45
46
|
setBodyChildrenData?.(_bodyContent);
|
|
46
47
|
}
|
|
47
|
-
}, [
|
|
48
|
-
props.children,
|
|
49
|
-
contentRenderer,
|
|
50
|
-
progStep
|
|
51
|
-
]);
|
|
48
|
+
}, [props.children, contentRenderer]);
|
|
52
49
|
(0, react.useEffect)(() => {
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
if (stepType !== "multi" || !carouselContainerRef.current || !bodyChildrenData) return;
|
|
51
|
+
carouselInitRef.current?.destroyEvents?.();
|
|
52
|
+
carouselInitRef.current = (0, _carbon_utilities.initCarousel)(carouselContainerRef.current, {
|
|
53
|
+
onViewChangeStart: () => {},
|
|
54
|
+
onViewChangeEnd: ({ currentIndex }) => {
|
|
55
|
+
setProgStep?.(currentIndex);
|
|
56
|
+
},
|
|
57
|
+
excludeSwipeSupport: true,
|
|
58
|
+
useMaxHeight: true
|
|
59
|
+
});
|
|
60
|
+
return () => {
|
|
61
|
+
carouselInitRef.current?.destroyEvents?.();
|
|
62
|
+
carouselInitRef.current = null;
|
|
63
|
+
};
|
|
64
|
+
}, [stepType, bodyChildrenData]);
|
|
65
|
+
(0, react.useEffect)(() => {
|
|
66
|
+
if (stepType === "multi" && typeof progStep === "number") {
|
|
67
|
+
const activeIndex = (carouselInitRef.current?.getActiveItem?.())?.index ?? -1;
|
|
68
|
+
if (activeIndex !== -1 && activeIndex < progStep) carouselInitRef.current?.next?.();
|
|
69
|
+
else if (activeIndex !== -1 && activeIndex > progStep) carouselInitRef.current?.prev?.();
|
|
56
70
|
}
|
|
57
|
-
}, [
|
|
71
|
+
}, [progStep, stepType]);
|
|
58
72
|
const disableActionButton = (config) => {
|
|
59
73
|
setDisableButtonConfig?.({
|
|
60
74
|
...disableButtonConfig,
|
|
61
75
|
...config
|
|
62
76
|
});
|
|
63
77
|
};
|
|
64
|
-
const onScrollHandler = (scrollPercent) => setScrollPercent(scrollPercent);
|
|
65
78
|
const renderBody = () => /* @__PURE__ */ react.default.createElement("div", {
|
|
66
79
|
className: `${require_context.blockClass}--body ${className}`,
|
|
67
|
-
ref: bodyScrollRef ?? ref,
|
|
80
|
+
ref: isFullScreen ? bodyScrollRef ?? ref : ref,
|
|
68
81
|
...require_devtools.getDevtoolsProps("InterstitialScreenBody"),
|
|
69
82
|
...isFullScreen ? rest : {}
|
|
70
|
-
}, /* @__PURE__ */ react.default.createElement("div", { className: `${require_context.blockClass}--content` }, stepType === "multi" ? /* @__PURE__ */ react.default.createElement("div", {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, bodyChildrenData)) : stepType === "single" ? bodyChildrenData : ""));
|
|
83
|
+
}, /* @__PURE__ */ react.default.createElement("div", { className: `${require_context.blockClass}--content` }, stepType === "multi" ? /* @__PURE__ */ react.default.createElement("div", {
|
|
84
|
+
className: `${require_context.blockClass}__carousel `,
|
|
85
|
+
ref: (node) => {
|
|
86
|
+
carouselContainerRef.current = node;
|
|
87
|
+
}
|
|
88
|
+
}, react.default.Children.map(bodyChildrenData, (child, index) => (0, react.isValidElement)(child) ? /* @__PURE__ */ react.default.createElement("div", { "data-index": index }, child) : null)) : stepType === "single" ? bodyChildrenData : ""));
|
|
76
89
|
return isFullScreen ? renderBody() : /* @__PURE__ */ react.default.createElement(_carbon_react.ModalBody, {
|
|
77
|
-
ref,
|
|
90
|
+
ref: bodyScrollRef ?? ref,
|
|
78
91
|
className: bodyBlockClass,
|
|
79
92
|
...rest
|
|
80
93
|
}, renderBody());
|
|
@@ -20,7 +20,6 @@ export interface InterstitialScreenContextType {
|
|
|
20
20
|
progStep: number;
|
|
21
21
|
setProgStep?: (value: number) => void;
|
|
22
22
|
bodyScrollRef?: RefObject<HTMLDivElement | null>;
|
|
23
|
-
scrollRef?: RefObject<HTMLDivElement>;
|
|
24
23
|
handleGotoStep?: (value: number) => void;
|
|
25
24
|
stepCount: number;
|
|
26
25
|
setStepCount?: (value: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/InterstitialScreen/context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtE,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AACF,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAA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uB,CAAC;IAC9C,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;CACnE;AAGD,eAAO,MAAM,UAAU,QAAuC,CAAC;AAE/D,eAAO,MAAM,yBAAyB,wDACuC,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const data: ({
|
|
|
6
6
|
description: string;
|
|
7
7
|
timestamp: Date;
|
|
8
8
|
unread: boolean;
|
|
9
|
-
onNotificationClick:
|
|
9
|
+
onNotificationClick: any;
|
|
10
10
|
link?: undefined;
|
|
11
11
|
} | {
|
|
12
12
|
id: string;
|
|
@@ -18,7 +18,7 @@ declare const data: ({
|
|
|
18
18
|
};
|
|
19
19
|
timestamp: Date;
|
|
20
20
|
unread: boolean;
|
|
21
|
-
onNotificationClick:
|
|
21
|
+
onNotificationClick: any;
|
|
22
22
|
description?: undefined;
|
|
23
23
|
})[];
|
|
24
24
|
//# sourceMappingURL=NotificationsPanel_data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,GAAG,EAGH,WAAW,EACX,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,KAAK,EAAE,EAEZ,GAAG,EAEH,iBAAiB,EACjB,SAAS,EAKV,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,GAAG,EAGH,WAAW,EACX,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,KAAK,EAAE,EAEZ,GAAG,EAEH,iBAAiB,EACjB,SAAS,EAKV,MAAM,OAAO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ACb;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;IAEzC;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAC/C,eAAe,GACf,mBAAmB,GACnB,eAAe,GACf,+BAA+B,CAAC;AAoBlC,eAAO,MAAM,UAAU,wFAqyBtB,CAAC;AAqBF,eAAO,MAAM,eAAe;IAC1B;;;OAGG;;IAKH;;OAEG;;CAKJ,CAAC"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
9
|
const require_index = require("../../node_modules/classnames/index.js");
|
|
10
|
-
const require_settings = require("../../settings.js");
|
|
11
10
|
const require_useIsomorphicEffect = require("../../global/js/hooks/useIsomorphicEffect.js");
|
|
12
11
|
const require_useWindowScroll = require("../../global/js/hooks/useWindowScroll.js");
|
|
13
12
|
const require_useWindowResize = require("../../global/js/hooks/useWindowResize.js");
|
|
@@ -30,8 +29,6 @@ let _carbon_layout = require("@carbon/layout");
|
|
|
30
29
|
//#region src/components/PageHeader/PageHeader.tsx
|
|
31
30
|
var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
|
|
32
31
|
const componentName = "PageHeader";
|
|
33
|
-
require_settings.pkg._silenceWarnings(true);
|
|
34
|
-
require_settings.pkg.component.ActionBar = true;
|
|
35
32
|
const defaults = {
|
|
36
33
|
fullWidthGrid: false,
|
|
37
34
|
narrowGrid: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tearsheet.d.ts","sourceRoot":"","sources":["../../../../src/components/Tearsheet/next/Tearsheet.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EAKZ,SAAS,EAET,EAAE,EA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CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,yBAAyB,CAClE,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CACrD,GAAG;IACF,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC;IACjC,aAAa,EAAE,EAAE,CAAC,2BAA2B,CAAC,CAAC;IAC/C,UAAU,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC;IAChC,aAAa,EAAE,EAAE,CAAC,2BAA2B,CAAC,CAAC;IAC/C,YAAY,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC;IAC7C,aAAa,EAAE,EAAE,CAAC,2BAA2B,CAAC,CAAC;IAC/C,gBAAgB,EAAE,EAAE,CAAC,8BAA8B,CAAC,CAAC;IACrD,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC;IAClC,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC;IACxC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC;IAC7B,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC;CAClC,CAAC;AAwNF;;;GAGG;AACH,eAAO,MAAM,SAAS,EA0BjB,sBAAsB,CAAC"}
|
|
@@ -9,6 +9,7 @@ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
|
|
|
9
9
|
const require_index = require("../../../node_modules/classnames/index.js");
|
|
10
10
|
const require_useIsomorphicEffect = require("../../../global/js/hooks/useIsomorphicEffect.js");
|
|
11
11
|
const require_useMatchMedia = require("../../../global/js/hooks/useMatchMedia.js");
|
|
12
|
+
const require_useCarbonFeatureFlagsObject = require("../../../global/js/hooks/useCarbonFeatureFlagsObject.js");
|
|
12
13
|
const require_useMergedRefs = require("../../../global/js/hooks/useMergedRefs.js");
|
|
13
14
|
const require_useId = require("../../../global/js/utils/useId.js");
|
|
14
15
|
const require_usePresence = require("../usePresence.js");
|
|
@@ -46,6 +47,7 @@ const TearsheetInternal = (0, react.forwardRef)(({ children, variant = "wide", s
|
|
|
46
47
|
presenceRef
|
|
47
48
|
]);
|
|
48
49
|
const isSm = require_useMatchMedia.useMatchMedia(`(max-width: ${_carbon_layout.breakpoints.md.width})`) || variant === "narrow";
|
|
50
|
+
const parentFlagsObject = require_useCarbonFeatureFlagsObject.useCarbonFeatureFlagsObject();
|
|
49
51
|
const [fullyCollapsed, setFullyCollapsed] = (0, react.useState)(false);
|
|
50
52
|
const [disableHeaderCollapse, setDisableHeaderCollapse] = (0, react.useState)(false);
|
|
51
53
|
const arr = react.default.Children.toArray(children);
|
|
@@ -98,7 +100,10 @@ const TearsheetInternal = (0, react.forwardRef)(({ children, variant = "wide", s
|
|
|
98
100
|
variant,
|
|
99
101
|
isSm,
|
|
100
102
|
decorator
|
|
101
|
-
} }, /* @__PURE__ */ react.default.createElement(_carbon_react.unstable_FeatureFlags, {
|
|
103
|
+
} }, /* @__PURE__ */ react.default.createElement(_carbon_react.unstable_FeatureFlags, { flags: {
|
|
104
|
+
...parentFlagsObject,
|
|
105
|
+
"enable-experimental-focus-wrap-without-sentinels": true
|
|
106
|
+
} }, /* @__PURE__ */ react.default.createElement(_carbon_react.ComposedModal, {
|
|
102
107
|
...rest,
|
|
103
108
|
"aria-label": ariaLabel,
|
|
104
109
|
className: (0, import_classnames.default)(require_context.blockClass, className, {
|
|
@@ -14,5 +14,6 @@ export { useIsomorphicEffect } from "./useIsomorphicEffect";
|
|
|
14
14
|
export { usePresence } from "./usePresence";
|
|
15
15
|
export { usePrefersReducedMotion } from "./usePrefersReducedMotion";
|
|
16
16
|
export { useMatchMedia } from "./useMatchMedia";
|
|
17
|
+
export { useCarbonFeatureFlagsObject } from "./useCarbonFeatureFlagsObject";
|
|
17
18
|
export { useNearestScroll, useWindowScroll } from "./useWindowScroll";
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Custom hook that converts Carbon's FeatureFlags scope to a plain object.
|
|
9
|
+
* This is useful when you need to pass parent feature flags to a nested
|
|
10
|
+
* FeatureFlags component, ensuring all parent flags are preserved.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Record<string, boolean>} An object containing all feature flags from the parent scope
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
export declare function useCarbonFeatureFlagsObject(): Record<string, boolean>;
|
|
17
|
+
//# sourceMappingURL=useCarbonFeatureFlagsObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCarbonFeatureFlagsObject.d.ts","sourceRoot":"","sources":["../../../../src/global/js/hooks/useCarbonFeatureFlagsObject.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmBrE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2020, 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
require("../../../_virtual/_rolldown/runtime.js");
|
|
9
|
+
let react = require("react");
|
|
10
|
+
let _carbon_react = require("@carbon/react");
|
|
11
|
+
//#region src/global/js/hooks/useCarbonFeatureFlagsObject.ts
|
|
12
|
+
/**
|
|
13
|
+
* Copyright IBM Corp. 2026
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Custom hook that converts Carbon's FeatureFlags scope to a plain object.
|
|
20
|
+
* This is useful when you need to pass parent feature flags to a nested
|
|
21
|
+
* FeatureFlags component, ensuring all parent flags are preserved.
|
|
22
|
+
*
|
|
23
|
+
* @returns {Record<string, boolean>} An object containing all feature flags from the parent scope
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
*/
|
|
27
|
+
function useCarbonFeatureFlagsObject() {
|
|
28
|
+
const parentFeatureFlags = (0, _carbon_react.unstable_useFeatureFlags)();
|
|
29
|
+
return (0, react.useMemo)(() => {
|
|
30
|
+
const flagsObj = {};
|
|
31
|
+
if (parentFeatureFlags?.flags) for (const [key, value] of parentFeatureFlags.flags) flagsObj[key] = value;
|
|
32
|
+
return flagsObj;
|
|
33
|
+
}, [parentFeatureFlags]);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.useCarbonFeatureFlagsObject = useCarbonFeatureFlagsObject;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibm-products",
|
|
3
3
|
"description": "Carbon for IBM Products",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.91.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"postinstall": "ibmtelemetry --config=telemetry.yml",
|
|
53
53
|
"start": "run-s build:carbon storybook:start",
|
|
54
54
|
"storybook:build": "yarn build:carbon && cross-env NODE_OPTIONS=--max_old_space_size=8192 storybook build --quiet",
|
|
55
|
-
"storybook:start": "storybook dev
|
|
55
|
+
"storybook:start": "storybook dev -p 3000",
|
|
56
56
|
"telemetry-config": "ibmtelemetry-config generate --id 495342db-5046-4ecf-85ea-9ffceb6f8cdf --endpoint https://www-api.ibm.com/ibm-telemetry/v1/metrics --files ./src/components/**/*.(tsx|js|jsx)",
|
|
57
57
|
"test": "jest --colors"
|
|
58
58
|
},
|
|
@@ -66,19 +66,19 @@
|
|
|
66
66
|
"@babel/preset-env": "^7.26.9",
|
|
67
67
|
"@babel/preset-react": "^7.26.3",
|
|
68
68
|
"@babel/preset-typescript": "^7.26.0",
|
|
69
|
-
"@carbon/styles": "^1.
|
|
69
|
+
"@carbon/styles": "^1.106.0",
|
|
70
70
|
"@figma/code-connect": "^1.4.0",
|
|
71
71
|
"@ibm/telemetry-js-config-generator": "^2.0.1",
|
|
72
|
-
"@storybook/addon-a11y": "^
|
|
73
|
-
"@storybook/addon-docs": "^
|
|
74
|
-
"@storybook/addon-links": "^
|
|
72
|
+
"@storybook/addon-a11y": "^10.3.5",
|
|
73
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
74
|
+
"@storybook/addon-links": "^10.3.5",
|
|
75
75
|
"@storybook/csf": "^0.1.13",
|
|
76
|
-
"@storybook/react-vite": "^
|
|
76
|
+
"@storybook/react-vite": "^10.3.5",
|
|
77
77
|
"@types/prop-types": "^15.7.15",
|
|
78
78
|
"@types/react-table": "^7.7.20",
|
|
79
79
|
"@vitejs/plugin-react": "^5.0.0",
|
|
80
80
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
81
|
-
"babel-preset-ibm-cloud-cognitive": "^0.
|
|
81
|
+
"babel-preset-ibm-cloud-cognitive": "^0.49.0",
|
|
82
82
|
"change-case": "5.4.4",
|
|
83
83
|
"classnames": "^2.5.1",
|
|
84
84
|
"copyfiles": "^2.4.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"fs-extra": "^11.3.0",
|
|
87
87
|
"glob": "^13.0.0",
|
|
88
88
|
"jest": "^29.7.0",
|
|
89
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
|
89
|
+
"jest-config-ibm-cloud-cognitive": "^1.50.0",
|
|
90
90
|
"jest-environment-jsdom": "^29.7.0",
|
|
91
91
|
"namor": "^1.1.2",
|
|
92
92
|
"npm-run-all2": "^8.0.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"react-dom": "^19.1.0",
|
|
95
95
|
"rimraf": "^6.0.1",
|
|
96
96
|
"sass": "^1.93.2",
|
|
97
|
-
"storybook": "^
|
|
97
|
+
"storybook": "^10.3.5",
|
|
98
98
|
"storybook-addon-accessibility-checker": ">=9.2.0-git0",
|
|
99
99
|
"tsdown": "^0.21.0",
|
|
100
100
|
"typescript": "^5.7.3",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"@babel/runtime": "^7.26.10",
|
|
107
|
-
"@carbon-labs/react-resizer": "^0.
|
|
107
|
+
"@carbon-labs/react-resizer": "^0.24.0",
|
|
108
108
|
"@carbon/feature-flags": "^1.3.0",
|
|
109
|
-
"@carbon/ibm-products-styles": "^2.
|
|
109
|
+
"@carbon/ibm-products-styles": "^2.87.0",
|
|
110
110
|
"@carbon/telemetry": "^0.1.0",
|
|
111
111
|
"@carbon/utilities": "^0.19.0",
|
|
112
112
|
"@carbon/utilities-react": "0.22.0",
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
"react-window": "^1.8.11"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
|
-
"@carbon/grid": "^11.
|
|
123
|
+
"@carbon/grid": "^11.55.0",
|
|
124
124
|
"@carbon/layout": "^11.52.0",
|
|
125
125
|
"@carbon/motion": "^11.45.0",
|
|
126
|
-
"@carbon/react": "^1.
|
|
127
|
-
"@carbon/themes": "^11.
|
|
128
|
-
"@carbon/type": "^11.
|
|
126
|
+
"@carbon/react": "^1.107.1",
|
|
127
|
+
"@carbon/themes": "^11.73.0",
|
|
128
|
+
"@carbon/type": "^11.59.0",
|
|
129
129
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
|
130
130
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
|
131
131
|
"react-is": "^16.13.1 || ^17.0.2 || ^18.3.1 || ^19.0.0"
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "0759cc88f97d620e6826afa428f2ca070ac755e7"
|
|
134
134
|
}
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
@use '../../global/styles/project-settings' as c4p-settings;
|
|
20
20
|
@use '../../global/styles/mixins';
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
@use '../Carousel/carousel';
|
|
22
|
+
@use '@carbon/utilities/scss/carousel/_index';
|
|
24
23
|
|
|
25
24
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
|
26
25
|
$block-class: #{c4p-settings.$pkg-prefix}--interstitial-screen;
|
|
@@ -854,8 +854,8 @@ $duration: 1000ms;
|
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
.#{$block-class}__content {
|
|
857
|
-
padding: $spacing-06 0;
|
|
858
857
|
background-color: $layer;
|
|
858
|
+
padding-block-start: $spacing-06;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
.#{$block-class}__content__title-wrapper {
|
|
@@ -963,6 +963,7 @@ $duration: 1000ms;
|
|
|
963
963
|
|
|
964
964
|
margin-block-start: $spacing-03;
|
|
965
965
|
max-inline-size: to-rem(640px);
|
|
966
|
+
padding-block-end: $spacing-06;
|
|
966
967
|
}
|
|
967
968
|
|
|
968
969
|
[data-hidden]:not([data-fixed]) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-test.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/carousel-test.js"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
import { InitCarousel, Config } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Initializes a carousel with the given configuration.
|
|
10
|
-
* @param carouselContainer - The HTMLElement representing the carousel container.
|
|
11
|
-
* @param config - Optional configuration object.
|
|
12
|
-
* @returns An object containing methods to control the carousel.
|
|
13
|
-
*/
|
|
14
|
-
export declare const initCarousel: (carouselContainer: HTMLElement, config?: Config) => InitCarousel;
|
|
15
|
-
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/carousel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,YAAY,EAGZ,MAAM,EACP,MAAM,SAAS,CAAC;AAGjB;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,mBAAmB,WAAW,EAC9B,SAAS,MAAM,KACd,YAuZF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
export * from './carousel';
|
|
8
|
-
export * from './types';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
export declare const registerSwipeEvents: (carousel: HTMLElement, next: () => void, prev: () => void, destroy: boolean) => void;
|
|
8
|
-
//# sourceMappingURL=swipeEvents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swipeEvents.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/swipeEvents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,WAAW,EACrB,MAAM,MAAM,IAAI,EAChB,MAAM,MAAM,IAAI,EAChB,SAAS,OAAO,SAyGjB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
interface CarouselStackHistory {
|
|
10
|
-
id: number;
|
|
11
|
-
elem: HTMLLIElement;
|
|
12
|
-
}
|
|
13
|
-
type CarouselResponse = {
|
|
14
|
-
currentIndex: number;
|
|
15
|
-
lastIndex: number;
|
|
16
|
-
totalViews: number;
|
|
17
|
-
historyStack: CarouselStackHistory[];
|
|
18
|
-
};
|
|
19
|
-
type ActiveItem = {
|
|
20
|
-
index: number;
|
|
21
|
-
item: HTMLElement | null;
|
|
22
|
-
};
|
|
23
|
-
export type Config = {
|
|
24
|
-
onViewChangeStart?: (args: CarouselResponse) => void;
|
|
25
|
-
onViewChangeEnd?: (args: CarouselResponse) => void;
|
|
26
|
-
excludeSwipeSupport?: boolean;
|
|
27
|
-
useMaxHeight?: boolean;
|
|
28
|
-
};
|
|
29
|
-
interface InitCarousel {
|
|
30
|
-
next: () => void;
|
|
31
|
-
prev: () => void;
|
|
32
|
-
reset: () => void;
|
|
33
|
-
goToIndex: (index: number) => void;
|
|
34
|
-
getActiveItem: () => ActiveItem;
|
|
35
|
-
destroyEvents: (() => void) | null;
|
|
36
|
-
allViews: Record<number, HTMLElement | null>;
|
|
37
|
-
}
|
|
38
|
-
export type { CarouselStackHistory, CarouselResponse, InitCarousel };
|
|
39
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,KAAK,gBAAgB,GAAG;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,oBAAoB,EAAE,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,MAAM,UAAU,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;CAC9C;AACD,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-test.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/carousel-test.js"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
import { InitCarousel, Config } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Initializes a carousel with the given configuration.
|
|
10
|
-
* @param carouselContainer - The HTMLElement representing the carousel container.
|
|
11
|
-
* @param config - Optional configuration object.
|
|
12
|
-
* @returns An object containing methods to control the carousel.
|
|
13
|
-
*/
|
|
14
|
-
export declare const initCarousel: (carouselContainer: HTMLElement, config?: Config) => InitCarousel;
|
|
15
|
-
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/carousel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,YAAY,EAGZ,MAAM,EACP,MAAM,SAAS,CAAC;AAGjB;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,mBAAmB,WAAW,EAC9B,SAAS,MAAM,KACd,YAuZF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
export * from './carousel';
|
|
8
|
-
export * from './types';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
export declare const registerSwipeEvents: (carousel: HTMLElement, next: () => void, prev: () => void, destroy: boolean) => void;
|
|
8
|
-
//# sourceMappingURL=swipeEvents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swipeEvents.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/swipeEvents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,WAAW,EACrB,MAAM,MAAM,IAAI,EAChB,MAAM,MAAM,IAAI,EAChB,SAAS,OAAO,SAyGjB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
interface CarouselStackHistory {
|
|
10
|
-
id: number;
|
|
11
|
-
elem: HTMLLIElement;
|
|
12
|
-
}
|
|
13
|
-
type CarouselResponse = {
|
|
14
|
-
currentIndex: number;
|
|
15
|
-
lastIndex: number;
|
|
16
|
-
totalViews: number;
|
|
17
|
-
historyStack: CarouselStackHistory[];
|
|
18
|
-
};
|
|
19
|
-
type ActiveItem = {
|
|
20
|
-
index: number;
|
|
21
|
-
item: HTMLElement | null;
|
|
22
|
-
};
|
|
23
|
-
export type Config = {
|
|
24
|
-
onViewChangeStart?: (args: CarouselResponse) => void;
|
|
25
|
-
onViewChangeEnd?: (args: CarouselResponse) => void;
|
|
26
|
-
excludeSwipeSupport?: boolean;
|
|
27
|
-
useMaxHeight?: boolean;
|
|
28
|
-
};
|
|
29
|
-
interface InitCarousel {
|
|
30
|
-
next: () => void;
|
|
31
|
-
prev: () => void;
|
|
32
|
-
reset: () => void;
|
|
33
|
-
goToIndex: (index: number) => void;
|
|
34
|
-
getActiveItem: () => ActiveItem;
|
|
35
|
-
destroyEvents: (() => void) | null;
|
|
36
|
-
allViews: Record<number, HTMLElement | null>;
|
|
37
|
-
}
|
|
38
|
-
export type { CarouselStackHistory, CarouselResponse, InitCarousel };
|
|
39
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/global/js/utils/carousel/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,KAAK,gBAAgB,GAAG;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,oBAAoB,EAAE,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,MAAM,UAAU,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;CAC9C;AACD,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"}
|