@alexgorbatchev/shadcn 0.0.119 → 0.0.121

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.
@@ -3396,6 +3396,7 @@ function MeterIndicator2({
3396
3396
  // src/components/ToolbarToggleChip.tsx
3397
3397
  import { useId as useId7 } from "react";
3398
3398
  import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
3399
+ import { CheckIcon as CheckIcon2 } from "lucide-react";
3399
3400
  import { jsx as jsx37, jsxs as jsxs24, Fragment as Fragment5 } from "react/jsx-runtime";
3400
3401
  function pressedLabel(pressed) {
3401
3402
  if (pressed === "mixed")
@@ -3452,6 +3453,11 @@ function ToolbarToggleChip2({
3452
3453
  trackedChange(pressed !== true);
3453
3454
  },
3454
3455
  children: [
3456
+ pressed === true && !swatch && /* @__PURE__ */ jsx37(CheckIcon2, {
3457
+ "aria-hidden": "true",
3458
+ "data-slot": "toolbar-toggle-chip-check",
3459
+ className: "size-3.5 shrink-0"
3460
+ }),
3455
3461
  swatch && /* @__PURE__ */ jsx37("span", {
3456
3462
  "aria-hidden": "true",
3457
3463
  "data-slot": "toolbar-toggle-chip-swatch",
@@ -3506,7 +3512,7 @@ function ToolbarToggleChip2({
3506
3512
  }
3507
3513
  // src/components/Stepper.tsx
3508
3514
  import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
3509
- import { CheckIcon as CheckIcon2 } from "lucide-react";
3515
+ import { CheckIcon as CheckIcon3 } from "lucide-react";
3510
3516
  import { jsx as jsx38 } from "react/jsx-runtime";
3511
3517
  function Stepper2({ density, className, ...props }) {
3512
3518
  return /* @__PURE__ */ jsx38(TabsPrimitive.Root, {
@@ -3545,7 +3551,7 @@ function StepperIndicator2({ completed = false, children, className, ...props })
3545
3551
  "data-completed": completed || undefined,
3546
3552
  className: cn2("flex size-control shrink-0 items-center justify-center rounded-sm border border-input bg-secondary text-sm tabular-nums group-data-active/step:border-primary group-data-active/step:bg-primary group-data-active/step:text-primary-foreground data-completed:border-primary data-completed:text-primary [&_svg]:size-3.5", className),
3547
3553
  ...props,
3548
- children: completed ? /* @__PURE__ */ jsx38(CheckIcon2, {}) : children
3554
+ children: completed ? /* @__PURE__ */ jsx38(CheckIcon3, {}) : children
3549
3555
  });
3550
3556
  }
3551
3557
  function StepperContent2({ density, className, ...props }) {
@@ -26,7 +26,7 @@ import {
26
26
  PaginationPrevious2,
27
27
  PaginationNext2,
28
28
  PaginationEllipsis2
29
- } from "../../chunk-j04dhv92.js";
29
+ } from "../../chunk-bjrh7e6g.js";
30
30
  import {
31
31
  MenuPopup,
32
32
  MenuItem2,
@@ -45,6 +45,11 @@ interface ISplitViewProps {
45
45
  * image, stays in view above it.
46
46
  */
47
47
  drawerHeight?: "tall" | "half";
48
+ /**
49
+ * With the "drawer" narrow layout, a CSS length from the viewport's top where the drawer's top edge sits instead of
50
+ * `drawerHeight`, such as "3rem" to start it right under a phone's top bar, so no cut slice of the page shows above it.
51
+ */
52
+ drawerTopInset?: string;
48
53
  /** Called when a "sheet" or "drawer" narrow layout asks to open or close the sidebar, such as on Escape or a swipe. */
49
54
  onSidebarOpenChange?: (open: boolean) => void;
50
55
  /**
@@ -58,5 +63,5 @@ interface ISplitViewProps {
58
63
  * open sidebar take over the content's place. The sidebar and content render into slots that move between the
59
64
  * layouts, so their state survives resizing across the breakpoint and opening or closing the sidebar.
60
65
  */
61
- export declare function SplitView({ sidebar, children, storageKey, sidebarPosition, sidebarOpen, storage, sidebarLabel, contentLabel, resizeLabel, defaultSidebarSize, sidebarPadding, contentPadding, layout: layoutMode, minSidebarSize, maxSidebarSize, wideQuery, narrowLayout, sidebarExpanded, drawerHeight, onSidebarOpenChange, sidebarFinalFocus, }: ISplitViewProps): ReactElement;
66
+ export declare function SplitView({ sidebar, children, storageKey, sidebarPosition, sidebarOpen, storage, sidebarLabel, contentLabel, resizeLabel, defaultSidebarSize, sidebarPadding, contentPadding, layout: layoutMode, minSidebarSize, maxSidebarSize, wideQuery, narrowLayout, sidebarExpanded, drawerHeight, drawerTopInset, onSidebarOpenChange, sidebarFinalFocus, }: ISplitViewProps): ReactElement;
62
67
  export {};
@@ -116,6 +116,7 @@ function SplitView({
116
116
  narrowLayout = "stack",
117
117
  sidebarExpanded = false,
118
118
  drawerHeight = "tall",
119
+ drawerTopInset,
119
120
  onSidebarOpenChange,
120
121
  sidebarFinalFocus
121
122
  }) {
@@ -266,7 +267,8 @@ function SplitView({
266
267
  children: /* @__PURE__ */ jsxs(DrawerContent2, {
267
268
  "aria-label": sidebarLabel,
268
269
  finalFocus: sidebarFinalFocus,
269
- className: cn2(narrowLayout === "drawer" && "data-[swipe-axis=y]:[--drawer-content-max-height:100dvh] data-[swipe-axis=y]:rounded-t-none", narrowLayout === "drawer" && (sidebarExpanded ? "h-dvh" : drawerHeight === "half" ? "h-[50dvh]" : "h-[85dvh]")),
270
+ className: cn2(narrowLayout === "drawer" && "data-[swipe-axis=y]:[--drawer-content-max-height:100dvh] data-[swipe-axis=y]:rounded-t-none", narrowLayout === "drawer" && (sidebarExpanded ? "h-dvh" : drawerTopInset ? "h-[calc(100dvh-var(--split-view-drawer-top))]" : drawerHeight === "half" ? "h-[50dvh]" : "h-[85dvh]")),
271
+ style: drawerTopInset ? { ["--split-view-drawer-top"]: drawerTopInset } : undefined,
270
272
  children: [
271
273
  narrowLayout === "sheet" && /* @__PURE__ */ jsxs("div", {
272
274
  className: "flex shrink-0 items-center justify-between gap-2 p-panel pb-0",
package/dist/index.js CHANGED
@@ -181,7 +181,7 @@ import {
181
181
  StatusTracker2,
182
182
  DashboardLayout2,
183
183
  BillingUsage2
184
- } from "./chunk-j04dhv92.js";
184
+ } from "./chunk-bjrh7e6g.js";
185
185
  import {
186
186
  Combobox2,
187
187
  ComboboxValue2,
package/dist/prototype.js CHANGED
@@ -2051,7 +2051,7 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.119",
2054
+ version: "0.0.121",
2055
2055
  description: "Sharp, monospace React components with compact and comfortable densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
package/dist/theme.css CHANGED
@@ -131,7 +131,7 @@
131
131
  --border: #353b44;
132
132
  --input: #6f7783;
133
133
  --ring: #ff5cd6;
134
- --frame-edge: rgb(255 255 255 / 0.24);
134
+ --frame-edge: rgb(255 255 255 / 0.34);
135
135
  --media-edge: var(--input);
136
136
  --frame-halo: rgb(0 0 0 / 0.92);
137
137
  --backdrop: rgb(4 5 7 / 0.7);
@@ -171,7 +171,7 @@
171
171
  --border: #353b44;
172
172
  --input: #6f7783;
173
173
  --ring: #ff5cd6;
174
- --frame-edge: rgb(255 255 255 / 0.24);
174
+ --frame-edge: rgb(255 255 255 / 0.34);
175
175
  --media-edge: var(--input);
176
176
  --frame-halo: rgb(0 0 0 / 0.92);
177
177
  --backdrop: rgb(4 5 7 / 0.7);
@@ -103,3 +103,11 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
103
103
  args: { pressed: false, detail: undefined, disabledReason: "One track at a time for now" }
104
104
  }
105
105
  ```
106
+
107
+ ### PressedCheck
108
+
109
+ ```tsx
110
+ {
111
+ args: { pressed: false, detail: undefined }
112
+ }
113
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "description": "Sharp, monospace React components with compact and comfortable densities.",
5
5
  "license": "MIT",
6
6
  "repository": {