@sendoutcards/quantum-design-ui 1.8.30 → 1.8.31
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 +100 -34
- package/dist/src/atoms/companion/companion.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -22283,9 +22283,9 @@ var FeatureAnnouncement = function (_a) {
|
|
|
22283
22283
|
})));
|
|
22284
22284
|
};
|
|
22285
22285
|
|
|
22286
|
-
var _emotionSourceMap$5 = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
22286
|
+
var _emotionSourceMap$5 = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHcUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIGZpbGxSdWxlV3JhcHBlcjogY3NzKHRlbXBsYXRlT2JqZWN0XzEgfHwgKHRlbXBsYXRlT2JqZWN0XzEgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChbXCJcXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xcbiAgICBiYWNrZ3JvdW5kOiAjZDRkNGQ0O1xcbiAgICBjdXJzb3I6IHBvaW50ZXI7XFxuICAgIDo6YmVmb3JlIHtcXG4gICAgICBjb250ZW50OiAnJztcXG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XFxuICAgICAgd2lkdGg6IDUwJTtcXG4gICAgICBoZWlnaHQ6IDUw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gXCJdKSkpLFxyXG59O1xyXG52YXIgdGVtcGxhdGVPYmplY3RfMTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c3R5bGVzLmpzLm1hcCJdfQ== */";
|
|
22287
22287
|
var styles$4 = {
|
|
22288
|
-
fillRuleWrapper: /*#__PURE__*/css(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n position: relative;\n background: #d4d4d4;\n cursor: pointer;\n ::before {\n content: '';\n position: absolute;\n width: 50%;\n height: 50%;\n background: #a1a1a1;\n top: 0;\n left: 0;\n border-radius:
|
|
22288
|
+
fillRuleWrapper: /*#__PURE__*/css(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n position: relative;\n background: #d4d4d4;\n cursor: pointer;\n ::before {\n content: '';\n position: absolute;\n width: 50%;\n height: 50%;\n background: #a1a1a1;\n top: 0;\n left: 0;\n border-radius: 50px 0 0 0;\n }\n ::after {\n content: '';\n position: absolute;\n width: 50%;\n height: 50%;\n background: #a1a1a1;\n bottom: 0;\n right: 0;\n border-radius: 0 0 50px 0;\n }\n ;label:fillRuleWrapper;" + _emotionSourceMap$5], ["\n position: relative;\n background: #d4d4d4;\n cursor: pointer;\n ::before {\n content: '';\n position: absolute;\n width: 50%;\n height: 50%;\n background: #a1a1a1;\n top: 0;\n left: 0;\n border-radius: 50px 0 0 0;\n }\n ::after {\n content: '';\n position: absolute;\n width: 50%;\n height: 50%;\n background: #a1a1a1;\n bottom: 0;\n right: 0;\n border-radius: 0 0 50px 0;\n }\n ;label:fillRuleWrapper;" + _emotionSourceMap$5])))
|
|
22289
22289
|
};
|
|
22290
22290
|
var templateObject_1$5;
|
|
22291
22291
|
|
|
@@ -22301,27 +22301,37 @@ var SettingInput = function (_a) {
|
|
|
22301
22301
|
return jsx(Div, {
|
|
22302
22302
|
minWidth: "230px",
|
|
22303
22303
|
cursor: "pointer"
|
|
22304
|
-
}, jsx(
|
|
22305
|
-
type: "caption",
|
|
22306
|
-
content: label
|
|
22307
|
-
}), jsx(Flex, {
|
|
22304
|
+
}, jsx(Flex, {
|
|
22308
22305
|
justifyContent: "space-between",
|
|
22309
22306
|
minWidth: "230px",
|
|
22310
22307
|
onClick: onClick,
|
|
22311
22308
|
width: "100%",
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
|
|
22316
|
-
|
|
22317
|
-
|
|
22318
|
-
|
|
22319
|
-
|
|
22309
|
+
inset: "8px 14px",
|
|
22310
|
+
display: "flex",
|
|
22311
|
+
alignItems: "center",
|
|
22312
|
+
style: {
|
|
22313
|
+
borderRadius: '14px',
|
|
22314
|
+
border: '1px solid #F3F4F6',
|
|
22315
|
+
background: 'rgba(255, 255, 255, 0.60)'
|
|
22316
|
+
}
|
|
22320
22317
|
}, value ? jsx(Flex, {
|
|
22318
|
+
width: "100%",
|
|
22319
|
+
flexDirection: "column"
|
|
22320
|
+
}, jsx(Text, {
|
|
22321
|
+
type: "body",
|
|
22322
|
+
content: label,
|
|
22323
|
+
style: {
|
|
22324
|
+
fontSize: '10px',
|
|
22325
|
+
fontWeight: 700,
|
|
22326
|
+
fontFamily: 'Montserrat, san serif',
|
|
22327
|
+
color: '#6B7280'
|
|
22328
|
+
}
|
|
22329
|
+
}), jsx(Flex, {
|
|
22321
22330
|
width: "100%",
|
|
22322
22331
|
display: "flex",
|
|
22323
22332
|
flexDirection: "row",
|
|
22324
|
-
justifyContent: "space-between"
|
|
22333
|
+
justifyContent: "space-between",
|
|
22334
|
+
alignItems: "center"
|
|
22325
22335
|
}, jsx(HStack, {
|
|
22326
22336
|
gap: "0",
|
|
22327
22337
|
justify: "start"
|
|
@@ -22331,52 +22341,108 @@ var SettingInput = function (_a) {
|
|
|
22331
22341
|
backgroundRepeat: "no-repeat",
|
|
22332
22342
|
backgroundColor: settingsType === 'color' ? value : undefined,
|
|
22333
22343
|
backgroundImage: settingsType === 'image' ? value : undefined,
|
|
22334
|
-
borderRadius: "
|
|
22344
|
+
borderRadius: "circle",
|
|
22335
22345
|
width: "24px",
|
|
22336
|
-
height: "24px"
|
|
22346
|
+
height: "24px",
|
|
22347
|
+
style: {
|
|
22348
|
+
boxShadow: '0px 0px 4px 0px rgba(0, 0, 0, 0.12)'
|
|
22349
|
+
}
|
|
22337
22350
|
}), jsx(Text, {
|
|
22338
22351
|
alignment: "left",
|
|
22339
22352
|
outset: {
|
|
22340
22353
|
left: 'x2'
|
|
22341
22354
|
},
|
|
22342
22355
|
type: "body",
|
|
22343
|
-
content: settingsType === 'color' ? value : 'Image'
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
}, jsx(
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22356
|
+
content: settingsType === 'color' ? value : 'Image',
|
|
22357
|
+
style: {
|
|
22358
|
+
color: '#171717',
|
|
22359
|
+
fontSize: '14px',
|
|
22360
|
+
fontFamily: 'Montserrat, san serif'
|
|
22361
|
+
}
|
|
22362
|
+
})))) : jsx(Flex, {
|
|
22363
|
+
flexDirection: "column",
|
|
22364
|
+
rowGap: "x_5"
|
|
22365
|
+
}, jsx(Text, {
|
|
22366
|
+
type: "body",
|
|
22367
|
+
content: label,
|
|
22368
|
+
style: {
|
|
22369
|
+
fontSize: '10px',
|
|
22370
|
+
fontWeight: 700,
|
|
22371
|
+
fontFamily: 'Montserrat, san serif',
|
|
22372
|
+
color: '#6B7280'
|
|
22373
|
+
}
|
|
22374
|
+
}), jsx(Flex, {
|
|
22357
22375
|
justifyContent: "center",
|
|
22358
22376
|
alignItems: "center"
|
|
22359
22377
|
}, settingsType === 'color' ? jsx(Div, {
|
|
22360
|
-
borderRadius: "4px",
|
|
22361
22378
|
width: size,
|
|
22362
22379
|
height: size,
|
|
22363
22380
|
overflow: "visible",
|
|
22364
22381
|
backgroundColor: {
|
|
22365
22382
|
swatch: 'grayScale',
|
|
22366
22383
|
shade: '_900'
|
|
22384
|
+
},
|
|
22385
|
+
borderRadius: "circle",
|
|
22386
|
+
style: {
|
|
22387
|
+
boxShadow: '0px 0px 4px 0px rgba(0, 0, 0, 0.12)'
|
|
22367
22388
|
}
|
|
22368
22389
|
}) : jsx(Div, {
|
|
22369
22390
|
css: styles$4.fillRuleWrapper,
|
|
22370
22391
|
width: size,
|
|
22371
22392
|
height: size,
|
|
22372
|
-
|
|
22393
|
+
style: {
|
|
22394
|
+
borderRadius: '100%'
|
|
22395
|
+
}
|
|
22373
22396
|
}), jsx(Text, {
|
|
22374
22397
|
alignment: "left",
|
|
22375
22398
|
outset: {
|
|
22376
22399
|
left: 'x2'
|
|
22377
22400
|
},
|
|
22378
22401
|
type: "body",
|
|
22379
|
-
content: inactiveTitle
|
|
22402
|
+
content: inactiveTitle,
|
|
22403
|
+
style: {
|
|
22404
|
+
color: '#E5E7EB',
|
|
22405
|
+
fontSize: '14px',
|
|
22406
|
+
fontFamily: 'Montserrat, san serif'
|
|
22407
|
+
}
|
|
22408
|
+
}))), value ? jsx(Div, {
|
|
22409
|
+
display: "flex",
|
|
22410
|
+
alignItems: "center",
|
|
22411
|
+
onMouseEvent: function (e) {
|
|
22412
|
+
e.stopPropagation();
|
|
22413
|
+
onRemove();
|
|
22414
|
+
},
|
|
22415
|
+
onClick: onRemove
|
|
22416
|
+
}, jsx(Icon, {
|
|
22417
|
+
name: "closeCircle",
|
|
22418
|
+
size: "xSmall",
|
|
22419
|
+
primaryColor: "danger"
|
|
22420
|
+
})) : settingsType === 'color' ? jsx(Div, {
|
|
22421
|
+
cursor: "pointer",
|
|
22422
|
+
borderRadius: "circle",
|
|
22423
|
+
style: {
|
|
22424
|
+
backgroundImage: 'conic-gradient(red, orange, yellow, green, blue, indigo, violet, red)',
|
|
22425
|
+
width: '24px',
|
|
22426
|
+
height: '24px',
|
|
22427
|
+
boxShadow: '0px 4px 16px 0px rgba(0, 0, 0, 0.08)'
|
|
22428
|
+
},
|
|
22429
|
+
onClick: onClick
|
|
22430
|
+
}) : jsx(Flex, {
|
|
22431
|
+
justifyContent: "center",
|
|
22432
|
+
alignItems: "center",
|
|
22433
|
+
borderRadius: "circle",
|
|
22434
|
+
width: "24px",
|
|
22435
|
+
height: "24px",
|
|
22436
|
+
backgroundColor: "#fff",
|
|
22437
|
+
onClick: onClick,
|
|
22438
|
+
style: {
|
|
22439
|
+
boxShadow: '0px 4px 16px 0px rgba(0, 0, 0, 0.08)',
|
|
22440
|
+
border: '1px solid #fff'
|
|
22441
|
+
}
|
|
22442
|
+
}, jsx(Icon, {
|
|
22443
|
+
size: "xSmall",
|
|
22444
|
+
name: "image",
|
|
22445
|
+
primaryColor: "primaryHeadingText"
|
|
22380
22446
|
}))));
|
|
22381
22447
|
};
|
|
22382
22448
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HOCBaseProps } from "../../helpers/hoc-types/hocBasePropTypes";
|
|
3
|
+
import { HOCMotionProps } from "../../helpers/hoc-types/hocMotionTypes";
|
|
4
|
+
export declare type DivProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
outsideClick?: () => void;
|
|
7
|
+
clickElementBypass?: string;
|
|
8
|
+
} & HOCBaseProps & HOCMotionProps;
|
|
9
|
+
export declare const Companion: React.ForwardRefExoticComponent<{
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
outsideClick?: (() => void) | undefined;
|
|
12
|
+
clickElementBypass?: string | undefined;
|
|
13
|
+
} & HOCBaseProps & {
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
motionKey?: string | number | undefined;
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
} & import("framer-motion").MotionProps & React.RefAttributes<HTMLDivElement>>;
|