@maggioli-design-system/mds-tab 1.0.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/cjs/index-5058f78c.js +857 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/mds-tab.cjs.entry.js +43 -0
- package/dist/cjs/mds-tab.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/mds-tab/mds-tab.css +70 -0
- package/dist/collection/components/mds-tab/mds-tab.js +48 -0
- package/dist/collection/components/mds-tab/test/mds-tab.stories.js +16 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +26 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/icon.js +3 -0
- package/dist/collection/dictionary/input-text-type.js +13 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/typography.js +37 -0
- package/dist/collection/dictionary/variant.js +64 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/types/autocomplete.js +1 -0
- package/dist/collection/types/button.js +1 -0
- package/dist/collection/types/form-rel.js +1 -0
- package/dist/collection/types/input-text-type.js +1 -0
- package/dist/collection/types/input-value-type.js +1 -0
- package/dist/collection/types/loading.js +1 -0
- package/dist/collection/types/typography.js +1 -0
- package/dist/collection/types/variant.js +1 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/mds-tab.d.ts +11 -0
- package/dist/components/mds-tab.js +58 -0
- package/dist/esm/index-e1c76e56.js +830 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/mds-tab.entry.js +39 -0
- package/dist/esm/mds-tab.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-e1c76e56.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/mds-tab.entry.js +1 -0
- package/dist/esm-es5/mds-tab.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-tab/index.esm.js +0 -0
- package/dist/mds-tab/mds-tab.esm.js +1 -0
- package/dist/mds-tab/mds-tab.js +130 -0
- package/dist/mds-tab/p-05f6123c.system.js +1 -0
- package/dist/mds-tab/p-061c9812.js +1 -0
- package/dist/mds-tab/p-50ea2036.system.js +1 -0
- package/dist/mds-tab/p-87b8ee61.entry.js +1 -0
- package/dist/mds-tab/p-d0d6eef1.system.entry.js +1 -0
- package/dist/mds-tab/p-f7bd9448.system.js +1 -0
- package/dist/stats.json +365 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +9 -0
- package/dist/types/components.d.ts +37 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +5 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +2 -0
- package/dist/types/dictionary/input-text-type.d.ts +2 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +5 -0
- package/dist/types/dictionary/variant.d.ts +9 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1563 -0
- package/dist/types/types/autocomplete.d.ts +2 -0
- package/dist/types/types/button.d.ts +4 -0
- package/dist/types/types/form-rel.d.ts +1 -0
- package/dist/types/types/input-text-type.d.ts +1 -0
- package/dist/types/types/input-value-type.d.ts +1 -0
- package/dist/types/types/loading.d.ts +1 -0
- package/dist/types/types/typography.d.ts +4 -0
- package/dist/types/types/variant.d.ts +10 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +45 -0
- package/readme.md +10 -0
- package/src/components/mds-tab/mds-tab.css +46 -0
- package/src/components/mds-tab/mds-tab.tsx +49 -0
- package/src/components/mds-tab/readme.md +10 -0
- package/src/components/mds-tab/test/mds-tab.e2e.ts +12 -0
- package/src/components/mds-tab/test/mds-tab.spec.tsx +19 -0
- package/src/components/mds-tab/test/mds-tab.stories.js +16 -0
- package/src/components.d.ts +37 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +35 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/icon.ts +5 -0
- package/src/dictionary/input-text-type.ts +17 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/typography.ts +46 -0
- package/src/dictionary/variant.ts +81 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/interface/input-value.ts +5 -0
- package/src/types/autocomplete.ts +69 -0
- package/src/types/button.ts +24 -0
- package/src/types/form-rel.ts +11 -0
- package/src/types/input-text-type.ts +11 -0
- package/src/types/input-value-type.ts +5 -0
- package/src/types/loading.ts +3 -0
- package/src/types/typography.ts +35 -0
- package/src/types/variant.ts +72 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-tab.esm.js +1 -0
- package/www/build/mds-tab.js +130 -0
- package/www/build/p-05f6123c.system.js +1 -0
- package/www/build/p-061c9812.js +1 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-87b8ee61.entry.js +1 -0
- package/www/build/p-d0d6eef1.system.entry.js +1 -0
- package/www/build/p-f7bd9448.system.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare type AutocompleteType = 'additional-name' | 'address' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'cc-additional-name' | 'cc-csc' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-family-name' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-number' | 'cc-type' | 'country' | 'country-name' | 'current-password' | 'email' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'impp' | 'language' | 'name' | 'new-password' | 'nickname' | 'off' | 'on' | 'one-time-code' | 'organization' | 'organization-title' | 'photo' | 'postal-code' | 'sex' | 'street-address' | 'tel' | 'tel-area-code' | 'tel-country-code' | 'tel-extension' | 'tel-local' | 'tel-national' | 'transaction-amount' | 'transaction-currency' | 'url' | 'username';
|
|
2
|
+
export declare type InputTextType = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare type ButtonType = 'a' | 'button' | 'reset' | 'submit';
|
|
2
|
+
export declare type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export declare type ButtonIconPositionType = 'left' | 'right';
|
|
4
|
+
export declare type ButtonVariantType = 'primary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type FormRelType = 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noopener' | 'noreferrer' | 'opener' | 'prev' | 'search';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type InputTextType = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type InputValueType = null | number | string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type LoadingType = 'eager' | 'lazy';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph';
|
|
2
|
+
export declare type TypographyPrimaryType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
|
+
export declare type TypographySecondaryType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph';
|
|
4
|
+
export declare type TypographyMonoType = 'code' | 'hack';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type ThemeStatusVariantType = 'error' | 'info' | 'success' | 'warning';
|
|
2
|
+
export declare type ThemeVariantType = 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning';
|
|
3
|
+
export declare type ThemeFullVariantType = 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'light' | 'lime' | 'orange' | 'orchid' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
|
|
4
|
+
export declare type ThemeLuminanceVariantType = 'dark' | 'light';
|
|
5
|
+
export declare type LabelVariantType = 'amaranth' | 'aqua' | 'blue' | 'green' | 'lime' | 'orange' | 'orchid' | 'sky' | 'violet' | 'yellow';
|
|
6
|
+
export declare type ActionVariantType = 'primary' | 'dark' | 'light';
|
|
7
|
+
export declare type StateVariantType = 'disabled' | 'focused' | 'readonly';
|
|
8
|
+
export declare type ToneVariantType = 'strong' | 'weak' | 'ghost' | 'quiet';
|
|
9
|
+
export declare type ToneSimpleVariantType = 'strong' | 'weak' | 'quiet';
|
|
10
|
+
export declare type ToneMinimalVariantType = 'strong' | 'weak';
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm-es5/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maggioli-design-system/mds-tab",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "mds-tab is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"es2015": "dist/esm/index.mjs",
|
|
8
|
+
"es2017": "dist/esm/index.mjs",
|
|
9
|
+
"types": "dist/types/components.d.ts",
|
|
10
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
11
|
+
"collection:main": "dist/collection/index.js",
|
|
12
|
+
"unpkg": "dist/mds-tab/mds-tab.esm.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/",
|
|
15
|
+
"loader/",
|
|
16
|
+
"readme.md",
|
|
17
|
+
"src/",
|
|
18
|
+
"www/"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "stencil build --docs-readme"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@maggioli-design-system/mds-tab-item": "^1.0.0",
|
|
25
|
+
"@stencil/core": "^2.12.0"
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Vittorio Vittori",
|
|
30
|
+
"email": "vittorio.vittori@maggioli.it",
|
|
31
|
+
"url": "http://vit.to"
|
|
32
|
+
},
|
|
33
|
+
"contributors": [
|
|
34
|
+
{
|
|
35
|
+
"name": "Andrea Pruccoli",
|
|
36
|
+
"email": "andrea.pruccoli@maggioli.it",
|
|
37
|
+
"role": "Software Engineer"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "Vittorio Vittori",
|
|
41
|
+
"email": "vittorio.vittori@maggioli.it",
|
|
42
|
+
"role": "UX UI Designer"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* @prop --background: Sets the background-color of the component
|
|
5
|
+
* @prop --button-background-hover: Sets the background-color of the button when the mouse is over it
|
|
6
|
+
* @prop --button-background-selected: Sets the background-color of the button when it's selected
|
|
7
|
+
* @prop --button-background: Sets the background-color of the button
|
|
8
|
+
* @prop --button-color-hover: Sets the text color of the button when the mouse is over it
|
|
9
|
+
* @prop --button-color-selected: Sets the text color of the button when it's selected
|
|
10
|
+
* @prop --button-color: Sets the text color of the button
|
|
11
|
+
* @prop --button-radius: Sets the border-radius of the button
|
|
12
|
+
* @prop --button-shadow-selected: Sets the box-shadow of the button when it's selected
|
|
13
|
+
* @prop --radius: Sets the border-radius of the button when the mouse is over it
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
:host {
|
|
17
|
+
|
|
18
|
+
--background: theme('colors.adjust-tone-09');
|
|
19
|
+
--button-background-hover: transparent;
|
|
20
|
+
--button-background-selected: theme('colors.adjust-tone');
|
|
21
|
+
--button-background: transparent;
|
|
22
|
+
--button-color-hover: theme('colors.adjust-tone-02');
|
|
23
|
+
--button-color-selected: theme('colors.adjust-tone-02');
|
|
24
|
+
--button-color: theme('colors.adjust-tone-04');
|
|
25
|
+
--button-radius: theme('spacing.2');
|
|
26
|
+
--button-shadow-selected: theme('boxShadow.DEFAULT');
|
|
27
|
+
--radius: theme('spacing.4');
|
|
28
|
+
|
|
29
|
+
@apply
|
|
30
|
+
flex
|
|
31
|
+
gap-2
|
|
32
|
+
overflow-auto
|
|
33
|
+
p-2;
|
|
34
|
+
|
|
35
|
+
background-color: var(--background);
|
|
36
|
+
border-radius: var(--radius);
|
|
37
|
+
-webkit-overflow-scrolling: touch;
|
|
38
|
+
-ms-overflow-style: none;
|
|
39
|
+
scroll-behavior: smooth;
|
|
40
|
+
scroll-snap-type: x mandatory;
|
|
41
|
+
scrollbar-width: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host::-webkit-scrollbar {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component, Host, h, Listen, Element } from '@stencil/core'
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
tag: 'mds-tab',
|
|
5
|
+
styleUrl: 'mds-tab.css',
|
|
6
|
+
shadow: true,
|
|
7
|
+
})
|
|
8
|
+
export class MdsTab {
|
|
9
|
+
|
|
10
|
+
@Element() private element: HTMLMdsTabElement
|
|
11
|
+
private currentItem: number
|
|
12
|
+
|
|
13
|
+
private queryItems = ():NodeListOf<HTMLMdsTabItemElement> =>
|
|
14
|
+
this.element.querySelectorAll<HTMLMdsTabItemElement>('mds-tab-item')
|
|
15
|
+
|
|
16
|
+
componentWillLoad ():void {
|
|
17
|
+
const items = this.queryItems()
|
|
18
|
+
items.forEach((item, key) => item.id = `item-${key}`)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private scrollTabs = (): void => {
|
|
22
|
+
const items = this.queryItems()
|
|
23
|
+
const tabItem = items[this.currentItem]
|
|
24
|
+
this.element.scrollLeft = tabItem.offsetLeft - this.element.offsetLeft - (this.element.offsetWidth / 2) + (tabItem.offsetWidth / 2)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@Listen('selectedEvent')
|
|
28
|
+
changeEventHandler (event: CustomEvent<string>): void {
|
|
29
|
+
const items = this.element.querySelectorAll<HTMLMdsTabItemElement>('mds-tab-item')
|
|
30
|
+
items.forEach((item, key) => {
|
|
31
|
+
if (`item-${key}` === event.detail) {
|
|
32
|
+
item.selected = true
|
|
33
|
+
this.currentItem = key
|
|
34
|
+
this.scrollTabs()
|
|
35
|
+
} else {
|
|
36
|
+
item.selected = false
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
render () {
|
|
42
|
+
return (
|
|
43
|
+
<Host>
|
|
44
|
+
<slot name="tab-item"/>
|
|
45
|
+
</Host>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { newE2EPage } from '@stencil/core/testing'
|
|
2
|
+
|
|
3
|
+
describe('mds-tab', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newE2EPage()
|
|
6
|
+
await page.setContent('<mds-tab></mds-tab>')
|
|
7
|
+
|
|
8
|
+
const element = await page.find('mds-tab')
|
|
9
|
+
// expect(element).toHaveClass('hydrated')
|
|
10
|
+
expect(true).toBe(true)
|
|
11
|
+
})
|
|
12
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { newSpecPage } from '@stencil/core/testing'
|
|
2
|
+
import { MdsTab } from '../mds-tab'
|
|
3
|
+
|
|
4
|
+
describe('mds-tab', () => {
|
|
5
|
+
it('renders', async () => {
|
|
6
|
+
const page = await newSpecPage({
|
|
7
|
+
components: [MdsTab],
|
|
8
|
+
html: '<mds-tab></mds-tab>',
|
|
9
|
+
})
|
|
10
|
+
// expect(page.root).toEqualHtml(`
|
|
11
|
+
// <mds-tab>
|
|
12
|
+
// <mock:shadow-root>
|
|
13
|
+
// <slot></slot>
|
|
14
|
+
// </mock:shadow-root>
|
|
15
|
+
// </mds-tab>
|
|
16
|
+
// `)
|
|
17
|
+
expect(true).toBe(true)
|
|
18
|
+
})
|
|
19
|
+
})
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import MdsTab from '@component/mds-tab/mds-tab'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'UI / Tab',
|
|
6
|
+
component: MdsTab,
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const Template = args =>
|
|
10
|
+
<mds-tab {...args}>
|
|
11
|
+
<mds-tab-item selected class="mobile:flex-1">First Blood</mds-tab-item>
|
|
12
|
+
<mds-tab-item class="mobile:flex-1">Second Impact</mds-tab-item>
|
|
13
|
+
<mds-tab-item class="mobile:flex-1">The Third Reich</mds-tab-item>
|
|
14
|
+
</mds-tab>
|
|
15
|
+
|
|
16
|
+
export const Default = Template.bind({})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface MdsTab {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLMdsTabElement extends Components.MdsTab, HTMLStencilElement {
|
|
14
|
+
}
|
|
15
|
+
var HTMLMdsTabElement: {
|
|
16
|
+
prototype: HTMLMdsTabElement;
|
|
17
|
+
new (): HTMLMdsTabElement;
|
|
18
|
+
};
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
"mds-tab": HTMLMdsTabElement;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
declare namespace LocalJSX {
|
|
24
|
+
interface MdsTab {
|
|
25
|
+
}
|
|
26
|
+
interface IntrinsicElements {
|
|
27
|
+
"mds-tab": MdsTab;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export { LocalJSX as JSX };
|
|
31
|
+
declare module "@stencil/core" {
|
|
32
|
+
export namespace JSX {
|
|
33
|
+
interface IntrinsicElements {
|
|
34
|
+
"mds-tab": LocalJSX.MdsTab & JSXBase.HTMLAttributes<HTMLMdsTabElement>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const autoCompleteDictionary = [
|
|
2
|
+
'additional-name',
|
|
3
|
+
'address',
|
|
4
|
+
'address-level1',
|
|
5
|
+
'address-level2',
|
|
6
|
+
'address-level3',
|
|
7
|
+
'address-level4',
|
|
8
|
+
'address-line1',
|
|
9
|
+
'address-line2',
|
|
10
|
+
'address-line3',
|
|
11
|
+
'bday',
|
|
12
|
+
'bday-day',
|
|
13
|
+
'bday-month',
|
|
14
|
+
'bday-year',
|
|
15
|
+
'cc-additional-name',
|
|
16
|
+
'cc-csc',
|
|
17
|
+
'cc-exp',
|
|
18
|
+
'cc-exp-month',
|
|
19
|
+
'cc-exp-year',
|
|
20
|
+
'cc-family-name',
|
|
21
|
+
'cc-family-name',
|
|
22
|
+
'cc-given-name',
|
|
23
|
+
'cc-name',
|
|
24
|
+
'cc-number',
|
|
25
|
+
'cc-type',
|
|
26
|
+
'country',
|
|
27
|
+
'country-name',
|
|
28
|
+
'current-password',
|
|
29
|
+
'email',
|
|
30
|
+
'family-name',
|
|
31
|
+
'given-name',
|
|
32
|
+
'honorific-prefix',
|
|
33
|
+
'honorific-suffix',
|
|
34
|
+
'impp',
|
|
35
|
+
'language',
|
|
36
|
+
'name',
|
|
37
|
+
'new-password',
|
|
38
|
+
'nickname',
|
|
39
|
+
'off',
|
|
40
|
+
'on',
|
|
41
|
+
'one-time-code',
|
|
42
|
+
'organization',
|
|
43
|
+
'organization-title',
|
|
44
|
+
'photo',
|
|
45
|
+
'postal-code',
|
|
46
|
+
'sex',
|
|
47
|
+
'street-address',
|
|
48
|
+
'tel',
|
|
49
|
+
'tel-area-code',
|
|
50
|
+
'tel-country-code',
|
|
51
|
+
'tel-extension',
|
|
52
|
+
'tel-local',
|
|
53
|
+
'tel-national',
|
|
54
|
+
'transaction-amount',
|
|
55
|
+
'transaction-currency',
|
|
56
|
+
'url',
|
|
57
|
+
'username',
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
autoCompleteDictionary,
|
|
62
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const buttonVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
const buttonToneVariantDictionary = [
|
|
12
|
+
'strong',
|
|
13
|
+
'weak',
|
|
14
|
+
'ghost',
|
|
15
|
+
'quiet',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
const buttonSizeDictionary = [
|
|
19
|
+
'sm',
|
|
20
|
+
'md',
|
|
21
|
+
'lg',
|
|
22
|
+
'xl',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
const buttonIconPositionDictionary = [
|
|
26
|
+
'left',
|
|
27
|
+
'right',
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
buttonSizeDictionary,
|
|
32
|
+
buttonToneVariantDictionary,
|
|
33
|
+
buttonVariantDictionary,
|
|
34
|
+
buttonIconPositionDictionary,
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const colorLabelDictionary = [
|
|
2
|
+
'amaranth',
|
|
3
|
+
'aqua',
|
|
4
|
+
'blue',
|
|
5
|
+
'green',
|
|
6
|
+
'lime',
|
|
7
|
+
'orange',
|
|
8
|
+
'orchid',
|
|
9
|
+
'sky',
|
|
10
|
+
'violet',
|
|
11
|
+
'yellow',
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
const colorStatusDictionary = [
|
|
15
|
+
'error',
|
|
16
|
+
'info',
|
|
17
|
+
'success',
|
|
18
|
+
'warning',
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
colorLabelDictionary,
|
|
23
|
+
colorStatusDictionary,
|
|
24
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const typographyDictionary = [
|
|
2
|
+
'action',
|
|
3
|
+
'caption',
|
|
4
|
+
'code',
|
|
5
|
+
'detail',
|
|
6
|
+
'h1',
|
|
7
|
+
'h2',
|
|
8
|
+
'h3',
|
|
9
|
+
'h4',
|
|
10
|
+
'h5',
|
|
11
|
+
'h6',
|
|
12
|
+
'hack',
|
|
13
|
+
'label',
|
|
14
|
+
'option',
|
|
15
|
+
'paragraph',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
const typographyMonoDictionary = [
|
|
19
|
+
'code',
|
|
20
|
+
'hack',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
const typographyPrimaryDictionary = [
|
|
24
|
+
'action',
|
|
25
|
+
'h1',
|
|
26
|
+
'h2',
|
|
27
|
+
'h3',
|
|
28
|
+
'h4',
|
|
29
|
+
'h5',
|
|
30
|
+
'h6',
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
const typographySecondaryDictionary = [
|
|
34
|
+
'caption',
|
|
35
|
+
'detail',
|
|
36
|
+
'label',
|
|
37
|
+
'option',
|
|
38
|
+
'paragraph',
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
typographyDictionary,
|
|
43
|
+
typographyMonoDictionary,
|
|
44
|
+
typographyPrimaryDictionary,
|
|
45
|
+
typographySecondaryDictionary,
|
|
46
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const themeVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'success',
|
|
7
|
+
'warning',
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
const themeLuminanceVariantDictionary = [
|
|
11
|
+
'dark',
|
|
12
|
+
'light',
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
const themeStatusVariantDictionary = [
|
|
16
|
+
'error',
|
|
17
|
+
'info',
|
|
18
|
+
'success',
|
|
19
|
+
'warning',
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
const themeFullVariantDictionary = [
|
|
23
|
+
'amaranth',
|
|
24
|
+
'aqua',
|
|
25
|
+
'blue',
|
|
26
|
+
'dark',
|
|
27
|
+
'error',
|
|
28
|
+
'green',
|
|
29
|
+
'info',
|
|
30
|
+
'light',
|
|
31
|
+
'lime',
|
|
32
|
+
'orange',
|
|
33
|
+
'orchid',
|
|
34
|
+
'sky',
|
|
35
|
+
'success',
|
|
36
|
+
'violet',
|
|
37
|
+
'warning',
|
|
38
|
+
'yellow',
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
const themeLabelVariantDictionary = [
|
|
42
|
+
'amaranth',
|
|
43
|
+
'aqua',
|
|
44
|
+
'blue',
|
|
45
|
+
'green',
|
|
46
|
+
'lime',
|
|
47
|
+
'orange',
|
|
48
|
+
'orchid',
|
|
49
|
+
'sky',
|
|
50
|
+
'violet',
|
|
51
|
+
'yellow',
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
const toneVariantDictionary = [
|
|
55
|
+
'strong',
|
|
56
|
+
'weak',
|
|
57
|
+
'ghost',
|
|
58
|
+
'quiet',
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
const toneSimpleVariantDictionary = [
|
|
62
|
+
'strong',
|
|
63
|
+
'weak',
|
|
64
|
+
'quiet',
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
const toneMinimalVariantDictionary = [
|
|
68
|
+
'strong',
|
|
69
|
+
'weak',
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
themeFullVariantDictionary,
|
|
74
|
+
themeLabelVariantDictionary,
|
|
75
|
+
themeLuminanceVariantDictionary,
|
|
76
|
+
themeStatusVariantDictionary,
|
|
77
|
+
themeVariantDictionary,
|
|
78
|
+
toneMinimalVariantDictionary,
|
|
79
|
+
toneSimpleVariantDictionary,
|
|
80
|
+
toneVariantDictionary,
|
|
81
|
+
}
|