-
Notifications
You must be signed in to change notification settings - Fork 4
*Changelog
Bryce Russell edited this page Feb 11, 2023
·
57 revisions
- Renamed
<Show>
to<When>
- Total refactor on
<When>
, use any/all prop names, this lets you:- Pass variables like
<When {variable}>
- Pass multiple props
<When expr={true} this={false}>
- Pass variables like
- Tiny refactor on
<Switch>
, stop unnecessary slot rendering - Tiny refactor on
<TableOfContents>
, add ability to pass attributes to first<ol>
tag and<a>
tags - Simplified
<Link>
and<Navigation>
by removingmode
prop
- Added
loop
prop to<Map>
- Tiny update to
<Switch>
, created documentation - Fix import error in
<CodeCopy>
- Rename
<IconSwitch>
to<IconSwitcher>
to make it stand out more from<Switch>
- Added
<Show>
, acts like a conditional/ternary statement mostly used for default<Switch>
- Major refactor on
<Switch>
- Made
name
prop and its behavior optional - by default expects a
<Show>
component as a child with a number as a named slot - Filter/sorts numbered named slots and going in order will only render the first slot that contains content
- Made
- Refactor
<CodeCopy>
to use<template>
- Added
<slot />
to<NoScriptProperty>
and made the included hide class optional
- Added
<Switch>
component, uses named slots like a switch statement - Tiny refactor on
<Map>
, added index to slot function arguments and made array detection more robust - Moved
<keyboardProp>
and<NetworkProperty>
to component archive, too niche/specialized - Rename dynamic CSS scripts from
{name}Prop
to{name}Property
- Tiny refactor on
<ScrollProperty>
and<MouseProperty>
, added ability to override default variable names - Move
<NoScriptProperty>
to style components - Added
default
prop to<NoScriptProperty>
Fix error with types not being found when importing, also fixes prop typing- Added
<Network>
prop back
- Add start for
<TableOfContents>
, on pause until slots can be passed recursively or will have to useastro-json-element
- Tiny refactor on
<IconSwitch>
, removed opinionated defaults
- Fix import typos that only showed after publishing
- Temporarily removed
<NetworkProp>
from exporting due to weird bug (It was a space in the project folder)
- Added
<CodeCopy>
a copy code button that gets attached to code blocks - Renamed
<ThemeIcon>
to<IconSwitch>
because it also works with<CodeCopy>
- Rename
<ThemeToggle>
to<MultiThemeToggle>
to be more consise and match<DarkThemeToggle>
- Old
<ThemeToggle>
renamed<DarkThemeToggle>
, a simpler theme toggle for websites with only light/dark - Refactor
<ThemeToggle>
into a more advanced multi theme script - Refactor
<AnimatedSpriteSheet>
and<ThemeIcon>
into new more consistent pattern for style components
- Added
<ThemeToggle>
a dark mode button/script - Added
<ThemeIcon>
, animated icon switch on theme change, shows an icon related to the current theme
0.14
- Remove trailing slashes from
<Breadcrumb>
url
- Refactor
<NetworkProp>
0.13
- Added ability to target page number for alternative render inside
<Pagination>
using slots - Fix package.json
0.12
- Added
defaults
prop to<Navigation>
- Fix repository link in package.json
0.11
- Added
before
andafter
prop to<Pagination>
to give more control over which links are displayed - Added
hide
prop to<AnimatedSpriteSheet>
as an option to hide the default animation element
0.10
- Fixed
<AnimatedSpriteSheet>
, all spritesheet orientations should now work (horizontal, vertical, and grids)
0.09
- Added
<AnimatedSpriteSheet>
, a CSS stylesheet template for animating spritesheets using CSS keyframe animations - Refactor
<Map>
component- Data is now passed like this:
<Map {...array}>
- Ditch prop abstraction of
Array.prototype
methods likereverse
andfilter
in favor of using.
dot notation when passing array - Added ability use named slots to target an index for alternative render
- Data is now passed like this: