@ropav/styles 0.4.0 → 0.6.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 (181) hide show
  1. package/README.md +89 -5
  2. package/dist/components/accordion.css +6 -14
  3. package/dist/components/alert-dialog.css +1 -13
  4. package/dist/components/alert.css +1 -1
  5. package/dist/components/autocomplete/autocomplete.styles.d.ts +33 -0
  6. package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -1
  7. package/dist/components/autocomplete/autocomplete.styles.js +12 -0
  8. package/dist/components/autocomplete.css +54 -36
  9. package/dist/components/breadcrumbs.css +9 -2
  10. package/dist/components/button-group.css +6 -10
  11. package/dist/components/button.css +10 -18
  12. package/dist/components/calendar-year-picker.css +20 -8
  13. package/dist/components/calendar.css +46 -21
  14. package/dist/components/card.css +1 -1
  15. package/dist/components/checkbox.css +54 -56
  16. package/dist/components/chip.css +3 -1
  17. package/dist/components/close-button.css +7 -6
  18. package/dist/components/color-area.css +6 -6
  19. package/dist/components/color-input-group/color-input-group.styles.d.ts +27 -0
  20. package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
  21. package/dist/components/color-input-group/color-input-group.styles.js +6 -0
  22. package/dist/components/color-input-group.css +31 -28
  23. package/dist/components/color-picker.css +1 -5
  24. package/dist/components/color-slider.css +14 -12
  25. package/dist/components/color-swatch-picker.css +2 -85
  26. package/dist/components/color-swatch.css +1 -1
  27. package/dist/components/combo-box/combo-box.styles.d.ts +27 -0
  28. package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
  29. package/dist/components/combo-box/combo-box.styles.js +17 -7
  30. package/dist/components/combo-box.css +34 -4
  31. package/dist/components/date-input-group/date-input-group.styles.d.ts +27 -0
  32. package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
  33. package/dist/components/date-input-group/date-input-group.styles.js +6 -0
  34. package/dist/components/date-input-group.css +55 -33
  35. package/dist/components/date-picker.css +1 -5
  36. package/dist/components/date-range-picker.css +1 -5
  37. package/dist/components/disclosure.css +0 -4
  38. package/dist/components/drawer.css +4 -8
  39. package/dist/components/drop-zone/drop-zone.styles.d.ts +34 -0
  40. package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -0
  41. package/dist/components/drop-zone/drop-zone.styles.js +8 -0
  42. package/dist/components/drop-zone/index.d.ts +2 -0
  43. package/dist/components/drop-zone/index.d.ts.map +1 -0
  44. package/dist/components/drop-zone/index.js +2 -0
  45. package/dist/components/drop-zone.css +78 -0
  46. package/dist/components/dropdown.css +1 -5
  47. package/dist/components/error-message.css +0 -4
  48. package/dist/components/field-error.css +0 -4
  49. package/dist/components/index.css +5 -0
  50. package/dist/components/index.d.ts +5 -0
  51. package/dist/components/index.d.ts.map +1 -1
  52. package/dist/components/input/input.styles.d.ts +15 -0
  53. package/dist/components/input/input.styles.d.ts.map +1 -1
  54. package/dist/components/input/input.styles.js +6 -0
  55. package/dist/components/input-group/input-group.styles.d.ts +27 -0
  56. package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
  57. package/dist/components/input-group/input-group.styles.js +6 -0
  58. package/dist/components/input-group.css +35 -38
  59. package/dist/components/input-otp.css +14 -26
  60. package/dist/components/input.css +23 -32
  61. package/dist/components/kbd.css +3 -1
  62. package/dist/components/label.css +7 -2
  63. package/dist/components/link.css +13 -11
  64. package/dist/components/list-box/list-box.styles.d.ts +15 -0
  65. package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
  66. package/dist/components/list-box/list-box.styles.js +15 -5
  67. package/dist/components/list-box-item.css +8 -12
  68. package/dist/components/list-box.css +19 -0
  69. package/dist/components/menu/menu.styles.d.ts +19 -1
  70. package/dist/components/menu/menu.styles.d.ts.map +1 -1
  71. package/dist/components/menu/menu.styles.js +9 -1
  72. package/dist/components/menu-item.css +4 -10
  73. package/dist/components/menu.css +19 -0
  74. package/dist/components/meter.css +8 -16
  75. package/dist/components/modal.css +1 -13
  76. package/dist/components/number-field/number-field.styles.d.ts +27 -0
  77. package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
  78. package/dist/components/number-field/number-field.styles.js +6 -0
  79. package/dist/components/number-field.css +83 -36
  80. package/dist/components/pagination.css +6 -10
  81. package/dist/components/popover.css +15 -5
  82. package/dist/components/progress-bar/progress-bar.styles.d.ts +36 -0
  83. package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
  84. package/dist/components/progress-bar/progress-bar.styles.js +10 -0
  85. package/dist/components/progress-bar.css +82 -16
  86. package/dist/components/progress-circle.css +0 -4
  87. package/dist/components/radio.css +7 -9
  88. package/dist/components/range-calendar.css +73 -31
  89. package/dist/components/search-field/search-field.styles.d.ts +27 -0
  90. package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
  91. package/dist/components/search-field/search-field.styles.js +6 -0
  92. package/dist/components/search-field.css +36 -29
  93. package/dist/components/segmented-control/index.d.ts +2 -0
  94. package/dist/components/segmented-control/index.d.ts.map +1 -0
  95. package/dist/components/segmented-control/index.js +2 -0
  96. package/dist/components/segmented-control/segmented-control.styles.d.ts +73 -0
  97. package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -0
  98. package/dist/components/segmented-control/segmented-control.styles.js +27 -0
  99. package/dist/components/segmented-control.css +188 -0
  100. package/dist/components/select/select.styles.d.ts +33 -0
  101. package/dist/components/select/select.styles.d.ts.map +1 -1
  102. package/dist/components/select/select.styles.js +12 -0
  103. package/dist/components/select.css +47 -33
  104. package/dist/components/sidebar/index.d.ts +2 -0
  105. package/dist/components/sidebar/index.d.ts.map +1 -0
  106. package/dist/components/sidebar/index.js +2 -0
  107. package/dist/components/sidebar/sidebar.styles.d.ts +226 -0
  108. package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -0
  109. package/dist/components/sidebar/sidebar.styles.js +65 -0
  110. package/dist/components/sidebar.css +604 -0
  111. package/dist/components/slider.css +10 -11
  112. package/dist/components/splitter/index.d.ts +2 -0
  113. package/dist/components/splitter/index.d.ts.map +1 -0
  114. package/dist/components/splitter/index.js +2 -0
  115. package/dist/components/splitter/splitter.styles.d.ts +61 -0
  116. package/dist/components/splitter/splitter.styles.d.ts.map +1 -0
  117. package/dist/components/splitter/splitter.styles.js +26 -0
  118. package/dist/components/splitter.css +249 -0
  119. package/dist/components/switch.css +16 -15
  120. package/dist/components/table.css +72 -30
  121. package/dist/components/tabs.css +9 -20
  122. package/dist/components/tag.css +32 -24
  123. package/dist/components/textarea/textarea.styles.d.ts +15 -0
  124. package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
  125. package/dist/components/textarea/textarea.styles.js +6 -0
  126. package/dist/components/textarea.css +23 -32
  127. package/dist/components/toast.css +4 -2
  128. package/dist/components/toggle-button-group.css +7 -11
  129. package/dist/components/toggle-button.css +9 -17
  130. package/dist/components/toolbar.css +1 -1
  131. package/dist/components/tooltip.css +15 -6
  132. package/dist/components/typography.css +12 -4
  133. package/dist/components/virtualizer/index.d.ts +2 -0
  134. package/dist/components/virtualizer/index.d.ts.map +1 -0
  135. package/dist/components/virtualizer/index.js +2 -0
  136. package/dist/components/virtualizer/virtualizer.styles.d.ts +44 -0
  137. package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -0
  138. package/dist/components/virtualizer/virtualizer.styles.js +15 -0
  139. package/dist/components/virtualizer.css +72 -0
  140. package/dist/index.js +6 -1
  141. package/dist/ropav.min.css +2 -2
  142. package/dist/themes/airbnb.css +11 -4
  143. package/dist/themes/all.css +1 -0
  144. package/dist/themes/coinbase.css +11 -4
  145. package/dist/themes/default.css +40 -8
  146. package/dist/themes/discord.css +11 -4
  147. package/dist/themes/hero.css +282 -0
  148. package/dist/themes/lavender.css +11 -4
  149. package/dist/themes/mint.css +11 -4
  150. package/dist/themes/netflix.css +11 -4
  151. package/dist/themes/rabbit.css +11 -4
  152. package/dist/themes/shared/theme.css +20 -2
  153. package/dist/themes/sky.css +11 -4
  154. package/dist/themes/spotify.css +11 -4
  155. package/dist/themes/uber.css +11 -4
  156. package/dist/utilities/index.css +27 -0
  157. package/package.json +1 -1
  158. package/src/components/autocomplete/autocomplete.styles.ts +12 -0
  159. package/src/components/color-input-group/color-input-group.styles.ts +10 -0
  160. package/src/components/combo-box/combo-box.styles.ts +12 -0
  161. package/src/components/date-input-group/date-input-group.styles.ts +10 -0
  162. package/src/components/drop-zone/drop-zone.styles.ts +12 -0
  163. package/src/components/drop-zone/index.ts +1 -0
  164. package/src/components/index.ts +5 -0
  165. package/src/components/input/input.styles.ts +6 -0
  166. package/src/components/input-group/input-group.styles.ts +10 -0
  167. package/src/components/list-box/list-box.styles.ts +6 -0
  168. package/src/components/menu/menu.styles.ts +10 -0
  169. package/src/components/number-field/number-field.styles.ts +10 -0
  170. package/src/components/progress-bar/progress-bar.styles.ts +14 -0
  171. package/src/components/search-field/search-field.styles.ts +10 -0
  172. package/src/components/segmented-control/index.ts +1 -0
  173. package/src/components/segmented-control/segmented-control.styles.ts +37 -0
  174. package/src/components/select/select.styles.ts +12 -0
  175. package/src/components/sidebar/index.ts +1 -0
  176. package/src/components/sidebar/sidebar.styles.ts +117 -0
  177. package/src/components/splitter/index.ts +1 -0
  178. package/src/components/splitter/splitter.styles.ts +44 -0
  179. package/src/components/textarea/textarea.styles.ts +6 -0
  180. package/src/components/virtualizer/index.ts +1 -0
  181. package/src/components/virtualizer/virtualizer.styles.ts +15 -0
