@natachah/vanilla-frontend 0.0.2
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/.gitlab-ci.yml +40 -0
- package/LICENSE.md +7 -0
- package/README.md +11 -0
- package/docs/index.html +36 -0
- package/docs/main.js +32 -0
- package/docs/pages/components/badge.html +154 -0
- package/docs/pages/components/button.html +186 -0
- package/docs/pages/components/card.html +184 -0
- package/docs/pages/components/dialog.html +334 -0
- package/docs/pages/components/disclosure.html +310 -0
- package/docs/pages/components/dropdown.html +255 -0
- package/docs/pages/components/form.html +331 -0
- package/docs/pages/components/list.html +140 -0
- package/docs/pages/components/loading.html +58 -0
- package/docs/pages/components/media.html +130 -0
- package/docs/pages/components/nav.html +119 -0
- package/docs/pages/components/progress.html +47 -0
- package/docs/pages/components/slider.html +311 -0
- package/docs/pages/components/table.html +168 -0
- package/docs/pages/javascript/autofill.html +170 -0
- package/docs/pages/javascript/checkall.html +59 -0
- package/docs/pages/javascript/comfort.html +134 -0
- package/docs/pages/javascript/consent.html +112 -0
- package/docs/pages/javascript/cookie.html +81 -0
- package/docs/pages/javascript/form.html +199 -0
- package/docs/pages/javascript/scroll.html +209 -0
- package/docs/pages/javascript/sidebar.html +53 -0
- package/docs/pages/javascript/sortable.html +148 -0
- package/docs/pages/javascript/toggle.html +191 -0
- package/docs/pages/javascript/tree.html +221 -0
- package/docs/pages/layout/grid.html +201 -0
- package/docs/pages/layout/reset.html +53 -0
- package/docs/pages/layout/typography.html +324 -0
- package/docs/pages/quick-start/conventions.html +112 -0
- package/docs/pages/quick-start/customization.html +187 -0
- package/docs/pages/quick-start/installation.html +95 -0
- package/docs/pages/quick-start/mixins.html +228 -0
- package/docs/pages/test.html +15 -0
- package/docs/src/js/demo.js +98 -0
- package/docs/src/js/doc-code.js +102 -0
- package/docs/src/js/doc-demo.js +14 -0
- package/docs/src/js/doc-layout.js +108 -0
- package/docs/src/scss/demo.scss +77 -0
- package/docs/src/scss/layout.scss +160 -0
- package/docs/src/scss/style.scss +278 -0
- package/docs/vite.config.mjs +23 -0
- package/esbuild.mjs +25 -0
- package/js/_autofill.js +131 -0
- package/js/_check-all.js +77 -0
- package/js/_comfort.js +174 -0
- package/js/_consent.js +84 -0
- package/js/_dialog.js +164 -0
- package/js/_dropdown.js +101 -0
- package/js/_scroll.js +184 -0
- package/js/_sidebar.js +97 -0
- package/js/_slider.js +249 -0
- package/js/_sortable.js +143 -0
- package/js/_tabpanel.js +88 -0
- package/js/_toggle.js +123 -0
- package/js/_tree.js +85 -0
- package/js/tests/autofill.test.js +157 -0
- package/js/tests/base-component.test.js +108 -0
- package/js/tests/check-all.test.js +88 -0
- package/js/tests/comfort.test.js +219 -0
- package/js/tests/consent.test.js +84 -0
- package/js/tests/cookie.test.js +102 -0
- package/js/tests/dialog.test.js +189 -0
- package/js/tests/dropdown.test.js +115 -0
- package/js/tests/form-helper.test.js +155 -0
- package/js/tests/scroll.test.js +203 -0
- package/js/tests/sidebar.test.js +99 -0
- package/js/tests/slider.test.js +307 -0
- package/js/tests/sortable.test.js +124 -0
- package/js/tests/tabpanel.test.js +114 -0
- package/js/tests/toggle.test.js +190 -0
- package/js/tests/tree.test.js +165 -0
- package/js/utilities/_base-component.js +101 -0
- package/js/utilities/_cookie.js +98 -0
- package/js/utilities/_error.js +80 -0
- package/js/utilities/_form-helper.js +101 -0
- package/package.json +42 -0
- package/scss/_badge.scss +37 -0
- package/scss/_button.scss +34 -0
- package/scss/_card.scss +122 -0
- package/scss/_dialog.scss +116 -0
- package/scss/_disclosure.scss +101 -0
- package/scss/_dropdown.scss +68 -0
- package/scss/_form.scss +197 -0
- package/scss/_grid.scss +40 -0
- package/scss/_group.scss +57 -0
- package/scss/_list.scss +18 -0
- package/scss/_loading.scss +49 -0
- package/scss/_media.scss +37 -0
- package/scss/_nav.scss +72 -0
- package/scss/_progress.scss +40 -0
- package/scss/_slider.scss +35 -0
- package/scss/_table.scss +36 -0
- package/scss/utilities/_mixin.scss +322 -0
- package/scss/utilities/_reset.scss +145 -0
- package/scss/utilities/_typography.scss +107 -0
- package/scss/vanilla-frontend.scss +23 -0
- package/scss/variables/_root.scss +70 -0
- package/scss/variables/_setting.scss +63 -0
- package/vitest.config.js +7 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// ------------------------------------------------------------------
|
|
3
|
+
/// Setting
|
|
4
|
+
/// ------------------------------------------------------------------
|
|
5
|
+
/// Setting variables for default theme
|
|
6
|
+
///
|
|
7
|
+
/// @group setting
|
|
8
|
+
/// @author Natacha Herth
|
|
9
|
+
/// @since 0.0.1
|
|
10
|
+
///
|
|
11
|
+
////
|
|
12
|
+
|
|
13
|
+
/// Define the default list of colors available
|
|
14
|
+
///
|
|
15
|
+
/// @access public
|
|
16
|
+
///
|
|
17
|
+
$colors: (
|
|
18
|
+
primary,
|
|
19
|
+
success,
|
|
20
|
+
error,
|
|
21
|
+
warning
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
/// Define the components that have some color variations
|
|
25
|
+
///
|
|
26
|
+
/// @example button: (error) // <button class="error"></button>
|
|
27
|
+
/// @access public
|
|
28
|
+
///
|
|
29
|
+
$color-variations: (
|
|
30
|
+
badge: $colors,
|
|
31
|
+
button: $colors,
|
|
32
|
+
card: $colors,
|
|
33
|
+
disclosure: $colors,
|
|
34
|
+
list: $colors
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
/// Define the components that have an outline variation
|
|
38
|
+
///
|
|
39
|
+
/// @example button // <button class="outline"></button>
|
|
40
|
+
/// @access public
|
|
41
|
+
///
|
|
42
|
+
$outline-variations: (
|
|
43
|
+
badge,
|
|
44
|
+
button,
|
|
45
|
+
card,
|
|
46
|
+
disclosure,
|
|
47
|
+
list
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
/// Define the default properties for item
|
|
51
|
+
///
|
|
52
|
+
/// @access public
|
|
53
|
+
///
|
|
54
|
+
$default-item-properties: (
|
|
55
|
+
color: var(--color-font),
|
|
56
|
+
background: transparent,
|
|
57
|
+
border-size: var(--border-size),
|
|
58
|
+
border-style: var(--border-style),
|
|
59
|
+
border-color: transparent,
|
|
60
|
+
border-radius: var(--border-radius),
|
|
61
|
+
padding-inline: var(--padding-inline),
|
|
62
|
+
padding-block: var(--padding-block)
|
|
63
|
+
);
|