@francofantomius/material-components 0.1.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/LICENSE +22 -0
- package/README.md +192 -0
- package/custom-elements.json +5448 -0
- package/dist/chunks/base-component-DQTjlEVL.js +34 -0
- package/dist/chunks/base-component-DQTjlEVL.js.map +1 -0
- package/dist/chunks/focus-ring-Dl-XoEKK.js +71 -0
- package/dist/chunks/focus-ring-Dl-XoEKK.js.map +1 -0
- package/dist/chunks/form-associated-fKbeX_2P.js +74 -0
- package/dist/chunks/form-associated-fKbeX_2P.js.map +1 -0
- package/dist/chunks/theme.css-DV3DRha-.js +263 -0
- package/dist/chunks/theme.css-DV3DRha-.js.map +1 -0
- package/dist/components/badge/badge.css.d.ts +2 -0
- package/dist/components/badge/badge.css.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +16 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +93 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/button/button.css.d.ts +2 -0
- package/dist/components/button/button.css.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +25 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +263 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/card/card.css.d.ts +2 -0
- package/dist/components/card/card.css.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +18 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +169 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.css.d.ts +2 -0
- package/dist/components/checkbox/checkbox.css.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +24 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +188 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/chip/chip.css.d.ts +3 -0
- package/dist/components/chip/chip.css.d.ts.map +1 -0
- package/dist/components/chip/chip.d.ts +27 -0
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +174 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/dialog/dialog.css.d.ts +2 -0
- package/dist/components/dialog/dialog.css.d.ts.map +1 -0
- package/dist/components/dialog/dialog.d.ts +22 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +167 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/divider/divider.css.d.ts +2 -0
- package/dist/components/divider/divider.css.d.ts.map +1 -0
- package/dist/components/divider/divider.d.ts +16 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/divider.js +81 -0
- package/dist/components/divider/divider.js.map +1 -0
- package/dist/components/fab/fab.css.d.ts +2 -0
- package/dist/components/fab/fab.css.d.ts.map +1 -0
- package/dist/components/fab/fab.d.ts +19 -0
- package/dist/components/fab/fab.d.ts.map +1 -0
- package/dist/components/fab/fab.js +155 -0
- package/dist/components/fab/fab.js.map +1 -0
- package/dist/components/icon/icon.css.d.ts +2 -0
- package/dist/components/icon/icon.css.d.ts.map +1 -0
- package/dist/components/icon/icon.d.ts +15 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +70 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon-button/icon-button.css.d.ts +2 -0
- package/dist/components/icon-button/icon-button.css.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.d.ts +22 -0
- package/dist/components/icon-button/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.js +192 -0
- package/dist/components/icon-button/icon-button.js.map +1 -0
- package/dist/components/list/list.css.d.ts +3 -0
- package/dist/components/list/list.css.d.ts.map +1 -0
- package/dist/components/list/list.d.ts +25 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +190 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/progress/progress.css.d.ts +2 -0
- package/dist/components/progress/progress.css.d.ts.map +1 -0
- package/dist/components/progress/progress.d.ts +19 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +183 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/radio/radio.css.d.ts +3 -0
- package/dist/components/radio/radio.css.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +38 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.js +205 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/snackbar/snackbar.css.d.ts +2 -0
- package/dist/components/snackbar/snackbar.css.d.ts.map +1 -0
- package/dist/components/snackbar/snackbar.d.ts +24 -0
- package/dist/components/snackbar/snackbar.d.ts.map +1 -0
- package/dist/components/snackbar/snackbar.js +164 -0
- package/dist/components/snackbar/snackbar.js.map +1 -0
- package/dist/components/switch/switch.css.d.ts +2 -0
- package/dist/components/switch/switch.css.d.ts.map +1 -0
- package/dist/components/switch/switch.d.ts +22 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +171 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/tabs/tabs.css.d.ts +3 -0
- package/dist/components/tabs/tabs.css.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +33 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +200 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/text-field/text-field.css.d.ts +2 -0
- package/dist/components/text-field/text-field.css.d.ts.map +1 -0
- package/dist/components/text-field/text-field.d.ts +40 -0
- package/dist/components/text-field/text-field.d.ts.map +1 -0
- package/dist/components/text-field/text-field.js +327 -0
- package/dist/components/text-field/text-field.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/base-component.d.ts +13 -0
- package/dist/internal/base-component.d.ts.map +1 -0
- package/dist/internal/focus-ring/focus-ring.css.d.ts +2 -0
- package/dist/internal/focus-ring/focus-ring.css.d.ts.map +1 -0
- package/dist/internal/focus-ring/focus-ring.d.ts +18 -0
- package/dist/internal/focus-ring/focus-ring.d.ts.map +1 -0
- package/dist/internal/form-associated.d.ts +26 -0
- package/dist/internal/form-associated.d.ts.map +1 -0
- package/dist/internal/ripple/ripple.css.d.ts +2 -0
- package/dist/internal/ripple/ripple.css.d.ts.map +1 -0
- package/dist/internal/ripple/ripple.d.ts +26 -0
- package/dist/internal/ripple/ripple.d.ts.map +1 -0
- package/dist/internal/ripple/ripple.js +144 -0
- package/dist/internal/ripple/ripple.js.map +1 -0
- package/dist/tokens/colors.d.ts +42 -0
- package/dist/tokens/colors.d.ts.map +1 -0
- package/dist/tokens/elevation.d.ts +9 -0
- package/dist/tokens/elevation.d.ts.map +1 -0
- package/dist/tokens/index.d.ts +7 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +13 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/motion.d.ts +21 -0
- package/dist/tokens/motion.d.ts.map +1 -0
- package/dist/tokens/shape.d.ts +10 -0
- package/dist/tokens/shape.d.ts.map +1 -0
- package/dist/tokens/theme.css.d.ts +4 -0
- package/dist/tokens/theme.css.d.ts.map +1 -0
- package/dist/tokens/typography.d.ts +101 -0
- package/dist/tokens/typography.d.ts.map +1 -0
- package/package.json +133 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface M3TypographyStyle {
|
|
2
|
+
fontFamily: string;
|
|
3
|
+
weight: number | string;
|
|
4
|
+
size: string;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
letterSpacing: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const typographyTokens: {
|
|
9
|
+
fontFamily: string;
|
|
10
|
+
displayLarge: {
|
|
11
|
+
size: string;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
letterSpacing: string;
|
|
14
|
+
weight: number;
|
|
15
|
+
};
|
|
16
|
+
displayMedium: {
|
|
17
|
+
size: string;
|
|
18
|
+
lineHeight: string;
|
|
19
|
+
letterSpacing: string;
|
|
20
|
+
weight: number;
|
|
21
|
+
};
|
|
22
|
+
displaySmall: {
|
|
23
|
+
size: string;
|
|
24
|
+
lineHeight: string;
|
|
25
|
+
letterSpacing: string;
|
|
26
|
+
weight: number;
|
|
27
|
+
};
|
|
28
|
+
headlineLarge: {
|
|
29
|
+
size: string;
|
|
30
|
+
lineHeight: string;
|
|
31
|
+
letterSpacing: string;
|
|
32
|
+
weight: number;
|
|
33
|
+
};
|
|
34
|
+
headlineMedium: {
|
|
35
|
+
size: string;
|
|
36
|
+
lineHeight: string;
|
|
37
|
+
letterSpacing: string;
|
|
38
|
+
weight: number;
|
|
39
|
+
};
|
|
40
|
+
headlineSmall: {
|
|
41
|
+
size: string;
|
|
42
|
+
lineHeight: string;
|
|
43
|
+
letterSpacing: string;
|
|
44
|
+
weight: number;
|
|
45
|
+
};
|
|
46
|
+
titleLarge: {
|
|
47
|
+
size: string;
|
|
48
|
+
lineHeight: string;
|
|
49
|
+
letterSpacing: string;
|
|
50
|
+
weight: number;
|
|
51
|
+
};
|
|
52
|
+
titleMedium: {
|
|
53
|
+
size: string;
|
|
54
|
+
lineHeight: string;
|
|
55
|
+
letterSpacing: string;
|
|
56
|
+
weight: number;
|
|
57
|
+
};
|
|
58
|
+
titleSmall: {
|
|
59
|
+
size: string;
|
|
60
|
+
lineHeight: string;
|
|
61
|
+
letterSpacing: string;
|
|
62
|
+
weight: number;
|
|
63
|
+
};
|
|
64
|
+
bodyLarge: {
|
|
65
|
+
size: string;
|
|
66
|
+
lineHeight: string;
|
|
67
|
+
letterSpacing: string;
|
|
68
|
+
weight: number;
|
|
69
|
+
};
|
|
70
|
+
bodyMedium: {
|
|
71
|
+
size: string;
|
|
72
|
+
lineHeight: string;
|
|
73
|
+
letterSpacing: string;
|
|
74
|
+
weight: number;
|
|
75
|
+
};
|
|
76
|
+
bodySmall: {
|
|
77
|
+
size: string;
|
|
78
|
+
lineHeight: string;
|
|
79
|
+
letterSpacing: string;
|
|
80
|
+
weight: number;
|
|
81
|
+
};
|
|
82
|
+
labelLarge: {
|
|
83
|
+
size: string;
|
|
84
|
+
lineHeight: string;
|
|
85
|
+
letterSpacing: string;
|
|
86
|
+
weight: number;
|
|
87
|
+
};
|
|
88
|
+
labelMedium: {
|
|
89
|
+
size: string;
|
|
90
|
+
lineHeight: string;
|
|
91
|
+
letterSpacing: string;
|
|
92
|
+
weight: number;
|
|
93
|
+
};
|
|
94
|
+
labelSmall: {
|
|
95
|
+
size: string;
|
|
96
|
+
lineHeight: string;
|
|
97
|
+
letterSpacing: string;
|
|
98
|
+
weight: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB5B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@francofantomius/material-components",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Reusable, accessible, and lightweight Material Design 3 Web Components built with Lit.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"customElements": "custom-elements.json",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"custom-elements.json"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./theme": {
|
|
22
|
+
"types": "./dist/tokens/index.d.ts",
|
|
23
|
+
"import": "./dist/tokens/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./button": {
|
|
26
|
+
"types": "./dist/components/button/button.d.ts",
|
|
27
|
+
"import": "./dist/components/button/button.js"
|
|
28
|
+
},
|
|
29
|
+
"./icon-button": {
|
|
30
|
+
"types": "./dist/components/icon-button/icon-button.d.ts",
|
|
31
|
+
"import": "./dist/components/icon-button/icon-button.js"
|
|
32
|
+
},
|
|
33
|
+
"./fab": {
|
|
34
|
+
"types": "./dist/components/fab/fab.d.ts",
|
|
35
|
+
"import": "./dist/components/fab/fab.js"
|
|
36
|
+
},
|
|
37
|
+
"./icon": {
|
|
38
|
+
"types": "./dist/components/icon/icon.d.ts",
|
|
39
|
+
"import": "./dist/components/icon/icon.js"
|
|
40
|
+
},
|
|
41
|
+
"./text-field": {
|
|
42
|
+
"types": "./dist/components/text-field/text-field.d.ts",
|
|
43
|
+
"import": "./dist/components/text-field/text-field.js"
|
|
44
|
+
},
|
|
45
|
+
"./checkbox": {
|
|
46
|
+
"types": "./dist/components/checkbox/checkbox.d.ts",
|
|
47
|
+
"import": "./dist/components/checkbox/checkbox.js"
|
|
48
|
+
},
|
|
49
|
+
"./switch": {
|
|
50
|
+
"types": "./dist/components/switch/switch.d.ts",
|
|
51
|
+
"import": "./dist/components/switch/switch.js"
|
|
52
|
+
},
|
|
53
|
+
"./radio": {
|
|
54
|
+
"types": "./dist/components/radio/radio.d.ts",
|
|
55
|
+
"import": "./dist/components/radio/radio.js"
|
|
56
|
+
},
|
|
57
|
+
"./card": {
|
|
58
|
+
"types": "./dist/components/card/card.d.ts",
|
|
59
|
+
"import": "./dist/components/card/card.js"
|
|
60
|
+
},
|
|
61
|
+
"./dialog": {
|
|
62
|
+
"types": "./dist/components/dialog/dialog.d.ts",
|
|
63
|
+
"import": "./dist/components/dialog/dialog.js"
|
|
64
|
+
},
|
|
65
|
+
"./divider": {
|
|
66
|
+
"types": "./dist/components/divider/divider.d.ts",
|
|
67
|
+
"import": "./dist/components/divider/divider.js"
|
|
68
|
+
},
|
|
69
|
+
"./progress": {
|
|
70
|
+
"types": "./dist/components/progress/progress.d.ts",
|
|
71
|
+
"import": "./dist/components/progress/progress.js"
|
|
72
|
+
},
|
|
73
|
+
"./badge": {
|
|
74
|
+
"types": "./dist/components/badge/badge.d.ts",
|
|
75
|
+
"import": "./dist/components/badge/badge.js"
|
|
76
|
+
},
|
|
77
|
+
"./chip": {
|
|
78
|
+
"types": "./dist/components/chip/chip.d.ts",
|
|
79
|
+
"import": "./dist/components/chip/chip.js"
|
|
80
|
+
},
|
|
81
|
+
"./tabs": {
|
|
82
|
+
"types": "./dist/components/tabs/tabs.d.ts",
|
|
83
|
+
"import": "./dist/components/tabs/tabs.js"
|
|
84
|
+
},
|
|
85
|
+
"./list": {
|
|
86
|
+
"types": "./dist/components/list/list.d.ts",
|
|
87
|
+
"import": "./dist/components/list/list.js"
|
|
88
|
+
},
|
|
89
|
+
"./snackbar": {
|
|
90
|
+
"types": "./dist/components/snackbar/snackbar.d.ts",
|
|
91
|
+
"import": "./dist/components/snackbar/snackbar.js"
|
|
92
|
+
},
|
|
93
|
+
"./ripple": {
|
|
94
|
+
"types": "./dist/internal/ripple/ripple.d.ts",
|
|
95
|
+
"import": "./dist/internal/ripple/ripple.js"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"dev": "vite",
|
|
100
|
+
"build": "tsc && vite build && npm run analyze",
|
|
101
|
+
"typecheck": "tsc --noEmit",
|
|
102
|
+
"test": "vitest run",
|
|
103
|
+
"test:watch": "vitest",
|
|
104
|
+
"analyze": "cem analyze --litelement",
|
|
105
|
+
"docs:dev": "vitepress dev docs",
|
|
106
|
+
"docs:build": "vitepress build docs",
|
|
107
|
+
"docs:preview": "vitepress preview docs",
|
|
108
|
+
"prepublishOnly": "npm run typecheck && npm run test && npm run build"
|
|
109
|
+
},
|
|
110
|
+
"keywords": [
|
|
111
|
+
"material-design",
|
|
112
|
+
"material-3",
|
|
113
|
+
"web-components",
|
|
114
|
+
"lit",
|
|
115
|
+
"custom-elements",
|
|
116
|
+
"ui-library",
|
|
117
|
+
"components"
|
|
118
|
+
],
|
|
119
|
+
"author": "francofantomius",
|
|
120
|
+
"license": "MIT",
|
|
121
|
+
"dependencies": {
|
|
122
|
+
"lit": "^3.2.1"
|
|
123
|
+
},
|
|
124
|
+
"devDependencies": {
|
|
125
|
+
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
126
|
+
"happy-dom": "^15.11.7",
|
|
127
|
+
"typescript": "^5.6.3",
|
|
128
|
+
"vite": "^6.0.1",
|
|
129
|
+
"vite-plugin-dts": "^4.3.0",
|
|
130
|
+
"vitepress": "^1.6.4",
|
|
131
|
+
"vitest": "^2.1.8"
|
|
132
|
+
}
|
|
133
|
+
}
|