@purpurds/footer 0.0.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.
- package/dist/LICENSE.txt +59 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/footer-navigation.d.ts +22 -0
- package/dist/footer-navigation.d.ts.map +1 -0
- package/dist/footer-social-link.d.ts +11 -0
- package/dist/footer-social-link.d.ts.map +1 -0
- package/dist/footer.cjs.js +34 -0
- package/dist/footer.cjs.js.map +1 -0
- package/dist/footer.d.ts +66 -0
- package/dist/footer.d.ts.map +1 -0
- package/dist/footer.es.js +965 -0
- package/dist/footer.es.js.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +65 -0
- package/src/constants.ts +1 -0
- package/src/footer-navigation.tsx +102 -0
- package/src/footer-social-link.tsx +28 -0
- package/src/footer.mixins.scss +9 -0
- package/src/footer.module.scss +303 -0
- package/src/footer.stories.tsx +192 -0
- package/src/footer.test.tsx +192 -0
- package/src/footer.tsx +202 -0
- package/src/global.d.ts +4 -0
- package/src/types.ts +5 -0
package/dist/LICENSE.txt
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Name: @purpurds/grid
|
|
2
|
+
Version: 5.25.0
|
|
3
|
+
License: AGPL-3.0-only
|
|
4
|
+
Private: false
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Name: @purpurds/link
|
|
9
|
+
Version: 5.25.0
|
|
10
|
+
License: AGPL-3.0-only
|
|
11
|
+
Private: false
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
Name: classnames
|
|
16
|
+
Version: 2.5.1
|
|
17
|
+
License: MIT
|
|
18
|
+
Private: false
|
|
19
|
+
Description: A simple utility for conditionally joining classNames together
|
|
20
|
+
Repository: git+https://github.com/JedWatson/classnames.git
|
|
21
|
+
Author: Jed Watson
|
|
22
|
+
License Copyright:
|
|
23
|
+
===
|
|
24
|
+
|
|
25
|
+
The MIT License (MIT)
|
|
26
|
+
|
|
27
|
+
Copyright (c) 2018 Jed Watson
|
|
28
|
+
|
|
29
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
30
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
31
|
+
in the Software without restriction, including without limitation the rights
|
|
32
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
33
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
34
|
+
furnished to do so, subject to the following conditions:
|
|
35
|
+
|
|
36
|
+
The above copyright notice and this permission notice shall be included in all
|
|
37
|
+
copies or substantial portions of the Software.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
40
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
41
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
42
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
43
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
44
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
45
|
+
SOFTWARE.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
Name: @purpurds/accordion
|
|
50
|
+
Version: 5.25.0
|
|
51
|
+
License: AGPL-3.0-only
|
|
52
|
+
Private: false
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
Name: @purpurds/icon
|
|
57
|
+
Version: 5.25.0
|
|
58
|
+
License: AGPL-3.0-only
|
|
59
|
+
Private: false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
import { DataAttributes } from './types';
|
|
3
|
+
|
|
4
|
+
export type FooterNavigationItemLink = {
|
|
5
|
+
text: string;
|
|
6
|
+
href: string;
|
|
7
|
+
};
|
|
8
|
+
export type FooterNavigationItem = {
|
|
9
|
+
heading: string;
|
|
10
|
+
links: FooterNavigationItemLink[];
|
|
11
|
+
};
|
|
12
|
+
export type CustomLinkType = React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement>> | "a";
|
|
13
|
+
type FooterNavigationProps = {
|
|
14
|
+
customLink?: CustomLinkType;
|
|
15
|
+
sectionProps?: DataAttributes & HTMLAttributes<HTMLElement> & {
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
navigationLinks: FooterNavigationItem[];
|
|
19
|
+
};
|
|
20
|
+
export declare const FooterNavigation: ({ navigationLinks, sectionProps, customLink, }: FooterNavigationProps) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=footer-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer-navigation.d.ts","sourceRoot":"","sources":["../src/footer-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO9C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB,KAAK,CAAC,yBAAyB,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,GAC9E,GAAG,CAAC;AAyBR,KAAK,qBAAqB,GAAG;IAC3B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,YAAY,CAAC,EAAE,cAAc,GAC3B,cAAc,CAAC,WAAW,CAAC,GAAG;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACJ,eAAe,EAAE,oBAAoB,EAAE,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,mDAI1B,qBAAqB,sBAwCvB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
import { IconProps } from '@purpurds/icon';
|
|
3
|
+
import { DataAttributes } from './types';
|
|
4
|
+
|
|
5
|
+
export type FooterSocialLinkProps = DataAttributes & HTMLAttributes<HTMLAnchorElement> & {
|
|
6
|
+
"aria-label": string;
|
|
7
|
+
icon: IconProps["svg"];
|
|
8
|
+
href: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FooterSocialLink: ({ icon, href, ...props }: FooterSocialLinkProps) => React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=footer-social-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer-social-link.d.ts","sourceRoot":"","sources":["../src/footer-social-link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAQ,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIJ,eAAO,MAAM,gBAAgB,6BAA8B,qBAAqB,sBAU/E,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react");function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a.call(this,n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,this&&this[n]||n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(Z);var cr=Z.exports;const K=lr(cr),dr={"purpur-grid-item":"_purpur-grid-item_zx9tz_1","purpur-grid-item--no-col-gap":"_purpur-grid-item--no-col-gap_zx9tz_6","purpur-grid-item-colspan-sm-4":"_purpur-grid-item-colspan-sm-4_zx9tz_24","purpur-grid-item-colspan-sm-3":"_purpur-grid-item-colspan-sm-3_zx9tz_27","purpur-grid-item-colspan-sm-2":"_purpur-grid-item-colspan-sm-2_zx9tz_30","purpur-grid-item-colspan-sm-1":"_purpur-grid-item-colspan-sm-1_zx9tz_33","purpur-grid-item-colspan-md-8":"_purpur-grid-item-colspan-md-8_zx9tz_37","purpur-grid-item-colspan-md-7":"_purpur-grid-item-colspan-md-7_zx9tz_42","purpur-grid-item-colspan-md-6":"_purpur-grid-item-colspan-md-6_zx9tz_47","purpur-grid-item-colspan-md-5":"_purpur-grid-item-colspan-md-5_zx9tz_52","purpur-grid-item-colspan-md-4":"_purpur-grid-item-colspan-md-4_zx9tz_57","purpur-grid-item-colspan-md-3":"_purpur-grid-item-colspan-md-3_zx9tz_62","purpur-grid-item-colspan-md-2":"_purpur-grid-item-colspan-md-2_zx9tz_67","purpur-grid-item-colspan-md-1":"_purpur-grid-item-colspan-md-1_zx9tz_72","purpur-grid-item-colspan-lg-12":"_purpur-grid-item-colspan-lg-12_zx9tz_77","purpur-grid-item-colspan-lg-11":"_purpur-grid-item-colspan-lg-11_zx9tz_82","purpur-grid-item-colspan-lg-10":"_purpur-grid-item-colspan-lg-10_zx9tz_87","purpur-grid-item-colspan-lg-9":"_purpur-grid-item-colspan-lg-9_zx9tz_92","purpur-grid-item-colspan-lg-8":"_purpur-grid-item-colspan-lg-8_zx9tz_97","purpur-grid-item-colspan-lg-7":"_purpur-grid-item-colspan-lg-7_zx9tz_102","purpur-grid-item-colspan-lg-6":"_purpur-grid-item-colspan-lg-6_zx9tz_107","purpur-grid-item-colspan-lg-5":"_purpur-grid-item-colspan-lg-5_zx9tz_112","purpur-grid-item-colspan-lg-4":"_purpur-grid-item-colspan-lg-4_zx9tz_117","purpur-grid-item-colspan-lg-3":"_purpur-grid-item-colspan-lg-3_zx9tz_122","purpur-grid-item-colspan-lg-2":"_purpur-grid-item-colspan-lg-2_zx9tz_127","purpur-grid-item-colspan-lg-1":"_purpur-grid-item-colspan-lg-1_zx9tz_77"},gr=K.bind(dr),S="purpur-grid-item",L=({children:e,className:p,["data-testid"]:i,colSpanSm:a=4,colSpanMd:u=8,colSpanLg:r=12,noColGap:t=!1})=>{const n=gr([p,S,{[`${S}--no-col-gap`]:t,[`${S}-colspan-sm-${a}`]:a,[`${S}-colspan-md-${u}`]:u,[`${S}-colspan-lg-${r}`]:r}]);return o.jsx("div",{className:n,"data-testid":i,children:e})},mr=e=>!!e&&m.isValidElement(e)&&(!!e.props.colSpanSm||!!e.props.colSpanMd||!!e.props.colSpanLg);L.displayName="Grid.Item";const hr={"purpur-grid":"_purpur-grid_8kjv6_1","purpur-grid__inner":"_purpur-grid__inner_8kjv6_27","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_8kjv6_32","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_8kjv6_32","purpur-grid__inner--grid":"_purpur-grid__inner--grid_8kjv6_50","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_8kjv6_54","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_8kjv6_57","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_8kjv6_60","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_8kjv6_63","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_8kjv6_67","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_8kjv6_72","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_8kjv6_77","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_8kjv6_82","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_8kjv6_87","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_8kjv6_92","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_8kjv6_97","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_8kjv6_102","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_8kjv6_107","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_8kjv6_112","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_8kjv6_117","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_8kjv6_122","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_8kjv6_127","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_8kjv6_132","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_8kjv6_137","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_8kjv6_142","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_8kjv6_147","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_8kjv6_152","purpur-grid__inner--flex":"_purpur-grid__inner--flex_8kjv6_156"},V=K.bind(hr),fr="purpur-grid",h="purpur-grid__inner",G=({children:e,className:p,containerClassName:i,["data-testid"]:a,colsSm:u=1,colsMd:r=1,colsLg:t=1,noGap:n=!1,noColGap:s=!1,noRowGap:l=!1,...v})=>{const g=m.Children.toArray(e).filter(mr),c=g.length,O=V([i,fr]),q=V([p,h,{[`${h}--grid`]:!c,[`${h}--flex`]:c,[`${h}--no-gap`]:n,[`${h}--no-col-gap`]:s,[`${h}--no-row-gap`]:l,[`${h}-col-sm-${u}`]:u>1&&!c,[`${h}-col-md-${r}`]:r>1&&!c,[`${h}-col-lg-${t}`]:t>1&&!c}]);return o.jsx("div",{className:O,"data-testid":a,...v,children:o.jsx("div",{className:q,children:c?m.Children.map(g,({props:{children:P,...A}})=>o.jsx(L,{...A,noColGap:n||s,children:P})):e})})};G.displayName="Grid";G.Item=L;function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q={exports:{}};/*!
|
|
6
|
+
Copyright (c) 2018 Jed Watson.
|
|
7
|
+
Licensed under the MIT License (MIT), see
|
|
8
|
+
http://jedwatson.github.io/classnames
|
|
9
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a.call(this,n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,this&&this[n]||n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(Q);var xr=Q.exports;const yr=vr(xr),jr={"purpur-link":"_purpur-link_1066f_1","purpur-link--text":"_purpur-link--text_1066f_18","purpur-link--standalone":"_purpur-link--standalone_1066f_18","purpur-link--navigation":"_purpur-link--navigation_1066f_18","purpur-link--disable-visited":"_purpur-link--disable-visited_1066f_29","purpur-link--text-negative":"_purpur-link--text-negative_1066f_32","purpur-link--standalone-negative":"_purpur-link--standalone-negative_1066f_32","purpur-link--navigation-negative":"_purpur-link--navigation-negative_1066f_32","purpur-link--ensure-target-area":"_purpur-link--ensure-target-area_1066f_71","purpur-link--silent":"_purpur-link--silent_1066f_77"},kr=yr.bind(jr),j="purpur-link",E=({["data-testid"]:e,children:p,className:i,disableVisited:a,ensureTargetArea:u,href:r,negative:t=!1,onClick:n,rel:s,silent:l,target:v,variant:g,...c})=>o.jsx("span",{className:kr([i,j,`${j}--${t?`${g}-negative`:g}`,{[`${j}--silent`]:l,[`${j}--negative`]:t,[`${j}--disable-visited`]:a??l,[`${j}--ensure-target-area`]:u}]),"data-testid":e,onClick:r?void 0:n,...c,children:r?o.jsx("a",{href:r,target:v,rel:s,onClick:n,"data-testid":e?`${e} a`:void 0,...c,children:p}):p});E.displayName="Link";function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U={exports:{}};/*!
|
|
10
|
+
Copyright (c) 2018 Jed Watson.
|
|
11
|
+
Licensed under the MIT License (MIT), see
|
|
12
|
+
http://jedwatson.github.io/classnames
|
|
13
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a.call(this,n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,this&&this[n]||n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(U);var Nr=U.exports;const F=$r(Nr),_="purpur-footer",H={"purpur-footer":"_purpur-footer_lkumi_1","purpur-footer__container":"_purpur-footer__container_lkumi_5","purpur-footer__logo":"_purpur-footer__logo_lkumi_26","purpur-footer__social":"_purpur-footer__social_lkumi_46","purpur-footer__social--md":"_purpur-footer__social--md_lkumi_61","purpur-footer__social--sm":"_purpur-footer__social--sm_lkumi_69","purpur-footer__social-link":"_purpur-footer__social-link_lkumi_78","purpur-footer__navigation":"_purpur-footer__navigation_lkumi_97","purpur-footer__navigation-section":"_purpur-footer__navigation-section_lkumi_106","purpur-footer__navigation-section-heading":"_purpur-footer__navigation-section-heading_lkumi_109","purpur-footer__navigation--lg":"_purpur-footer__navigation--lg_lkumi_131","purpur-footer__navigation--sm":"_purpur-footer__navigation--sm_lkumi_145","purpur-footer__custom-link-navigation":"_purpur-footer__custom-link-navigation_lkumi_169","purpur-footer__payments":"_purpur-footer__payments_lkumi_191","purpur-footer__payments-image":"_purpur-footer__payments-image_lkumi_207","purpur-footer__contacts":"_purpur-footer__contacts_lkumi_211","purpur-footer__contacts-copyright":"_purpur-footer__contacts-copyright_lkumi_225","purpur-footer__contacts-address":"_purpur-footer__contacts-address_lkumi_230","purpur-footer__legal":"_purpur-footer__legal_lkumi_234","purpur-footer__legal-links":"_purpur-footer__legal-links_lkumi_250","purpur-footer__additional-content":"_purpur-footer__additional-content_lkumi_262"};function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W={exports:{}};/*!
|
|
14
|
+
Copyright (c) 2018 Jed Watson.
|
|
15
|
+
Licensed under the MIT License (MIT), see
|
|
16
|
+
http://jedwatson.github.io/classnames
|
|
17
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a(n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(W);var Sr=W.exports;const zr=br(Sr),T={"purpur-heading":"_purpur-heading_k9fhq_1","purpur-heading--hyphens":"_purpur-heading--hyphens_k9fhq_8","purpur-heading--negative":"_purpur-heading--negative_k9fhq_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_k9fhq_14","purpur-heading--title-100":"_purpur-heading--title-100_k9fhq_20","purpur-heading--title-200":"_purpur-heading--title-200_k9fhq_26","purpur-heading--title-300":"_purpur-heading--title-300_k9fhq_32","purpur-heading--title-400":"_purpur-heading--title-400_k9fhq_38","purpur-heading--title-500":"_purpur-heading--title-500_k9fhq_44","purpur-heading--title-600":"_purpur-heading--title-600_k9fhq_50","purpur-heading--title-700":"_purpur-heading--title-700_k9fhq_56","purpur-heading--display-25":"_purpur-heading--display-25_k9fhq_62","purpur-heading--display-50":"_purpur-heading--display-50_k9fhq_68","purpur-heading--display-100":"_purpur-heading--display-100_k9fhq_74","purpur-heading--display-200":"_purpur-heading--display-200_k9fhq_80"},wr={TITLE100:"title-100"},C="purpur-heading",R=({["data-testid"]:e,children:p,className:i="",enableHyphenation:a=!1,negative:u=!1,tag:r,variant:t=wr.TITLE100,...n})=>{const s=r,l=zr([i,T[C],T[`${C}--${t}`],{[T[`${C}--hyphens`]]:a,[T[`${C}--negative`]]:u}]);return o.jsx(s,{...n,className:l,"data-testid":e,children:p})};R.displayName="Heading";function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}};/*!
|
|
18
|
+
Copyright (c) 2018 Jed Watson.
|
|
19
|
+
Licensed under the MIT License (MIT), see
|
|
20
|
+
http://jedwatson.github.io/classnames
|
|
21
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a.call(this,n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,this&&this[n]||n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(rr);var qr=rr.exports;const er=Or(qr),Pr={"purpur-accordion":"_purpur-accordion_u887g_1","purpur-accordion__title":"_purpur-accordion__title_u887g_4","purpur-accordion--negative":"_purpur-accordion--negative_u887g_13"};function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tr={exports:{}};/*!
|
|
22
|
+
Copyright (c) 2018 Jed Watson.
|
|
23
|
+
Licensed under the MIT License (MIT), see
|
|
24
|
+
http://jedwatson.github.io/classnames
|
|
25
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a.call(this,n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,this&&this[n]||n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(tr);var Tr=tr.exports;const Cr=Ar(Tr),Mr={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Ir={name:"chevron-down",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["chevron-down"],category:"utility"},ir=e=>o.jsx(nr,{...e,svg:Ir});ir.displayName="IconChevronDown";const Lr=Cr.bind(Mr),B="purpur-icon",Gr="md",Er=e=>e.filter(p=>Object.keys(p).length>=1).map(p=>`${p.name}="${p.value}"`).join(" "),Fr=({content:e="",title:p}={})=>{const i=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},p?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=p?`<title>${p}</title>`:"";return`<svg ${Er(i)}>${a}${e}</svg>`},Hr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),nr=({["data-testid"]:e,svg:p,allyTitle:i,className:a,size:u=Gr,...r})=>{const t=Fr({content:Hr(p.svg),title:i}),n=Lr(a,B,`${B}--${u}`);return o.jsx("span",{"aria-label":i,className:n,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};nr.displayName="Icon";function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pr={exports:{}};/*!
|
|
26
|
+
Copyright (c) 2018 Jed Watson.
|
|
27
|
+
Licensed under the MIT License (MIT), see
|
|
28
|
+
http://jedwatson.github.io/classnames
|
|
29
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a(n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(pr);var Vr=pr.exports;const Br=Rr(Vr),z={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},Dr={PARAGRAPH100:"paragraph-100"},w="purpur-paragraph",ar=({["data-testid"]:e,children:p,className:i,disabled:a,enableHyphenation:u=!1,negative:r=!1,variant:t=Dr.PARAGRAPH100,...n})=>{const s=Br([i,z[w],z[`${w}--${t}`],{[z[`${w}--hyphens`]]:u,[z[`${w}--disabled`]]:a,[z[`${w}--negative`]]:r}]);return o.jsx("p",{...n,className:s,"data-testid":e,children:p})};ar.displayName="Paragraph";const Jr={"purpur-accordion-item":"_purpur-accordion-item_29ds4_1","purpur-accordion-item__header":"_purpur-accordion-item__header_29ds4_10","purpur-accordion-item__trigger":"_purpur-accordion-item__trigger_29ds4_13","purpur-accordion-item__trigger__icon":"_purpur-accordion-item__trigger__icon_29ds4_43","purpur-accordion-item__title":"_purpur-accordion-item__title_29ds4_49","purpur-accordion-item__rotate":"_purpur-accordion-item__rotate_29ds4_63","purpur-accordion-item__icon":"_purpur-accordion-item__icon_29ds4_63","purpur-accordion-item__content":"_purpur-accordion-item__content_29ds4_66","purpur-accordion-item__contentText":"_purpur-accordion-item__contentText_29ds4_79","purpur-accordion-item--negative":"_purpur-accordion-item--negative_29ds4_98"},k=er.bind(Jr),f="purpur-accordion-item",Xr=({children:e,className:p,title:i,titleTag:a="h3",initialOpen:u=!1,onClick:r,...t})=>{const n=m.useContext(ur),s=m.useId(),[l,v]=m.useState(!u),g=k([p,f,{[`${f}--negative`]:n}]);return o.jsxs("div",{className:g,...t,children:[o.jsx(R,{tag:a,variant:"title-100",className:k([`${f}__header`,`${f}__title`]),children:o.jsxs("button",{type:"button","data-state":l?"open":"close",onClick:c=>{r&&r(c),v(!l)},className:k(`${f}__trigger`,p,{[`${f}__rotate`]:!l}),"aria-expanded":!l,"aria-controls":s,id:s+"button",children:[i,o.jsx(ir,{size:"md",className:k(`${f}__icon`),"aria-hidden":!0})]})}),o.jsx("div",{className:k(`${f}__content`,p),"aria-hidden":l,id:s,"aria-labelledby":s+"button",role:"region",children:o.jsx("div",{className:k(`${f}__contentText`),children:typeof e=="string"?o.jsx(ar,{variant:"paragraph-200",children:e}):e})})]})},D=er.bind(Pr),I="purpur-accordion",ur=m.createContext(!1),M=({["data-testid"]:e,children:p,className:i,negative:a=!1,title:u,titleTag:r="h2",titleVariant:t="title-300",schema:n,...s})=>{const l=D([i,I,{[`${I}--negative`]:a}]);return o.jsxs("div",{className:l,"data-testid":e,...s,children:[u&&o.jsx(R,{tag:r,variant:t,className:D(`${I}__title`),children:u}),o.jsx(ur.Provider,{value:a,children:p}),n&&o.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:n}})]})};M.Item=Xr;M.displayName="Accordion";const $=F.bind(H),J=({links:e,customLink:p})=>o.jsx("ul",{children:e.map((i,a)=>o.jsx("li",{children:p?o.jsx(p,{href:i.href,className:$(`${_}__custom-link-navigation`),children:i.text}):o.jsx(E,{variant:"navigation",negative:!0,href:i.href,children:i.text})},a))}),Yr=({navigationLinks:e,sectionProps:p,customLink:i})=>o.jsxs(o.Fragment,{children:[o.jsx("section",{...p,className:$(`${_}__navigation`,`${_}__navigation--lg`,p==null?void 0:p.className),children:e.map((a,u)=>o.jsxs("div",{className:$(`${_}__navigation-section`),children:[o.jsx("h3",{className:$(`${_}__navigation-section-heading`),children:a.heading}),o.jsx(J,{links:a.links,customLink:i})]},u))}),o.jsx("section",{...p,className:$(`${_}__navigation`,`${_}__navigation--sm`,p==null?void 0:p.className),children:o.jsx(M,{negative:!0,children:e.map((a,u)=>o.jsx(M.Item,{value:`${u}`,title:a.heading,titleTag:"h2",className:$(`${_}__navigation-section`),children:o.jsx(J,{links:a.links,customLink:i})},u))})})]});function Zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}};/*!
|
|
30
|
+
Copyright (c) 2018 Jed Watson.
|
|
31
|
+
Licensed under the MIT License (MIT), see
|
|
32
|
+
http://jedwatson.github.io/classnames
|
|
33
|
+
*/(function(e){(function(){var p={}.hasOwnProperty;function i(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=u(r,a.call(this,n)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)p.call(r,n)&&r[n]&&(t=u(t,this&&this[n]||n));return t}function u(r,t){return t?r?r+" "+t:r+t:r}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(or);var Kr=or.exports;const Qr=Zr(Kr),Ur={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Wr=Qr.bind(Ur),X="purpur-icon",re="md",ee=e=>e.filter(p=>Object.keys(p).length>=1).map(p=>`${p.name}="${p.value}"`).join(" "),te=({content:e="",title:p}={})=>{const i=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},p?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=p?`<title>${p}</title>`:"";return`<svg ${ee(i)}>${a}${e}</svg>`},ie=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),_r=({["data-testid"]:e,svg:p,allyTitle:i,className:a,size:u=re,...r})=>{const t=te({content:ie(p.svg),title:i}),n=Wr(a,X,`${X}--${u}`);return o.jsx("span",{"aria-label":i,className:n,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};_r.displayName="Icon";const ne=F.bind(H),Y=({icon:e,href:p,...i})=>o.jsx("a",{...i,href:p,className:ne(`${_}__social-link`),rel:"noreferrer",target:"_blank",children:o.jsx(_r,{svg:e})}),d=F.bind(H),sr=({className:e,navigation:p,social:i,contacts:a,legal:u,additional:r,payments:t,...n})=>{var l,v,g,c,O,q,P,A;const s=d([e,_]);return o.jsx("footer",{...n,className:s,children:o.jsx(G,{children:o.jsxs("div",{className:d(`${_}__container`),children:[o.jsx("div",{className:d(`${_}__logo`),children:o.jsx("img",{src:"https://cdn.voca.teliacompany.com/logo/Telia-secondary-default-v2.svg",alt:"Telia logo",role:"presentation"})}),i&&o.jsx("section",{...i.sectionProps,className:d(`${_}__social`,`${_}__social--md`,(l=i.sectionProps)==null?void 0:l.className),children:i.links.map(({icon:x,href:y,...N},b)=>m.createElement(Y,{...N,icon:x,href:y,key:b}))}),p&&o.jsx(Yr,{customLink:p.customLink,navigationLinks:p.links,sectionProps:p.sectionProps}),t&&o.jsx("section",{...t.sectionProps,className:d(`${_}__payments`,(v=t.sectionProps)==null?void 0:v.className),children:t.images.map((x,y)=>o.jsx("img",{className:d(`${_}__payments-image`),src:x.src,alt:x.alt},y))}),a&&o.jsxs("section",{...a.sectionProps,className:d(`${_}__contacts`,(g=a.sectionProps)==null?void 0:g.className),children:[a.copyright&&o.jsx("div",{className:d(`${_}__contacts-copyright`),children:a.copyright}),a.address&&o.jsx("address",{...a.address.addressProps,className:d(`${_}__contacts-address`,(c=a.address.addressProps)==null?void 0:c.className),children:a.address.content})]}),(r||u)&&o.jsxs("div",{className:d(`${_}__legal`),children:[r&&o.jsx("section",{...r.sectionProps,className:d(`${_}__additional-content`,(O=r.sectionProps)==null?void 0:O.className),children:r.content}),u&&o.jsx("section",{...u.sectionProps,className:d(`${_}__legal-links`,(q=u.sectionProps)==null?void 0:q.className),children:(P=u==null?void 0:u.links)==null?void 0:P.map(({href:x,text:y,...N},b)=>m.createElement(E,{...N,variant:"standalone",negative:!0,href:x,key:b},y))})]}),i&&o.jsx("section",{...i.sectionProps,className:d(`${_}__social`,`${_}__social--sm`,(A=i.sectionProps)==null?void 0:A.className),children:i.links.map(({icon:x,href:y,...N},b)=>m.createElement(Y,{...N,icon:x,href:y,key:b}))})]})})})};sr.displayName="Footer";exports.Footer=sr;
|
|
34
|
+
//# sourceMappingURL=footer.cjs.js.map
|