Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
5683cb8
Add sponsors and community to README
techniq Mar 3, 2025
6ab24c4
Enter changeset prerelease/next mode (`pnpm changeset pre enter next`)
techniq Mar 10, 2025
9dc013d
Initial migration to Tailwind CSS v4 using `npx @tailwindcss/upgrade`…
techniq Mar 3, 2025
7f12803
Fix `CSSRuleObject` no longer available in `tailwindcss/types/config.…
techniq Mar 3, 2025
c13e65e
feat: Add `NestedRecord` type
techniq Mar 4, 2025
99e835a
Begin to replace tailwind plugin / config with `app.css`
techniq Mar 4, 2025
c6bb443
feat: Add `mapKeys()` and `mapValues()` object utils
techniq Mar 5, 2025
0205efb
Process skeleton themes (skeleton.css) and generate `themes.css` (com…
techniq Mar 5, 2025
65e0adf
Build css to `src/lib/css` and copy to dist
techniq Mar 5, 2025
01e108a
Update test snapshot (new TW4 colors and include color function)
techniq Mar 5, 2025
64e2a49
Add utils.css
techniq Mar 5, 2025
5aa7202
Separate authored from generated `.css`. Move `<html class="dark">` …
techniq Mar 5, 2025
bb7ddeb
Ignore generated css files
techniq Mar 5, 2025
31a038d
Move tailwind typography variable overrides to `theme.css`
techniq Mar 5, 2025
7e4ad75
Add `grid-cols-` reapt/auto-fill/minmax (RAM) utils
techniq Mar 5, 2025
93b8489
Remove Tailwind plugin and `tailwind.config.cjs` for docs
techniq Mar 5, 2025
38d63bb
Remove old plugin docs
techniq Mar 5, 2025
9e6bd2a
Remove outdated redirect
techniq Mar 7, 2025
f1a3c5e
Always use ThemeSelect (and not ThemeSwitch for light/dark toggle)
techniq Mar 7, 2025
df56db8
Parse theme names from `.css` file (`[data-theme="..."]`) instead of …
techniq Mar 7, 2025
6c9c800
Remove no longer useful `flattenThemeColors()` and simplify
techniq Mar 7, 2025
6cdcb26
Add changeset
techniq Mar 10, 2025
fbf4637
Downgrade `svelte-ux` to released `^1.0.0` to fix CI
techniq Mar 10, 2025
c97a3d4
Version Packages (next)
github-actions[bot] Mar 10, 2025
ae466e3
Merge pull request #42 from techniq/changeset-release/next
techniq Mar 10, 2025
46c12ab
fix(theme.css): Apply tailwind typography `.prose` css variable overr…
techniq Mar 11, 2025
8ae6349
Version Packages (next)
github-actions[bot] Mar 11, 2025
75d7971
Merge pull request #43 from techniq/changeset-release/next
techniq Mar 11, 2025
b8cf204
docs: Use `svelte-ux@next`
techniq Mar 11, 2025
e36d6f6
Merge branch 'next' of https://github.com/techniq/layerstack into next
techniq Mar 11, 2025
2cafcc5
Ignore `@layerstack/docs` project for changesets
techniq Mar 11, 2025
06a928a
Restore prose heading styling (size/bold/margin)
techniq Mar 12, 2025
6eede5a
fix(theme.css): Provide default colors (instead of black) for theme v…
techniq Mar 13, 2025
c73917f
Remove unused generated files
techniq Mar 13, 2025
7ae0eba
fix(theme): Use color-mix for all `-content` theme colors
techniq Mar 13, 2025
6870d5e
feat: Add `basic.css`. Rename `theme.css` to `core.css`. Add `theme…
techniq Mar 13, 2025
0b9e553
Prettier ignore generated theme files after moving
techniq Mar 13, 2025
61ca660
Remove @layerstack/docs reference in changeset
techniq Mar 13, 2025
b1bc6d6
Version Packages (next)
github-actions[bot] Mar 13, 2025
0ac5def
Update CHANGELOG.md
techniq Mar 13, 2025
15327a7
Merge pull request #44 from techniq/changeset-release/next
techniq Mar 13, 2025
74b4c85
docs(dataBackground): Improve gradient example
techniq Mar 13, 2025
52961fc
Switch from `@tailwindcss/postcss` to `@tailwindcss/vite`
techniq Mar 13, 2025
b38c177
Update all non-major packages. Remove autoprefixer (no longer needed)
techniq Mar 13, 2025
b7ca80b
Update dependencies
techniq May 2, 2025
1f91bc0
Downgrade `@sveltejs/adapter-cloudflare` (compat with `AdrianGonz97/r…
techniq May 2, 2025
a48e9e3
feat: Add `@layerstack/svelte-state` package, initially with `selecti…
techniq May 2, 2025
88c9b60
Add a placeholder.test.ts in svelte-state to fix CI
techniq May 2, 2025
1fab662
Version Packages (next)
github-actions[bot] May 2, 2025
9f641b4
Merge pull request #48 from techniq/changeset-release/next
techniq May 2, 2025
b2cf7df
breaking: Migrate `selectionState` and `uniqueState` to `SelectionSta…
techniq May 2, 2025
61b47da
Format
techniq May 2, 2025
f252158
Version Packages (next)
github-actions[bot] May 2, 2025
a51d48d
Merge pull request #49 from techniq/changeset-release/next
techniq May 2, 2025
cddbc7a
Merge branch 'main' into next
techniq May 14, 2025
3b15ba8
Merge branch 'main' into next
techniq May 14, 2025
e1e8750
FIx lint
techniq May 14, 2025
1afe31c
Merge branch 'main' into next
techniq May 14, 2025
fc8272f
Version Packages (next)
github-actions[bot] May 14, 2025
6bd50bc
Merge pull request #55 from techniq/changeset-release/next
techniq May 14, 2025
84c1a1c
Merge branch 'main' into next
techniq May 14, 2025
0848b05
Cleanup
techniq May 14, 2025
00e03bd
feat: Add `TimerState`
techniq May 14, 2025
c83a5cc
docs: Migrate from +page.md to +page.svelte
techniq May 14, 2025
0e06d8d
Merge pull request #56 from techniq/timerstate
techniq May 14, 2025
4acc892
Version Packages (next)
github-actions[bot] May 14, 2025
66cd6e1
Merge pull request #57 from techniq/changeset-release/next
techniq May 14, 2025
3c3ccc4
breaking(SelectionState): Refine API (use `current` property setter i…
techniq May 15, 2025
f4d14f7
feat: Add `MediaQueryPresets`
techniq May 15, 2025
a254ccf
Fix CI check due to `<script>` in string
techniq May 15, 2025
399c648
Version Packages (next)
github-actions[bot] May 15, 2025
7334da5
Merge pull request #58 from techniq/changeset-release/next
techniq May 15, 2025
688bfe0
fix(MediaQueryPresets): Add workaround for `screen` and `print` for u…
techniq May 16, 2025
f1c93af
Merge branch 'next' of https://github.com/techniq/layerstack into next
techniq May 16, 2025
0923871
fix(SelectionState): Improve `current` type (based on `single`)
techniq May 16, 2025
40bbe6d
Add selectionState and uniqueState tests
techniq May 16, 2025
295ab24
Add PaginationState
techniq May 16, 2025
680b322
Merge pull request #60 from techniq/add-paginationstate
techniq May 16, 2025
9e67c51
Version Packages (next)
github-actions[bot] May 16, 2025
f7b36c2
Merge pull request #59 from techniq/changeset-release/next
techniq May 16, 2025
ca4767d
breaking(TimerState): Rename `onTick` to `tick`
techniq May 16, 2025
3a2dbaa
fix casing of SelectionState directory
techniq May 16, 2025
33699f3
remove uniqueState to UniqueState2 (stop gap)
techniq May 16, 2025
3293fcb
remove UniqueState2 to UniqueState
techniq May 16, 2025
88d25a1
Merge branch 'main' into next
techniq May 16, 2025
4405120
Remove notice from `next` page
techniq May 16, 2025
4ed65a7
breaking: Replace `getDuration()` / `humanizeDuration()` utils with `…
techniq May 20, 2025
7dd124f
Merge pull request #62 from techniq/duration-class
techniq May 20, 2025
be3994c
Version Packages (next)
github-actions[bot] May 20, 2025
8c7c107
Merge pull request #61 from techniq/changeset-release/next
techniq May 20, 2025
7419ab6
docs(MediaQueryPresets): format
techniq May 21, 2025
e714062
fix(TimerState): Only restart timer after updating delay if previousl…
techniq May 21, 2025
db500b0
Version Packages (next)
github-actions[bot] May 21, 2025
f5d6139
Merge pull request #63 from techniq/changeset-release/next
techniq May 21, 2025
02e6d1e
fix: Add `PaginationState` to top-level exports
techniq May 24, 2025
5926ac9
Version Packages (next)
github-actions[bot] May 24, 2025
a4430bc
Merge pull request #64 from techniq/changeset-release/next
techniq May 24, 2025
9f3ec6b
Default `vite dev` port to `3004`
techniq May 28, 2025
38c4443
fix: Update `PeriodType.Month` `default` variant to include full name…
techniq May 28, 2025
bee9aa6
chore(utils): Remove `svelte-check` and use `tsc`
techniq May 28, 2025
48b0aea
breaking(utils): Lowercase all periodTypeMappings, simplify (`DAY-TIM…
techniq May 28, 2025
eaca635
feat(format): Support passing PeriodTypeCode strings to easily format…
techniq May 28, 2025
ab0bb08
feat(format): Support passing config option to easily set `type` and …
techniq May 28, 2025
677d370
Merge pull request #66 from techniq/simple-format-date
techniq May 28, 2025
1dce801
Version Packages (next)
github-actions[bot] May 28, 2025
d3e26d3
Merge pull request #65 from techniq/changeset-release/next
techniq May 28, 2025
3cabb82
Add a few more tests
techniq May 28, 2025
7642289
fix(format): Improve typing for `FormatConfig` and `formatDate()`
techniq May 28, 2025
4ac13bb
Version Packages (next)
github-actions[bot] May 28, 2025
e63fda1
Merge pull request #67 from techniq/changeset-release/next
techniq May 28, 2025
23651ad
fix: Add `FormatConfig` as top-level export
techniq May 28, 2025
d1df61a
Merge branch 'next' of https://github.com/techniq/layerstack into next
techniq May 28, 2025
13c5f88
Version Packages (next)
github-actions[bot] May 28, 2025
677f98a
Merge pull request #68 from techniq/changeset-release/next
techniq May 28, 2025
a6df412
feat: Add `platform` to get details of browser (operating system, etc)
techniq Jun 5, 2025
dc5323a
Version Packages (next)
github-actions[bot] Jun 5, 2025
166d467
Merge pull request #69 from techniq/changeset-release/next
techniq Jun 5, 2025
e47ed35
refactor: Remove `platform` nesting of user agent introspection funct…
techniq Jun 5, 2025
2e914ca
Merge branch 'next' of https://github.com/techniq/layerstack into next
techniq Jun 5, 2025
50117ed
Version Packages (next)
github-actions[bot] Jun 5, 2025
5cc3eb9
Merge pull request #70 from techniq/changeset-release/next
techniq Jun 5, 2025
abd845a
feat: Add new date utils including `parseDate`, `timeInterval`, `star…
techniq Jun 9, 2025
afce16c
Re-add d3-time to package.json (lost during cleanup)
techniq Jun 9, 2025
cdfd244
Add `isDateWithin()`util
techniq Jun 10, 2025
21bf4be
Change arg name to better reflect use
techniq Jun 10, 2025
0323024
Merge pull request #71 from techniq/remove-date-fns
techniq Jun 10, 2025
9d1c779
Fix changeset
techniq Jun 10, 2025
3e01ae0
Version Packages (next)
github-actions[bot] Jun 10, 2025
bd1a745
Merge pull request #72 from techniq/changeset-release/next
techniq Jun 10, 2025
32eb536
fix: Add more date utils to top-level exports including `intervalOffs…
techniq Jun 10, 2025
042a6a1
Version Packages (next)
github-actions[bot] Jun 10, 2025
bcf961c
Merge pull request #73 from techniq/changeset-release/next
techniq Jun 10, 2025
7c986f8
feat(parseDate): Support optional `format` argument accepting both `U…
techniq Jun 10, 2025
ad4c34f
feat(formatDate): Support second argument as explicit `format` string…
techniq Jun 10, 2025
67e100c
Merge pull request #74 from techniq/parse-format
techniq Jun 10, 2025
ae22356
Version Packages (next)
github-actions[bot] Jun 10, 2025
d18df64
Merge pull request #75 from techniq/changeset-release/next
techniq Jun 10, 2025
975f5d8
docs: Update Svelte UX (dropping transitive date-fns dep)
techniq Jun 10, 2025
49ccf88
chore: Remove unused deps
techniq Jun 11, 2025
c4a6509
Merge pull request #76 from techniq:remove-unused-deps
techniq Jun 11, 2025
1ebd4db
Add string utils and cleanup deps (#79)
techniq Jun 13, 2025
34621c9
Version Packages (next) (#77)
github-actions[bot] Jun 13, 2025
6f23f62
fix: Split theme generation CLI from runtime theme utils (#80)
techniq Jun 13, 2025
f8e9efa
Version Packages (next) (#81)
github-actions[bot] Jun 13, 2025
7623a94
docs: Setup unplugin-icons and update table of contents (align with S…
techniq Jun 29, 2025
d7e5094
docs(format): Add steppers to menu options and simplify some examples
techniq Jun 29, 2025
e366ee7
feat(format): Support passing `locale` as part of config object (#82)
techniq Jun 29, 2025
6676212
Version Packages (next) (#83)
github-actions[bot] Jun 29, 2025
28027b3
feat: Add additional time formats (hour, minute, second, millisecond)…
techniq Jul 23, 2025
a9bb9c9
Version Packages (next) (#86)
github-actions[bot] Jul 23, 2025
b7f39f7
feat(clamp): Update types to support `Date`
techniq Sep 12, 2025
91e9c79
Version Packages (next) (#89)
github-actions[bot] Sep 12, 2025
d43c010
fix(isActive): Do not match when path is not at the beginning (#90)
techniq Sep 25, 2025
73c58ed
Duration format features (`.toISOString()`, `.format({ fractional: tr…
techniq Sep 26, 2025
64929bc
Version Packages (next) (#91)
github-actions[bot] Sep 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-sheep-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

feat: Add `TimerState`
5 changes: 5 additions & 0 deletions .changeset/bitter-buttons-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat: Add `platform` to get details of browser (operating system, etc)
5 changes: 5 additions & 0 deletions .changeset/brave-ideas-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix(isActive): Do not match when path is not at the beginning
9 changes: 9 additions & 0 deletions .changeset/bright-jokes-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@layerstack/svelte-actions': patch
'@layerstack/svelte-stores': patch
'@layerstack/svelte-state': patch
'@layerstack/svelte-table': patch
'@layerstack/utils': patch
---

chore: Remove unused deps
5 changes: 5 additions & 0 deletions .changeset/cold-actors-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

fix(SelectionState): Improve `current` type (based on `single`)
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["@layerstack/docs"]
}
5 changes: 5 additions & 0 deletions .changeset/cuddly-cows-win.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix: Add `FormatConfig` as top-level export
10 changes: 10 additions & 0 deletions .changeset/cyan-guests-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@layerstack/svelte-actions': patch
'@layerstack/svelte-stores': patch
'@layerstack/svelte-state': patch
'@layerstack/svelte-table': patch
'@layerstack/tailwind': patch
'@layerstack/utils': patch
---

refactor: Replace `date-fns` usage with new date utils (based on d3-time) to reduce bundle size
5 changes: 5 additions & 0 deletions .changeset/dull-meals-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat: Add string utils `toCamelCase()`, `toSnakeCase()`, `toKebabCase()`, and `toPascalCase()`
5 changes: 5 additions & 0 deletions .changeset/eager-bugs-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

refactor: Remove `platform` nesting of user agent introspection functions (already nested in `env` export)
5 changes: 5 additions & 0 deletions .changeset/empty-dancers-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat: Add additional time formats (hour, minute, second, millisecond). Resolves #84
5 changes: 5 additions & 0 deletions .changeset/empty-wasps-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix(Duration): Support `.toISOString()` to output ISO 8601 duration strings (ex. `P2DT3H5M`)
5 changes: 5 additions & 0 deletions .changeset/fancy-poets-lead.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

feat: Add `MediaQueryPresets`
5 changes: 5 additions & 0 deletions .changeset/fluffy-eggs-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': minor
---

feat: Add `@layerstack/svelte-state` package, initially with `selectionState` and `uniqueState`
5 changes: 5 additions & 0 deletions .changeset/four-signs-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/tailwind': patch
---

fix: Change `culori` dep to devDependencies (only used for generation and not runtime)
6 changes: 6 additions & 0 deletions .changeset/fresh-pants-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@layerstack/tailwind': major
'@layerstack/utils': minor
---

Tailwind 4 support
5 changes: 5 additions & 0 deletions .changeset/khaki-bars-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/tailwind': patch
---

fix(theme.css): Apply tailwind typography `.prose` css variable overrides within `@layer utilities` to fix deployment. Properly set opacity for some variables
5 changes: 5 additions & 0 deletions .changeset/lazy-bottles-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/tailwind': patch
---

fix: Change `tailwindcss` dep to devDependecies
5 changes: 5 additions & 0 deletions .changeset/legal-seals-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

breaking(SelectionState): Refine API (use `current` property setter instead of `setSelected()` and rename `toggleSelected()` to `toggle()`)
5 changes: 5 additions & 0 deletions .changeset/light-mice-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

breaking(TimerState): Rename `onTick` to `tick`
5 changes: 5 additions & 0 deletions .changeset/loud-rockets-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': minor
---

breaking: Migrate `selectionState` and `uniqueState` to `SelectionState` and `UniqueState` classes
5 changes: 5 additions & 0 deletions .changeset/mean-taxis-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/tailwind': patch
---

fix: Split theme generation CLI from runtime theme utils
5 changes: 5 additions & 0 deletions .changeset/modern-hairs-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/tailwind': patch
---

breaking: Rename `theme.css` to `core.css`. Provide default colors for all theme variables including deriving `-50`:`-950` shades (`primary-700`, etc). Add `themes/basic.css` for simple light/dark use cases
5 changes: 5 additions & 0 deletions .changeset/odd-dots-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

Add PaginationState
5 changes: 5 additions & 0 deletions .changeset/odd-hands-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat: Add new date utils including `parseDate`, `timeInterval`, `startOfInterval`, `endOfInterval`, `intervalOffset`, and more
5 changes: 5 additions & 0 deletions .changeset/odd-yaks-see.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat: Add `mapKeys()` and `mapValues()` object utils
5 changes: 5 additions & 0 deletions .changeset/open-schools-spend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat(format): Support passing `locale` as part of config object
5 changes: 5 additions & 0 deletions .changeset/plain-crews-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

fix(TimerState): Only restart timer after updating delay if previously running
5 changes: 5 additions & 0 deletions .changeset/polite-moments-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

fix(MediaQueryPresets): Add workaround for `screen` and `print` for upstream svelte issue
58 changes: 58 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@layerstack/svelte-actions": "1.0.0",
"@layerstack/svelte-stores": "1.0.1",
"@layerstack/svelte-table": "1.0.0",
"@layerstack/tailwind": "1.0.0",
"@layerstack/utils": "1.0.0",
"@layerstack/docs": "1.0.1",
"@layerstack/svelte-state": "0.0.0"
},
"changesets": [
"angry-sheep-matter",
"bitter-buttons-trade",
"brave-ideas-scream",
"bright-jokes-press",
"cold-actors-burn",
"cuddly-cows-win",
"cyan-guests-sip",
"dull-meals-post",
"eager-bugs-laugh",
"empty-dancers-rule",
"empty-wasps-watch",
"fancy-poets-lead",
"fluffy-eggs-joke",
"four-signs-smell",
"fresh-pants-accept",
"khaki-bars-smell",
"lazy-bottles-rule",
"legal-seals-march",
"light-mice-brake",
"loud-rockets-tease",
"mean-taxis-drive",
"modern-hairs-open",
"odd-dots-greet",
"odd-hands-tie",
"odd-yaks-see",
"open-schools-spend",
"plain-crews-cry",
"polite-moments-build",
"quick-ducks-do",
"ripe-pens-raise",
"seven-humans-sink",
"seven-teeth-ring",
"slimy-bags-beg",
"smooth-ties-lie",
"social-poems-start",
"solid-lands-shine",
"swift-clocks-warn",
"tidy-drinks-rush",
"tiny-dogs-shave",
"tricky-snails-repeat",
"twelve-cloths-live",
"two-doodles-return",
"wicked-items-change"
]
}
5 changes: 5 additions & 0 deletions .changeset/quick-ducks-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': major
---

breaking: Replace `getDuration()` / `humanizeDuration()` utils with `Duration` class (with `.format()` method)
5 changes: 5 additions & 0 deletions .changeset/ripe-pens-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/tailwind': patch
---

fix(theme.css): Provide default colors (instead of black) for theme variables. Use `color-mix()` to derive `-50`:`-950` shades of all theme colors (primary-100, success-700, etc)
5 changes: 5 additions & 0 deletions .changeset/seven-humans-sink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix: Add more date utils to top-level exports including `intervalOffset`, `intervalDifference`, `isSameInterval`, `isDateWithin`, and more
5 changes: 5 additions & 0 deletions .changeset/seven-teeth-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/svelte-state': patch
---

fix: Add `PaginationState` to top-level exports
5 changes: 5 additions & 0 deletions .changeset/slimy-bags-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat(format): Support passing config option to easily set `type` and additional `options` as single object (ex. `format(number, { type: 'currency', options: { notation: 'compact' } })`)
5 changes: 5 additions & 0 deletions .changeset/smooth-ties-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

breaking(utils): Lowercase all periodTypeMappings, simplify (`DAY-TIME` => `daytime`, etc), and add `PeriodTypeCode` type
5 changes: 5 additions & 0 deletions .changeset/social-poems-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat(formatDate): Support second argument as explicit `format` string accepting both `Unicode` and `strftime` formats (converting `Unicode` to `strftime`) while still supporting period type string/enum.
5 changes: 5 additions & 0 deletions .changeset/solid-lands-shine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat: Add `NestedRecord` type
9 changes: 9 additions & 0 deletions .changeset/swift-clocks-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@layerstack/svelte-actions': patch
'@layerstack/svelte-stores': patch
'@layerstack/svelte-table': patch
'@layerstack/tailwind': patch
'@layerstack/utils': patch
---

Update dependencies
5 changes: 5 additions & 0 deletions .changeset/tidy-drinks-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix(format): Improve typing for `FormatConfig` and `formatDate()`
5 changes: 5 additions & 0 deletions .changeset/tiny-dogs-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat(parseDate): Support optional `format` argument accepting both `Unicode` and `strftime` formats (converting `Unicode` to `strftime`)
5 changes: 5 additions & 0 deletions .changeset/tricky-snails-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat(clamp): Update types to support `Date`
5 changes: 5 additions & 0 deletions .changeset/twelve-cloths-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix: Update `PeriodType.Month` `default` variant to include full name, and `long` to include year.
5 changes: 5 additions & 0 deletions .changeset/two-doodles-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

feat(format): Support passing PeriodTypeCode strings to easily format dates (ex. `format(date, 'day')`)
5 changes: 5 additions & 0 deletions .changeset/wicked-items-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@layerstack/utils': patch
---

fix(Duration): Support `fractional` values (ex. `1.5s`). Useful with `minUnits` or `totalUnits`
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,30 @@
[![](https://img.shields.io/github/actions/workflow/status/techniq/layerstack/ci.yml?style=flat)](https://github.com/techniq/layerstack/actions/workflows/ci.yml)

![](https://img.shields.io/github/license/layerstack?style=flat)
[![](https://dcbadge.vercel.app/api/server/697JhMPD3t?style=flat)](https://discord.gg/697JhMPD3t)
[![](https://dcbadge.limes.pink/api/server/697JhMPD3t?style=flat)](https://discord.gg/697JhMPD3t)

## Companion libraries

- [LayerChart](https://layerchart.com) - composable chart components to build a wide range of visualizations
- [Svelte UX](https://svelte-ux.techniq.dev/) - components to build highly interactive applications.

## Sponsors

This project is supported by the following beautiful people/organizations:

<p align="center">
<a href="https://github.com/sponsors/techniq">
<img src='https://github.com/techniq/sponsorkit/blob/main/sponsors.svg?raw=true' alt="Logos from Sponsors" />
</a>
</p>

## Community

Join the Discord server to ask questions, find collaborators, or just say hi!

<a href="https://discord.gg/697JhMPD3t" alt="LayerStack Discord community">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://invidget.switchblade.xyz/697JhMPD3t">
<img alt="LayerStack Discord community" src="https://invidget.switchblade.xyz/697JhMPD3t?theme=light">
</picture>
</a>
Loading
Loading