@sendoutcards/quantum-design-ui 1.7.86 → 1.7.88
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 +16 -9
- package/dist/src/molecules/checkbox/checkbox.d.ts +1 -0
- package/dist/src/molecules/quantitySlider/components/stackedCardHead.d.ts +2 -1
- package/dist/src/portfolios/soc/components/bulkSend/bulkSend.d.ts +2 -1
- package/dist/src/portfolios/soc/components/bulkSend/cardQuantitySlider.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -15874,7 +15874,9 @@ var Checkbox = function (_a) {
|
|
|
15874
15874
|
onChange = _a.onChange,
|
|
15875
15875
|
_b = _a.type,
|
|
15876
15876
|
type = _b === void 0 ? 'primary' : _b,
|
|
15877
|
-
label = _a.label
|
|
15877
|
+
label = _a.label,
|
|
15878
|
+
_c = _a.id,
|
|
15879
|
+
id = _c === void 0 ? 'cb' : _c;
|
|
15878
15880
|
var tickVariants = {
|
|
15879
15881
|
unchecked: {
|
|
15880
15882
|
pathLength: 0
|
|
@@ -15899,9 +15901,9 @@ var Checkbox = function (_a) {
|
|
|
15899
15901
|
return onChange(!isChecked);
|
|
15900
15902
|
},
|
|
15901
15903
|
type: "checkbox",
|
|
15902
|
-
id:
|
|
15904
|
+
id: id
|
|
15903
15905
|
}), jsx("label", {
|
|
15904
|
-
htmlFor:
|
|
15906
|
+
htmlFor: id
|
|
15905
15907
|
}, jsx("div", {
|
|
15906
15908
|
css: styles$t.box(inputs)
|
|
15907
15909
|
}, jsx("span", {
|
|
@@ -24312,7 +24314,8 @@ var StackedCardHead = function (_a) {
|
|
|
24312
24314
|
var cardImage = _a.cardImage,
|
|
24313
24315
|
cardOrientation = _a.cardOrientation,
|
|
24314
24316
|
quantity = _a.quantity,
|
|
24315
|
-
quantityDescription = _a.quantityDescription
|
|
24317
|
+
quantityDescription = _a.quantityDescription,
|
|
24318
|
+
secondaryAction = _a.secondaryAction;
|
|
24316
24319
|
return jsx(VStack, {
|
|
24317
24320
|
gap: "x2"
|
|
24318
24321
|
}, jsx(StackedCards, {
|
|
@@ -24320,7 +24323,7 @@ var StackedCardHead = function (_a) {
|
|
|
24320
24323
|
height: cardOrientation === 'vertical' ? 285 : 200,
|
|
24321
24324
|
stackBackgroundColor: "background",
|
|
24322
24325
|
backgroundImage: cardImage
|
|
24323
|
-
}), jsx(Text, {
|
|
24326
|
+
}), secondaryAction && secondaryAction, jsx(Text, {
|
|
24324
24327
|
type: "largeBody",
|
|
24325
24328
|
weight: "bold",
|
|
24326
24329
|
color: "primaryHeading",
|
|
@@ -24337,14 +24340,16 @@ var CardQuantitySlider = function (props) {
|
|
|
24337
24340
|
var cardOrientation = props.cardOrientation,
|
|
24338
24341
|
cardImage = props.cardImage,
|
|
24339
24342
|
quantityDescription = props.quantityDescription,
|
|
24340
|
-
|
|
24343
|
+
secondaryAction = props.secondaryAction,
|
|
24344
|
+
rest = __rest(props, ["cardOrientation", "cardImage", "quantityDescription", "secondaryAction"]);
|
|
24341
24345
|
|
|
24342
24346
|
return jsx(React.Fragment, null, jsx(QuantitySlider, _extends({}, rest, {
|
|
24343
24347
|
head: jsx(StackedCardHead, {
|
|
24344
24348
|
cardOrientation: cardOrientation,
|
|
24345
24349
|
quantity: rest.quantity,
|
|
24346
24350
|
quantityDescription: quantityDescription,
|
|
24347
|
-
cardImage: cardImage
|
|
24351
|
+
cardImage: cardImage,
|
|
24352
|
+
secondaryAction: secondaryAction
|
|
24348
24353
|
})
|
|
24349
24354
|
})));
|
|
24350
24355
|
};
|
|
@@ -24370,7 +24375,8 @@ var BulkSend = function (_a) {
|
|
|
24370
24375
|
isConfigurable = _a.isConfigurable,
|
|
24371
24376
|
disableMessage = _a.disableMessage,
|
|
24372
24377
|
sliderOrientation = _a.sliderOrientation,
|
|
24373
|
-
sliderImage = _a.sliderImage
|
|
24378
|
+
sliderImage = _a.sliderImage,
|
|
24379
|
+
secondaryAction = _a.secondaryAction;
|
|
24374
24380
|
|
|
24375
24381
|
var _b = React.useState(false),
|
|
24376
24382
|
isAddDialogOpen = _b[0],
|
|
@@ -24601,7 +24607,8 @@ var BulkSend = function (_a) {
|
|
|
24601
24607
|
sliderFill: sliderFill,
|
|
24602
24608
|
hasIncrement: hasIncrement,
|
|
24603
24609
|
cardImage: sliderImage,
|
|
24604
|
-
cardOrientation: sliderOrientation
|
|
24610
|
+
cardOrientation: sliderOrientation,
|
|
24611
|
+
secondaryAction: secondaryAction
|
|
24605
24612
|
}), jsx(Flex, {
|
|
24606
24613
|
outset: {
|
|
24607
24614
|
top: 'x4'
|
|
@@ -4,6 +4,7 @@ export declare type CheckboxProps = {
|
|
|
4
4
|
isChecked: boolean;
|
|
5
5
|
type?: CheckboxType;
|
|
6
6
|
label?: string;
|
|
7
|
+
id?: string;
|
|
7
8
|
};
|
|
8
9
|
export declare type CheckboxType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'dark';
|
|
9
10
|
export declare const Checkbox: FC<CheckboxProps>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
export declare type StackedCardHeadProps = {
|
|
3
3
|
cardImage?: string;
|
|
4
4
|
cardOrientation?: 'vertical' | 'horizontal';
|
|
5
5
|
quantity: number;
|
|
6
6
|
quantityDescription: string;
|
|
7
|
+
secondaryAction?: React.ReactNode;
|
|
7
8
|
};
|
|
8
9
|
export declare const StackedCardHead: FC<StackedCardHeadProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { SliderProgressColor } from "../../../../exports/molecules";
|
|
3
3
|
import { ConfigurationCardProps, ConfirmDialogProps } from "../../../../exports/organisms";
|
|
4
4
|
export declare type ConfigurationOptionSection = {
|
|
@@ -40,6 +40,7 @@ export declare type BulkSendProps = {
|
|
|
40
40
|
disableMessage: string;
|
|
41
41
|
sliderImage?: string;
|
|
42
42
|
sliderOrientation?: 'vertical' | 'horizontal';
|
|
43
|
+
secondaryAction?: React.ReactNode;
|
|
43
44
|
};
|
|
44
45
|
export declare const BulkSend: FC<BulkSendProps>;
|
|
45
46
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { QuantitySliderProps } from "../../../../exports/molecules";
|
|
3
3
|
export declare type CardQuantitySliderProps = {
|
|
4
4
|
cardImage?: string;
|
|
5
5
|
cardOrientation?: 'vertical' | 'horizontal';
|
|
6
6
|
quantityDescription: string;
|
|
7
|
+
secondaryAction?: React.ReactNode;
|
|
7
8
|
} & QuantitySliderProps;
|
|
8
9
|
export declare const CardQuantitySlider: FC<CardQuantitySliderProps>;
|