@parallelogram-js/dashboard 0.1.1 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelogram-js/dashboard",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A BEM-style CSS dashboard library inspired by shadcn/ui",
5
5
  "main": "dist/parallelogram-dashboard.css",
6
6
  "type": "module",
package/scss/_index.scss CHANGED
@@ -44,6 +44,7 @@
44
44
  @forward "components/toolbar";
45
45
  @forward "components/empty";
46
46
  @forward "components/form-layout";
47
+ @forward "components/auth";
47
48
 
48
49
  // Latest Components
49
50
  @forward "components/accordion";
@@ -0,0 +1,98 @@
1
+ // ==========================================================================
2
+ // Auth Component
3
+ // ==========================================================================
4
+ //
5
+ // A centred page for signing in, resetting a password and other screens
6
+ // shown before the dashboard shell: a card with a logo, title and
7
+ // description over the form, and a footer for the way back.
8
+
9
+ @use "../variables" as *;
10
+
11
+ .auth {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ min-height: 100vh;
16
+ padding: $spacing-sm;
17
+
18
+ &__container {
19
+ width: 100%;
20
+ max-width: 24rem;
21
+
22
+ &--wide {
23
+ max-width: 42rem;
24
+ }
25
+ }
26
+
27
+ &__header {
28
+ text-align: center;
29
+ margin-bottom: $spacing-lg;
30
+ }
31
+
32
+ &__logo {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ width: 3rem;
37
+ height: 3rem;
38
+ margin-bottom: $spacing-sm;
39
+ color: var(--primary);
40
+ }
41
+
42
+ &__title {
43
+ font-size: $font-size-2xl;
44
+ font-weight: $font-weight-semibold;
45
+ letter-spacing: $letter-spacing-tight;
46
+ color: var(--fg);
47
+ }
48
+
49
+ &__description {
50
+ font-size: $font-size-sm;
51
+ color: var(--fg-muted);
52
+ margin-top: $spacing-3xs;
53
+ }
54
+
55
+ &__footer {
56
+ text-align: center;
57
+ margin-top: $spacing-lg;
58
+ padding-top: $spacing-lg;
59
+ border-top: 1px solid var(--border);
60
+ font-size: $font-size-sm;
61
+ color: var(--fg-muted);
62
+ }
63
+
64
+ &__back {
65
+ display: inline-flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ gap: $spacing-2xs;
69
+ font-size: $font-size-sm;
70
+ color: var(--fg-muted);
71
+ text-decoration: none;
72
+
73
+ &:hover {
74
+ color: var(--fg);
75
+ }
76
+ }
77
+
78
+ &__icon {
79
+ display: inline-flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ width: 4rem;
83
+ height: 4rem;
84
+ border-radius: $radius-full;
85
+ background-color: var(--bg-muted);
86
+ color: var(--fg-muted);
87
+
88
+ &--success {
89
+ background-color: var(--success-muted);
90
+ color: var(--success);
91
+ }
92
+
93
+ &--error {
94
+ background-color: var(--destructive-muted);
95
+ color: var(--destructive);
96
+ }
97
+ }
98
+ }