@sendoutcards/quantum-design-ui 1.7.65 → 1.7.66
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/index.es.js
CHANGED
|
@@ -20203,7 +20203,9 @@ var PricingTile = function (_a) {
|
|
|
20203
20203
|
hasShadow = _h === void 0 ? true : _h,
|
|
20204
20204
|
disclaimer = _a.disclaimer,
|
|
20205
20205
|
_j = _a.isSelected,
|
|
20206
|
-
isSelected = _j === void 0 ? false : _j
|
|
20206
|
+
isSelected = _j === void 0 ? false : _j,
|
|
20207
|
+
_k = _a.isFullLength,
|
|
20208
|
+
isFullLength = _k === void 0 ? false : _k;
|
|
20207
20209
|
var hocs = useEntities().hocs;
|
|
20208
20210
|
|
|
20209
20211
|
var getIconColorFromAccentColor = function (accentColor) {
|
|
@@ -20251,16 +20253,17 @@ var PricingTile = function (_a) {
|
|
|
20251
20253
|
|
|
20252
20254
|
var featureTextColor = isFeatured ? featuredItemStyles.textColor === 'white' ? 'inverseBody' : 'primaryBody' : textColor === 'white' ? 'inverseBody' : 'primaryBody';
|
|
20253
20255
|
|
|
20254
|
-
var
|
|
20255
|
-
isDisclaimerOpen =
|
|
20256
|
-
setDisclaimerOpen =
|
|
20256
|
+
var _l = useState(false),
|
|
20257
|
+
isDisclaimerOpen = _l[0],
|
|
20258
|
+
setDisclaimerOpen = _l[1];
|
|
20257
20259
|
|
|
20258
20260
|
return jsx(Flex, {
|
|
20261
|
+
id: "pricingTileContainerQDS",
|
|
20259
20262
|
inset: "x5",
|
|
20260
20263
|
backgroundColor: isFeatured ? hocs.textColors[featuredItemStyles.backgroundColor] : hocs.textColors[backgroundColor],
|
|
20261
20264
|
width: "100%",
|
|
20262
20265
|
position: "relative",
|
|
20263
|
-
height:
|
|
20266
|
+
height: isFullLength ? 'auto' : 'fit-content',
|
|
20264
20267
|
borderStyle: 'solid',
|
|
20265
20268
|
borderColor: isSelected ? {
|
|
20266
20269
|
swatch: 'success',
|
|
@@ -20713,7 +20716,7 @@ var MobileView = function (_a) {
|
|
|
20713
20716
|
setOpenSection(false);
|
|
20714
20717
|
};
|
|
20715
20718
|
|
|
20716
|
-
var section = links[currentSection];
|
|
20719
|
+
var section = links ? links[currentSection] : undefined;
|
|
20717
20720
|
|
|
20718
20721
|
var isLinkType = function (valueToCheck) {
|
|
20719
20722
|
var link = valueToCheck;
|
|
@@ -20737,7 +20740,7 @@ var MobileView = function (_a) {
|
|
|
20737
20740
|
width: "100%"
|
|
20738
20741
|
}, jsx(VStack, {
|
|
20739
20742
|
gap: "x0"
|
|
20740
|
-
}, links.map(function (item, i) {
|
|
20743
|
+
}, links && links.map(function (item, i) {
|
|
20741
20744
|
return isLinkType(item) ? jsx(Anchor, _extends({
|
|
20742
20745
|
inset: {
|
|
20743
20746
|
horizontal: 'x3'
|
|
@@ -20779,7 +20782,7 @@ var MobileView = function (_a) {
|
|
|
20779
20782
|
}
|
|
20780
20783
|
}, jsx(Div, {
|
|
20781
20784
|
width: "100%"
|
|
20782
|
-
}, !isLinkType(section) && jsx(React.Fragment, null, jsx(Div, {
|
|
20785
|
+
}, section && !isLinkType(section) && jsx(React.Fragment, null, jsx(Div, {
|
|
20783
20786
|
cursor: "pointer",
|
|
20784
20787
|
display: "flex",
|
|
20785
20788
|
width: "100%",
|
|
@@ -20906,7 +20909,7 @@ var StaticNavigation = function (_a) {
|
|
|
20906
20909
|
horizontal: 'x3'
|
|
20907
20910
|
},
|
|
20908
20911
|
zIndex: zIndex
|
|
20909
|
-
}, isMobile && jsx(Div, null, jsx(IconLink, {
|
|
20912
|
+
}, links && isMobile && jsx(Div, null, jsx(IconLink, {
|
|
20910
20913
|
size: isOpen ? 'xSmall' : 'small',
|
|
20911
20914
|
icon: isOpen ? 'close' : 'hamburger',
|
|
20912
20915
|
onClick: function () {
|
|
@@ -20923,7 +20926,7 @@ var StaticNavigation = function (_a) {
|
|
|
20923
20926
|
width: "100%",
|
|
20924
20927
|
alignItems: "center",
|
|
20925
20928
|
justifyContent: "center"
|
|
20926
|
-
}, links.map(function (link, index) {
|
|
20929
|
+
}, links && links.map(function (link, index) {
|
|
20927
20930
|
return jsx(Div, {
|
|
20928
20931
|
inset: {
|
|
20929
20932
|
horizontal: size === 'large' ? 'x1' : 'x2'
|
|
@@ -20969,7 +20972,7 @@ var StaticNavigation = function (_a) {
|
|
|
20969
20972
|
}, jsx(Div, {
|
|
20970
20973
|
outset: "x3",
|
|
20971
20974
|
ref: ref
|
|
20972
|
-
}, links.map(function (link, index) {
|
|
20975
|
+
}, links && links.map(function (link, index) {
|
|
20973
20976
|
return selectedTab === index && jsx(HStack, {
|
|
20974
20977
|
key: index,
|
|
20975
20978
|
gap: "x9",
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { DropdownLink, Link } from '../staticNavigation';
|
|
3
3
|
declare type MobileViewProps = {
|
|
4
4
|
isOpen: boolean;
|
|
5
|
-
links
|
|
5
|
+
links?: (DropdownLink | Link)[];
|
|
6
6
|
toggle: () => void;
|
|
7
7
|
};
|
|
8
8
|
export declare const MobileView: FC<MobileViewProps>;
|
|
@@ -28,7 +28,7 @@ export declare type StaticNavigationProps = {
|
|
|
28
28
|
onClick?: () => void;
|
|
29
29
|
};
|
|
30
30
|
accountSection?: React.ReactNode;
|
|
31
|
-
links
|
|
31
|
+
links?: (DropdownLink | Link)[];
|
|
32
32
|
zIndex?: number;
|
|
33
33
|
openValueOverride?: number;
|
|
34
34
|
drawerOffset?: number;
|