@helpwave/hightide 0.6.5 → 0.6.6

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.
@@ -145,6 +145,7 @@
145
145
  --color-border: var(--color-gray-200);
146
146
  --color-divider: var(--color-gray-100);
147
147
  --color-focus: var(--color-primary);
148
+ --color-outline-variant: var(--color-gray-200);
148
149
  --font-space: 'Space Grotesk', sans-serif;
149
150
  }
150
151
  }
@@ -318,12 +319,12 @@
318
319
  .inset-0 {
319
320
  inset: calc(var(--spacing) * 0);
320
321
  }
322
+ .-top-1 {
323
+ top: calc(var(--spacing) * -1);
324
+ }
321
325
  .top-0 {
322
326
  top: calc(var(--spacing) * 0);
323
327
  }
324
- .top-0\.5 {
325
- top: calc(var(--spacing) * 0.5);
326
- }
327
328
  .top-1\/2 {
328
329
  top: calc(1/2 * 100%);
329
330
  }
@@ -333,12 +334,12 @@
333
334
  .top-full {
334
335
  top: 100%;
335
336
  }
337
+ .-right-1 {
338
+ right: calc(var(--spacing) * -1);
339
+ }
336
340
  .right-0 {
337
341
  right: calc(var(--spacing) * 0);
338
342
  }
339
- .right-0\.5 {
340
- right: calc(var(--spacing) * 0.5);
341
- }
342
343
  .right-1 {
343
344
  right: calc(var(--spacing) * 1);
344
345
  }
@@ -360,6 +361,9 @@
360
361
  .left-0 {
361
362
  left: calc(var(--spacing) * 0);
362
363
  }
364
+ .left-1\/1 {
365
+ left: calc(1/1 * 100%);
366
+ }
363
367
  .left-1\/2 {
364
368
  left: calc(1/2 * 100%);
365
369
  }
@@ -393,9 +397,6 @@
393
397
  .z-\[10\] {
394
398
  z-index: 10;
395
399
  }
