@helpwave/hightide 0.11.0 → 0.12.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.
@@ -71,4 +71,37 @@
71
71
  [data-name="avatar-group-more"] {
72
72
  @apply flex-row-2 truncate items-center text-[calc(var(--size)*2/3)];
73
73
  }
74
+
75
+ [data-name="avatar-with-status"] {
76
+ @apply relative inline-flex;
77
+ }
78
+
79
+ [data-name="avatar-with-status-dot"] {
80
+ @apply absolute right-0 bottom-0 z-1 rounded-full border-solid;
81
+ border-color: var(--color-background);
82
+
83
+ &[data-size="xs"] {
84
+ @apply size-3 border-[1.5px];
85
+ }
86
+
87
+ &[data-size="sm"] {
88
+ @apply size-3.5 border-2;
89
+ }
90
+
91
+ &[data-size="md"] {
92
+ @apply size-4 border-2;
93
+ }
94
+
95
+ &[data-size="lg"] {
96
+ @apply size-5 border-2;
97
+ }
98
+
99
+ &[data-online] {
100
+ background-color: var(--color-positive);
101
+ }
102
+
103
+ &:not([data-online]) {
104
+ background-color: var(--color-negative);
105
+ }
106
+ }
74
107
  }
@@ -1,13 +1,84 @@
1
1
  @layer components {
2
- [data-name="card-sm"] {
3
- @apply flex-col-2 surface coloring-solid px-2 py-1 rounded;
2
+ [data-name="card"] {
3
+ @apply flex-col-1 w-full min-w-0 surface coloring-solid shadow-md;
4
+
5
+ &[data-size="sm"] {
6
+ @apply px-2 py-1 rounded;
7
+ }
8
+
9
+ &[data-size="md"] {
10
+ @apply px-4 py-2 rounded-md;
11
+ }
12
+
13
+ &[data-size="lg"] {
14
+ @apply px-8 py-4 rounded-lg;
15
+ }
4
16
  }
5
17
 
6
- [data-name="card-md"] {
7
- @apply flex-col-2 bg-surface text-on-surface px-4 py-2 rounded-md;
18
+ [data-name="action-card"],
19
+ [data-name="navigation-card"] {
20
+ @apply flex-col-1 w-full min-w-0 surface coloring-solid-hover shadow-md;
21
+
22
+ &[data-size="sm"] {
23
+ @apply px-2 py-1 rounded;
24
+ }
25
+
26
+ &[data-size="md"] {
27
+ @apply px-4 py-2 rounded-md;
28
+ }
29
+
30
+ &[data-size="lg"] {
31
+ @apply px-8 py-4 rounded-lg;
32
+ }
33
+ }
34
+
35
+ [data-name="card-header"] {
36
+ @apply flex-row-2 items-center w-full min-w-0;
37
+ }
38
+
39
+ [data-name="card-content"] {
40
+ @apply flex-col-1 min-w-0 flex-1;
41
+ }
42
+
43
+ [data-name="card-action"] {
44
+ @apply flex-col-0 items-center justify-center shrink-0 text-description;
45
+ }
46
+
47
+ [data-name="navigation-card-action"] {
48
+ @apply flex-col-0 items-center justify-center shrink-0 text-description transition-colors group-hover/card:text-on-surface;
49
+ }
50
+
51
+ [data-name="card-title"] {
52
+ @apply typography-title-md;
53
+ }
54
+
55
+ [data-name="card"][data-size="sm"] [data-name="card-title"],
56
+ [data-name="action-card"][data-size="sm"] [data-name="card-title"],
57
+ [data-name="navigation-card"][data-size="sm"] [data-name="card-title"] {
58
+ @apply typography-title-sm;
59
+ }
60
+
61
+ [data-name="card"][data-size="lg"] [data-name="card-title"],
62
+ [data-name="action-card"][data-size="lg"] [data-name="card-title"],
63
+ [data-name="navigation-card"][data-size="lg"] [data-name="card-title"] {
64
+ @apply typography-title-lg;
65
+ }
66
+
67
+ [data-name="card-description"] {
68
+ @apply text-description typography-body-md;
69
+ }
70
+
71
+ [data-name="action-card"] {
72
+ &:not([data-disabled]) {
73
+ @apply cursor-pointer;
74
+ }
75
+
76
+ &[data-disabled] {
77
+ @apply cursor-not-allowed disabled;
78
+ }
8
79
  }
9
80
 
10
- [data-name="card-lg"] {
11
- @apply flex-col-2 bg-surface text-on-surface px-8 py-4 rounded-lg;
81
+ [data-name="navigation-card"] {
82
+ @apply cursor-pointer;
12
83
  }
13
- }
84
+ }
@@ -1,6 +1,7 @@
1
1
  @layer components {
2
2
  [data-name="checkbox"] {
3
- @apply flex-col-0 items-center justify-center rounded border-2;
3
+ @apply flex-col-0 items-center justify-center border-2;
4
+ @apply rounded data-[rounded]:rounded-full;
4
5
  transition:
5
6
  border-color var(--animation-duration-in, 250ms) ease-in-out,
6
7
  box-shadow var(--animation-duration-in, 250ms) ease-in-out,
@@ -28,4 +28,6 @@
28
28
  @import "./general.css";
29
29
  @import "./icon-button.css";
30
30
  @import "./date-time-input.css";
31
- @import "./process-model.css";
31
+ @import "./process-model.css";
32
+ @import "./vertical-navigation.css";
33
+ @import "./app-page.css";
@@ -24,7 +24,7 @@
24
24
  @apply bg-table-header-background text-description font-bold;
25
25
 
26
26
  &[data-sticky] {
27
- @apply sticky top-0;
27
+ @apply sticky top-0 z-10;
28
28
  }
29
29
  }
30
30
 
@@ -0,0 +1,42 @@
1
+ @layer components {
2
+ [data-name="vertical-navigation-tree"] {
3
+ @apply flex-col-2 list-none m-0 p-0;
4
+ }
5
+
6
+ [data-name="vertical-navigation-node"] {
7
+ @apply list-none m-0 p-0 rounded-md outline-none cursor-pointer;
8
+ }
9
+
10
+ [data-name="vertical-navigation-group"] {
11
+ @apply flex-col-0 list-none m-0 my-0.5 ml-2.5 pl-2.5 border-l border-border;
12
+ }
13
+
14
+ [data-name="vertical-navigation-node-header"],
15
+ [data-name="vertical-navigation-item"] {
16
+ @apply flex-row-1 items-center rounded-md min-h-9 min-w-0 px-2.5 py-1.5;
17
+
18
+ &:hover, &:focus-visible {
19
+ @apply bg-primary/15;
20
+ }
21
+ }
22
+
23
+ [data-name="vertical-navigation-node-header"] {
24
+ @apply justify-between;
25
+ transition: var(--focus-outline-transition);
26
+
27
+ &[data-active] {
28
+ @apply bg-primary/15;
29
+
30
+ &:is(:where(.group\/tree-node):focus-visible *) {
31
+ outline: var(--focus-outline);
32
+ outline-offset: var(--focus-outline-offset);
33
+ box-shadow: var(--focus-box-shadow);
34
+ border-color: var(--focus-border-color);
35
+ }
36
+ }
37
+ }
38
+
39
+ [data-name="vertical-navigation-item-link"] {
40
+ @apply flex-row-2 w-full items-center justify-between no-underline;
41
+ }
42
+ }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "license": "MPL-2.0",
13
- "version": "0.11.0",
13
+ "version": "0.12.0",
14
14
  "files": [
15
15
  "dist"
16
16
  ],
@@ -100,4 +100,4 @@
100
100
  "postcss": "8.5.15",
101
101
  "js-yaml": "4.2.0"
102
102
  }
103
- }
103
+ }