material 0.9.24 → 0.9.26

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.
Files changed (127) hide show
  1. package/.editorconfig +36 -0
  2. package/.zed/README.md +64 -0
  3. package/.zed/settings.json +42 -0
  4. package/CONTRIBUTING.md +125 -0
  5. package/bun.lock +615 -0
  6. package/eslint.config.js +63 -0
  7. package/index.d.ts +77 -0
  8. package/package.json +1 -1
  9. package/src/module/extract.js +31 -30
  10. package/src/module/request.js +22 -2
  11. package/src/skin/material/base/body.scss +83 -0
  12. package/src/skin/material/base/{elevation.sass → elevation.scss} +76 -50
  13. package/src/skin/material/base/{grid.sass → grid.scss} +44 -32
  14. package/src/skin/material/base/typo.scss +133 -0
  15. package/src/skin/material/button/action.scss +124 -0
  16. package/src/skin/material/button/button.scss +245 -0
  17. package/src/skin/material/button/file.scss +27 -0
  18. package/src/skin/material/button/floating.scss +160 -0
  19. package/src/skin/material/button/raised.scss +145 -0
  20. package/src/skin/material/button/stroked.scss +102 -0
  21. package/src/skin/material/component/component.scss +11 -0
  22. package/src/skin/material/component/divider.scss +22 -0
  23. package/src/skin/material/component/image.scss +9 -0
  24. package/src/skin/material/component/label.scss +4 -0
  25. package/src/skin/material/component/navigation.scss +15 -0
  26. package/src/skin/material/component/progress.scss +176 -0
  27. package/src/skin/material/component/subheader.scss +5 -0
  28. package/src/skin/material/component/text.scss +101 -0
  29. package/src/skin/material/container/appbar.scss +215 -0
  30. package/src/skin/material/container/banner.scss +44 -0
  31. package/src/skin/material/container/card.scss +23 -0
  32. package/src/skin/material/container/container.scss +2 -0
  33. package/src/skin/material/container/dialog.scss +196 -0
  34. package/src/skin/material/container/drawer.scss +185 -0
  35. package/src/skin/material/container/menu.scss +69 -0
  36. package/src/skin/material/container/snackbar.scss +21 -0
  37. package/src/skin/material/container/tabs.scss +94 -0
  38. package/src/skin/material/container/toolbar.scss +207 -0
  39. package/src/skin/material/control/button.scss +172 -0
  40. package/src/skin/material/control/checkbox.scss +134 -0
  41. package/src/skin/material/control/colorpicker.scss +220 -0
  42. package/src/skin/material/control/menu.scss +25 -0
  43. package/src/skin/material/control/progress.scss +174 -0
  44. package/src/skin/material/control/search.scss +50 -0
  45. package/src/skin/material/control/selecter.scss +152 -0
  46. package/src/skin/material/control/selector.scss +46 -0
  47. package/src/skin/material/control/slider.scss +221 -0
  48. package/src/skin/material/control/snackbar.scss +77 -0
  49. package/src/skin/material/control/switch.scss +349 -0
  50. package/src/skin/material/control/switcher.scss +48 -0
  51. package/src/skin/material/control/textfield.scss +159 -0
  52. package/src/skin/material/control/tooltip.scss +42 -0
  53. package/src/skin/material/layout/layout.scss +92 -0
  54. package/src/skin/material/layout/resizer.scss +97 -0
  55. package/src/skin/material/material.scss +67 -0
  56. package/src/skin/material/module/ripple.scss +11 -0
  57. package/src/skin/material/theme/{default.sass → default.scss} +18 -17
  58. package/src/skin/material/theme/ocean.scss +30 -0
  59. package/src/skin/material/theme/theme.scss +4 -0
  60. package/src/skin/material/view/calendar.scss +219 -0
  61. package/src/skin/material/view/form.scss +21 -0
  62. package/src/skin/material/view/grid.scss +134 -0
  63. package/src/skin/material/view/list.scss +107 -0
  64. package/src/skin/material/view/listview.scss +221 -0
  65. package/src/skin/material/view/map.scss +8 -0
  66. package/src/skin/material/view/page.scss +5 -0
  67. package/src/skin/material/view/tabview-bak.scss +49 -0
  68. package/src/skin/material/view/tabview.scss +65 -0
  69. package/src/skin/material/view/tree.scss +85 -0
  70. package/src/skin/material/view/{view.sass → view.scss} +1 -0
  71. package/src/skin/material/base/body.sass +0 -55
  72. package/src/skin/material/base/typo.sass +0 -107
  73. package/src/skin/material/button/action.sass +0 -89
  74. package/src/skin/material/button/button.sass +0 -183
  75. package/src/skin/material/button/file.sass +0 -24
  76. package/src/skin/material/button/floating.sass +0 -113
  77. package/src/skin/material/button/raised.sass +0 -101
  78. package/src/skin/material/button/stroked.sass +0 -71
  79. package/src/skin/material/component/component.sass +0 -7
  80. package/src/skin/material/component/divider.sass +0 -17
  81. package/src/skin/material/component/image.sass +0 -6
  82. package/src/skin/material/component/label.sass +0 -2
  83. package/src/skin/material/component/navigation.sass +0 -13
  84. package/src/skin/material/component/progress.sass +0 -138
  85. package/src/skin/material/component/subheader.sass +0 -3
  86. package/src/skin/material/component/text.sass +0 -85
  87. package/src/skin/material/container/appbar.sass +0 -167
  88. package/src/skin/material/container/banner.sass +0 -38
  89. package/src/skin/material/container/card.sass +0 -19
  90. package/src/skin/material/container/dialog.sass +0 -172
  91. package/src/skin/material/container/drawer.sass +0 -159
  92. package/src/skin/material/container/menu.sass +0 -58
  93. package/src/skin/material/container/snackbar.sass +0 -18
  94. package/src/skin/material/container/tabs.sass +0 -75
  95. package/src/skin/material/container/toolbar.sass +0 -161
  96. package/src/skin/material/control/button.sass +0 -135
  97. package/src/skin/material/control/checkbox.sass +0 -105
  98. package/src/skin/material/control/colorpicker.sass +0 -188
  99. package/src/skin/material/control/dialog.sass +0 -0
  100. package/src/skin/material/control/menu.sass +0 -18
  101. package/src/skin/material/control/progress.sass +0 -136
  102. package/src/skin/material/control/search.sass +0 -40
  103. package/src/skin/material/control/selecter.sass +0 -131
  104. package/src/skin/material/control/selector.sass +0 -38
  105. package/src/skin/material/control/slider.sass +0 -181
  106. package/src/skin/material/control/snackbar.sass +0 -65
  107. package/src/skin/material/control/switch.sass +0 -284
  108. package/src/skin/material/control/switcher.sass +0 -41
  109. package/src/skin/material/control/textfield.sass +0 -126
  110. package/src/skin/material/control/tooltip.sass +0 -36
  111. package/src/skin/material/layout/layout.sass +0 -69
  112. package/src/skin/material/layout/resizer.sass +0 -69
  113. package/src/skin/material/material.sass +0 -66
  114. package/src/skin/material/module/ripple.sass +0 -9
  115. package/src/skin/material/theme/ocean.sass +0 -29
  116. package/src/skin/material/theme/theme.sass +0 -3
  117. package/src/skin/material/view/calendar.sass +0 -193
  118. package/src/skin/material/view/form.sass +0 -15
  119. package/src/skin/material/view/grid.sass +0 -116
  120. package/src/skin/material/view/list.sass +0 -87
  121. package/src/skin/material/view/listview.sass +0 -195
  122. package/src/skin/material/view/map.sass +0 -6
  123. package/src/skin/material/view/page.sass +0 -4
  124. package/src/skin/material/view/tabview-bak.sass +0 -40
  125. package/src/skin/material/view/tabview.sass +0 -55
  126. package/src/skin/material/view/tree.sass +0 -73
  127. /package/src/skin/material/{container/container.sass → control/dialog.scss} +0 -0
