@dfx.swiss/react-components 1.0.4-beta.1 → 1.1.0-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  export interface BankAccount {
2
- label: string;
2
+ label?: string;
3
3
  iban: string;
4
4
  }
5
5
  //# sourceMappingURL=bank-account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bank-account.d.ts","sourceRoot":"","sources":["../../src/definitions/bank-account.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"bank-account.d.ts","sourceRoot":"","sources":["../../src/definitions/bank-account.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,7 +1,7 @@
1
1
  export type VideoSourcesProps = {
2
2
  vidSrc: string;
3
3
  thumbSrc: string;
4
- title: string;
4
+ title?: string;
5
5
  };
6
6
  export interface StyledVideoGridProps {
7
7
  videoSources: VideoSourcesProps[];
@@ -1 +1 @@
1
- {"version":3,"file":"StyledVideoGrid.d.ts","sourceRoot":"","sources":["../../src/stories/StyledVideoGrid.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,YAAY,EAAE,OAAW,EAAE,EAAE,oBAAoB,2CAiB1F"}
1
+ {"version":3,"file":"StyledVideoGrid.d.ts","sourceRoot":"","sources":["../../src/stories/StyledVideoGrid.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,YAAY,EAAE,OAAW,EAAE,EAAE,oBAAoB,2CAiB1F"}
@@ -13,6 +13,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  export default function StyledVideoGrid(_a) {
14
14
  var videoSources = _a.videoSources, _b = _a.numCols, numCols = _b === void 0 ? 3 : _b;
15
15
  var gridFractal = '1fr ';
16
- return (_jsx("div", __assign({ style: { gridTemplateColumns: gridFractal.repeat(numCols) }, className: "grid gap-6" }, { children: videoSources.map(function (video, index) { return (_jsxs("div", __assign({ className: "place-self-end" }, { children: [_jsx("h3", __assign({ className: "my-3 text-base font-bold" }, { children: video.title })), _jsx("video", { className: "rounded-lg border border-white/20", src: video.vidSrc, poster: video.thumbSrc, controls: true })] }), index)); }) })));
16
+ return (_jsx("div", __assign({ style: { gridTemplateColumns: gridFractal.repeat(numCols) }, className: "grid gap-6" }, { children: videoSources.map(function (video, index) { return (_jsxs("div", __assign({ className: "place-self-end" }, { children: [video.title && _jsx("h3", __assign({ className: "my-3 text-base font-bold" }, { children: video.title })), _jsx("video", { className: "rounded-lg border border-white/20", src: video.vidSrc, poster: video.thumbSrc, controls: true })] }), index)); }) })));
17
17
  }
18
18
  //# sourceMappingURL=StyledVideoGrid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledVideoGrid.js","sourceRoot":"","sources":["../../src/stories/StyledVideoGrid.tsx"],"names":[],"mappings":";;;;;;;;;;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C,mCAAmC,EAC7C,GAAG,EAAE,KAAK,CAAC,MAAM,EACjB,MAAM,EAAE,KAAK,CAAC,QAAQ,EACtB,QAAQ,SACD,MAPD,KAAK,CAQT,CACP,EAVmC,CAUnC,CAAC,IACE,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StyledBankAccountListItem.d.ts","sourceRoot":"","sources":["../../../src/stories/form/StyledBankAccountListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAAE,WAAW,EAAE,EAAE,8BAA8B,2CAahG"}
1
+ {"version":3,"file":"StyledBankAccountListItem.d.ts","sourceRoot":"","sources":["../../../src/stories/form/StyledBankAccountListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAAE,WAAW,EAAE,EAAE,8BAA8B,2CAYhG"}
@@ -14,7 +14,6 @@ import { Utils } from '../../utils';
14
14
  import DfxIcon, { IconVariant, IconColor } from '../DfxIcon';
15
15
  export default function StyledBankAccountListItem(_a) {
16
16
  var bankAccount = _a.bankAccount;
17
- var isLabelAvailable = bankAccount.label && bankAccount.label.length > 0;
18
- return (_jsxs("div", __assign({ className: "flex gap-3 mb-3 last:mb-0 rounded py-1 px-3 hover:bg-dfxGray-400/50 " }, { children: [_jsx("div", __assign({ className: "place-self-center" }, { children: _jsx(DfxIcon, { icon: IconVariant.BANK, color: IconColor.BLACK }) })), _jsxs("div", __assign({ className: "flex flex-col justify-center h-[42px]" }, { children: [isLabelAvailable && _jsx("p", __assign({ className: "text-dfxGray-800 text-xs" }, { children: bankAccount.label })), _jsx("p", __assign({ className: "text-dfxBlue-800" }, { children: Utils.formatIban(bankAccount.iban) }))] }))] })));
17
+ return (_jsxs("div", __assign({ className: "flex gap-3 mb-3 last:mb-0 rounded py-1 px-3 hover:bg-dfxGray-400/50 " }, { children: [_jsx("div", __assign({ className: "place-self-center" }, { children: _jsx(DfxIcon, { icon: IconVariant.BANK, color: IconColor.BLACK }) })), _jsxs("div", __assign({ className: "flex flex-col justify-center h-[42px]" }, { children: [bankAccount.label && _jsx("p", __assign({ className: "text-dfxGray-800 text-xs" }, { children: bankAccount.label })), _jsx("p", __assign({ className: "text-dfxBlue-800" }, { children: Utils.formatIban(bankAccount.iban) }))] }))] })));
19
18
  }
20
19
  //# sourceMappingURL=StyledBankAccountListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledBankAccountListItem.js","sourceRoot":"","sources":["../../../src/stories/form/StyledBankAccountListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,OAAO,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM7D,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAA+C;QAA7C,WAAW,iBAAA;IAC7D,IAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3E,OAAO,CACL,wBAAK,SAAS,EAAC,sEAAsE,iBACnF,uBAAK,SAAS,EAAC,mBAAmB,gBAChC,KAAC,OAAO,IAAC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,GAAI,IACvD,EACN,wBAAK,SAAS,EAAC,uCAAuC,iBACnD,gBAAgB,IAAI,qBAAG,SAAS,EAAC,0BAA0B,gBAAE,WAAW,CAAC,KAAK,IAAK,EACpF,qBAAG,SAAS,EAAC,kBAAkB,gBAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAK,KACpE,KACF,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"StyledBankAccountListItem.js","sourceRoot":"","sources":["../../../src/stories/form/StyledBankAccountListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,OAAO,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM7D,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAA+C;QAA7C,WAAW,iBAAA;IAC7D,OAAO,CACL,wBAAK,SAAS,EAAC,sEAAsE,iBACnF,uBAAK,SAAS,EAAC,mBAAmB,gBAChC,KAAC,OAAO,IAAC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,GAAI,IACvD,EACN,wBAAK,SAAS,EAAC,uCAAuC,iBACnD,WAAW,CAAC,KAAK,IAAI,qBAAG,SAAS,EAAC,0BAA0B,gBAAE,WAAW,CAAC,KAAK,IAAK,EACrF,qBAAG,SAAS,EAAC,kBAAkB,gBAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAK,KACpE,KACF,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@dfx.swiss/react-components",
4
- "version": "1.0.4-beta.1",
4
+ "version": "1.1.0-beta.2",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -87,5 +87,5 @@
87
87
  "tailwindcss": "^3.2.4",
88
88
  "webpack": "^5.75.0"
89
89
  },
90
- "gitHead": "3e13fc38508cfa5f6f1ddb26c266b89e96eca5f5"
90
+ "gitHead": "47be6eeb9c890b3255eaa08bd34a3bdc7d34a13d"
91
91
  }