Skip to content

Commit

Permalink
Formatting popup (#7363)
Browse files Browse the repository at this point in the history
* new text editor icon

* added tooltip show delay for the button component

* added new formatting popup

* change type

* fix lint errors
  • Loading branch information
PavelLaptev authored Feb 23, 2025
1 parent bc506b4 commit c37f87a
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import FormattingPopup from './FormattingPopup.svelte';
import GiphyPlugin from '../GiphyPlugin.svelte';
import { showError } from '$lib/notifications/toasts';
import { standardConfig } from '$lib/textEditor/config/config';
Expand Down Expand Up @@ -101,6 +102,12 @@
}
</script>

<FormattingPopup
onClick={(option) => {
console.log(option);
}}
/>

<Composer {initialConfig} bind:this={composer}>
<div class="editor-container" bind:this={editorDiv}>
<div class="editor-scroller">
Expand Down
125 changes: 125 additions & 0 deletions apps/desktop/src/components/v3/editor/FormattingPopup.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<script lang="ts">
import Button from '@gitbutler/ui/Button.svelte';
type FormattingOptionType =
| 'bold'
| 'italic'
| 'underline'
| 'strikethrough'
| 'code'
| 'link'
| 'quote'
| 'normal-text'
| 'h1'
| 'h2'
| 'h3'
| 'bullet-list'
| 'number-list'
| 'checkbox-list';
interface Props {
onClick: (action: FormattingOptionType) => void;
}
let { onClick }: Props = $props();
let optionsRefWidth = $state(0);
let isScrollToSecondGroup = $state(false);
</script>

<div class="formatting-popup">
<div class="formatting__options" style:width="{optionsRefWidth}px">
<div class="formatting__options-wrap" class:scrolled={isScrollToSecondGroup}>
<div class="formatting__group" bind:clientWidth={optionsRefWidth}>
<Button kind="solid" size="tag" icon="text-bold" onclick={() => onClick('bold')} />
<Button kind="solid" size="tag" icon="text-italic" onclick={() => onClick('italic')} />
<Button
kind="solid"
size="tag"
icon="text-underline"
onclick={() => onClick('underline')}
/>
<Button
kind="solid"
size="tag"
icon="text-strikethrough"
onclick={() => onClick('strikethrough')}
/>
<Button kind="solid" size="tag" icon="text-code" onclick={() => onClick('code')} />
<Button kind="solid" size="tag" icon="text-quote" onclick={() => onClick('quote')} />
<Button kind="solid" size="tag" icon="text-link" onclick={() => onClick('link')} />
</div>
<div class="formatting__group">
<Button kind="solid" size="tag" icon="text" onclick={() => onClick('normal-text')} />
<Button kind="solid" size="tag" icon="text-h1" onclick={() => onClick('h1')} />
<Button kind="solid" size="tag" icon="text-h2" onclick={() => onClick('h2')} />
<Button kind="solid" size="tag" icon="text-h3" onclick={() => onClick('h3')} />
<Button kind="solid" size="tag" icon="bullet-list" onclick={() => onClick('bullet-list')} />
<Button kind="solid" size="tag" icon="number-list" onclick={() => onClick('number-list')} />
<Button kind="solid" size="tag" icon="checklist" onclick={() => onClick('checkbox-list')} />
</div>
</div>
</div>
<div class="formatting__next">
<Button
kind="solid"
size="tag"
tooltip="More options"
tooltipDelay={1200}
icon={isScrollToSecondGroup ? 'chevron-left' : 'chevron-right'}
onclick={() => {
isScrollToSecondGroup = !isScrollToSecondGroup;
}}
/>
</div>
</div>

