vrembem 4.0.0-next.9 → 4.0.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.
Files changed (48) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -79
  3. package/base.scss +2 -0
  4. package/components.scss +18 -0
  5. package/define.ts +3 -0
  6. package/dev/base.css +259 -0
  7. package/dev/base.css.map +1 -0
  8. package/dev/components.css +4100 -0
  9. package/dev/components.css.map +1 -0
  10. package/dev/define.js +4 -0
  11. package/dev/index.css +5586 -7196
  12. package/dev/index.css.map +1 -1
  13. package/dev/index.js +3 -2218
  14. package/dev/layers.css +3 -0
  15. package/dev/layers.css.map +1 -0
  16. package/dev/tokens.css +236 -0
  17. package/dev/tokens.css.map +1 -0
  18. package/dev/utilities.css +1573 -0
  19. package/dev/utilities.css.map +1 -0
  20. package/dist/base.css +1 -0
  21. package/dist/base.css.map +1 -0
  22. package/dist/components.css +1 -0
  23. package/dist/components.css.map +1 -0
  24. package/dist/define.d.ts +3 -0
  25. package/dist/define.js +4 -0
  26. package/dist/index.css +1 -1
  27. package/dist/index.css.map +1 -1
  28. package/dist/index.d.ts +2 -0
  29. package/dist/index.js +3 -2195
  30. package/dist/layers.css +1 -0
  31. package/dist/layers.css.map +1 -0
  32. package/dist/tokens.css +1 -0
  33. package/dist/tokens.css.map +1 -0
  34. package/dist/utilities.css +1 -0
  35. package/dist/utilities.css.map +1 -0
  36. package/index.scss +12 -10
  37. package/index.ts +2 -0
  38. package/layers.scss +1 -0
  39. package/package.json +78 -36
  40. package/tokens.scss +5 -0
  41. package/utilities.scss +1 -0
  42. package/dev/index.js.map +0 -1
  43. package/dev/index.umd.cjs +0 -2222
  44. package/dev/index.umd.cjs.map +0 -1
  45. package/dist/index.js.map +0 -1
  46. package/dist/index.umd.cjs +0 -10
  47. package/dist/index.umd.cjs.map +0 -1
  48. package/index.js +0 -11
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 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,82 +2,4 @@
2
2
 
3
3
  A complete collection of all Vrembem components into a single comprehensive package for convenience.
4
4
 
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 all under the vb namespace
60
- import * as vb from 'vrembem';
61
- const drawer = new vb.Drawer({ autoMount: true });
62
-
63
- // Or import individual components
64
- import { Drawer } from 'vrembem';
65
- const drawer = new Drawer({ autoMount: true });
66
- ```
67
-
68
- ## Markup
69
-
70
- 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.
71
-
72
- ```html
73
- <div class="drawer__wrapper">
74
- <aside data-drawer="[unique-id]" class="drawer">
75
- <div class="drawer__item">
76
- <button data-drawer-close>...</button>
77
- </div>
78
- </aside>
79
- <div class="drawer__main">
80
- <button data-drawer-toggle="[unique-id]">...</button>
81
- </div>
82
- </div>
83
- ```
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"}