@_linked/primitives 1.0.5

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 (191) hide show
  1. package/.changeset/README.md +20 -0
  2. package/.changeset/config.json +14 -0
  3. package/.github/workflows/changeset-check.yml +44 -0
  4. package/.github/workflows/ci.yml +30 -0
  5. package/.github/workflows/publish.yml +42 -0
  6. package/CHANGELOG.md +7 -0
  7. package/lib/cjs/backend.d.ts +0 -0
  8. package/lib/cjs/components/Accordion.d.ts +13 -0
  9. package/lib/cjs/components/Accordion.module.css +101 -0
  10. package/lib/cjs/components/AlertDialog.d.ts +37 -0
  11. package/lib/cjs/components/AlertDialog.module.css +80 -0
  12. package/lib/cjs/components/AspectRatio.d.ts +7 -0
  13. package/lib/cjs/components/AspectRatio.module.css +28 -0
  14. package/lib/cjs/components/Avatar.d.ts +11 -0
  15. package/lib/cjs/components/Avatar.module.css +43 -0
  16. package/lib/cjs/components/Breadcrumb.d.ts +41 -0
  17. package/lib/cjs/components/Breadcrumb.module.css +78 -0
  18. package/lib/cjs/components/Button.d.ts +9 -0
  19. package/lib/cjs/components/Button.module.css +246 -0
  20. package/lib/cjs/components/Checkbox.d.ts +4 -0
  21. package/lib/cjs/components/Checkbox.module.css +43 -0
  22. package/lib/cjs/components/Collapsible.d.ts +11 -0
  23. package/lib/cjs/components/Command.d.ts +167 -0
  24. package/lib/cjs/components/Command.module.css +153 -0
  25. package/lib/cjs/components/ContextMenu.d.ts +51 -0
  26. package/lib/cjs/components/ContextMenu.module.css +238 -0
  27. package/lib/cjs/components/Dialog.d.ts +38 -0
  28. package/lib/cjs/components/Dialog.module.css +109 -0
  29. package/lib/cjs/components/Drawer.d.ts +40 -0
  30. package/lib/cjs/components/Drawer.module.css +87 -0
  31. package/lib/cjs/components/DropdownMenu.d.ts +52 -0
  32. package/lib/cjs/components/DropdownMenu.module.css +244 -0
  33. package/lib/cjs/components/Form.d.ts +23 -0
  34. package/lib/cjs/components/Form.module.css +75 -0
  35. package/lib/cjs/components/Heading.d.ts +7 -0
  36. package/lib/cjs/components/Heading.module.css +83 -0
  37. package/lib/cjs/components/HoverCard.d.ts +15 -0
  38. package/lib/cjs/components/HoverCard.module.css +75 -0
  39. package/lib/cjs/components/IconButton.d.ts +9 -0
  40. package/lib/cjs/components/IconButton.module.css +150 -0
  41. package/lib/cjs/components/Input.d.ts +6 -0
  42. package/lib/cjs/components/Input.module.css +61 -0
  43. package/lib/cjs/components/Label.d.ts +4 -0
  44. package/lib/cjs/components/Label.module.css +7 -0
  45. package/lib/cjs/components/Menubar.d.ts +65 -0
  46. package/lib/cjs/components/Menubar.module.css +128 -0
  47. package/lib/cjs/components/MultiSelect.d.ts +86 -0
  48. package/lib/cjs/components/MultiSelect.module.css +93 -0
  49. package/lib/cjs/components/NavigationMenu.d.ts +21 -0
  50. package/lib/cjs/components/NavigationMenu.module.css +248 -0
  51. package/lib/cjs/components/Popover.d.ts +17 -0
  52. package/lib/cjs/components/Popover.module.css +106 -0
  53. package/lib/cjs/components/Progress.d.ts +9 -0
  54. package/lib/cjs/components/Progress.module.css +23 -0
  55. package/lib/cjs/components/RadioGroup.d.ts +9 -0
  56. package/lib/cjs/components/RadioGroup.module.css +57 -0
  57. package/lib/cjs/components/ScrollArea.d.ts +9 -0
  58. package/lib/cjs/components/ScrollArea.module.css +55 -0
  59. package/lib/cjs/components/Select.d.ts +28 -0
  60. package/lib/cjs/components/Select.module.css +153 -0
  61. package/lib/cjs/components/Separator.d.ts +4 -0
  62. package/lib/cjs/components/Separator.module.css +13 -0
  63. package/lib/cjs/components/Slider.d.ts +13 -0
  64. package/lib/cjs/components/Slider.module.css +43 -0
  65. package/lib/cjs/components/Spinner.d.ts +4 -0
  66. package/lib/cjs/components/Spinner.module.css +21 -0
  67. package/lib/cjs/components/Switch.d.ts +4 -0
  68. package/lib/cjs/components/Switch.module.css +52 -0
  69. package/lib/cjs/components/Tabs.d.ts +13 -0
  70. package/lib/cjs/components/Tabs.module.css +64 -0
  71. package/lib/cjs/components/Text.d.ts +8 -0
  72. package/lib/cjs/components/Text.module.css +24 -0
  73. package/lib/cjs/components/Textarea.d.ts +5 -0
  74. package/lib/cjs/components/Textarea.module.css +34 -0
  75. package/lib/cjs/components/Toast.d.ts +21 -0
  76. package/lib/cjs/components/Toast.module.css +133 -0
  77. package/lib/cjs/components/Toaster.d.ts +2 -0
  78. package/lib/cjs/components/Toggle.d.ts +7 -0
  79. package/lib/cjs/components/Toggle.module.css +32 -0
  80. package/lib/cjs/components/ToggleGroup.d.ts +9 -0
  81. package/lib/cjs/components/ToggleGroup.module.css +61 -0
  82. package/lib/cjs/components/Toolbar.d.ts +17 -0
  83. package/lib/cjs/components/Toolbar.module.css +113 -0
  84. package/lib/cjs/components/Tooltip.d.ts +15 -0
  85. package/lib/cjs/components/Tooltip.module.css +78 -0
  86. package/lib/cjs/components/Typography.d.ts +8 -0
  87. package/lib/cjs/components/Typography.module.css +25 -0
  88. package/lib/cjs/components/VisuallyHidden.d.ts +4 -0
  89. package/lib/cjs/components/helpers/mixins.css +15 -0
  90. package/lib/cjs/data/primitives.json +10 -0
  91. package/lib/cjs/hooks/use-toast.d.ts +44 -0
  92. package/lib/cjs/index.d.ts +45 -0
  93. package/lib/cjs/ontologies/primitives.d.ts +6 -0
  94. package/lib/cjs/package.d.ts +3 -0
  95. package/lib/cjs/package.json +85 -0
  96. package/lib/cjs/theme.css +3 -0
  97. package/lib/cjs/types.d.ts +12 -0
  98. package/lib/esm/backend.d.ts +0 -0
  99. package/lib/esm/components/Accordion.d.ts +13 -0
  100. package/lib/esm/components/Accordion.module.css +101 -0
  101. package/lib/esm/components/AlertDialog.d.ts +37 -0
  102. package/lib/esm/components/AlertDialog.module.css +80 -0
  103. package/lib/esm/components/AspectRatio.d.ts +7 -0
  104. package/lib/esm/components/AspectRatio.module.css +28 -0
  105. package/lib/esm/components/Avatar.d.ts +11 -0
  106. package/lib/esm/components/Avatar.module.css +43 -0
  107. package/lib/esm/components/Breadcrumb.d.ts +41 -0
  108. package/lib/esm/components/Breadcrumb.module.css +78 -0
  109. package/lib/esm/components/Button.d.ts +9 -0
  110. package/lib/esm/components/Button.module.css +246 -0
  111. package/lib/esm/components/Checkbox.d.ts +4 -0
  112. package/lib/esm/components/Checkbox.module.css +43 -0
  113. package/lib/esm/components/Collapsible.d.ts +11 -0
  114. package/lib/esm/components/Command.d.ts +167 -0
  115. package/lib/esm/components/Command.module.css +153 -0
  116. package/lib/esm/components/ContextMenu.d.ts +51 -0
  117. package/lib/esm/components/ContextMenu.module.css +238 -0
  118. package/lib/esm/components/Dialog.d.ts +38 -0
  119. package/lib/esm/components/Dialog.module.css +109 -0
  120. package/lib/esm/components/Drawer.d.ts +40 -0
  121. package/lib/esm/components/Drawer.module.css +87 -0
  122. package/lib/esm/components/DropdownMenu.d.ts +52 -0
  123. package/lib/esm/components/DropdownMenu.module.css +244 -0
  124. package/lib/esm/components/Form.d.ts +23 -0
  125. package/lib/esm/components/Form.module.css +75 -0
  126. package/lib/esm/components/Heading.d.ts +7 -0
  127. package/lib/esm/components/Heading.module.css +83 -0
  128. package/lib/esm/components/HoverCard.d.ts +15 -0
  129. package/lib/esm/components/HoverCard.module.css +75 -0
  130. package/lib/esm/components/IconButton.d.ts +9 -0
  131. package/lib/esm/components/IconButton.module.css +150 -0
  132. package/lib/esm/components/Input.d.ts +6 -0
  133. package/lib/esm/components/Input.module.css +61 -0
  134. package/lib/esm/components/Label.d.ts +4 -0
  135. package/lib/esm/components/Label.module.css +7 -0
  136. package/lib/esm/components/Menubar.d.ts +65 -0
  137. package/lib/esm/components/Menubar.module.css +128 -0
  138. package/lib/esm/components/MultiSelect.d.ts +86 -0
  139. package/lib/esm/components/MultiSelect.module.css +93 -0
  140. package/lib/esm/components/NavigationMenu.d.ts +21 -0
  141. package/lib/esm/components/NavigationMenu.module.css +248 -0
  142. package/lib/esm/components/Popover.d.ts +17 -0
  143. package/lib/esm/components/Popover.module.css +106 -0
  144. package/lib/esm/components/Progress.d.ts +9 -0
  145. package/lib/esm/components/Progress.module.css +23 -0
  146. package/lib/esm/components/RadioGroup.d.ts +9 -0
  147. package/lib/esm/components/RadioGroup.module.css +57 -0
  148. package/lib/esm/components/ScrollArea.d.ts +9 -0
  149. package/lib/esm/components/ScrollArea.module.css +55 -0
  150. package/lib/esm/components/Select.d.ts +28 -0
  151. package/lib/esm/components/Select.module.css +153 -0
  152. package/lib/esm/components/Separator.d.ts +4 -0
  153. package/lib/esm/components/Separator.module.css +13 -0
  154. package/lib/esm/components/Slider.d.ts +13 -0
  155. package/lib/esm/components/Slider.module.css +43 -0
  156. package/lib/esm/components/Spinner.d.ts +4 -0
  157. package/lib/esm/components/Spinner.module.css +21 -0
  158. package/lib/esm/components/Switch.d.ts +4 -0
  159. package/lib/esm/components/Switch.module.css +52 -0
  160. package/lib/esm/components/Tabs.d.ts +13 -0
  161. package/lib/esm/components/Tabs.module.css +64 -0
  162. package/lib/esm/components/Text.d.ts +8 -0
  163. package/lib/esm/components/Text.module.css +24 -0
  164. package/lib/esm/components/Textarea.d.ts +5 -0
  165. package/lib/esm/components/Textarea.module.css +34 -0
  166. package/lib/esm/components/Toast.d.ts +21 -0
  167. package/lib/esm/components/Toast.module.css +133 -0
  168. package/lib/esm/components/Toaster.d.ts +2 -0
  169. package/lib/esm/components/Toggle.d.ts +7 -0
  170. package/lib/esm/components/Toggle.module.css +32 -0
  171. package/lib/esm/components/ToggleGroup.d.ts +9 -0
  172. package/lib/esm/components/ToggleGroup.module.css +61 -0
  173. package/lib/esm/components/Toolbar.d.ts +17 -0
  174. package/lib/esm/components/Toolbar.module.css +113 -0
  175. package/lib/esm/components/Tooltip.d.ts +15 -0
  176. package/lib/esm/components/Tooltip.module.css +78 -0
  177. package/lib/esm/components/Typography.d.ts +8 -0
  178. package/lib/esm/components/Typography.module.css +25 -0
  179. package/lib/esm/components/VisuallyHidden.d.ts +4 -0
  180. package/lib/esm/components/helpers/mixins.css +15 -0
  181. package/lib/esm/data/primitives.json +10 -0
  182. package/lib/esm/hooks/use-toast.d.ts +44 -0
  183. package/lib/esm/index.d.ts +45 -0
  184. package/lib/esm/ontologies/primitives.d.ts +6 -0
  185. package/lib/esm/package.d.ts +3 -0
  186. package/lib/esm/package.json +85 -0
  187. package/lib/esm/theme.css +3 -0
  188. package/lib/esm/types.d.ts +12 -0
  189. package/package.json +103 -0
  190. package/tsconfig-cjs.json +8 -0
  191. package/tsconfig-esm.json +9 -0
