vrembem 4.0.0-next.43 → 4.0.0-next.45

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/README.md CHANGED
@@ -3,78 +3,3 @@
3
3
  A complete collection of all Vrembem components into a single comprehensive package for convenience.
4
4
 
5
5
  [Documentation](https://vrembem.com/packages/vrembem)
6
-
7
- ## Installation
8
-
9
- Via CDN
10
-
11
- ```html
12
- <!-- Include styles -->
13
- <link rel="stylesheet" href="https://unpkg.com/vrembem/dist/index.css">
14
-
15
- <!-- Include scripts -->
16
- <script src="https://unpkg.com/vrembem"></script>
17
-
18
- <script>
19
- // All Vrembem JS modules are loaded into the vrembem namespace
20
- console.log(vrembem);
21
- </script>
22
- ```
23
-
24
- Via NPM
25
-
26
- ```sh
27
- npm install vrembem
28
- ```
29
-
30
- ## Styles
31
-
32
- To include all Vrembem components into your styles, just import the vrembem package in your Sass manifest file.
33
-
34
- ```scss
35
- @use "vrembem";
36
- ```
37
-
38
- All component variables, functions and mixins are forwarded under their respective namespace and can be customized:
39
-
40
- ```scss
41
- @use "vrembem" with (
42
- $button-padding: 1rem 2rem
43
- );
44
- ```
45
-
46
- Customize core variables which all components inherit from. The example below will prefix all components with `vb-` to help namespace styles:
47
-
48
- ```scss
49
- @use "vrembem" with (
50
- $core-prefix-block: "vb-"
51
- );
52
- ```
53
-
54
- ## JavaScript
55
-
56
- Import and mount the components you'll need:
57
-
58
- ```js
59
- // Import individual components
60
- import { Drawer } from 'vrembem';
61
- const drawers = new DrawerCollection();
62
- await drawers.mount();
63
- ```
64
-
65
- ## Markup
66
-
67
- 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.
68
-
69
- ```html
70
- <div class="drawer__wrapper">
71
- <aside data-drawer="[unique-id]" class="drawer">
72
- <div class="drawer__item">
73
- <button data-drawer-close>...</button>
74
- </div>
75
- </aside>
76
- <div class="drawer__main">
77
- <button data-drawer-toggle="[unique-id]">...</button>
78
- </div>
79
- </div>
80
- ```
package/base.scss ADDED
@@ -0,0 +1,2 @@
1
+ @forward "@vrembem/core/base";
2
+ @forward "@vrembem/content" as content-*;
@@ -1,10 +1,9 @@
1
- @forward "@vrembem/core" as core-*;
2
- @forward "@vrembem/base" as base-*;
3
1
  @forward "@vrembem/flex" as flex-*;
4
2
  @forward "@vrembem/grid" as grid-*;
5
3
  @forward "@vrembem/button" as button-*;
6
4
  @forward "@vrembem/checkbox" as checkbox-*;
7
5
  @forward "@vrembem/input" as input-*;
6
+ @forward "@vrembem/select" as select-*;
8
7
  @forward "@vrembem/radio" as radio-*;
9
8
  @forward "@vrembem/switch" as switch-*;
10
9
  @forward "@vrembem/card" as card-*;
@@ -17,4 +16,3 @@
17
16
  @forward "@vrembem/popover" as popover-*;
18
17
  @forward "@vrembem/section" as section-*;
19
18
  @forward "@vrembem/table" as table-*;
20
- @forward "@vrembem/utility" as utility-*;
package/dev/base.css ADDED
@@ -0,0 +1,259 @@
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
+ color: var(--vb-base-foreground);
21
+ background: var(--vb-base-background);
22
+ }
23
+ img,
24
+ svg,
25
+ video,
26
+ canvas,
27
+ audio,
28
+ iframe,
29
+ embed,
30
+ object {
31
+ display: block;
32
+ }
33
+ img,
34
+ video,
35
+ picture {
36
+ max-width: 100%;
37
+ height: auto;
38
+ vertical-align: middle;
39
+ }
40
+ button,
41
+ input,
42
+ textarea,
43
+ select {
44
+ font: inherit;
45
+ color: inherit;
46
+ }
47
+ button {
48
+ cursor: pointer;
49
+ border: 0;
50
+ background: none;
51
+ }
52
+ label:has(:disabled) {
53
+ pointer-events: none;
54
+ }
55
+ a {
56
+ color: inherit;
57
+ text-decoration: inherit;
58
+ }
59
+ h1,
60
+ h2,
61
+ h3,
62
+ h4,
63
+ h5,
64
+ h6 {
65
+ font-size: inherit;
66
+ color: var(--vb-foreground-strong);
67
+ }
68
+ b,
69
+ strong {
70
+ font-weight: bold;
71
+ }
72
+ small {
73
+ font-size: var(--vb-font-size-sm, 0.875rem);
74
+ }
75
+ code,
76
+ pre {
77
+ font-family: var(--vb-font-family-mono, ui-monospace, monospace);
78
+ font-size: 1em;
79
+ }
80
+ table {
81
+ border-collapse: collapse;
82
+ border-color: inherit;
83
+ }
84
+ }
85
+ @layer base {
86
+ .content {
87
+ font-family: var(--vb-content-font-family, inherit);
88
+ font-size: var(--vb-content-font-size, inherit);
89
+ line-height: var(--vb-content-line-height, inherit);
90
+ color: var(--vb-content-foreground, var(--vb-foreground));
91
+ }
92
+ .content > * + * {
93
+ margin-top: var(--vb-content-spacing);
94
+ }
95
+ .h1, .content > h1, .h2, .content > h2, .h3, .content > h3, .h4, .content > h4, .h5, .content > h5 {
96
+ font-family: var(--vb-headings-font-family, inherit);
97
+ font-size: var(--vb-headings-font-size, 1em);
98
+ font-weight: var(--vb-headings-font-weight, var(--vb-font-weight-semi-bold));
99
+ line-height: var(--vb-headings-line-height, inherit);
100
+ color: var(--vb-headings-foreground, var(--vb-foreground-strong));
101
+ }
102
+ .h1, .content > h1 {
103
+ --vb-headings-font-size: 2.75rem;
104
+ --vb-headings-line-height: 1.25;
105
+ }
106
+ .h2, .content > h2 {
107
+ --vb-headings-font-size: 2rem;
108
+ --vb-headings-line-height: 1.25;
109
+ }
110
+ .h3, .content > h3 {
111
+ --vb-headings-font-size: 1.75rem;
112
+ --vb-headings-line-height: 1.25;
113
+ }
114
+ .h4, .content > h4 {
115
+ --vb-headings-font-size: 1.5rem;
116
+ --vb-headings-line-height: 1.375;
117
+ }
118
+ .h5, .content > h5 {
119
+ --vb-headings-font-size: 1.25rem;
120
+ }
121
+ .link, .content :not(div) > a {
122
+ color: var(--vb-link-foreground, var(--vb-foreground-accent));
123
+ text-decoration: var(--vb-link-decoration, underline);
124
+ text-decoration-thickness: var(--vb-link-decoration-thickness, 1px);
125
+ text-underline-offset: var(--vb-link-underline-offset, 2px);
126
+ }
127
+ .link code, .content :not(div) > a code {
128
+ color: var(--vb-link-foreground, var(--vb-foreground-accent));
129
+ background-color: var(--vb-background-alt);
130
+ }
131
+ .link:hover, .link:focus-visible, .content :not(div) > a:hover, .content :not(div) > a:focus-visible {
132
+ 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)));
133
+ text-decoration: var(--vb-link-decoration-hover, none);
134
+ }
135
+ .link:hover code, .link:focus-visible code, .content :not(div) > a:hover code, .content :not(div) > a:focus-visible code {
136
+ 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)));
137
+ }
138
+ .link:focus-visible, .content :not(div) > a:focus-visible {
139
+ outline: var(--vb-link-focus-ring, currentcolor dotted 1px);
140
+ outline-offset: var(--vb-link-focus-ring-offset, 0.125rem);
141
+ }
142
+ .list, .content > ul, .content > ol {
143
+ margin-left: var(--vb-list-indent, var(--vb-spacing-lg));
144
+ }
145
+ .list ul,
146
+ .list ol, .content > ul ul,
147
+ .content > ul ol, .content > ol ul,
148
+ .content > ol ol {
149
+ margin-left: var(--vb-list-indent, var(--vb-spacing-lg));
150
+ }
151
+ .list li li,
152
+ .list li + li, .content > ul li li,
153
+ .content > ul li + li, .content > ol li li,
154
+ .content > ol li + li {
155
+ margin-top: var(--vb-list-spacing, var(--vb-spacing-sm));
156
+ }
157
+ .list-style-none {
158
+ list-style: none !important;
159
+ }
160
+ .code, .content :not(pre) > code {
161
+ padding: var(--vb-code-padding, 0.125rem 0.375rem);
162
+ border: var(--vb-code-border);
163
+ border-radius: var(--vb-code-border-radius, var(--vb-border-radius));
164
+ font-family: var(--vb-font-family-mono);
165
+ font-size: var(--vb-code-font-size, var(--vb-font-size-sm));
166
+ color: var(--vb-code-foreground, var(--vb-foreground-accent-alt));
167
+ overflow-wrap: break-word;
168
+ background: var(--vb-code-background, var(--vb-background-alt));
169
+ }
170
+ .pre, .content > pre {
171
+ overflow: auto;
172
+ padding: var(--vb-pre-padding, var(--vb-spacing-md));
173
+ border: var(--vb-pre-border, none);
174
+ border-radius: var(--vb-pre-border-radius, var(--vb-border-radius));
175
+ font-family: var(--vb-font-family-mono);
176
+ color: var(--vb-pre-foreground, var(--vb-foreground-strong));
177
+ background: var(--vb-pre-background, var(--vb-background-alt));
178
+ }
179
+ .pre code, .content > pre code {
180
+ padding: 0;
181
+ border: none;
182
+ font-size: var(--vb-pre-font-size, var(--vb-font-size-sm));
183
+ color: inherit;
184
+ background: none;
185
+ }
186
+ .blockquote, .content > blockquote {
187
+ position: relative;
188
+ padding: var(--vb-blockquote-padding, var(--vb-spacing-md));
189
+ border: var(--vb-blockquote-border, var(--vb-border));
190
+ border-radius: var(--vb-blockquote-border-radius, var(--vb-border-radius));
191
+ color: var(--vb-blockquote-foreground, currentcolor);
192
+ background: var(--vb-blockquote-background, transparent);
193
+ }
194
+ .blockquote > * + *, .content > blockquote > * + * {
195
+ margin-top: var(--vb-blockquote-spacing, var(--vb-spacing-md));
196
+ }
197
+ .sep, .content > hr {
198
+ display: block;
199
+ height: 0;
200
+ border: none;
201
+ 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));
202
+ }
203
+ .arrow,
204
+ .arrow-up,
205
+ .arrow-down,
206
+ .arrow-left,
207
+ .arrow-right {
208
+ pointer-events: none;
209
+ transform-origin: center;
210
+ display: inline-block;
211
+ flex-grow: 0;
212
+ flex-shrink: 0;
213
+ width: 0;
214
+ height: 0;
215
+ border-color: var(--vb-arrow-color, currentcolor) transparent transparent;
216
+ border-style: solid;
217
+ border-width: var(--vb-arrow-size, 6px 4px);
218
+ border-bottom-width: 0;
219
+ border-radius: var(--vb-arrow-radius, 2px);
220
+ }
221
+ .arrow-up {
222
+ transform: rotate(180deg);
223
+ }
224
+ .arrow-left {
225
+ transform: rotate(90deg);
226
+ }
227
+ .arrow-right {
228
+ transform: rotate(-90deg);
229
+ }
230
+ .loading-spinner {
231
+ width: var(--vb-loading-size, 1em);
232
+ height: var(--vb-loading-size, 1em);
233
+ position: relative;
234
+ display: inline-block;
235
+ border: var(--vb-loading-border, 2px solid);
236
+ border-color: var(--vb-loading-color, currentcolor) var(--vb-loading-color, currentcolor) transparent transparent;
237
+ border-radius: var(--vb-border-radius-circle);
238
+ animation: spin var(--vb-loading-duration, 0.6s) infinite linear;
239
+ }
240
+ @keyframes spin {
241
+ from {
242
+ transform: rotate(0deg);
243
+ }
244
+ to {
245
+ transform: rotate(360deg);
246
+ }
247
+ }
248
+ .sr-only {
249
+ position: absolute;
250
+ overflow: hidden;
251
+ width: 1px;
252
+ height: 1px;
253
+ margin: -1px;
254
+ padding: 0;
255
+ clip-path: inset(50%);
256
+ }
257
+ }
258
+
259
+ /*# sourceMappingURL=base.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../../../node_modules/@vrembem/core/base.scss","../../../node_modules/@vrembem/core/src/scss/library/_base.scss","../../../node_modules/@vrembem/content/index.scss","../../../node_modules/@vrembem/content/src/modules/_content.scss","../../../node_modules/@vrembem/content/src/modules/_headings.scss","../../../node_modules/@vrembem/core/src/scss/modules/_tokens.scss","../../../node_modules/@vrembem/content/src/modules/_link.scss","../../../node_modules/@vrembem/content/src/modules/_list.scss","../../../node_modules/@vrembem/content/src/modules/_code.scss","../../../node_modules/@vrembem/content/src/modules/_pre.scss","../../../node_modules/@vrembem/content/src/modules/_blockquote.scss","../../../node_modules/@vrembem/content/src/modules/_separator.scss","../../../node_modules/@vrembem/content/src/modules/_arrow.scss","../../../node_modules/@vrembem/core/src/scss/library/_arrow.scss","../../../node_modules/@vrembem/content/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/content/src/modules/_sr-only.scss","../../../node_modules/@vrembem/core/src/scss/library/_sr-only.scss"],"names":[],"mappings":"AAEA;ECWE;AAAA;AAAA;IAGE;IACA;IACA;;EAQF;AAAA;IAEE;IACA;IACA;;EAIF;IACE;;EAKF;IACE;IACA;IACA;;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;IACA;;EAIF;AAAA;AAAA;AAAA;AAAA;AAAA;IAME;IACA;;EAIF;AAAA;IAEE;;EAIF;IACE;;EAIF;AAAA;IAEE;IACA;;EAKF;IACE;IACA;;;AC5HJ;ECGE;IACE;IACA;IACA;IACA;;EAEA;IACE;;ECLJ;IACE;IACA;IACA;IACA;IACA;;EAYA;ICiSE;IAAA;;EDjSF;ICiSE;IAAA;;EDjSF;ICiSE;IAAA;;EDjSF;ICiSE;IAAA;;EDjSF;ICiSE;;ECrTJ;IACE;IACA;IACA;IACA;;EAEA;IACE;IACA;;EAIF;IAEE;IAIA;;EAEA;IACE;;EAOJ;IACE;IACA;;EC9BJ;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","file":"base.css"}