@@ -0,0 +1,159 @@
1
+ .material-textfield {
2
+ display: block;
3
+ position: relative;
4
+ margin-right: 16px;
5
+ padding-top: 8px;
6
+ margin-bottom: 16px;
7
+ vertical-align: top;
8
+ .textfield-label {
9
+ transition: .2s;
10
+ color: rgba(0, 0, 0, 0.3);
11
+ position: absolute;
12
+ font-size: .7em;
13
+ top: -2px;
14
+
15
+ }
16
+ .textfield-underline {
17
+ position: absolute;
18
+ opacity: 0;
19
+ left: 50%;
20
+ bottom: 0px;
21
+ height: 2px;
22
+ width: 2px;
23
+ background-color: #4891F4;
24
+ transition: .1s;
25
+
26
+ }
27
+ &.textfield-error {
28
+ .textfield-label {
29
+ color: #F44336;
30
+ color: #D6392C;
31
+
32
+ }
33
+ textarea, {
34
+ /* empty */
35
+ }
36
+ input {
37
+ border-bottom: 1px solid #F44336;
38
+
39
+ }
40
+ }
41
+ &.hide {
42
+ display: none;
43
+
44
+ // states
45
+ }
46
+ }
47
+ .material-textfield {
48
+ &.is-focused {
49
+ .textfield-label {
50
+ transition: .2s;
51
+
52
+ }
53
+ .textfield-underline {
54
+ opacity: 1;
55
+ display: block;
56
+ width: 100%;
57
+ left: 0;
58
+ transition: .1s;
59
+ background-color: $primary-color;
60
+
61
+ }
62
+ }
63
+ &.is-empty {
64
+ .textfield-label {
65
+ transition: .2s;
66
+ pointer-events: none;
67
+ position: absolute;
68
+ top: 20px;
69
+ left: 0;
70
+ display: block;
71
+ font-size: 1em;
72
+ padding: 0 2px 0 0;
73
+
74
+ }
75
+ &.is-focused {
76
+ .textfield-label {
77
+ transition: .2s;
78
+ font-size: .7em;
79
+ top: -2px;
80
+
81
+ }
82
+ }
83
+ .textfield-input {
84
+ float: none;
85
+ width: 100%;
86
+ border: none;
87
+ margin: 0;
88
+
89
+ // margin-top: 13px;
90
+ background-color: transparent;
91
+ border-radius: 0;
92
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12);
93
+
94
+ //outline:none;
95
+
96
+ }
97
+ }
98
+ .textfield-input {
99
+ float: none;
100
+ width: 100%;
101
+ padding: 12px 8px 8px 0;
102
+ border: none;
103
+ margin: 0;
104
+ background-color: transparent;
105
+ border-radius: 0;
106
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12);
107
+
108
+ //outline:none;
109
+ &:hover {
110
+ cursor: default;
111
+
112
+ //background-color: rgba(100, 100, 100, .06);
113
+
114
+ }
115
+ &:focus {
116
+ cursor: text;
117
+
118
+ }
119
+ }
120
+ input[readonly], {
121
+ /* empty */
122
+ }
123
+ textarea[readonly] {
124
+ //color: #9A9A9A;
125
+ //color: rgba(0, 0, 0, 1);
126
+ //background-color: rgba(255,255,255,1);
127
+ border-bottom: 1px solid transparent;
128
+
129
+ &:hover {
130
+ cursor: default;
131
+
132
+ //background-color: rgba(255,255,255,1);
133
+
134
+ }
135
+ &:focus, {
136
+ /* empty */
137
+ }
138
+ &:active {
139
+ cursor: text;
140
+ border-bottom: 1px solid transparent !important;
141
+
142
+ //background-color: rgba(255,255,255,1);
143
+
144
+ }
145
+ }
146
+ }
147
+ .dark-mode {
148
+ .material-textfield {
149
+ .textfield-label {
150
+ transition: .2s;
151
+ color: rgba(255, 255, 255, 0.3);
152
+
153
+ }
154
+ .textfield-input {
155
+ border-bottom: 1px solid rgba(255, 255, 255, 0.12);
156
+
157
+ }
158
+ }
159
+ }
@@ -0,0 +1,42 @@
1
+ .tooltip {
2
+ z-index: 100;
3
+ // pointer-events: none
4
+ display: none;
5
+ position: absolute;
6
+ background-color: rgba(0,0,0,.7);
7
+ max-width: 200px;
8
+ text-align: center;
9
+ padding: 4px 8px 8px;
10
+ transform: translateY(24px);
11
+ border-radius: 3px;
12
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
13
+ &.show {
14
+ display: block;
15
+ >.label {
16
+ font-size: .8em;
17
+ line-height: 1em;
18
+ color: rgba(255,255,255,.87);
19
+ }
20
+ >.pointer {
21
+ display: block;
22
+ width: 100%;
23
+ height: 8px;
24
+ position: absolute;
25
+ left: 0;
26
+ right: 0;
27
+ top: -8px;
28
+ background-image: url('/theme/minimal/icon/tooltip.svg');
29
+ background-position: center;
30
+ background-size: contain;
31
+ background-repeat: no-repeat;
32
+
33
+
34
+ }
35
+ }
36
+ }
37
+ @media only screen and (max-width: 640px) {
38
+ .tooltip {
39
+ display: none;
40
+
41
+ }
42
+ }
@@ -0,0 +1,92 @@
1
+ .material-layout {
2
+ /* empty */
3
+ }
4
+ // overflow: hidden;
5
+ // padding: 0;
6
+ // margin: 0;
7
+ // height: 100%;
8
+ // position: absolute;
9
+ // top: 0;
10
+ // bottom: 0;
11
+ // left: 0;
12
+ // right: 0;
13
+
14
+ .flex-row, {
15
+ /* empty */
16
+ }
17
+ .flex-raw {
18
+ display: flex;
19
+ flex-direction: row;
20
+ flex-wrap: nowrap;
21
+
22
+ > .ui-container {
23
+ height: inherit;
24
+
25
+ }
26
+ }
27
+ .flex-column {
28
+ display: flex;
29
+ flex-direction: column;
30
+ flex-wrap: nowrap;
31
+
32
+ > .material-container {
33
+ width: inherit;
34
+
35
+ }
36
+ }
37
+ .display-absolute {
38
+ display: absolute;
39
+
40
+ }
41
+ .flex-none {
42
+ flex: none;
43
+
44
+ }
45
+ .flex-1 {
46
+ flex: 1;
47
+
48
+ }
49
+ .flex-2 {
50
+ flex: 2;
51
+
52
+ }
53
+ .flex-3 {
54
+ flex: 3;
55
+
56
+ }
57
+ .flex-4 {
58
+ flex: 4;
59
+
60
+ }
61
+ .flex-5 {
62
+ flex: 5;
63
+
64
+ }
65
+ .flex-6 {
66
+ flex: 6;
67
+
68
+ }
69
+ .flex-7 {
70
+ flex: 7;
71
+
72
+ }
73
+ .flex-8 {
74
+ flex: 8;
75
+
76
+ }
77
+ .flex-9 {
78
+ flex: 9;
79
+
80
+ }
81
+ .flex-10 {
82
+ flex: 10;
83
+
84
+ }
85
+ .flex-11 {
86
+ flex: 11;
87
+
88
+ }
89
+ .flex-12 {
90
+ flex: 12;
91
+
92
+ }
@@ -0,0 +1,97 @@
1
+
2
+ .resizer-layer {
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+
7
+ }
8
+ .ui-resizer {
9
+ opacity: .2;
10
+ position: absolute;
11
+ z-index: 200;
12
+ right: -3px;
13
+ bottom: -3px;
14
+ width: 12px;
15
+ height: 12px;
16
+ cursor: nwse-resize;
17
+
18
+ // &:hover, &.drag {
19
+ // background-color: rgba(66, 133, 244, .5);
20
+ // }
21
+
22
+ }
23
+ .resizer-height {
24
+ cursor: ns-resize;
25
+ position: absolute;
26
+ z-index: 100;
27
+ left: 0;
28
+ width: 100%;
29
+ height: 5px;
30
+
31
+ }
32
+ .resizer-width {
33
+ cursor: ew-resize;
34
+ position: absolute;
35
+ z-index: 100;
36
+ top: 0;
37
+ height: 100%;
38
+ width: 5px;
39
+
40
+ }
41
+ .ui-resizer-height, {
42
+ /* empty */
43
+ }
44
+ .ui-resizer-width, {
45
+ /* empty */
46
+ }
47
+ .ui-resizer-top, {
48
+ /* empty */
49
+ }
50
+ .ui-resizer-right, {
51
+ /* empty */
52
+ }
53
+ .ui-resizer-bottom, {
54
+ /* empty */
55
+ }
56
+ .ui-resizer-left {
57
+ background-color: rgba(255, 165, 0, 5);
58
+ opacity: .5;
59
+ position: absolute;
60
+ z-index: 100;
61
+
62
+ &:hover {
63
+ /* empty */
64
+ }
65
+ //background-color: rgba(255, 165, 0,5);
66
+
67
+ }
68
+ .ui-resizer-height, {
69
+ /* empty */
70
+ }
71
+ .ui-resizer-top, {
72
+ /* empty */
73
+ }
74
+ .ui-resizer-bottom {
75
+ cursor: ns-resize;
76
+ position: absolute;
77
+ z-index: 100;
78
+ left: 0;
79
+ width: 100%;
80
+ height: 5px;
81
+
82
+ }
83
+ .ui-resizer-width, {
84
+ /* empty */
85
+ }
86
+ .ui-resizer-right, {
87
+ /* empty */
88
+ }
89
+ .ui-resizer-left {
90
+ cursor: ew-resize;
91
+ position: absolute;
92
+ z-index: 100;
93
+ top: 0;
94
+ height: 100%;
95
+ width: 5px;
96
+
97
+ }
@@ -0,0 +1,67 @@
1
+
2
+ // font
3
+ // @import ../../../vendor/roboto/roboto.css
4
+
5
+ // base
6
+ @import "base/body.scss";
7
+ @import "base/typo.scss";
8
+ @import "base/elevation.scss";
9
+
10
+ // theme
11
+ @import "theme/default.scss";
12
+ @import "theme/theme.scss";
13
+
14
+ // module
15
+ @import "module/ripple.scss";
16
+
17
+ // component
18
+ @import "component/component.scss";
19
+ @import "component/text.scss";
20
+ @import "component/image.scss";
21
+ @import "component/subheader.scss";
22
+ @import "component/label.scss";
23
+ @import "component/divider.scss";
24
+ @import "component/progress.scss";
25
+
26
+ // container
27
+ @import "container/banner.scss";
28
+ @import "container/card.scss";
29
+ @import "container/menu.scss";
30
+ @import "container/dialog.scss";
31
+ @import "container/container.scss";
32
+ @import "container/drawer.scss";
33
+ @import "container/tabs.scss";
34
+ @import "container/appbar.scss";
35
+ @import "container/toolbar.scss";
36
+ @import "container/snackbar.scss";
37
+
38
+ // button
39
+ @import "button/button.scss";
40
+ @import "button/raised.scss";
41
+ @import "button/floating.scss";
42
+ @import "button/action.scss";
43
+ @import "button/file.scss";
44
+
45
+ // control
46
+ @import "control/button.scss";
47
+ @import "control/textfield.scss";
48
+ @import "control/switch.scss";
49
+ @import "control/checkbox.scss";
50
+ @import "control/selector.scss";
51
+ @import "control/slider.scss";
52
+ @import "control/tooltip.scss";
53
+ @import "control/search.scss";
54
+
55
+ // view
56
+ @import "view/view.scss";
57
+ @import "view/list.scss";
58
+ @import "view/form.scss";
59
+ @import "view/tree.scss";
60
+ @import "view/calendar.scss";
61
+ @import "view/page.scss";
62
+ @import "view/tabview.scss";
63
+
64
+ // layout
65
+ @import "layout/layout.scss";
66
+ @import "layout/resizer.scss";
67
+
@@ -0,0 +1,11 @@
1
+ .material-ripple, .ripple {
2
+ opacity: 1;
3
+ pointer-events: none;
4
+ z-index: 1;
5
+ position: absolute;
6
+ background-color: rgba(255, 255, 255, 0.1);
7
+ height: 5px;
8
+ width: 5px;
9
+ border-radius: 50%;
10
+
11
+ }
@@ -25,26 +25,27 @@
25
25
 