@@ -1,5 +1,12 @@
1
1
  .input {
2
- @apply rounded-field border bg-field px-3 py-2 text-base text-field-foreground shadow-field outline-none placeholder:text-field-placeholder sm:text-sm;
2
+ @apply rounded-field border px-3 field-line-md text-field-foreground shadow-field outline-none placeholder:text-field-placeholder;
3
+
4
+ /* The fill, per state. The `--secondary` variant re-points these and declares nothing else. */
5
+ --input-bg: var(--field-background, var(--default));
6
+ --input-bg-hover: var(--field-hover);
7
+ --input-bg-focus: var(--field-focus);
8
+
9
+ background-color: var(--input-bg);
3
10
 
4
11
  border-width: var(--border-width-field);
5
12
  border-color: var(--field-border);
@@ -14,10 +21,6 @@
14
21
  outline-offset: -1px;
15
22
  }
16
23
 
17
- /**
18
- * Transitions
19
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
20
- */
21
24
  transition:
22
25
  background-color 150ms var(--ease-smooth),
23
26
  border-color 150ms var(--ease-smooth),
@@ -27,7 +30,7 @@
27
30
  @media (hover: hover) {
28
31
  &:hover:not(:focus):not(:focus-visible),
29
32
  &[data-hovered="true"]:not([data-focused="true"]):not([data-focus-visible="true"]) {
30
- @apply bg-field-hover;
33
+ background-color: var(--input-bg-hover);
31
34
  border-color: var(--field-border-hover);
32
35
  }
33
36
  }
