@helpwave/hightide 0.5.4 → 0.6.1

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 (43) hide show
  1. package/dist/index.d.mts +1265 -1024
  2. package/dist/index.d.ts +1265 -1024
  3. package/dist/index.js +7194 -6197
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +6906 -5923
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/style/globals.css +2554 -903
  8. package/dist/style/uncompiled/theme/colors/basic.css +1 -0
  9. package/dist/style/uncompiled/theme/colors/component.css +5 -8
  10. package/dist/style/uncompiled/theme/colors/semantic.css +17 -9
  11. package/dist/style/uncompiled/theme/colors/utilities.css +40 -10
  12. package/dist/style/uncompiled/theme/components/avatar.css +74 -0
  13. package/dist/style/uncompiled/theme/components/breadcrumb.css +15 -0
  14. package/dist/style/uncompiled/theme/components/button.css +65 -0
  15. package/dist/style/uncompiled/theme/components/card.css +13 -0
  16. package/dist/style/uncompiled/theme/components/checkbox.css +49 -0
  17. package/dist/style/uncompiled/theme/components/chip.css +22 -0
  18. package/dist/style/uncompiled/theme/components/day-picker.css +46 -0
  19. package/dist/style/uncompiled/theme/components/dialog.css +52 -0
  20. package/dist/style/uncompiled/theme/components/drawer.css +150 -0
  21. package/dist/style/uncompiled/theme/components/expandable.css +50 -0
  22. package/dist/style/uncompiled/theme/components/expansion-icon.css +13 -0
  23. package/dist/style/uncompiled/theme/components/form-field.css +17 -0
  24. package/dist/style/uncompiled/theme/components/general.css +28 -0
  25. package/dist/style/uncompiled/theme/components/index.css +23 -0
  26. package/dist/style/uncompiled/theme/components/input-elements.css +53 -0
  27. package/dist/style/uncompiled/theme/components/link.css +5 -0
  28. package/dist/style/uncompiled/theme/components/property.css +102 -0
  29. package/dist/style/uncompiled/theme/components/scrollbar.css +55 -0
  30. package/dist/style/uncompiled/theme/components/table.css +66 -0
  31. package/dist/style/uncompiled/theme/components/tabswitcher.css +23 -0
  32. package/dist/style/uncompiled/theme/components/textarea.css +5 -0
  33. package/dist/style/uncompiled/theme/components/time-picker.css +9 -0
  34. package/dist/style/uncompiled/theme/components/tooltip.css +56 -0
  35. package/dist/style/uncompiled/theme/index.css +6 -5
  36. package/dist/style/uncompiled/theme/variables.css +6 -0
  37. package/dist/style/uncompiled/utitlity/animation.css +149 -130
  38. package/dist/style/uncompiled/utitlity/coloring.css +16 -20
  39. package/dist/style/uncompiled/utitlity/focus.css +27 -0
  40. package/dist/style/uncompiled/utitlity/index.css +2 -1
  41. package/dist/style/uncompiled/utitlity/shadow.css +45 -24
  42. package/package.json +4 -3
  43. package/dist/style/uncompiled/theme/components.css +0 -290
