@materializecss/materialize 2.0.2-alpha → 2.0.3-beta
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/Gruntfile.js +14 -109
- package/README.md +1 -1
- package/dist/css/materialize.css +1658 -353
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +42 -30
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/autocomplete.d.ts +143 -0
- package/dist/src/autocomplete.d.ts.map +1 -0
- package/dist/src/bounding.d.ts +7 -0
- package/dist/src/bounding.d.ts.map +1 -0
- package/dist/src/buttons.d.ts +65 -0
- package/dist/src/buttons.d.ts.map +1 -0
- package/dist/src/cards.d.ts +4 -0
- package/dist/src/cards.d.ts.map +1 -0
- package/dist/src/carousel.d.ts +131 -0
- package/dist/src/carousel.d.ts.map +1 -0
- package/dist/src/characterCounter.d.ts +37 -0
- package/dist/src/characterCounter.d.ts.map +1 -0
- package/dist/src/chips.d.ts +131 -0
- package/dist/src/chips.d.ts.map +1 -0
- package/dist/src/collapsible.d.ts +74 -0
- package/dist/src/collapsible.d.ts.map +1 -0
- package/dist/src/component.d.ts +74 -0
- package/dist/src/component.d.ts.map +1 -0
- package/dist/src/datepicker.d.ts +248 -0
- package/dist/src/datepicker.d.ts.map +1 -0
- package/dist/src/dropdown.d.ts +148 -0
- package/dist/src/dropdown.d.ts.map +1 -0
- package/dist/src/edges.d.ts +7 -0
- package/dist/src/edges.d.ts.map +1 -0
- package/dist/src/forms.d.ts +12 -0
- package/dist/src/forms.d.ts.map +1 -0
- package/dist/src/global.d.ts +60 -0
- package/dist/src/global.d.ts.map +1 -0
- package/dist/src/index.d.ts +27 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/materialbox.d.ts +92 -0
- package/dist/src/materialbox.d.ts.map +1 -0
- package/dist/src/modal.d.ts +119 -0
- package/dist/src/modal.d.ts.map +1 -0
- package/dist/src/parallax.d.ts +40 -0
- package/dist/src/parallax.d.ts.map +1 -0
- package/dist/src/pushpin.d.ts +52 -0
- package/dist/src/pushpin.d.ts.map +1 -0
- package/dist/src/range.d.ts +41 -0
- package/dist/src/range.d.ts.map +1 -0
- package/dist/src/scrollspy.d.ts +62 -0
- package/dist/src/scrollspy.d.ts.map +1 -0
- package/dist/src/select.d.ts +77 -0
- package/dist/src/select.d.ts.map +1 -0
- package/dist/src/sidenav.d.ts +122 -0
- package/dist/src/sidenav.d.ts.map +1 -0
- package/dist/src/slider.d.ts +103 -0
- package/dist/src/slider.d.ts.map +1 -0
- package/dist/src/tabs.d.ts +80 -0
- package/dist/src/tabs.d.ts.map +1 -0
- package/dist/src/tapTarget.d.ts +59 -0
- package/dist/src/tapTarget.d.ts.map +1 -0
- package/dist/src/timepicker.d.ts +208 -0
- package/dist/src/timepicker.d.ts.map +1 -0
- package/dist/src/toasts.d.ts +90 -0
- package/dist/src/toasts.d.ts.map +1 -0
- package/dist/src/tooltip.d.ts +118 -0
- package/dist/src/tooltip.d.ts.map +1 -0
- package/dist/src/utils.d.ts +97 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/waves.d.ts +16 -0
- package/dist/src/waves.d.ts.map +1 -0
- package/package.json +4 -4
- package/sass/components/_buttons.scss +158 -73
- package/sass/components/_cards.scss +1 -1
- package/sass/components/_chips.scss +75 -28
- package/sass/components/_global.scss +56 -94
- package/sass/components/_grid.scss +28 -47
- package/sass/components/_navbar.scss +26 -26
- package/sass/components/_preloader.scss +85 -0
- package/sass/components/_pulse.scss +1 -0
- package/sass/components/_sidenav.scss +3 -14
- package/sass/components/_theme_variables.scss +27 -47
- package/sass/components/_variables.scss +5 -2
- package/sass/components/colors.module.scss +180 -0
- package/sass/components/forms/_range.scss +1 -1
- package/sass/components/forms/_switches.scss +44 -14
- package/sass/components/theme.dark.module.scss +32 -0
- package/sass/components/theme.light.module.scss +32 -0
- package/sass/components/tokens.module.scss +272 -0
- package/sass/components/typography.module.scss +150 -0
- package/sass/materialize.scss +7 -1
- package/src/carousel.ts +1 -1
- package/src/chips.ts +1 -1
- package/src/datepicker.ts +5 -5
- package/src/dropdown.ts +0 -3
- package/src/forms.ts +20 -11
- package/src/global.ts +21 -23
- package/src/index.ts +26 -0
- package/src/select.ts +1 -1
- package/src/timepicker.ts +1 -1
- package/src/tooltip.ts +28 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7E,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAcD,qBAAa,OAAQ,SAAQ,SAAS,CAAC,cAAc,CAAC;IACpD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,CAAC,iBAAiB,CAAmC;IAC5D,OAAO,CAAC,kBAAkB,CAAmC;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;gBAEN,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC;IAiB7D,MAAM,KAAK,QAAQ,IAAI,cAAc,CAEpC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO;IACxE;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,EAAE;IAUtF,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO;IAI5C,OAAO;IAMP,gBAAgB;IAgBhB,kBAAkB,CAAC,gBAAgB,EAAE,WAAW;IAMhD,qBAAqB;IAIrB,mBAAmB;IAOnB,oBAAoB;IAOpB;;OAEG;IACH,IAAI,aAAc,OAAO,UAQxB;IAED;;OAEG;IACH,KAAK,aAMJ;IAED,oBAAoB;IAQpB,qBAAqB,CAAC,QAAQ,KAAA;IAQ9B,gBAAgB;IA0ChB,uBAAuB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;IA+B3E,UAAU;IAcV,WAAW;IAYX,iBAAiB,aAIhB;IAED,iBAAiB,aAIhB;IAED,YAAY,aAKX;IAED,WAAW,aAGV;IAED,oBAAoB,IAAI,OAAO,CAAC,cAAc,CAAC;CAiBhD"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Edges } from './edges';
|
|
2
|
+
import { Bounding } from './bounding';
|
|
3
|
+
/**
|
|
4
|
+
* Class with utilitary functions for global usage.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Utils {
|
|
7
|
+
/** Specifies wether tab is pressed or not. */
|
|
8
|
+
static tabPressed: boolean;
|
|
9
|
+
/** Specifies wether there is a key pressed. */
|
|
10
|
+
static keyDown: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Key maps.
|
|
13
|
+
*/
|
|
14
|
+
static keys: {
|
|
15
|
+
TAB: string[];
|
|
16
|
+
ENTER: string[];
|
|
17
|
+
ESC: string[];
|
|
18
|
+
BACKSPACE: string[];
|
|
19
|
+
ARROW_UP: string[];
|
|
20
|
+
ARROW_DOWN: string[];
|
|
21
|
+
ARROW_LEFT: string[];
|
|
22
|
+
ARROW_RIGHT: string[];
|
|
23
|
+
DELETE: string[];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Detects when a key is pressed.
|
|
27
|
+
* @param e Event instance.
|
|
28
|
+
*/
|
|
29
|
+
static docHandleKeydown(e: KeyboardEvent): void;
|
|
30
|
+
/**
|
|
31
|
+
* Detects when a key is released.
|
|
32
|
+
* @param e Event instance.
|
|
33
|
+
*/
|
|
34
|
+
static docHandleKeyup(e: KeyboardEvent): void;
|
|
35
|
+
/**
|
|
36
|
+
* Detects when document is focused.
|
|
37
|
+
* @param e Event instance.
|
|
38
|
+
*/
|
|
39
|
+
static docHandleFocus(e: FocusEvent): void;
|
|
40
|
+
/**
|
|
41
|
+
* Detects when document is not focused.
|
|
42
|
+
* @param e Event instance.
|
|
43
|
+
*/
|
|
44
|
+
static docHandleBlur(e: FocusEvent): void;
|
|
45
|
+
/**
|
|
46
|
+
* Generates a unique string identifier.
|
|
47
|
+
*/
|
|
48
|
+
static guid(): string;
|
|
49
|
+
/**
|
|
50
|
+
* Checks for exceeded edges
|
|
51
|
+
* @param container Container element.
|
|
52
|
+
* @param bounding Bounding rect.
|
|
53
|
+
* @param offset Element offset.
|
|
54
|
+
*/
|
|
55
|
+
static checkWithinContainer(container: HTMLElement, bounding: Bounding, offset: number): Edges;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if element can be aligned in multiple directions.
|
|
58
|
+
* @param el Element to be inspected.
|
|
59
|
+
* @param container Container element.
|
|
60
|
+
* @param bounding Bounding rect.
|
|
61
|
+
* @param offset Element offset.
|
|
62
|
+
*/
|
|
63
|
+
static checkPossibleAlignments(el: HTMLElement, container: HTMLElement, bounding: Bounding, offset: number): {
|
|
64
|
+
top: boolean;
|
|
65
|
+
right: boolean;
|
|
66
|
+
bottom: boolean;
|
|
67
|
+
left: boolean;
|
|
68
|
+
spaceOnTop: number;
|
|
69
|
+
spaceOnRight: number;
|
|
70
|
+
spaceOnBottom: number;
|
|
71
|
+
spaceOnLeft: number;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves target element id from trigger.
|
|
75
|
+
* @param trigger Trigger element.
|
|
76
|
+
*/
|
|
77
|
+
static getIdFromTrigger(trigger: HTMLElement): string;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves document scroll postion from top.
|
|
80
|
+
*/
|
|
81
|
+
static getDocumentScrollTop(): number;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves document scroll postion from left.
|
|
84
|
+
*/
|
|
85
|
+
static getDocumentScrollLeft(): number;
|
|
86
|
+
/**
|
|
87
|
+
* Fires the given function after a certain ammount of time.
|
|
88
|
+
* @param func Function to be fired.
|
|
89
|
+
* @param wait Wait time.
|
|
90
|
+
* @param options Additional options.
|
|
91
|
+
*/
|
|
92
|
+
static throttle(func: Function, wait: number, options?: Partial<{
|
|
93
|
+
leading: boolean;
|
|
94
|
+
trailing: boolean;
|
|
95
|
+
}>): () => any;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,qBAAa,KAAK;IAChB,8CAA8C;IAC9C,MAAM,CAAC,UAAU,EAAE,OAAO,CAAS;IACnC,+CAA+C;IAC/C,MAAM,CAAC,OAAO,EAAE,OAAO,CAAS;IAEhC;;OAEG;IACH,MAAM,CAAC,IAAI;;;;;;;;;;MAUT;IAEF;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,aAAa;IAOxC;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAOtC;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,UAAU;IAMnC;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,UAAU;IAIlC;;OAEG;IACH,MAAM,CAAC,IAAI,IAAI,MAAM;IASrB;;;;;OAKG;IACH,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK;IA+C9F;;;;;;OAMG;IACH,MAAM,CAAC,uBAAuB,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;aAEjG,OAAO;eACL,OAAO;gBACN,OAAO;cACT,OAAO;oBACD,MAAM;sBACJ,MAAM;uBACL,MAAM;qBACR,MAAM;;IA4DvB;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM;IASrD;;OAEG;IACH,MAAM,CAAC,oBAAoB,IAAI,MAAM;IAIrC;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,MAAM;IAItC;;;;;OAKG;WACW,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,OAAO,CAAC;QAAC,OAAO,EAAC,OAAO,CAAC;QAAA,QAAQ,EAAC,OAAO,CAAA;KAAC,CAAQ;CA6BjH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type RGBColor = {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
};
|
|
6
|
+
type Position = {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export declare class Waves {
|
|
11
|
+
private static _offset;
|
|
12
|
+
static renderWaveEffect(targetElement: HTMLElement, position?: Position | null, color?: RGBColor | null): void;
|
|
13
|
+
static Init(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=waves.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waves.d.ts","sourceRoot":"","sources":["../../src/waves.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAA;AAED,KAAK,QAAQ,GAAG;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAA;AAED,qBAAa,KAAK;IAEhB,OAAO,CAAC,MAAM,CAAC,OAAO;WAWR,gBAAgB,CAAC,aAAa,EAAE,WAAW,EAAE,QAAQ,GAAE,QAAQ,GAAC,IAAW,EAAE,KAAK,GAAE,QAAQ,GAAC,IAAW,GAAG,IAAI;IAyB7H,MAAM,CAAC,IAAI;CAoBZ"}
|
package/package.json
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
"description": "Builds Materialize distribution packages",
|
|
4
4
|
"author": "Alvin Wang, Alan Chang",
|
|
5
5
|
"homepage": "https://materializecss.github.io/materialize/",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.3-beta",
|
|
7
7
|
"main": "dist/js/materialize.js",
|
|
8
|
+
"module": "src/index.ts",
|
|
8
9
|
"style": "dist/css/materialize.css",
|
|
9
10
|
"sass": "sass/materialize.scss",
|
|
11
|
+
"typings": "dist/src/index.d.ts",
|
|
10
12
|
"license": "MIT",
|
|
11
13
|
"repository": {
|
|
12
14
|
"type": "git",
|
|
@@ -21,7 +23,6 @@
|
|
|
21
23
|
"release": "grunt release",
|
|
22
24
|
"watch": "webpack --watch",
|
|
23
25
|
"precommit": "lint-staged",
|
|
24
|
-
"docs": "grunt docs",
|
|
25
26
|
"commit": "npx cz",
|
|
26
27
|
"_postinstall": "husky install",
|
|
27
28
|
"prepack": "pinst --disable",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@commitlint/cli": "^17.0.3",
|
|
39
40
|
"@commitlint/config-conventional": "^17.0.3",
|
|
41
|
+
"@types/node": "^20.5.2",
|
|
40
42
|
"autoprefixer": "^7.1.1",
|
|
41
43
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
42
44
|
"babel-preset-es2015": "^6.24.1",
|
|
@@ -48,9 +50,7 @@
|
|
|
48
50
|
"grunt-concurrent": "^3.0.0",
|
|
49
51
|
"grunt-contrib-compress": "^1.4.1",
|
|
50
52
|
"grunt-contrib-connect": "^3.0.0",
|
|
51
|
-
"grunt-contrib-copy": "^1.0.0",
|
|
52
53
|
"grunt-contrib-jasmine": "^3.0.0",
|
|
53
|
-
"grunt-contrib-pug": "^3.0.0",
|
|
54
54
|
"grunt-contrib-watch": "^1.0.0",
|
|
55
55
|
"grunt-postcss": "^0.9.0",
|
|
56
56
|
"grunt-remove-logging": "^0.2.0",
|
|
@@ -1,18 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
display: inline-block;
|
|
1
|
+
.btn, .btn-floating, .btn-large, .btn-small, .btn-flat {
|
|
2
|
+
--font-size-icon: 16px;
|
|
3
|
+
--padding: 24px;
|
|
4
|
+
--padding-icon: 16px;
|
|
5
|
+
--gap-icon: 8px;
|
|
6
|
+
|
|
8
7
|
height: $button-height;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
|
|
9
|
+
// line-height: $button-height;
|
|
10
|
+
border: $button-border;
|
|
11
|
+
border-radius: $button-radius;
|
|
12
|
+
|
|
13
|
+
// padding: $button-padding;
|
|
14
|
+
padding-left: var(--padding);
|
|
15
|
+
padding-right: var(--padding);
|
|
16
|
+
|
|
17
|
+
color: $button-raised-color;
|
|
18
|
+
font-size: $button-font-size;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
cursor: pointer;
|
|
13
26
|
-webkit-tap-highlight-color: transparent; // Gets rid of tap active state
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
outline: 0;
|
|
29
|
+
user-select: none;
|
|
30
|
+
|
|
31
|
+
transition: background-color .2s ease-out;
|
|
14
32
|
}
|
|
15
33
|
|
|
34
|
+
// Icon
|
|
35
|
+
.btn.icon-left, .btn.icon-right {
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
.btn.icon-left {
|
|
39
|
+
padding-left: calc(var(--padding-icon) + var(--font-size-icon) + var(--gap-icon));
|
|
40
|
+
}
|
|
41
|
+
.btn.icon-right {
|
|
42
|
+
padding-right: calc(var(--padding-icon) + var(--font-size-icon) + var(--gap-icon));
|
|
43
|
+
}
|
|
44
|
+
.btn.icon-left i, .btn.icon-right i {
|
|
45
|
+
position: absolute;
|
|
46
|
+
font-size: var(--font-size-icon);
|
|
47
|
+
}
|
|
48
|
+
.btn.icon-left i {
|
|
49
|
+
left: var(--padding-icon);
|
|
50
|
+
}
|
|
51
|
+
.btn.icon-right i {
|
|
52
|
+
right: var(--padding-icon);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
16
56
|
// Disabled shared style
|
|
17
57
|
.btn.disabled,
|
|
18
58
|
.btn-floating.disabled,
|
|
@@ -40,53 +80,103 @@
|
|
|
40
80
|
}
|
|
41
81
|
}
|
|
42
82
|
|
|
43
|
-
|
|
44
|
-
.btn
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.btn
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
83
|
+
//--- Filled Button
|
|
84
|
+
.btn.filled {
|
|
85
|
+
background-color: var(--md-sys-color-primary);
|
|
86
|
+
}
|
|
87
|
+
//--- Filled Tonal
|
|
88
|
+
.btn.tonal {
|
|
89
|
+
background-color: var(--md-sys-color-secondary-container);
|
|
90
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
91
|
+
}
|
|
92
|
+
//--- Text-Button (Flat)
|
|
93
|
+
.btn.text, .btn-flat {
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
color: var(--md-sys-color-primary);
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
transition: background-color .2s;
|
|
99
|
+
&:focus,
|
|
100
|
+
&:hover {
|
|
101
|
+
box-shadow: none;
|
|
102
|
+
background-color: $button-flat-hover-background-color;
|
|
103
|
+
}
|
|
104
|
+
&:focus {
|
|
105
|
+
background-color: $button-flat-focus-background-color;
|
|
106
|
+
}
|
|
107
|
+
&.disabled,
|
|
108
|
+
&.btn.text[disabled], &.btn-flat[disabled] {
|
|
109
|
+
background-color: transparent !important;
|
|
110
|
+
color: $button-flat-disabled-color !important;
|
|
111
|
+
cursor: default;
|
|
54
112
|
}
|
|
55
113
|
}
|
|
114
|
+
//--- Outlined-Button
|
|
115
|
+
.btn.outlined {
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
color: $button-raised-background;
|
|
118
|
+
border: 1px solid $button-raised-background;
|
|
119
|
+
}
|
|
120
|
+
//--- Elevated
|
|
121
|
+
.btn.elevated {
|
|
122
|
+
@extend .tonal;
|
|
123
|
+
@extend .z-depth-1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
//======================== States (Hover, Focused, ...)
|
|
56
128
|
|
|
57
|
-
// Raised Button
|
|
58
129
|
.btn {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
background-color: $button-raised-background;
|
|
62
|
-
text-align: center;
|
|
63
|
-
letter-spacing: .5px;
|
|
64
|
-
@extend .z-depth-1;
|
|
65
|
-
transition: background-color .2s ease-out;
|
|
66
|
-
cursor: pointer;
|
|
130
|
+
@extend .filled;
|
|
131
|
+
|
|
67
132
|
&:hover {
|
|
68
133
|
background-color: $button-raised-background-hover;
|
|
69
134
|
@extend .z-depth-1-half;
|
|
70
135
|
}
|
|
136
|
+
|
|
71
137
|
&:focus {
|
|
72
138
|
background-color: $button-raised-background-focus;
|
|
73
139
|
@extend .z-depth-1-half;
|
|
74
|
-
}
|
|
140
|
+
}
|
|
75
141
|
}
|
|
76
142
|
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
//----------
|
|
146
|
+
// .btn-floating {
|
|
147
|
+
// border-radius: 16px;
|
|
148
|
+
// width: unset;
|
|
149
|
+
// display: grid;
|
|
150
|
+
// grid-auto-flow: column;
|
|
151
|
+
// align-items: center;
|
|
152
|
+
// padding: 16px !important;
|
|
153
|
+
// padding-right: 24px !important; /* only with icon */
|
|
154
|
+
// gap: 8px;
|
|
155
|
+
// }
|
|
156
|
+
// .btn-floating.btn-large {
|
|
157
|
+
// width: unset;
|
|
158
|
+
// }
|
|
159
|
+
// .btn-large {
|
|
160
|
+
// font-size: 14px;
|
|
161
|
+
// }
|
|
162
|
+
//-----
|
|
77
163
|
// Floating button
|
|
78
164
|
.btn-floating {
|
|
165
|
+
|
|
79
166
|
&:hover {
|
|
80
167
|
background-color: $button-floating-background-hover;
|
|
81
168
|
@extend .z-depth-1-half;
|
|
82
169
|
}
|
|
170
|
+
|
|
83
171
|
&:focus {
|
|
84
172
|
background-color: $button-floating-background-focus;
|
|
85
173
|
@extend .z-depth-1-half;
|
|
86
174
|
}
|
|
175
|
+
|
|
87
176
|
&:before {
|
|
88
177
|
border-radius: 0;
|
|
89
178
|
}
|
|
179
|
+
|
|
90
180
|
&.btn-large {
|
|
91
181
|
&.halfway-fab {
|
|
92
182
|
bottom: -$button-floating-large-size * 0.5;
|
|
@@ -94,9 +184,10 @@
|
|
|
94
184
|
width: $button-floating-large-size;
|
|
95
185
|
height: $button-floating-large-size;
|
|
96
186
|
padding: 0;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
187
|
+
// font-size:
|
|
188
|
+
// i {
|
|
189
|
+
// // line-height: $button-floating-large-size;
|
|
190
|
+
// }
|
|
100
191
|
}
|
|
101
192
|
|
|
102
193
|
&.btn-small {
|
|
@@ -105,9 +196,9 @@
|
|
|
105
196
|
}
|
|
106
197
|
width: $button-floating-small-size;
|
|
107
198
|
height: $button-floating-small-size;
|
|
108
|
-
i {
|
|
109
|
-
|
|
110
|
-
}
|
|
199
|
+
// i {
|
|
200
|
+
// line-height: $button-floating-small-size;
|
|
201
|
+
// }
|
|
111
202
|
}
|
|
112
203
|
|
|
113
204
|
&.halfway-fab {
|
|
@@ -119,36 +210,48 @@
|
|
|
119
210
|
right: 24px;
|
|
120
211
|
bottom: -$button-floating-size * 0.5;
|
|
121
212
|
}
|
|
122
|
-
|
|
213
|
+
|
|
214
|
+
// FIXES
|
|
215
|
+
// width: unset;
|
|
216
|
+
// padding: 16px !important;
|
|
217
|
+
// padding-right: 24px !important; /* only with icon */
|
|
218
|
+
// gap: 8px;
|
|
219
|
+
|
|
123
220
|
color: $button-floating-color;
|
|
124
|
-
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
z-index: 1;
|
|
221
|
+
|
|
127
222
|
width: $button-floating-size;
|
|
128
223
|
height: $button-floating-size;
|
|
129
|
-
line-height: $button-floating-size;
|
|
130
|
-
|
|
224
|
+
// line-height: $button-floating-size;
|
|
225
|
+
|
|
131
226
|
background-color: $button-floating-background;
|
|
132
227
|
border-radius: $button-floating-radius;
|
|
228
|
+
padding: 0;
|
|
229
|
+
|
|
230
|
+
display: grid;
|
|
231
|
+
grid-auto-flow: column;
|
|
232
|
+
align-items: center;
|
|
233
|
+
|
|
234
|
+
position: relative;
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
z-index: 1;
|
|
133
237
|
@extend .z-depth-1;
|
|
134
238
|
transition: background-color .3s;
|
|
135
239
|
cursor: pointer;
|
|
136
240
|
vertical-align: middle;
|
|
241
|
+
|
|
137
242
|
i {
|
|
243
|
+
color: $button-floating-color;
|
|
244
|
+
font-size: $button-large-icon-font-size;
|
|
245
|
+
// line-height: $button-floating-size;
|
|
138
246
|
width: inherit;
|
|
139
247
|
display: inline-block;
|
|
140
248
|
text-align: center;
|
|
141
|
-
color: $button-floating-color;
|
|
142
|
-
font-size: $button-large-icon-font-size;
|
|
143
|
-
line-height: $button-floating-size;
|
|
144
249
|
}
|
|
145
250
|
}
|
|
146
|
-
|
|
147
251
|
// button fix
|
|
148
252
|
button.btn-floating {
|
|
149
253
|
border: $button-border;
|
|
150
254
|
}
|
|
151
|
-
|
|
152
255
|
// Fixed Action Button
|
|
153
256
|
.fixed-action-btn {
|
|
154
257
|
&.active {
|
|
@@ -274,37 +377,15 @@ button.btn-floating {
|
|
|
274
377
|
}
|
|
275
378
|
}
|
|
276
379
|
|
|
277
|
-
|
|
278
|
-
.btn-flat {
|
|
279
|
-
box-shadow: none;
|
|
280
|
-
background-color: transparent;
|
|
281
|
-
color: $button-flat-color;
|
|
282
|
-
cursor: pointer;
|
|
283
|
-
transition: background-color .2s;
|
|
284
|
-
&:focus,
|
|
285
|
-
&:hover {
|
|
286
|
-
box-shadow: none;
|
|
287
|
-
background-color: $button-flat-hover-background-color;
|
|
288
|
-
}
|
|
289
|
-
&:focus {
|
|
290
|
-
background-color: $button-flat-focus-background-color;
|
|
291
|
-
}
|
|
292
|
-
&.disabled,
|
|
293
|
-
&.btn-flat[disabled] {
|
|
294
|
-
background-color: transparent !important;
|
|
295
|
-
color: $button-flat-disabled-color !important;
|
|
296
|
-
cursor: default;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
380
|
+
//--- Helper classes (for all)
|
|
299
381
|
|
|
300
382
|
// Large button
|
|
301
383
|
.btn-large {
|
|
302
384
|
@extend .btn;
|
|
303
385
|
height: $button-large-height;
|
|
304
|
-
line-height: $button-large-height;
|
|
386
|
+
// line-height: $button-large-height;
|
|
305
387
|
font-size: $button-large-font-size;
|
|
306
388
|
padding: 0 28px;
|
|
307
|
-
|
|
308
389
|
i {
|
|
309
390
|
font-size: $button-large-icon-font-size;
|
|
310
391
|
}
|
|
@@ -325,3 +406,7 @@ button.btn-floating {
|
|
|
325
406
|
.btn-block {
|
|
326
407
|
display: block;
|
|
327
408
|
}
|
|
409
|
+
|
|
410
|
+
.btn.rounded {
|
|
411
|
+
border-radius: 99999px;
|
|
412
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.card {
|
|
13
|
+
overflow: hidden;
|
|
13
14
|
position: relative;
|
|
14
15
|
//margin: $element-top-margin 0 $element-bottom-margin 0;
|
|
15
16
|
background-color: $card-bg-color;
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
border-radius: 12px;
|
|
18
19
|
@extend .z-depth-1;
|
|
19
20
|
|
|
20
|
-
|
|
21
21
|
.card-title {
|
|
22
22
|
font-size: 24px;
|
|
23
23
|
font-weight: 300;
|
|
@@ -1,45 +1,87 @@
|
|
|
1
1
|
.chip {
|
|
2
|
+
--font-size: 14px;
|
|
3
|
+
--font-size-icon: 18px;
|
|
4
|
+
--padding: 8px;
|
|
5
|
+
|
|
6
|
+
background-color: $chip-bg-color;
|
|
7
|
+
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
gap: 8px;
|
|
11
|
+
|
|
12
|
+
margin: 0;
|
|
13
|
+
height: 32px;
|
|
14
|
+
|
|
15
|
+
padding-left: var(--padding);
|
|
16
|
+
padding-right: var(--padding);
|
|
17
|
+
|
|
18
|
+
font-size: var(--font-size);
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
color: $chip-font-color;
|
|
21
|
+
|
|
22
|
+
border-radius: 8px;
|
|
23
|
+
|
|
24
|
+
align-items: center;
|
|
25
|
+
user-select: none;
|
|
26
|
+
vertical-align: top;
|
|
27
|
+
|
|
2
28
|
&:focus {
|
|
3
29
|
outline: none;
|
|
4
30
|
background-color: $chip-selected-color;
|
|
5
31
|
color: $chip-selected-font-color;
|
|
6
32
|
}
|
|
33
|
+
}
|
|
7
34
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
padding: 0 12px;
|
|
15
|
-
border-radius: 16px;
|
|
16
|
-
background-color: $chip-bg-color;
|
|
17
|
-
margin-bottom: $chip-margin;
|
|
18
|
-
margin-right: $chip-margin;
|
|
35
|
+
.chip.outlined {
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
border-color: var(--md-sys-color-outline);
|
|
38
|
+
border-width: 1px;
|
|
39
|
+
border-style: solid;
|
|
40
|
+
}
|
|
19
41
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
42
|
+
.chip > img {
|
|
43
|
+
margin: 0;
|
|
44
|
+
width: 24px;
|
|
45
|
+
height: 24px;
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
border-radius: 12px;
|
|
48
|
+
}
|
|
27
49
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
50
|
+
.chip > .material-icons {
|
|
51
|
+
font-size: var(--font-size-icon);
|
|
52
|
+
@extend .on-surface-variant-text;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.chip .close {
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
height: 24px;
|
|
58
|
+
width: 24px;
|
|
59
|
+
padding: 0;
|
|
60
|
+
display: grid;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-content: center;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.chip .close:hover {
|
|
67
|
+
background-color: #8888;
|
|
35
68
|
}
|
|
36
69
|
|
|
70
|
+
//--------------------------
|
|
71
|
+
|
|
37
72
|
.chips {
|
|
73
|
+
display: flex;
|
|
74
|
+
gap: 4px;
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
|
|
38
77
|
border: none;
|
|
39
78
|
border-bottom: 1px solid $chip-border-color;
|
|
40
79
|
box-shadow: none;
|
|
41
80
|
margin: $input-margin;
|
|
42
|
-
|
|
81
|
+
|
|
82
|
+
padding: 4px;
|
|
83
|
+
// min-height: 45px;
|
|
84
|
+
|
|
43
85
|
outline: none;
|
|
44
86
|
transition: all .3s;
|
|
45
87
|
|
|
@@ -58,13 +100,18 @@
|
|
|
58
100
|
color: $input-color;
|
|
59
101
|
display: inline-block;
|
|
60
102
|
font-size: $input-font-size;
|
|
61
|
-
|
|
62
|
-
|
|
103
|
+
|
|
104
|
+
// height: 32px;
|
|
105
|
+
// height: $input-height;
|
|
106
|
+
// line-height: 32px;
|
|
107
|
+
height: 32px;
|
|
108
|
+
|
|
63
109
|
outline: 0;
|
|
64
110
|
margin: 0;
|
|
65
111
|
padding: 0;
|
|
66
112
|
width: 120px;
|
|
67
113
|
|
|
114
|
+
|
|
68
115
|
&:focus {
|
|
69
116
|
border: 0;
|
|
70
117
|
box-shadow: none;
|