@@ -37,7 +40,7 @@
37
40
  &[data-focused="true"] {
38
41
  @apply status-focused-field;
39
42
  border-color: var(--field-border-focus);
40
- background-color: var(--field-focus);
43
+ background-color: var(--input-bg-focus);
41
44
  }
42
45
 
43
46
  /* Focus visible state */
@@ -48,7 +51,7 @@
48
51
  /* Invalid state */
49
52
  &[data-invalid="true"] {
50
53
  @apply status-invalid-field;
51
- background-color: var(--field-focus);
54
+ background-color: var(--input-bg-focus);
52
55
  }
53
56
 
54
57
  /* Disabled state */
@@ -66,37 +69,25 @@
66
69
 
67
70
  .input--secondary {
68
71
  @apply shadow-none;
69
- background-color: var(--input-bg);
70
72
 
71
73
  --input-bg: var(--default);
72
74
  --input-bg-hover: var(--default-hover);
73
75
  --input-bg-focus: var(--default);
74
-
75
- @media (hover: hover) {
76
- &:hover:not(:focus):not(:focus-visible),
77
- &[data-hovered="true"]:not([data-focus-visible="true"]):not([data-focused="true"]) {
78
- background-color: var(--input-bg-hover);
79
- }
80
- }
81
-
82
- &:focus,
83
- &[data-focused="true"] {
84
- background-color: var(--input-bg-focus);
85
- }
86
-
87
- /* Focus visible state */
88
- &:focus-visible:not(:focus),
89
- &[data-focus-visible="true"] {
90
- }
91
-
92
- /* Invalid state */
93
- &[data-invalid="true"] {
94
- @apply status-invalid-field;
95
- background-color: var(--input-bg-focus);
96
- }
97
76
  }