396
- .z-\[300\] {
397
- z-index: 300;
398
- }
399
400
  .container {
400
401
  width: 100%;
401
402
  @media (width >= 40rem) {
@@ -456,6 +457,9 @@
456
457
  .mb-\[6px\] {
457
458
  margin-bottom: 6px;
458
459
  }
460
+ .-ml-1 {
461
+ margin-left: calc(var(--spacing) * -1);
462
+ }
459
463
  .ml-0\.5 {
460
464
  margin-left: calc(var(--spacing) * 0.5);
461
465
  }
@@ -567,6 +571,12 @@
567
571
  min-width: calc(var(--spacing) * 6);
568
572
  max-width: calc(var(--spacing) * 6);
569
573
  }
574
+ .expandable-content-h-39 {
575
+ height: calc(var(--spacing) * 39);
576
+ &[data-expanded] {
577
+ max-height: calc(var(--spacing) * 39);
578
+ }
579
+ }
570
580
  .expandable-content-h-40 {
571
581
  height: calc(var(--spacing) * 40);
572
582
  &[data-expanded] {
@@ -702,12 +712,6 @@
702
712
  .w-24 {
703
713
  width: calc(var(--spacing) * 24);
704
714
  }
705
- .w-40 {
706
- width: calc(var(--spacing) * 40);
707
- }
708
- .w-50 {
709
- width: calc(var(--spacing) * 50);
710
- }
711
715
  .w-64 {
712
716
  width: calc(var(--spacing) * 64);
713
717
  }
@@ -723,9 +727,6 @@
723
727
  .w-\[70\%\] {
724
728
  width: 70%;
725
729
  }
726
- .w-\[400px\] {
727
- width: 400px;
728
- }
729
730
  .w-fit {
730
731
  width: fit-content;
731
732
  }
@@ -783,6 +784,12 @@
783
784
  .min-w-56 {
784
785
  min-width: calc(var(--spacing) * 56);
785
786
  }
787
+ .min-w-64 {
788
+ min-width: calc(var(--spacing) * 64);
789
+ }
790
+ .min-w-72 {
791
+ min-width: calc(var(--spacing) * 72);
792
+ }
786
793
  .min-w-80 {
787
794
  min-width: calc(var(--spacing) * 80);
788
795
  }
@@ -823,12 +830,6 @@
823
830
  .animate-bounce {
824
831
  animation: var(--animate-bounce);
825
832
  }
826
- .animate-pop-in {
827
- animation: pop-in var(--animation-duration-in, 250ms) ease-in-out forwards;
828
- }
829
- .animate-pop-out {
830
- animation: pop-out var(--animation-duration-out, 170ms) ease-in-out forwards;
831
- }
832
833
  .animate-pulse {
833
834
  animation: var(--animate-pulse);
834
835
  }
@@ -957,6 +958,12 @@
957
958
  .justify-start {
958
959
  justify-content: flex-start;
959
960
  }
961
+ .gap-1 {
962
+ gap: calc(var(--spacing) * 1);
963
+ }
964
+ .gap-2 {
965
+ gap: calc(var(--spacing) * 2);
966
+ }
960
967
  .gap-4 {
961
968
  gap: calc(var(--spacing) * 4);
962
969
  }
@@ -1046,9 +1053,6 @@
1046
1053
  --tw-border-style: dashed;
1047
1054
  border-style: dashed;
1048
1055
  }
1049
- .border-divider {
1050
- border-color: var(--color-divider);
1051
- }
1052
1056
  .border-divider\/50 {
1053
1057
  border-color: color-mix(in srgb, #E6E6E6 50%, transparent);
1054
1058
  @supports (color: color-mix(in lab, red, red)) {
@@ -1116,9 +1120,6 @@
1116
1120
  .bg-negative {
1117
1121
  background-color: var(--color-negative);
1118
1122
  }
1119
- .bg-overlay-shadow {
1120
- background-color: var(--color-overlay-shadow);
1121
- }
1122
1123
  .bg-positive {
1123
1124
  background-color: var(--color-positive);
1124
1125
  }
@@ -1167,9 +1168,6 @@
1167
1168
  .bg-surface {
1168
1169
  background-color: var(--color-surface);
1169
1170
  }
1170
- .bg-surface-variant {
1171
- background-color: var(--color-surface-variant);
1172
- }
1173
1171
  .bg-text-image-dark-text {
1174
1172
  background-color: var(--color-text-image-dark-text);
1175
1173
  }
@@ -1320,12 +1318,6 @@
1320
1318
  .text-center {
1321
1319
  text-align: center;
1322
1320
  }
1323
- .text-left {
1324
- text-align: left;
1325
- }
1326
- .text-right {
1327
- text-align: right;
1328
- }
1329
1321
  .typography-headline-lg {
1330
1322
  font-family: var(--font-space);
1331
1323
  font-size: var(--text-4xl);
@@ -1444,10 +1436,6 @@
1444
1436
  --tw-font-weight: var(--font-weight-bold);
1445
1437
  font-weight: var(--font-weight-bold);
1446
1438
  }
1447
- .font-normal {
1448
- --tw-font-weight: var(--font-weight-normal);
1449
- font-weight: var(--font-weight-normal);
1450
- }
1451
1439
  .font-semibold {
1452
1440
  --tw-font-weight: var(--font-weight-semibold);
1453
1441
  font-weight: var(--font-weight-semibold);
@@ -1488,9 +1476,6 @@
1488
1476
  .text-on-background {
1489
1477
  color: var(--color-on-background);
1490
1478
  }
1491
- .text-on-positive {
1492
- color: var(--color-on-positive);
1493
- }
1494
1479
  .text-on-primary {
1495
1480
  color: var(--color-on-primary);
1496
1481
  }
@@ -1564,21 +1549,10 @@
1564
1549
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1565
1550
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1566
1551
  }
1567
- .shadow-xl {
1568
- --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1569
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1570
- }
1571
1552
  .ring {
1572
1553
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1573
1554
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1574
1555
  }
1575
- .shadow-around-lg {
1576
- --shadow-right: 10px 0 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
1577
- --shadow-left: -10px 0 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
1578
- --shadow-top: 0 -10px 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
1579
- --shadow-bottom: 0 10px 10px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
1580
- box-shadow: var(--shadow-right, 0 0 0 transparent), var(--shadow-left, 0 0 0 transparent), var(--shadow-top, 0 0 0 transparent), var(--shadow-bottom, 0 0 0 transparent);
1581
- }
1582
1556
  .shadow-around-md {
1583
1557
  --shadow-right: 5px 0 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
1584
1558
  --shadow-left: -5px 0 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
@@ -1589,9 +1563,6 @@
1589
1563
  .shadow-side {
1590
1564
  box-shadow: var(--shadow-right, 0 0 0 transparent), var(--shadow-left, 0 0 0 transparent), var(--shadow-top, 0 0 0 transparent), var(--shadow-bottom, 0 0 0 transparent);
1591
1565
  }
1592
- .shadow-strong {
1593
- --tw-shadow-color: rgba(0, 0, 0, 0.05);
1594
- }
1595
1566
  .focus-style-default {
1596
1567
  &:focus-visible:not(.focus-style-none) {
1597
1568
  transition: outline-offset var(--animation-duration-in, 250ms);
@@ -1622,6 +1593,9 @@
1622
1593
  outline-style: var(--tw-outline-style);
1623
1594
  outline-width: 1px;
1624
1595
  }
1596
+ .outline-offset-0 {
1597
+ outline-offset: 0px;
1598
+ }
1625
1599
  .outline-primary {
1626
1600
  outline-color: var(--color-primary);
1627
1601
  }
@@ -1683,6 +1657,10 @@
1683
1657
  .delay-25 {
1684
1658
  transition-delay: 25ms;
1685
1659
  }
1660
+ .duration-\(--animation-duration-in\) {
1661
+ --tw-duration: var(--animation-duration-in);
1662
+ transition-duration: var(--animation-duration-in);
1663
+ }
1686
1664
  .duration-200 {
1687
1665
  --tw-duration: 200ms;
1688
1666
  transition-duration: 200ms;
@@ -1968,12 +1946,28 @@
1968
1946
  }
1969
1947
  }
1970
1948
  }
1949
+ .focus\:border-primary {
1950
+ &:focus {
1951
+ border-color: var(--color-primary);
1952
+ }
1953
+ }
1971
1954
  .focus\:ring-0 {
1972
1955
  &:focus {
1973
1956
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1974
1957
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1975
1958
  }
1976
1959
  }
1960
+ .focus\:outline-1 {
1961
+ &:focus {
1962
+ outline-style: var(--tw-outline-style);
1963
+ outline-width: 1px;
1964
+ }
1965
+ }
1966
+ .focus\:outline-offset-1 {
1967
+ &:focus {
1968
+ outline-offset: 1px;
1969
+ }
1970
+ }
1977
1971
  .focus-visible\:ring-0 {
1978
1972
  &:focus-visible {
1979
1973
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
@@ -2042,18 +2036,6 @@
2042
2036
  font-weight: var(--font-weight-normal);
2043
2037
  }
2044
2038
  }
2045
- .motion-safe\:duration-100 {
2046
- @media (prefers-reduced-motion: no-preference) {
2047
- --tw-duration: 100ms;
2048
- transition-duration: 100ms;
2049
- }
2050
- }
2051
- .motion-reduce\:duration-0 {
2052
- @media (prefers-reduced-motion: reduce) {
2053
- --tw-duration: 0ms;
2054
- transition-duration: 0ms;
2055
- }
2056
- }
2057
2039
  .desktop\:block {
2058
2040
  @media (width >= 64rem) {
2059
2041
  display: block;
@@ -3042,11 +3024,6 @@
3042
3024
  }
3043
3025
  @layer components {
3044
3026
  [data-name="table-container"] {
3045
- display: flex;
3046
- flex-direction: column;
3047
- row-gap: calc(var(--spacing) * 4);
3048
- }
3049
- [data-name="table-scroll-wrapper"] {
3050
3027
  display: flex;
3051
3028
  flex-direction: column;
3052
3029
  row-gap: calc(var(--spacing) * 0);
@@ -3065,7 +3042,7 @@
3065
3042
  }
3066
3043
  [data-name="table-filler-cell"] {
3067
3044
  display: flex;
3068
- height: calc(var(--spacing) * 4);
3045
+ height: calc(var(--spacing) * 6);
3069
3046
  width: calc(1/2 * 100%);
3070
3047
  flex-direction: row;
3071
3048
  align-items: center;
@@ -3155,7 +3132,7 @@
3155
3132
  }
3156
3133
  }
3157
3134
  }
3158
- [data-name="table-resize-indicator"] {
3135
+ .table-resize-indicator {
3159
3136
  position: absolute;
3160
3137
  top: calc(1/2 * 100%);
3161
3138
  right: calc(var(--spacing) * 1);
@@ -3166,9 +3143,6 @@
3166
3143
  border-radius: 0.25rem;
3167
3144
  background-color: var(--color-primary);
3168
3145
  cursor: col-resize;
3169
- touch-action: none;
3170
- -webkit-user-select: none;
3171
- user-select: none;
3172
3146
  opacity: 0%;
3173
3147
  transition-property: opacity;
3174
3148
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
@@ -4249,7 +4223,7 @@
4249
4223
  }
4250
4224
  }
4251
4225
  @layer components {
4252
- [data-name="dialog-container"] {
4226
+ .dialog-container {
4253
4227
  position: fixed;
4254
4228
  inset: calc(var(--spacing) * 0);
4255
4229
  height: 100vh;
@@ -4259,12 +4233,13 @@
4259
4233
  touch-action: none;
4260
4234
  }
4261
4235
  }
4262
- [data-name="dialog-background"] {
4236
+ .dialog-background {
4263
4237
  position: fixed;
4264
4238
  inset: calc(var(--spacing) * 0);
4265
4239
  height: 100vh;
4266
4240
  width: 100vw;
4267
4241
  background-color: var(--color-overlay-shadow);
4242
+ animation-fill-mode: forwards;
4268
4243
  &[data-state="opening"] {
4269
4244
  animation-duration: var(--animation-duration-in);
4270
4245
  }
@@ -4276,7 +4251,7 @@
4276
4251
  animation-name: fade-in;
4277
4252
  }
4278
4253
  }
4279
- [data-name="dialog-content"] {
4254
+ .dialog-content {
4280
4255
  display: flex;
4281
4256
  flex-direction: column;
4282
4257
  row-gap: calc(var(--spacing) * 2);
@@ -4713,6 +4688,39 @@
4713
4688
  }
4714
4689
  }
4715
4690
  }
4691
+ .pop-up {
4692
+ border-radius: var(--radius-md);
4693
+ border-style: var(--tw-border-style);
4694
+ border-width: 2px;
4695
+ border-color: var(--color-outline-variant);
4696
+ background-color: var(--coloring-solid-color,var(--coloring-color));
4697
+ color: var(--coloring-solid-text,var(--coloring-on-color));
4698
+ --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4699
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4700
+ --coloring-color: initial;
4701
+ --coloring-on-color: initial;
4702
+ --coloring-hover: initial;
4703
+ --coloring-text: initial;
4704
+ --coloring-text-hover: initial;
4705
+ --coloring-outline: initial;
4706
+ --coloring-outline-hover: initial;
4707
+ --coloring-tonal: initial;
4708
+ --coloring-tonal-background: initial;
4709
+ --coloring-tonal-text: initial;
4710
+ --coloring-tonal-hover: initial;
4711
+ --coloring-color: var(--color-surface);
4712
+ --coloring-on-color: var(--color-on-surface);
4713
+ --coloring-hover: var(--color-surface-hover);
4714
+ &:focus-within {
4715
+ border-color: var(--color-primary);
4716
+ }
4717
+ &[data-positioned] {
4718
+ animation: pop-in var(--animation-duration-in, 250ms) ease-in-out forwards;
4719
+ }
4720
+ &:not([data-positioned]) {
4721
+ opacity: 0%;
4722
+ }
4723
+ }
4716
4724
  @layer components {
4717
4725
  * {
4718
4726
  list-style-type: none;
@@ -1,14 +1,15 @@
1
1
  @layer components {
2
- [data-name="dialog-container"] {
3
- @apply fixed inset-0 h-screen w-screen;
2
+ .dialog-container {
4
3
  @apply fixed inset-0 h-screen w-screen;
5
4
  &:not([data-open]) {
6
5
  @apply touch-none pointer-events-none;
7
6
  }
8
7
  }
9
8
 
10
- [data-name="dialog-background"] {
9
+ .dialog-background {
11
10
  @apply fixed inset-0 h-screen w-screen bg-overlay-shadow;
11
+ animation-fill-mode: forwards;
12
+
12
13
  &[data-state="opening"] {
13
14
  animation-duration: var(--animation-duration-in);
14
15
  }
@@ -24,7 +25,7 @@
24
25
  }
25
26
  }
26
27
 
27
- [data-name="dialog-content"] {
28
+ .dialog-content {
28
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)];
29
30
  animation-timing-function: ease-out;
30
31
  animation-fill-mode: forwards;
@@ -20,4 +20,5 @@
20
20
  @import "./day-picker.css";
21
21
  @import "./time-picker.css";
22
22
  @import "./property.css";
23
+ @import "./pop-up.css";
23
24
  @import "./general.css";
@@ -0,0 +1,11 @@
1
+ .pop-up {
2
+ @apply surface coloring-solid rounded-md border-2 border-outline-variant shadow-md;
3
+ @apply focus-within:border-primary;
4
+
5
+ &[data-positioned] {
6
+ @apply animate-pop-in;
7
+ }
8
+ &:not([data-positioned]) {
9
+ @apply opacity-0;
10
+ }
11
+ }
@@ -1,9 +1,5 @@
1
1
  @layer components {
2
2
  [data-name="table-container"] {
3
- @apply flex-col-4;
4
- }
5
-
6
- [data-name="table-scroll-wrapper"] {
7
3
  @apply flex-col-0 w-full overflow-auto;
8
4
  }
9
5
 
@@ -13,7 +9,7 @@
13
9
  }
14
10
 
15
11
  [data-name="table-filler-cell"] {
16
- @apply flex flex-row items-center w-1/2 h-4 text-disabled font-bold;
12
+ @apply flex flex-row items-center w-1/2 h-6 text-disabled font-bold;
17
13
  }
18
14
 
19
15
  [data-name="table-cell"] {
@@ -45,10 +41,10 @@
45
41
  @apply [nth-last-child(1)]:first:rounded-bl-lg [nth-last-child(1)]:last:rounded-br-lg;
46
42
  }
47
43
 
48
- [data-name="table-resize-indicator"] {
44
+ .table-resize-indicator {
49
45
  @apply absolute right-1 top-1/2 -translate-y-1/2;
50
46
  @apply h-6 w-2 rounded bg-primary;
51
- @apply cursor-col-resize select-none touch-none;
47
+ @apply cursor-col-resize;
52
48
  @apply opacity-0 transition-opacity;
53
49
 
54
50
  &[data-active] {
@@ -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
 
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.6.5",
10
+ "version": "0.6.6",
11
11
  "files": [
12
12
  "dist"
13
13
  ],
@@ -63,12 +63,13 @@
63
63
  "@types/react": "19.2.3",
64
64
  "@types/react-dom": "19.2.3",
65
65
  "@types/tinycolor2": "1.4.6",
66
- "@vitest/mocker": "^4.0.16",
67
- "autoprefixer": "^10.4.23",
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
71
  "postcss": "^8.5.6",
72
+ "react-devtools": "7.0.1",
72
73
  "storybook": "10.1.10",
73
74
  "ts-jest": "29.4.5",
74
75
  "tsup": "8.5.0",