@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
@@ -4,11 +4,6 @@
4
4
  * default light-theme component colors
5
5
  */
6
6
  @theme {
7
- /* Icon */
8
- --color-icon-primary: var(--color-text-primary);
9
- --color-icon-secondary: var(--color-text-secondary);
10
- --color-icon-highlight: var(--color-highlight);
11
-
12
7
  /* Carousel */
13
8
  --color-carousel-dot-active: var(--color-primary);
14
9
  --color-carousel-dot-disabled: var(--color-disabled);
@@ -93,7 +93,8 @@
93
93
  --color-label: var(--color-gray-300);
94
94
 
95
95
  /* Other */
96
- --color-primary: var(--color-purple-400);
96
+ --color-primary: var(--color-purple-500);
97
+ --color-primary-hover: var(--color-purple-400);
97
98
 
98
99
  --color-neutral: var(--color-gray-750);
99
100
  --color-neutral-hover: var(--color-gray-600);
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- *[data-name="avatar"] {
2
+ [data-name="avatar"] {
3
3
  @apply relative flex-row-0 items-center justify-center primary coloring-solid rounded-full;
4
4
  &[data-group] {
5
5
  @apply absolute shadow-side shadow-r-4 shadow-hard;
@@ -39,14 +39,14 @@
39
39
  }
40
40
  }
41
41
 
42
- *[data-name="avatar-image"] {
42
+ [data-name="avatar-image"] {
43
43
  @apply absolute left-0 top-0 z-1 rounded-[inherit] size-[inherit];
44
44
  &:not([data-loaded]) {
45
45
  @apply opacity-0;
46
46
  }
47
47
  }
48
48
 
49
- *[data-name="avatar-group"] {
49
+ [data-name="avatar-group"] {
50
50
  @apply flex-row-2 items-center h-[var(--size)] w-fit;
51
51
  --overlap: 0.5;
52
52
  --count: 5;
@@ -64,11 +64,11 @@
64
64
  }
65
65
  }
66
66
 
67
- *[data-name="avatar-group-container"] {
67
+ [data-name="avatar-group-container"] {
68
68
  @apply relative w-[calc(var(--size)*(0.5*4+1))] h-[var(--size)];
69
69
  }
70
70
 
71
- *[data-name="avatar-group-more"] {
71
+ [data-name="avatar-group-more"] {
72
72
  @apply flex-row-2 truncate items-center text-[calc(var(--size)*2/3)];
73
73
  }
74
74
  }
@@ -1,64 +1,50 @@
1
1
  @layer components {
2
2
  [data-name="button"] {
3
- @apply: font-semibold whitespace-nowrap;
3
+ @apply flex flex-row items-center justify-center element;
4
+ @apply: font-semibold whitespace-nowrap w-fit;
5
+
4
6
  &:not([data-disabled]) {
5
7
  @apply cursor-pointer coloring-color-detect coloring-style-hover-detect;
6
8
  }
9
+
7
10
  &[data-disabled] {
8
11
  @apply disabled coloring-style-detect cursor-not-allowed;
9
12
  }
10
- &[data-layout="icon"] {
11
- @apply flex-col-0 items-center justify-center;
12
- &[data-size="xs"] {
13
- @apply p-1 rounded-1 size-6;
14
- &[data-coloringstyle="outline"] {
15
- @apply p-0.5;
16
- }
17
- }
18
- &[data-size="sm"] {
19
- @apply p-1.5 rounded-1.5 size-8;
20
- &[data-coloringstyle="outline"] {
21
- @apply p-1;
22
- }
23
- }
24
- &[data-size="md"] {
25
- @apply p-2 rounded-1.5 size-10;
26
- &[data-coloringstyle="outline"] {
27
- @apply p-1.5;
28
- }
29
- }
30
- &[data-size="lg"] {
31
- @apply p-2 rounded-1.5 size-12;
32
- &[data-coloringstyle="outline"] {
33
- @apply p-1.5;
34
- }
13
+
14
+ &[data-size="xs"] {
15
+ @apply gap-x-1 sizing-xs;
16
+ @apply text-xs min-w-20;
17
+ &[data-coloringstyle="outline"] {
18
+ padding:
19
+ calc(var(--spacing-element-padding-xs) - var(--coloring-outline-width))
20
+ calc(var(--spacing-element-padding-direction-xs) - var(--coloring-outline-width));
35
21
  }
36
22
  }
37
- &[data-layout="default"] {
38
- @apply flex flex-row items-center justify-center;
39
- &[data-size="xs"] {
40
- @apply gap-x-1 px-1 py-0.75 rounded-1 h-6 text-sm;
41
- &[data-coloringstyle="outline"] {
42
- @apply px-0.5 py-0.25;
43
- }
23
+ &[data-size="sm"] {
24
+ @apply gap-x-1 sizing-sm;
25
+ @apply min-w-28;
26
+ &[data-coloringstyle="outline"] {
27
+ padding:
28
+ calc(var(--spacing-element-padding-sm) - var(--coloring-outline-width))
29
+ calc(var(--spacing-element-padding-direction-sm) - var(--coloring-outline-width));
44
30
  }
45
- &[data-size="sm"] {
46
- @apply gap-x-1 px-1.5 py-1 rounded-1.5 h-8;
47
- &[data-coloringstyle="outline"] {
48
- @apply px-1 py-0.5;
49
- }
50
- }
51
- &[data-size="md"] {
52
- @apply gap-x-2 px-3 py-2 rounded-1.5 h-10;
53
- &[data-coloringstyle="outline"] {
54
- @apply px-2.5 py-1.5;
55
- }
31
+ }
32
+ &[data-size="md"] {
33
+ @apply gap-x-2 sizing-md;
34
+ @apply min-w-36;
35
+ &[data-coloringstyle="outline"] {
36
+ padding:
37
+ calc(var(--spacing-element-padding-md) - var(--coloring-outline-width))
38
+ calc(var(--spacing-element-padding-direction-md) - var(--coloring-outline-width));
56
39
  }
57
- &[data-size="lg"] {
58
- @apply gap-x-2 px-4 py-2.5 rounded-1.5 h-12;
59
- &[data-coloringstyle="outline"] {
60
- @apply px-3.5 py-2;
61
- }
40
+ }
41
+ &[data-size="lg"] {
42
+ @apply gap-x-2 sizing-lg;
43
+ @apply text-lg min-w-45;
44
+ &[data-coloringstyle="outline"] {
45
+ padding:
46
+ calc(var(--spacing-element-padding-lg) - var(--coloring-outline-width))
47
+ calc(var(--spacing-element-padding-direction-lg) - var(--coloring-outline-width));
62
48
  }
63
49
  }
64
50
  }
@@ -1,13 +1,13 @@
1
1
  @layer components {
2
- .card-sm {
2
+ [data-name="card-sm"] {
3
3
  @apply flex-col-2 surface coloring-solid px-2 py-1 rounded;
4
4
  }
5
5
 
6
- .card-md {
6
+ [data-name="card-md"] {
7
7
  @apply flex-col-2 bg-surface text-on-surface px-4 py-2 rounded-md;
8
8
  }
9
9
 
10
- .card-lg {
10
+ [data-name="card-lg"] {
11
11
  @apply flex-col-2 bg-surface text-on-surface px-8 py-4 rounded-lg;
12
12
  }
13
13
  }
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- .checkbox {
2
+ [data-name="checkbox"] {
3
3
  @apply flex-col-0 items-center justify-center rounded border-2;
4
4
  &:not([data-disabled]) {
5
5
  @apply hover:cursor-pointer;
@@ -35,7 +35,7 @@
35
35
  }
36
36
  }
37
37
 
38
- .checkbox-indicator{
38
+ [data-name="checkbox-indicator"]{
39
39
  @apply w-full h-full;
40
40
  &[data-size="sm"] {
41
41
  @apply stroke-3;
@@ -0,0 +1,9 @@
1
+ @layer components {
2
+ [data-name="date-time-input"] {
3
+ @apply input-element flex-row-2 px-3 pr-10 h-element-md rounded-md w-full items-center justify-between;
4
+
5
+ &:hover {
6
+ @apply cursor-pointer;
7
+ }
8
+ }
9
+ }
@@ -16,10 +16,10 @@
16
16
  }
17
17
 
18
18
  [data-name="day-picker-body-item"] {
19
- @apply flex-row-0 items-center justify-center rounded-full border-2 border-transparent h-8;
19
+ @apply flex-row-0 items-center justify-center rounded-full h-8;
20
20
 
21
21
  &[data-today] {
22
- @apply border-on-background;
22
+ @apply border-2 border-on-background;
23
23
  }
24
24
  &:not([data-invalid]) {
25
25
  @apply hover:cursor-pointer;
@@ -1,12 +1,12 @@
1
1
  @layer components {
2
- .dialog-container {
2
+ [data-name="dialog-container"] {
3
3
  @apply fixed inset-0 h-screen w-screen;
4
4
  &:not([data-open]) {
5
5
  @apply touch-none pointer-events-none;
6
6
  }
7
7
  }
8
8
 
9
- .dialog-background {
9
+ [data-name="dialog-background"] {
10
10
  @apply fixed inset-0 h-screen w-screen bg-overlay-shadow;
11
11
  animation-fill-mode: forwards;
12
12
 
@@ -25,7 +25,7 @@
25
25
  }
26
26
  }
27
27
 
28
- .dialog-content {
28
+ [data-name="dialog-content"] {
29
29
  @apply flex-col-2 p-4 bg-overlay-background text-overlay-text rounded-xl shadow-hw-bottom max-w-[calc(100vw_-_2rem)] max-h-[calc(100vh_-_2rem)];
30
30
  animation-timing-function: ease-out;
31
31
  animation-fill-mode: forwards;
@@ -1,17 +1,17 @@
1
1
  @layer components {
2
- .form-field-container {
2
+ [data-name="form-field-container"] {
3
3
  @apply relative flex-col-1;
4
4
  }
5
5
 
6
- .form-field-description {
6
+ [data-name="form-field-description"] {
7
7
  @apply text-description text-sm;
8
8
  }
9
9
 
10
- .form-field-error {
10
+ [data-name="form-field-error"] {
11
11
  @apply absolute top-[calc(100%_+_0.25rem)] left-0 text-negative text-sm font-medium;
12
12
  }
13
13
 
14
- .form-field-label {
14
+ [data-name="form-field-label"] {
15
15
  @apply flex-row-1 items-start typography-label-lg text-label;
16
16
  }
17
17
  }
@@ -23,6 +23,6 @@
23
23
  }
24
24
 
25
25
  * {
26
- @apply focus-style-default;
26
+ @apply focus-style-outline focusable;
27
27
  }
28
28
  }
@@ -0,0 +1,38 @@
1
+ @layer components {
2
+ [data-name="icon-button"] {
3
+ @apply flex-col-0 items-center justify-center element-square;
4
+
5
+ &:not([data-disabled]) {
6
+ @apply cursor-pointer coloring-color-detect coloring-style-hover-detect;
7
+ }
8
+
9
+ &[data-disabled] {
10
+ @apply disabled coloring-style-detect cursor-not-allowed;
11
+ }
12
+
13
+ &[data-size="xs"] {
14
+ @apply sizing-xs;
15
+ &[data-coloringstyle="outline"] {
16
+ padding: calc(var(--spacing-element-padding-xs) - var(--coloring-outline-width));
17
+ }
18
+ }
19
+ &[data-size="sm"] {
20
+ @apply sizing-sm;
21
+ &[data-coloringstyle="outline"] {
22
+ padding: calc(var(--spacing-element-padding-sm) - var(--coloring-outline-width));
23
+ }
24
+ }
25
+ &[data-size="md"] {
26
+ @apply sizing-md;
27
+ &[data-coloringstyle="outline"] {
28
+ padding: calc(var(--spacing-element-padding-md) - var(--coloring-outline-width));
29
+ }
30
+ }
31
+ &[data-size="lg"] {
32
+ @apply sizing-lg;
33
+ &[data-coloringstyle="outline"] {
34
+ padding: calc(var(--spacing-element-padding-lg) - var(--coloring-outline-width));
35
+ }
36
+ }
37
+ }
38
+ }
@@ -2,6 +2,7 @@
2
2
  @import "./card.css";
3
3
  @import "./chip.css";
4
4
  @import "./input-elements.css";
5
+ @import "./toggleable-intput.css";
5
6
  @import "./table.css";
6
7
  @import "./scrollbar.css";
7
8
  @import "./link.css";
@@ -12,6 +13,7 @@
12
13
  @import "./expandable.css";
13
14
  @import "./expansion-icon.css";
14
15
  @import "./checkbox.css";
16
+ @import "./switch.css";
15
17
  @import "./tooltip.css";
16
18
  @import "./drawer.css";
17
19
  @import "./dialog.css";
@@ -21,4 +23,6 @@
21
23
  @import "./time-picker.css";
22
24
  @import "./property.css";
23
25
  @import "./pop-up.css";
26
+ @import "./select.css";
24
27
  @import "./general.css";
28
+ @import "./icon-button.css";
@@ -1,5 +1,5 @@
1
1
  @utility input-element {
2
- @apply border-2 focus-style-none focus-style-border;
2
+ @apply border-2 focus-style-none focus-style-border focus-style-shadow;
3
3
  &:not([data-disabled]):not([data-invalid]) {
4
4
  @apply bg-input-background hover:border-primary-hover;
5
5
 
@@ -34,20 +34,6 @@
34
34
  /* input-elements */
35
35
  @layer components {
36
36
  [data-name="input"] {
37
- @apply px-3 py-2 rounded-md h-10 input-element;
38
- }
39
-
40
- [data-name="select-button"] {
41
- @apply flex-row-2 items-center justify-between rounded-md px-3 py-2 input-element;
42
- &:not([data-disabled]) {
43
- @apply hover:cursor-pointer;
44
- }
45
- }
46
-
47
- [data-name="select-button-chips"] {
48
- @apply flex flex-wrap gap-2 items-center rounded-md px-2.5 py-2.5 input-element;
49
- &:not([data-disabled]) {
50
- @apply hover:cursor-pointer;
51
- }
37
+ @apply input-element px-3 py-2 rounded-md h-element-md;
52
38
  }
53
39
  }
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- .link {
2
+ [data-name="link"] {
3
3
  @apply decoration-3 p-2 hover:underline focus:underline font-bold text-lg rounded;
4
4
  }
5
5
  }
@@ -1,4 +1,4 @@
1
- .pop-up {
1
+ [data-name="pop-up"] {
2
2
  @apply surface coloring-solid rounded-md border-2 border-outline-variant shadow-md;
3
3
  @apply focus-within:border-primary;
4
4
 
@@ -78,7 +78,7 @@
78
78
  @apply text-warning;
79
79
 
80
80
  [data-name="select-button"],
81
- [data-name="select-button-chips"] {
81
+ [data-name="select-chip-display"] {
82
82
  @apply !bg-warning !text-surface-warning;
83
83
  }
84
84
  }
@@ -0,0 +1,19 @@
1
+ @layer components {
2
+ [data-name="select-button"] {
3
+ @apply input-element flex-row-2 items-center justify-between rounded-md px-3 py-2;
4
+ &:not([data-disabled]) {
5
+ @apply hover:cursor-pointer;
6
+ }
7
+ }
8
+
9
+ [data-name="select-chip-display"] {
10
+ @apply input-element flex flex-wrap gap-2 items-center rounded-md px-2.5 py-2.5;
11
+ &:not([data-disabled]) {
12
+ @apply hover:cursor-pointer;
13
+ }
14
+ }
15
+
16
+ [data-name="select-chip-display-chip"] {
17
+ @apply flex-row-1 items-center pl-2 pr-1 coloring-solid neutral rounded-md h-9;
18
+ }
19
+ }
@@ -0,0 +1,56 @@
1
+ @layer components {
2
+ [data-name="switch"] {
3
+ @apply flex-col-0 items-center justify-center;
4
+ @apply h-7 w-12 rounded-full border-2 p-1;
5
+
6
+ &:not([data-disabled]) {
7
+ @apply hover:cursor-pointer;
8
+ }
9
+
10
+ &[data-disabled] {
11
+ @apply border-on-disabled bg-disabled cursor-not-allowed;
12
+ }
13
+
14
+ &:not([data-disabled]) {
15
+ [data-invalid] {
16
+ @apply border-negative;
17
+
18
+ &:hover {
19
+ @apply border-negative-hover bg-negative/10;
20
+ }
21
+ }
22
+
23
+ &:not([data-invalid]) {
24
+ @apply bg-input-background border-border;
25
+
26
+ &:hover {
27
+ @apply border-primary-hover bg-primary/10;
28
+ }
29
+
30
+ &[data-active] {
31
+ @apply bg-primary border-primary;
32
+
33
+ &:hover {
34
+ @apply bg-primary-hover border-primary-hover;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ [data-name="switch-track"] {
42
+ @apply w-full h-full rounded-full flex items-center relative;
43
+ }
44
+
45
+ [data-name="switch-thumb"] {
46
+ @apply bg-on-surface rounded-full transition-all duration-[var(--animation-duration-in,250ms)] h-3 w-3;
47
+ @apply absolute top-1/2 -translate-y-1/2 left-0.5;
48
+
49
+ &[data-active] {
50
+ @apply w-4 h-4;
51
+ left: calc(100% - 4 * var(--spacing));
52
+ }
53
+ }
54
+ }
55
+
56
+
@@ -1,22 +1,22 @@
1
1
  @layer components {
2
- .table-container {
2
+ [data-name="table-container"] {
3
3
  @apply flex-col-0 w-full overflow-auto;
4
4
  }
5
5
 
6
- .table {
6
+ [data-name="table"] {
7
7
  @apply table-fixed border-separate border-spacing-0 rounded-lg;
8
8
  @apply bg-table-background text-table-text;
9
9
  }
10
10
 
11
- .table-filler-cell {
11
+ [data-name="table-filler-cell"] {
12
12
  @apply flex flex-row items-center w-1/2 h-6 text-disabled font-bold;
13
13
  }
14
14
 
15
- .table-default-cell {
15
+ [data-name="table-default-cell"] {
16
16
  @apply block max-w-full overflow-ellipsis truncate;
17
17
  }
18
18
 
19
- .table-header-cell {
19
+ [data-name="table-header-cell"] {
20
20
  @apply relative;
21
21
  @apply px-3 first:pl-6 last:pr-6 py-2.5;
22
22
  @apply border-y-1 first:border-l-1 last:border-r-1;
@@ -28,27 +28,27 @@
28
28
  }
29
29
  }
30
30
 
31
- .table-body-row {
31
+ [data-name="table-body-row"] {
32
32
  @apply hover:bg-table-row-hover-background;
33
33
  &[data-clickable] {
34
34
  @apply hover:cursor-pointer;
35
35
  }
36
36
  }
37
37
 
38
- .table-body-filler-row {
38
+ [data-name="table-body-filler-row"] {
39
39
  @apply hover:cursor-not-allowed;
40
40
  &[data-clickable] {
41
41
  @apply hover:cursor-pointer hover:bg-table-row-hover-background;
42
42
  }
43
43
  }
44
44
 
45
- .table-body-cell, .table-body-filler-cell {
45
+ [data-name="table-body-cell"], [data-name="table-body-filler-cell"] {
46
46
  @apply px-3 first:pl-6 last:pr-6 py-2.5;
47
47
  @apply border-b-1 first:border-l-1 last:border-r-1;
48
48
  @apply [nth-last-child(1)]:first:rounded-bl-lg [nth-last-child(1)]:last:rounded-br-lg;
49
49
  }
50
50
 
51
- .table-resize-indicator {
51
+ [data-name="table-resize-indicator"] {
52
52
  @apply absolute right-1 top-1/2 -translate-y-1/2;
53
53
  @apply h-6 w-2 rounded bg-primary;
54
54
  @apply cursor-col-resize;
@@ -67,7 +67,8 @@
67
67
  }
68
68
  }
69
69
 
70
- .table-body-row:last-child > .table-body-cell, .table-body-filler-row:last-child > .table-body-filler-cell {
70
+ [data-name="table-body-row"]:last-child > [data-name="table-body-cell"],
71
+ [data-name="table-body-filler-row"]:last-child > [data-name="table-body-filler-cell"] {
71
72
  @apply first:rounded-bl-lg last:rounded-br-lg;
72
73
  }
73
74
  }
@@ -1,15 +1,23 @@
1
1
  @layer components {
2
2
  [data-name="tab-list"] {
3
- @apply flex-row-0;
3
+ display: grid;
4
+ grid-template-columns: repeat(var(--tab-count), 1fr);
4
5
  }
5
6
 
6
7
  [data-name="tab-list-item"] {
7
- @apply flex-row-0 grow justify-center px-3 py-2 typography-label-md font-bold border-b-2 transition-colors neutral coloring-text-hover;
8
- &[data-active] {
9
- @apply border-primary;
8
+ @apply flex-row-0 grow justify-center px-3 py-2 typography-label-md border-b-4 transition-colors neutral coloring-text-hover;
9
+
10
+ &[data-disabled] {
11
+ @apply cursor-not-allowed disabled coloring-text;
10
12
  }
11
- &:not([data-active]) {
12
- @apply text-description hover:cursor-pointer;
13
+
14
+ &:not([data-disabled]) {
15
+ &[data-active] {
16
+ @apply border-primary font-bold;
17
+ }
18
+ &:not([data-active]) {
19
+ @apply hover:cursor-pointer;
20
+ }
13
21
  }
14
22
  }
15
23
 
@@ -0,0 +1,10 @@
1
+ @layer components {
2
+ [data-name="togglable-input"] {
3
+ all: unset;
4
+ @apply w-full rounded-md focus-style-none focus-style-outline focusable;
5
+
6
+ &:not([data-isediting]) {
7
+ @apply text-transparent;
8
+ }
9
+ }
10
+ }
@@ -1,4 +1,4 @@
1
- @utility animate-tooltip-fade-in {
1
+ @utility animate-tooltip-fade-in {
2
2
  animation: fade-in calc(var(--animation-duration-in, 250ms) * 2) ease-in-out 1 forwards;
3
3
  }
4
4
 
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  @layer components {
11
- .tooltip {
11
+ [data-name="tooltip"] {
12
12
  @apply absolute px-2 py-1 rounded shadow-around-md;
13
13
  @apply text-xs font-semibold text-tooltip-text bg-tooltip-background truncate;
14
14
 
@@ -0,0 +1,50 @@
1
+ @utility element {
2
+ padding:
3
+ var(--element-padding, var(--spacing-element-padding-md))
4
+ var(--element-padding-direction, var(--spacing-element-padding-direction-md));
5
+ border-radius: var(--element-border-radius, 0.375rem);
6
+ height: var(--element-height, var(--spacing-element-md));
7
+ }
8
+
9
+ @utility element-square {
10
+ padding: var(--element-padding, var(--spacing-element-padding-md));
11
+ border-radius: var(--element-border-radius, 0.375rem);
12
+ height: var(--element-height, var(--spacing-element-height-md));
13
+ width: var(--element-height, var(--spacing-element-md));
14
+ }
15
+
16
+
17
+ @utility sizing-xs {
18
+ --element-padding: var(--spacing-element-padding-xs);
19
+ --element-padding-direction: var(--spacing-element-padding-direction-xs);
20
+ --element-border-radius: 0.25rem;
21
+ --element-height: var(--spacing-element-xs);
22
+ }
23
+
24
+ @utility sizing-sm {
25
+ --element-padding: var(--spacing-element-padding-sm);
26
+ --element-padding-direction: var(--spacing-element-padding-direction-sm);
27
+ --element-border-radius: 0.375rem;
28
+ --element-height: var(--spacing-element-sm);
29
+ }
30
+
31
+ @utility sizing-md {
32
+ --element-padding: var(--spacing-element-padding-md);
33
+ --element-padding-direction: var(--spacing-element-padding-direction-md);
34
+ --element-border-radius: 0.375rem;
35
+ --element-height: var(--spacing-element-md);
36
+ }
37
+
38
+ @utility sizing-lg {
39
+ --element-padding: var(--spacing-element-padding-lg);
40
+ --element-padding-direction: var(--spacing-element-padding-direction-lg);
41
+ --element-border-radius: 0.5rem;
42
+ --element-height: var(--spacing-element-lg);
43
+ }
44
+
45
+ @utility sizing-none {
46
+ --element-padding: 0;
47
+ --element-padding-direction: 0;
48
+ --element-border-radius: 0;
49
+ --element-height: auto;
50
+ }
@@ -1,6 +1,6 @@
1
1
  @import "./colors/index.css";
2
2
  @import "./typography.css";
3
- @import "./breakpoints.css";
4
3
  @import "./components/index.css";
5
4
  @import "./shadow.css";
6
- @import "./variables.css";
5
+ @import "./element.css";
6
+ @import "./variables.css";