98
77
 
99
78
  /* Full width modifier */
100
79
  .input--full-width {
101
80
  @apply w-full;
102
81
  }
82
+
83
+ /* ==========================================================================
84
+ Size variants
85
+ ========================================================================== */
86
+
87
+ .input--sm {
88
+ @apply field-line-sm;
89
+ }
90
+
91
+ .input--lg {
92
+ @apply field-line-lg;
93
+ }
@@ -1,6 +1,8 @@
1
1
  /* Base styles */
2
2
  .kbd {
3
- @apply inline-flex h-6 items-center space-x-0.5 rounded-lg bg-default px-2 text-center font-sans text-sm font-medium whitespace-nowrap text-muted rtl:space-x-reverse;
3
+ @apply inline-flex h-6 items-center space-x-0.5 bg-default px-2 text-center font-sans text-sm font-medium whitespace-nowrap text-muted rtl:space-x-reverse;
4
+
5
+ border-radius: min(32px, var(--component-radius));
4
6
  word-spacing: -0.25rem;
5
7
  }
6
8
 
@@ -1,7 +1,12 @@
1
1
  /* Base label styles */
2
2
  .label {
3
3
  /* Base styling */
4
- @apply text-sm font-medium text-foreground;
4
+ @apply text-sm font-medium;
5
+
6
+ --label-fg: var(--foreground);
7
+ --label-fg-invalid: var(--danger);
8
+
9
+ color: var(--label-fg);
5
10
  }
6
11
 
7
12
  /*
@@ -24,5 +29,5 @@
24
29
  .label--invalid,
25
30
  [data-invalid="true"] .label,
26
31
  [aria-invalid="true"] .label {
27
- @apply text-danger;
32
+ color: var(--label-fg-invalid);
28
33
  }
@@ -1,11 +1,13 @@
1
1
  /* Base link styles */
