Skip to content

Commit

Permalink
settings & formatNumber to handle Intl #129 (#134)
Browse files Browse the repository at this point in the history
* 🚧 UPDATE: format & number #129

* 🚧 WIP: moving tests up

* 🎉 NEW: starts to look good

* 🎉 NEW: ready to look

* 🔇 UPDATE: comment

* ✨ NEW: wo suffix

* ✨ NEW: suffix extra

* ⚡ UPDATE: integer

* ✨ NEW: french "int"

* 🔥 REMOVE: formatNumberAsStyle (and d3-format)

* 💥 REMOVE: package-lock.json as create should leave the door open for all package maangers)

* ✨ NEW: setup instructions

* ♻️ UPDATE: setup to settings

* ♻️ UPDATE: suffix in the good type

* ✨ UPDATE: defaults & currency & ... all having configs

* 💥 UPDATE: BREAKING createTheme to settings

* Move Prettify<T> to typeHelpers

* Update commented out settings() after number formats change

* Add/refine changesets

---------

Co-authored-by: Sean Lynch <[email protected]>
  • Loading branch information
jycouet and techniq authored Nov 17, 2023
1 parent 84b2051 commit d1c31c8
Show file tree
Hide file tree
Showing 27 changed files with 479 additions and 14,521 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-ways-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': minor
---

Add Intl support in `formatNumber()` by leveraging Intl.NumberFormat() (and remove d3-format dependency)
5 changes: 5 additions & 0 deletions .changeset/nervous-cars-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': minor
---

`createTheme( ... )` was removed in favor of `settings({ theme: ... })` (Same for component `<Theme ... />`, is now `<Settings ... />`). Enables configuring `formatNumber()` style and future settings.
120 changes: 0 additions & 120 deletions packages/create-svelte-ux/package-lock.json

This file was deleted.

Loading

1 comment on commit d1c31c8

@vercel
Copy link

@vercel vercel bot commented on d1c31c8 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.