@warp-ds/elements 2.6.0-next.4 → 2.6.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/custom-elements.json +145 -143
- package/dist/index.d.ts +52 -52
- package/dist/packages/affix/affix.d.ts +1 -2
- package/dist/packages/affix/affix.js +35 -19
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/alert/alert.d.ts +2 -5
- package/dist/packages/alert/alert.js +32 -16
- package/dist/packages/alert/alert.js.map +4 -4
- package/dist/packages/alert/alert.test.js +1 -3
- package/dist/packages/attention/attention.d.ts +2 -2
- package/dist/packages/attention/attention.js +53 -26
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/button/button.stories.d.ts +1 -4
- package/dist/packages/button/button.stories.js +11 -16
- package/dist/packages/card/card.d.ts +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.d.ts +1 -3
- package/dist/packages/datepicker/datepicker.js +66 -41
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/expandable/expandable.d.ts +1 -2
- package/dist/packages/expandable/expandable.js +39 -23
- package/dist/packages/expandable/expandable.js.map +4 -4
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +4 -4
- package/dist/packages/icon/icon.react.stories.js +274 -2
- package/dist/packages/icon/icon.stories.js +273 -1
- package/dist/packages/link/link.react.stories.d.ts +1 -1
- package/dist/packages/modal-header/modal-header.d.ts +1 -2
- package/dist/packages/modal-header/modal-header.js +39 -14
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.test.js +40 -20
- package/dist/packages/pagination/pagination.a11y.test.d.ts +1 -0
- package/dist/packages/pagination/pagination.a11y.test.js +36 -0
- package/dist/packages/pagination/pagination.d.ts +1 -3
- package/dist/packages/pagination/pagination.js +57 -34
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pill/pill.d.ts +1 -1
- package/dist/packages/pill/pill.js +38 -13
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/pill/pill.test.js +1 -3
- package/dist/packages/select/select.d.ts +1 -1
- package/dist/packages/select/select.js +44 -19
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/step/step.d.ts +1 -1
- package/dist/packages/step/step.js +38 -13
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/step-indicator.a11y.test.d.ts +2 -0
- package/dist/packages/step-indicator/step-indicator.a11y.test.js +66 -0
- package/dist/packages/textarea/textarea.a11y.test.d.ts +1 -0
- package/dist/packages/textarea/textarea.a11y.test.js +115 -0
- package/dist/packages/textarea/textarea.js +6 -6
- package/dist/packages/textarea/textarea.js.map +4 -4
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textarea/textarea.test.js +3 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/toast/toast.d.ts +1 -4
- package/dist/packages/toast/toast.js +38 -13
- package/dist/packages/toast/toast.js.map +4 -4
- package/dist/setup-tests.d.ts +10 -0
- package/dist/setup-tests.js +61 -0
- package/dist/web-types.json +47 -47
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var r=(i,o,e,s)=>{for(var t=s>1?void 0:s?w(o,e):o,c=i.length-1,a;c>=0;c--)(a=i[c])&&(t=(s?a(o,e,t):a(t))||t);return s&&t&&h(o,e,t),t};import{css as d}from"lit";var p=d`
|
|
1
|
+
var h=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var r=(i,o,e,s)=>{for(var t=s>1?void 0:s?w(o,e):o,c=i.length-1,a;c>=0;c--)(a=i[c])&&(t=(s?a(o,e,t):a(t))||t);return s&&t&&h(o,e,t),t};import{html as g,LitElement as v}from"lit";import{property as l,state as f}from"lit/decorators.js";import{classMap as u}from"lit/directives/class-map.js";import{css as d}from"lit";var p=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
@@ -23,5 +23,5 @@ var h=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var r=(i,o,e,s
|
|
|
23
23
|
--w-icon-size: 32px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
`;
|
|
26
|
+
`;var m=new Map,y='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function z(i,o={}){var s;let e=(s=o.responseParser)!=null?s:(t=>t.text());return m.has(i)||m.set(i,fetch(i).then(e)),m.get(i)}var n=class extends v{constructor(){super(...arguments);this.name="";this.size="medium";this.locale="en";this.svg=null}async fetchIcon(e){let s=`https://assets.finn.no/pkg/eikons/v1/${this.locale}/${e}.svg`;try{let t=await z(s);return new DOMParser().parseFromString(t,"text/html").body.querySelector("svg")}catch(t){return null}}firstUpdated(){this.loadIcon()}updated(e){(e.has("name")||e.has("locale"))&&this.loadIcon()}async loadIcon(){if(!this.name){this.svg=null;return}let e=await this.fetchIcon(this.name);e||(e=new DOMParser().parseFromString(y,"text/html").body.firstElementChild),this.svg=e}render(){let e={"w-icon":!0,"w-icon--s":this.size==="small","w-icon--m":this.size==="medium","w-icon--l":this.size==="large"},s=typeof this.size=="string"&&this.size.endsWith("px")?`--w-icon-size: ${this.size};`:"";return g`<div class="${u(e)}" style="${s}" part="w-${this.name.toLowerCase()}">${this.svg}</div>`}};n.styles=[p],r([l({type:String,reflect:!0})],n.prototype,"name",2),r([l({type:String,reflect:!0})],n.prototype,"size",2),r([l({type:String,reflect:!0})],n.prototype,"locale",2),r([f()],n.prototype,"svg",2);customElements.get("w-icon")||customElements.define("w-icon",n);export{n as WIcon};
|
|
27
27
|
//# sourceMappingURL=icon.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/icon/
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "wMAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../packages/icon/icon.ts", "../../../packages/icon/style.ts"],
|
|
4
|
+
"sourcesContent": ["import { html, LitElement, TemplateResult } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './style.js';\n\n// Generic parser for fetch responses\ntype ResponseParser<T> = (response: Response) => Promise<T>;\n\ninterface CacheFetchOptions<T> {\n responseParser?: ResponseParser<T>;\n}\n\nconst _fetchMap = new Map<string, Promise<any>>();\nconst ERROR_SVG = '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>';\n\n/**\n * A minimal in-memory map to de-duplicate Fetch API media requests.\n *\n * @param uri - Resource URL\n * @param options - Optional parser for the response\n * @returns Promise of parsed response\n */\nfunction cacheFetch<T = string>(uri: string, options: CacheFetchOptions<T> = {}): Promise<T> {\n const parser = options.responseParser ?? ((res: Response) => res.text() as Promise<any>);\n if (!_fetchMap.has(uri)) {\n _fetchMap.set(uri, fetch(uri).then(parser));\n }\n return _fetchMap.get(uri) as Promise<T>;\n}\n\nexport class WIcon extends LitElement {\n static styles = [styles];\n\n /** Icon filename (without .svg) */\n @property({ type: String, reflect: true })\n name = '';\n\n /** Size: small, medium, large or pixel value (e.g. \"32px\") */\n @property({ type: String, reflect: true })\n size: 'small' | 'medium' | 'large' | string = 'medium';\n\n /** Locale used in CDN URL */\n @property({ type: String, reflect: true })\n locale = 'en';\n\n /** Parsed SVG element (not reflected as attribute) */\n @state()\n private svg: SVGElement | null = null;\n\n /**\n * Fetch an icon SVG from the CDN, with caching\n * @param iconName - Name of the icon file\n * @returns SVGElement or null on failure\n */\n private async fetchIcon(iconName: string): Promise<SVGElement | null> {\n const uri = `https://assets.finn.no/pkg/eikons/v1/${this.locale}/${iconName}.svg`;\n try {\n const svgText = await cacheFetch<string>(uri);\n const doc = new DOMParser().parseFromString(svgText, 'text/html');\n return doc.body.querySelector('svg');\n } catch {\n return null;\n }\n }\n\n protected firstUpdated(): void {\n this.loadIcon();\n }\n\n protected updated(changedProps: Map<string, unknown>): void {\n if (changedProps.has('name') || changedProps.has('locale')) {\n this.loadIcon();\n }\n }\n\n private async loadIcon(): Promise<void> {\n if (!this.name) {\n this.svg = null;\n return;\n }\n\n let iconEl = await this.fetchIcon(this.name);\n if (!iconEl) {\n const doc = new DOMParser().parseFromString(ERROR_SVG, 'text/html');\n iconEl = doc.body.firstElementChild as SVGElement;\n }\n this.svg = iconEl;\n }\n\n render(): TemplateResult {\n const classes = {\n 'w-icon': true,\n 'w-icon--s': this.size === 'small',\n 'w-icon--m': this.size === 'medium',\n 'w-icon--l': this.size === 'large',\n };\n const customStyle = typeof this.size === 'string' && this.size.endsWith('px') ? `--w-icon-size: ${this.size};` : '';\n return html`<div class=\"${classMap(classes)}\" style=\"${customStyle}\" part=\"w-${this.name.toLowerCase()}\">${this.svg}</div>`;\n }\n}\n\nif (!customElements.get('w-icon')) {\n customElements.define('w-icon', WIcon);\n}\n", "import { css } from 'lit';\n\nexport const styles = css`\n:host {\n display: inline-block;\n}\n.w-icon {\n --_w-icon-size: var(--w-icon-size, 24px);\n height: var(--_w-icon-size);\n width: var(--_w-icon-size);\n display: flex;\n}\n.w-icon svg {\n pointer-events: none;\n height: var(--_w-icon-size);\n width: var(--_w-icon-size);\n}\n.w-icon--s {\n --w-icon-size: 16px;\n}\n.w-icon--m {\n --w-icon-size: 24px;\n}\n.w-icon--l {\n --w-icon-size: 32px;\n}\n\n`;\n"],
|
|
5
|
+
"mappings": "wMAAA,OAAS,QAAAA,EAAM,cAAAC,MAAkC,MACjD,OAAS,YAAAC,EAAU,SAAAC,MAAa,oBAChC,OAAS,YAAAC,MAAgB,8BCFzB,OAAS,OAAAC,MAAW,MAEb,IAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EDUtB,IAAME,EAAY,IAAI,IAChBC,EAAY,qEASlB,SAASC,EAAuBC,EAAaC,EAAgC,CAAC,EAAe,CAtB7F,IAAAC,EAuBE,IAAMC,GAASD,EAAAD,EAAQ,iBAAR,KAAAC,GAA4BE,GAAkBA,EAAI,KAAK,GACtE,OAAKP,EAAU,IAAIG,CAAG,GACpBH,EAAU,IAAIG,EAAK,MAAMA,CAAG,EAAE,KAAKG,CAAM,CAAC,EAErCN,EAAU,IAAIG,CAAG,CAC1B,CAEO,IAAMK,EAAN,cAAoBC,CAAW,CAA/B,kCAKL,UAAO,GAIP,UAA8C,SAI9C,YAAS,KAIT,KAAQ,IAAyB,KAOjC,MAAc,UAAUC,EAA8C,CACpE,IAAMP,EAAM,wCAAwC,KAAK,MAAM,IAAIO,CAAQ,OAC3E,GAAI,CACF,IAAMC,EAAU,MAAMT,EAAmBC,CAAG,EAE5C,OADY,IAAI,UAAU,EAAE,gBAAgBQ,EAAS,WAAW,EACrD,KAAK,cAAc,KAAK,CACrC,OAAQC,EAAA,CACN,OAAO,IACT,CACF,CAEU,cAAqB,CAC7B,KAAK,SAAS,CAChB,CAEU,QAAQC,EAA0C,EACtDA,EAAa,IAAI,MAAM,GAAKA,EAAa,IAAI,QAAQ,IACvD,KAAK,SAAS,CAElB,CAEA,MAAc,UAA0B,CACtC,GAAI,CAAC,KAAK,KAAM,CACd,KAAK,IAAM,KACX,MACF,CAEA,IAAIC,EAAS,MAAM,KAAK,UAAU,KAAK,IAAI,EACtCA,IAEHA,EADY,IAAI,UAAU,EAAE,gBAAgBb,EAAW,WAAW,EACrD,KAAK,mBAEpB,KAAK,IAAMa,CACb,CAEA,QAAyB,CACvB,IAAMC,EAAU,CACd,SAAU,GACV,YAAa,KAAK,OAAS,QAC3B,YAAa,KAAK,OAAS,SAC3B,YAAa,KAAK,OAAS,OAC7B,EACMC,EAAc,OAAO,KAAK,MAAS,UAAY,KAAK,KAAK,SAAS,IAAI,EAAI,kBAAkB,KAAK,IAAI,IAAM,GACjH,OAAOC,gBAAmBC,EAASH,CAAO,CAAC,YAAYC,CAAW,aAAa,KAAK,KAAK,YAAY,CAAC,KAAK,KAAK,GAAG,QACrH,CACF,EArEaR,EACJ,OAAS,CAACW,CAAM,EAIvBC,EAAA,CADCC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAJ9Bb,EAKX,oBAIAY,EAAA,CADCC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAR9Bb,EASX,oBAIAY,EAAA,CADCC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAZ9Bb,EAaX,sBAIQY,EAAA,CADPE,EAAM,GAhBId,EAiBH,mBAsDL,eAAe,IAAI,QAAQ,GAC9B,eAAe,OAAO,SAAUA,CAAK",
|
|
6
|
+
"names": ["html", "LitElement", "property", "state", "classMap", "css", "styles", "_fetchMap", "ERROR_SVG", "cacheFetch", "uri", "options", "_a", "parser", "res", "WIcon", "LitElement", "iconName", "svgText", "e", "changedProps", "iconEl", "classes", "customStyle", "html", "classMap", "styles", "__decorateClass", "property", "state"]
|
|
7
7
|
}
|
|
@@ -1,12 +1,284 @@
|
|
|
1
|
-
import { Icon } from './react.js';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { Icon } from './react.js';
|
|
3
3
|
export default {
|
|
4
4
|
component: Icon,
|
|
5
5
|
title: 'Icons',
|
|
6
6
|
argTypes: {
|
|
7
7
|
name: {
|
|
8
8
|
control: { type: 'select' },
|
|
9
|
-
options: [
|
|
9
|
+
options: [
|
|
10
|
+
'ActiveAds',
|
|
11
|
+
'Ads',
|
|
12
|
+
'AirCon',
|
|
13
|
+
'AirplaneBed',
|
|
14
|
+
'AllWheelDrive',
|
|
15
|
+
'AnimalPaw',
|
|
16
|
+
'ArchiveBox',
|
|
17
|
+
'Archway',
|
|
18
|
+
'ArrowDown',
|
|
19
|
+
'ArrowLeft',
|
|
20
|
+
'ArrowRight',
|
|
21
|
+
'ArrowUp',
|
|
22
|
+
'AwardMedal',
|
|
23
|
+
'BackWheelDrive',
|
|
24
|
+
'Bag',
|
|
25
|
+
'Bank',
|
|
26
|
+
'BankIdNo',
|
|
27
|
+
'BatteryEmpty',
|
|
28
|
+
'BatteryFull',
|
|
29
|
+
'BatteryHalfFull',
|
|
30
|
+
'Beach',
|
|
31
|
+
'Bell',
|
|
32
|
+
'BellFilled',
|
|
33
|
+
'Bin',
|
|
34
|
+
'Block',
|
|
35
|
+
'Boat',
|
|
36
|
+
'Bolt',
|
|
37
|
+
'Bookmark',
|
|
38
|
+
'Briefcase',
|
|
39
|
+
'BriefcaseUser',
|
|
40
|
+
'Browser',
|
|
41
|
+
'BrowserVerified',
|
|
42
|
+
'Building',
|
|
43
|
+
'BuildingPlot',
|
|
44
|
+
'Bulb',
|
|
45
|
+
'Burger',
|
|
46
|
+
'Bus',
|
|
47
|
+
'CabinHut',
|
|
48
|
+
'Calculator',
|
|
49
|
+
'Calendar',
|
|
50
|
+
'CalendarBlank',
|
|
51
|
+
'CalendarPlus',
|
|
52
|
+
'Camera',
|
|
53
|
+
'Cancel',
|
|
54
|
+
'Car',
|
|
55
|
+
'CarLeft',
|
|
56
|
+
'CarPart',
|
|
57
|
+
'CarRent',
|
|
58
|
+
'CarRight',
|
|
59
|
+
'Chair',
|
|
60
|
+
'Charger',
|
|
61
|
+
'Charter',
|
|
62
|
+
'ChatSupport',
|
|
63
|
+
'Check',
|
|
64
|
+
'CheckShield',
|
|
65
|
+
'Checklist',
|
|
66
|
+
'ChevronDoubleLeft',
|
|
67
|
+
'ChevronDoubleRight',
|
|
68
|
+
'ChevronDown',
|
|
69
|
+
'ChevronLeft',
|
|
70
|
+
'ChevronRight',
|
|
71
|
+
'ChevronUp',
|
|
72
|
+
'CirclePlus',
|
|
73
|
+
'CirclePlusFilled',
|
|
74
|
+
'CircleUser',
|
|
75
|
+
'CircleUserFilled',
|
|
76
|
+
'Clock',
|
|
77
|
+
'ClockCountdown',
|
|
78
|
+
'Close',
|
|
79
|
+
'Code',
|
|
80
|
+
'Cog',
|
|
81
|
+
'ColorPalette',
|
|
82
|
+
'Confetti',
|
|
83
|
+
'Cookie',
|
|
84
|
+
'Copy',
|
|
85
|
+
'CreditCard',
|
|
86
|
+
'Cursor',
|
|
87
|
+
'Delivery',
|
|
88
|
+
'DeliveryKey',
|
|
89
|
+
'Diner',
|
|
90
|
+
'Discount',
|
|
91
|
+
'Dislike',
|
|
92
|
+
'Door',
|
|
93
|
+
'Dots',
|
|
94
|
+
'DotsVertical',
|
|
95
|
+
'DoubleBed',
|
|
96
|
+
'Download',
|
|
97
|
+
'DragDots',
|
|
98
|
+
'Draw',
|
|
99
|
+
'Drawer',
|
|
100
|
+
'Drill',
|
|
101
|
+
'Drink',
|
|
102
|
+
'Dumbbell',
|
|
103
|
+
'Edit',
|
|
104
|
+
'Energy',
|
|
105
|
+
'Engine',
|
|
106
|
+
'EngineBelt',
|
|
107
|
+
'Error',
|
|
108
|
+
'Exchange',
|
|
109
|
+
'Expand',
|
|
110
|
+
'EyeOff',
|
|
111
|
+
'EyeOn',
|
|
112
|
+
'Facebook',
|
|
113
|
+
'Farm',
|
|
114
|
+
'FileAdd',
|
|
115
|
+
'FileArrowDown',
|
|
116
|
+
'Filter',
|
|
117
|
+
'Fireplace',
|
|
118
|
+
'Fishing',
|
|
119
|
+
'FrontWheelDrive',
|
|
120
|
+
'GasDiesel',
|
|
121
|
+
'GasFuel',
|
|
122
|
+
'GasHybrid',
|
|
123
|
+
'GearAutomatic',
|
|
124
|
+
'GearManual',
|
|
125
|
+
'GeometricShapes',
|
|
126
|
+
'Globe',
|
|
127
|
+
'GraphLine',
|
|
128
|
+
'GraphPie',
|
|
129
|
+
'Grid',
|
|
130
|
+
'Grill',
|
|
131
|
+
'Guitar',
|
|
132
|
+
'Headset',
|
|
133
|
+
'Heart',
|
|
134
|
+
'HeartRate',
|
|
135
|
+
'Hiking',
|
|
136
|
+
'History',
|
|
137
|
+
'Hotel',
|
|
138
|
+
'House',
|
|
139
|
+
'HouseBed',
|
|
140
|
+
'HouseFilled',
|
|
141
|
+
'HouseModern',
|
|
142
|
+
'HousePerson',
|
|
143
|
+
'IceSkater',
|
|
144
|
+
'Image',
|
|
145
|
+
'Info',
|
|
146
|
+
'Instagram',
|
|
147
|
+
'JetSki',
|
|
148
|
+
'Key',
|
|
149
|
+
'Lamp',
|
|
150
|
+
'Layers',
|
|
151
|
+
'Leaf',
|
|
152
|
+
'Lift',
|
|
153
|
+
'Like',
|
|
154
|
+
'Link',
|
|
155
|
+
'LinkExternal',
|
|
156
|
+
'ListSort',
|
|
157
|
+
'LockShield',
|
|
158
|
+
'Logout',
|
|
159
|
+
'LotusFlower',
|
|
160
|
+
'Luggage',
|
|
161
|
+
'Mail',
|
|
162
|
+
'Mailbox',
|
|
163
|
+
'Map',
|
|
164
|
+
'Megaphone',
|
|
165
|
+
'Messages',
|
|
166
|
+
'MessagesFilled',
|
|
167
|
+
'Minus',
|
|
168
|
+
'Mixer',
|
|
169
|
+
'Money',
|
|
170
|
+
'Moon',
|
|
171
|
+
'Motorcycle',
|
|
172
|
+
'Mountain',
|
|
173
|
+
'NoSmoking',
|
|
174
|
+
'OfficeDesk',
|
|
175
|
+
'Organize',
|
|
176
|
+
'Paperclip',
|
|
177
|
+
'Parking',
|
|
178
|
+
'Phone',
|
|
179
|
+
'PhoneCheck',
|
|
180
|
+
'PhoneScratched',
|
|
181
|
+
'PhoneUsed',
|
|
182
|
+
'PictureStack',
|
|
183
|
+
'PinMarker',
|
|
184
|
+
'PinRound',
|
|
185
|
+
'PlaneLand',
|
|
186
|
+
'PlaneTakeOff',
|
|
187
|
+
'Play',
|
|
188
|
+
'Playhouse',
|
|
189
|
+
'Plus',
|
|
190
|
+
'ProductBump',
|
|
191
|
+
'ProductCarousel',
|
|
192
|
+
'ProductHighlightListing',
|
|
193
|
+
'ProductNabolagsprofil',
|
|
194
|
+
'ProductStarred',
|
|
195
|
+
'ProductTop',
|
|
196
|
+
'Propeller',
|
|
197
|
+
'Question',
|
|
198
|
+
'Refresh',
|
|
199
|
+
'Road',
|
|
200
|
+
'Rocket',
|
|
201
|
+
'RoomService',
|
|
202
|
+
'RotateLeft',
|
|
203
|
+
'RotateRight',
|
|
204
|
+
'RowingBoat',
|
|
205
|
+
'Ruler',
|
|
206
|
+
'Sauna',
|
|
207
|
+
'ScrollUp',
|
|
208
|
+
'Search',
|
|
209
|
+
'Seat',
|
|
210
|
+
'Send',
|
|
211
|
+
'Share',
|
|
212
|
+
'Shipping',
|
|
213
|
+
'Shirt',
|
|
214
|
+
'Shoes',
|
|
215
|
+
'ShoppingCart',
|
|
216
|
+
'Shower',
|
|
217
|
+
'Shrink',
|
|
218
|
+
'SidebarChevronLeft',
|
|
219
|
+
'SidebarChevronRight',
|
|
220
|
+
'SingleCylinder',
|
|
221
|
+
'Skyscraper',
|
|
222
|
+
'SmileyGood',
|
|
223
|
+
'SmileyHappy',
|
|
224
|
+
'SmileyNeutral',
|
|
225
|
+
'SmileySad',
|
|
226
|
+
'Sofa',
|
|
227
|
+
'Sorting',
|
|
228
|
+
'Sparkles',
|
|
229
|
+
'Speedometer',
|
|
230
|
+
'Stairs',
|
|
231
|
+
'StarCheck',
|
|
232
|
+
'StarEmpty',
|
|
233
|
+
'StarFull',
|
|
234
|
+
'StarHalf',
|
|
235
|
+
'Store',
|
|
236
|
+
'StoreFront',
|
|
237
|
+
'Stove',
|
|
238
|
+
'Stroller',
|
|
239
|
+
'Success',
|
|
240
|
+
'Suitcase',
|
|
241
|
+
'SuitcaseTrolley',
|
|
242
|
+
'Sun',
|
|
243
|
+
'Support',
|
|
244
|
+
'Swimming',
|
|
245
|
+
'TV',
|
|
246
|
+
'Tag',
|
|
247
|
+
'TaskList',
|
|
248
|
+
'TextBold',
|
|
249
|
+
'TextItalic',
|
|
250
|
+
'TextStrikethrough',
|
|
251
|
+
'TextUnderline',
|
|
252
|
+
'Theater',
|
|
253
|
+
'ThreeSixty',
|
|
254
|
+
'Ticket',
|
|
255
|
+
'TownHouse',
|
|
256
|
+
'Tractor',
|
|
257
|
+
'Tree',
|
|
258
|
+
'TrendDown',
|
|
259
|
+
'TrendFlat',
|
|
260
|
+
'TrendUp',
|
|
261
|
+
'Tshirt',
|
|
262
|
+
'Up',
|
|
263
|
+
'Upload',
|
|
264
|
+
'User',
|
|
265
|
+
'UserGroup',
|
|
266
|
+
'Users',
|
|
267
|
+
'Vacuum',
|
|
268
|
+
'Vase',
|
|
269
|
+
'Verification',
|
|
270
|
+
'Wallet',
|
|
271
|
+
'Warning',
|
|
272
|
+
'Warranty',
|
|
273
|
+
'WashingMachine',
|
|
274
|
+
'WaterPitcher',
|
|
275
|
+
'Weight',
|
|
276
|
+
'Wheelchair',
|
|
277
|
+
'Wifi',
|
|
278
|
+
'Wrench',
|
|
279
|
+
'X',
|
|
280
|
+
'YouTube',
|
|
281
|
+
],
|
|
10
282
|
},
|
|
11
283
|
size: {
|
|
12
284
|
control: { type: 'select' },
|
|
@@ -9,7 +9,279 @@ export default {
|
|
|
9
9
|
argTypes: {
|
|
10
10
|
name: {
|
|
11
11
|
control: { type: 'select' },
|
|
12
|
-
options: [
|
|
12
|
+
options: [
|
|
13
|
+
'ActiveAds',
|
|
14
|
+
'Ads',
|
|
15
|
+
'AirCon',
|
|
16
|
+
'AirplaneBed',
|
|
17
|
+
'AllWheelDrive',
|
|
18
|
+
'AnimalPaw',
|
|
19
|
+
'ArchiveBox',
|
|
20
|
+
'Archway',
|
|
21
|
+
'ArrowDown',
|
|
22
|
+
'ArrowLeft',
|
|
23
|
+
'ArrowRight',
|
|
24
|
+
'ArrowUp',
|
|
25
|
+
'AwardMedal',
|
|
26
|
+
'BackWheelDrive',
|
|
27
|
+
'Bag',
|
|
28
|
+
'Bank',
|
|
29
|
+
'BankIdNo',
|
|
30
|
+
'BatteryEmpty',
|
|
31
|
+
'BatteryFull',
|
|
32
|
+
'BatteryHalfFull',
|
|
33
|
+
'Beach',
|
|
34
|
+
'Bell',
|
|
35
|
+
'BellFilled',
|
|
36
|
+
'Bin',
|
|
37
|
+
'Block',
|
|
38
|
+
'Boat',
|
|
39
|
+
'Bolt',
|
|
40
|
+
'Bookmark',
|
|
41
|
+
'Briefcase',
|
|
42
|
+
'BriefcaseUser',
|
|
43
|
+
'Browser',
|
|
44
|
+
'BrowserVerified',
|
|
45
|
+
'Building',
|
|
46
|
+
'BuildingPlot',
|
|
47
|
+
'Bulb',
|
|
48
|
+
'Burger',
|
|
49
|
+
'Bus',
|
|
50
|
+
'CabinHut',
|
|
51
|
+
'Calculator',
|
|
52
|
+
'Calendar',
|
|
53
|
+
'CalendarBlank',
|
|
54
|
+
'CalendarPlus',
|
|
55
|
+
'Camera',
|
|
56
|
+
'Cancel',
|
|
57
|
+
'Car',
|
|
58
|
+
'CarLeft',
|
|
59
|
+
'CarPart',
|
|
60
|
+
'CarRent',
|
|
61
|
+
'CarRight',
|
|
62
|
+
'Chair',
|
|
63
|
+
'Charger',
|
|
64
|
+
'Charter',
|
|
65
|
+
'ChatSupport',
|
|
66
|
+
'Check',
|
|
67
|
+
'CheckShield',
|
|
68
|
+
'Checklist',
|
|
69
|
+
'ChevronDoubleLeft',
|
|
70
|
+
'ChevronDoubleRight',
|
|
71
|
+
'ChevronDown',
|
|
72
|
+
'ChevronLeft',
|
|
73
|
+
'ChevronRight',
|
|
74
|
+
'ChevronUp',
|
|
75
|
+
'CirclePlus',
|
|
76
|
+
'CirclePlusFilled',
|
|
77
|
+
'CircleUser',
|
|
78
|
+
'CircleUserFilled',
|
|
79
|
+
'Clock',
|
|
80
|
+
'ClockCountdown',
|
|
81
|
+
'Close',
|
|
82
|
+
'Code',
|
|
83
|
+
'Cog',
|
|
84
|
+
'ColorPalette',
|
|
85
|
+
'Confetti',
|
|
86
|
+
'Cookie',
|
|
87
|
+
'Copy',
|
|
88
|
+
'CreditCard',
|
|
89
|
+
'Cursor',
|
|
90
|
+
'Delivery',
|
|
91
|
+
'DeliveryKey',
|
|
92
|
+
'Diner',
|
|
93
|
+
'Discount',
|
|
94
|
+
'Dislike',
|
|
95
|
+
'Door',
|
|
96
|
+
'Dots',
|
|
97
|
+
'DotsVertical',
|
|
98
|
+
'DoubleBed',
|
|
99
|
+
'Download',
|
|
100
|
+
'DragDots',
|
|
101
|
+
'Draw',
|
|
102
|
+
'Drawer',
|
|
103
|
+
'Drill',
|
|
104
|
+
'Drink',
|
|
105
|
+
'Dumbbell',
|
|
106
|
+
'Edit',
|
|
107
|
+
'Energy',
|
|
108
|
+
'Engine',
|
|
109
|
+
'EngineBelt',
|
|
110
|
+
'Error',
|
|
111
|
+
'Exchange',
|
|
112
|
+
'Expand',
|
|
113
|
+
'EyeOff',
|
|
114
|
+
'EyeOn',
|
|
115
|
+
'Facebook',
|
|
116
|
+
'Farm',
|
|
117
|
+
'FileAdd',
|
|
118
|
+
'FileArrowDown',
|
|
119
|
+
'Filter',
|
|
120
|
+
'Fireplace',
|
|
121
|
+
'Fishing',
|
|
122
|
+
'FrontWheelDrive',
|
|
123
|
+
'GasDiesel',
|
|
124
|
+
'GasFuel',
|
|
125
|
+
'GasHybrid',
|
|
126
|
+
'GearAutomatic',
|
|
127
|
+
'GearManual',
|
|
128
|
+
'GeometricShapes',
|
|
129
|
+
'Globe',
|
|
130
|
+
'GraphLine',
|
|
131
|
+
'GraphPie',
|
|
132
|
+
'Grid',
|
|
133
|
+
'Grill',
|
|
134
|
+
'Guitar',
|
|
135
|
+
'Headset',
|
|
136
|
+
'Heart',
|
|
137
|
+
'HeartRate',
|
|
138
|
+
'Hiking',
|
|
139
|
+
'History',
|
|
140
|
+
'Hotel',
|
|
141
|
+
'House',
|
|
142
|
+
'HouseBed',
|
|
143
|
+
'HouseFilled',
|
|
144
|
+
'HouseModern',
|
|
145
|
+
'HousePerson',
|
|
146
|
+
'IceSkater',
|
|
147
|
+
'Image',
|
|
148
|
+
'Info',
|
|
149
|
+
'Instagram',
|
|
150
|
+
'JetSki',
|
|
151
|
+
'Key',
|
|
152
|
+
'Lamp',
|
|
153
|
+
'Layers',
|
|
154
|
+
'Leaf',
|
|
155
|
+
'Lift',
|
|
156
|
+
'Like',
|
|
157
|
+
'Link',
|
|
158
|
+
'LinkExternal',
|
|
159
|
+
'ListSort',
|
|
160
|
+
'LockShield',
|
|
161
|
+
'Logout',
|
|
162
|
+
'LotusFlower',
|
|
163
|
+
'Luggage',
|
|
164
|
+
'Mail',
|
|
165
|
+
'Mailbox',
|
|
166
|
+
'Map',
|
|
167
|
+
'Megaphone',
|
|
168
|
+
'Messages',
|
|
169
|
+
'MessagesFilled',
|
|
170
|
+
'Minus',
|
|
171
|
+
'Mixer',
|
|
172
|
+
'Money',
|
|
173
|
+
'Moon',
|
|
174
|
+
'Motorcycle',
|
|
175
|
+
'Mountain',
|
|
176
|
+
'NoSmoking',
|
|
177
|
+
'OfficeDesk',
|
|
178
|
+
'Organize',
|
|
179
|
+
'Paperclip',
|
|
180
|
+
'Parking',
|
|
181
|
+
'Phone',
|
|
182
|
+
'PhoneCheck',
|
|
183
|
+
'PhoneScratched',
|
|
184
|
+
'PhoneUsed',
|
|
185
|
+
'PictureStack',
|
|
186
|
+
'PinMarker',
|
|
187
|
+
'PinRound',
|
|
188
|
+
'PlaneLand',
|
|
189
|
+
'PlaneTakeOff',
|
|
190
|
+
'Play',
|
|
191
|
+
'Playhouse',
|
|
192
|
+
'Plus',
|
|
193
|
+
'ProductBump',
|
|
194
|
+
'ProductCarousel',
|
|
195
|
+
'ProductHighlightListing',
|
|
196
|
+
'ProductNabolagsprofil',
|
|
197
|
+
'ProductStarred',
|
|
198
|
+
'ProductTop',
|
|
199
|
+
'Propeller',
|
|
200
|
+
'Question',
|
|
201
|
+
'Refresh',
|
|
202
|
+
'Road',
|
|
203
|
+
'Rocket',
|
|
204
|
+
'RoomService',
|
|
205
|
+
'RotateLeft',
|
|
206
|
+
'RotateRight',
|
|
207
|
+
'RowingBoat',
|
|
208
|
+
'Ruler',
|
|
209
|
+
'Sauna',
|
|
210
|
+
'ScrollUp',
|
|
211
|
+
'Search',
|
|
212
|
+
'Seat',
|
|
213
|
+
'Send',
|
|
214
|
+
'Share',
|
|
215
|
+
'Shipping',
|
|
216
|
+
'Shirt',
|
|
217
|
+
'Shoes',
|
|
218
|
+
'ShoppingCart',
|
|
219
|
+
'Shower',
|
|
220
|
+
'Shrink',
|
|
221
|
+
'SidebarChevronLeft',
|
|
222
|
+
'SidebarChevronRight',
|
|
223
|
+
'SingleCylinder',
|
|
224
|
+
'Skyscraper',
|
|
225
|
+
'SmileyGood',
|
|
226
|
+
'SmileyHappy',
|
|
227
|
+
'SmileyNeutral',
|
|
228
|
+
'SmileySad',
|
|
229
|
+
'Sofa',
|
|
230
|
+
'Sorting',
|
|
231
|
+
'Sparkles',
|
|
232
|
+
'Speedometer',
|
|
233
|
+
'Stairs',
|
|
234
|
+
'StarCheck',
|
|
235
|
+
'StarEmpty',
|
|
236
|
+
'StarFull',
|
|
237
|
+
'StarHalf',
|
|
238
|
+
'Store',
|
|
239
|
+
'StoreFront',
|
|
240
|
+
'Stove',
|
|
241
|
+
'Stroller',
|
|
242
|
+
'Success',
|
|
243
|
+
'Suitcase',
|
|
244
|
+
'SuitcaseTrolley',
|
|
245
|
+
'Sun',
|
|
246
|
+
'Support',
|
|
247
|
+
'Swimming',
|
|
248
|
+
'TV',
|
|
249
|
+
'Tag',
|
|
250
|
+
'TaskList',
|
|
251
|
+
'TextBold',
|
|
252
|
+
'TextItalic',
|
|
253
|
+
'TextStrikethrough',
|
|
254
|
+
'TextUnderline',
|
|
255
|
+
'Theater',
|
|
256
|
+
'ThreeSixty',
|
|
257
|
+
'Ticket',
|
|
258
|
+
'TownHouse',
|
|
259
|
+
'Tractor',
|
|
260
|
+
'Tree',
|
|
261
|
+
'TrendDown',
|
|
262
|
+
'TrendFlat',
|
|
263
|
+
'TrendUp',
|
|
264
|
+
'Tshirt',
|
|
265
|
+
'Up',
|
|
266
|
+
'Upload',
|
|
267
|
+
'User',
|
|
268
|
+
'UserGroup',
|
|
269
|
+
'Users',
|
|
270
|
+
'Vacuum',
|
|
271
|
+
'Vase',
|
|
272
|
+
'Verification',
|
|
273
|
+
'Wallet',
|
|
274
|
+
'Warning',
|
|
275
|
+
'Warranty',
|
|
276
|
+
'WashingMachine',
|
|
277
|
+
'WaterPitcher',
|
|
278
|
+
'Weight',
|
|
279
|
+
'Wheelchair',
|
|
280
|
+
'Wifi',
|
|
281
|
+
'Wrench',
|
|
282
|
+
'X',
|
|
283
|
+
'YouTube',
|
|
284
|
+
],
|
|
13
285
|
},
|
|
14
286
|
size: {
|
|
15
287
|
control: { type: 'select' },
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Link } from './react';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
render(args: Omit<React.HTMLAttributes<import("./link").WarpLink>, "rel" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "
|
|
6
|
+
render(args: Omit<React.HTMLAttributes<import("./link").WarpLink>, "small" | "rel" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "href" | "disabled" | "target" | "fullWidth" | "firstUpdated"> & {} & Partial<Omit<import("./link").WarpLink, keyof HTMLElement>> & React.RefAttributes<import("./link").WarpLink>): React.JSX.Element;
|
|
7
7
|
component: import("@lit/react").ReactWebComponent<import("./link").WarpLink, {}>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, nothing, PropertyValues } from 'lit';
|
|
2
|
-
import '
|
|
3
|
-
import '@warp-ds/icons/elements/close-16';
|
|
2
|
+
import '../icon/icon.js';
|
|
4
3
|
declare const ModalHeader_base: import("../modal/util.js").Constructor<{
|
|
5
4
|
close: () => void;
|
|
6
5
|
}> & typeof LitElement;
|