@alexgorbatchev/shadcn 0.0.132 → 0.0.134

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 (100) hide show
  1. package/README.md +12 -9
  2. package/dist/{chunk-as9e6s20.js → chunk-047a4xdr.js} +1 -1
  3. package/dist/{chunk-mkcbjk8x.js → chunk-0ma1y626.js} +1 -1
  4. package/dist/{chunk-mekggknb.js → chunk-11d7vwef.js} +1 -1
  5. package/dist/{chunk-kpww7hx6.js → chunk-1m0afwnr.js} +1 -1
  6. package/dist/{chunk-q12wrtc9.js → chunk-2020fa8p.js} +1 -1
  7. package/dist/{chunk-tyz32b7n.js → chunk-46fpdn58.js} +1 -1
  8. package/dist/{chunk-p9x0214d.js → chunk-4cv28c46.js} +1 -1
  9. package/dist/{chunk-t7yx9k5r.js → chunk-4yz3qr3m.js} +1 -1
  10. package/dist/{chunk-xg4pg0p4.js → chunk-5e9c6m71.js} +1 -1
  11. package/dist/{chunk-2rsejpzm.js → chunk-9xv585b3.js} +1 -1
  12. package/dist/{chunk-zrmtxp7r.js → chunk-9y4pg1xb.js} +4 -4
  13. package/dist/{chunk-n8d69v8v.js → chunk-bnetwxg0.js} +1 -1
  14. package/dist/{chunk-remfbhfg.js → chunk-bpxdyng2.js} +1 -1
  15. package/dist/{chunk-aasp54x3.js → chunk-br5ff2c5.js} +1 -1
  16. package/dist/{chunk-zkex6fdh.js → chunk-cbyqgfv4.js} +1 -1
  17. package/dist/{chunk-c98jcchv.js → chunk-ctp5jhpj.js} +1 -1
  18. package/dist/{chunk-dnatgtxk.js → chunk-da9pg6qn.js} +1 -1
  19. package/dist/{chunk-mv9vj0bq.js → chunk-dd0400gw.js} +3 -3
  20. package/dist/{chunk-636bahx2.js → chunk-f33kmzs5.js} +2 -2
  21. package/dist/{chunk-kyx2fezr.js → chunk-fa66gvk0.js} +1 -1
  22. package/dist/{chunk-jke6mva4.js → chunk-fvcm177x.js} +1 -1
  23. package/dist/{chunk-0wzgpx58.js → chunk-gtdmrz5d.js} +1 -1
  24. package/dist/{chunk-yw9j9sj6.js → chunk-h45mqwpq.js} +1 -1
  25. package/dist/{chunk-bkq2d9vz.js → chunk-h8zf5e4s.js} +1 -1
  26. package/dist/{chunk-hm8rs6a2.js → chunk-k872qrgx.js} +1 -1
  27. package/dist/{chunk-dg41ph2f.js → chunk-kezh2zee.js} +1 -1
  28. package/dist/{chunk-wnt0jjf8.js → chunk-mfxrsywh.js} +1 -1
  29. package/dist/{chunk-bb7mfwhf.js → chunk-mj44p2x3.js} +1 -1
  30. package/dist/{chunk-n5q99ynh.js → chunk-mjbs77d7.js} +1 -1
  31. package/dist/chunk-p51p95er.js +30 -0
  32. package/dist/{chunk-cq5nzpnv.js → chunk-q9vp0ctw.js} +1 -1
  33. package/dist/{chunk-gx1k1rfz.js → chunk-qwp99a0k.js} +8 -8
  34. package/dist/{chunk-rrayv1gm.js → chunk-r894vt45.js} +1 -1
  35. package/dist/{chunk-08zcnz6g.js → chunk-r8aqd5cv.js} +1 -1
  36. package/dist/{chunk-nmaebt2a.js → chunk-s68rsdgw.js} +1 -1
  37. package/dist/{chunk-ayyhmdbq.js → chunk-sh33xyc2.js} +4 -4
  38. package/dist/{chunk-j7g2yyrx.js → chunk-thgswpk1.js} +1 -1
  39. package/dist/{chunk-dq28112z.js → chunk-wv0ycjxk.js} +1 -1
  40. package/dist/{chunk-6jmwbzed.js → chunk-x4syjs8v.js} +1 -1
  41. package/dist/{chunk-ytfn5vnk.js → chunk-xb79xnjp.js} +1 -1
  42. package/dist/{chunk-9vndmsce.js → chunk-yg6nxfwr.js} +21 -17
  43. package/dist/{chunk-x4d0p81m.js → chunk-yjfcvn9h.js} +1 -1
  44. package/dist/{chunk-kmvfmhpt.js → chunk-ywhbkd15.js} +1 -1
  45. package/dist/{chunk-355w39d9.js → chunk-z7ss04dy.js} +1 -1
  46. package/dist/components/DensityProvider.d.ts +2 -1
  47. package/dist/components/Textarea.d.ts +6 -1
  48. package/dist/components/assistant-ui/elements/ChatPanel.js +3 -3
  49. package/dist/components/assistant-ui/elements/CommandPalette.js +4 -4
  50. package/dist/components/assistant-ui/elements/ComposerAttachments.js +3 -3
  51. package/dist/components/assistant-ui/elements/ComposerBar.js +3 -3
  52. package/dist/components/assistant-ui/elements/ComposerInput.js +3 -3
  53. package/dist/components/assistant-ui/elements/ComposerToolbar.js +3 -3
  54. package/dist/components/assistant-ui/elements/ConversationSearch.js +3 -3
  55. package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
  56. package/dist/components/assistant-ui/elements/EmptyStateComposer.js +3 -3
  57. package/dist/components/assistant-ui/elements/EveAskQuestion.js +3 -3
  58. package/dist/components/assistant-ui/elements/FeedbackDialog.js +2 -2
  59. package/dist/components/assistant-ui/elements/MobileComposer.js +3 -3
  60. package/dist/components/assistant-ui/elements/ModelSelector.js +10 -10
  61. package/dist/components/assistant-ui/elements/ModelSelectorContent.js +9 -9
  62. package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +4 -4
  63. package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +4 -4
  64. package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +4 -4
  65. package/dist/components/assistant-ui/elements/ModelSelectorItem.js +4 -4
  66. package/dist/components/assistant-ui/elements/ModelSelectorList.js +6 -6
  67. package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +4 -4
  68. package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +4 -4
  69. package/dist/components/assistant-ui/elements/PromptLibrary.js +3 -3
  70. package/dist/components/assistant-ui/elements/RegenerateMenu.js +2 -2
  71. package/dist/components/assistant-ui/elements/SettingsPanel.js +2 -2
  72. package/dist/components/assistant-ui/elements/ThreadSearch.js +3 -3
  73. package/dist/components/assistant-ui/eveAskQuestionToolkit.js +4 -4
  74. package/dist/components/assistant-ui/index.js +31 -31
  75. package/dist/components/assistant-ui/native/AssistantModal.js +4 -4
  76. package/dist/components/assistant-ui/native/AssistantSidebar.js +4 -4
  77. package/dist/components/assistant-ui/native/McpConfigDialog.js +2 -2
  78. package/dist/components/assistant-ui/native/ModelSelector.js +12 -12
  79. package/dist/components/assistant-ui/native/TaskCard.js +3 -3
  80. package/dist/components/assistant-ui/native/TaskGroup.js +4 -4
  81. package/dist/components/assistant-ui/native/Thread.js +3 -3
  82. package/dist/components/assistant-ui/native/ToolFallbackRoot.js +2 -2
  83. package/dist/components/assistant-ui/native/index.js +20 -20
  84. package/dist/components/calendar/index.js +2 -2
  85. package/dist/components/command/index.js +3 -3
  86. package/dist/components/data-grid/index.js +5 -5
  87. package/dist/components/gantt/index.js +2 -2
  88. package/dist/components/json-render/index.js +8 -8
  89. package/dist/components/persian-calendar/index.js +2 -2
  90. package/dist/components/virtual-data-grid/index.js +2 -2
  91. package/dist/density/types.d.ts +1 -1
  92. package/dist/index.js +7 -7
  93. package/dist/prototype.js +2 -2
  94. package/dist/theme.css +22 -0
  95. package/llms/components/forms/Textarea.md +12 -1
  96. package/llms/components/providers/DensityProvider.md +8 -0
  97. package/llms/setup.md +12 -9
  98. package/llms.txt +1 -1
  99. package/package.json +2 -2
  100. package/dist/chunk-9k5b62qf.js +0 -21
