@scbt-ecom/ui 0.69.0 → 0.71.0
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-CheXd2Zl.js → index-B-4hL4-d.js} +13373 -12601
- package/dist/index-B-4hL4-d.js.map +1 -0
- package/dist/{index-BwK6Inph.js → index-lfBvBrWg.js} +3 -3
- package/dist/{index-BwK6Inph.js.map → index-lfBvBrWg.js.map} +1 -1
- package/dist/shared/ui/icon/Icon.d.ts +5 -8
- package/dist/shared/ui/icon/allowedIcons.d.ts +14 -3
- package/dist/shared/ui/icon/iconsMap.d.ts +320 -0
- package/dist/shared/ui/icon/index.d.ts +2 -1
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/shared/utils/typeGuards.d.ts +1 -0
- package/dist/sprites/arrows.svg +1 -1
- package/dist/static/static/arrows/arrowCircle.svg +18 -0
- package/dist/static/static/arrows/arrowDownRight.svg +3 -0
- package/dist/static/static/arrows/arrowLink.svg +3 -0
- package/dist/static/static/arrows/arrowRight.svg +3 -0
- package/dist/static/static/arrows/arrowRotate.svg +3 -0
- package/dist/static/static/arrows/arrowScroll.svg +3 -0
- package/dist/static/static/brandLogos/logoBlack.svg +14 -0
- package/dist/static/static/brandLogos/logoBusiness.svg +80 -0
- package/dist/static/static/brandLogos/logoGray.svg +56 -0
- package/dist/static/static/brandLogos/logoInsurance.svg +124 -0
- package/dist/static/static/brandLogos/logoMain.svg +14 -0
- package/dist/static/static/brandLogos/logoWhite.svg +56 -0
- package/dist/static/static/communication/phone.svg +3 -0
- package/dist/static/static/editor/bold.svg +1 -0
- package/dist/static/static/editor/heading.svg +1 -0
- package/dist/static/static/editor/italic.svg +1 -0
- package/dist/static/static/editor/link.svg +1 -0
- package/dist/static/static/editor/list.svg +1 -0
- package/dist/static/static/editor/palette.svg +1 -0
- package/dist/static/static/editor/redo.svg +1 -0
- package/dist/static/static/editor/removeFormatting.svg +1 -0
- package/dist/static/static/editor/space.svg +1 -0
- package/dist/static/static/editor/strikethrough.svg +1 -0
- package/dist/static/static/editor/typography.svg +1 -0
- package/dist/static/static/editor/underline.svg +1 -0
- package/dist/static/static/editor/undo.svg +1 -0
- package/dist/static/static/files/border.svg +6 -0
- package/dist/static/static/files/borderError.svg +6 -0
- package/dist/static/static/files/documentFilled.svg +4 -0
- package/dist/static/static/files/documentOutline.svg +4 -0
- package/dist/static/static/files/upload.svg +3 -0
- package/dist/static/static/general/calendar.svg +3 -0
- package/dist/static/static/general/check.svg +6 -0
- package/dist/static/static/general/close.svg +12 -0
- package/dist/static/static/general/edit.svg +4 -0
- package/dist/static/static/general/hiddenEye.svg +4 -0
- package/dist/static/static/general/menu.svg +4 -0
- package/dist/static/static/general/plus.svg +3 -0
- package/dist/static/static/general/reorder.svg +8 -0
- package/dist/static/static/general/shield.svg +4 -0
- package/dist/static/static/general/showEye.svg +4 -0
- package/dist/static/static/info/helpCircle.svg +3 -0
- package/dist/static/static/info/warningCircle.svg +5 -0
- package/dist/static/static/logos/beeline.svg +19 -0
- package/dist/static/static/logos/megafon.svg +17 -0
- package/dist/static/static/logos/mts.svg +20 -0
- package/dist/static/static/social/classmates.svg +3 -0
- package/dist/static/static/social/telegram.svg +3 -0
- package/dist/static/static/social/vk.svg +3 -0
- package/dist/static/static/status/badSmile.svg +8 -0
- package/dist/static/static/status/iconMark.svg +6 -0
- package/dist/static/static/status/iconRetry.svg +8 -0
- package/dist/static/static/status/iconUser.svg +6 -0
- package/dist/{typeGuards-Bhdr9KYW.js → typeGuards-CSiImkUY.js} +34 -31
- package/dist/{typeGuards-Bhdr9KYW.js.map → typeGuards-CSiImkUY.js.map} +1 -1
- package/dist/ui.js +4 -4
- package/dist/ui.js.map +1 -1
- package/dist/{utils-DyIly-dX.js → utils-k3uzuyeN.js} +2 -2
- package/dist/{utils-DyIly-dX.js.map → utils-k3uzuyeN.js.map} +1 -1
- package/dist/utils.js +55 -12
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +212 -208
- package/dist/widget.js.map +1 -1
- package/dist/widgets/buttonWithHandlers/ButtonWithHandlers.d.ts +1 -1
- package/dist/widgets/calculator/model/helpers.d.ts +2 -2
- package/dist/widgets/calculator/model/utils.d.ts +2 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +2 -2
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +7 -2
- package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +6 -4
- package/package.json +5 -4
- package/dist/index-CheXd2Zl.js.map +0 -1
- package/dist/uuid-2wKG15vy.js +0 -25
- package/dist/uuid-2wKG15vy.js.map +0 -1
package/dist/uuid-2wKG15vy.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { v4 as n } from "uuid";
|
|
2
|
-
function a(e, o = "x xxx xxx-xx-xx") {
|
|
3
|
-
let t = o;
|
|
4
|
-
for (let r = 0; r < e.length; r++)
|
|
5
|
-
t = t.replace("x", e[r]);
|
|
6
|
-
return t;
|
|
7
|
-
}
|
|
8
|
-
const s = {
|
|
9
|
-
behavior: "smooth",
|
|
10
|
-
block: "center"
|
|
11
|
-
}, x = ({ widgetId: e, config: o = {} }) => {
|
|
12
|
-
const { behavior: t, block: r } = { ...s, ...o }, c = document.getElementById(e);
|
|
13
|
-
if (!c) {
|
|
14
|
-
console.error("Такого элемента в DOM не существует", e);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
c.scrollIntoView({ behavior: t, block: r });
|
|
18
|
-
}, i = (e) => e.split("-").map((o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase()).join("-"), m = () => n();
|
|
19
|
-
export {
|
|
20
|
-
i as a,
|
|
21
|
-
a as c,
|
|
22
|
-
m as g,
|
|
23
|
-
x as s
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=uuid-2wKG15vy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid-2wKG15vy.js","sources":["../lib/shared/utils/createPhoneNumber.ts","../lib/shared/utils/scrollToElement.ts","../lib/shared/utils/capitalize.ts","../lib/shared/utils/uuid.ts"],"sourcesContent":["export function createPhoneNumber(numbers: string, phoneMask: string = 'x xxx xxx-xx-xx'): string {\n let mask = phoneMask\n\n for (let i = 0; i < numbers.length; i++) {\n mask = mask.replace('x', numbers[i])\n }\n\n return mask\n}\n","import type { AllowedWidgets } from '$/widgets'\n\ntype ScrollConfig = {\n behavior?: ScrollBehavior\n block?: ScrollLogicalPosition\n}\n\ntype ScrollElement = {\n widgetId: AllowedWidgets\n config?: ScrollConfig\n}\n\nconst DEFAULT_SCROLL_CONFIG: Required<ScrollConfig> = {\n behavior: 'smooth',\n block: 'center'\n}\n\nexport const scrollToElement = ({ widgetId, config = {} }: ScrollElement) => {\n const { behavior, block } = { ...DEFAULT_SCROLL_CONFIG, ...config }\n\n const element = document.getElementById(widgetId)\n if (!element) {\n console.error('Такого элемента в DOM не существует', widgetId)\n return\n }\n\n element.scrollIntoView({ behavior, block })\n}\n","export const capitalize = (str: string) => {\n return str\n .split('-')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join('-')\n}\n","import { v4 as uuid } from 'uuid'\n\nexport const getUuid = () => uuid()\n"],"names":["createPhoneNumber","numbers","phoneMask","mask","i","DEFAULT_SCROLL_CONFIG","scrollToElement","widgetId","config","behavior","block","element","capitalize","str","word","getUuid","uuid"],"mappings":";AAAgB,SAAAA,EAAkBC,GAAiBC,IAAoB,mBAA2B;AAChG,MAAIC,IAAOD;AAEX,WAASE,IAAI,GAAGA,IAAIH,EAAQ,QAAQG;AAClC,IAAAD,IAAOA,EAAK,QAAQ,KAAKF,EAAQG,CAAC,CAAC;AAG9B,SAAAD;AACT;ACIA,MAAME,IAAgD;AAAA,EACpD,UAAU;AAAA,EACV,OAAO;AACT,GAEaC,IAAkB,CAAC,EAAE,UAAAC,GAAU,QAAAC,IAAS,SAAwB;AACrE,QAAA,EAAE,UAAAC,GAAU,OAAAC,EAAM,IAAI,EAAE,GAAGL,GAAuB,GAAGG,EAAO,GAE5DG,IAAU,SAAS,eAAeJ,CAAQ;AAChD,MAAI,CAACI,GAAS;AACJ,YAAA,MAAM,uCAAuCJ,CAAQ;AAC7D;AAAA,EAAA;AAGF,EAAAI,EAAQ,eAAe,EAAE,UAAAF,GAAU,OAAAC,EAAA,CAAO;AAC5C,GC3BaE,IAAa,CAACC,MAClBA,EACJ,MAAM,GAAG,EACT,IAAI,CAACC,MAASA,EAAK,OAAO,CAAC,EAAE,YAAY,IAAIA,EAAK,MAAM,CAAC,EAAE,YAAa,CAAA,EACxE,KAAK,GAAG,GCFAC,IAAU,MAAMC,EAAK;"}
|