@helpwave/hightide 0.7.0 → 0.8.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 (38) hide show
  1. package/dist/index.d.mts +380 -523
  2. package/dist/index.d.ts +380 -523
  3. package/dist/index.js +3320 -3068
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +3258 -2990
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/style/globals.css +866 -594
  8. package/dist/style/uncompiled/theme/colors/component.css +0 -5
  9. package/dist/style/uncompiled/theme/colors/semantic.css +2 -1
  10. package/dist/style/uncompiled/theme/components/avatar.css +5 -5
  11. package/dist/style/uncompiled/theme/components/button.css +35 -49
  12. package/dist/style/uncompiled/theme/components/card.css +3 -3
  13. package/dist/style/uncompiled/theme/components/checkbox.css +2 -2
  14. package/dist/style/uncompiled/theme/components/date-time-input.css +9 -0
  15. package/dist/style/uncompiled/theme/components/day-picker.css +2 -2
  16. package/dist/style/uncompiled/theme/components/dialog.css +3 -3
  17. package/dist/style/uncompiled/theme/components/form-field.css +4 -4
  18. package/dist/style/uncompiled/theme/components/general.css +1 -1
  19. package/dist/style/uncompiled/theme/components/icon-button.css +38 -0
  20. package/dist/style/uncompiled/theme/components/index.css +4 -0
  21. package/dist/style/uncompiled/theme/components/input-elements.css +2 -16
  22. package/dist/style/uncompiled/theme/components/link.css +1 -1
  23. package/dist/style/uncompiled/theme/components/pop-up.css +1 -1
  24. package/dist/style/uncompiled/theme/components/property.css +1 -1
  25. package/dist/style/uncompiled/theme/components/select.css +19 -0
  26. package/dist/style/uncompiled/theme/components/switch.css +56 -0
  27. package/dist/style/uncompiled/theme/components/table.css +11 -10
  28. package/dist/style/uncompiled/theme/components/tabswitcher.css +14 -6
  29. package/dist/style/uncompiled/theme/components/toggleable-intput.css +10 -0
  30. package/dist/style/uncompiled/theme/components/tooltip.css +2 -2
  31. package/dist/style/uncompiled/theme/element.css +50 -0
  32. package/dist/style/uncompiled/theme/index.css +2 -2
  33. package/dist/style/uncompiled/theme/variables.css +25 -0
  34. package/dist/style/uncompiled/utitlity/animation.css +5 -5
  35. package/dist/style/uncompiled/utitlity/coloring.css +3 -3
  36. package/dist/style/uncompiled/utitlity/focus.css +21 -15
  37. package/package.json +7 -8
  38. package/dist/style/uncompiled/theme/breakpoints.css +0 -7
@@ -3,4 +3,29 @@
3
3
  --drawer-indent: calc(4 * var(--spacing));
4
4
  --animation-duration-in: 250ms;
5
5
  --animation-duration-out: 170ms;
6
+
7
+ --coloring-outline-width: calc(0.5 * var(--spacing));
6
8
  }
9
+
10
+ @theme {
11
+ /*
12
+ * breakpoints
13
+ */
14
+ --breakpoint-tablet: 48rem; /* 768px for 16px font-size */
15
+ --breakpoint-desktop: 64rem; /* 1024px for 16px font-size*/
16
+
17
+ --spacing-element-xs: calc(7 * var(--spacing));
18
+ --spacing-element-sm: calc(9 * var(--spacing));
19
+ --spacing-element-md: calc(11 * var(--spacing)); /* This should always be at least 44px on standard settings */
20
+ --spacing-element-lg: calc(13 * var(--spacing));
21
+
22
+ --spacing-element-padding-xs: calc((var(--spacing-element-xs) - 4 * var(--spacing)) / 2);
23
+ --spacing-element-padding-sm: calc((var(--spacing-element-sm) - 6 * var(--spacing)) / 2);
24
+ --spacing-element-padding-md: calc((var(--spacing-element-md) - 6 * var(--spacing)) / 2);
25
+ --spacing-element-padding-lg: calc((var(--spacing-element-lg) - 8 * var(--spacing)) / 2);
26
+
27
+ --spacing-element-padding-direction-xs: calc(var(--spacing-element-padding-xs) * 1.5);
28
+ --spacing-element-padding-direction-sm: calc(var(--spacing-element-padding-sm) * 2);
29
+ --spacing-element-padding-direction-md: calc(var(--spacing-element-padding-md) * 2);
30
+ --spacing-element-padding-direction-lg: calc(var(--spacing-element-padding-lg) * 3);
31
+ }
@@ -25,7 +25,7 @@
25
25
  50% {
26
26
  stroke-dashoffset: 0;
27
27
  }
28
- 75%,
28
+ 70%,
29
29
  100% {
30
30
  stroke-dashoffset: -1000;
31
31
  }
@@ -116,19 +116,19 @@
116
116
  }
117
117
 
118
118
  @utility animate-wave-big-left-up {
119
- animation: bigLeftUp 1.7s ease-in infinite normal;
119
+ animation: bigLeftUp var(--helpwave-loading-duration, 1.7s) ease-in infinite normal;
120
120
  }
