vrembem 4.0.0-next.5 → 4.0.0-next.50

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Sebastian Nitu
3
+ Copyright (c) 2026 Sebastian Nitu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -2,86 +2,4 @@
2
2
 
3
3
  A complete collection of all Vrembem components into a single comprehensive package for convenience.
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/vrembem.svg)](https://www.npmjs.com/package/vrembem)
6
-
7
- [Documentation](https://vrembem.com/packages/vrembem)
8
-
9
- ## Installation
10
-
11
- Via CDN
12
-
13
- ```html
14
- <!-- Include styles -->
15
- <link rel="stylesheet" href="https://unpkg.com/vrembem/dist/index.css">
16
-
17
- <!-- Include scripts -->
18
- <script src="https://unpkg.com/vrembem"></script>
19
-
20
- <script>
21
- // All Vrembem JS modules are loaded into the vrembem namespace
22
- console.log(vrembem);
23
- </script>
24
- ```
25
-
26
- Via NPM
27
-
28
- ```sh
29
- npm install vrembem
30
- ```
31
-
32
- ## Styles
33
-
34
- To include all Vrembem components into your styles, just import the vrembem package in your Sass manifest file.
35
-
36
- ```scss
37
- @use "vrembem";
38
- ```
39
-
40
- All component variables, functions and mixins are forwarded under their respective namespace and can be customized:
41
-
42
- ```scss
43
- @use "vrembem" with (
44
- $button-padding: 1rem 2rem
45
- );
46
- ```
47
-
48
- Customize core variables which all components inherit from. The example below will prefix all components with `vb-` to help namespace styles:
49
-
50
- ```scss
51
- @use "vrembem" with (
52
- $core-prefix-block: "vb-"
53
- );
54
- ```
55
-
56
- ## JavaScript
57
-
58
- Import and initialize the components you'll need:
59
-
60
- ```js
61
- // Import all under the vb namespace
62
- import * as vb from 'vrembem';
63
- const drawer = new vb.Drawer({ autoInit: true });
64
-
65
- // Or import individual components
66
- import { Drawer } from 'vrembem';
67
- const drawer = new Drawer({ autoInit: true });
68
- ```
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
- ## Markup
73
-
74
- 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.
75
-
76
- ```html
77
- <div class="drawer__wrapper">
78
- <aside data-drawer="[unique-id]" class="drawer">
79
- <div class="drawer__item">
80
- <button data-drawer-close>...</button>
81
- </div>
82
- </aside>
83
- <div class="drawer__main">
84
- <button data-drawer-toggle="[unique-id]">...</button>
85
- </div>
86
- </div>
87
- ```
5
+ [Documentation](https://vrembem.com)
package/base.scss ADDED
@@ -0,0 +1,2 @@
1
+ @forward "@vrembem/core/base";
2
+ @forward "@vrembem/content" as content-*;
@@ -0,0 +1,18 @@
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/select" as select-*;
7
+ @forward "@vrembem/radio" as radio-*;
8
+ @forward "@vrembem/switch" as switch-*;
9
+ @forward "@vrembem/card" as card-*;
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/panel" as panel-*;
16
+ @forward "@vrembem/popover" as popover-*;
17
+ @forward "@vrembem/section" as section-*;
18
+ @forward "@vrembem/table" as table-*;
package/define.ts ADDED
@@ -0,0 +1,3 @@
1
+ import "@vrembem/drawer/define";
2
+ import "@vrembem/popover/define";
3
+ export * from "./index.js";
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, color-mix(in oklch, currentcolor 10%, transparent));
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/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/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/library/_arrow.scss","../../../node_modules/@vrembem/content/src/modules/_loading-spinner.scss","../../../node_modules/@vrembem/core/src/library/_size.scss","../../../node_modules/@vrembem/core/src/library/_loading-spinner.scss","../../../node_modules/@vrembem/content/src/modules/_sr-only.scss","../../../node_modules/@vrembem/core/src/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;ICYA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EDfA;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"}