<style lang="postcss">
.formatting-popup {
display: flex;
border-radius: var(--radius-ml);
background-color: var(--clr-theme-ntrl-element);
box-shadow: var(--shadow-m);
border: 1px solid var(--clr-border-2);
margin: 10px;
box-shadow: var(--fx-shadow-m);
width: fit-content;
}
.formatting__group,
.formatting__next {
display: flex;
gap: 2px;
padding: 6px;
width: fit-content;
}
.formatting__next {
position: relative;
&:before {
position: absolute;
top: 0;
left: 0;
content: '';
display: block;
width: 1px;
height: 100%;
background-color: var(--clr-border-2);
opacity: 0.3;
}
}
.formatting__options {
position: relative;
overflow: hidden;
flex-wrap: nowrap;
}
.formatting__options-wrap {
display: flex;
transition: transform 0.18s ease;
&.scrolled {
transform: translateX(calc(-100% - 1px));
}
}
</style>
2 changes: 1 addition & 1 deletion packages/ui/src/lib/AsyncButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
tooltip?: string;
tooltipPosition?: TooltipPosition;
tooltipAlign?: TooltipAlign;
helpShowDelay?: number;
tooltipDelay?: number;
testId?: string;
// Snippets
children?: Snippet;
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/src/lib/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
tooltip?: string;
tooltipPosition?: TooltipPosition;
tooltipAlign?: TooltipAlign;
helpShowDelay?: number;
tooltipDelay?: number;
testId?: string;
// Events
onclick?: (e: MouseEvent) => void;
Expand Down Expand Up @@ -76,6 +76,7 @@
tooltip,
tooltipPosition,
tooltipAlign,
tooltipDelay,
onclick,
onmousedown,
oncontextmenu,
Expand All @@ -93,7 +94,7 @@
}
</script>

