@foxford/navigation-widget 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1 @@
1
+ import{q as l,u as h,a as e,B as c,b as a,w as p,T as t,S as s,f as u,I as x}from"./index.js";import{D as g}from"./Dialog-0dIyR18o.js";const S=l.div(["margin-top:20px;border-top:1px solid ",";padding-top:16px;"],({theme:o})=>o.colors["border-onmain-soft-large"]),z=l.div(["display:flex;justify-content:space-between;"]),b=l(g)(["font-family:",";"],({theme:o})=>o.fonts.primary),k="/knowledgebase/main";function y({contacts:o={},onClose:n,open:d,phone:r}){const m=h(),f=[{href:o.telegram,icon:"telegramSocial",id:"telegram"},{href:o.max,icon:"maxSocial",id:"max"},{href:o.vkontakte,icon:"vkSocial",id:"vkontakte"},o.email===void 0||o.email===""?{href:void 0,icon:"mailFill",id:"email"}:{href:"mailto:".concat(o.email),icon:"mailFill",id:"email"}].flatMap(i=>i.href===void 0||i.href===""?[]:[{...i,href:i.href}]);return e(b,{zIndex:c.MODAL,closeButton:i=>e(x,{...i,icon:"close",onClick:n}),onRequestClose:n,open:d,positionS:"bottom-center",shouldCloseOnOverlayClick:!0,size:"l",sizes:{l:{maxWidth:440},xs:{borderRadius:"20px 20px 0 0",maxWidth:"100%",width:"100%"}},sizeS:"xs",subtitle:i=>e(t,{...i,size:16,sizeS:14,children:"Собрали ответы на частые вопросы по обучению в одном разделе"}),title:i=>e(t,{...i,fontFamily:"TT Foxford, sans-serif",size:20,sizeS:18,children:"Нужна помощь?"}),children:[e(a,{fluid:!0,href:p(m,k),icon:"textNote",primary:!0,size:"l",target:"_blank",textProps:{weight:"normal"},children:"База знаний"}),e(S,{children:[e(t,{marginBottom:12,size:14,children:r===void 0||r===""?e(s,{children:"Не нашли ответ? Напишите в поддержку"}):e(s,{children:["Не нашли ответ? Позвоните по телефону ",u(r)," или напишите в поддержку"]})}),e(z,{children:f.map(i=>e(a,{href:i.href,icon:i.icon,outline:!0,size:"l",target:"_blank"},i.id))})]})]})}export{y as SupportModal};
package/package.json CHANGED
@@ -1,6 +1,53 @@
1
1
  {
2
2
  "name": "@foxford/navigation-widget",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Шапка и подвал Фоксфорда готовым бандлом на своём preact — для сайтов на React или без фреймворка",
5
+ "keywords": [
6
+ "foxford",
7
+ "navigation",
8
+ "widget",
9
+ "header",
10
+ "footer"
11
+ ],
12
+ "homepage": "https://gitea.foxford.org/foxford/frontend-platform",
13
+ "bugs": "https://gitea.foxford.org/foxford/frontend-platform/issues",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://gitea.foxford.org/foxford/frontend-platform.git",
17
+ "directory": "packages/navigation-widget"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Foxford Co",
21
+ "maintainers": [
22
+ {
23
+ "name": "Denis Riabov",
24
+ "email": "d.a.riabov@foxford.ru",
25
+ "team": "core-frontend"
26
+ }
27
+ ],
28
+ "type": "module",
29
+ "main": "./index.js",
30
+ "module": "./index.js",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./index.d.ts",
34
+ "import": "./index.js",
35
+ "default": "./index.js"
36
+ }
37
+ },
38
+ "types": "./index.d.ts",
39
+ "files": [
40
+ "Dialog-0dIyR18o.js",
41
+ "README.mdx",
42
+ "city-dialog-iaZ1mo2q.js",
43
+ "index.d.ts",
44
+ "index.js",
45
+ "modal-Djp_UNzA.js",
46
+ "package.json"
47
+ ],
48
+ "sha": "c0417ec",
49
+ "publishConfig": {
50
+ "registry": "https://registry.npmjs.org/"
51
+ },
52
+ "scripts": {}
6
53
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.