strata-react 2.1.2 → 2.1.3
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.
- package/README.md +1 -0
- package/dist/index.d.ts +39 -2
- package/dist/index.js +135 -1
- package/dist/index.js.map +1 -1
- package/dist/{microphone-xGKxcK6p.d.ts → microphone-DWh4OaMH.d.ts} +2 -2
- package/dist/strata.bare.css +11 -0
- package/dist/strata.css +11 -0
- package/dist/strata.migrate.css +11 -0
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ type IconComponent = React.ComponentType<{
|
|
|
10
10
|
type ControlSize = "default" | "sm";
|
|
11
11
|
declare const buttonVariants: (props?: ({
|
|
12
12
|
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
13
|
-
size?: "default" | "
|
|
13
|
+
size?: "default" | "sm" | "icon" | "icon-sm" | "lg" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
type ButtonProps = Omit<React.ComponentProps<"button">, "className" | "style" | "title"> & VariantProps<typeof buttonVariants> & {
|
|
16
16
|
className?: string;
|
|
@@ -234,4 +234,4 @@ declare const MicrophoneContext: React.Context<Microphone>;
|
|
|
234
234
|
/** The microphone from the nearest `MicrophoneContext`. */
|
|
235
235
|
declare const useMicrophone: () => Microphone;
|
|
236
236
|
export { AsyncActionOptions as A, RowAction as B, useColorScheme as C, DensityName as D, Density as E, useAsyncAction as F, buttonVariants as H, Button$1 as I, ButtonProps as L, AsyncLabels as M, FieldErrors as N, DensityProps as O, Phase as P, IconButton as R, palettes as S, useSystemColorScheme as T, ControlSize as U, RowActionProps as V, IconComponent as W, PaletteOption as _, browserMicrophone as a, colorSchemeScript as b, COLOR_SCHEME_STORAGE_KEY as c, ColorSchemeLabels as d, ColorSchemePreference as f, PaletteChoice as g, PALETTE_STORAGE_KEY as h, MicrophoneStream as i, AsyncButton as j, AsyncAction as k, ColorScheme as l, DEFAULT_PALETTE as m, MicrophoneContext as n, explainMicrophoneError as o, ColorSchemeState as p, MicrophoneError as r, useMicrophone as s, Microphone as t, ColorSchemeChoice as u, PaletteState as v, usePalette as w, paletteScript as x, ThemeProvider as y, IconButtonProps as z };
|
|
237
|
-
//# sourceMappingURL=microphone-
|
|
237
|
+
//# sourceMappingURL=microphone-DWh4OaMH.d.ts.map
|
package/dist/strata.bare.css
CHANGED
|
@@ -221,6 +221,17 @@
|
|
|
221
221
|
45% { scale: 1.06; }
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
/* Time left, drawn as a bar that empties once over `--drain-ms` (Glimpse): linear, as time is. It ends empty, so a
|
|
225
|
+
screenshot with animations finished shows an empty track; reduced motion collapses it to empty at once. */
|
|
226
|
+
@utility drain {
|
|
227
|
+
transform-origin: left;
|
|
228
|
+
animation: strata-drain var(--drain-ms, 1s) linear 1 forwards;
|
|
229
|
+
}
|
|
230
|
+
@keyframes strata-drain {
|
|
231
|
+
from { scale: 1 1; }
|
|
232
|
+
to { scale: 0 1; }
|
|
233
|
+
}
|
|
234
|
+
|
|
224
235
|
/* Stacking, once, for every floating thing, so an app never writes a z-index. A bar (the undo
|
|
225
236
|
bar, toasts) sits above panes and sticky headers; overlays (dialogs, popovers, menus) above
|
|
226
237
|
bars; a tooltip above everything, since it can name a control inside an overlay. */
|
package/dist/strata.css
CHANGED
|
@@ -216,6 +216,17 @@
|
|
|
216
216
|
45% { scale: 1.06; }
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
/* Time left, drawn as a bar that empties once over `--drain-ms` (Glimpse): linear, as time is. It ends empty, so a
|
|
220
|
+
screenshot with animations finished shows an empty track; reduced motion collapses it to empty at once. */
|
|
221
|
+
@utility drain {
|
|
222
|
+
transform-origin: left;
|
|
223
|
+
animation: strata-drain var(--drain-ms, 1s) linear 1 forwards;
|
|
224
|
+
}
|
|
225
|
+
@keyframes strata-drain {
|
|
226
|
+
from { scale: 1 1; }
|
|
227
|
+
to { scale: 0 1; }
|
|
228
|
+
}
|
|
229
|
+
|
|
219
230
|
/* Stacking, once, for every floating thing, so an app never writes a z-index. A bar (the undo
|
|
220
231
|
bar, toasts) sits above panes and sticky headers; overlays (dialogs, popovers, menus) above
|
|
221
232
|
bars; a tooltip above everything, since it can name a control inside an overlay. */
|
package/dist/strata.migrate.css
CHANGED
|
@@ -212,6 +212,17 @@
|
|
|
212
212
|
45% { scale: 1.06; }
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
/* Time left, drawn as a bar that empties once over `--drain-ms` (Glimpse): linear, as time is. It ends empty, so a
|
|
216
|
+
screenshot with animations finished shows an empty track; reduced motion collapses it to empty at once. */
|
|
217
|
+
@utility drain {
|
|
218
|
+
transform-origin: left;
|
|
219
|
+
animation: strata-drain var(--drain-ms, 1s) linear 1 forwards;
|
|
220
|
+
}
|
|
221
|
+
@keyframes strata-drain {
|
|
222
|
+
from { scale: 1 1; }
|
|
223
|
+
to { scale: 0 1; }
|
|
224
|
+
}
|
|
225
|
+
|
|
215
226
|
/* Stacking, once, for every floating thing, so an app never writes a z-index. A bar (the undo
|
|
216
227
|
bar, toasts) sits above panes and sticky headers; overlays (dialogs, popovers, menus) above
|
|
217
228
|
bars; a tooltip above everything, since it can name a control inside an overlay. */
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Phase, f as ColorSchemePreference, t as Microphone } from "./microphone-
|
|
1
|
+
import { P as Phase, f as ColorSchemePreference, t as Microphone } from "./microphone-DWh4OaMH.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { RouteObject, To } from "react-router";
|
|
4
4
|
import { QueryClient } from "@tanstack/react-query";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strata-react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|