Skip to content

Commit

Permalink
Merge pull request #259 from silinternational/develop
Browse files Browse the repository at this point in the history
V11.1.1
  • Loading branch information
hobbitronics authored Apr 4, 2024
2 parents fa4d7d7 + 0c2a840 commit ace2be6
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,7 @@ dist

#CSS compiled for Storybook
global.css.map
global.css
global.css

# bun
bun.lockb
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with [semantic-release](https://github.com/semantic-release/semantic-release).

### [11.1.1](https://github.com/silinternational/ui-components/compare/v11.1.0...v11.1.1) (2024-04-04)


### Fixed

* **types:** missing Select.label type ([687a403](https://github.com/silinternational/ui-components/commit/687a403579f35b2592b23519644764995dc3cff5))

## [11.1.0](https://github.com/silinternational/ui-components/compare/v11.0.0...v11.1.0) (2024-03-26)


Expand Down
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
start: install dev

install:
npm install

dev:
npm run dev

build:
npm run build

build-sb:
npm run build:prod

clean:
npm run clean

bun:
bun install
bun run dev

format:
npm run format-all

dry:
npm run dry

test:
npm run test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Reusable Svelte components for some internal applications

## installation

To install to your Svelte project, open your project's root directory in a terminal. Type or paste `npm i -D @silintl/ui-components` and press enter. Sass (depending on your bundler and plugins) and material-components-web are required to develop additional material web components in your app, but it may depend on your version of npm if they are necessary even if you don't (I haven't figured out which versions require them). Enter the commands `npm i -D material-components-web@14` and `npm i -D sass@1` (versions will vary if you use an older release of this library). You should already have svelte@4 installed if you are using this library.
To install to your Svelte project, open your project's root directory in a terminal. Type or paste `npm i -D @silintl/ui-components` and press enter. Sass (depending on your bundler and plugins) and material-components-web are required to develop additional material web components in your app, but it may depend on your version of npm if they are necessary even if you don't (I haven't figured out which versions require them). Enter the commands `npm i -D material-components-web@14` and `npm i -D sass@1` (versions will vary if you use an older release of this library). You should already have Svelte 4 installed if you are using this library. Since Svelte 4 is mostly backwards compatible it is possible to use version 11 of this library in Svelte 3 projects although you should read about the changes [here](https://svelte.dev/docs/v4-migration-guide) to see if any breaking changes will affect it.

If you are using typescript you will need to run `npm i -D tslib` to avoid a material-components-web type error. This will already be installed if you have set up SvelteKit with typescript using `npm create svelte@latest app-name`.

Expand Down
1 change: 1 addition & 0 deletions components/mdc/Select/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { MDCSelect } from '@material/select'
import { generateRandomID } from '../../../random'
import { afterUpdate, createEventDispatcher, onMount } from 'svelte'
/** @type displayed with the mdc-floating-label class */
export let label = 'Select'
/** @type {{id: string, name: string}[]} The options to be displayed in the select list. */
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ declare module '@silintl/ui-components' {
}

interface SelectProps {
label?: string
options?: { name: string; id: string }[]
width?: string
disabled?: boolean
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@silintl/ui-components",
"version": "11.1.0",
"version": "11.1.1",
"description": "Reusable Svelte components for some internal applications",
"main": "index.mjs",
"module": "index.mjs",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"material-components-web": "^14.0.0",
"svelte": "^4.0.0"
"svelte": "^3 || ^4"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
Expand Down

0 comments on commit ace2be6

Please sign in to comment.