26
26
 
27
27
  // ocean theme
28
- $background-color: rgba(255, 255, 255, 1)
29
- $background-color-dark: rgba(51, 51, 51, 1)
28
+ $background-color: rgba(255, 255, 255, 1);
29
+ $background-color-dark: rgba(51, 51, 51, 1);
30
30
 
31
31
  // color schema
32
- $default-color: rgba(0, 0, 0, 1)
33
- $default-color-text: rgba(0, 0, 0, 0.67)
34
- $default-color-button: rgba(0, 0, 0, 0.47)
35
- $default-color-icon: rgba(0, 0, 0, 0.67)
36
- $primary-color: rgb(98, 0, 238)
37
- $primary-color: rgb(54, 79, 144)
38
- $primary-color-text: rgba(255, 255, 255, 0.95)
39
- $secondary-color: #1A9989
40
- $secondary-color-text: rgba(255, 255, 255, 0.95)
32
+ $default-color: rgba(0, 0, 0, 1);
33
+ $default-color-text: rgba(0, 0, 0, 0.67);
34
+ $default-color-button: rgba(0, 0, 0, 0.47);
35
+ $default-color-icon: rgba(0, 0, 0, 0.67);
36
+ $primary-color: rgb(98, 0, 238);
37
+ $primary-color: rgb(54, 79, 144);
38
+ $primary-color-text: rgba(255, 255, 255, 0.95);
39
+ $secondary-color: #1A9989;
40
+ $secondary-color-text: rgba(255, 255, 255, 0.95);
41
41
 