@@ -0,0 +1,244 @@
1
+ @import './helpers/mixins.css';
2
+ @import '@_linked/css/package.css';
3
+
4
+ .Root {
5
+ display: flex;
6
+ flex-direction: column;
7
+ width: var(--dropdownmenu-container-width, 100%);
8
+ }
9
+
10
+ .Trigger {
11
+ display: inline-flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ border-radius: var(--dropdownmenu-trigger-radius, var(--control-radius));
15
+ font-size: var(--dropdownmenu-trigger-font-size, var(--typography-font-size));
16
+ font-weight: var(
17
+ --dropdownmenu-trigger-font-weight,
18
+ var(--typography-font-weight-medium)
19
+ );
20
+ height: var(--dropdownmenu-trigger-height, var(--control-height-md));
21
+ padding: var(--dropdownmenu-trigger-padding, --spacing(2) --spacing(4));
22
+ transition: var(--transition-fast);
23
+ border: 1px solid var(--dropdownmenu-trigger-border, var(--control-border));
24
+ background-color: var(--dropdownmenu-trigger-bg, var(--control-bg));
25
+ color: var(--dropdownmenu-trigger-text, var(--control-text));
26
+
27
+ &:hover {
28
+ background-color: var(
29
+ --dropdownmenu-trigger-bg-hover,
30
+ var(--control-bg-hover)
31
+ );
32
+ border-color: var(
33
+ --dropdownmenu-trigger-border-hover,
34
+ var(--control-border-hover)
35
+ );
36
+ }
37
+
38
+ &:focus-visible {
39
+ @mixin focus;
40
+ }
41
+
42
+ &[data-state='open'] {
43
+ background-color: var(
44
+ --dropdownmenu-trigger-bg-active,
45
+ var(--control-bg-active)
46
+ );
47
+ border-color: var(
48
+ --dropdownmenu-trigger-border-active,
49
+ var(--control-border-hover)
50
+ );
51
+ }
52
+ }
53
+
54
+ .Content {
55
+ min-width: var(--dropdownmenu-content-min-width, 8rem);
56
+ overflow: hidden;
57
+ border-radius: var(--dropdownmenu-content-radius, var(--popover-radius));
58
+ border: 1px solid var(--dropdownmenu-content-border, var(--popover-border));
59
+ background-color: var(--dropdownmenu-content-bg, var(--popover-bg));
60
+ padding: var(--dropdownmenu-content-padding, --spacing(1));
61
+ box-shadow: var(--dropdownmenu-content-shadow, var(--popover-shadow));
62
+ animation-duration: var(--transition-duration-normal);
63
+ animation-timing-function: var(--transition-easing);
64
+ will-change: transform, opacity;
65
+
66
+ &[data-side='top'] {
67
+ animation-name: slideDownAndFade;
68
+ }
69
+
70
+ &[data-side='right'] {
71
+ animation-name: slideLeftAndFade;
72
+ }
73
+
74
+ &[data-side='bottom'] {
75
+ animation-name: slideUpAndFade;
76
+ }
77
+
78
+ &[data-side='left'] {
79
+ animation-name: slideRightAndFade;
80
+ }
81
+ }
82
+
83
+ .Item,
84
+ .SubTrigger,
85
+ .CheckboxItem,
86
+ .RadioItem {
87
+ all: unset;
88
+ font-size: var(--dropdownmenu-item-font-size, var(--typography-small-size));
89
+ line-height: var(
90
+ --dropdownmenu-item-line-height,
91
+ var(--typography-line-height-none)
92
+ );
93
+ border-radius: var(--dropdownmenu-item-radius, var(--popover-radius));
94
+ display: flex;
95
+ align-items: center;
96
+ height: var(--dropdownmenu-item-height, --spacing(8));
97
+ padding: var(--dropdownmenu-item-padding, --spacing(2) --spacing(3));
98
+ position: relative;
99
+ padding-left: var(--dropdownmenu-item-padding-left, --spacing(3));
100
+ user-select: none;
101
+ outline: none;
102
+ color: var(--dropdownmenu-item-text, var(--popover-text));
103
+ cursor: pointer;
104
+ transition: var(--transition-fast);
105
+
106
+ &[data-disabled] {
107
+ pointer-events: none;
108
+ opacity: 0.5;
109
+ }
110
+
111
+ &[data-highlighted] {
112
+ background-color: var(--dropdownmenu-item-bg-active, var(--bg-active));
113
+ color: var(--dropdownmenu-item-text-active, var(--popover-text));
114
+ }
115
+ }
116
+
117
+ .SubTrigger {
118
+ &[data-state='open'] {
119
+ background-color: var(--dropdownmenu-subtrigger-bg-open, var(--bg-active));
120
+ color: var(--dropdownmenu-subtrigger-text-open, var(--popover-text));
121
+ }
122
+ }
123
+
124
+ .CheckboxItem,
125
+ .RadioItem {
126
+ padding-left: var(--dropdownmenu-checkbox-padding-left, --spacing(6));
127
+ }
128
+
129
+ .ItemIndicator {
130
+ position: absolute;
131
+ left: 0;
132
+ width: var(--dropdownmenu-indicator-width, --spacing(5));
133
+ display: inline-flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ }
137
+
138
+ .RightSlot {
139
+ margin-left: auto;
140
+ padding-left: var(--dropdownmenu-right-slot-padding, --spacing(5));
141
+ font-size: var(
142
+ --dropdownmenu-right-slot-font-size,
143
+ var(--typography-small-size)
144
+ );
145
+ color: var(--dropdownmenu-right-slot-text, var(--text-auxiliary));
146
+ }
147
+
148
+ .Label {
149
+ padding-left: var(--dropdownmenu-label-padding-left, --spacing(3));
150
+ padding-right: var(--dropdownmenu-label-padding-right, --spacing(3));
151
+ font-size: var(--dropdownmenu-label-font-size, var(--typography-small-size));
152
+ font-weight: var(
153
+ --dropdownmenu-label-font-weight,
154
+ var(--typography-font-weight-semibold)
155
+ );
156
+ color: var(--dropdownmenu-label-text, var(--text-auxiliary));
157
+ line-height: var(
158
+ --dropdownmenu-label-line-height,
159
+ var(--typography-line-height-none)
160
+ );
161
+ }
162
+
163
+ .Separator {
164
+ height: 1px;
165
+ background-color: var(--dropdownmenu-separator-bg, var(--border-default));
166
+ margin: var(--dropdownmenu-separator-margin, --spacing(1));
167
+ }
168
+
169
+ .SubContent {
170
+ min-width: var(--dropdownmenu-subcontent-min-width, 8rem);
171
+ overflow: hidden;
172
+ border-radius: var(--dropdownmenu-subcontent-radius, var(--popover-radius));
173
+ border: 1px solid var(--dropdownmenu-subcontent-border, var(--popover-border));
174
+ background-color: var(--dropdownmenu-subcontent-bg, var(--popover-bg));
175
+ padding: var(--dropdownmenu-subcontent-padding, --spacing(1));
176
+ box-shadow: var(--dropdownmenu-subcontent-shadow, var(--popover-shadow));
177
+ animation-duration: var(--transition-duration-normal);
178
+ animation-timing-function: var(--transition-easing);
179
+ will-change: transform, opacity;
180
+
181
+ &[data-side='top'] {
182
+ animation-name: slideDownAndFade;
183
+ }
184
+
185
+ &[data-side='right'] {
186
+ animation-name: slideLeftAndFade;
187
+ }
188
+
189
+ &[data-side='bottom'] {
190
+ animation-name: slideUpAndFade;
191
+ }
192
+
193
+ &[data-side='left'] {
194
+ animation-name: slideRightAndFade;
195
+ }
196
+ }
197
+
198
+ .Inset {
199
+ padding-left: var(--dropdownmenu-inset-padding-left, --spacing(6));
200
+ }
201
+
202
+ @keyframes slideUpAndFade {
203
+ from {
204
+ opacity: 0;
205
+ transform: translateY(2px);
206
+ }
207
+ to {
208
+ opacity: 1;
209
+ transform: translateY(0);
210
+ }
211
+ }
212
+
213
+ @keyframes slideRightAndFade {
214
+ from {
215
+ opacity: 0;
216
+ transform: translateX(-2px);
217
+ }
218
+ to {
219
+ opacity: 1;
220
+ transform: translateX(0);
221
+ }
222
+ }
223
+
224
+ @keyframes slideDownAndFade {
225
+ from {
226
+ opacity: 0;
227
+ transform: translateY(-2px);
228
+ }
229
+ to {
230
+ opacity: 1;
231
+ transform: translateY(0);
232
+ }
233
+ }
234
+
235
+ @keyframes slideLeftAndFade {
236
+ from {
237
+ opacity: 0;
238
+ transform: translateX(2px);
239
+ }
240
+ to {
241
+ opacity: 1;
242
+ transform: translateX(0);
243
+ }
244
+ }
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import * as FormPrimitive from '@radix-ui/react-form';
3
+ declare const Root: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormProps & React.RefAttributes<HTMLFormElement>, "ref"> & React.RefAttributes<HTMLFormElement>>;
4
+ declare const Field: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormFieldProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const Label: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormLabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
6
+ declare const Control: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormControlProps & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
7
+ declare const Message: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormMessageProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
8
+ declare const ValidityState: React.ForwardRefExoticComponent<FormPrimitive.FormValidityStateProps & {
9
+ __scopeForm?: import("@radix-ui/react-context").Scope;
10
+ } & React.RefAttributes<never>>;
11
+ declare const Submit: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormSubmitProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ export declare const Form: {
13
+ Root: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormProps & React.RefAttributes<HTMLFormElement>, "ref"> & React.RefAttributes<HTMLFormElement>>;
14
+ Field: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormFieldProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ Label: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormLabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
16
+ Control: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormControlProps & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
17
+ Message: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormMessageProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
18
+ ValidityState: React.ForwardRefExoticComponent<FormPrimitive.FormValidityStateProps & {
19
+ __scopeForm?: import("@radix-ui/react-context").Scope;
20
+ } & React.RefAttributes<never>>;
21
+ Submit: React.ForwardRefExoticComponent<Omit<FormPrimitive.FormSubmitProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
22
+ };
23
+ export { Root, Field, Label, Control, Message, ValidityState, Submit };
@@ -0,0 +1,75 @@
1
+ @import './helpers/mixins.css';
2
+ @import '@_linked/css/package.css';
3
+
4
+ .Root {
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: var(--form-gap, --spacing(4));
8
+ width: var(--form-width, 100%);
9
+ }
10
+
11
+ .Field {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: var(--form-field-gap, --spacing(2));
15
+ }
16
+
17
+ .Label {
18
+ font-size: var(--form-label-font-size, var(--typography-font-size));
19
+ font-weight: var(--form-label-font-weight, var(--typography-font-weight));
20
+ color: var(--form-label-text, var(--typography-color));
21
+ line-height: var(--form-label-line-height, var(--typography-line-height));
22
+ }
23
+
24
+ .Control {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: var(--form-control-gap, --spacing(1));
28
+ }
29
+
30
+ .Message {
31
+ font-size: var(--form-message-font-size, var(--typography-small-size));
32
+ color: var(--form-message-text, var(--text-auxiliary));
33
+ line-height: var(
34
+ --form-message-line-height,
35
+ var(--typography-line-height-none)
36
+ );
37
+ }
38
+
39
+ .ValidityState {
40
+ font-size: var(--form-validity-font-size, var(--typography-small-size));
41
+ color: var(--form-validity-text, var(--text-auxiliary));
42
+ line-height: var(
43
+ --form-validity-line-height,
44
+ var(--typography-line-height-none)
45
+ );
46
+ }
47
+
48
+ .Submit {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ border-radius: var(--form-submit-radius, var(--control-radius));
53
+ font-size: var(--form-submit-font-size, var(--typography-font-size));
54
+ font-weight: var(--form-submit-font-weight, var(--typography-font-weight));
55
+ height: var(--form-submit-height, var(--control-height-md));
56
+ padding: var(--form-submit-padding, --spacing(2) --spacing(4));
57
+ transition: var(--transition-fast);
58
+ border: 1px solid var(--form-submit-border, var(--control-border));
59
+ background-color: var(--form-submit-bg, var(--control-bg));
60
+ color: var(--form-submit-text, var(--control-text));
61
+ cursor: pointer;
62
+
63
+ &:hover {
64
+ background-color: var(--form-submit-bg-hover, var(--control-bg-hover));
65
+ border-color: var(--form-submit-border-hover, var(--control-border-hover));
66
+ }
67
+
68
+ &:focus-visible {
69
+ @mixin focus;
70
+ }
71
+
72
+ &:disabled {
73
+ @mixin disabled;
74
+ }
75
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface HeadingProps extends React.HtmlHTMLAttributes<HTMLElement> {
3
+ as: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
+ children: React.ReactNode;
5
+ }
6
+ declare const Heading: ({ as: Component, className, children, ...props }: HeadingProps) => React.JSX.Element;
7
+ export { Heading };
@@ -0,0 +1,83 @@
1
+ h1 {
2
+ &.Root {
3
+ font-size: var(--heading-1-font-size);
4
+ font-family: var(--heading-1-font-family);
5
+ font-weight: var(--heading-1-font-weight);
6
+ line-height: var(--heading-1-line-height);
7
+ letter-spacing: var(--heading-1-letter-spacing);
8
+ color: var(--heading-1-color);
9
+ font-style: var(--heading-1-font-style);
10
+ margin-top: var(--heading-1-margin-top);
11
+ margin-bottom: var(--heading-1-margin-bottom);
12
+ }
13
+ }
14
+
15
+ h2 {
16
+ &.Root {
17
+ font-size: var(--heading-2-font-size);
18
+ font-family: var(--heading-2-font-family);
19
+ font-weight: var(--heading-2-font-weight);
20
+ line-height: var(--heading-2-line-height);
21
+ letter-spacing: var(--heading-2-letter-spacing);
22
+ color: var(--heading-2-color);
23
+ font-style: var(--heading-2-font-style);
24
+ margin-top: var(--heading-2-margin-top);
25
+ margin-bottom: var(--heading-2-margin-bottom);
26
+ }
27
+ }
28
+
29
+ h3 {
30
+ &.Root {
31
+ font-size: var(--heading-3-font-size);
32
+ font-family: var(--heading-3-font-family);
33
+ font-weight: var(--heading-3-font-weight);
34
+ line-height: var(--heading-3-line-height);
35
+ letter-spacing: var(--heading-3-letter-spacing);
36
+ color: var(--heading-3-color);
37
+ font-style: var(--heading-3-font-style);
38
+ margin-top: var(--heading-3-margin-top);
39
+ margin-bottom: var(--heading-3-margin-bottom);
40
+ }
41
+ }
42
+
43
+ h4 {
44
+ &.Root {
45
+ font-size: var(--heading-4-font-size);
46
+ font-family: var(--heading-4-font-family);
47
+ font-weight: var(--heading-4-font-weight);
48
+ line-height: var(--heading-4-line-height);
49
+ letter-spacing: var(--heading-4-letter-spacing);
50
+ color: var(--heading-4-color);
51
+ font-style: var(--heading-4-font-style);
52
+ margin-top: var(--heading-4-margin-top);
53
+ margin-bottom: var(--heading-4-margin-bottom);
54
+ }
55
+ }
56
+
57
+ h5 {
58
+ &.Root {
59
+ font-size: var(--heading-5-font-size);
60
+ font-family: var(--heading-5-font-family);
61
+ font-weight: var(--heading-5-font-weight);
62
+ line-height: var(--heading-5-line-height);
63
+ letter-spacing: var(--heading-5-letter-spacing);
64
+ color: var(--heading-5-color);
65
+ font-style: var(--heading-5-font-style);
66
+ margin-top: var(--heading-5-margin-top);
67
+ margin-bottom: var(--heading-5-margin-bottom);
68
+ }
69
+ }
70
+
71
+ h6 {
72
+ &.Root {
73
+ font-size: var(--heading-6-font-size);
74
+ font-family: var(--heading-6-font-family);
75
+ font-weight: var(--heading-6-font-weight);
76
+ line-height: var(--heading-6-line-height);
77
+ letter-spacing: var(--heading-6-letter-spacing);
78
+ color: var(--heading-6-color);
79
+ font-style: var(--heading-6-font-style);
80
+ margin-top: var(--heading-6-margin-top);
81
+ margin-bottom: var(--heading-6-margin-bottom);
82
+ }
83
+ }
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
3
+ declare const Root: React.FC<HoverCardPrimitive.HoverCardProps>;
4
+ declare const Trigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
5
+ declare const Portal: React.FC<HoverCardPrimitive.HoverCardPortalProps>;
6
+ declare const Arrow: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
7
+ declare const Content: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const HoverCard: {
9
+ Root: React.FC<HoverCardPrimitive.HoverCardProps>;
10
+ Trigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
11
+ Portal: React.FC<HoverCardPrimitive.HoverCardPortalProps>;
12
+ Content: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ Arrow: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
+ };
15
+ export { Root, Trigger, Portal, Content, Arrow };
@@ -0,0 +1,75 @@
1
+ @import './helpers/mixins.css';
2
+ @import '@_linked/css/package.css';
3
+
4
+ .Content {
5
+ font-family: inherit;
6
+ border-radius: var(--hovercard-radius, var(--popover-radius));
7
+ padding: var(--hovercard-padding, var(--popover-padding));
8
+ width: var(--hovercard-width, 20rem);
9
+ background-color: var(--hovercard-bg, var(--popover-bg));
10
+ box-shadow: var(--hovercard-shadow, var(--popover-shadow));
11
+ animation-duration: var(--transition-duration-normal);
12
+ animation-timing-function: var(--transition-easing);
13
+ will-change: transform, opacity;
14
+
15
+ &[data-side='top'] {
16
+ animation-name: slideDownAndFade;
17
+ }
18
+ &[data-side='right'] {
19
+ animation-name: slideLeftAndFade;
20
+ }
21
+ &[data-side='bottom'] {
22
+ animation-name: slideUpAndFade;
23
+ }
24
+ &[data-side='left'] {
25
+ animation-name: slideRightAndFade;
26
+ }
27
+ }
28
+
29
+ .Arrow {
30
+ fill: var(--hovercard-bg, var(--popover-bg));
31
+ }
32
+
33
+ @keyframes slideUpAndFade {
34
+ 0% {
35
+ opacity: 0;
36
+ transform: translateY(2px);
37
+ }
38
+ 100% {
39
+ opacity: 1;
40
+ transform: translateY(0);
41
+ }
42
+ }
43
+
44
+ @keyframes slideRightAndFade {
45
+ 0% {
46
+ opacity: 0;
47
+ transform: translateX(-2px);
48
+ }
49
+ 100% {
50
+ opacity: 1;
51
+ transform: translateX(0);
52
+ }
53
+ }
54
+
55
+ @keyframes slideDownAndFade {
56
+ 0% {
57
+ opacity: 0;
58
+ transform: translateY(-2px);
59
+ }
60
+ 100% {
61
+ opacity: 1;
62
+ transform: translateY(0);
63
+ }
64
+ }
65
+
66
+ @keyframes slideLeftAndFade {
67
+ 0% {
68
+ opacity: 0;
69
+ transform: translateX(2px);
70
+ }
71
+ 100% {
72
+ opacity: 1;
73
+ transform: translateX(0);
74
+ }
75
+ }
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ asChild?: boolean;
4
+ variant?: 'solid' | 'outline' | 'ghost';
5
+ color?: 'primary' | 'secondary' | 'tertiary';
6
+ size?: 'small' | 'medium' | 'large' | 'default';
7
+ }
8
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
9
+ export { IconButton };
@@ -0,0 +1,150 @@
1
+ @theme static {
2
+ --spacing: 0.25rem;
3
+ }
4
+ @import './helpers/mixins.css';
5
+
6
+ .Root {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ white-space: nowrap;
11
+ border-radius: var(--iconbutton-radius, var(--control-radius));
12
+ font-size: var(--iconbutton-font-size, var(--typography-small-size));
13
+ font-weight: var(--iconbutton-font-weight, var(--font-medium));
14
+ font-family: var(--iconbutton-font-family, var(--typography-font-family));
15
+ outline: none;
16
+ transition: var(--transition-fast);
17
+ border: solid 1px transparent;
18
+ cursor: pointer;
19
+ gap: var(--iconbutton-gap, --spacing(2));
20
+
21
+ &:focus-visible {
22
+ @mixin focus;
23
+ }
24
+
25
+ /* color: 'primary' | 'secondary' | 'tertiary'*/
26
+ /* variant: 'solid' | 'outline' | 'ghost'*/
27
+ &.primary {
28
+ &.solid {
29
+ background: var(--button-primary-bg);
30
+ color: var(--button-primary-color);
31
+ border-color: var(--button-primary-bg);
32
+
33
+ &:hover {
34
+ background: var(--button-primary-bg-hover);
35
+ color: var(--button-primary-color-hover);
36
+ }
37
+ }
38
+
39
+ &.outline {
40
+ background: transparent;
41
+ color: var(--button-primary-bg);
42
+ border: 1px solid var(--button-primary-bg);
43
+
44
+ &:hover {
45
+ background: var(--button-primary-bg);
46
+ color: var(--button-primary-color);
47
+ }
48
+ }
49
+
50
+ &.ghost {
51
+ background: transparent;
52
+ color: var(--button-primary-bg);
53
+
54
+ &:hover {
55
+ background: var(--button-primary-bg);
56
+ color: var(--button-primary-color);
57
+ }
58
+ }
59
+ }
60
+
61
+ &.secondary {
62
+ &.solid {
63
+ background: var(--button-secondary-bg);
64
+ color: var(--button-secondary-color);
65
+ border-color: var(--button-secondary-bg);
66
+
67
+ &:hover {
68
+ background: var(--button-secondary-bg-hover);
69
+ color: var(--button-secondary-color-hover);
70
+ }
71
+ }
72
+
73
+ &.outline {
74
+ background: transparent;
75
+ color: var(--button-secondary-bg);
76
+ border: 1px solid var(--button-secondary-bg);
77
+
78
+ &:hover {
79
+ background: var(--button-secondary-bg);
80
+ color: var(--button-secondary-color);
81
+ }
82
+ }
83
+
84
+ &.ghost {
85
+ background: transparent;
86
+ color: var(--button-secondary-bg);
87
+
88
+ &:hover {
89
+ background: var(--button-secondary-bg);
90
+ color: var(--button-secondary-color);
91
+ }
92
+ }
93
+ }
94
+
95
+ &.tertiary {
96
+ &.solid {
97
+ background: var(--button-tertiary-bg);
98
+ color: var(--button-tertiary-color);
99
+ border-color: var(--button-tertiary-bg);
100
+
101
+ &:hover {
102
+ background: var(--button-tertiary-bg-hover);
103
+ color: var(--button-tertiary-color-hover);
104
+ }
105
+ }
106
+
107
+ &.outline {
108
+ background: transparent;
109
+ color: var(--button-tertiary-bg);
110
+ border: 1px solid var(--button-tertiary-bg);
111
+
112
+ &:hover {
113
+ background: var(--button-tertiary-bg);
114
+ color: var(--button-tertiary-color);
115
+ }
116
+ }
117
+
118
+ &.ghost {
119
+ background: transparent;
120
+ color: var(--button-tertiary-bg);
121
+
122
+ &:hover {
123
+ background: var(--button-tertiary-bg);
124
+ color: var(--button-tertiary-color);
125
+ }
126
+ }
127
+ }
128
+
129
+ /* size: 'small' | 'medium' | 'large' || 'default'*/
130
+ &.small {
131
+ height: var(--iconbutton-size-sm, var(--control-height-sm));
132
+ width: var(--iconbutton-size-sm, var(--control-height-sm));
133
+ }
134
+
135
+ &.medium,
136
+ &.default {
137
+ height: var(--iconbutton-size-md, var(--control-height-md));
138
+ width: var(--iconbutton-size-md, var(--control-height-md));
139
+ }
140
+
141
+ &.large {
142
+ height: var(--iconbutton-size-lg, var(--control-height-lg));
143
+ width: var(--iconbutton-size-lg, var(--control-height-lg));
144
+ }
145
+
146
+ /* disabled*/
147
+ &.disabled {
148
+ @mixin disabled;
149
+ }
150
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
+ size?: 'small' | 'medium' | 'large';
4
+ }
5
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
6
+ export { Input };