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

Release v10.7.0 #243

Merged
merged 26 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8ac3b5a
security(dependencies): add deepfactor and move svelte, sass and mate…
hobbitronics Nov 1, 2023
b57038d
move more to dependencies and remove unused deps
hobbitronics Nov 1, 2023
12ab248
move @storybook/svelte to dependencies
hobbitronics Nov 1, 2023
9bd23b0
Revert "move @storybook/svelte to dependencies"
hobbitronics Nov 1, 2023
a8c2dbd
move storybook and sass back to devDependencies
hobbitronics Nov 1, 2023
f9e1984
remove ,
hobbitronics Nov 1, 2023
c973f25
fix(dependencies): remove sass from peerDependencies
hobbitronics Nov 1, 2023
73797c8
update readme
hobbitronics Nov 1, 2023
7ad66fc
deepfactor (#237)
hobbitronics Nov 2, 2023
1a09f46
build(deps-dev): bump semver from 5.7.1 to 5.7.2
dependabot[bot] Nov 2, 2023
9978471
Merge branch 'develop' into feature/remove-sass-from-peerDeps
hobbitronics Nov 2, 2023
007dc46
Merge pull request #239 from silinternational/dependabot/npm_and_yarn…
hobbitronics Nov 7, 2023
28534f5
build(deps-dev): bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Nov 7, 2023
4b9d552
Merge branch 'develop' into feature/remove-sass-from-peerDeps
hobbitronics Nov 7, 2023
a0d1df9
Merge pull request #238 from silinternational/feature/remove-sass-fro…
hobbitronics Nov 7, 2023
ba8cfb5
Merge pull request #234 from silinternational/dependabot/npm_and_yarn…
hobbitronics Nov 7, 2023
91bc726
Use `npm audit fix` to fix some vulnerable dependency issues
forevermatt Nov 8, 2023
c7f80d7
Merge pull request #240 from silinternational/feature/fix-some-depend…
forevermatt Nov 14, 2023
4f9e0ea
add(Checkbox): add inputID as prop to Checkbox
hobbitronics Jan 10, 2024
300d10e
replace alert with Snackbar
hobbitronics Jan 10, 2024
0273664
Merge pull request #241 from silinternational/feature/add-inputID
hobbitronics Jan 11, 2024
1cbdaba
feat(StaticChip): add height prop, improve defaults styles, width exp…
hobbitronics Oct 19, 2023
1b30767
set margin and border radius in chip
hobbitronics Jan 18, 2024
3762cdf
Merge pull request #242 from silinternational/feature/improve-StaticChip
hobbitronics Jan 18, 2024
cfb0ac4
fix typo
hobbitronics Jan 23, 2024
6afb72e
alphabetize
hobbitronics Jan 23, 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
16 changes: 16 additions & 0 deletions .github/workflows/deepfactor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: deepfactor-scan
on:
push:
branches: [ main, develop, feature/deepfactor ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: public.ecr.aws/deepfactor/df/runtime:3.3.3-2346
env:
DF_RUN_TOKEN: ${{ secrets.DF_RUN_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Scan with Deepfactor
run: dfctl scan -s fs -a ${{ github.event.repository.name }} -c ${{ github.event.repository.name }} -V ${{ github.ref_name }} .
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 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). Paste in `npm i -D [email protected] material-components-web@14.0.0` and hit enter (versions will vary if you use an older release of this repo). You should already have svelte@3 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 `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@3 installed if you are using this library.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is material-components-web@14 really a command?

Copy link
Contributor Author

@hobbitronics hobbitronics Jan 23, 2024

Choose a reason for hiding this comment

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

Just a typo, thanks


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
18 changes: 12 additions & 6 deletions components/custom/StaticChip/StaticChip.svelte
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
<script>
/** @type {string} the background color of the chip */
export let bgColor = '#e5e5e5'
/** @type {string} sets the height of the component not including margin*/
export let height = '36px'
</script>

<style>
.chip {
background-color: var(--theme-color);
height: 36px;
height: var(--theme-height);
display: inline-flex;
margin: 0 2rem 1rem 0;
border-radius: 16px;
}

.chip-content {
display: flex;
padding-left: 12px;
padding-right: 12px;
vertical-align: middle;
align-items: center;
font-size: 14px;
}
</style>

<div
class="mdc-typography chip black flex justify-center align-items-center mb-1 mr-2 fs-14 br-16px {$$props.class || ''}"
style="--theme-color: {bgColor}"
>
<div class="chip-content flex align-items-center">
<div class="mdc-typography chip {$$props.class || ''}" style="--theme-color: {bgColor}; --theme-height: {height}">
<div class="chip-content">
<slot />
</div>
</div>
4 changes: 2 additions & 2 deletions components/mdc/Checkbox/Checkbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export let checked = false
export let disabled = false
/** @type {boolean} if the label should be uppercase or not */
export let uppercase = false
/** @type {string} random id prefixed with checkbox- for the input id*/
export let inputID = generateRandomID('checkbox-')

let checkboxElement = {}
let formFieldElement = {}
let checkbox

const inputID = generateRandomID('checkbox-')

$: if (checkbox) checkbox.checked = checked

onMount(() => {
Expand Down
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ declare module '@silintl/ui-components' {
disabled?: boolean
uppercase?: boolean
class?: string
inputID?: string
}
export class Checkbox extends SvelteComponentTyped<CheckboxProps> {}

Expand Down Expand Up @@ -375,6 +376,7 @@ declare module '@silintl/ui-components' {

interface StaticChipProps {
bgColor?: string
height?: string
class?: string
}
export class StaticChip extends SvelteComponentTyped<StaticChipProps> {}
Expand Down
Loading
Loading