jx_cli 0.0.5
jx_cli: ^0.0.5 copied to clipboard
JX CSS for Jaspr in one package: utility-first CSS compiler, CLI with watch mode, build_runner builder, Tailwind migration and accessible UI components.
0.0.5 #
jx initandjx buildnow write the stylesheet toweb/jx.cssby default (wasbuild/jx.css), sojaspr serveandjaspr buildserve it at/jx.cssas the quick start shows.- Docs:
JxButtonexamples pass the children last, as Jaspr'ssort_children_lastlint expects.
0.0.4 #
- Supports Jaspr 0.23: the
jasprconstraint is now>=0.22.4 <0.24.0, sodart pub add jx_cliworks in projects created with the latestjaspr create.
0.0.3 #
- One package.
jx_clinow contains the whole of JX CSS, sodart pub add jx_cliinstalls everything. Each part has its own import:package:jx_cli/ui.dart(formerlyjx_ui): modals, data tables, pagination, forms and the other components;package:jx_cli/builder.dart(formerlyjx_builder);package:jx_cli/engine.dart,rules.dart,theme.dart,parser.dart,generator.dartandcore.dart(formerlyjx_engine,jx_rules,jx_theme,jx_parser,jx_generatorandjx_core).
packages:injx.yamlaccepts a package folder:packages: [jx_cli/ui].jx_uistill works and points there when the old package is not installed.- The build_runner builder (
jx_cli:jx_css) is opt-in: enable it inbuild.yaml. This keeps projects that writeweb/jx.csswithjx buildworking. - The history of the former packages is in
doc/history/. - New
scheme:utility (color-scheme:normal,light,dark,light-dark), so native pickers follow dark mode withdark:scheme:dark. - Depends on
universal_webfor the browser-side behavior of components. - Components:
- new
JxAccordion(<details>, optionally exclusive) andJxDrawer(side panel on<dialog>), with theslide-in-leftandslide-in-rightanimations; - new
JxTabs(ARIA tabs with arrow keys, horizontal or vertical),JxDropdownMenu(<details>, closed by Escape or a click outside),JxToastwithJxToastRegion, andJxCombobox(<input list>); - new
JxSteps(progress through a flow),JxStat(key figure with a spoken trend),JxSegmentedControl(radios drawn as one control),JxSlider(range with<output>) andJxDateField(native date, time, month and week pickers); - in the browser, Escape hides a
JxTooltip; JxProgresswithoutvalueis indeterminate (newanim:indeterminate);JxCheckbox(error:, required:)andJxRadioGroup(hint:, error:, required:);- required fields show a decorative asterisk;
- badge and alert tones have dark-mode variants;
JxTooltip(id:)andJxTooltip.describedBy(id)link the hint to its element;JxCard(titleLevel:)picks the heading level of the title;- a disabled or loading
JxButton(href:)no longer navigates (aria-disabled, nohref); - focus ring, strong text and surface borders are shared tokens, so every component focuses the same way.
- new
0.0.2 #
- Uses
jx_engine0.0.2:open:,modal:,backdrop:variants and the table utilitiesbcol:,tl:,cap:.
0.0.1 #
jx migrate: converts Tailwind classes to JX inclasses: '…'andclass="…"attributes, with a report of approximations (-ifor a quick conversion,--writeto apply).packages:injx.yaml: scans thelib/folder of dependencies such asjx_ui.- New
JxMigratorandJxPackageResolverAPIs.
0.2.1 #
- CLI output, help, warnings and
jx.yamlerrors are now in English, as is thejx inittemplate. - README and package description in English.
0.2.0 #
- Clé
dark_mode: media|classdansjx.yaml(et dans le modèle dejx init). - Plus de 40 nouveaux utilitaires et les variantes
dark:,group-*,peer-*,motion-*,print:(voirjx_rulesetjx_engine). - Messages d'avertissement avec suggestions.
- Sécurité : une valeur arbitraire dangereuse trouvée dans les sources n'est jamais écrite dans le CSS et produit un avertissement.
0.1.0 #
Première version publiée.
jx init: crée unjx.yamlcommenté.jx build: extraction des classes,--watch,--minify,--input,--content,--output,--[no-]reset.- Configuration
jx.yamlavectheme.extendettheme.override.