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

VERSION-1.9.0: chore: released version 1.9.0 #56

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@juspay/svelte-ui-components",
"version": "1.8.0",
"version": "1.9.0",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
Expand Down
4 changes: 1 addition & 3 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ const prePublishCommands = [`git add package.json`, `rm -rf dist`, `npm run buil
const postPublishCommands = [
(otp) => {
return `npm publish --otp ${otp} --access public`;
},
`git push -f`,
`git push --tags`
}
];

for (const command of prePublishCommands) {
Expand Down
33 changes: 16 additions & 17 deletions src/lib/Select/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
const dropDownIcon =
properties.dropDownIcon ?? 'https://sdk.breeze.in/gallery/icons/down-arrow.svg';

let applyButtonProps: ButtonProperties;
$: applyButtonProps = {
let applyButtonProps: ButtonProperties;
$: applyButtonProps = {
text: `Select (${properties.selectedItem.length})`,
enable: properties.selectedItem.length > 0,
showLoader: false,
Expand Down Expand Up @@ -83,7 +83,7 @@
}
} else {
properties.selectedItem = [item];
properties.selectedItemLabel=[item];
properties.selectedItemLabel = [item];
}
if (!properties.selectMultipleItems) {
toggleSelect();
Expand Down Expand Up @@ -122,8 +122,8 @@
!isItemClicked &&
!isApplyButtonClicked &&
!isClearAllButtonClicked &&
!isSelectAllButtonClicked )
{
!isSelectAllButtonClicked
) {
isSelectOpen = false;
}
}
Expand Down Expand Up @@ -191,12 +191,12 @@
class="non-selected-items"
style="--non-selected-display:{isSelectOpen ? 'inline-block' : 'none'};"
>
{#if properties.selectMultipleItems && !properties.showSingleSelectButton}
<div class="multipleSelect-btn">
<Button properties={selectAllButtonProps} on:click={selectAllItems} />
<Button properties={clearAllButtonProps} on:click={clearAllItems} />
</div>
{/if}
{#if properties.selectMultipleItems && !properties.showSingleSelectButton}
<div class="multipleSelect-btn">
<Button properties={selectAllButtonProps} on:click={selectAllItems} />
<Button properties={clearAllButtonProps} on:click={clearAllItems} />
</div>
{/if}
<div class="item-list">
{#each properties.showSelectedItemInDropdown ? properties.allItems : nonSelectedItems as item}
<div
Expand All @@ -213,7 +213,7 @@
{/each}
</div>
{#if $$slots.bottomContent}
<slot name="bottomContent"/>
<slot name="bottomContent" />
{/if}
{#if properties.selectMultipleItems}
<div class="apply-btn-container">
Expand Down Expand Up @@ -270,7 +270,6 @@
border-radius: var(--item-border-radius);
cursor: pointer;
position: relative;

}

.filler {
Expand All @@ -284,9 +283,9 @@

.selected {
display: flex;
align-items: var(--selected-align-items,center);
margin: var(--selected-margin,0px 0px 0px 0px);
justify-content: var(--selected-justify-content,flex-start);
align-items: var(--selected-align-items, center);
margin: var(--selected-margin, 0px 0px 0px 0px);
justify-content: var(--selected-justify-content, flex-start);
background-color: var(--selected-item-background-color, #f9f9f9);
white-space: var(--selected-item-white-space, nowrap);
overflow: var(--selected-item-overflow, hidden);
Expand Down Expand Up @@ -345,7 +344,7 @@
.label-container {
font-weight: var(--label-text-weight, 400);
font-size: var(--label-text-size, 12px);
color: var(--label-text-color, #333);
color: var(--label-text-color, #333);
margin-bottom: var(--label-container-margin-bottom, 4px);
display: var(--label-container-display, inline-block);
}
Expand Down
Loading