121
121
 
122
122
  @utility animate-wave-big-right-down {
123
- animation: bigRightDown 1.7s ease-in infinite reverse;
123
+ animation: bigRightDown var(--helpwave-loading-duration, 1.7s) ease-in infinite reverse;
124
124
  }
125
125
 
126
126
  @utility animate-wave-small-left-up {
127
- animation: smallLeftUp 1.7s ease-in infinite normal;
127
+ animation: smallLeftUp var(--helpwave-loading-duration, 1.7s) ease-in infinite normal;
128
128
  }
129
129
 
130
130
  @utility animate-wave-small-right-down {
131
- animation: smallRightDown 1.7s ease-in infinite reverse;
131
+ animation: smallRightDown var(--helpwave-loading-duration, 1.7s) ease-in infinite reverse;
132
132
  }
133
133
 
134
134
  @layer utilities {
@@ -28,9 +28,9 @@
28
28
  }
29
29
 
30
30
  @utility coloring-outline {
31
- @apply border-2
32
- border-[var(--coloring-border,var(--coloring-outline,var(--coloring-color)))]
33
- text-[var(--coloring-outline,var(--coloring-color))];
31
+ border-width: var(--coloring-outline-width, 0.125rem);
32
+ @apply border-[var(--coloring-border,var(--coloring-outline,var(--coloring-color)))];
33
+ @apply text-[var(--coloring-outline,var(--coloring-color))];
34
34
  }
35
35
 
36
36
  @utility coloring-outline-hover {
@@ -1,27 +1,33 @@
1
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
- }
2
+ --focus-outline: 2px solid var(--color-focus);
3
+ --focus-outline-offset: calc(var(--spacing) * 0.25);
4
+ --focus-outline-transition: outline-offset var(--animation-duration-in, 250ms);
9
5
  }
10
6
 
11
7
  @utility focus-style-border {
12
- &:focus-visible {
13
- @apply border-2 border-focus;
14
- }
8
+ --focus-border-color: var(--color-focus);
15
9
  }
16
10
 
17
- @utility focus-style-default {
18
- &:focus-visible:not(.focus-style-none) {
19
- @apply focus-style-outline;
20
- }
11
+ @utility focus-style-shadow {
12
+ --focus-box-shadow: 0 0 8px 2px color-mix(in srgb, var(--color-focus) 70%, transparent);
21
13
  }
22
14
 
23
15
  @utility focus-style-none {
16
+ --focus-outline: none;
17
+ --focus-outline-offset: 0;
18
+ --focus-outline-transition: none;
19
+ --focus-box-shadow: none;
20
+ --focus-border-color: inherit;
21
+ }
22
+
23
+
24
+ @utility focusable {
25
+ transition: var(--focus-outline-transition);
26
+
24
27
  &:focus-visible {
25
- @apply outline-none;
28
+ outline: var(--focus-outline);
29
+ outline-offset: var(--focus-outline-offset);
30
+ box-shadow: var(--focus-box-shadow);
31
+ border-color: var(--focus-border-color);
26
32
  }
27
33
  }
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.7.0",
10
+ "version": "0.8.0",
11
11
  "files": [
12
12
  "dist"
13
13
  ],
@@ -54,9 +54,9 @@
54
54
  "@babel/preset-typescript": "7.26.0",
55
55
  "@faker-js/faker": "10.1.0",
56
56
  "@helpwave/eslint-config": "0.0.11",
57
- "@storybook/addon-docs": "10.1.9",
58
- "@storybook/addon-links": "10.1.9",
59
- "@storybook/nextjs": "10.1.9",
57
+ "@storybook/addon-docs": "10.2.3",
58
+ "@storybook/addon-links": "10.2.3",
59
+ "@storybook/nextjs": "^10.2.3",
60
60
  "@tailwindcss/postcss": "4.1.18",
61
61
  "@types/jest": "30.0.0",
62
62
  "@types/node": "20.17.10",
@@ -66,11 +66,10 @@
66
66
  "@vitest/mocker": "4.0.16",
67
67
  "autoprefixer": "10.4.23",
68
68
  "eslint": "9.31.0",
69
- "eslint-plugin-storybook": "10.1.9",
69
+ "eslint-plugin-storybook": "10.2.3",
70
70
  "jest": "30.2.0",
71
- "postcss": "^8.5.6",
72
- "react-devtools": "7.0.1",
73
- "storybook": "10.1.10",
71
+ "postcss": "8.5.6",
72
+ "storybook": "10.2.3",
74
73
  "ts-jest": "29.4.5",
75
74
  "tsup": "8.5.0",
76
75
  "typescript": "5.7.2",
@@ -1,7 +0,0 @@
1
- @theme {
2
- /*
3
- * breakpoints
4
- */
5
- --breakpoint-tablet: 48rem; /* 768px for 16px font-size */
6
- --breakpoint-desktop: 64rem; /* 1024px for 16px font-size*/
7
- }