@ropav/styles 0.4.0 → 0.5.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 (138) hide show
  1. package/README.md +10 -5
  2. package/dist/components/accordion.css +5 -5
  3. package/dist/components/alert-dialog.css +1 -1
  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 +31 -3
  9. package/dist/components/button-group.css +6 -6
  10. package/dist/components/button.css +7 -11
  11. package/dist/components/calendar-year-picker.css +1 -1
  12. package/dist/components/card.css +1 -1
  13. package/dist/components/color-input-group/color-input-group.styles.d.ts +27 -0
  14. package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
  15. package/dist/components/color-input-group/color-input-group.styles.js +6 -0
  16. package/dist/components/color-input-group.css +21 -1
  17. package/dist/components/combo-box/combo-box.styles.d.ts +27 -0
  18. package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
  19. package/dist/components/combo-box/combo-box.styles.js +17 -7
  20. package/dist/components/combo-box.css +21 -1
  21. package/dist/components/date-input-group/date-input-group.styles.d.ts +27 -0
  22. package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
  23. package/dist/components/date-input-group/date-input-group.styles.js +6 -0
  24. package/dist/components/date-input-group.css +21 -1
  25. package/dist/components/dropdown.css +1 -1
  26. package/dist/components/index.css +4 -0
  27. package/dist/components/index.d.ts +4 -0
  28. package/dist/components/index.d.ts.map +1 -1
  29. package/dist/components/input/input.styles.d.ts +15 -0
  30. package/dist/components/input/input.styles.d.ts.map +1 -1
  31. package/dist/components/input/input.styles.js +6 -0
  32. package/dist/components/input-group/input-group.styles.d.ts +27 -0
  33. package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
  34. package/dist/components/input-group/input-group.styles.js +6 -0
  35. package/dist/components/input-group.css +23 -1
  36. package/dist/components/input.css +13 -1
  37. package/dist/components/list-box/list-box.styles.d.ts +15 -0
  38. package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
  39. package/dist/components/list-box/list-box.styles.js +15 -5
  40. package/dist/components/list-box-item.css +4 -2
  41. package/dist/components/list-box.css +19 -0
  42. package/dist/components/menu/menu.styles.d.ts +19 -1
  43. package/dist/components/menu/menu.styles.d.ts.map +1 -1
  44. package/dist/components/menu/menu.styles.js +9 -1
  45. package/dist/components/menu.css +19 -0
  46. package/dist/components/modal.css +1 -1
  47. package/dist/components/number-field/number-field.styles.d.ts +27 -0
  48. package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
  49. package/dist/components/number-field/number-field.styles.js +6 -0
  50. package/dist/components/number-field.css +60 -1
  51. package/dist/components/pagination.css +6 -6
  52. package/dist/components/popover.css +15 -1
  53. package/dist/components/search-field/search-field.styles.d.ts +27 -0
  54. package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
  55. package/dist/components/search-field/search-field.styles.js +6 -0
  56. package/dist/components/search-field.css +25 -1
  57. package/dist/components/segmented-control/index.d.ts +2 -0
  58. package/dist/components/segmented-control/index.d.ts.map +1 -0
  59. package/dist/components/segmented-control/index.js +2 -0
  60. package/dist/components/segmented-control/segmented-control.styles.d.ts +73 -0
  61. package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -0
  62. package/dist/components/segmented-control/segmented-control.styles.js +27 -0
  63. package/dist/components/segmented-control.css +193 -0
  64. package/dist/components/select/select.styles.d.ts +33 -0
  65. package/dist/components/select/select.styles.d.ts.map +1 -1
  66. package/dist/components/select/select.styles.js +12 -0
  67. package/dist/components/select.css +31 -3
  68. package/dist/components/sidebar/index.d.ts +2 -0
  69. package/dist/components/sidebar/index.d.ts.map +1 -0
  70. package/dist/components/sidebar/index.js +2 -0
  71. package/dist/components/sidebar/sidebar.styles.d.ts +190 -0
  72. package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -0
  73. package/dist/components/sidebar/sidebar.styles.js +52 -0
  74. package/dist/components/sidebar.css +510 -0
  75. package/dist/components/splitter/index.d.ts +2 -0
  76. package/dist/components/splitter/index.d.ts.map +1 -0
  77. package/dist/components/splitter/index.js +2 -0
  78. package/dist/components/splitter/splitter.styles.d.ts +61 -0
  79. package/dist/components/splitter/splitter.styles.d.ts.map +1 -0
  80. package/dist/components/splitter/splitter.styles.js +26 -0
  81. package/dist/components/splitter.css +241 -0
  82. package/dist/components/table.css +3 -3
  83. package/dist/components/tabs.css +2 -2
  84. package/dist/components/textarea/textarea.styles.d.ts +15 -0
  85. package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
  86. package/dist/components/textarea/textarea.styles.js +6 -0
  87. package/dist/components/textarea.css +13 -1
  88. package/dist/components/toast.css +1 -1
  89. package/dist/components/toggle-button-group.css +7 -7
  90. package/dist/components/toggle-button.css +7 -11
  91. package/dist/components/toolbar.css +1 -1
  92. package/dist/components/tooltip.css +15 -2
  93. package/dist/components/virtualizer/index.d.ts +2 -0
  94. package/dist/components/virtualizer/index.d.ts.map +1 -0
  95. package/dist/components/virtualizer/index.js +2 -0
  96. package/dist/components/virtualizer/virtualizer.styles.d.ts +44 -0
  97. package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -0
  98. package/dist/components/virtualizer/virtualizer.styles.js +15 -0
  99. package/dist/components/virtualizer.css +64 -0
  100. package/dist/index.js +5 -1
  101. package/dist/ropav.min.css +2 -2
  102. package/dist/themes/airbnb.css +5 -0
  103. package/dist/themes/all.css +1 -0
  104. package/dist/themes/coinbase.css +5 -0
  105. package/dist/themes/default.css +16 -4
  106. package/dist/themes/discord.css +5 -0
  107. package/dist/themes/hero.css +262 -0
  108. package/dist/themes/lavender.css +5 -0
  109. package/dist/themes/mint.css +5 -0
  110. package/dist/themes/netflix.css +5 -0
  111. package/dist/themes/rabbit.css +5 -0
  112. package/dist/themes/shared/theme.css +19 -2
  113. package/dist/themes/sky.css +5 -0
  114. package/dist/themes/spotify.css +5 -0
  115. package/dist/themes/uber.css +5 -0
  116. package/dist/utilities/index.css +27 -0
  117. package/package.json +1 -1
  118. package/src/components/autocomplete/autocomplete.styles.ts +12 -0
  119. package/src/components/color-input-group/color-input-group.styles.ts +10 -0
  120. package/src/components/combo-box/combo-box.styles.ts +12 -0
  121. package/src/components/date-input-group/date-input-group.styles.ts +10 -0
  122. package/src/components/index.ts +4 -0
  123. package/src/components/input/input.styles.ts +6 -0
  124. package/src/components/input-group/input-group.styles.ts +10 -0
  125. package/src/components/list-box/list-box.styles.ts +6 -0
  126. package/src/components/menu/menu.styles.ts +10 -0
  127. package/src/components/number-field/number-field.styles.ts +10 -0
  128. package/src/components/search-field/search-field.styles.ts +10 -0
  129. package/src/components/segmented-control/index.ts +1 -0
  130. package/src/components/segmented-control/segmented-control.styles.ts +37 -0
  131. package/src/components/select/select.styles.ts +12 -0
  132. package/src/components/sidebar/index.ts +1 -0
  133. package/src/components/sidebar/sidebar.styles.ts +94 -0
  134. package/src/components/splitter/index.ts +1 -0
  135. package/src/components/splitter/splitter.styles.ts +44 -0
  136. package/src/components/textarea/textarea.styles.ts +6 -0
  137. package/src/components/virtualizer/index.ts +1 -0
  138. package/src/components/virtualizer/virtualizer.styles.ts +15 -0
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  .date-input-group__input {
70
- @apply flex flex-1 cursor-text items-center gap-px rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none sm:text-sm;
70
+ @apply flex flex-1 cursor-text items-center gap-px rounded-none border-0 bg-transparent px-3 field-line-md shadow-none outline-none;
71
71
 
72
72
  /* Remove border radius on left side when prefix is present */
73
73
  .date-input-group:has([data-slot="date-input-group-prefix"]) & {
@@ -189,3 +189,23 @@
189
189
  .date-input-group--full-width {
190
190
  @apply w-full;
191
191
  }
192
+
193
+ /* ==========================================================================
194
+ Size variants
195
+ ========================================================================== */
196
+
197
+ .date-input-group--sm {
198
+ @apply h-8;
199
+
200
+ .date-input-group__input {
201
+ @apply field-line-sm;
202
+ }
203
+ }
204
+
205
+ .date-input-group--lg {
206
+ @apply h-10;
207
+
208
+ .date-input-group__input {
209
+ @apply field-line-lg;
210
+ }
211
+ }
@@ -62,7 +62,7 @@
62
62
  /* Similar to select popover styles */
63
63
  .dropdown__popover {
64
64
  @apply max-w-[48svw] origin-(--trigger-anchor-point) scroll-py-1 scrollbar overflow-y-auto overscroll-contain bg-overlay p-0 text-sm will-change-transform md:min-w-55;
65
- border-radius: min(32px, var(--radius-3xl));
65
+ border-radius: min(32px, var(--component-radius));
66
66
  box-shadow: var(--shadow-overlay);
67
67
 
68
68
  /* Focus state */
@@ -30,6 +30,7 @@
30
30
  @import "./disclosure.css";
31
31
  @import "./link.css";
32
32
  @import "./pagination.css";
33
+ @import "./sidebar.css";
33
34
  @import "./tabs.css";
34
35
 
35
36
  /* ------------------------------------------------------------------------------------------------
@@ -68,6 +69,7 @@
68
69
  /* ------------------------------------------------------------------------------------------------
69
70
  * Controls
70
71
  * ------------------------------------------------------------------------------------------------ */
72
+ @import "./segmented-control.css";
71
73
  @import "./slider.css";
72
74
  @import "./switch.css";
73
75
  @import "./switch-group.css";
@@ -125,6 +127,7 @@
125
127
  @import "./card.css";
126
128
  @import "./header.css";
127
129
  @import "./separator.css";
130
+ @import "./splitter.css";
128
131
  @import "./surface.css";
129
132
 
130
133
  /* ------------------------------------------------------------------------------------------------
@@ -158,3 +161,4 @@
158
161
  * Utilities
159
162
  * ------------------------------------------------------------------------------------------------ */
160
163
  @import "./scroll-shadow.css";
164
+ @import "./virtualizer.css";
@@ -60,11 +60,14 @@ export * from "./radio";
60
60
  export * from "./radio-group";
61
61
  export * from "./scroll-shadow";
62
62
  export * from "./search-field";
63
+ export * from "./segmented-control";
63
64
  export * from "./select";
64
65
  export * from "./separator";
66
+ export * from "./sidebar";
65
67
  export * from "./skeleton";
66
68
  export * from "./slider";
67
69
  export * from "./spinner";
70
+ export * from "./splitter";
68
71
  export * from "./surface";
69
72
  export * from "./switch";
70
73
  export * from "./switch-group";
@@ -81,4 +84,5 @@ export * from "./toggle-button";
81
84
  export * from "./toggle-button-group";
82
85
  export * from "./toolbar";
83
86
  export * from "./tooltip";
87
+ export * from "./virtualizer";
84
88
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,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Q,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
@@ -4,6 +4,11 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
4
4
  false: "";
5
5
  true: "input--full-width";
6
6
  };
7
+ size: {
8
+ lg: "input--lg";
9
+ md: "";
10
+ sm: "input--sm";
11
+ };
7
12
  variant: {
8
13
  primary: "input--primary";
9
14
  secondary: "input--secondary";
@@ -13,6 +18,11 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
13
18
  false: "";
14
19
  true: "input--full-width";
15
20
  };
21
+ size: {
22
+ lg: "input--lg";
23
+ md: "";
24
+ sm: "input--sm";
25
+ };
16
26
  variant: {
17
27
  primary: "input--primary";
18
28
  secondary: "input--secondary";
@@ -22,6 +32,11 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
22
32
  false: "";
23
33
  true: "input--full-width";
24
34
  };
35
+ size: {
36
+ lg: "input--lg";
37
+ md: "";
38
+ sm: "input--sm";
39
+ };
25
40
  variant: {
26
41
  primary: "input--primary";
27
42
  secondary: "input--secondary";
@@ -1 +1 @@
1
- {"version":3,"file":"input.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgBxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"input.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -4,6 +4,7 @@ const inputVariants = tv({
4
4
  base: "input",
5
5
  defaultVariants: {
6
6
  fullWidth: false,
7
+ size: "md",
7
8
  variant: "primary"
8
9
  },
9
10
  variants: {
@@ -11,6 +12,11 @@ const inputVariants = tv({
11
12
  false: "",
12
13
  true: "input--full-width"
13
14
  },
15
+ size: {
16
+ lg: "input--lg",
17
+ md: "",
18
+ sm: "input--sm"
19
+ },
14
20
  variant: {
15
21
  primary: "input--primary",
16
22
  secondary: "input--secondary"
@@ -6,6 +6,15 @@ export declare const inputGroupVariants: import("tailwind-variants").TVReturnTyp
6
6
  base: string;
7
7
  };
8
8
  };
9
+ size: {
10
+ lg: {
11
+ base: string;
12
+ };
13
+ md: {};
14
+ sm: {
15
+ base: string;
16
+ };
17
+ };
9
18
  variant: {
10
19
  primary: {
11
20
  base: string;
@@ -26,6 +35,15 @@ export declare const inputGroupVariants: import("tailwind-variants").TVReturnTyp
26
35
  base: string;
27
36
  };
28
37
  };
38
+ size: {
39
+ lg: {
40
+ base: string;
41
+ };
42
+ md: {};
43
+ sm: {
44
+ base: string;
45
+ };
46
+ };
29
47
  variant: {
30
48
  primary: {
31
49
  base: string;
@@ -46,6 +64,15 @@ export declare const inputGroupVariants: import("tailwind-variants").TVReturnTyp
46
64
  base: string;
47
65
  };
48
66
  };
67
+ size: {
68
+ lg: {
69
+ base: string;
70
+ };
71
+ md: {};
72
+ sm: {
73
+ base: string;
74
+ };
75
+ };
49
76
  variant: {
50
77
  primary: {
51
78
  base: string;
@@ -1 +1 @@
1
- {"version":3,"file":"input-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input-group/input-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,kBAAkB;;QAazB,KAAK;QACL,IAAI;YACF,IAAI;;;;QAIN,OAAO;YACL,IAAI;;QAEN,SAAS;YACP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"input-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input-group/input-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,kBAAkB;;QAczB,KAAK;QACL,IAAI;YACF,IAAI;;;;QAIN,EAAE;YACA,IAAI;;QAEN,EAAE;QACF,EAAE;YACA,IAAI;;;;QAIN,OAAO;YACL,IAAI;;QAEN,SAAS;YACP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -3,6 +3,7 @@ import { tv } from "tailwind-variants";
3
3
  const inputGroupVariants = tv({
4
4
  defaultVariants: {
5
5
  fullWidth: false,
6
+ size: "md",
6
7
  variant: "primary"
7
8
  },
8
9
  slots: {
@@ -16,6 +17,11 @@ const inputGroupVariants = tv({
16
17
  false: {},
17
18
  true: { base: "input-group--full-width" }
18
19
  },
20
+ size: {
21
+ lg: { base: "input-group--lg" },
22
+ md: {},
23
+ sm: { base: "input-group--sm" }
24
+ },
19
25
  variant: {
20
26
  primary: { base: "input-group--primary" },
21
27
  secondary: { base: "input-group--secondary" }
@@ -76,7 +76,7 @@
76
76
  }
77
77
 
78
78
  .input-group__input {
79
- @apply flex-1 rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none placeholder:text-field-placeholder sm:text-sm;
79
+ @apply flex-1 rounded-none border-0 bg-transparent px-3 field-line-md shadow-none outline-none placeholder:text-field-placeholder;
80
80
 
81
81
  /* Remove border radius on left side when prefix is present */
82
82
  .input-group:has([data-slot="input-group-prefix"]) & {
@@ -214,3 +214,25 @@
214
214
  .input-group--full-width {
215
215
  @apply w-full;
216
216
  }
217
+
218
+ /* ==========================================================================
219
+ Size variants
220
+ ========================================================================== */
221
+
222
+ /* The shell states the floor and the control inside carries the metrics, which is the same split
223
+ * the base makes - the group may grow around a textarea, so it cannot state a height. */
224
+ .input-group--sm {
225
+ @apply min-h-8;
226
+
227
+ .input-group__input {
228
+ @apply field-line-sm;
229
+ }
230
+ }
231
+
232
+ .input-group--lg {
233
+ @apply min-h-10;
234
+
235
+ .input-group__input {
236
+ @apply field-line-lg;
237
+ }
238
+ }
@@ -1,5 +1,5 @@
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 bg-field px-3 field-line-md text-field-foreground shadow-field outline-none placeholder:text-field-placeholder;
3
3
 
4
4
  border-width: var(--border-width-field);
5
5
  border-color: var(--field-border);
@@ -100,3 +100,15 @@
100
100
  .input--full-width {
101
101
  @apply w-full;
102
102
  }
103
+
104
+ /* ==========================================================================
105
+ Size variants
106
+ ========================================================================== */
107
+
108
+ .input--sm {
109
+ @apply field-line-sm;
110
+ }
111
+
112
+ .input--lg {
113
+ @apply field-line-lg;
114
+ }
@@ -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 };
@@ -26,8 +26,10 @@
26
26
  @apply pointer-events-none text-wrap select-none;
27
27
  }
28
28
 
29
- /* Add inline-end padding when indicator is present */
30
- &:has(.list-box-item__indicator) {
29
+ /* Room for the checkmark, only while it is drawn. The repeated attribute is what outranks the
30
+ * `px` the picker popovers reset on this same item. */
31
+ &[data-slot="list-box-item"][aria-selected="true"]:has(.list-box-item__indicator),
32
+ &[data-slot="list-box-item"][data-selected="true"]:has(.list-box-item__indicator) {
31
33
  @apply pe-7;
32
34
  }
33
35
 
@@ -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 };
@@ -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
+ }
@@ -177,7 +177,7 @@
177
177
  @apply relative;
178
178
  @apply flex w-full flex-col;
179
179
  @apply bg-overlay shadow-overlay outline-none;
180
- border-radius: min(32px, var(--radius-3xl));
180
+ border-radius: min(32px, var(--component-radius));
181
181
  @apply p-6;
182
182
  @apply pointer-events-auto;
183
183
 
@@ -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" }
@@ -97,7 +97,7 @@
97
97
  }
98
98
 
99
99
  .number-field__input {
100
- @apply min-w-0 rounded-none border-0 bg-transparent px-3 py-2 text-base tabular-nums shadow-none outline-none sm:text-sm;
100
+ @apply min-w-0 rounded-none border-0 bg-transparent px-3 field-line-md tabular-nums shadow-none outline-none;
101
101
 
102
102
  /* Remove border radius on left side when decrement button is present */
103
103
  .number-field__group:has([slot="decrement"]) & {
@@ -238,3 +238,62 @@
238
238
  .number-field__group--full-width {
239
239
  @apply w-full;
240
240
  }
241
+
242
+ /* ==========================================================================
243
+ Size variants
244
+ ========================================================================== */
245
+
246
+ /* The stepper column stays 4px wider than the field is tall, as it is at `md`. */
247
+ .number-field--sm {
248
+ .number-field__group {
249
+ @apply h-8;
250
+
251
+ &:has([slot="decrement"]) {
252
+ grid-template-columns: 36px 1fr;
253
+ }
254
+
255
+ &:has([slot="increment"]) {
256
+ grid-template-columns: 1fr 36px;
257
+ }
258
+
259
+ &:has([slot="decrement"]):has([slot="increment"]) {
260
+ grid-template-columns: 36px 1fr 36px;
261
+ }
262
+ }
263
+
264
+ .number-field__input {
265
+ @apply field-line-sm;
266
+ }
267
+
268
+ .number-field__increment-button,
269
+ .number-field__decrement-button {
270
+ @apply w-9;
271
+ }
272
+ }
273
+
274
+ .number-field--lg {
275
+ .number-field__group {
276
+ @apply h-10;
277
+
278
+ &:has([slot="decrement"]) {
279
+ grid-template-columns: 44px 1fr;
280
+ }
281
+
282
+ &:has([slot="increment"]) {
283
+ grid-template-columns: 1fr 44px;
284
+ }
285
+
286
+ &:has([slot="decrement"]):has([slot="increment"]) {
287
+ grid-template-columns: 44px 1fr 44px;
288
+ }
289
+ }
290
+
291
+ .number-field__input {
292
+ @apply field-line-lg;
293
+ }
294
+
295
+ .number-field__increment-button,
296
+ .number-field__decrement-button {
297
+ @apply w-11;
298
+ }
299
+ }