@@ -10,14 +10,14 @@ import {
10
10
  DataGridHeaderRows,
11
11
  DataGridCells2,
12
12
  DataGridColumns
13
- } from "../../chunk-kmvfmhpt.js";
13
+ } from "../../chunk-ywhbkd15.js";
14
14
  import"../../chunk-7ny0vyek.js";
15
15
  import"../../chunk-8ssktt4b.js";
16
16
  import"../../chunk-e6hk39ev.js";
17
17
  import"../../chunk-x90xmrba.js";
18
18
  import"../../chunk-jpvw9xqy.js";
19
19
  import"../../chunk-2sx8m8b2.js";
20
- import"../../chunk-yw9j9sj6.js";
20
+ import"../../chunk-h45mqwpq.js";
21
21
  import"../../chunk-7jpsybag.js";
22
22
  import"../../chunk-7vg045gd.js";
23
23
  import {
@@ -1,4 +1,4 @@
1
- export type Density = "compact" | "comfortable";
1
+ export type Density = "compact" | "comfortable" | "touch";
2
2
  export interface IDensityProps {
3
3
  density?: Density;
4
4
  }
package/dist/index.js CHANGED
@@ -187,7 +187,7 @@ import {
187
187
  StatusTracker2,
188
188
  DashboardLayout2,
189
189
  BillingUsage2
190
- } from "./chunk-9vndmsce.js";
190
+ } from "./chunk-yg6nxfwr.js";
191
191
  import {
192
192
  Combobox2,
193
193
  ComboboxValue2,
@@ -205,7 +205,7 @@ import {
205
205
  ComboboxChip2,
206
206
  ComboboxChipsInput2,
207
207
  useComboboxAnchor2
208
- } from "./chunk-636bahx2.js";
208
+ } from "./chunk-f33kmzs5.js";
209
209
  import {
210
210
  Tabs2,
211
211
  tabsListVariants2,
@@ -220,7 +220,7 @@ import {
220
220
  useDropTarget2,
221
221
  DropTarget2,
222
222
  Kanban2
223
- } from "./chunk-ytfn5vnk.js";
223
+ } from "./chunk-xb79xnjp.js";
224
224
  import {
225
225
  NumberField2,
226
226
  NumberFieldGroup2,
@@ -266,7 +266,7 @@ import {
266
266
  MenuShortcut2,
267
267
  DropdownMenu2,
268
268
  DropdownMenuTrigger2
269
- } from "./chunk-zrmtxp7r.js";
269
+ } from "./chunk-9y4pg1xb.js";
270
270
  import {
271
271
  Empty2,
272
272
  EmptyHeader2,
@@ -432,7 +432,7 @@ import {
432
432
  SelectScrollUpButton2,
433
433
  SelectScrollDownButton2,
434
434
  OptionSelect2
435
- } from "./chunk-yw9j9sj6.js";
435
+ } from "./chunk-h45mqwpq.js";
436
436
  import {
437
437
  Dialog2,
438
438
  DialogTrigger2,
@@ -452,10 +452,10 @@ import {
452
452
  InputGroupText2,
453
453
  InputGroupInput2,
454
454
  InputGroupTextarea2
455
- } from "./chunk-remfbhfg.js";
455
+ } from "./chunk-bpxdyng2.js";
456
456
  import {
457
457
  Textarea2
458
- } from "./chunk-9k5b62qf.js";
458
+ } from "./chunk-p51p95er.js";
459
459
  import {
460
460
  Input2
461
461
  } from "./chunk-7vg045gd.js";
