Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next release #167

Merged
merged 88 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
05e4c8c
Link npm downloads badge to npm package page
techniq Jan 3, 2024
ed57bd0
🕰️ NEW: formatDate (#137)
jycouet Jan 3, 2024
f97a849
Design tokens / Theme support (with dark mode) (#146)
techniq Jan 3, 2024
7d76fb6
Change "theme" to "classes" in Settings (#172)
dimfeld Jan 3, 2024
8efd8ec
Add svelte settings to .prettierrc (#173)
dimfeld Jan 4, 2024
4c292b9
Theme store (#174)
dimfeld Jan 4, 2024
8cf5699
Move culori to be a regular dependency so that all package managers w…
dimfeld Jan 4, 2024
432a886
add ThemeInit component that place script inside <head> tag (#176)
dimfeld Jan 4, 2024
9be31f0
Version bump to 0.58.0-next.8
techniq Jan 4, 2024
7fe3f38
Improve dark scheme icon
techniq Jan 4, 2024
847cdd1
Rename `ThemeButton` to `ThemeSelect`
techniq Jan 4, 2024
5350f70
Add `ThemeSwitch` component to toggle between light/dark theme
techniq Jan 4, 2024
89fc036
Generate `-50` shade for an option lighter than `-100`
techniq Jan 4, 2024
5455776
Update Settings component to expose each settings value as its own co…
dimfeld Jan 4, 2024
f24bb1f
Format project (fix lint failure)
techniq Jan 4, 2024
ab8b1bb
Update tailwind plugin to only generate shade colors if not present i…
techniq Jan 5, 2024
132e4b3
Map Skeleton themes to Svelte UX themes
techniq Jan 5, 2024
93d98da
Switch Daisy UI themes back as the default (for now, until a more rob…
techniq Jan 6, 2024
4054e94
refacto peer dev (#201)
jycouet Jan 8, 2024
b946476
Move format function definitions onto settings to avoid calling getSe…
dimfeld Jan 9, 2024
3cc9c86
[formatNumber] Fix default style handling and update tests
techniq Jan 9, 2024
f22e64a
Locale support cleanup (#202)
dimfeld Jan 9, 2024
5378325
Format last qol for next (#203)
jycouet Jan 9, 2024
757daf0
Theme generator (#192)
techniq Jan 10, 2024
db5aac8
Version bump to 0.58.0-next.9
techniq Jan 10, 2024
b1abce0
Add ThemeSwitch to top-level exports
techniq Jan 10, 2024
a99a559
pass through existing locale stores if they are passed into settings …
dimfeld Jan 10, 2024
4a591da
make DateField format and mask reactive to locale changes (#206)
dimfeld Jan 10, 2024
ae5cce0
fix getPeriodTypeName calls (#207)
dimfeld Jan 10, 2024
c4c3370
[ColorField] Make color swatch look clickable
techniq Jan 11, 2024
d9e2ffd
[TableOfContents] Support changing icon
techniq Jan 11, 2024
82e3670
[Popover|Menu|popover] Support `resize` width or height only
techniq Jan 11, 2024
2b2d15d
[ThemeSelect] Improve width (consistent when switching between light/…
techniq Jan 11, 2024
ab86afd
[MenuButton] Support hiding `menuIcon` and dispatch `change` event
techniq Jan 11, 2024
e856dc8
Collapse app header actions into menu on small viewports. Resolves #185
techniq Jan 11, 2024
ef96352
Small docs design refinements
techniq Jan 11, 2024
60cb365
[LanguageSelect] Use code instead of flag for selection display
techniq Jan 11, 2024
3cb9064
Responsive tweaks
techniq Jan 11, 2024
8be9b73
Update examles to use `fill-light" instead of "fill" for default colo…
techniq Jan 11, 2024
e7493b9
Update all light/dark mode toggles to be light/dark (and not dark/lig…
techniq Jan 11, 2024
005e684
Feat/date range weekstarton (#208)
jycouet Jan 11, 2024
2ffee26
Update localization settings and translations (#211)
jycouet Jan 11, 2024
3b0419d
Increase the z-index of the docs header to fix some examples (ex. App…
techniq Jan 12, 2024
b6ed8c5
Refine theme page layout
techniq Jan 12, 2024
d8208fd
Add `isolate` to `<main>` allow modals (Dialog, Drawer, etc) to stack…
techniq Jan 12, 2024
4a06b45
Version bump to 0.58.0-next.10
techniq Jan 12, 2024
8d42be9
Support passing a custom formatter function as `format` argument to f…
techniq Jan 12, 2024
bab2f01
Version bump to 0.58.0-next.11
techniq Jan 12, 2024
d65ccb5
Comment out `$env/dynamic/private` usage unti SvelteKit is upgraded t…
techniq Jan 13, 2024
5a662f3
Restore using `$env/dynamic/private` (doesn't appear to solve Safari …
techniq Jan 13, 2024
ac1ef67
update SvelteKit and Vite dependencies (#215)
dimfeld Jan 14, 2024
7984288
Handle `weekInfo` across different browsers (fix Safari). Closes #214
techniq Jan 14, 2024
d65c345
Change PeriodType values (0 = unqualified DoW, 1-7 = Sun-Sat). Fix D…
techniq Jan 15, 2024
897422f
Version bump to 0.58.0-next.12
techniq Jan 15, 2024
dafc922
Update all dependencies except vitest
techniq Jan 15, 2024
58d2bc2
Remove typedoc (since not actively using)
techniq Jan 15, 2024
00bdbe9
Format projecdt after updating prettier (fix lint errors)
techniq Jan 15, 2024
cd23df5
[DateRange] Update selection when only changing period type (from/to
techniq Jan 15, 2024
23a22df
Add changeset
techniq Jan 15, 2024
b0c57d6
Version bump to 0.58.0-next.13
techniq Jan 15, 2024
ccaf970
Run svelte-migrate for Kit v2 (#218)
dimfeld Jan 16, 2024
ef86cf1
Upgrade vitest to 1.2 (#219)
dimfeld Jan 16, 2024
4b7658d
Replace `sveltePreprocess` with `vitePreprocess` in docs. Closes #57
techniq Jan 20, 2024
683a895
Remove broken classname
techniq Jan 28, 2024
235ca95
Use a separate settings() context on format() page to not try to upda…
techniq Jan 31, 2024
7c356c0
Add `sumObjects` array util
techniq Feb 2, 2024
8bc3a25
Add jsdoc
techniq Feb 2, 2024
9d28f7b
Remove unused prop accessor arg
techniq Feb 2, 2024
56acd94
Reduce the font size of the Tailwind typography/prose headers
techniq Feb 3, 2024
07fe188
[Kbd] Set the text color
techniq Feb 3, 2024
1a62ad0
Update Getting Started and Customization docs
techniq Feb 4, 2024
5f9fa2a
Fix ThemeSwitch SSR behavior by using `dark` class to define position…
dimfeld Feb 3, 2024
d9b2af9
Add TODOs
techniq Feb 6, 2024
e1f7d8b
Replace red/green with danger/success
techniq Feb 6, 2024
2fd679d
Fix overriding `elevation-#` classes. Add `elevation-none` to remove …
techniq Feb 6, 2024
f021b9c
[Appbar] Add `menuIcon` prop and slot. Closes #235 (#239)
techniq Feb 7, 2024
80fc050
[MultiSelect] Add `autoFocusSearch` to opt into functionality, which …
techniq Feb 7, 2024
56c618d
[DateRange] Remove `scrollIntoView` for date selection components (mo…
techniq Feb 7, 2024
57d46d5
Add ability to set default props on some components (#230)
dimfeld Feb 7, 2024
aae7c72
feat(DateField): Add support for `class` and `classes` props (#244)
brandonmcconnell Feb 10, 2024
5774d51
Fix DateField example with locale dictionary
techniq Feb 10, 2024
0415156
Add default light/dark themes if none are provided
techniq Feb 10, 2024
97e95c6
Do not require defining `color-scheme` for light/dark mode (but still…
techniq Feb 10, 2024
d9343e5
[ThemeSelect] Opt into adding keyboard shortcuts. Also fixes double …
techniq Feb 10, 2024
c3cf534
[DateField] Fix input value when clearing value
techniq Feb 10, 2024
c1f4380
Replace any `.` (index) imports
techniq Feb 11, 2024
58ecc75
Fix getting started tailwind plugin path
techniq Feb 12, 2024
0537c87
Change layerchart version in template to `latest` version
techniq Feb 12, 2024
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-ads-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Update dependencies (except vitest)
5 changes: 5 additions & 0 deletions .changeset/angry-zebras-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

Add styles (with daisy) as top-level export
5 changes: 5 additions & 0 deletions .changeset/chilled-dingos-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": minor
---

Update Settings component to expose each settings key as a component prop
5 changes: 5 additions & 0 deletions .changeset/clever-avocados-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": minor
---

Add ability to set a default values for labelPlacement and variant props
5 changes: 5 additions & 0 deletions .changeset/cool-hotels-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[SelectField] Add `stepper` prop to iterate through options (like `MenuField`)
5 changes: 5 additions & 0 deletions .changeset/eight-bottles-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[TableOfContents] Support changing icon
5 changes: 5 additions & 0 deletions .changeset/fair-trees-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[MenuField] Expose `selected` option via prop (similar to `SelectField`)
5 changes: 5 additions & 0 deletions .changeset/fluffy-news-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": minor
---

Add `sumObjects` array util
7 changes: 7 additions & 0 deletions .changeset/for-you-sean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'svelte-ux': minor
---

- Rename settings `theme` argument to `classes`
- Rename getTheme to getClasses and getComponentTheme to getComponentClasses

5 changes: 5 additions & 0 deletions .changeset/friendly-pets-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Add ThemeInit component to prevent flash of unstyled content when SSR is enabled
5 changes: 5 additions & 0 deletions .changeset/healthy-files-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[MenuButton] Support hiding `menuIcon` and dispatch `change` event
5 changes: 5 additions & 0 deletions .changeset/light-pianos-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Rename `ThemeButton` to `ThemeSelect`
5 changes: 5 additions & 0 deletions .changeset/light-ways-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': minor
---

BREAKING: removed `dateDisplay()` in favor of `format()`
5 changes: 5 additions & 0 deletions .changeset/modern-pumpkins-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Add a store to manage the current theme
5 changes: 5 additions & 0 deletions .changeset/moody-cows-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

Support passing a custom formatter function as `format` argument to format() / formatWithLocale()
5 changes: 5 additions & 0 deletions .changeset/nice-cats-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Fix ThemeSwitch SSR behavior by using `dark` class to define positioning and icon display
5 changes: 5 additions & 0 deletions .changeset/ninety-beers-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[MultiSelect] Add `autoFocusSearch` to opt into functionality, which `MultiSelectMenu` maintains
5 changes: 5 additions & 0 deletions .changeset/ninety-carpets-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

add locale management of date leveraging intl
38 changes: 38 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"create-svelte-ux": "0.2.1",
"svelte-ux": "0.57.1"
},
"changesets": [
"angry-ads-carry",
"angry-zebras-remember",
"beige-papayas-study",
"chilled-dingos-sell",
"cool-hotels-own",
"eight-bottles-eat",
"fair-trees-sparkle",
"for-you-sean",
"friendly-pets-reflect",
"healthy-files-search",
"light-pianos-refuse",
"light-ways-dress",
"modern-pumpkins-march",
"moody-cows-pull",
"ninety-carpets-cross",
"quick-avocados-hope",
"quick-carrots-grab",
"rare-flowers-flash",
"selfish-hounds-dance",
"shiny-hornets-study",
"shy-peaches-ring",
"sixty-walls-rest",
"sour-cougars-beg",
"strong-flies-provide",
"tidy-gifts-yawn",
"wicked-melons-fold",
"yellow-nails-vanish",
"yellow-oranges-fly"
]
}
5 changes: 5 additions & 0 deletions .changeset/quick-carrots-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": minor
---

Add theme selection/creation page and simplify loading themes
5 changes: 5 additions & 0 deletions .changeset/rare-flowers-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Map Skeleton themes to Svelte UX themes
5 changes: 5 additions & 0 deletions .changeset/selfish-hounds-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[SelectField] Fix toggling display of options menu using toggleIcon. Support hiding toggleIcon (`<SelectField toggleIcon={null} />
5 changes: 5 additions & 0 deletions .changeset/shaggy-cars-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[DateRange] Remove `scrollIntoView` for date selection components (month, year)
5 changes: 5 additions & 0 deletions .changeset/shiny-schools-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[DateField] Fix input value when clearing value
5 changes: 5 additions & 0 deletions .changeset/silver-penguins-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': minor
---

Add support for passing `class` and `classes` props to the DateField component
5 changes: 5 additions & 0 deletions .changeset/six-drinks-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Fix overriding `elevation-#` classes. Add `elevation-none` to remove `elevation-#`
6 changes: 6 additions & 0 deletions .changeset/sixty-walls-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"svelte-ux": minor
---

- Add locale settings to settings object, and allow dynamically changing the current locale.
- Move format function to be a store on the settings object, which updates when the locale changes.
5 changes: 5 additions & 0 deletions .changeset/sour-cougars-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": minor
---

Change PeriodType values (0 = unqualified DoW, 1-7 = Sun-Sat)
5 changes: 5 additions & 0 deletions .changeset/spicy-toys-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[Appbar] Add `menuIcon` prop and slot
5 changes: 5 additions & 0 deletions .changeset/strong-flies-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': minor
---

Support `ux.themes` tailwind config, including Daisy UI
5 changes: 5 additions & 0 deletions .changeset/tidy-gifts-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

[Popover|Menu|popover] Support `resize` width or height only
5 changes: 5 additions & 0 deletions .changeset/wicked-melons-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Add `ThemeSwitch` component to toggle between light/dark theme
5 changes: 5 additions & 0 deletions .changeset/yellow-nails-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': minor
---

Rename `cssVars` action to `styleVars` and do not prefix properties with `--` by default (more flexible)
6 changes: 6 additions & 0 deletions .changeset/yellow-oranges-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'create-svelte-ux': minor
'svelte-ux': minor
---

Theme support
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ coverage/
.idea/
.svelte-kit/
.env
.DS_Store

test-*
11 changes: 10 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"singleQuote": true,
"printWidth": 100,
"trailingComma": "es5"
"trailingComma": "es5",
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
![](https://img.shields.io/github/license/techniq/svelte-ux?style=flat)
[![](https://img.shields.io/github/actions/workflow/status/techniq/svelte-ux/ci.yml?style=flat)](https://github.com/techniq/svelte-ux/actions/workflows/ci.yml)
[![](https://img.shields.io/npm/v/svelte-ux?style=flat)](https://www.npmjs.com/package/svelte-ux)
![npm](https://img.shields.io/npm/dw/svelte-ux?style=flat&color=orange)
[![](https://img.shields.io/npm/dw/svelte-ux?style=flat&color=orange)](https://www.npmjs.com/package/svelte-ux)

[![](https://img.shields.io/badge/Open_in-SvelteLab-black?logo=svelte&color=%23FF3E00)](https://www.sveltelab.dev/?provider=github&owner=techniq&repo=svelte-ux&branch=main&path=%2Fpackages%2Fcreate-svelte-ux%2Ftemplates%2Fstarter) [![](https://img.shields.io/badge/Open_in-StackBlitz-black?logo=stackblitz&color=%231269D3)](https://stackblitz.com/github/techniq/svelte-ux/tree/main/packages/create-svelte-ux/templates/starter) [![](https://img.shields.io/badge/Open_in-CodeSandbox-black?logo=codesandbox&color=%23151515)](https://codesandbox.io/p/sandbox/github/techniq/svelte-ux/tree/main/packages/create-svelte-ux/templates/starter)

Expand Down
6 changes: 6 additions & 0 deletions packages/create-svelte-ux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-svelte-ux

## 0.3.0-next.0

### Minor Changes

- Theme support ([#146](https://github.com/techniq/svelte-ux/pull/146))

## 0.2.1

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/create-svelte-ux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-svelte-ux",
"version": "0.2.1",
"version": "0.3.0-next.0",
"description": "A CLI for creating new Svelte UX projects",
"repository": {
"type": "git",
Expand All @@ -18,12 +18,12 @@
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"@kitql/helpers": "^0.8.3",
"@kitql/helpers": "^0.8.8",
"commander": "^11.1.0"
},
"devDependencies": {
"@types/node": "^20.9.2",
"prettier": "^3.1.0"
"@types/node": "^20.11.2",
"prettier": "^3.2.2"
},
"files": [
"fragments",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
},
"dependencies": {
"dotenv": "16.3.1",
"layerchart": "^0.27.0"
"layerchart": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import '../app.postcss';

settings({
theme:{
AppBar: 'bg-accent-500 text-white shadow-md',
classes: {
AppBar: 'bg-primary text-white shadow-md',
AppLayout: {
nav: 'bg-neutral-800'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
href="https://svelte-ux.techniq.dev"
target="_blank"
variant="fill-light"
color="accent"
color="primary"
>
Documentation
</Button>
<Button
href="https://svelte-ux.techniq.dev/customization"
target="_blank"
variant="fill-light"
color="accent"
color="primary"
>
Customization
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<Svg>
<Axis placement="left" grid rule />
<Axis placement="bottom" format={(d) => format(d, PeriodType.Day, 'short')} rule />
<Area line={{ class: 'stroke-2 stroke-accent-500' }} class="fill-accent-500/30" />
<Area line={{ class: 'stroke-2 stroke-primary' }} class="fill-primary/30" />
<Highlight points lines />
</Svg>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ const config = {
'./node_modules/layerchart/**/*.{svelte,js}'
],
theme: {
extend: {
colors: {
accent: colors.blue
}
}
extend: {}
},
variants: {
extend: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ const svelte_ux = require('svelte-ux/plugins/tailwind.cjs');
const config = {
content: ['./src/**/*.{html,svelte}', './node_modules/svelte-ux/**/*.{svelte,js}'],
theme: {
extend: {
colors: {
accent: colors.blue
}
}
extend: {}
},
variants: {
extend: {}
Expand Down
Loading
Loading