2
2
  .link {
3
- @apply relative inline-flex h-fit w-fit items-center rounded-xl font-medium text-link no-underline decoration-separator-tertiary decoration-[1.5px] underline-offset-4 no-highlight;
3
+ @apply relative inline-flex h-fit w-fit items-center rounded-xl font-medium text-link no-underline decoration-[1.5px] underline-offset-4 no-highlight;
4
+
5
+ --link-decoration: var(--separator-tertiary);
6
+ --link-decoration-hover: color-mix(in oklab, var(--muted) 50%, transparent);
7
+ --link-decoration-pressed: var(--muted);
8
+
9
+ text-decoration-color: var(--link-decoration);
4
10
 
5
- /**
6
- * Transitions
7
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
8
- */
9
11
  transition:
10
12
  color 100ms var(--ease-smooth),
11
13
  background-color 150ms var(--ease-smooth),
@@ -20,7 +22,9 @@
20
22
  @media (hover: hover) {
21
23
  &:hover,
22
24
  &[data-hovered="true"] {
23
- @apply underline decoration-muted/50;
25
+ @apply underline;
26
+
27
+ text-decoration-color: var(--link-decoration-hover);
24
28
 
25
29
  .link__icon {
26
30
  @apply opacity-100;
@@ -31,7 +35,9 @@
31
35
  /* Pressed state */
32
36
  &:active,
33
37
  &[data-pressed="true"] {
34
- @apply underline decoration-muted;
38
+ @apply underline;
39
+
40
+ text-decoration-color: var(--link-decoration-pressed);
35
41
 
36
42
  .link__icon {
37
43
  @apply opacity-100;
@@ -56,10 +62,6 @@
56
62
  .link__icon {
57
63
  @apply pointer-events-none inline-flex size-[0.75em] shrink-0 items-center justify-center text-current opacity-60;
58
64
 
59
- /**
60
- * Transitions
61
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
62
- */
63
65
  transition: opacity 150ms var(--ease-out);
64
66
  @apply motion-reduce:transition-none;
65
67
 
@@ -1,15 +1,30 @@
1
1
  import type { VariantProps } from "tailwind-variants";
2
2
  export declare const listboxVariants: import("tailwind-variants").TVReturnType<{
3
+ size: {
4
+ lg: "list-box--lg";
5
+ md: "";
6
+ sm: "list-box--sm";
7
+ };
3
8
  variant: {
4
9
  danger: "list-box--danger";
5
10
  default: "list-box--default";
6
11
  };
7
12
  }, undefined, "list-box", {
13
+ size: {
14
+ lg: "list-box--lg";
15
+ md: "";
16
+ sm: "list-box--sm";
17
+ };
8
18
  variant: {
9
19
  danger: "list-box--danger";
10
20
  default: "list-box--default";
11
21
  };
12
22
  }, undefined, import("tailwind-variants").TVReturnTypeLike<{
23
+ size: {
24
+ lg: "list-box--lg";
25
+ md: "";
26
+ sm: "list-box--sm";
27
+ };
13
28
  variant: {
14
29
  danger: "list-box--danger";
15
30
  default: "list-box--default";
@@ -1 +1 @@
1
- {"version":3,"file":"list-box.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box/list-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;cAW1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"list-box.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box/list-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -2,11 +2,21 @@ import { tv } from "tailwind-variants";
2
2
  //#region src/components/list-box/list-box.styles.ts
3
3
  const listboxVariants = tv({
4
4
  base: "list-box",
5
- defaultVariants: { variant: "default" },
6
- variants: { variant: {
7
- danger: "list-box--danger",
8
- default: "list-box--default"
9
- } }
5
+ defaultVariants: {
6
+ size: "md",
7
+ variant: "default"
8
+ },
9
+ variants: {
10
+ size: {
11
+ lg: "list-box--lg",
12
+ md: "",
13
+ sm: "list-box--sm"
14
+ },
15
+ variant: {
16
+ danger: "list-box--danger",
17
+ default: "list-box--default"
18
+ }
19
+ }
10
20
  });
11
21
  //#endregion
12
22
  export { listboxVariants };
@@ -3,12 +3,10 @@
3
3
  ========================================================================== */
4
4
 
5
5
  .list-box-item {
6
- @apply relative flex min-h-9 w-full items-center justify-start gap-3 rounded-2xl px-2 py-1.5 outline-none no-highlight;
6
+ @apply relative flex min-h-9 w-full items-center justify-start gap-3 px-2 py-1.5 outline-none no-highlight;
7
+
8
+ border-radius: min(32px, var(--component-radius));
7
9
 
8
- /**
9
- * Transitions
10
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
11
- */
12
10
  transition:
13
11
  transform 250ms var(--ease-out-quart),
14
12
  box-shadow 150ms var(--ease-out);
@@ -26,8 +24,10 @@
26
24
  @apply pointer-events-none text-wrap select-none;
27
25
  }
28
26
 
29
- /* Add inline-end padding when indicator is present */
30
- &:has(.list-box-item__indicator) {
27
+ /* Room for the checkmark, only while it is drawn. The repeated attribute is what outranks the
28
+ * `px` the picker popovers reset on this same item. */
29
+ &[data-slot="list-box-item"][aria-selected="true"]:has(.list-box-item__indicator),
30
+ &[data-slot="list-box-item"][data-selected="true"]:has(.list-box-item__indicator) {
31
31
  @apply pe-7;
32
32
  }
33
33
 
@@ -52,7 +52,7 @@
52
52
  @media (hover: hover) {
53
53
  &:hover,
54
54
  &[data-hovered="true"] {
55
- @apply bg-default;
55
+ @apply bg-state-layer;
56
56
  }
57
57
  }
58
58
 
@@ -91,10 +91,6 @@
91
91
 
92
92
  .list-box-item[aria-selected="true"] [data-slot="list-box-item-indicator--checkmark"],
93
93
  .list-box-item[data-selected="true"] [data-slot="list-box-item-indicator--checkmark"] {
94
- /**
95
- * Transitions
96
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
97
- */
98
94
  transition: stroke-dashoffset 250ms linear;
99
95
  @apply motion-reduce:transition-none;
100
96
  }
@@ -23,3 +23,22 @@
23
23
  @apply ms-[3%] w-[94%];
24
24
  }
25
25
  }
26
+
27
+ /* ==========================================================================
28
+ Size variants
29
+ ========================================================================== */
30
+
31
+ /* A row is as tall as a field of the same size, so a collection standing beside one lines up. */
32
+ .list-box--sm {
33
+ [data-slot="list-box-item"] {
34
+ @apply min-h-8 py-1;
35
+ }
36
+ }
37
+
38
+ .list-box--lg {
39
+ @apply text-base;
40
+
41
+ [data-slot="list-box-item"] {
42
+ @apply min-h-10 py-2;
43
+ }
44
+ }
@@ -1,4 +1,22 @@
1
1
  import type { VariantProps } from "tailwind-variants";
2
- export declare const menuVariants: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "menu", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
2
+ export declare const menuVariants: import("tailwind-variants").TVReturnType<{
3
+ size: {
4
+ lg: "menu--lg";
5
+ md: "";
6
+ sm: "menu--sm";
7
+ };
8
+ }, undefined, "menu", {
9
+ size: {
10
+ lg: "menu--lg";
11
+ md: "";
12
+ sm: "menu--sm";
13
+ };
14
+ }, undefined, import("tailwind-variants").TVReturnTypeLike<{
15
+ size: {
16
+ lg: "menu--lg";
17
+ md: "";
18
+ sm: "menu--sm";
19
+ };
20
+ }, undefined>>;
3
21
  export type MenuVariants = VariantProps<typeof menuVariants>;
4
22
  //# sourceMappingURL=menu.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.styles.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,YAAY,iKAEvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"menu.styles.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;cAYvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -1,5 +1,13 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  //#region src/components/menu/menu.styles.ts
3
- const menuVariants = tv({ base: "menu" });
3
+ const menuVariants = tv({
4
+ base: "menu",
5
+ defaultVariants: { size: "md" },
6
+ variants: { size: {
7
+ lg: "menu--lg",
8
+ md: "",
9
+ sm: "menu--sm"
10
+ } }
11
+ });
4
12
  //#endregion
5
13
  export { menuVariants };
@@ -3,12 +3,10 @@
3
3
  ========================================================================== */
4
4
 
5
5
  .menu-item {
6
- @apply relative flex min-h-9 w-full items-center justify-start gap-3 rounded-2xl px-2 py-1.5 outline-none no-highlight;
6
+ @apply relative flex min-h-9 w-full items-center justify-start gap-3 px-2 py-1.5 outline-none no-highlight;
7
+
8
+ border-radius: min(32px, var(--component-radius));
7
9
 
8
- /**
9
- * Transitions
10
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
11
- */
12
10
  transition:
13
11
  transform 250ms var(--ease-out-quart),
14
12
  box-shadow 150ms var(--ease-out);
@@ -61,7 +59,7 @@
61
59
  @media (hover: hover) {
62
60
  &:hover,
63
61
  &[data-hovered="true"] {
64
- @apply bg-default;
62
+ @apply bg-state-layer;
65
63
  }
66
64
  }
67
65
 
@@ -70,10 +68,6 @@
70
68
  &[aria-selected="true"],
71
69
  &[data-selected="true"] {
72
70
  [data-slot="menu-item-indicator--checkmark"] {
73
- /**
74
- * Transitions
75
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
76
- */
77
71
  transition: stroke-dashoffset 100ms linear;
78
72
  @apply motion-reduce:transition-none;
79
73
  }
@@ -16,3 +16,22 @@
16
16
  @apply ms-[3%] w-[94%];
17
17
  }
18
18
  }
19
+
20
+ /* ==========================================================================
21
+ Size variants
22
+ ========================================================================== */
23
+
24
+ /* A row is as tall as a field of the same size, so a collection standing beside one lines up. */
25
+ .menu--sm {
26
+ [data-slot="menu-item"] {
27
+ @apply min-h-8 py-1;
28
+ }
29
+ }
30
+
31
+ .menu--lg {
32
+ @apply text-base;
33
+
34
+ [data-slot="menu-item"] {
35
+ @apply min-h-10 py-2;
36
+ }
37
+ }
@@ -26,7 +26,9 @@
26
26
  }
27
27
 
28
28
  .meter__track {
29
- @apply relative overflow-hidden rounded-sm bg-default;
29
+ @apply relative overflow-hidden bg-default;
30
+
31
+ border-radius: min(32px, var(--component-radius));
30
32
 
31
33
  grid-area: track;
32
34
 
@@ -43,7 +45,9 @@
43
45
  }
44
46
 
45
47
  .meter__fill {
46
- @apply absolute start-0 top-0 h-full rounded-sm;
48
+ @apply absolute start-0 top-0 h-full;
49
+
50
+ border-radius: min(32px, var(--component-radius));
47
51
 
48
52
  background-color: var(--meter-fill);
49
53
 
@@ -51,10 +55,6 @@
51
55
  background-color: Highlight;
52
56
  }
53
57
 
54
- /**
55
- * Transitions
56
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
57
- */
58
58
  transition: width 300ms var(--ease-out);
59
59
  @apply motion-reduce:transition-none;
60
60
  }
@@ -77,11 +77,7 @@
77
77
 
78
78
  .meter--sm {
79
79
  .meter__track {
80
- @apply h-1 rounded-xs;
81
- }
82
-
83
- .meter__fill {
84
- @apply rounded-xs;
80
+ @apply h-1;
85
81
  }
86
82
  }
87
83
 
@@ -91,11 +87,7 @@
91
87
 
92
88
  .meter--lg {
93
89
  .meter__track {
94
- @apply h-3 rounded-md;
95
- }
96
-
97
- .meter__fill {
98
- @apply rounded-md;
90
+ @apply h-3;
99
91
  }
100
92
  }
101
93
 
@@ -9,10 +9,6 @@
9
9
  .modal__trigger {
10
10
  @apply inline-block cursor-(--cursor-interactive);
11
11
 
12
- /**
13
- * Transitions
14
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
15
- */
16
12
  transition:
17
13
  transform 250ms var(--ease-out-quart),
18
14
  background-color 150ms var(--ease-smooth),
@@ -56,10 +52,6 @@
56
52
  @apply animate-out duration-100 ease-out fade-out-0;
57
53
  }
58
54
 
59
- /**
60
- * Reduce Animation
61
- * CRITICAL: motion-reduce must be AFTER animate for correct override specificity
62
- */
63
55
  &[data-exiting="true"],
64
56
  &[data-entering="true"] {
65
57
  @apply will-change-[opacity];
@@ -125,10 +117,6 @@
125
117
  @apply animate-out duration-100 ease-out-quad fade-out-0 zoom-out-95;
126
118
  }
127
119
 
128
- /**
129
- * Reduce Animation
130
- * CRITICAL: motion-reduce must be AFTER animate for correct override specificity
131
- */
132
120
  &[data-exiting="true"],
133
121
  &[data-entering="true"] {
134
122
  @apply will-change-[opacity,transform];
@@ -177,7 +165,7 @@
177
165
  @apply relative;
178
166
  @apply flex w-full flex-col;
179
167
  @apply bg-overlay shadow-overlay outline-none;
180
- border-radius: min(32px, var(--radius-3xl));
168
+ border-radius: min(32px, var(--component-radius));
181
169
  @apply p-6;
182
170
  @apply pointer-events-auto;
183
171
 
@@ -7,6 +7,15 @@ export declare const numberFieldVariants: import("tailwind-variants").TVReturnTy
7
7
  group: string;
8
8
  };
9
9
  };
10
+ size: {
11
+ lg: {
12
+ base: string;
13
+ };
14
+ md: {};
15
+ sm: {
16
+ base: string;
17
+ };
18
+ };
10
19
  variant: {
11
20
  primary: {
12
21
  base: string;
@@ -29,6 +38,15 @@ export declare const numberFieldVariants: import("tailwind-variants").TVReturnTy
29
38
  group: string;
30
39
  };
31
40
  };
41
+ size: {
42
+ lg: {
43
+ base: string;
44
+ };
45
+ md: {};
46
+ sm: {
47
+ base: string;
48
+ };
49
+ };
32
50
  variant: {
33
51
  primary: {
34
52
  base: string;
@@ -51,6 +69,15 @@ export declare const numberFieldVariants: import("tailwind-variants").TVReturnTy
51
69
  group: string;
52
70
  };
53
71
  };
72
+ size: {
73
+ lg: {
74
+ base: string;
75
+ };
76
+ md: {};
77
+ sm: {
78
+ base: string;
79
+ };
80
+ };
54
81
  variant: {
55
82
  primary: {
56
83
  base: string;
@@ -1 +1 @@
1
- {"version":3,"file":"number-field.styles.d.ts","sourceRoot":"","sources":["../../../src/components/number-field/number-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,mBAAmB;;QAc1B,KAAK;QACL,IAAI;YACF,IAAI;YACJ,KAAK;;;;QAIP,OAAO;YACL,IAAI;;QAEN,SAAS;YACP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"number-field.styles.d.ts","sourceRoot":"","sources":["../../../src/components/number-field/number-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,mBAAmB;;QAe1B,KAAK;QACL,IAAI;YACF,IAAI;YACJ,KAAK;;;;QAIP,EAAE;YACA,IAAI;;QAEN,EAAE;QACF,EAAE;YACA,IAAI;;;;QAIN,OAAO;YACL,IAAI;;QAEN,SAAS;YACP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -3,6 +3,7 @@ import { tv } from "tailwind-variants";
3
3
  const numberFieldVariants = tv({
4
4
  defaultVariants: {
5
5
  fullWidth: false,
6
+ size: "md",
6
7
  variant: "primary"
7
8
  },
8
9
  slots: {
@@ -20,6 +21,11 @@ const numberFieldVariants = tv({
20
21
  group: "number-field__group--full-width"
21
22
  }
22
23
  },
24
+ size: {
25
+ lg: { base: "number-field--lg" },
26
+ md: {},
27
+ sm: { base: "number-field--sm" }
28
+ },
23
29
  variant: {
24
30
  primary: { base: "number-field--primary" },
25
31
  secondary: { base: "number-field--secondary" }