package/dist/prototype.js CHANGED
@@ -2051,8 +2051,8 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.132",
2055
- description: "Sharp, monospace React components with compact and comfortable densities.",
2054
+ version: "0.0.134",
2055
+ description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
2058
2058
  type: "git",
package/dist/theme.css CHANGED
@@ -97,6 +97,7 @@
97
97
  --ag-panel-padding-sm: 12px;
98
98
  --ag-field-gap: 20px;
99
99
  --ag-section-gap: 32px;
100
+ --ag-item-min-h: 0px;
100
101
  /* Target emphasis: a dark and a light line that keep 3:1 against any content in every theme, so they stay fixed. */
101
102
  --target-emphasis: #4a0a3a;
102
103
  --target-emphasis-contrast: #ffffff;
@@ -323,6 +324,7 @@
323
324
  --ag-panel-padding-sm: 12px;
324
325
  --ag-field-gap: 20px;
325
326
  --ag-section-gap: 32px;
327
+ --ag-item-min-h: 0px;
326
328
  }
327
329
 
328
330
  [data-density="compact"] {
@@ -341,6 +343,26 @@
341
343
  --ag-panel-padding-sm: 6px;
342
344
  --ag-field-gap: 8px;
343
345
  --ag-section-gap: 16px;
346
+ --ag-item-min-h: 0px;
347
+ }
348
+
349
+ [data-density="touch"] {
350
+ --ag-text-xs: 12px;
351
+ --ag-control-text: 14px;
352
+ --ag-text: 16px;
353
+ --ag-heading: 20px;
354
+ --ag-leading: 1.5;
355
+ --ag-cell-leading: 1.5;
356
+ --ag-control-h: 44px;
357
+ --ag-control-x: 12px;
358
+ --ag-control-gap: 8px;
359
+ --ag-tag-h: 22px;
360
+ --ag-tag-x: 6px;
361
+ --ag-panel-padding: 16px;
362
+ --ag-panel-padding-sm: 12px;
363
+ --ag-field-gap: 20px;
364
+ --ag-section-gap: 32px;
365
+ --ag-item-min-h: var(--ag-control-h);
344
366
  }
