material 1.0.2 → 1.0.4

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/eslint.config.js DELETED
@@ -1,63 +0,0 @@
1
- import js from '@eslint/js'
2
- import globals from 'globals'
3
-
4
- export default [
5
- // Base configuration
6
- js.configs.recommended,
7
-
8
- // Standard JS configuration for material library
9
- {
10
- languageOptions: {
11
- ecmaVersion: 2022,
12
- sourceType: 'module',
13
- globals: {
14
- ...globals.browser,
15
- ...globals.es2021,
16
- // Material library specific globals
17
- log: 'readonly',
18
- document: 'readonly',
19
- window: 'readonly',
20
- navigator: 'readonly',
21
- Element: 'readonly',
22
- HTMLElement: 'readonly',
23
- Event: 'readonly',
24
- EventTarget: 'readonly',
25
- CustomEvent: 'readonly',
26
- localStorage: 'readonly',
27
- sessionStorage: 'readonly',
28
- requestAnimationFrame: 'readonly',
29
- cancelAnimationFrame: 'readonly'
30
- }
31
- },
32
- rules: {
33
- // Standard JS rules - core formatting
34
- 'no-var': 'error',
35
- 'prefer-const': 'error',
36
- 'semi': ['error', 'never'],
37
- 'quotes': ['error', 'single', { avoidEscape: true }],
38
- 'space-before-function-paren': ['error', 'always'],
39
- 'object-curly-spacing': ['error', 'always'],
40
- 'comma-spacing': ['error', { before: false, after: true }],
41
- 'key-spacing': ['error', { beforeColon: false, afterColon: true }],
42
- 'no-trailing-spaces': 'error',
43
- 'eol-last': 'error',
44
- 'no-multiple-empty-lines': ['error', { max: 1 }],
45
- 'indent': ['error', 2],
46
- 'comma-dangle': ['error', 'never'],
47
- 'space-infix-ops': 'error',
48
- 'keyword-spacing': ['error', { before: true, after: true }],
49
- 'space-before-blocks': 'error',
50
- 'arrow-spacing': ['error', { before: true, after: true }]
51
- }
52
- },
53
-
54
- // Ignore patterns
55
- {
56
- ignores: [
57
- 'node_modules/**',
58
- 'dist/**',
59
- 'build/**',
60
- '*.min.js'
61
- ]
62
- }
63
- ]
package/index.d.ts DELETED
@@ -1,77 +0,0 @@
1
- declare module "material" {
2
- // Base classes
3
- export class Component {
4
- constructor(options?: any);
5
- options: any;
6
- element: HTMLElement;
7
- ui: any;
8
- underlay?: HTMLElement;
9
- position(target: HTMLElement): void;
10
- destroy(): Promise<void>;
11
- static defaults: any;
12
- }
13
-
14
- export class Control extends Component {}
15
-
16
- export class Element {
17
- constructor(options?: any);
18
- static isElement(): boolean;
19
- }
20
-
21
- // Components
22
- export class AppBar extends Component {}
23
- export class Badge extends Component {}
24
- export class Button extends Component {}
25
- export class Card extends Component {}
26
- export class Checkbox extends Component {}
27
- export class ColorPicker extends Component {}
28
- export class DateHour extends Component {}
29
- export class Dialog extends Component {}
30
- export class Drawer extends Component {}
31
- export class File extends Component {}
32
- export class Form extends Component {}
33
- export class Image extends Component {}
34
- export class List extends Component {}
35
- export class Loading extends Component {}
36
- export class Menu extends Component {}
37
- export class Navigation extends Component {}
38
- export class Progress extends Component {}
39
- export class Select extends Component {}
40
- export class Selecter extends Component {}
41
- export class Snackbar extends Component {}
42
- export class Slider extends Component {}
43
- export class Switch extends Component {}
44
- export class Switcher extends Component {}
45
- export class Tabs extends Component {}
46
- export class TabView extends Component {}
47
- export class Text extends Component {}
48
- export class Textfield extends Component {}
49
- export class Toolbar extends Component {}
50
- export class Tooltip extends Component {}
51
- export class View extends Component {}
52
-
53
- // Mixins
54
- export const EventEmitter: any;
55
- export const display: any;
56
- export const build: any;
57
- export const position: {
58
- position(target: HTMLElement, position?: any): any;
59
- };
60
-
61
- // Modules
62
- export const attributes: any;
63
- export const clone: any;
64
- export const create: any;
65
- export const dataset: any;
66
- export const device: any;
67
- export const emitter: any;
68
- export const events: any;
69
- export const jsonToHTML: any;
70
- export const mediator: any;
71
- export const merge: any;
72
- export const observer: any;
73
- export const request: any;
74
- export const ripple: any;
75
- export const smoothscroll: any;
76
- export function touch(): boolean;
77
- }