@bolerish/ui 0.18.0 → 1.0.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 (94) hide show
  1. package/README.md +11 -0
  2. package/dist/_tokens.js +4 -0
  3. package/dist/_tokens.js.map +2 -2
  4. package/dist/alert-dialog.js +58 -65
  5. package/dist/alert-dialog.js.map +4 -4
  6. package/dist/attachment.js +28 -65
  7. package/dist/attachment.js.map +3 -3
  8. package/dist/banner.js +2 -2
  9. package/dist/banner.js.map +1 -1
  10. package/dist/button-group.js +33 -70
  11. package/dist/button-group.js.map +3 -3
  12. package/dist/button.js +30 -63
  13. package/dist/button.js.map +3 -3
  14. package/dist/calendar.js +2 -1
  15. package/dist/calendar.js.map +2 -2
  16. package/dist/card.d.ts +1 -3
  17. package/dist/card.js +28 -66
  18. package/dist/card.js.map +3 -3
  19. package/dist/collapsible.js +3 -2
  20. package/dist/collapsible.js.map +2 -2
  21. package/dist/combobox.js +34 -69
  22. package/dist/combobox.js.map +3 -3
  23. package/dist/date-picker.js +24 -62
  24. package/dist/date-picker.js.map +3 -3
  25. package/dist/dialog.js +59 -66
  26. package/dist/dialog.js.map +4 -4
  27. package/dist/drawer.js +68 -90
  28. package/dist/drawer.js.map +4 -4
  29. package/dist/dropdown-menu.js +32 -69
  30. package/dist/dropdown-menu.js.map +3 -3
  31. package/dist/empty.js +4 -4
  32. package/dist/empty.js.map +1 -1
  33. package/dist/field.js +2 -2
  34. package/dist/field.js.map +1 -1
  35. package/dist/global.css +15 -43
  36. package/dist/heading.js +2 -2
  37. package/dist/heading.js.map +1 -1
  38. package/dist/hover-card.js +22 -59
  39. package/dist/hover-card.js.map +3 -3
  40. package/dist/index.d.ts +0 -4
  41. package/dist/index.js +0 -4
  42. package/dist/index.js.map +2 -2
  43. package/dist/input-group.js +30 -65
  44. package/dist/input-group.js.map +3 -3
  45. package/dist/input-otp.js +31 -67
  46. package/dist/input-otp.js.map +3 -3
  47. package/dist/input.js +23 -60
  48. package/dist/input.js.map +3 -3
  49. package/dist/item.js +30 -67
  50. package/dist/item.js.map +3 -3
  51. package/dist/label.js +2 -2
  52. package/dist/label.js.map +1 -1
  53. package/dist/menubar.js +23 -60
  54. package/dist/menubar.js.map +3 -3
  55. package/dist/native-select.js +24 -61
  56. package/dist/native-select.js.map +3 -3
  57. package/dist/navigation-menu.js +29 -66
  58. package/dist/navigation-menu.js.map +3 -3
  59. package/dist/pagination.js +1 -1
  60. package/dist/pagination.js.map +1 -1
  61. package/dist/paragraph.js +2 -2
  62. package/dist/paragraph.js.map +1 -1
  63. package/dist/popover.js +24 -61
  64. package/dist/popover.js.map +3 -3
  65. package/dist/select.js +31 -68
  66. package/dist/select.js.map +3 -3
  67. package/dist/snackbar.js +53 -33
  68. package/dist/snackbar.js.map +2 -2
  69. package/dist/styles/modal-backdrop.d.ts +17 -0
  70. package/dist/styles/surface.d.ts +23 -149
  71. package/dist/stylex.css +313 -279
  72. package/dist/tabs.js +4 -4
  73. package/dist/tabs.js.map +1 -1
  74. package/dist/textarea.js +23 -60
  75. package/dist/textarea.js.map +3 -3
  76. package/dist/theme.js +4 -4
  77. package/dist/theme.js.map +1 -1
  78. package/dist/toast.js +31 -68
  79. package/dist/toast.js.map +3 -3
  80. package/dist/toggle-group.js +28 -65
  81. package/dist/toggle-group.js.map +3 -3
  82. package/dist/toggle.js +21 -58
  83. package/dist/toggle.js.map +3 -3
  84. package/dist/tooltip.js +21 -62
  85. package/dist/tooltip.js.map +3 -3
  86. package/package.json +5 -6
  87. package/dist/liquid-refraction.svg +0 -7
  88. package/dist/liquid.d.ts +0 -10
  89. package/dist/liquid.js +0 -230
  90. package/dist/liquid.js.map +0 -7
  91. package/dist/styles/liquid-map.d.ts +0 -5
  92. package/dist/surface.d.ts +0 -12
  93. package/dist/surface.js +0 -12
  94. package/dist/surface.js.map +0 -7
@@ -1,175 +1,49 @@
1
1
  import * as stylex from "@stylexjs/stylex";