345
367
 
346
368
  * {
@@ -8,7 +8,7 @@ Source: src/components/stories/forms/Textarea.stories.tsx
8
8
  ## Public imports
9
9
 
10
10
  ```tsx
11
- import { Textarea, Field, FieldGroup, FieldLabel, FieldDescription, FieldError, Button } from "@alexgorbatchev/shadcn";
11
+ import { Textarea, Field, FieldGroup, FieldLabel, FieldDescription, FieldError, Button, Input } from "@alexgorbatchev/shadcn";
12
12
  ```
13
13
 
14
14
  ## Supporting imports
@@ -233,3 +233,14 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
233
233
  args: { defaultValue: Array.from({ length: 60 }, (_, line) => `Line ${line + 1}`).join("\n") }
234
234
  }
235
235
  ```
236
+
237
+ ### StartsOneLine
238
+
239
+ ```tsx
240
+ {
241
+ render: () => (<div className="flex w-80 flex-col gap-2">
242
+ <Input aria-label="Reference input"/>
243
+ <Textarea aria-label="Note" startHeight="line" placeholder="Notes…"/>
244
+ </div>)
245
+ }
246
+ ```
@@ -73,6 +73,14 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
73
73
  }
74
74
  ```
75
75
 
76
+ ### Touch
77
+
78
+ ```tsx
79
+ {
80
+ args: { density: "touch" }
81
+ }
82
+ ```
83
+
76
84
  ### DefaultDensity
77
85
 
