@edmicro/olkit 1.1.8 → 1.3.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/.npmignore +2 -2
- package/fesm2022/edmicro-olkit.mjs +1185 -61
- package/fesm2022/edmicro-olkit.mjs.map +1 -1
- package/olkit.css +1 -1
- package/package.json +1 -1
- package/styles/patterns/big-comb.svg +1 -0
- package/styles/patterns/comb-linear.svg +1 -0
- package/styles/patterns/comb.svg +1 -0
- package/styles/patterns/creative.svg +1 -0
- package/styles/patterns/diamond-left.svg +1 -0
- package/styles/patterns/diamond-right.svg +1 -0
- package/styles/patterns/dots.svg +1 -0
- package/styles/patterns/lines-modern.svg +1 -0
- package/styles/patterns/lines-oblique.svg +1 -0
- package/styles/patterns/lines.svg +1 -0
- package/styles/patterns/modern.svg +1 -0
- package/styles/patterns/oblique-lines.svg +1 -0
- package/styles/patterns/rounded-lines.svg +1 -0
- package/styles/patterns/squares.svg +1 -0
- package/styles/patterns/tech-square.svg +1 -0
- package/styles/patterns/tech-squares.svg +1 -0
- package/styles/patterns/tech.svg +1 -0
- package/styles/patterns/technology-top.svg +1 -0
- package/styles/patterns/technology.svg +1 -0
- package/styles/patterns/vertical-lines.svg +1 -0
- package/styles/patterns.css +163 -0
- package/types/edmicro-olkit.d.ts +718 -10
- package/types/edmicro-olkit.d.ts.map +1 -1
- package/version.txt +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1512" height="775.077" fill="none"><g stroke="#F9FAFB" clip-path="url(#a)"><path d="M.5 0v775M11.073 0v775M21.648 0v775M32.221 0v775M42.794 0v775M53.369 0v775M63.941 0v775M74.514 0v775M85.089 0v775M95.66 0v775M106.233 0v775M116.808 0v775M127.381 0v775M137.954 0v775M148.529 0v775M159.102 0v775M169.674 0v775M180.249 0v775M190.822 0v775M201.395 0v775M211.97 0v775M222.543 0v775M233.116 0v775M243.691 0v775m10.57-775v775M264.834 0v775M275.409 0v775M285.982 0v775M296.555 0v775M307.13 0v775M317.703 0v775M328.276 0v775M338.851 0v775M349.424 0v775M359.996 0v775M370.571 0v775M381.144 0v775M391.717 0v775M402.292 0v775M412.865 0v775M423.436 0v775M434.009 0v775M444.584 0v775M455.157 0v775M465.729 0v775M476.304 0v775M486.877 0v775M497.45 0v775M508.025 0v775M518.598 0v775M529.171 0v775M539.746 0v775M550.318 0v775M560.891 0v775M571.466 0v775M582.039 0v775M592.61 0v775M603.185 0v775M613.758 0v775M624.331 0v775M634.906 0v775M645.478 0v775M656.051 0v775M666.626 0v775M677.199 0v775M687.772 0v775M698.347 0v775M708.92 0v775M719.492 0v775M730.067 0v775M740.64 0v775M751.213 0v775M761.786 0v775M772.359 0v775M782.932 0v775M793.507 0v775M804.08 0v775M814.653 0v775M825.227 0v775M835.8 0v775M846.373 0v775M856.948 0v775M867.521 0v775M878.094 0v775M888.669 0v775M899.242 0v775M909.815 0v775M920.39 0v775M930.96 0v775M941.533 0v775M952.108 0v775M962.681 0v775M973.254 0v775M983.829 0v775M994.402 0v775M1004.97 0v775m10.58-775v775m10.57-775v775M1036.7 0v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.58-775v775m10.57-775v775M1153 0v775m10.58-775v775m10.57-775v775m10.57-775v775M1195.3 0v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775M1311.6 0v775m10.58-775v775m10.57-775v775m10.58-775v775M1353.9 0v775m10.57-775v775m10.58-775v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.57-775v775m10.58-775v775m10.57-775v775m10.57-775v775m10.58-775v775"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h1512v775.077H0z"/></clipPath></defs></svg>
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Hoạ tiết nền Ôn Luyện — 20 kiểu của Figma component "Pattern"
|
|
3
|
+
* (canvas "▒ Hoạ tiết" #1240:55097), dùng qua `<ol-pattern type="…">`.
|
|
4
|
+
*
|
|
5
|
+
* ## Vì sao file riêng, KHÔNG gộp vào olkit.css
|
|
6
|
+
*
|
|
7
|
+
* 20 file SVG nặng 1,1 MB (đã nén SVGO; bản xuất Figma 2,8 MB). Nhúng vào
|
|
8
|
+
* JS hay vào olkit.css thì app nào import kit cũng mang theo. Ở đây mỗi kiểu
|
|
9
|
+
* là một file SVG RIÊNG, CSS `mask-image: url(...)` trỏ tới — Angular CLI chép
|
|
10
|
+
* file theo, trình duyệt chỉ TẢI kiểu đang hiện trên trang.
|
|
11
|
+
*
|
|
12
|
+
* angular.json → "styles": [..., "node_modules/@edmicro/olkit/styles/patterns.css"]
|
|
13
|
+
*
|
|
14
|
+
* ## Vì sao mask, không background-image
|
|
15
|
+
*
|
|
16
|
+
* Mask lấy KÊNH ALPHA của SVG làm khuôn, màu là `background-color:
|
|
17
|
+
* currentColor` — một hoạ tiết dùng được mọi màu (trắng trên navy, brand trên
|
|
18
|
+
* nền sáng) qua class `text-*`, không cần 20 × N bản màu. Độ mờ từng nét trong
|
|
19
|
+
* Figma (stroke-opacity) vẫn giữ vì nằm trong kênh alpha.
|
|
20
|
+
*
|
|
21
|
+
* Bản xuất Figma kèm nền xám #F0F0F0, khung nền tối #101828 và viền #E5E7EB
|
|
22
|
+
* của frame — đã lọc, chỉ giữ nhóm `Type=…`.
|
|
23
|
+
*/
|
|
24
|
+
.ol-pattern {
|
|
25
|
+
background-color: currentColor;
|
|
26
|
+
-webkit-mask-repeat: no-repeat;
|
|
27
|
+
mask-repeat: no-repeat;
|
|
28
|
+
-webkit-mask-position: center;
|
|
29
|
+
mask-position: center;
|
|
30
|
+
-webkit-mask-size: cover;
|
|
31
|
+
mask-size: cover;
|
|
32
|
+
}
|
|
33
|
+
.ol-pattern--fit-contain {
|
|
34
|
+
-webkit-mask-size: contain;
|
|
35
|
+
mask-size: contain;
|
|
36
|
+
}
|
|
37
|
+
/* Lặp ô gốc theo kích thước thật của hình Figma (~1512×776). */
|
|
38
|
+
.ol-pattern--fit-repeat {
|
|
39
|
+
-webkit-mask-repeat: repeat;
|
|
40
|
+
mask-repeat: repeat;
|
|
41
|
+
-webkit-mask-size: auto;
|
|
42
|
+
mask-size: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Figma: Type=Lines */
|
|
46
|
+
.ol-pattern--lines {
|
|
47
|
+
-webkit-mask-image: url('./patterns/lines.svg');
|
|
48
|
+
mask-image: url('./patterns/lines.svg');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Figma: Type=Rounded Lines */
|
|
52
|
+
.ol-pattern--rounded-lines {
|
|
53
|
+
-webkit-mask-image: url('./patterns/rounded-lines.svg');
|
|
54
|
+
mask-image: url('./patterns/rounded-lines.svg');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Figma: Type=Creative */
|
|
58
|
+
.ol-pattern--creative {
|
|
59
|
+
-webkit-mask-image: url('./patterns/creative.svg');
|
|
60
|
+
mask-image: url('./patterns/creative.svg');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Figma: Type=Diamond right */
|
|
64
|
+
.ol-pattern--diamond-right {
|
|
65
|
+
-webkit-mask-image: url('./patterns/diamond-right.svg');
|
|
66
|
+
mask-image: url('./patterns/diamond-right.svg');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Figma: Type=Diamond left */
|
|
70
|
+
.ol-pattern--diamond-left {
|
|
71
|
+
-webkit-mask-image: url('./patterns/diamond-left.svg');
|
|
72
|
+
mask-image: url('./patterns/diamond-left.svg');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Figma: Type=Vertical lines */
|
|
76
|
+
.ol-pattern--vertical-lines {
|
|
77
|
+
-webkit-mask-image: url('./patterns/vertical-lines.svg');
|
|
78
|
+
mask-image: url('./patterns/vertical-lines.svg');
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Figma: Type=oblique lines */
|
|
82
|
+
.ol-pattern--oblique-lines {
|
|
83
|
+
-webkit-mask-image: url('./patterns/oblique-lines.svg');
|
|
84
|
+
mask-image: url('./patterns/oblique-lines.svg');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Figma: Type=Dots */
|
|
88
|
+
.ol-pattern--dots {
|
|
89
|
+
-webkit-mask-image: url('./patterns/dots.svg');
|
|
90
|
+
mask-image: url('./patterns/dots.svg');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Figma: Type=Lines modern */
|
|
94
|
+
.ol-pattern--lines-modern {
|
|
95
|
+
-webkit-mask-image: url('./patterns/lines-modern.svg');
|
|
96
|
+
mask-image: url('./patterns/lines-modern.svg');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Figma: Type=Squares */
|
|
100
|
+
.ol-pattern--squares {
|
|
101
|
+
-webkit-mask-image: url('./patterns/squares.svg');
|
|
102
|
+
mask-image: url('./patterns/squares.svg');
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Figma: Type=Modern */
|
|
106
|
+
.ol-pattern--modern {
|
|
107
|
+
-webkit-mask-image: url('./patterns/modern.svg');
|
|
108
|
+
mask-image: url('./patterns/modern.svg');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Figma: Type=comb */
|
|
112
|
+
.ol-pattern--comb {
|
|
113
|
+
-webkit-mask-image: url('./patterns/comb.svg');
|
|
114
|
+
mask-image: url('./patterns/comb.svg');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Figma: Type=tech */
|
|
118
|
+
.ol-pattern--tech {
|
|
119
|
+
-webkit-mask-image: url('./patterns/tech.svg');
|
|
120
|
+
mask-image: url('./patterns/tech.svg');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Figma: Type=tech-square */
|
|
124
|
+
.ol-pattern--tech-square {
|
|
125
|
+
-webkit-mask-image: url('./patterns/tech-square.svg');
|
|
126
|
+
mask-image: url('./patterns/tech-square.svg');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Figma: Type=tech-squares */
|
|
130
|
+
.ol-pattern--tech-squares {
|
|
131
|
+
-webkit-mask-image: url('./patterns/tech-squares.svg');
|
|
132
|
+
mask-image: url('./patterns/tech-squares.svg');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Figma: Type=technology */
|
|
136
|
+
.ol-pattern--technology {
|
|
137
|
+
-webkit-mask-image: url('./patterns/technology.svg');
|
|
138
|
+
mask-image: url('./patterns/technology.svg');
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Figma: Type=comb-linear */
|
|
142
|
+
.ol-pattern--comb-linear {
|
|
143
|
+
-webkit-mask-image: url('./patterns/comb-linear.svg');
|
|
144
|
+
mask-image: url('./patterns/comb-linear.svg');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Figma: Type=big-comb */
|
|
148
|
+
.ol-pattern--big-comb {
|
|
149
|
+
-webkit-mask-image: url('./patterns/big-comb.svg');
|
|
150
|
+
mask-image: url('./patterns/big-comb.svg');
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Figma: Type=lines-oblique */
|
|
154
|
+
.ol-pattern--lines-oblique {
|
|
155
|
+
-webkit-mask-image: url('./patterns/lines-oblique.svg');
|
|
156
|
+
mask-image: url('./patterns/lines-oblique.svg');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Figma: Type=technology-top */
|
|
160
|
+
.ol-pattern--technology-top {
|
|
161
|
+
-webkit-mask-image: url('./patterns/technology-top.svg');
|
|
162
|
+
mask-image: url('./patterns/technology-top.svg');
|
|
163
|
+
}
|