@@ -1,21 +1,158 @@
1
+ @keyframes fade-in {
2
+ 0% {
3
+ opacity: 0;
4
+ }
5
+ 100% {
6
+ opacity: 1;
7
+ }
8
+ }
9
+
10
+ @-webkit-keyframes bigLeftUp {
11
+ 0%,
12
+ 25% {
13
+ stroke-dashoffset: 1000;
14
+ }
15
+ 50%,
16
+ 75%,
17
+ 100% {
18
+ stroke-dashoffset: 0;
19
+ }
20
+ }
21
+ @keyframes bigLeftUp {
22
+ 0%,
23
+ 25% {
24
+ stroke-dashoffset: 1000;
25
+ }
26
+ 50%,
27
+ 75%,
28
+ 100% {
29
+ stroke-dashoffset: 0;
30
+ }
31
+ }
32
+
33
+ @-webkit-keyframes bigRightDown {
34
+ 0%,
35
+ 25%,
36
+ 50% {
37
+ stroke-dashoffset: 0;
38
+ }
39
+ 75%,
40
+ 100% {
41
+ stroke-dashoffset: -1000;
42
+ }
43
+ }
44
+ @keyframes bigRightDown {
45
+ 0%,
46
+ 25%,
47
+ 50% {
48
+ stroke-dashoffset: 0;
49
+ }
50
+ 75%,
51
+ 100% {
52
+ stroke-dashoffset: -1000;
53
+ }
54
+ }
55
+
56
+ @-webkit-keyframes smallLeftUp {
57
+ 0%,
58
+ 25%,
59
+ 50% {
60
+ stroke-dashoffset: 1000;
61
+ }
62
+ 75%,
63
+ 100% {
64
+ stroke-dashoffset: 0;
65
+ }
66
+ }
67
+ @keyframes smallLeftUp {
68
+ 0%,
69
+ 25%,
70
+ 50% {
71
+ stroke-dashoffset: 1000;
72
+ }
73
+ 75%,
74
+ 100% {
75
+ stroke-dashoffset: 0;
76
+ }
77
+ }
78
+
79
+ @-webkit-keyframes smallRightDown {
80
+ 0%,
81
+ 25% {
82
+ stroke-dashoffset: 0;
83
+ }
84
+ 50%,
85
+ 75%,
86
+ 100% {
87
+ stroke-dashoffset: -1000;
88
+ }
89
+ }
90
+ @keyframes smallRightDown {
91
+ 0%,
92
+ 25% {
93
+ stroke-dashoffset: 0;
94
+ }
95
+ 50%,
96
+ 75%,
97
+ 100% {
98
+ stroke-dashoffset: -1000;
99
+ }
100
+ }
101
+
102
+ @keyframes pop-in {
103
+ 0% {
104
+ opacity: 0;
105
+ scale: 100%; /* Necessary so that the FloatingContainer picks up the correct position */
106
+ }
107
+ 1% {
108
+ opacity: 0;
109
+ scale: 80%;
110
+ }
111
+ 100% {
112
+ opacity: 1;
113
+ scale: 100%;
114
+ }
115
+ }
116
+
117
+ @keyframes pop-out {
118
+ 0% {
119
+ opacity: 1;
120
+ scale: 100%;
121
+ }
122
+ 100% {
123
+ opacity: 0;
124
+ scale: 80%;
125
+ }
126
+ }
127
+
128
+ @keyframes shimmer {
129
+ 0% {
130
+ left: -100%;
131
+ }
132
+ 100% {
133
+ left: 100%;
134
+ }
135
+ }
136
+
1
137
  @utility animation-delay-* {
2
138
  animation-delay: calc(--value(number) * 1ms);
3
139
  }
4
140
 
5
141
  @utility animate-pop-in {
6
- animation: pop-in 0.2s ease-in-out;
142
+ animation: pop-in var(--animation-duration-in, 250ms) ease-in-out forwards;
7
143
  }
8
144
 
9
145
  @utility animate-pop-out {
10
- animation: pop-out 0.2s ease-in-out forwards;
146
+ animation: pop-out var(--animation-duration-out, 170ms) ease-in-out forwards;
11
147
  }
12
148
 
13
149
  @utility animate-fade-in {
14
- animation: fade-in 0.2s ease-in-out;
150
+ animation: fade-in var(--animation-duration-in, 250ms) ease-in-out;
15
151
  }
16
152
 
17
153
  @utility animate-fade-out {
18
- animation: fade-out 0.2s ease-in-out forwards;
154
+ animation: fade-in var(--animation-duration-in, 170ms) ease-in-out forwards
155
+ reverse;
19
156
  }
20
157
 
21
158
  @utility animate-fade {
@@ -43,139 +180,21 @@
43
180
  }
44
181
 
45
182
  @utility animate-tooltip-fade-in {
46
- animation: fade-in 0.2s ease-in-out forwards;
47
- -webkit-animation: fade-in 0.2s ease-in-out forwards;
183
+ animation: fade-in var(--animation-duration-in, 250ms) ease-in-out 1 forwards;
184
+ -webkit-animation: fade-in var(--animation-duration-in, 250ms) ease-in-out 1
185
+ forwards;
48
186
  }
49
187
 
50
188
  @utility animate-tooltip-fade-out {
51
- animation: fade-in 0.2s ease-in-out forwards;
52
- -webkit-animation: fade-in 0.2s ease-in-out forwards;
189
+ animation: fade-in var(--animation-duration-in, 170ms) ease-in-out 1 reverse
190
+ forwards;
191
+ -webkit-animation: fade-in var(--animation-duration-in, 170ms) ease-in-out 1
192
+ reverse forwards;
53
193
  }
54
194
 