78
86
  ```tsx
package/llms/setup.md CHANGED
@@ -12,7 +12,7 @@
12
12
  # What It Does
13
13
 
14
14
  - **Consistent controls**: Provides buttons, forms, selections, navigation, overlays, and loading states.
15
- - **Two densities**: Offers compact 20px controls and comfortable 28px controls, with provider and component overrides.
15
+ - **Three densities**: Offers compact 20px, comfortable 28px, and touch 44px standard controls, with provider and component overrides.
16
16
  - **Theme choices**: Supports light, dark, and system preference, with customizable accent colors and fonts.
17
17
  - **Interactive reference**: Shows component variants and states in Storybook with editable controls and source examples.
18
18
 
@@ -194,14 +194,17 @@ An independent production Vite consumer installed from the archive verifies RTL
194
194
 
195
195
  # Configuration
196
196
 
197
- | Option | Type | Default | Description |
198
- | :--------------------------- | :------------------------------ | :------------------------------ | :--------------------------------------------------------------------- |
199
- | `ThemeProvider.defaultTheme` | `"light" \| "dark" \| "system"` | `"system"` | Initial preference when storage has no saved value. |
200
- | `ThemeProvider.storageKey` | `string` | `"shadcn-alexgorbatchev-theme"` | Local storage key for the preference. |
201
- | `ThemeProvider.forcedTheme` | `"light" \| "dark"` | unset | Overrides the displayed palette without changing the saved preference. |
202
- | `ThemeProvider.preset` | `"devhost" \| "shadcn"` | `"devhost"` | Document-wide design preset, independent of color mode and density. |
203
- | `DensityProvider.density` | `"compact" \| "comfortable"` | `"comfortable"` | Density for descendants and their portals. |
204
- | Component `density` | `"compact" \| "comfortable"` | inherited | Local override on styled components that expose the prop. |
197
+ | Option | Type | Default | Description |
198
+ | :------------------------------ | :-------------------------------------- | :------------------------------ | :----------------------------------------------------------------------- |
199
+ | `ThemeProvider.defaultTheme` | `"light" \| "dark" \| "system"` | `"system"` | Initial preference when storage has no saved value. |
200
+ | `ThemeProvider.storageKey` | `string` | `"shadcn-alexgorbatchev-theme"` | Local storage key for the preference. |
201
+ | `ThemeProvider.forcedTheme` | `"light" \| "dark"` | unset | Overrides the displayed palette without changing the saved preference. |
202
+ | `ThemeProvider.preset` | `"devhost" \| "shadcn"` | `"devhost"` | Document-wide design preset, independent of color mode and density. |
203
+ | `DensityProvider.density` | `"compact" \| "comfortable" \| "touch"` | `"comfortable"` | Density for descendants and their portals. |
204
+ | `DensityProvider.touchOnMobile` | `boolean` | `false` | Selects touch density below 48rem or when the primary pointer is coarse. |
205
+ | Component `density` | `"compact" \| "comfortable" \| "touch"` | inherited | Local override on styled components that expose the prop. |
206
+
207
+ Use `<DensityProvider touchOnMobile>` to select touch density on phones while using comfortable density on wider screens with a fine pointer. Touch uses 16px input text and a 44px minimum height for menu and select rows.
205
208
 
206
209
  `useTheme()` returns `theme`, `resolvedTheme`, `setTheme`, and `preset`. Call `setTheme("light")`, `setTheme("dark")`, or `setTheme("system")` from a component inside the provider.
207
210
 
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # @alexgorbatchev/shadcn
2
2
 
3
- > Sharp, monospace React components with compact and comfortable densities.
3
+ > Sharp, monospace React components with compact, comfortable, and touch densities.
4
4
 
5
5
  Generated from the public package exports and Storybook sources.
6
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.132",
4
- "description": "Sharp, monospace React components with compact and comfortable densities.",
3
+ "version": "0.0.134",
4
+ "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,21 +0,0 @@
1
- import {
2
- useAnalyticsInput
3
- } from "./chunk-7jpsybag.js";
4
- import {
5
- cn2
6
- } from "./chunk-en44w1pn.js";
7
-
8
- // src/components/Textarea.tsx
9
- import { jsx } from "react/jsx-runtime";
10
- function Textarea2({ analytics, density, bounded = false, className, ...props }) {
11
- const analyticsInput = useAnalyticsInput("Textarea", analytics, props);
12
- return /* @__PURE__ */ jsx("textarea", {
13
- "data-density": density,
14
- "data-slot": "textarea",
15
- className: cn2("flex field-sizing-content min-h-16 w-full rounded-sm border border-input bg-secondary px-control-x py-2 text-base transition-colors outline-none placeholder:text-faint-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive", bounded && "max-h-72 overflow-y-auto", className),
16
- ...props,
17
- ...analyticsInput
18
- });
19
- }
20
-
21
- export { Textarea2 };