vrembem 4.0.0-next.4 → 4.0.0-next.41
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 +1 -1
- package/README.md +5 -7
- package/base.scss +1 -0
- package/components.scss +17 -0
- package/dev/base.css +261 -0
- package/dev/base.css.map +1 -0
- package/dev/components.css +4452 -0
- package/dev/components.css.map +1 -0
- package/dev/index.css +6208 -5985
- package/dev/index.css.map +1 -1
- package/dev/index.js +2890 -2214
- package/dev/index.js.map +1 -1
- package/dev/index.umd.cjs +2937 -2252
- package/dev/index.umd.cjs.map +1 -1
- package/dev/layers.css +3 -0
- package/dev/layers.css.map +1 -0
- package/dev/styles.css +6217 -0
- package/dev/styles.css.map +1 -0
- package/dev/tokens.css +254 -0
- package/dev/tokens.css.map +1 -0
- package/dev/utilities.css +1516 -0
- package/dev/utilities.css.map +1 -0
- package/dist/base.css +1 -0
- package/dist/base.css.map +1 -0
- package/dist/components.css +1 -0
- package/dist/components.css.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2870 -2190
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +10 -10
- package/dist/index.umd.cjs.map +1 -1
- package/dist/layers.css +1 -0
- package/dist/layers.css.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/styles.css.map +1 -0
- package/dist/tokens.css +1 -0
- package/dist/tokens.css.map +1 -0
- package/dist/utilities.css +1 -0
- package/dist/utilities.css.map +1 -0
- package/index.scss +8 -8
- package/index.ts +6 -0
- package/layers.scss +1 -0
- package/package.json +72 -36
- package/styles.scss +20 -0
- package/tokens.scss +1 -0
- package/utilities.scss +1 -0
- package/index.js +0 -11
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
A complete collection of all Vrembem components into a single comprehensive package for convenience.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/vrembem)
|
|
6
|
-
|
|
7
5
|
[Documentation](https://vrembem.com/packages/vrembem)
|
|
8
6
|
|
|
9
7
|
## Installation
|
|
@@ -55,20 +53,20 @@ Customize core variables which all components inherit from. The example below wi
|
|
|
55
53
|
|
|
56
54
|
## JavaScript
|
|
57
55
|
|
|
58
|
-
Import and
|
|
56
|
+
Import and mount the components you'll need:
|
|
59
57
|
|
|
60
58
|
```js
|
|
61
59
|
// Import all under the vb namespace
|
|
62
60
|
import * as vb from 'vrembem';
|
|
63
|
-
const drawer = new vb.Drawer(
|
|
61
|
+
const drawer = new vb.Drawer();
|
|
62
|
+
await drawer.mount();
|
|
64
63
|
|
|
65
64
|
// Or import individual components
|
|
66
65
|
import { Drawer } from 'vrembem';
|
|
67
|
-
const drawer = new Drawer(
|
|
66
|
+
const drawer = new Drawer();
|
|
67
|
+
await drawer.mount();
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
> Note that `core` modules do not need to be initialized since they're just a set of helpful utility and functional modules.
|
|
71
|
-
|
|
72
70
|
## Markup
|
|
73
71
|
|
|
74
72
|
Include the component's markup into your project. Use the [online documentation](https://vrembem.com) for more information, customization options, code examples and available modifiers.
|
package/base.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "@vrembem/base";
|
package/components.scss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@forward "@vrembem/flex" as flex-*;
|
|
2
|
+
@forward "@vrembem/grid" as grid-*;
|
|
3
|
+
@forward "@vrembem/button" as button-*;
|
|
4
|
+
@forward "@vrembem/checkbox" as checkbox-*;
|
|
5
|
+
@forward "@vrembem/input" as input-*;
|
|
6
|
+
@forward "@vrembem/radio" as radio-*;
|
|
7
|
+
@forward "@vrembem/switch" as switch-*;
|
|
8
|
+
@forward "@vrembem/card" as card-*;
|
|
9
|
+
@forward "@vrembem/dialog" as dialog-*;
|
|
10
|
+
@forward "@vrembem/drawer" as drawer-*;
|
|
11
|
+
@forward "@vrembem/icon" as icon-*;
|
|
12
|
+
@forward "@vrembem/menu" as menu-*;
|
|
13
|
+
@forward "@vrembem/modal" as modal-*;
|
|
14
|
+
@forward "@vrembem/notice" as notice-*;
|
|
15
|
+
@forward "@vrembem/popover" as popover-*;
|
|
16
|
+
@forward "@vrembem/section" as section-*;
|
|
17
|
+
@forward "@vrembem/table" as table-*;
|
package/dev/base.css
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
html,
|
|
10
|
+
:host {
|
|
11
|
+
font-family: var(--vb-font-family, system-ui, sans-serif);
|
|
12
|
+
line-height: var(--vb-line-height, 1.5);
|
|
13
|
+
text-size-adjust: none;
|
|
14
|
+
}
|
|
15
|
+
html {
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
body {
|
|
19
|
+
min-height: 100vh;
|
|
20
|
+
}
|
|
21
|
+
img,
|
|
22
|
+
svg,
|
|
23
|
+
video,
|
|
24
|
+
canvas,
|
|
25
|
+
audio,
|
|
26
|
+
iframe,
|
|
27
|
+
embed,
|
|
28
|
+
object {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
img,
|
|
32
|
+
video,
|
|
33
|
+
picture {
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
height: auto;
|
|
36
|
+
vertical-align: middle;
|
|
37
|
+
}
|
|
38
|
+
button,
|
|
39
|
+
input,
|
|
40
|
+
textarea,
|
|
41
|
+
select {
|
|
42
|
+
font: inherit;
|
|
43
|
+
color: inherit;
|
|
44
|
+
}
|
|
45
|
+
button {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
border: 0;
|
|
48
|
+
background: none;
|
|
49
|
+
}
|
|
50
|
+
textarea {
|
|
51
|
+
resize: vertical;
|
|
52
|
+
}
|
|
53
|
+
label:has(:disabled) {
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
a {
|
|
57
|
+
color: inherit;
|
|
58
|
+
text-decoration: inherit;
|
|
59
|
+
}
|
|
60
|
+
h1,
|
|
61
|
+
h2,
|
|
62
|
+
h3,
|
|
63
|
+
h4,
|
|
64
|
+
h5,
|
|
65
|
+
h6 {
|
|
66
|
+
font-size: inherit;
|
|
67
|
+
color: var(--vb-foreground-strong);
|
|
68
|
+
}
|
|
69
|
+
b,
|
|
70
|
+
strong {
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
}
|
|
73
|
+
small {
|
|
74
|
+
font-size: var(--vb-font-size-sm, 0.875rem);
|
|
75
|
+
}
|
|
76
|
+
code,
|
|
77
|
+
pre {
|
|
78
|
+
font-family: var(--vb-font-family-mono, ui-monospace, monospace);
|
|
79
|
+
font-size: 1em;
|
|
80
|
+
}
|
|
81
|
+
table {
|
|
82
|
+
border-collapse: collapse;
|
|
83
|
+
border-color: inherit;
|
|
84
|
+
}
|
|
85
|
+
body {
|
|
86
|
+
color: var(--vb-base-foreground, var(--vb-foreground));
|
|
87
|
+
background: var(--vb-base-background, var(--vb-background));
|
|
88
|
+
}
|
|
89
|
+
.h1, .type > h1, .h2, .type > h2, .h3, .type > h3, .h4, .type > h4, .h5, .type > h5, .h6, .type > h6 {
|
|
90
|
+
font-family: var(--vb-headings-font-family, inherit);
|
|
91
|
+
font-size: var(--vb-headings-font-size, 1em);
|
|
92
|
+
font-weight: var(--vb-headings-font-weight, var(--vb-font-weight-semi-bold));
|
|
93
|
+
line-height: var(--vb-headings-line-height, inherit);
|
|
94
|
+
color: var(--vb-headings-foreground, var(--vb-foreground-strong));
|
|
95
|
+
}
|
|
96
|
+
.h1, .type > h1 {
|
|
97
|
+
--vb-headings-font-size: 2.75em;
|
|
98
|
+
}
|
|
99
|
+
.h2, .type > h2 {
|
|
100
|
+
--vb-headings-font-size: 2em;
|
|
101
|
+
}
|
|
102
|
+
.h3, .type > h3 {
|
|
103
|
+
--vb-headings-font-size: 1.75em;
|
|
104
|
+
}
|
|
105
|
+
.h4, .type > h4 {
|
|
106
|
+
--vb-headings-font-size: 1.5em;
|
|
107
|
+
}
|
|
108
|
+
.h5, .type > h5 {
|
|
109
|
+
--vb-headings-font-size: 1.25em;
|
|
110
|
+
}
|
|
111
|
+
.h6, .type > h6 {
|
|
112
|
+
--vb-headings-font-size: 1em;
|
|
113
|
+
}
|
|
114
|
+
.link, .type :not(div) > a {
|
|
115
|
+
color: var(--vb-link-foreground, var(--vb-foreground-accent));
|
|
116
|
+
text-decoration: var(--vb-link-decoration, underline);
|
|
117
|
+
text-decoration-thickness: var(--vb-link-decoration-thickness, 1px);
|
|
118
|
+
text-underline-offset: var(--vb-link-underline-offset, 2px);
|
|
119
|
+
}
|
|
120
|
+
.link code, .type :not(div) > a code {
|
|
121
|
+
color: var(--vb-link-foreground, var(--vb-foreground-accent));
|
|
122
|
+
background-color: var(--vb-background-alt);
|
|
123
|
+
}
|
|
124
|
+
.link:hover, .link:focus, .type :not(div) > a:hover, .type :not(div) > a:focus {
|
|
125
|
+
color: var(--vb-link-foreground-hover, light-dark(oklch(from var(--vb-foreground-accent) calc(l - 0.1) c h), oklch(from var(--vb-foreground-accent) calc(l + 0.1) c h)));
|
|
126
|
+
text-decoration: var(--vb-link-decoration-hover, none);
|
|
127
|
+
}
|
|
128
|
+
.link:hover code, .link:focus code, .type :not(div) > a:hover code, .type :not(div) > a:focus code {
|
|
129
|
+
color: var(--vb-link-foreground-hover, light-dark(oklch(from var(--vb-foreground-accent) calc(l - 0.1) c h), oklch(from var(--vb-foreground-accent) calc(l + 0.1) c h)));
|
|
130
|
+
}
|
|
131
|
+
.link:focus, .type :not(div) > a:focus {
|
|
132
|
+
outline: var(--vb-link-focus-ring, currentcolor dotted 1px);
|
|
133
|
+
outline-offset: var(--vb-link-focus-ring-offset, 0.125rem);
|
|
134
|
+
}
|
|
135
|
+
.list, .type > ul, .type > ol {
|
|
136
|
+
margin-left: var(--vb-list-indent, var(--vb-spacing-lg));
|
|
137
|
+
}
|
|
138
|
+
.list ul,
|
|
139
|
+
.list ol, .type > ul ul,
|
|
140
|
+
.type > ul ol, .type > ol ul,
|
|
141
|
+
.type > ol ol {
|
|
142
|
+
margin-left: var(--vb-list-indent, var(--vb-spacing-lg));
|
|
143
|
+
}
|
|
144
|
+
.list li li,
|
|
145
|
+
.list li + li, .type > ul li li,
|
|
146
|
+
.type > ul li + li, .type > ol li li,
|
|
147
|
+
.type > ol li + li {
|
|
148
|
+
margin-top: var(--vb-list-spacing, var(--vb-spacing-sm));
|
|
149
|
+
}
|
|
150
|
+
.list-style-none {
|
|
151
|
+
list-style: none !important;
|
|
152
|
+
}
|
|
153
|
+
.code, .type :not(pre) > code {
|
|
154
|
+
padding: var(--vb-code-padding, 0.125rem 0.375rem);
|
|
155
|
+
border: var(--vb-code-border);
|
|
156
|
+
border-radius: var(--vb-code-border-radius, var(--vb-border-radius));
|
|
157
|
+
font-family: var(--vb-font-family-mono);
|
|
158
|
+
font-size: var(--vb-code-font-size, var(--vb-font-size-sm));
|
|
159
|
+
color: var(--vb-code-foreground, var(--vb-foreground-accent-alt));
|
|
160
|
+
overflow-wrap: break-word;
|
|
161
|
+
background: var(--vb-code-background, var(--vb-background-alt));
|
|
162
|
+
}
|
|
163
|
+
.pre, .type > pre {
|
|
164
|
+
overflow: auto;
|
|
165
|
+
padding: var(--vb-pre-padding, var(--vb-spacing-md));
|
|
166
|
+
border: var(--vb-pre-border, none);
|
|
167
|
+
border-radius: var(--vb-pre-border-radius, var(--vb-border-radius));
|
|
168
|
+
font-family: var(--vb-font-family-mono);
|
|
169
|
+
color: var(--vb-pre-foreground, var(--vb-foreground-strong));
|
|
170
|
+
background: var(--vb-pre-background, var(--vb-background-alt));
|
|
171
|
+
}
|
|
172
|
+
.pre code, .type > pre code {
|
|
173
|
+
padding: 0;
|
|
174
|
+
border: none;
|
|
175
|
+
font-size: var(--vb-pre-font-size, var(--vb-font-size-sm));
|
|
176
|
+
color: inherit;
|
|
177
|
+
background: none;
|
|
178
|
+
}
|
|
179
|
+
.blockquote, .type > blockquote {
|
|
180
|
+
position: relative;
|
|
181
|
+
padding: var(--vb-blockquote-padding, var(--vb-spacing-md));
|
|
182
|
+
border: var(--vb-blockquote-border, var(--vb-border));
|
|
183
|
+
border-radius: var(--vb-blockquote-border-radius, var(--vb-border-radius));
|
|
184
|
+
color: var(--vb-blockquote-foreground, currentcolor);
|
|
185
|
+
background: var(--vb-blockquote-background, transparent);
|
|
186
|
+
}
|
|
187
|
+
.blockquote > * + *, .type > blockquote > * + * {
|
|
188
|
+
margin-top: var(--vb-blockquote-spacing, var(--vb-spacing-md));
|
|
189
|
+
}
|
|
190
|
+
.sep, .type > hr {
|
|
191
|
+
display: block;
|
|
192
|
+
height: 0;
|
|
193
|
+
border: none;
|
|
194
|
+
border-top: var(--vb-separator-border-width, var(--vb-border-width)) var(--vb-separator-border-style, var(--vb-border-style)) var(--vb-separator-border-color, var(--vb-border-color));
|
|
195
|
+
}
|
|
196
|
+
.arrow,
|
|
197
|
+
.arrow-up,
|
|
198
|
+
.arrow-down,
|
|
199
|
+
.arrow-left,
|
|
200
|
+
.arrow-right {
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
transform-origin: center;
|
|
203
|
+
display: inline-block;
|
|
204
|
+
flex-grow: 0;
|
|
205
|
+
flex-shrink: 0;
|
|
206
|
+
width: 0;
|
|
207
|
+
height: 0;
|
|
208
|
+
border-color: var(--vb-arrow-color, currentcolor) transparent transparent;
|
|
209
|
+
border-style: solid;
|
|
210
|
+
border-width: var(--vb-arrow-size, 6px 4px);
|
|
211
|
+
border-bottom-width: 0;
|
|
212
|
+
border-radius: var(--vb-arrow-radius, 2px);
|
|
213
|
+
}
|
|
214
|
+
.arrow-up {
|
|
215
|
+
transform: rotate(180deg);
|
|
216
|
+
}
|
|
217
|
+
.arrow-left {
|
|
218
|
+
transform: rotate(90deg);
|
|
219
|
+
}
|
|
220
|
+
.arrow-right {
|
|
221
|
+
transform: rotate(-90deg);
|
|
222
|
+
}
|
|
223
|
+
.loading-spinner {
|
|
224
|
+
width: var(--vb-loading-size, 1em);
|
|
225
|
+
height: var(--vb-loading-size, 1em);
|
|
226
|
+
position: relative;
|
|
227
|
+
display: inline-block;
|
|
228
|
+
border: var(--vb-loading-border, 2px solid);
|
|
229
|
+
border-color: var(--vb-loading-color, currentcolor) var(--vb-loading-color, currentcolor) transparent transparent;
|
|
230
|
+
border-radius: var(--vb-border-radius-circle);
|
|
231
|
+
animation: spin var(--vb-loading-duration, 0.6s) infinite linear;
|
|
232
|
+
}
|
|
233
|
+
@keyframes spin {
|
|
234
|
+
from {
|
|
235
|
+
transform: rotate(0deg);
|
|
236
|
+
}
|
|
237
|
+
to {
|
|
238
|
+
transform: rotate(360deg);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
.sr-only {
|
|
242
|
+
position: absolute;
|
|
243
|
+
overflow: hidden;
|
|
244
|
+
width: 1px;
|
|
245
|
+
height: 1px;
|
|
246
|
+
margin: -1px;
|
|
247
|
+
padding: 0;
|
|
248
|
+
clip-path: inset(50%);
|
|
249
|
+
}
|
|
250
|
+
.type {
|
|
251
|
+
font-family: var(--vb-type-font-family, inherit);
|
|
252
|
+
font-size: var(--vb-type-font-size, inherit);
|
|
253
|
+
line-height: var(--vb-type-line-height, inherit);
|
|
254
|
+
color: var(--vb-type-foreground, var(--vb-foreground));
|
|
255
|
+
}
|
|
256
|
+
.type > * + * {
|
|
257
|
+
margin-top: var(--vb-type-spacing);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/*# sourceMappingURL=base.css.map */
|
package/dev/base.css.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../node_modules/@vrembem/base/index.scss","../../../node_modules/@vrembem/core/src/scss/library/_reset.scss","../../../node_modules/@vrembem/base/src/modules/_global.scss","../../../node_modules/@vrembem/base/src/modules/_headings.scss","../../../node_modules/@vrembem/core/src/scss/modules/_css.scss","../../../node_modules/@vrembem/base/src/modules/_link.scss","../../../node_modules/@vrembem/base/src/modules/_list.scss","../../../node_modules/@vrembem/base/src/modules/_code.scss","../../../node_modules/@vrembem/base/src/modules/_pre.scss","../../../node_modules/@vrembem/base/src/modules/_blockquote.scss","../../../node_modules/@vrembem/base/src/modules/_separator.scss","../../../node_modules/@vrembem/base/src/modules/_arrow.scss","../../../node_modules/@vrembem/core/src/scss/library/_arrow.scss","../../../node_modules/@vrembem/base/src/modules/_loading-spinner.scss","../../../node_modules/@vrembem/core/src/scss/library/_size.scss","../../../node_modules/@vrembem/core/src/scss/library/_loading-spinner.scss","../../../node_modules/@vrembem/base/src/modules/_sr-only.scss","../../../node_modules/@vrembem/core/src/scss/library/_sr-only.scss","../../../node_modules/@vrembem/base/src/modules/_type.scss"],"names":[],"mappings":"AAIA;ECSE;AAAA;AAAA;IAGE;IACA;IACA;;EAQF;AAAA;IAEE;IACA;IACA;;EAIF;IACE;;EAIF;IACE;;EAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAQE;;EAIF;AAAA;AAAA;IAGE;IACA;IACA;;EAIF;AAAA;AAAA;AAAA;IAIE;IACA;;EAIF;IACE;IACA;IACA;;EAIF;IACE;;EAIF;IACE;;EAIF;IACE;IACA;;EAIF;AAAA;AAAA;AAAA;AAAA;AAAA;IAME;IACA;;EAIF;AAAA;IAEE;;EAIF;IACE;;EAIF;AAAA;IAEE;IACA;;EAKF;IACE;IACA;;EC1HF;IACE;IACA;;ECDF;IACE;IACA;IACA;IACA;IACA;;EAYA;IC0JE;;ED1JF;IC0JE;;ED1JF;IC0JE;;ED1JF;IC0JE;;ED1JF;IC0JE;;ED1JF;IC0JE;;EC7KJ;IACE;IACA;IACA;IACA;;EAEA;IACE;IACA;;EAIF;IAEE;IAIA;;EAEA;IACE;;EAOJ;IACE;IACA;;EC/BJ;IACE;;EAEA;AAAA;AAAA;AAAA;IAEE;;EAGF;AAAA;AAAA;AAAA;IAEE;;EAIJ;IACE;;ECfF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;ECRF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEA;IACE;IACA;IACA;IACA;IACA;;ECdJ;IACE;IACA;IACA;IACA;IACA;IACA;;EAEA;IACE;;ECTJ;IACE;IACA;IACA;IACA;;ECNF;AAAA;AAAA;AAAA;AAAA;ICMA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EDTA;IACE;;EAGF;IACE;;EAGF;IACE;;EEjBF;ICUE,OCCY;IDAZ;ICOF,UFjBgC;IEkBhC;IACA;IACA;IACA;IACA;;EAME;IACE;MACE;;IAGF;MACE;;;ECnCN;ICFA;IACA;IACA;IACA;IACA;IACA;IACA;;ECDA;IACE;IACA;IACA;IACA;;EAEA;IACE","file":"base.css"}
|