@ultraviolet/plus 3.0.0-beta.9 → 3.0.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/components/CodeEditor/CodeEditor.d.ts +3 -2
- package/dist/components/CodeEditor/CodeEditor.js +44 -13
- package/dist/components/ContentCard/Skeleton.d.ts +1 -1
- package/dist/components/ContentCard/Skeleton.js +13 -8
- package/dist/components/ContentCard/index.d.ts +2 -1
- package/dist/components/ContentCard/index.js +131 -50
- package/dist/components/ContentCard/styles.css.js +0 -1
- package/dist/components/ContentCardGroup/Card.d.ts +2 -1
- package/dist/components/ContentCardGroup/Card.js +65 -86
- package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
- package/dist/components/ContentCardGroup/SkeletonCard.js +4 -22
- package/dist/components/ContentCardGroup/index.d.ts +3 -1
- package/dist/components/ContentCardGroup/index.js +12 -18
- package/dist/components/ContentCardGroup/styles.css.d.ts +7 -0
- package/dist/components/ContentCardGroup/styles.css.js +18 -0
- package/dist/components/Conversation/index.d.ts +25 -17
- package/dist/components/Conversation/index.js +37 -103
- package/dist/components/Conversation/styles.css.d.ts +7 -0
- package/dist/components/Conversation/styles.css.js +17 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
- package/dist/components/CustomerSatisfaction/index.js +70 -96
- package/dist/components/CustomerSatisfaction/styles.css.d.ts +17 -0
- package/dist/components/CustomerSatisfaction/styles.css.js +6 -0
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
- package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Item.js +308 -288
- package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
- package/dist/components/EstimateCost/Components/LineThrough.js +12 -12
- package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +18 -10
- package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/components/EstimateCost/Components/Region.js +44 -33
- package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Regular.js +21 -29
- package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
- package/dist/components/EstimateCost/Components/Strong.js +13 -24
- package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Unit.js +23 -31
- package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Zone.js +42 -32
- package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
- package/dist/components/EstimateCost/Components/components.css.js +124 -0
- package/dist/components/EstimateCost/EstimateCost.d.ts +29 -29
- package/dist/components/EstimateCost/EstimateCost.js +74 -25
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +270 -174
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
- package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +57 -81
- package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +2 -4
- package/dist/components/EstimateCost/constants.js +0 -4
- package/dist/components/EstimateCost/styles.css.d.ts +76 -0
- package/dist/components/EstimateCost/styles.css.js +50 -0
- package/dist/components/EstimateCost/types.d.ts +2 -1
- package/dist/components/FAQ/index.d.ts +3 -1
- package/dist/components/FAQ/index.js +4 -3
- package/dist/components/InfoTable/InfoTable.d.ts +9 -6
- package/dist/components/InfoTable/InfoTable.js +14 -18
- package/dist/components/InfoTable/components/Cell.d.ts +3 -6
- package/dist/components/InfoTable/components/Cell.js +28 -34
- package/dist/components/InfoTable/components/Row.d.ts +3 -14
- package/dist/components/InfoTable/components/Row.js +25 -18
- package/dist/components/InfoTable/context.d.ts +3 -0
- package/dist/components/InfoTable/context.js +5 -0
- package/dist/components/InfoTable/styles.css.d.ts +6 -0
- package/dist/components/InfoTable/styles.css.js +15 -0
- package/dist/components/Navigation/Footer.d.ts +1 -1
- package/dist/components/Navigation/Footer.js +35 -33
- package/dist/components/Navigation/Header.d.ts +1 -1
- package/dist/components/Navigation/Header.js +13 -26
- package/dist/components/Navigation/Navigation.d.ts +11 -8
- package/dist/components/Navigation/Navigation.js +2 -5
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.js +60 -71
- package/dist/components/Navigation/NavigationProvider.d.ts +1 -1
- package/dist/components/Navigation/NavigationProvider.js +108 -70
- package/dist/components/Navigation/animations.css.d.ts +6 -0
- package/dist/components/Navigation/components/Group.d.ts +3 -2
- package/dist/components/Navigation/components/Group.js +21 -43
- package/dist/components/Navigation/components/Item.d.ts +3 -2
- package/dist/components/Navigation/components/Item.js +552 -405
- package/dist/components/Navigation/components/ItemProvider.d.ts +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +2 -4
- package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
- package/dist/components/Navigation/components/PinnedItems.js +94 -74
- package/dist/components/Navigation/components/Separator.d.ts +1 -1
- package/dist/components/Navigation/components/Separator.js +3 -11
- package/dist/components/Navigation/components/items.css.d.ts +70 -0
- package/dist/components/Navigation/components/items.css.js +47 -0
- package/dist/components/Navigation/components/styles.css.d.ts +23 -0
- package/dist/components/Navigation/components/styles.css.js +17 -0
- package/dist/components/Navigation/constants.d.ts +0 -12
- package/dist/components/Navigation/constants.js +1 -28
- package/dist/components/Navigation/styles.css.d.ts +33 -0
- package/dist/components/Navigation/styles.css.js +22 -0
- package/dist/components/Navigation/types.d.ts +2 -1
- package/dist/components/Navigation/variables.css.d.ts +1 -0
- package/dist/components/Navigation/variables.css.js +5 -0
- package/dist/components/OfferList/OfferList.d.ts +8 -5
- package/dist/components/OfferList/OfferList.js +43 -22
- package/dist/components/OfferList/OfferListProvider.d.ts +1 -1
- package/dist/components/OfferList/OfferListProvider.js +25 -15
- package/dist/components/OfferList/components/Banner.d.ts +1 -1
- package/dist/components/OfferList/components/Banner.js +32 -95
- package/dist/components/OfferList/components/Cell.d.ts +1 -1
- package/dist/components/OfferList/components/Cell.js +16 -37
- package/dist/components/OfferList/components/Row.d.ts +4 -2
- package/dist/components/OfferList/components/Row.js +141 -125
- package/dist/components/OfferList/styles.css.d.ts +42 -0
- package/dist/components/OfferList/styles.css.js +38 -0
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +1 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +70 -34
- package/dist/components/OrderSummary/Provider.js +1 -4
- package/dist/components/OrderSummary/ScrollableContent.d.ts +1 -1
- package/dist/components/OrderSummary/ScrollableContent.js +175 -68
- package/dist/components/OrderSummary/constants.js +7 -1
- package/dist/components/OrderSummary/helpers.js +39 -21
- package/dist/components/OrderSummary/index.d.ts +1 -1
- package/dist/components/OrderSummary/index.js +139 -83
- package/dist/components/OrderSummary/styles.css.d.ts +8 -0
- package/dist/components/OrderSummary/styles.css.js +19 -0
- package/dist/components/OrderSummary/types.d.ts +2 -1
- package/dist/components/Plans/FeatureHint.d.ts +1 -1
- package/dist/components/Plans/FeatureHint.js +27 -25
- package/dist/components/Plans/PlanHeader.d.ts +1 -1
- package/dist/components/Plans/PlanHeader.js +80 -84
- package/dist/components/Plans/index.d.ts +3 -1
- package/dist/components/Plans/index.js +150 -109
- package/dist/components/Plans/styles.css.d.ts +61 -0
- package/dist/components/Plans/styles.css.js +26 -0
- package/dist/components/SteppedListCard/Step.d.ts +6 -1
- package/dist/components/SteppedListCard/Step.js +44 -32
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +9 -5
- package/dist/components/SteppedListCard/SteppedListCard.js +70 -45
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +4 -3
- package/dist/components/SteppedListCard/SteppedListContent.js +20 -51
- package/dist/components/SteppedListCard/helper.d.ts +1 -1
- package/dist/components/SteppedListCard/helper.js +4 -1
- package/dist/components/SteppedListCard/styles.css.d.ts +8 -0
- package/dist/components/SteppedListCard/styles.css.js +19 -0
- package/dist/plus.css +1 -1
- package/package.json +13 -16
- package/dist/components/CodeEditor/CodeEditor.cjs +0 -49
- package/dist/components/CodeEditor/styles.css.cjs +0 -9
- package/dist/components/ContentCard/Skeleton.cjs +0 -23
- package/dist/components/ContentCard/index.cjs +0 -61
- package/dist/components/ContentCard/styles.css.cjs +0 -28
- package/dist/components/ContentCardGroup/Card.cjs +0 -94
- package/dist/components/ContentCardGroup/SkeletonCard.cjs +0 -35
- package/dist/components/ContentCardGroup/index.cjs +0 -31
- package/dist/components/Conversation/index.cjs +0 -127
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/index.cjs +0 -123
- package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +0 -34
- package/dist/components/EstimateCost/Components/Item.cjs +0 -303
- package/dist/components/EstimateCost/Components/LineThrough.cjs +0 -19
- package/dist/components/EstimateCost/Components/NumberInput.cjs +0 -31
- package/dist/components/EstimateCost/Components/Region.cjs +0 -43
- package/dist/components/EstimateCost/Components/Regular.cjs +0 -37
- package/dist/components/EstimateCost/Components/Strong.cjs +0 -30
- package/dist/components/EstimateCost/Components/Unit.cjs +0 -53
- package/dist/components/EstimateCost/Components/Zone.cjs +0 -42
- package/dist/components/EstimateCost/EstimateCost.cjs +0 -90
- package/dist/components/EstimateCost/EstimateCostContent.cjs +0 -256
- package/dist/components/EstimateCost/EstimateCostProvider.cjs +0 -37
- package/dist/components/EstimateCost/OverlayComponent.cjs +0 -123
- package/dist/components/EstimateCost/OverlayContext.cjs +0 -15
- package/dist/components/EstimateCost/componentStyle.cjs +0 -221
- package/dist/components/EstimateCost/componentStyle.d.ts +0 -106
- package/dist/components/EstimateCost/componentStyle.js +0 -219
- package/dist/components/EstimateCost/constants.cjs +0 -32
- package/dist/components/EstimateCost/helper.cjs +0 -16
- package/dist/components/EstimateCost/locales/en.cjs +0 -23
- package/dist/components/FAQ/index.cjs +0 -48
- package/dist/components/FAQ/styles.css.cjs +0 -5
- package/dist/components/InfoTable/InfoTable.cjs +0 -32
- package/dist/components/InfoTable/components/Cell.cjs +0 -44
- package/dist/components/InfoTable/components/Row.cjs +0 -26
- package/dist/components/Navigation/Footer.cjs +0 -71
- package/dist/components/Navigation/Header.cjs +0 -36
- package/dist/components/Navigation/Navigation.cjs +0 -18
- package/dist/components/Navigation/NavigationContent.cjs +0 -163
- package/dist/components/Navigation/NavigationProvider.cjs +0 -129
- package/dist/components/Navigation/components/Group.cjs +0 -62
- package/dist/components/Navigation/components/Item.cjs +0 -429
- package/dist/components/Navigation/components/ItemProvider.cjs +0 -14
- package/dist/components/Navigation/components/PinnedItems.cjs +0 -116
- package/dist/components/Navigation/components/Separator.cjs +0 -18
- package/dist/components/Navigation/constants.cjs +0 -37
- package/dist/components/Navigation/locales/en.cjs +0 -11
- package/dist/components/OfferList/OfferList.cjs +0 -58
- package/dist/components/OfferList/OfferListProvider.cjs +0 -38
- package/dist/components/OfferList/components/Banner.cjs +0 -108
- package/dist/components/OfferList/components/Cell.cjs +0 -50
- package/dist/components/OfferList/components/Row.cjs +0 -192
- package/dist/components/OrderSummary/NonScrollableContent.cjs +0 -68
- package/dist/components/OrderSummary/Provider.cjs +0 -18
- package/dist/components/OrderSummary/ScrollableContent.cjs +0 -109
- package/dist/components/OrderSummary/constants.cjs +0 -12
- package/dist/components/OrderSummary/helpers.cjs +0 -91
- package/dist/components/OrderSummary/index.cjs +0 -135
- package/dist/components/OrderSummary/locales/en.cjs +0 -11
- package/dist/components/Plans/FeatureHint.cjs +0 -42
- package/dist/components/Plans/PlanHeader.cjs +0 -102
- package/dist/components/Plans/index.cjs +0 -152
- package/dist/components/Plans/locales/en.cjs +0 -7
- package/dist/components/SteppedListCard/Step.cjs +0 -51
- package/dist/components/SteppedListCard/SteppedListCard.cjs +0 -82
- package/dist/components/SteppedListCard/SteppedListContent.cjs +0 -86
- package/dist/components/SteppedListCard/helper.cjs +0 -38
- package/dist/index.cjs +0 -33
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const react = require("react");
|
|
6
|
-
const constants = require("./constants.cjs");
|
|
7
|
-
const en = require("./locales/en.cjs");
|
|
8
|
-
const NavigationContext = react.createContext({
|
|
9
|
-
allowNavigationResize: true,
|
|
10
|
-
animation: false,
|
|
11
|
-
animationType: "simple",
|
|
12
|
-
expanded: true,
|
|
13
|
-
items: {},
|
|
14
|
-
locales: en,
|
|
15
|
-
navigationRef: {
|
|
16
|
-
current: null
|
|
17
|
-
},
|
|
18
|
-
pinItem: () => [],
|
|
19
|
-
pinLimit: 7,
|
|
20
|
-
pinnedItems: [],
|
|
21
|
-
registerItem: () => {
|
|
22
|
-
},
|
|
23
|
-
reorderItems: () => [],
|
|
24
|
-
setAllowNavigationResize: () => {
|
|
25
|
-
},
|
|
26
|
-
setPinnedItems: () => {
|
|
27
|
-
},
|
|
28
|
-
setWidth: () => {
|
|
29
|
-
},
|
|
30
|
-
shouldAnimate: true,
|
|
31
|
-
/**
|
|
32
|
-
* This function will trigger the expand/collapse of the navigation and
|
|
33
|
-
* will also trigger the animation
|
|
34
|
-
*/
|
|
35
|
-
toggleExpand: () => {
|
|
36
|
-
},
|
|
37
|
-
unpinItem: () => [],
|
|
38
|
-
width: constants.NAVIGATION_WIDTH
|
|
39
|
-
});
|
|
40
|
-
const useNavigation = () => react.useContext(NavigationContext);
|
|
41
|
-
const NavigationProvider = ({
|
|
42
|
-
children,
|
|
43
|
-
pinnedFeature = false,
|
|
44
|
-
initialPinned,
|
|
45
|
-
initialExpanded = true,
|
|
46
|
-
locales = en,
|
|
47
|
-
pinLimit = 7,
|
|
48
|
-
onExpandChange,
|
|
49
|
-
initialWidth = constants.NAVIGATION_WIDTH,
|
|
50
|
-
initialAllowNavigationResize = true,
|
|
51
|
-
animation: shouldAnimate = true,
|
|
52
|
-
animationType
|
|
53
|
-
}) => {
|
|
54
|
-
const [expanded, setExpanded] = react.useState(initialExpanded);
|
|
55
|
-
const [pinnedItems, setPinnedItems] = react.useState(initialPinned ?? []);
|
|
56
|
-
const [animation, setAnimation] = react.useState(false);
|
|
57
|
-
const [width, setWidth] = react.useState(initialWidth);
|
|
58
|
-
const [allowNavigationResize, setAllowNavigationResize] = react.useState(initialAllowNavigationResize);
|
|
59
|
-
const [items, registerItem] = react.useReducer((oldState, newState) => ({
|
|
60
|
-
...oldState,
|
|
61
|
-
...newState
|
|
62
|
-
}), {});
|
|
63
|
-
const navigationRef = react.useRef(null);
|
|
64
|
-
const toggleExpand = react.useCallback((toggle) => {
|
|
65
|
-
if (typeof toggle !== "boolean" && toggle !== void 0) {
|
|
66
|
-
throw new Error("toggleExpand only accepts boolean or undefined as parameter. You most likely did <button onClick={toggleExpand}> instead of <button onClick={() => toggleExpand()}>");
|
|
67
|
-
}
|
|
68
|
-
if (toggle !== void 0 && toggle === expanded) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
onExpandChange?.(!expanded);
|
|
72
|
-
if (navigationRef.current) {
|
|
73
|
-
navigationRef.current.style.width = "";
|
|
74
|
-
}
|
|
75
|
-
if (shouldAnimate) {
|
|
76
|
-
setAnimation(expanded ? "collapse" : "expand");
|
|
77
|
-
setTimeout(() => {
|
|
78
|
-
setExpanded(toggle !== void 0 ? toggle : !expanded);
|
|
79
|
-
setAnimation(false);
|
|
80
|
-
}, constants.ANIMATION_DURATION);
|
|
81
|
-
} else {
|
|
82
|
-
setExpanded(toggle !== void 0 ? toggle : !expanded);
|
|
83
|
-
}
|
|
84
|
-
}, [expanded, onExpandChange, shouldAnimate]);
|
|
85
|
-
const pinItem = react.useCallback((item) => {
|
|
86
|
-
const newValue = [...pinnedItems, item];
|
|
87
|
-
setPinnedItems(newValue);
|
|
88
|
-
return newValue;
|
|
89
|
-
}, [pinnedItems]);
|
|
90
|
-
const unpinItem = react.useCallback((item) => {
|
|
91
|
-
const newValue = pinnedItems.filter((localItem) => localItem !== item);
|
|
92
|
-
setPinnedItems(newValue);
|
|
93
|
-
return newValue;
|
|
94
|
-
}, [pinnedItems]);
|
|
95
|
-
const reorderItems = react.useCallback((initialIndex, endIndex) => {
|
|
96
|
-
const newPinnedItems = [...pinnedItems];
|
|
97
|
-
const [removed] = newPinnedItems.splice(initialIndex, 1);
|
|
98
|
-
newPinnedItems.splice(endIndex, 0, removed);
|
|
99
|
-
setPinnedItems(newPinnedItems);
|
|
100
|
-
return newPinnedItems;
|
|
101
|
-
}, [pinnedItems]);
|
|
102
|
-
const value = react.useMemo(() => ({
|
|
103
|
-
allowNavigationResize,
|
|
104
|
-
animation,
|
|
105
|
-
animationType,
|
|
106
|
-
expanded,
|
|
107
|
-
items,
|
|
108
|
-
locales,
|
|
109
|
-
navigationRef,
|
|
110
|
-
pinItem,
|
|
111
|
-
pinLimit,
|
|
112
|
-
pinnedFeature,
|
|
113
|
-
pinnedItems,
|
|
114
|
-
registerItem,
|
|
115
|
-
reorderItems,
|
|
116
|
-
setAllowNavigationResize,
|
|
117
|
-
setAnimation,
|
|
118
|
-
setPinnedItems,
|
|
119
|
-
setWidth,
|
|
120
|
-
shouldAnimate,
|
|
121
|
-
toggleExpand,
|
|
122
|
-
unpinItem,
|
|
123
|
-
width
|
|
124
|
-
}), [expanded, toggleExpand, pinnedItems, pinItem, unpinItem, pinnedFeature, locales, pinLimit, animation, width, reorderItems, items, allowNavigationResize, shouldAnimate, animationType]);
|
|
125
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationContext.Provider, { value, children });
|
|
126
|
-
};
|
|
127
|
-
exports.NavigationContext = NavigationContext;
|
|
128
|
-
exports.NavigationProvider = NavigationProvider;
|
|
129
|
-
exports.useNavigation = useNavigation;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const _styled = require("@emotion/styled/base");
|
|
6
|
-
const ui = require("@ultraviolet/ui");
|
|
7
|
-
const react = require("react");
|
|
8
|
-
const constants = require("../constants.cjs");
|
|
9
|
-
const NavigationProvider = require("../NavigationProvider.cjs");
|
|
10
|
-
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
11
|
-
const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
|
|
12
|
-
const StyledText = /* @__PURE__ */ _styled__default.default(ui.Text, process.env.NODE_ENV === "production" ? {
|
|
13
|
-
target: "eh4zgrv2"
|
|
14
|
-
} : {
|
|
15
|
-
target: "eh4zgrv2",
|
|
16
|
-
label: "StyledText"
|
|
17
|
-
})("padding-bottom:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.space["1"], ";padding-left:", ({
|
|
20
|
-
theme
|
|
21
|
-
}) => theme.space["1"], ";transition:opacity ", constants.ANIMATION_DURATION, "ms ease-in-out,height ", constants.ANIMATION_DURATION, "ms ease-in-out;height:", ({
|
|
22
|
-
theme
|
|
23
|
-
}) => `calc(${theme.typography.bodySmallStrong.lineHeight} + ${theme.space["1"]})`, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvTmF2aWdhdGlvbi9jb21wb25lbnRzL0dyb3VwLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFjK0IiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvcGx1cy9zcmMvY29tcG9uZW50cy9OYXZpZ2F0aW9uL2NvbXBvbmVudHMvR3JvdXAudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgU3RhY2ssIFRleHQgfSBmcm9tICdAdWx0cmF2aW9sZXQvdWknXG5pbXBvcnQgdHlwZSB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgQ2hpbGRyZW4gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEFOSU1BVElPTl9EVVJBVElPTiwgZ3JvdXBBbmltYXRpb24gfSBmcm9tICcuLi9jb25zdGFudHMnXG5pbXBvcnQgeyB1c2VOYXZpZ2F0aW9uIH0gZnJvbSAnLi4vTmF2aWdhdGlvblByb3ZpZGVyJ1xuXG50eXBlIEdyb3VwUHJvcHMgPSB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGVcbiAgbGFiZWw6IHN0cmluZ1xufVxuXG5jb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFRleHQpYFxuICBwYWRkaW5nLWJvdHRvbTogJHso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iAgfVxuYFxuXG5leHBvcnQgY29uc3QgR3JvdXAgPSAoeyBjaGlsZHJlbiwgbGFiZWwgfTogR3JvdXBQcm9wcykgPT4ge1xuICBjb25zdCBjb250ZXh0ID0gdXNlTmF2aWdhdGlvbigpXG5cbiAgaWYgKCFjb250ZXh0KSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgJ05hdmlnYXRpb24uR3JvdXAgY2FuIG9ubHkgYmUgdXNlZCBpbnNpZGUgYSBOYXZpZ2F0aW9uUHJvdmlkZXIuJyxcbiAgICApXG4gIH1cblxuICBjb25zdCB7IGV4cGFuZGVkLCBhbmltYXRpb24sIGFuaW1hdGlvblR5cGUgfSA9IGNvbnRleHRcblxuICBjb25zdCBpc0RpcGxheSA9ICFhbmltYXRpb24gJiYgZXhwYW5kZWRcblxuICBpZiAoQ2hpbGRyZW4uY291bnQoY2hpbGRyZW4pID4gMCkge1xuICAgIHJldHVybiAoXG4gICAgICA8Q29udGFpbmVyXG4gICAgICAgIGRhdGEtYW5pbWF0aW9uPXthbmltYXRpb259XG4gICAgICAgIGRhdGEtYW5pbWF0aW9uLXR5cGU9e2FuaW1hdGlvblR5cGV9XG4gICAgICAgIHN0eWxlPXt7IHdpZHRoOiBhbmltYXRpb24gPyAnMTAwJScgOiB1bmRlZmluZWQgfX1cbiAgICAgID5cbiAgICAgICAgPFN0eWxlZFN0YWNrIGRpcmVjdGlvbj1cImNvbHVtblwiPlxuICAgICAgICAgIHtpc0RpcGxheSA/IChcbiAgICAgICAgICAgIDxTdHlsZWRUZXh0XG4gICAgICAgICAgICAgIGFzPVwic3BhblwiXG4gICAgICAgICAgICAgIHByb21pbmVuY2U9XCJ3ZWFrXCJcbiAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U21hbGxTdHJvbmdcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7bGFiZWx9XG4gICAgICAgICAgICA8L1N0eWxlZFRleHQ+XG4gICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICA8L1N0eWxlZFN0YWNrPlxuICAgICAgPC9Db250YWluZXI+XG4gICAgKVxuICB9XG5cbiAgcmV0dXJuIG51bGxcbn1cbiJdfQ== */"));
|
|
24
|
-
const StyledStack = /* @__PURE__ */ _styled__default.default(ui.Stack, process.env.NODE_ENV === "production" ? {
|
|
25
|
-
target: "eh4zgrv1"
|
|
26
|
-
} : {
|
|
27
|
-
target: "eh4zgrv1",
|
|
28
|
-
label: "StyledStack"
|
|
29
|
-
})("padding-top:", ({
|
|
30
|
-
theme
|
|
31
|
-
}) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvTmF2aWdhdGlvbi9jb21wb25lbnRzL0dyb3VwLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QmlDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvTmF2aWdhdGlvbi9jb21wb25lbnRzL0dyb3VwLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IFN0YWNrLCBUZXh0IH0gZnJvbSAnQHVsdHJhdmlvbGV0L3VpJ1xuaW1wb3J0IHR5cGUgeyBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IENoaWxkcmVuIH0gZnJvbSAncmVhY3QnXG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lsZWRTdGFjayBkaXJlY3Rpb249XCJjb2x1bW5cIj5cbiAgICAgICAgICB7aXNEaXBsYXkgPyAoXG4gICAgICAgICAgICA8U3R5bGVkVGV4dFxuICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVNtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge2xhYmVsfVxuICAgICAgICAgICAgPC9TdHlsZWRUZXh0PlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRTdGFjaz5cbiAgICAgIDwvQ29udGFpbmVyPlxuICAgIClcbiAgfVxuXG4gIHJldHVybiBudWxsXG59XG4iXX0= */"));
|
|
32
|
-
const Container = /* @__PURE__ */ _styled__default.default("div", process.env.NODE_ENV === "production" ? {
|
|
33
|
-
target: "eh4zgrv0"
|
|
34
|
-
} : {
|
|
35
|
-
target: "eh4zgrv0",
|
|
36
|
-
label: "Container"
|
|
37
|
-
})(`&[data-animation='expand'][data-animation-type="complex"]{`, StyledText, "{animation:", constants.groupAnimation, " ", constants.ANIMATION_DURATION, `ms ease-in-out;}}&[data-animation='collapse'][data-animation-type="complex"]{`, StyledText, "{animation:", constants.groupAnimation, " ", constants.ANIMATION_DURATION, "ms ease-in-out reverse;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvTmF2aWdhdGlvbi9jb21wb25lbnRzL0dyb3VwLnRzeCJdLCJuYW1lcyI6W10s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uICB9XG5cbiAgY29uc3QgeyBleHBhbmRlZCwgYW5pbWF0aW9uLCBhbmltYXRpb25UeXBlIH0gPSBjb250ZXh0XG5cbiAgY29uc3QgaXNEaXBsYXkgPSAhYW5pbWF0aW9uICYmIGV4cGFuZGVkXG5cbiAgaWYgKENoaWxkcmVuLmNvdW50KGNoaWxkcmVuKSA+IDApIHtcbiAgICByZXR1cm4gKFxuICAgICAgPENvbnRhaW5lclxuICAgICAgICBkYXRhLWFuaW1hdGlvbj17YW5pbWF0aW9ufVxuICAgICAgICBkYXRhLWFuaW1hdGlvbi10eXBlPXthbmltYXRpb25UeXBlfVxuICAgICAgICBzdHlsZT17eyB3aWR0aDogYW5pbWF0aW9uID8gJzEwMCUnIDogdW5kZWZpbmVkIH19XG4gICAgICA+XG4gICAgICAgIDxTdHlsZWRTdGFjayBkaXJlY3Rpb249XCJjb2x1bW5cIj5cbiAgICAgICAgICB7aXNEaXBsYXkgPyAoXG4gICAgICAgICAgICA8U3R5bGVkVGV4dFxuICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVNtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge2xhYmVsfVxuICAgICAgICAgICAgPC9TdHlsZWRUZXh0PlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRTdGFjaz5cbiAgICAgIDwvQ29udGFpbmVyPlxuICAgIClcbiAgfVxuXG4gIHJldHVybiBudWxsXG59XG4iXX0= */"));
|
|
38
|
-
const Group = ({
|
|
39
|
-
children,
|
|
40
|
-
label
|
|
41
|
-
}) => {
|
|
42
|
-
const context = NavigationProvider.useNavigation();
|
|
43
|
-
if (!context) {
|
|
44
|
-
throw new Error("Navigation.Group can only be used inside a NavigationProvider.");
|
|
45
|
-
}
|
|
46
|
-
const {
|
|
47
|
-
expanded,
|
|
48
|
-
animation,
|
|
49
|
-
animationType
|
|
50
|
-
} = context;
|
|
51
|
-
const isDiplay = !animation && expanded;
|
|
52
|
-
if (react.Children.count(children) > 0) {
|
|
53
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container, { "data-animation": animation, "data-animation-type": animationType, style: {
|
|
54
|
-
width: animation ? "100%" : void 0
|
|
55
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsxs(StyledStack, { direction: "column", children: [
|
|
56
|
-
isDiplay ? /* @__PURE__ */ jsxRuntime.jsx(StyledText, { as: "span", prominence: "weak", sentiment: "neutral", variant: "bodySmallStrong", children: label }) : null,
|
|
57
|
-
children
|
|
58
|
-
] }) });
|
|
59
|
-
}
|
|
60
|
-
return null;
|
|
61
|
-
};
|
|
62
|
-
exports.Group = Group;
|