55
195
  @layer utilities {
56
- @keyframes fade-in {
57
- 0% {
58
- opacity: 0;
59
- }
60
- 100% {
61
- opacity: 1;
62
- }
63
- }
64
-
65
- @keyframes fade-out {
66
- 0% {
67
- opacity: 1;
68
- }
69
- 100% {
70
- opacity: 0;
71
- }
72
- }
73
-
74
- @-webkit-keyframes bigLeftUp {
75
- 0%, 25% {
76
- stroke-dashoffset: 1000;
77
- }
78
- 50%, 75%, 100% {
79
- stroke-dashoffset: 0;
80
- }
81
- }
82
- @keyframes bigLeftUp {
83
- 0%, 25% {
84
- stroke-dashoffset: 1000;
85
- }
86
- 50%, 75%, 100% {
87
- stroke-dashoffset: 0;
88
- }
89
- }
90
-
91
- @-webkit-keyframes bigRightDown {
92
- 0%, 25%, 50% {
93
- stroke-dashoffset: 0;
94
- }
95
- 75%, 100% {
96
- stroke-dashoffset: -1000;
97
- }
98
- }
99
- @keyframes bigRightDown {
100
- 0%, 25%, 50% {
101
- stroke-dashoffset: 0;
102
- }
103
- 75%, 100% {
104
- stroke-dashoffset: -1000;
105
- }
106
- }
107
-
108
- @-webkit-keyframes smallLeftUp {
109
- 0%, 25%, 50% {
110
- stroke-dashoffset: 1000;
111
- }
112
- 75%, 100% {
113
- stroke-dashoffset: 0;
114
- }
115
- }
116
- @keyframes smallLeftUp {
117
- 0%, 25%, 50% {
118
- stroke-dashoffset: 1000;
119
- }
120
- 75%, 100% {
121
- stroke-dashoffset: 0;
122
- }
123
- }
124
-
125
- @-webkit-keyframes smallRightDown {
126
- 0%, 25% {
127
- stroke-dashoffset: 0;
128
- }
129
- 50%, 75%, 100% {
130
- stroke-dashoffset: -1000;
131
- }
132
- }
133
- @keyframes smallRightDown {
134
- 0%, 25% {
135
- stroke-dashoffset: 0;
136
- }
137
- 50%, 75%, 100% {
138
- stroke-dashoffset: -1000;
139
- }
140
- }
141
-
142
- @keyframes pop-in {
143
- 0% {
144
- opacity: 0;
145
- scale: 100%; /* Necessary so that the FloatingContainer picks up the correct position */
146
- }
147
- 1% {
148
- opacity: 0;
149
- scale: 80%;
150
- }
151
- 100% {
152
- opacity: 1;
153
- scale: 100%;
154
- }
155
- }
156
-
157
- @keyframes pop-out {
158
- 0% {
159
- opacity: 1;
160
- scale: 100%;
161
- }
162
- 100% {
163
- opacity: 0;
164
- scale: 80%;
165
- }
166
- }
167
-
168
- @keyframes shimmer {
169
- 0% {
170
- left: -100%;
171
- }
172
- 100% {
173
- left: 100%;
174
- }
175
- }
176
-
177
196
  .shimmer::before {
178
- content: '';
197
+ content: "";
179
198
  position: absolute;
180
199
  top: 0;
181
200
  left: -100%;
@@ -1,53 +1,45 @@
1
1
  @utility coloring-solid {
2
- @apply
3
- bg-[var(--coloring-solid-color,var(--coloring-color))]
2
+ @apply bg-[var(--coloring-solid-color,var(--coloring-color))]
4
3
  text-[var(--coloring-solid-text,var(--coloring-on-color))];
5
4
  }
6
5
 
7
6
  @utility coloring-solid-hover {
8
- @apply
9
- coloring-solid
7
+ @apply coloring-solid
10
8
  hover:bg-[var(--coloring-solid-hover,var(--coloring-hover))];
11
9
  }
12
10
 
13
11
  @utility coloring-tonal {
14
- @apply
15
- bg-[var(--coloring-color)]/20
16
- text-[var(--coloring-color)];
12
+ @apply bg-[var(--coloring-tonal-background,var(--coloring-tonal,var(--coloring-color)))]/20
13
+ text-[var(--coloring-tonal-text,var(--coloring-tonal,var(--coloring-color)))];
17
14
  }
18
15
 
19
16
  @utility coloring-tonal-hover {
20
- @apply
21
- coloring-tonal
22
- hover:bg-[var(--coloring-color)]/30;
17
+ @apply coloring-tonal
18
+ hover:bg-[var(--coloring-tonal-hover,var(--coloring-tonal-background,var(--coloring-tonal,var(--coloring-color))))]/30;
23
19
  }
24
20
 
25
21
  @utility coloring-text {
26
- @apply
27
- text-[var(--coloring-text,var(--coloring-color))];
22
+ @apply text-[var(--coloring-text,var(--coloring-color))];
28
23
  }
29
24
 
30
25
  @utility coloring-text-hover {
31
- @apply
32
- coloring-text
26
+ @apply coloring-text
33
27
  hover:bg-[var(--coloring-text-hover,var(--coloring-text,var(--coloring-color)))]/20;
34
28
  }
35
29
 
36
30
  @utility coloring-outline {
37
- @apply
38
- border-1
31
+ @apply border-2
39
32
  border-[var(--coloring-border,var(--coloring-outline,var(--coloring-color)))]
40
33
  text-[var(--coloring-outline,var(--coloring-color))];
41
34
  }
42
35
 
43
36
  @utility coloring-outline-hover {
44
- @apply
45
- coloring-outline
37
+ @apply coloring-outline
46
38
  hover:border-[var(--coloring-border-hover,--coloring-hover)]
47
39
  hover:text-[var(--coloring-outline-hover,var(--coloring-hover))];
48
40
  }
49
41
 
50
- @utility reset-coloring-variables {
42
+ @utility coloring-reset-variables {
51
43
  --coloring-color: initial;
52
44
  --coloring-on-color: initial;
53
45
  --coloring-hover: initial;
@@ -55,4 +47,8 @@
55
47
  --coloring-text-hover: initial;
56
48
  --coloring-outline: initial;
57
49
  --coloring-outline-hover: initial;
58
- }
50
+ --coloring-tonal: initial;
51
+ --coloring-tonal-background: initial;
52
+ --coloring-tonal-text: initial;
53
+ --coloring-tonal-hover: initial;
54
+ }
@@ -0,0 +1,27 @@
1
+ @utility focus-style-outline {
2
+ transition: outline-offset var(--animation-duration-in, 250ms);
3
+ outline-offset: 0;
4
+
5
+ &:focus-visible {
6
+ @apply outline-solid outline-2 outline-focus;
7
+ outline-offset: calc(var(--spacing) * 0.25);
8
+ }
9
+ }
10
+
11
+ @utility focus-style-border {
12
+ &:focus-visible {
13
+ @apply border-2 border-focus;
14
+ }
15
+ }
16
+
17
+ @utility focus-style-default {
18
+ &:focus-visible:not(.focus-style-none) {
19
+ @apply focus-style-outline;
20
+ }
21
+ }
22
+
23
+ @utility focus-style-none {
24
+ &:focus-visible {
25
+ @apply outline-none;
26
+ }
27
+ }
@@ -3,4 +3,5 @@
3
3
  @import "./animation.css";
4
4
  @import "./shadow.css";
5
5
  @import "./sizing.css";
6
- @import "./coloring.css";
6
+ @import "./coloring.css";
7
+ @import './focus.css';
@@ -1,31 +1,38 @@
1
1
  @utility shadow-side {
2
2
  box-shadow: var(--shadow-right, 0 0 0 transparent),
3
- var(--shadow-left, 0 0 0 transparent),
4
- var(--shadow-top, 0 0 0 transparent),
3
+ var(--shadow-left, 0 0 0 transparent), var(--shadow-top, 0 0 0 transparent),
5
4
  var(--shadow-bottom, 0 0 0 transparent);
6
5
  }
7
6
 
8
7
  @utility shadow-r-* {
9
- --shadow-right: calc(--value(number) * 1px) 0 calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
8
+ --shadow-right: calc(--value(number) * 1px) 0 calc(--value(number) * 1px) 0
9
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
10
10
  }
11
11
 
12
12
  @utility shadow-l-* {
13
- --shadow-left: calc(--value(number) * -1px) 0 calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
13
+ --shadow-left: calc(--value(number) * -1px) 0 calc(--value(number) * 1px) 0
14
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
14
15
  }
15
16
 
16
17
  @utility shadow-t-* {
17
- --shadow-top: 0 calc(--value(number) * -1px) calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
18
+ --shadow-top: 0 calc(--value(number) * -1px) calc(--value(number) * 1px) 0
19
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
18
20
  }
19
21
 
20
22
  @utility shadow-b-* {
21
- --shadow-bottom: 0 calc(--value(number) * 1px) calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
23
+ --shadow-bottom: 0 calc(--value(number) * 1px) calc(--value(number) * 1px) 0
24
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
22
25
  }
23
26
 
24
27
  @utility shadow-around-* {
25
- --shadow-right: calc(--value(number) * 1px) 0 calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
26
- --shadow-left: calc(--value(number) * -1px) 0 calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
27
- --shadow-top: 0 calc(--value(number) * -1px) calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
28
- --shadow-bottom: 0 calc(--value(number) * 1px) calc(--value(number) * 1px) 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
28
+ --shadow-right: calc(--value(number) * 1px) 0 calc(--value(number) * 1px) 0
29
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
30
+ --shadow-left: calc(--value(number) * -1px) 0 calc(--value(number) * 1px) 0
31
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
32
+ --shadow-top: 0 calc(--value(number) * -1px) calc(--value(number) * 1px) 0
33
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
34
+ --shadow-bottom: 0 calc(--value(number) * 1px) calc(--value(number) * 1px) 0
35
+ var(--tw-shadow-color, rgb(0 0 0 / 2%));
29
36
  @apply shadow-side;
30
37
  }
31
38
 
@@ -34,23 +41,37 @@
34
41
  }
35
42
 
36
43
  @utility shadow-hard {
37
- --tw-shadow-color: rgba(0, 0, 0, 0.10);
44
+ --tw-shadow-color: rgba(0, 0, 0, 0.1);
38
45
  }
39
46
 
40
- @layer utilities {
41
- .shadow-around {
42
- @apply shadow-around-2;
43
- }
47
+ @utility shadow-around {
48
+ --shadow-right: 2px 0 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
49
+ --shadow-left: -2px 0 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
50
+ --shadow-top: 0 -2px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
51
+ --shadow-bottom: 0 2px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
52
+ @apply shadow-side;
53
+ }
44
54
 
45
- .shadow-around-md {
46
- @apply shadow-around-5;
47
- }
55
+ @utility shadow-around-md {
56
+ --shadow-right: 5px 0 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
57
+ --shadow-left: -5px 0 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
58
+ --shadow-top: 0 -5px 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
59
+ --shadow-bottom: 0 5px 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
60
+ @apply shadow-side;
61
+ }
48
62
 
49
- .shadow-around-lg {
50
- @apply shadow-around-10;
51
- }
63
+ @utility shadow-around-lg {
64
+ --shadow-right: 10px 0 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
65
+ --shadow-left: -10px 0 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
66
+ --shadow-top: 0 -10px 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
67
+ --shadow-bottom: 0 10px 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
68
+ @apply shadow-side;
69
+ }
52
70
 
53
- .shadow-around-xl {
54
- @apply shadow-around-20;
55
- }
71
+ @utility shadow-around-xl {
72
+ --shadow-right: 20px 0 20px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
73
+ --shadow-left: -20px 0 20px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
74
+ --shadow-top: 0 -20px 20px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
75
+ --shadow-bottom: 0 20px 20px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
76
+ @apply shadow-side;
56
77
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/helpwave/hightide.git"
8
8
  },
9
9
  "license": "MPL-2.0",
10
- "version": "0.5.4",
10
+ "version": "0.6.1",
11
11
  "files": [
12
12
  "dist"
13
13
  ],
@@ -43,7 +43,6 @@
43
43
  "@tanstack/react-table": "8.21.3",
44
44
  "clsx": "2.1.1",
45
45
  "lucide-react": "0.561.0",
46
- "postcss": "8.5.3",
47
46
  "react": "19.2.3",
48
47
  "react-dom": "19.2.3",
49
48
  "tailwindcss": "4.1.18"
@@ -65,10 +64,12 @@
65
64
  "@types/react-dom": "19.2.3",
66
65
  "@types/tinycolor2": "1.4.6",
67
66
  "@vitest/mocker": "^4.0.16",
67
+ "autoprefixer": "^10.4.23",
68
68
  "eslint": "9.31.0",
69
69
  "eslint-plugin-storybook": "10.1.9",
70
70
  "jest": "30.2.0",
71
- "storybook": "10.1.9",
71
+ "postcss": "^8.5.6",
72
+ "storybook": "10.1.10",
72
73
  "ts-jest": "29.4.5",
73
74
  "tsup": "8.5.0",
74
75
  "typescript": "5.7.2",