<Tooltip text={tooltip} align={tooltipAlign} position={tooltipPosition}>
<Tooltip text={tooltip} align={tooltipAlign} position={tooltipPosition} delay={tooltipDelay}>
<button
bind:this={el}
class={[
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/src/lib/data/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"timeline": "M6.25 4V9.75H12V8.25H7.75V4H6.25Z M5 0.25C2.37665 0.25 0.25 2.37665 0.25 5V11C0.25 13.6234 2.37665 15.75 5 15.75H11C13.6234 15.75 15.75 13.6234 15.75 11V5C15.75 2.37665 13.6234 0.25 11 0.25H5ZM1.75 5C1.75 3.20507 3.20507 1.75 5 1.75H11C12.7949 1.75 14.25 3.20507 14.25 5V11C14.25 12.7949 12.7949 14.25 11 14.25H5C3.20507 14.25 1.75 12.7949 1.75 11V5Z",
"camera": "M6.18287 1.25C5.40153 1.25 4.71486 1.76796 4.50021 2.51924L4.0057 4.25H4C2.48122 4.25 1.25 5.48122 1.25 7V11C1.25 12.5188 2.48122 13.75 4 13.75H12C13.5188 13.75 14.75 12.5188 14.75 11L14.75 7C14.75 5.48122 13.5188 4.25 12 4.25H11.9943L11.4998 2.51924C11.2851 1.76796 10.5985 1.25 9.81713 1.25H6.18287ZM5.94249 2.93132C5.97316 2.82399 6.07125 2.75 6.18287 2.75H9.81713C9.92875 2.75 10.0268 2.82399 10.0575 2.93132L10.7074 5.20604L10.8628 5.75H11.4286H12C12.6904 5.75 13.25 6.30964 13.25 7L13.25 11C13.25 11.6904 12.6904 12.25 12 12.25H4C3.30965 12.25 2.75 11.6904 2.75 11L2.75 7C2.75 6.30964 3.30964 5.75 4 5.75H4.57143H5.13715L5.29257 5.20604L5.94249 2.93132ZM8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6Z",
"edit-text": "M9.20755 1.14691L9.73788 1.67724L12.6467 4.58604L13.177 5.11637L12.6467 5.6467L7.21692 11.0765L6.99725 11.2961L6.68659 11.2961H3.77779L3.02779 11.2961L3.02779 10.5461L3.02779 7.63733L3.02779 7.32667L3.24746 7.107L8.67722 1.67724L9.20755 1.14691ZM4.52779 7.94799L8.48789 3.98789L10.336 5.83603L6.37593 9.79614H4.52779L4.52779 7.94799ZM13 13.25L2.99997 13.25V14.75L13 14.75V13.25Z",
"text": "M14 5L2 5V3.5L14 3.5V5ZM14 8.5L2 8.5V7L14 7V8.5ZM2 12H7V10.5H2V12Z",
"edit-small": "M9.66312 3.53033L9.13279 3L8.60246 3.53033L3.21967 8.91312L3 9.13279L3 9.44345L3 12.3271L3 13.0771H3.75L6.63364 13.0771L6.9443 13.0771L7.16397 12.8574L12.5468 7.47463L13.0771 6.9443L12.5468 6.41397L9.66312 3.53033ZM8.47268 5.78143L4.5 9.75411L4.5 11.5771H6.32298L10.2957 7.6044L8.47268 5.78143Z",
"new-commit": "M3.30888 7.25C3.66846 4.98301 5.63185 3.25 8 3.25C10.3682 3.25 12.3315 4.98301 12.6911 7.25H15V8.75H12.6911C12.3315 11.017 10.3682 12.75 8 12.75C5.63185 12.75 3.66846 11.017 3.30888 8.75H1V7.25H3.30888ZM8.75 11V8.75H11V7.25H8.75V5H7.25V7.25H5V8.75H7.25V11H8.75Z",
"amend-commit": "M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z M3.30888 8.75H1V7.25H3.30888C3.66846 4.98301 5.63185 3.25 8 3.25C10.3682 3.25 12.3315 4.98301 12.6911 7.25H15V8.75H12.6911C12.3315 11.017 10.3682 12.75 8 12.75C5.63185 12.75 3.66846 11.017 3.30888 8.75ZM4.75 8C4.75 6.20507 6.20507 4.75 8 4.75C9.79493 4.75 11.25 6.20507 11.25 8C11.25 9.79493 9.79493 11.25 8 11.25C6.20507 11.25 4.75 9.79493 4.75 8Z",
Expand Down Expand Up @@ -122,12 +123,18 @@
"closed-pr-small": "M8.93934 6L7.24244 4.30309L8.3031 3.24243L10 4.93934L11.6969 3.24243L12.7576 4.30309L11.0607 6L12.7576 7.6969L11.6969 8.75756L10 7.06066L8.3031 8.75756L7.24244 7.6969L8.93934 6Z M3.25 4V13H4.75V4H3.25Z M9.25 9V13H10.75V9H9.25Z",
"draft-pr-small": "M7.5 6C7.5 7.38071 6.38071 8.5 5 8.5C3.61929 8.5 2.5 7.38071 2.5 6C2.5 4.61929 3.61929 3.5 5 3.5C6.38071 3.5 7.5 4.61929 7.5 6Z M10.75 6V4H12.25V6H10.75Z M10.75 7.5H12.25V9.5H10.75V7.5Z M10.75 13V11H12.25V13H10.75Z M4.25 9.5V13H5.75V9.5H4.25Z",
"bullet-list": "M3 5C3.55228 5 4 4.55228 4 4C4 3.44772 3.55228 3 3 3C2.44772 3 2 3.44772 2 4C2 4.55228 2.44772 5 3 5Z M14 3.25H6V4.75H14V3.25Z M14 7.25H6V8.75H14V7.25Z M6 11.25H11V12.75H6V11.25Z M3 13C3.55228 13 4 12.5523 4 12C4 11.4477 3.55228 11 3 11C2.44772 11 2 11.4477 2 12C2 12.5523 2.44772 13 3 13Z M4 8C4 8.55228 3.55228 9 3 9C2.44772 9 2 8.55228 2 8C2 7.44772 2.44772 7 3 7C3.55228 7 4 7.44772 4 8Z",
"number-list": "M3.71487 3V6.63636H2.72765V3.90909H2.70634L1.91089 4.38494V3.54688L2.80578 3H3.71487ZM6 3.25H14V4.75H6V3.25ZM6 7.25H14V8.75H6V7.25ZM11 11.25H6V12.75H11V11.25ZM1.64884 12.0398V12.75H4.44004V11.9403H3.01958L3.36049 11.6562C3.63748 11.4254 3.85114 11.2265 4.00147 11.0596C4.1518 10.8927 4.25597 10.7406 4.31397 10.6033C4.37197 10.4648 4.40097 10.3257 4.40097 10.1861C4.40097 9.95997 4.34238 9.76289 4.22519 9.5948C4.10919 9.42671 3.94406 9.2965 3.72981 9.20417C3.51674 9.11066 3.26461 9.0639 2.97342 9.0639C2.69169 9.0639 2.44607 9.11362 2.23656 9.21305C2.02704 9.31248 1.86487 9.45453 1.75005 9.63919C1.63523 9.82385 1.57782 10.044 1.57782 10.2997H2.51532C2.51532 10.1979 2.53426 10.1115 2.57214 10.0405C2.61002 9.96944 2.66328 9.91558 2.73194 9.87889C2.80178 9.84219 2.88227 9.82385 2.97342 9.82385C3.06456 9.82385 3.14505 9.84219 3.21489 9.87889C3.28473 9.9144 3.33918 9.9653 3.37825 10.0316C3.41849 10.0979 3.43862 10.1778 3.43862 10.2713C3.43862 10.3565 3.42086 10.4341 3.38535 10.5039C3.35102 10.5737 3.3013 10.6418 3.2362 10.7081C3.17228 10.7732 3.09534 10.843 3.00538 10.9176L1.64884 12.0398Z",
"checklist": "M2.66668 4.99098L5.49829 2.44253L6.50174 3.55747L3.1684 6.55747L2.66668 7.00902L2.16496 6.55747L0.498291 5.05747L1.50174 3.94253L2.66668 4.99098ZM9.00001 3.25H16V4.75H9.00001V3.25ZM9.00001 7.25H16V8.75H9.00001V7.25ZM14 11.25H9.00001V12.75H14V11.25ZM5.49829 8.44253L2.66668 10.991L1.50174 9.94253L0.498291 11.0575L2.16496 12.5575L2.66668 13.009L3.1684 12.5575L6.50174 9.55747L5.49829 8.44253Z",
"text-bold": "M4 3V13H9.5C11.1569 13 12.5 11.6569 12.5 10C12.5 9.23165 12.2111 8.53076 11.7361 8C12.2111 7.46924 12.5 6.76835 12.5 6C12.5 4.34315 11.1569 3 9.5 3H4ZM6 9V11H9.5C10.0523 11 10.5 10.5523 10.5 10C10.5 9.44772 10.0523 9 9.5 9H6ZM6 7H9.5C10.0523 7 10.5 6.55228 10.5 6C10.5 5.44772 10.0523 5 9.5 5H6V7Z",
"text-strikethrough": "M7.91429 2.75C6.53272 2.75 5.52125 3.23814 4.9226 4.00669C4.34036 4.75418 4.21048 5.69632 4.45766 6.46243C4.55709 6.77063 4.70968 7.03012 4.90047 7.25H3V8.75H8.63015C9.05539 8.88024 9.41441 9.03992 9.68622 9.23358C10.0633 9.50227 10.25 9.81345 10.25 10.25C10.25 10.7389 10.0599 11.0768 9.73873 11.3152C9.39209 11.5724 8.83731 11.75 8.08571 11.75C6.57877 11.75 5.75 10.9412 5.75 10.0893H4.25C4.25 12.1302 6.16408 13.25 8.08571 13.25C9.0484 13.25 9.95076 13.0258 10.6327 12.5197C11.3401 11.9947 11.75 11.2075 11.75 10.25C11.75 9.65734 11.5781 9.15987 11.2958 8.75H13V7.25H8.84327C8.64155 7.19454 8.43887 7.14676 8.23868 7.10505C7.44714 6.94015 6.87733 6.78438 6.4788 6.58623C6.1047 6.40023 5.9536 6.21385 5.8852 6.00185C5.78952 5.7053 5.83107 5.28137 6.10597 4.92845C6.36446 4.5966 6.89585 4.25 7.91429 4.25C8.90163 4.25 9.48007 4.52785 9.80258 4.81959C10.1308 5.11654 10.25 5.47555 10.25 5.75H11.75C11.75 5.06016 11.4577 4.29418 10.8089 3.7072C10.1542 3.11501 9.1898 2.75 7.91429 2.75Z",
"text-italic": "M8.03942 4.75H6V3.25H12V4.75H9.58558L7.96058 11.25H10V12.75H4V11.25H6.41442L8.03942 4.75Z",
"text-quote": "M7 13V7.99998H3.91549L7.11442 3.43008L5.88558 2.56989L2.25 7.76357V13H7Z M8.25 13V7.76357L11.8856 2.56989L13.1144 3.43008L9.91549 7.99998H13V13H8.25Z",
"text-link": "M2.75 8C2.75 6.20507 4.20507 4.75 6 4.75H6.5V3.25H6C3.37665 3.25 1.25 5.37665 1.25 8C1.25 10.6234 3.37665 12.75 6 12.75H6.5V11.25H6C4.20507 11.25 2.75 9.79493 2.75 8Z M9.5 4.75H10C11.7949 4.75 13.25 6.20507 13.25 8C13.25 9.79493 11.7949 11.25 10 11.25H9.5V12.75H10C12.6234 12.75 14.75 10.6234 14.75 8C14.75 5.37665 12.6234 3.25 10 3.25H9.5V4.75Z M5 8.75H11V7.25H5V8.75Z",
"text-code": "M5.61442 3.43008L2.41549 7.99998L5.61442 12.5699L4.38557 13.4301L0.584503 7.99998L4.38557 2.56989L5.61442 3.43008Z M10.3856 3.43008L13.5845 7.99998L10.3856 12.5699L11.6144 13.4301L15.4155 7.99998L11.6144 2.56989L10.3856 3.43008Z M8.24627 13.0746L9.24627 3.07461L7.75372 2.92535L6.75372 12.9254L8.24627 13.0746Z",
"text-underline": "M5.75 7V3H4.25L4.25 7C4.25 9.07107 5.92893 10.75 8 10.75C10.0711 10.75 11.75 9.07107 11.75 7V3H10.25V7C10.25 8.24264 9.24264 9.25 8 9.25C6.75736 9.25 5.75 8.24264 5.75 7ZM12 13.75V12.25L4 12.25V13.75L12 13.75Z",
"text-h1": "M2.75 3L2.75 7.25L7.25 7.25L7.25 3H8.75V8V13L7.25 13V8.75H2.75L2.75 13H1.25L1.25 8L1.25 3H2.75ZM13.4946 7.25H13.1642L12.9411 7.49389L10.4465 10.2221L11.5535 11.2343L13.25 9.37898L13.25 15H14.75L14.75 8V7.25H14H13.4946Z",
"text-h2": "M2.36707 3L2.36707 7.25L6.86707 7.25L6.86707 3H8.36707V8V13L6.86707 13V8.75H2.36707L2.36707 13H0.867065L0.867065 8L0.867065 3H2.36707ZM11.7553 10.5848C11.7553 10.2325 11.7649 9.80921 11.9152 9.47811C11.9824 9.32994 12.0686 9.22383 12.1812 9.15032C12.2932 9.07723 12.4848 9.00143 12.8211 9.00143C13.382 9.00143 13.6693 9.33278 13.7107 9.6749C13.7521 10.0169 13.5677 10.6796 12.4727 11.2539C11.4247 11.8036 10.8087 12.3188 10.4988 12.8913C10.2236 13.3998 10.2428 13.899 10.2525 14.1536L10.2525 14.1537C10.254 14.1921 10.2553 14.225 10.2553 14.2514V15.0014H11.0053H15.3902V13.5014H11.8858C12.0316 13.309 12.3687 13.0022 13.1694 12.5823C14.6165 11.8233 15.34 10.6526 15.1998 9.49464C15.0597 8.33675 14.0759 7.50143 12.8211 7.50143C12.2495 7.50143 11.7601 7.63397 11.3614 7.89421C10.9633 8.15404 10.709 8.50626 10.5493 8.85809C10.2544 9.50781 10.255 10.2278 10.2553 10.5567L10.2553 10.5848L11.7553 10.5848Z",
"text-h3": "M2.57867 3L2.57867 7.25L7.07867 7.25L7.07867 3H8.57867V8V13L7.07867 13V8.75H2.57867L2.57867 13L1.07867 13L1.07867 8L1.07867 3L2.57867 3ZM11.7503 10.0755C11.7503 9.80966 11.8172 9.56659 11.9611 9.39941C12.0857 9.25458 12.3651 9.05318 13.0455 9.05318C13.8476 9.05318 14.0479 9.52209 14.0339 9.74471C14.0229 9.92038 13.8032 10.5302 12.3731 10.5302V12.0302C13.1898 12.0302 13.6811 12.2009 13.9462 12.3771C14.1974 12.5441 14.247 12.7099 14.2499 12.8125C14.2553 13.0097 14.0062 13.5532 13.0454 13.5532C12.2088 13.5532 11.9585 13.3115 11.8794 13.2067C11.7719 13.0643 11.7476 12.8713 11.7502 12.6712L10.2503 12.6513C10.2468 12.9217 10.2588 13.5497 10.6823 14.1106C11.1343 14.7092 11.9097 15.0532 13.0454 15.0532C14.5501 15.0532 15.7858 14.0852 15.7493 12.7708C15.7322 12.1568 15.4192 11.5987 14.8821 11.2019C15.2671 10.8405 15.4973 10.3759 15.531 9.83862C15.6104 8.57276 14.522 7.55318 13.0455 7.55318C12.0449 7.55318 11.3017 7.86584 10.824 8.42113C10.3655 8.95408 10.2503 9.59719 10.2503 10.0755H11.7503Z",
"chain-link": "M4.97479 4.97481C5.99101 3.95859 7.63863 3.95859 8.65485 4.9748L8.95114 5.2711L10.0118 4.21044L9.71551 3.91414C8.1135 2.31214 5.51614 2.31214 3.91413 3.91415C2.31213 5.51615 2.31212 8.11351 3.91413 9.71552L4.21043 10.0118L5.27109 8.95116L4.97479 8.65486C3.95857 7.63864 3.95857 5.99103 4.97479 4.97481ZM10.7289 7.04887L11.0252 7.34517C12.0414 8.36138 12.0414 10.009 11.0252 11.0252C10.009 12.0414 8.36137 12.0414 7.34515 11.0252L7.04885 10.7289L5.98819 11.7896L6.28449 12.0859C7.8865 13.6879 10.4839 13.6879 12.0859 12.0859C13.6879 10.4839 13.6879 7.88651 12.0859 6.28451L11.7896 5.98821L10.7289 7.04887ZM5.69191 6.75257L9.24745 10.3081L10.3081 9.24744L6.75257 5.69191L5.69191 6.75257Z",
"patch": "M8.35355 1.98958L14.0104 7.64644C14.2057 7.8417 14.2057 8.15828 14.0104 8.35354L8.35355 14.0104C8.15829 14.2057 7.84171 14.2057 7.64645 14.0104L1.98959 8.35354C1.79433 8.15828 1.79433 7.8417 1.98959 7.64644L7.64645 1.98958C7.84171 1.79432 8.15829 1.79432 8.35355 1.98958ZM6.58579 0.928923C7.36683 0.147875 8.63317 0.147874 9.41421 0.928923L15.0711 6.58578C15.8521 7.36683 15.8521 8.63316 15.0711 9.4142L9.41421 15.0711C8.63317 15.8521 7.36683 15.8521 6.58579 15.0711L0.928932 9.4142C0.147884 8.63316 0.147884 7.36683 0.928932 6.58578L6.58579 0.928923ZM7.64645 4.81801C7.84171 5.01327 8.15829 5.01327 8.35355 4.81801C8.54882 4.62275 8.54882 4.30617 8.35355 4.1109C8.15829 3.91564 7.84171 3.91564 7.64645 4.1109C7.45118 4.30617 7.45118 4.62275 7.64645 4.81801ZM10.1213 6.58578C9.92606 6.78104 9.60948 6.78104 9.41421 6.58578C9.21895 6.39051 9.21895 6.07393 9.41421 5.87867C9.60948 5.68341 9.92606 5.68341 10.1213 5.87867C10.3166 6.07393 10.3166 6.39052 10.1213 6.58578ZM11.182 8.35354C11.3772 8.54881 11.6938 8.54881 11.8891 8.35354C12.0843 8.15828 12.0843 7.8417 11.8891 7.64644C11.6938 7.45118 11.3772 7.45118 11.182 7.64644C10.9867 7.8417 10.9867 8.15828 11.182 8.35354ZM6.58579 6.58578C6.39052 6.78104 6.07394 6.78104 5.87868 6.58578C5.68342 6.39052 5.68342 6.07393 5.87868 5.87867C6.07394 5.68341 6.39052 5.68341 6.58579 5.87867C6.78105 6.07393 6.78105 6.39051 6.58579 6.58578ZM7.64645 8.35354C7.84171 8.54881 8.15829 8.54881 8.35355 8.35354C8.54882 8.15828 8.54882 7.8417 8.35355 7.64644C8.15829 7.45118 7.84171 7.45118 7.64645 7.64644C7.45118 7.8417 7.45118 8.15828 7.64645 8.35354ZM10.1213 10.1213C9.92606 10.3166 9.60948 10.3166 9.41421 10.1213C9.21895 9.92605 9.21895 9.60947 9.41421 9.4142C9.60948 9.21894 9.92606 9.21894 10.1213 9.4142C10.3166 9.60947 10.3166 9.92605 10.1213 10.1213ZM4.11091 8.35354C4.30617 8.54881 4.62276 8.54881 4.81802 8.35354C5.01328 8.15828 5.01328 7.8417 4.81802 7.64644C4.62276 7.45118 4.30617 7.45118 4.11091 7.64644C3.91565 7.8417 3.91565 8.15828 4.11091 8.35354ZM6.58579 10.1213C6.39052 10.3166 6.07394 10.3166 5.87868 10.1213C5.68342 9.92605 5.68342 9.60947 5.87868 9.4142C6.07394 9.21894 6.39052 9.21894 6.58579 9.4142C6.78105 9.60947 6.78105 9.92605 6.58579 10.1213ZM7.64645 11.8891C7.84171 12.0843 8.15829 12.0843 8.35355 11.8891C8.54882 11.6938 8.54882 11.3772 8.35355 11.182C8.15829 10.9867 7.84171 10.9867 7.64645 11.182C7.45118 11.3772 7.45118 11.6938 7.64645 11.8891Z",
"dialog-small": "M3.5 7C3.5 5.89543 4.39543 5 5.5 5H10.5C11.6046 5 12.5 5.89543 12.5 7V7.66667C12.5 8.77124 11.6046 9.66667 10.5 9.66667H6.35712L3.5 12V7Z",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/stories/button/Button.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
style: 'neutral',
kind: 'solid',
solidBackground: false,
helpShowDelay: 1200,
tooltipDelay: 1200,
id: 'button',
tabindex: 0,
type: 'button',
Expand Down

0 comments on commit c37f87a

Please sign in to comment.