Repository navigation
Releases
@styleframe/[email protected]
Patch Changes
- #416
e727598Thanks @alexgrozav! - Extend@uxfront/typescript-config/library.jsoninstead of repeating its options, so@styleframe/config-typescriptnow depends on@uxfront/typescript-configand sets onlymodule,moduleResolution,declarationMapandsourceMapitself. The compiler options are otherwise the same, but the output now goes to the extending project's owndist, where before a relativeoutDirresolved inside this package, and the config includes that project's files by default and excludes itsnode_modulesanddist. If your project sets its ownoutDirordeclarationDiroutsidedistand keeps the defaultinclude, its second build now reads the first one's output and stops withTS5055, because the inheritedexcludereplaces TypeScript's default one. Add anexcludewithnode_modules,distand that folder, like["node_modules", "dist", "lib"], or narrow yourinclude, like["src"].
@styleframe/[email protected]
Patch Changes
- #348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none.
@styleframe/[email protected]
Minor Changes
-
#382
a70e8e7Thanks @alexgrozav! - Add auseCardMediaRecipefor an image at the top of a card, and make the card recipes meet the Open Components Card standard. A link in a heading inside the card header now stretches over the whole card, actions in the card stay clickable above it, and the card shows a 2pxcolor.focusring outside its border when that link has keyboard focus, throughuseCardRecipe's setup selectors. Hover strengthens the border and underlines the heading only inside@media (hover: hover), the border goes to full strength withprefers-contrast: moreand stays a system colour in forced colours mode. The card no longer setsoverflow: hidden, so content and the focus ring are never clipped, and it wraps long words withoverflow-wrap: break-word.useCardHeaderRecipe,useCardBodyRecipeanduseCardFooterRecipepad their inline sides withpaddingInlineinstead ofpaddingLeftandpaddingRight, so cards mirror in right-to-left layouts. The media part shows above the header withorder: -1and keeps a16 / 9aspect ratio. Every recipe name, axis, value and default stays the same. -
#382
a70e8e7Thanks @alexgrozav! - BringuseTextareaRecipein line with the Open Components Textarea standard, and add anautogrowaxis that defaults tofalse, so today's output stays the same. Withautogrow: true, in browsers that supportfield-sizing, the textarea grows with its text throughfield-sizing: contentand has no resize handle, up to the rows in itsdata-max-rowsattribute. The nested textarea now has amin-heightof itsrowsin lines, read withattr(), so resizing or growing never makes it shorter than its rows. On touch screens its text is at least 16px, so Safari on iOS doesn't zoom in on focus, and the textarea is at least 44px tall. Theverticalresize default now also setsresize: block, where browsers support it, so it follows the writing mode.useTextareaPrefixRecipeanduseTextareaSuffixRecipeget the Input prefix and suffix changes through the field addon builder they share. -
#382
a70e8e7Thanks @alexgrozav! - Align the tooltip recipes with the Open Components Tooltip standard.useTooltipRecipeanduseTooltipArrowRecipegain aplacementaxis (top,bottom,startorend), which defaults totop, the side the arrow pointed from before. On an element with thepopoverattribute,useTooltipRecipenow opens the tooltip in the top layer withposition: fixed,inset: autoand the new@tooltip.offsetvariable as its margin, setsposition-areafromplacementand flips it withposition-try-fallbacks: flip-block, flip-inline. It fades and grows in as it opens, and only fades withprefers-reduced-motion: reduce. Every other element keeps its own positioning and the@z-index.tooltiplayer, so tooltips you position yourself look the same. The content now wraps at32chrather than240px, breaks long words withoverflow-wrap: anywhere, and takesCanvasand aCanvasTextborder in forced colours mode.useTooltipArrowRecipenow draws its triangle incolor, turns withplacement, uses logical properties so it mirrors in right-to-left layouts, sits on the edge that faces the trigger inside a top-layer tooltip, and hides in forced colours mode. CSS can't tell which side a fallback chose, so when a tooltip flips, set the arrow'splacementfrom a script. -
#408
9e14ea4Thanks @alexgrozav! - Add icon sizes and an icon-only style touseButtonRecipe. Each size now sets--button--icon--sizefor the icons indata-slot="leading"anddata-slot="trailing"children, and a button withdata-icon-onlyanddata-sizeis square, with itsdata-slot="label"child hidden from view but kept as the accessible name. Buttons without these attributes look the same as before. -
#382
a70e8e7Thanks @alexgrozav! - Add acolor.focustoken for focus rings, plus five accessibility modifiers and aposition-try-fallbacksutility. The token is a reference to@color.primaryin the light and dark themes, emitted as--color--focus, and thefocus.outline-colordefault now points at it, so focus rings look the same as before. When a project replaces the default colors and defines nofocuscolor, the default falls back to@color.primary, as before. The new modifiers arehover-capable(@media (hover: hover)) andany-pointer-coarse(@media (any-pointer: coarse)) fromuseMediaPreferenceModifiers,aria-invalid([aria-invalid="true"]) fromuseAriaStateModifiers,readonly-attr([readonly]) fromuseFormStateModifiersanddata-loading([data-loading]) fromuseOtherStateModifiers, each with its own composable, likeuseHoverCapableModifier. TheusePositionTryFallbacksUtilitycomposable is registered inuseUtilitiesPresetascreatePositionTryFallbacksUtilityand ships without defaults. Reference colors likefocusno longer get level, shade or tint keys in theuseDesignTokensPresetreturn type, because none are generated for them. -
#382
a70e8e7Thanks @alexgrozav! - Align the popover recipes with the Open Components Popover standard.usePopoverRecipeandusePopoverArrowRecipegain aplacementaxis (top,bottom,startorend), which defaults totop, the side the arrow pointed from before. On an element with thepopoverattribute,usePopoverRecipenow opens the popover in the top layer withposition: fixed,inset: auto, no padding from the browser's own[popover]styles, and the new@popover.offsetvariable as its margin, setsposition-areafromplacement, flips it withposition-try-fallbacks, and registers the--popover-fit,--popover-fit-belowand--popover-fit-above@position-tryrules. It fades in only without a reduced-motion preference. Every other element keepsposition: relative, so popovers you position yourself look the same. The container is never wider or taller than the screen less@spacing.xl, wraps long words, and draws a full-strength edge underprefers-contrast: moreand aCanvasTextedge in forced colours mode.usePopoverBodyRecipescrolls when the popover can't grow, andusePopoverHeaderRecipedrops its top separator after a leading arrow, as it does for a first child.usePopoverArrowRecipenow draws its triangle incolor, turns withplacement, uses logical properties so it mirrors in right-to-left layouts, sits on the edge that faces the anchor inside a top-layer popover, hides in forced colours mode, and changes@popover.arrow.sizefrom6pxto0.375rem: the same size at a 16px root font size, but it now scales with the root font size. -
#382
a70e8e7Thanks @alexgrozav! - Align the Spinner recipes with the Open Components Spinner standard.useSpinnerRecipe,useSpinnerCircleRecipeanduseSpinnerTextRecipegain aninheritsize, which makes the spinner1emwide and tall so it matches the text around it, and the spinner no longer shrinks in a flex row. With reduced motion,useSpinnerCircleRecipeswaps the turn for a pulse that fades the spinner to 40% and back every 1.6 seconds, and stops the arc from growing and shrinking. The pulse uses!importantfor its duration and iteration count, so it keeps going under the sanitize preset. The spinner has no background of its own, so inuseSpinnerRecipeprimaryswitches to@color.primary-400in the dark theme, where a label then reaches 4.5:1 on the page. Thelightanddarkcolors look the same in both themes,gray-700for light surfaces and white for dark ones, whileneutraladapts to the theme.useSpinnerOverlayRecipedarkens its backdrop from 50% to 75% black, so adarklabel on it reaches 4.5:1 too. With theinheritsize, the spinner also sits0.125embelow the baseline, so it centres on the text.useSpinnerCircleRecipenow uses themotion-reducemodifier, so register it first, asuseModifiersPresetdoes.
Patch Changes
- #382
a70e8e7Thanks @alexgrozav! - MakeuseButtonRecipemeet the Open Components Button standard's stylesheet rules. Every label now keeps 4.5:1 contrast at rest, on hover, when active, pressed or expanded, in both themes, sosolidbuttons darken on hover instead of lightening, apart fromwarning, which takes a dark label and still lightens, and the transparent variants use lighter levels in the dark theme. Every border keeps 3:1 against the surface it's meant for, sosubtleborders and theneutralborders are darker in the light theme and lighter ...
@styleframe/[email protected]
Patch Changes
- #348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none.
@styleframe/[email protected]
Patch Changes
- #348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none.
@styleframe/[email protected]
Minor Changes
- #348
e614db7Thanks @alexgrozav! - Addinspect(instance), which returns a JSON-serialisable snapshot of what an instance defines: its root variables with the custom property and value they emit, its themes with their selector and overrides, its utilities with their values, class names and modifiers, its modifiers, and its recipes with their variant options and defaults. The CLI gainsstyleframe check [entry] [--json], which runsvalidate()on your configuration without writing any files and exits with1when it finds a problem or the config file doesn't exist. With--json, it prints one{ "ok", "diagnostics" }document on stdout and nothing else.styleframe buildnow prints one warning line per diagnostic, exits with1understrict: truewithout writing anything, and exits with1when the build fails, where it used to log the error and exit with0. The bundler plugin logs each diagnostic once per build as a warning, so builds that use it, Inkline's included, will start showing them, and understrict: trueit fails the build, including when it regenerates type declarations in the dev server.
Patch Changes
-
#348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none. -
Updated dependencies [
e614db7]:- @styleframe/[email protected]
- @styleframe/[email protected]
- @styleframe/[email protected]
@styleframe/[email protected]
Patch Changes
- #348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none.
@styleframe/[email protected]
Patch Changes
-
#348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none. -
Updated dependencies [
e614db7,e614db7]:- @styleframe/[email protected]
@styleframe/[email protected]
Minor Changes
- #348
e614db7Thanks @alexgrozav! - Addinspect(instance), which returns a JSON-serialisable snapshot of what an instance defines: its root variables with the custom property and value they emit, its themes with their selector and overrides, its utilities with their values, class names and modifiers, its modifiers, and its recipes with their variant options and defaults. The CLI gainsstyleframe check [entry] [--json], which runsvalidate()on your configuration without writing any files and exits with1when it finds a problem or the config file doesn't exist. With--json, it prints one{ "ok", "diagnostics" }document on stdout and nothing else.styleframe buildnow prints one warning line per diagnostic, exits with1understrict: truewithout writing anything, and exits with1when the build fails, where it used to log the error and exit with0. The bundler plugin logs each diagnostic once per build as a warning, so builds that use it, Inkline's included, will start showing them, and understrict: trueit fails the build, including when it regenerates type declarations in the dev server.
Patch Changes
- #348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none.
@styleframe/[email protected]
Minor Changes
-
#348
e614db7Thanks @alexgrozav! - Addinspect(instance), which returns a JSON-serialisable snapshot of what an instance defines: its root variables with the custom property and value they emit, its themes with their selector and overrides, its utilities with their values, class names and modifiers, its modifiers, and its recipes with their variant options and defaults. The CLI gainsstyleframe check [entry] [--json], which runsvalidate()on your configuration without writing any files and exits with1when it finds a problem or the config file doesn't exist. With--json, it prints one{ "ok", "diagnostics" }document on stdout and nothing else.styleframe buildnow prints one warning line per diagnostic, exits with1understrict: truewithout writing anything, and exits with1when the build fails, where it used to log the error and exit with0. The bundler plugin logs each diagnostic once per build as a warning, so builds that use it, Inkline's included, will start showing them, and understrict: trueit fails the build, including when it regenerates type declarations in the dev server. -
#348
e614db7Thanks @alexgrozav! - Addstyleframe inspect [entry] [section] [--json], which lists the variables, themes, utilities, modifiers and recipes your configuration registers, all of them or one section, as readable lists or as one JSON document on stdout, from the snapshotinspect()returns. Thecheckcommand gains--typecheck, which runs your project'stscon the entry file with the compiler options of its nearesttsconfig.jsonand reports each type error as a diagnostic with the codetypescript, beside the problemsvalidate()finds. Thetypescriptpackage is now an optional peer dependency: without it,check --typecheckexits with1and says so.
Patch Changes
-
#348
e614db7Thanks @alexgrozav! - Add aREADME.mdto each of these packages, so the npm page and the installed package say what the package is, how to install it and where its docs are. Each one links to the new "Using Styleframe with AI agents" page, which covers thecheck,inspectandstrictloop and the mistakes that build without a warning. Until now these packages listedREADME.mdin theirfilesbut shipped none. -
Updated dependencies [
e614db7]:- @styleframe/[email protected]