42
42
  // on dark theme
43
- $default-color-dark: rgba(255, 255, 255, 1)
44
- $default-color-text-dark: rgba(255, 255, 255, 0.95)
45
- $primary-color-dark: rgb(54, 79, 144)
46
- $primary-color-text-dark: rgba(255, 255, 255, 0.95)
47
- $secondary-color-dark: #1A9989
48
- $secondary-color-text-dark: rgba(255, 255, 255, 0.95)
43
+ $default-color-dark: rgba(255, 255, 255, 1);
44
+ $default-color-text-dark: rgba(255, 255, 255, 0.95);
45
+ $primary-color-dark: rgb(54, 79, 144);
46
+ $primary-color-text-dark: rgba(255, 255, 255, 0.95);
47
+ $secondary-color-dark: #1A9989;
48
+ $secondary-color-text-dark: rgba(255, 255, 255, 0.95);
49
+
49
50
 
50
51
 
@@ -0,0 +1,30 @@
1
+
2
+
3
+
4
+ // base color
5
+ $background: rgba(255, 255, 255, 1);
6
+
7
+ // color schema
8
+ $default-color: rgba(0, 0, 0, 1);
9
+ $default-color-text: rgba(0, 0, 0, 0.87);
10
+
11
+ // primary color
12
+ $primary-color: #3f51b5;
13
+ $primary-color-text: rgba(255, 255, 255, 0.95);
14
+
15
+ // secondary color
16
+ $secondary-color: #1A9989;
17
+ $secondary-color-text: rgba(255, 255, 255, 0.95);
18
+
19
+ // on dark theme
20
+ $default-color-dark: rgba(255, 255, 255, 1);
21
+ $default-color-text-dark: rgba(255, 255, 255, 0.95);
22
+
23
+ $primary-color-dark: #3f51b5;
24
+ $primary-color-text-dark: rgba(255, 255, 255, 0.95);
25
+
26
+ $secondary-color-dark: #1A9989;
27
+ $secondary-color-text-dark: rgba(255, 255, 255, 0.95);
28
+
29
+
30
+
@@ -0,0 +1,4 @@
1
+ .dark-mode {
2
+ background-color: rgba(51, 51, 51, 1);
3
+ color: rgba(255, 255, 255, 0.95);
4
+ }