2
- export declare const surfaceStyles: {
3
- edge: Readonly<{
2
+ export declare const surfaceStyles: Readonly<{
3
+ readonly edge: Readonly<{
4
4
  readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
5
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
6
- readonly borderColor: stylex.StyleXVar<string>;
7
- }>;
8
5
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
9
6
  readonly borderColor: "CanvasText";
10
7
  }>;
11
8
  }>;
12
- panel: (Readonly<{
13
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
14
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
15
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
16
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
17
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
18
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
19
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
20
- readonly backdropFilter: "none";
21
- readonly backgroundImage: "none";
22
- readonly boxShadow: "var(--bolerish-material-shadow)";
23
- }>;
9
+ readonly panel: Readonly<{
10
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
24
11
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
25
12
  readonly backgroundColor: "Canvas";
26
- readonly backdropFilter: "none";
27
- readonly backgroundImage: "none";
28
- readonly boxShadow: "none";
29
- }>;
30
- }> | Readonly<{
31
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
32
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-panel-opacity, 100%)">;
33
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-panel-filter, none)">;
34
- }>)[];
35
- control: (Readonly<{
36
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
37
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
38
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
39
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
40
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
41
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
42
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
43
- readonly backdropFilter: "none";
44
- readonly backgroundImage: "none";
45
- readonly boxShadow: "var(--bolerish-material-shadow)";
46
- }>;
47
- readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
48
- readonly backgroundColor: "Canvas";
49
- readonly backdropFilter: "none";
50
- readonly backgroundImage: "none";
51
- readonly boxShadow: "none";
52
- }>;
53
- }> | Readonly<{
54
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
55
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-control-opacity, 100%)">;
56
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-control-filter, none)">;
57
- }>)[];
58
- subtle: (Readonly<{
59
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
60
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
61
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
62
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
63
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
64
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
65
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
66
- readonly backdropFilter: "none";
67
- readonly backgroundImage: "none";
68
- readonly boxShadow: "var(--bolerish-material-shadow)";
69
13
  }>;
14
+ }>;
15
+ readonly control: Readonly<{
16
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
70
17
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
71
18
  readonly backgroundColor: "Canvas";
72
- readonly backdropFilter: "none";
73
- readonly backgroundImage: "none";
74
- readonly boxShadow: "none";
75
- }>;
76
- }> | Readonly<{
77
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
78
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-control-opacity, 100%)">;
79
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-control-filter, none)">;
80
- }>)[];
81
- outline: (Readonly<{
82
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
83
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
84
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
85
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
86
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
87
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
88
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
89
- readonly backdropFilter: "none";
90
- readonly backgroundImage: "none";
91
- readonly boxShadow: "var(--bolerish-material-shadow)";
92
19
  }>;
20
+ }>;
21
+ readonly subtle: Readonly<{
22
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
93
23
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
94
24
  readonly backgroundColor: "Canvas";
95
- readonly backdropFilter: "none";
96
- readonly backgroundImage: "none";
97
- readonly boxShadow: "none";
98
- }>;
99
- }> | Readonly<{
100
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
101
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-control-opacity, 100%)">;
102
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-control-filter, none)">;
103
- }>)[];
104
- raised: (Readonly<{
105
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
106
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
107
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
108
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
109
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
110
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
111
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
112
- readonly backdropFilter: "none";
113
- readonly backgroundImage: "none";
114
- readonly boxShadow: "var(--bolerish-material-shadow)";
115
25
  }>;
26
+ }>;
27
+ readonly outline: Readonly<{
28
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
116
29
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
117
30
  readonly backgroundColor: "Canvas";
118
- readonly backdropFilter: "none";
119
- readonly backgroundImage: "none";
120
- readonly boxShadow: "none";
121
- }>;
122
- }> | Readonly<{
123
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", `var(--bolerish-raised-shadow, ${stylex.StyleXVar<string>})`>;
124
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
125
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-floating-opacity, 100%)">;
126
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-floating-filter, none)">;
127
- }>)[];
128
- translucent: (Readonly<{
129
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
130
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
131
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
132
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
133
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
134
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
135
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
136
- readonly backdropFilter: "none";
137
- readonly backgroundImage: "none";
138
- readonly boxShadow: "var(--bolerish-material-shadow)";
139
31
  }>;
32
+ }>;
33
+ readonly raised: Readonly<{
34
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
35
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
140
36
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
141
37
  readonly backgroundColor: "Canvas";
142
- readonly backdropFilter: "none";
143
- readonly backgroundImage: "none";
144
38
  readonly boxShadow: "none";
145
39
  }>;
146
- }> | Readonly<{
147
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
148
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-panel-opacity, 92%)">;
149
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-panel-filter, blur(16px))">;
150
- }>)[];
151
- floating: (Readonly<{
152
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
153
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
154
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
155
- readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
156
- readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
157
- readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
158
- readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
159
- readonly backdropFilter: "none";
160
- readonly backgroundImage: "none";
161
- readonly boxShadow: "var(--bolerish-material-shadow)";
162
- }>;
40
+ }>;
41
+ readonly floating: Readonly<{
42
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
43
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", string>;
163
44
  readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
164
45
  readonly backgroundColor: "Canvas";
165
- readonly backdropFilter: "none";
166
- readonly backgroundImage: "none";
167
46
  readonly boxShadow: "none";
168
47
  }>;
169
- }> | Readonly<{
170
- readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", `var(--bolerish-floating-shadow, ${stylex.StyleXVar<string>})`>;
171
- readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
172
- readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-floating-opacity, 94%)">;
173
- readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-floating-filter, blur(16px))">;
174
- }>)[];
175
- };
48
+ }>;
49
+ }>;