@popsure/dirty-swan 0.41.15 → 0.41.17
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/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +8 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/card/index.d.ts +1 -0
- package/dist/cjs/lib/components/card/index.stories.d.ts +7 -1
- package/dist/cjs/lib/components/toast/index.d.ts +7 -1
- package/dist/cjs/lib/components/toast/index.stories.d.ts +12 -2
- package/dist/cjs/lib/index.d.ts +3 -2
- package/dist/esm/components/card/index.js +2 -2
- package/dist/esm/components/card/index.js.map +1 -1
- package/dist/esm/components/card/index.stories.js +6 -2
- package/dist/esm/components/card/index.stories.js.map +1 -1
- package/dist/esm/components/toast/index.js +1 -1
- package/dist/esm/components/toast/index.stories.js +15 -5
- package/dist/esm/components/toast/index.stories.js.map +1 -1
- package/dist/esm/components/toast/index.test.js +1 -1
- package/dist/esm/{index-2c193605.js → index-d81b8748.js} +7 -4
- package/dist/esm/index-d81b8748.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/components/card/index.d.ts +1 -0
- package/dist/esm/lib/components/card/index.stories.d.ts +7 -1
- package/dist/esm/lib/components/toast/index.d.ts +7 -1
- package/dist/esm/lib/components/toast/index.stories.d.ts +12 -2
- package/dist/esm/lib/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/index.tsx +2 -0
- package/src/lib/components/card/index.stories.tsx +6 -0
- package/src/lib/components/card/index.tsx +3 -1
- package/src/lib/components/toast/index.stories.tsx +23 -6
- package/src/lib/components/toast/index.tsx +10 -2
- package/src/lib/index.tsx +4 -0
- package/dist/esm/index-2c193605.js.map +0 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Card, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, Checkbox, Radio, Link, InformationBox, Badge, images, illustrations, Spinner, Toggle, Toaster, toast, } from './lib';
|
|
2
2
|
export * from './lib/components/icon';
|
|
3
|
-
export type { DownloadStatus, InformationBoxProps, IllustrationKeys, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, } from './lib';
|
|
3
|
+
export type { DownloadStatus, InformationBoxProps, IllustrationKeys, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, CardProps, IconWrapperProps } from './lib';
|
package/dist/cjs/index.js
CHANGED
|
@@ -8752,7 +8752,7 @@ var styles$e = {"button":"style-module_button__KWY7b","icon":"style-module_icon_
|
|
|
8752
8752
|
styleInject(css_248z$f);
|
|
8753
8753
|
|
|
8754
8754
|
var CardContent = function (_a) {
|
|
8755
|
-
var children = _a.children, classNames$1 = _a.classNames, _b = _a.density, density = _b === void 0 ? 'balanced' : _b, description = _a.description, _c = _a.descriptionVariant, descriptionVariant = _c === void 0 ? 'large' : _c, _d = _a.dropShadow, dropShadow = _d === void 0 ? true : _d, icon = _a.icon, label = _a.label, onClick = _a.onClick, actionIcon = _a.actionIcon, title = _a.title, _e = _a.titleVariant, titleVariant = _e === void 0 ? 'large' : _e;
|
|
8755
|
+
var children = _a.children, classNames$1 = _a.classNames, _b = _a.density, density = _b === void 0 ? 'balanced' : _b, description = _a.description, _c = _a.descriptionVariant, descriptionVariant = _c === void 0 ? 'large' : _c, _d = _a.dropShadow, dropShadow = _d === void 0 ? true : _d, icon = _a.icon, label = _a.label, onClick = _a.onClick, actionIcon = _a.actionIcon, title = _a.title, _e = _a.titleVariant, titleVariant = _e === void 0 ? 'large' : _e, showActionIcon = _a.showActionIcon;
|
|
8756
8756
|
var hideActionIcon = typeof actionIcon !== 'undefined' && !actionIcon;
|
|
8757
8757
|
return (jsxRuntime.jsxs("section", __assign({ className: classNames('d-flex fd-column jc-center br8 bg-white w100 ta-left', { 'bs-sm': dropShadow }, {
|
|
8758
8758
|
compact: 'p16',
|
|
@@ -8766,7 +8766,7 @@ var CardContent = function (_a) {
|
|
|
8766
8766
|
small: 'p-p',
|
|
8767
8767
|
}[titleVariant]) }, { children: title }), void 0)),
|
|
8768
8768
|
description && (jsxRuntime.jsx("div", __assign({ className: classNames('tc-grey-600', classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.description, descriptionVariant === 'small' ? 'p-p--small' : 'p-p') }, { children: description }), void 0))] }), void 0),
|
|
8769
|
-
onClick && !hideActionIcon && (jsxRuntime.jsx("div", __assign({ className: classNames(styles$e.actionIcon, classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.actionIcon, styles$e["actionIcon" + density], 'd-flex ai-center') }, { children: actionIcon || jsxRuntime.jsx(ChevronRightIcon, { size: 24 }, void 0) }), void 0))] }), void 0)] }), void 0),
|
|
8769
|
+
(showActionIcon || (onClick && !hideActionIcon)) && (jsxRuntime.jsx("div", __assign({ className: classNames(styles$e.actionIcon, classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.actionIcon, styles$e["actionIcon" + density], 'd-flex ai-center') }, { children: actionIcon || jsxRuntime.jsx(ChevronRightIcon, { size: 24 }, void 0) }), void 0))] }), void 0)] }), void 0),
|
|
8770
8770
|
children && jsxRuntime.jsx("div", __assign({ className: classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.children }, { children: children }), void 0)] }), void 0));
|
|
8771
8771
|
};
|
|
8772
8772
|
var Card = function (props) {
|
|
@@ -36402,9 +36402,12 @@ to {
|
|
|
36402
36402
|
}
|
|
36403
36403
|
`,L=16,J=({reverseOrder:e,position:t="top-center",toastOptions:o,gutter:s,children:r,containerStyle:a,containerClassName:c})=>{let{toasts:i,handlers:d}=V(o);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:L,left:L,right:L,bottom:L,pointerEvents:"none",...a},className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},i.map(p=>{let g=p.position||t,z=d.calculateOffset(p,{reverseOrder:e,gutter:s,defaultPosition:t}),O=De(g,z);return f.createElement(Ie,{id:p.id,key:p.id,onHeightUpdate:d.updateHeight,className:p.visible?ke:"",style:O},p.type==="custom"?u(p.message,p):r?r(p):f.createElement($,{toast:p,position:g}))}))};var _e=n;
|
|
36404
36404
|
|
|
36405
|
-
var Toaster = function () {
|
|
36406
|
-
|
|
36407
|
-
|
|
36405
|
+
var Toaster = function (_a) {
|
|
36406
|
+
var toasterClassNames = _a.classNames;
|
|
36407
|
+
return (jsxRuntime.jsx(dist.Toaster, { containerClassName: toasterClassNames === null || toasterClassNames === void 0 ? void 0 : toasterClassNames.wrapper, toastOptions: {
|
|
36408
|
+
className: classNames(styles.toast, 'bs-lg', toasterClassNames === null || toasterClassNames === void 0 ? void 0 : toasterClassNames.toast),
|
|
36409
|
+
} }, void 0));
|
|
36410
|
+
};
|
|
36408
36411
|
var Toast = function (_a) {
|
|
36409
36412
|
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
36410
36413
|
return (jsxRuntime.jsxs("div", __assign({ className: classNames(styles.toastContent, 'd-flex jc-between w100') }, { children: [jsxRuntime.jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--" + type]) }, void 0),
|