Skip to content

Commit

Permalink
[release] 0.7.1 (#185)
Browse files Browse the repository at this point in the history
* [docs]: added missing installation check boxes and fixed typo

* [core]: fixed typos

* [core]: Yarn and Storybook migration (#160)

* [migration]: all packages on kit-next.377 and use storybook template

* [@svelteui/core]: configuring story book (viewport modifications and set up)

* [@svelteui/core]: moved lib contents to src

* [@svelteui/core]: fixed stories for button

* [core]: fixed all eslintrcs

* [core]: started theme setup for core package

* [core]: storybook working with dark and light theme

* [core]: revert some changes and remove logs

* [core]: remove unused logic

* [core] yarn migration (#157)

* [core]: migrate to yarn

* [docs]: update contribution guide to include yarn

* [core]: modify github pipelines to use yarn

* [core]: format and lint code

* [core]: update yarn.lock (#161)

Co-authored-by: BeeMargarida <[email protected]>

* [@svelteui/core]: support number as size in Button (#165)

* [@svelteui/core]: fix missing prop type in NumberInput

* [@svelteui/core]: use new prop approach in all components

* [@svelteui/core]: remove onMouseEnter and onMouseLeave prop and use dispatch events instead

* [@svelteui/core]: simplify prop approach in Button

* [@svelteui/core]: format code - yarn format result

* [@svelteui/core]: revert yarn format

* [@svelteui/core]: remove BrowserRender, ServerRender and Fragment component (#167)

* [core]: normalize scripts with : and udpdate readmes (#169)

* [core]: sorted package jsons

* [core]: updated docs and core dev scripts

* [@svelteui/core]: Export all components prop types (#173)

* [@svelteui/core]: export all component types instead of the whole styles

* [core]: yarn lock

* [core]: linting + format all package.json

* [@svelteui/core]: fix select autocomplete logic that showed previous option on reload (#177)

* [@svelteui/core]: fix Tabs bug where events inside tab content were not propagated due to node handling (#180)

* [@svelteui/prism]: fix indentation problem on the first line (#181)

* [@svelteui/prism]: fix indentation problem on the first line

* [core]: remove package.json from prettier

* [docs]: fix docs dev command, add docs node_modules to clean:all command and update tsconfig of core

* [@svelteui/demos]: remove unecessary code from demos code examples (#182)

* [@svelteui/core]: updated tsconfig

* [@svelteuidev/core] Menu custom control (#184)

* [@svelteui/core]: support for custom control in Menu

* [@svelteui/core]: expose menu functions for opening/closing/toggling the menu state outside the component

* [@svelteui/demos]: demo for Menu custom control

* [docs]: add custom menu control examples to docs

* [docs]: add missing period

* [core]: remove flacky test

* [@svelteui/core]: add role and aria info to custom menu control

* [@svelteui/core]: added menu story

* [core]: syncpack was failing script

* [docs]: added modal clarification and removed banner

* [core]: changed publish scripts due to unknown npm bug

Co-authored-by: BeeMargarida <[email protected]>
  • Loading branch information
Brisklemonade and BeeMargarida authored Aug 16, 2022
1 parent 170a145 commit a2604d9
Show file tree
Hide file tree
Showing 19 changed files with 882 additions and 684 deletions.
23 changes: 18 additions & 5 deletions apps/docs/src/pages/core/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ The right section of `Menu.Item` can be customized with the slot `rightSection`.

<Demo demo={MenuDemos.disabled} />

<!-- ## Custom control
## Custom control

To be implemented
It is possible to configure the control component by using the `control` slot.

## Custom control with component
To be implemented -->
<Demo demo={MenuDemos.control} />

## Change menu position

Expand Down Expand Up @@ -129,6 +127,21 @@ You can change styles of any element in the button component with the `override`

<Demo demo={MenuDemos.styles} />

## Control menu state externally

It is possible to control the state of the menu outside the component.

```svelte
<script>
let element;
</script>
<Button on:click={() => element.toggle()}>Click to toggle the menu</Button>
<Menu bind:element>
...
</Menu>
```

## Accessibility and usability

To make Menu more accessible for users with screen readers it is require to set the prop `menuButtonLabel`, specially when using a control that does not include text, for example, the default one.
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/pages/core/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ docs: 'core/modal.md'

## Usage

When using the Modal component it's important that you wrap your app in the [SvelteUIProvider](theming/svelteui-provider). If you for some reason don't want to do that, you must change the `target` prop to something else. Such as <code>{"target={'body'}"}</code>.

<Demo demo={ModalDemos.usage} />

## Remove title and close button
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ index: true
</svelte:head>

<Box class="homepage_styles">
<Banner href={changelogLink}>Version {changelog.replace('v','').replaceAll('-','.')} is out now</Banner>
<!-- <Banner href={changelogLink}>Version {changelog.replace('v','').replaceAll('-','.')} is out now</Banner> -->
<div class="container">
<h1 class="title">
Create applications in less time than ever before
Expand Down
151 changes: 76 additions & 75 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,79 @@
{
"name": "svelteui",
"version": "0.7.0",
"private": true,
"description": "SvelteUI Components Monorepo.",
"keywords": [
"Svelte",
"Sveltekit",
"UI",
"Component Library"
],
"repository": {
"type": "git",
"url": "https://github.com/svelteuidev/svelteui"
},
"license": "MIT",
"author": "Kamell Perry",
"type": "module",
"workspaces": [
"apps/*",
"packages/*",
"configuration/*"
],
"scripts": {
"build:docs": "yarn workspace svelteui-docs build",
"bump:major": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts major",
"bump:minor": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts minor",
"bump:next": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts next",
"bump:patch": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts patch",
"clean": "rimraf packages/*/{node_modules,package,.turbo,types} packages/*/.svelte-kit/{generated,runtime,types}",
"clean:all": "rimraf packages/*/{node_modules,.svelte-kit,package,.turbo,types} apps/docs/node_modules",
"cm": "git add . && ./node_modules/cz-customizable/standalone.js",
"cm:noadd": "./node_modules/cz-customizable/standalone.js",
"coverage": "turbo run coverage --parallel",
"deploy:docs": "yarn build:docs && yarn script:build-docs && yarn workspace svelteui-docs deploy:nobuild",
"dev:core": "yarn workspace @svelteuidev/core dev",
"dev:docs": "yarn workspace svelteui-docs dev",
"format": "turbo run format --parallel",
"generate-types": "turbo run generate-types --parallel --force",
"postinstall": "npx patch-package",
"lint": "turbo run lint --parallel",
"package": "yarn clean && turbo run package --parallel",
"pre-commit": "lint-staged",
"prepare": "husky install",
"prepare:release": "yarn clean && yarn prepush:repo && yarn script:pre-release && yarn package && yarn generate-types",
"prepush:repo": "yarn sort && yarn format && yarn lint",
"pub": "turbo run pub --parallel",
"release": "yarn pub && sh scripts/git/discard.sh",
"script:build-docs": "deno run -A --unstable ./scripts/docs/build.ts",
"script:pre-release": "deno run --unstable --allow-read --allow-write ./scripts/pre-release.ts",
"sort": "npx sort-package-json && turbo run sort && syncpack set-semver-ranges",
"sync:repo": "sh scripts/git/sync-branches.sh",
"test": "turbo run test --parallel",
"watch": "turbo run watch --parallel"
},
"lint-staged": {
"*.--parallel": "prettier --write"
},
"devDependencies": {
"name": "svelteui",
"version": "0.7.0",
"private": true,
"description": "SvelteUI Components Monorepo.",
"keywords": [
"Svelte",
"Sveltekit",
"UI",
"Component Library"
],
"repository": {
"type": "git",
"url": "https://github.com/svelteuidev/svelteui"
},
"license": "MIT",
"author": "Kamell Perry",
"type": "module",
"workspaces": [
"apps/*",
"packages/*",
"configuration/*"
],
"scripts": {
"build:docs": "yarn workspace svelteui-docs build",
"bump:major": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts major",
"bump:minor": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts minor",
"bump:next": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts next",
"bump:patch": "deno run --unstable --allow-read --allow-write ./scripts/bump.ts patch",
"clean": "rimraf packages/*/{node_modules,package,.turbo,types} packages/*/.svelte-kit/{generated,runtime,types}",
"clean:all": "rimraf packages/*/{node_modules,.svelte-kit,package,.turbo,types} apps/docs/node_modules",
"cm": "git add . && ./node_modules/cz-customizable/standalone.js",
"cm:noadd": "./node_modules/cz-customizable/standalone.js",
"coverage": "turbo run coverage --parallel",
"deploy:docs": "yarn build:docs && yarn script:build-docs && yarn workspace svelteui-docs deploy:nobuild",
"dev:core": "yarn workspace @svelteuidev/core dev",
"dev:docs": "yarn workspace svelteui-docs dev",
"format": "turbo run format --parallel",
"generate-types": "turbo run generate-types --parallel --force",
"postinstall": "npx patch-package",
"lint": "turbo run lint --parallel",
"package": "yarn clean && turbo run package --parallel",
"pre-commit": "lint-staged",
"prepare": "husky install",
"prepare:release": "yarn clean && yarn prepush:repo && yarn script:pre-release && yarn package && yarn generate-types",
"prepush:repo": "yarn sort && yarn format && yarn lint",
"pub": "turbo run pub --parallel",
"release": "yarn pub && sh scripts/git/discard.sh",
"script:build-docs": "deno run -A --unstable ./scripts/docs/build.ts",
"script:pre-release": "deno run --unstable --allow-read --allow-write ./scripts/pre-release.ts",
"sort": "npx sort-package-json && turbo run sort && syncpack set-semver-ranges",
"sync:repo": "sh scripts/git/sync-branches.sh",
"test": "turbo run test --parallel",
"watch": "turbo run watch --parallel"
},
"lint-staged": {
"*.--parallel": "prettier --write"
},
"dependencies": {
"concurrently": "7.3.0"
},
"devDependencies": {
"@rollup/plugin-replace": "4.0.0",
"c8": "7.11.0",
"cz-customizable": "6.3.0",
"husky": "7.0.4",
"lint-staged": "12.4.0",
"micromatch": "4.0.4",
"patch-package": "6.4.7",
"prettier": "2.4.1",
"prettier-plugin-svelte": "2.4.0",
"radix-icons-svelte": "1.2.1",
"rimraf": "3.0.2",
"turbo": "latest",
"vitest": "0.9.3",
"vitest-svelte-kit": "0.0.6"
},
"dependencies": {
"concurrently": "^7.3.0"
}
"c8": "7.11.0",
"cz-customizable": "6.3.0",
"husky": "7.0.4",
"lint-staged": "12.4.0",
"micromatch": "4.0.4",
"patch-package": "6.4.7",
"prettier": "2.4.1",
"prettier-plugin-svelte": "2.4.0",
"radix-icons-svelte": "1.2.1",
"rimraf": "3.0.2",
"syncpack": "8.2.4",
"turbo": "latest",
"vitest": "0.9.3",
"vitest-svelte-kit": "0.0.6"
}
}
172 changes: 86 additions & 86 deletions packages/svelteui-composables/package.json
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
{
"name": "@svelteuidev/composables",
"version": "0.7.0",
"description": "Svelte actions and utilities library",
"keywords": [
"svelte",
"sveltekit",
"svelteui",
"library",
"frontend",
"svelte-actions",
"svelte-utilities",
"svelte-composables",
"actions",
"state",
"dom"
],
"homepage": "https://svelteui.org",
"repository": {
"type": "git",
"url": "https://github.com/svelteuidev/svelteui",
"directory": "packages/svelteui-actions"
},
"license": "MIT",
"author": "Kamell Perry <[email protected]>",
"sideEffects": false,
"type": "module",
"module": "./package/index.js",
"types": "types/index.d.ts",
"files": [
"index.js",
"actions/**/*.{js,svelte}",
"shared/**/*.{js,svelte}",
"utilities/**/*.{js,svelte}",
"types/**/*.d.ts"
],
"scripts": {
"build": "vite build",
"build-storybook": "build-storybook",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"coverage": "vitest run --coverage",
"dev": "vite dev",
"format": "prettier --write --plugin-search-dir=. .",
"generate-types": "deno run --unstable --allow-read --allow-write ../../scripts/generate-types.ts",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"package": "svelte-kit package",
"prepare": "svelte-kit sync",
"preview": "vite preview",
"pub": "npm publish package/",
"pub:test": "npm publish package/",
"sort": "npx sort-package-json",
"storybook": "start-storybook -p 6006",
"test": "vitest --run",
"test:watch": "vitest",
"update:lockfile": "yarn",
"watch": "svelte-kit package -w"
},
"devDependencies": {
"@babel/core": "7.18.6",
"@storybook/addon-actions": "6.5.9",
"@storybook/addon-essentials": "6.5.9",
"@storybook/addon-interactions": "6.5.9",
"@storybook/addon-links": "6.5.9",
"@storybook/addon-svelte-csf": "2.0.5",
"@storybook/builder-vite": "0.1.39",
"@storybook/svelte": "6.5.9",
"@storybook/testing-library": "0.0.13",
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"babel-loader": "8.2.5",
"eslint": "8.16.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-storybook": "0.6.1",
"eslint-plugin-svelte3": "4.0.0",
"prettier": "2.6.2",
"prettier-plugin-svelte": "2.7.0",
"svelte": "3.49.0",
"svelte-check": "2.7.1",
"svelte-loader": "3.1.3",
"svelte-preprocess": "4.10.6",
"tslib": "2.3.1",
"typescript": "4.7.4",
"vite": "3.0.0"
}
"name": "@svelteuidev/composables",
"version": "0.7.0",
"description": "Svelte actions and utilities library",
"keywords": [
"svelte",
"sveltekit",
"svelteui",
"library",
"frontend",
"svelte-actions",
"svelte-utilities",
"svelte-composables",
"actions",
"state",
"dom"
],
"homepage": "https://svelteui.org",
"repository": {
"type": "git",
"url": "https://github.com/svelteuidev/svelteui",
"directory": "packages/svelteui-actions"
},
"license": "MIT",
"author": "Kamell Perry <[email protected]>",
"sideEffects": false,
"type": "module",
"module": "./package/index.js",
"types": "types/index.d.ts",
"files": [
"index.js",
"actions/**/*.{js,svelte}",
"shared/**/*.{js,svelte}",
"utilities/**/*.{js,svelte}",
"types/**/*.d.ts"
],
"scripts": {
"build": "vite build",
"build-storybook": "build-storybook",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"coverage": "vitest run --coverage",
"dev": "vite dev",
"format": "prettier --write --plugin-search-dir=. .",
"generate-types": "deno run --unstable --allow-read --allow-write ../../scripts/generate-types.ts",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"package": "svelte-kit package",
"prepare": "svelte-kit sync",
"preview": "vite preview",
"pub": "cd package && npm publish",
"pub:test": "npm publish package/",
"sort": "npx sort-package-json",
"storybook": "start-storybook -p 6006",
"test": "vitest --run",
"test:watch": "vitest",
"update:lockfile": "yarn",
"watch": "svelte-kit package -w"
},
"devDependencies": {
"@babel/core": "7.18.6",
"@storybook/addon-actions": "6.5.9",
"@storybook/addon-essentials": "6.5.9",
"@storybook/addon-interactions": "6.5.9",
"@storybook/addon-links": "6.5.9",
"@storybook/addon-svelte-csf": "2.0.5",
"@storybook/builder-vite": "0.1.39",
"@storybook/svelte": "6.5.9",
"@storybook/testing-library": "0.0.13",
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"babel-loader": "8.2.5",
"eslint": "8.16.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-storybook": "0.6.1",
"eslint-plugin-svelte3": "4.0.0",
"prettier": "2.6.2",
"prettier-plugin-svelte": "2.7.0",
"svelte": "3.49.0",
"svelte-check": "2.7.1",
"svelte-loader": "3.1.3",
"svelte-preprocess": "4.10.6",
"tslib": "2.3.1",
"typescript": "4.7.4",
"vite": "3.0.0"
}
}
1 change: 0 additions & 1 deletion packages/svelteui-composables/src/test/shared/is.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ describe('is', () => {

describe('now', () => {
test('returns the current timestamp', () => {
expect(now()).eq(Date.now());
expect(now()).toBeTypeOf(typeof 1);
});
});
Expand Down
Loading

0 comments on commit a2604d9

Please sign in to comment.