tera-system-ui 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/clickOutside.d.ts +6 -0
- package/dist/{components/side-navigation → actions}/clickOutside.js +3 -2
- package/dist/components/button/Button.d.ts +2 -2
- package/dist/components/button/Button.js +5 -5
- package/dist/components/button/Button.svelte +10 -8
- package/dist/components/button/Button.svelte.d.ts +3 -1
- package/dist/components/combobox/Combobox.d.ts +8 -0
- package/dist/components/combobox/Combobox.js +7 -0
- package/dist/components/combobox/Combobox.svelte +8 -0
- package/dist/components/combobox/Combobox.svelte.d.ts +3 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/command/command.d.ts +33 -0
- package/dist/components/command/command.js +512 -0
- package/dist/components/command/command.scss +73 -0
- package/dist/components/command/components/Command.svelte +120 -0
- package/dist/components/command/components/Command.svelte.d.ts +3 -0
- package/dist/components/command/components/CommandEmpty.svelte +30 -0
- package/dist/components/command/components/CommandEmpty.svelte.d.ts +3 -0
- package/dist/components/command/components/CommandGroup.svelte +110 -0
- package/dist/components/command/components/CommandGroup.svelte.d.ts +3 -0
- package/dist/components/command/components/CommandInput.svelte +90 -0
- package/dist/components/command/components/CommandInput.svelte.d.ts +7 -0
- package/dist/components/command/components/CommandItem.svelte +110 -0
- package/dist/components/command/components/CommandItem.svelte.d.ts +3 -0
- package/dist/components/command/components/CommandList.svelte +56 -0
- package/dist/components/command/components/CommandList.svelte.d.ts +5 -0
- package/dist/components/command/components/CommandLoading.svelte +29 -0
- package/dist/components/command/components/CommandLoading.svelte.d.ts +8 -0
- package/dist/components/command/components/CommandSeparator.svelte +21 -0
- package/dist/components/command/components/CommandSeparator.svelte.d.ts +3 -0
- package/dist/components/command/index.d.ts +12 -0
- package/dist/components/command/index.js +19 -0
- package/dist/components/command/types.d.ts +227 -0
- package/dist/components/command/types.js +1 -0
- package/dist/components/dialog/Dialog.svelte +1 -67
- package/dist/components/dialog/Dialog.svelte.d.ts +1 -0
- package/dist/components/dialog/dialog.scss +58 -0
- package/dist/components/icons/IconArrowBigRightFilled.svelte +10 -0
- package/dist/components/icons/IconArrowBigRightFilled.svelte.d.ts +4 -0
- package/dist/components/icons/IconBookmarkPlus.svelte +10 -0
- package/dist/components/icons/IconBookmarkPlus.svelte.d.ts +4 -0
- package/dist/components/icons/IconChevronDown.svelte +10 -0
- package/dist/components/icons/IconChevronDown.svelte.d.ts +4 -0
- package/dist/components/icons/IconCopy.svelte +10 -0
- package/dist/components/icons/IconCopy.svelte.d.ts +4 -0
- package/dist/components/icons/IconCopyCheckFilled.svelte +10 -0
- package/dist/components/icons/IconCopyCheckFilled.svelte.d.ts +4 -0
- package/dist/components/icons/IconLoader2.svelte +10 -0
- package/dist/components/icons/IconLoader2.svelte.d.ts +4 -0
- package/dist/components/icons/IconPointFilled.svelte +10 -0
- package/dist/components/icons/IconPointFilled.svelte.d.ts +4 -0
- package/dist/components/icons/IconSearch.svelte +10 -0
- package/dist/components/icons/IconSearch.svelte.d.ts +4 -0
- package/dist/components/icons/IconSwitchHorizontal.svelte +10 -0
- package/dist/components/icons/IconSwitchHorizontal.svelte.d.ts +4 -0
- package/dist/components/icons/IconSwitchVertical.svelte +10 -0
- package/dist/components/icons/IconSwitchVertical.svelte.d.ts +4 -0
- package/dist/components/icons/index.d.ts +17 -0
- package/dist/components/icons/index.js +17 -0
- package/dist/components/input/Input.d.ts +116 -0
- package/dist/components/input/Input.js +36 -0
- package/dist/components/input/Input.svelte +19 -8
- package/dist/components/input/Input.svelte.d.ts +2 -22
- package/dist/components/language-picker-button/LanguagePickerButton.svelte +13 -10
- package/dist/components/language-picker-button/LanguagePickerButton.svelte.d.ts +0 -2
- package/dist/components/popover/Popover.d.ts +14 -0
- package/dist/components/popover/Popover.js +8 -0
- package/dist/components/popover/Popover.svelte +129 -0
- package/dist/components/popover/Popover.svelte.d.ts +3 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/side-navigation/SideNavigation.js +0 -1
- package/dist/components/side-navigation/SideNavigation.svelte +40 -20
- package/dist/components/tera-ui-context/TeraUiContext.d.ts +11 -0
- package/dist/components/tera-ui-context/TeraUiContext.js +1 -0
- package/dist/components/tera-ui-context/TeraUiContext.svelte +21 -0
- package/dist/components/tera-ui-context/TeraUiContext.svelte.d.ts +3 -0
- package/dist/components/tera-ui-context/global-context.d.ts +3 -0
- package/dist/components/tera-ui-context/global-context.js +15 -0
- package/dist/components/tera-ui-context/index.d.ts +1 -0
- package/dist/components/tera-ui-context/index.js +1 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.js +1 -0
- package/dist/i18n/language.d.ts +2 -0
- package/dist/i18n/language.js +10 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +4 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.js +13 -2
- package/dist/internal/command-score.d.ts +1 -0
- package/dist/internal/command-score.js +119 -0
- package/dist/internal/helpers/callbacks.d.ts +12 -0
- package/dist/internal/helpers/callbacks.js +15 -0
- package/dist/internal/helpers/event.d.ts +14 -0
- package/dist/internal/helpers/event.js +17 -0
- package/dist/internal/helpers/id.d.ts +1 -0
- package/dist/internal/helpers/id.js +4 -0
- package/dist/internal/helpers/index.d.ts +8 -0
- package/dist/internal/helpers/index.js +8 -0
- package/dist/internal/helpers/is.d.ts +4 -0
- package/dist/internal/helpers/is.js +10 -0
- package/dist/internal/helpers/kbd.d.ts +35 -0
- package/dist/internal/helpers/kbd.js +35 -0
- package/dist/internal/helpers/object.d.ts +2 -0
- package/dist/internal/helpers/object.js +19 -0
- package/dist/internal/helpers/sleep.d.ts +1 -0
- package/dist/internal/helpers/sleep.js +3 -0
- package/dist/internal/helpers/store.d.ts +29 -0
- package/dist/internal/helpers/store.js +80 -0
- package/dist/internal/helpers/style.d.ts +12 -0
- package/dist/internal/helpers/style.js +18 -0
- package/dist/internal/index.d.ts +3 -0
- package/dist/internal/index.js +3 -0
- package/dist/internal/types.d.ts +18 -0
- package/dist/internal/types.js +1 -0
- package/dist/themes/scrollbar.scss +37 -0
- package/dist/themes/tera-ui-base.css +25 -0
- package/package.json +38 -18
- package/scripts/generate-ts-index.js +137 -0
- package/dist/components/input/input.d.ts +0 -49
- package/dist/components/input/input.js +0 -14
- package/dist/components/side-navigation/clickOutside.d.ts +0 -4
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import type { Expand, HTMLDivAttributes } from '../../internal/index.js';
|
|
2
|
+
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
+
import type { Writable } from 'svelte/store';
|
|
4
|
+
import type { Snippet } from "svelte";
|
|
5
|
+
export type LoadingProps = {
|
|
6
|
+
/** Estimated loading progress */
|
|
7
|
+
progress?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to delegate rendering to a custom element.
|
|
10
|
+
*
|
|
11
|
+
* The contents within the `Loading` component should be marked
|
|
12
|
+
* as `aria-hidden` to prevent screen readers from reading the
|
|
13
|
+
* contents while loading.
|
|
14
|
+
*/
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
} & HTMLDivAttributes;
|
|
17
|
+
export type EmptyProps = {
|
|
18
|
+
/**
|
|
19
|
+
* Whether to delegate rendering to a custom element.
|
|
20
|
+
*
|
|
21
|
+
* Only receives `attrs`, no `action`.
|
|
22
|
+
*/
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
} & HTMLDivAttributes;
|
|
25
|
+
export type SeparatorProps = {
|
|
26
|
+
/**
|
|
27
|
+
* Whether this separator is always rendered, regardless
|
|
28
|
+
* of the filter.
|
|
29
|
+
*/
|
|
30
|
+
alwaysRender?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to delegate rendering to a custom element.
|
|
33
|
+
*/
|
|
34
|
+
asChild?: boolean;
|
|
35
|
+
} & HTMLDivAttributes;
|
|
36
|
+
type BaseCommandProps = {
|
|
37
|
+
/**
|
|
38
|
+
* Controlled state store for the command menu.
|
|
39
|
+
* Initialize state using the `createState` function.
|
|
40
|
+
*/
|
|
41
|
+
state?: Writable<State>;
|
|
42
|
+
/**
|
|
43
|
+
* An accessible label for the command menu.
|
|
44
|
+
* Not visible & only used for screen readers.
|
|
45
|
+
*/
|
|
46
|
+
label?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Optionally set to `false` to turn off the automatic filtering
|
|
49
|
+
* and sorting. If `false`, you must conditionally render valid
|
|
50
|
+
* items yourself.
|
|
51
|
+
*/
|
|
52
|
+
shouldFilter?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* A custom filter function for whether each command item should
|
|
55
|
+
* match the query. It should return a number between `0` and `1`,
|
|
56
|
+
* with `1` being a perfect match, and `0` being no match, resulting
|
|
57
|
+
* in the item being hidden entirely.
|
|
58
|
+
*
|
|
59
|
+
* By default, it will use the `command-score` package to score.
|
|
60
|
+
*/
|
|
61
|
+
filter?: (value: string, search: string) => number;
|
|
62
|
+
/**
|
|
63
|
+
* Optionally provide or bind to the selected command menu item.
|
|
64
|
+
*/
|
|
65
|
+
value?: string;
|
|
66
|
+
/**
|
|
67
|
+
* A function that is called when the selected command menu item
|
|
68
|
+
* changes. It receives the new value as an argument.
|
|
69
|
+
*/
|
|
70
|
+
onValueChange?: (value: string) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Optionally set to `true` to enable looping through the items
|
|
73
|
+
* when the user reaches the end of the list using the keyboard.
|
|
74
|
+
*/
|
|
75
|
+
loop?: boolean;
|
|
76
|
+
childrenWithProps?: Snippet<[any]>;
|
|
77
|
+
};
|
|
78
|
+
export type CommandProps = Expand<BaseCommandProps & {
|
|
79
|
+
/**
|
|
80
|
+
* Optionally provide custom ids for the command menu
|
|
81
|
+
* elements. These ids should be unique and are only
|
|
82
|
+
* necessary in very specific cases. Use with caution.
|
|
83
|
+
*/
|
|
84
|
+
ids?: Partial<CommandIds>;
|
|
85
|
+
}> & HTMLDivAttributes & {
|
|
86
|
+
onKeydown?: (e: KeyboardEvent) => void;
|
|
87
|
+
onRequestCloseCommand?: () => void;
|
|
88
|
+
asChild?: boolean;
|
|
89
|
+
};
|
|
90
|
+
export type ListProps = {
|
|
91
|
+
/**
|
|
92
|
+
* The list element
|
|
93
|
+
*/
|
|
94
|
+
el?: HTMLElement;
|
|
95
|
+
/**
|
|
96
|
+
* Whether to delegate rendering to a custom element.
|
|
97
|
+
*
|
|
98
|
+
* Provides 2 slot props: `container` & `list`.
|
|
99
|
+
* Container only has an `attrs` property, while `list` has
|
|
100
|
+
* `attrs` & `action` to be applied to the respective elements.
|
|
101
|
+
*
|
|
102
|
+
* The `list` wraps the `sizer`, and the `sizer` wraps the `items`, and
|
|
103
|
+
* is responsible for measuring the height of the items and setting the
|
|
104
|
+
* CSS variable to the height of the items.
|
|
105
|
+
*/
|
|
106
|
+
asChild?: boolean;
|
|
107
|
+
} & HTMLDivAttributes;
|
|
108
|
+
export type InputProps = {
|
|
109
|
+
/**
|
|
110
|
+
* The input element
|
|
111
|
+
*/
|
|
112
|
+
el?: HTMLInputElement;
|
|
113
|
+
/**
|
|
114
|
+
* Whether to delegate rendering to a custom element.
|
|
115
|
+
*/
|
|
116
|
+
asChild?: boolean;
|
|
117
|
+
} & HTMLInputAttributes;
|
|
118
|
+
export type GroupProps = {
|
|
119
|
+
/**
|
|
120
|
+
* Optional heading to render for the group
|
|
121
|
+
*/
|
|
122
|
+
heading?: string;
|
|
123
|
+
/**
|
|
124
|
+
* If heading isn't provided, you must provide a unique
|
|
125
|
+
* value for the group.
|
|
126
|
+
*/
|
|
127
|
+
value?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Whether or not this group is always rendered,
|
|
130
|
+
* regardless of filtering.
|
|
131
|
+
*/
|
|
132
|
+
alwaysRender?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Whether to delegate rendering to custom elements.
|
|
135
|
+
*
|
|
136
|
+
* Provides 3 slot props: `container`, `heading`, and `group`.
|
|
137
|
+
* Container has `attrs` & `action`, while `heading` & `group`
|
|
138
|
+
* only have `attrs` to be applied to the respective elements.
|
|
139
|
+
*/
|
|
140
|
+
asChild?: boolean;
|
|
141
|
+
} & HTMLDivAttributes;
|
|
142
|
+
export type ItemProps = {
|
|
143
|
+
/**
|
|
144
|
+
* Whether this item is disabled.
|
|
145
|
+
*/
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* A function called when this item is selected, either
|
|
149
|
+
* via click or keyboard selection.
|
|
150
|
+
*/
|
|
151
|
+
onSelect?: (value: string) => void;
|
|
152
|
+
/**
|
|
153
|
+
* A unique value for this item.
|
|
154
|
+
* If not provided, it will be inferred from the rendered
|
|
155
|
+
* `textContent`. If your `textContent` is dynamic, you must
|
|
156
|
+
* provide a stable unique `value`.
|
|
157
|
+
*/
|
|
158
|
+
value?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Whether or not this item is always rendered,
|
|
161
|
+
* regardless of filtering.
|
|
162
|
+
*/
|
|
163
|
+
alwaysRender?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Whether to delegate rendering to a custom element.
|
|
166
|
+
* Will pass the `attrs` & `action` to be applied to the custom element.
|
|
167
|
+
*/
|
|
168
|
+
asChild?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Optionally override the default `id` generated for this item.
|
|
171
|
+
* NOTE: This must be unique across all items and is only necessary
|
|
172
|
+
* in very specific cases.
|
|
173
|
+
*/
|
|
174
|
+
id?: string;
|
|
175
|
+
childrenWithProps?: Snippet<[{
|
|
176
|
+
action: (node: HTMLElement) => {
|
|
177
|
+
destroy(): void;
|
|
178
|
+
};
|
|
179
|
+
attrs: any;
|
|
180
|
+
}]>;
|
|
181
|
+
} & HTMLDivAttributes;
|
|
182
|
+
export type InputEvents = {
|
|
183
|
+
keydown: KeyboardEvent;
|
|
184
|
+
blur: FocusEvent;
|
|
185
|
+
input: Event;
|
|
186
|
+
focus: FocusEvent;
|
|
187
|
+
change: Event;
|
|
188
|
+
};
|
|
189
|
+
export type CommandOptionStores = {
|
|
190
|
+
[K in keyof Omit<Required<BaseCommandProps>, 'value'>]: Writable<CommandProps[K]>;
|
|
191
|
+
};
|
|
192
|
+
export type State = {
|
|
193
|
+
/** The value of the search query */
|
|
194
|
+
search: string;
|
|
195
|
+
/** The value of the selected command menu item */
|
|
196
|
+
value: string;
|
|
197
|
+
/** The filtered items */
|
|
198
|
+
filtered: {
|
|
199
|
+
/** The count of all visible items. */
|
|
200
|
+
count: number;
|
|
201
|
+
/** Map from visible item id to its search store. */
|
|
202
|
+
items: Map<string, number>;
|
|
203
|
+
/** Set of groups with at least one visible item. */
|
|
204
|
+
groups: Set<string>;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
export type CommandIds = Record<'root' | 'label' | 'input' | 'list', string>;
|
|
208
|
+
export type Context = {
|
|
209
|
+
value: (id: string, value: string) => void;
|
|
210
|
+
item: (id: string, groupId: string | undefined) => () => void;
|
|
211
|
+
group: (id: string) => () => void;
|
|
212
|
+
filter: () => boolean;
|
|
213
|
+
label: string;
|
|
214
|
+
commandEl: Writable<HTMLElement | null>;
|
|
215
|
+
ids: CommandIds;
|
|
216
|
+
updateState: UpdateState;
|
|
217
|
+
};
|
|
218
|
+
type UpdateState = <K extends keyof State>(key: K, value: State[K], preventScroll?: boolean) => void;
|
|
219
|
+
export type ConextStore = Writable<Context>;
|
|
220
|
+
export type StateStore = Writable<State> & {
|
|
221
|
+
updateState: UpdateState;
|
|
222
|
+
};
|
|
223
|
+
export type Group = {
|
|
224
|
+
id: string;
|
|
225
|
+
alwaysRender: boolean;
|
|
226
|
+
};
|
|
227
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import {type DialogProps, styles} from "./Dialog";
|
|
3
3
|
import IconX from "../icons/IconX.svelte";
|
|
4
4
|
import {Button} from "../button";
|
|
5
|
+
import './dialog.scss'
|
|
5
6
|
|
|
6
7
|
let {
|
|
7
8
|
children, open = $bindable(),
|
|
@@ -85,70 +86,3 @@
|
|
|
85
86
|
{/if}
|
|
86
87
|
</div>
|
|
87
88
|
</dialog>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<style>
|
|
91
|
-
.dialog-box {
|
|
92
|
-
max-height: min(calc(100svh - 3rem), 50rem);
|
|
93
|
-
overflow-y: auto;
|
|
94
|
-
overscroll-behavior: contain;
|
|
95
|
-
display: grid;
|
|
96
|
-
grid-template-rows: auto 1fr auto;
|
|
97
|
-
position: relative;
|
|
98
|
-
background-color: hsl(var(--tw---token-color-neutral-token-1));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
dialog, dialog:modal {
|
|
102
|
-
max-width: calc(100vw - 1rem);
|
|
103
|
-
max-height: 100svh;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
dialog {
|
|
107
|
-
--transition-duration: 0.2s;
|
|
108
|
-
|
|
109
|
-
transform: translateY(0px);
|
|
110
|
-
|
|
111
|
-
&, &::backdrop {
|
|
112
|
-
transition: display var(--transition-duration) allow-discrete, overlay var(--transition-duration) allow-discrete, opacity var(--transition-duration), transform var(--transition-duration) allow-discrete;
|
|
113
|
-
opacity: 0;
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&[open] {
|
|
118
|
-
opacity: 1;
|
|
119
|
-
&::backdrop {
|
|
120
|
-
opacity: 1;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&:not([open]) {
|
|
125
|
-
opacity: 0;
|
|
126
|
-
transform: translateY(60px) scale(0.9); /* Reset to initial closed position */
|
|
127
|
-
|
|
128
|
-
&::backdrop {
|
|
129
|
-
opacity: 0; /* Fade-out backdrop */
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@starting-style {
|
|
134
|
-
&[open] {
|
|
135
|
-
transform: translateY(-60px) scale(0.9);
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&[open],
|
|
140
|
-
&[open]::backdrop {
|
|
141
|
-
opacity: 0;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
dialog::backdrop {
|
|
148
|
-
background-color: hsl(var(--tw---token-color-neutral-token-13) / 0.2);
|
|
149
|
-
--tw-backdrop-blur: blur(0.2rem);
|
|
150
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
151
|
-
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
</style>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.dialog-box {
|
|
2
|
+
max-height: min(calc(100svh - 3rem), 50rem);
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
overscroll-behavior: contain;
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-rows: auto 1fr auto;
|
|
7
|
+
@apply bg-neutral-token-1 relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
dialog, dialog:modal {
|
|
11
|
+
max-width: calc(100vw - 1rem);
|
|
12
|
+
max-height: 100svh;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
dialog {
|
|
16
|
+
--transition-duration: 0.2s;
|
|
17
|
+
|
|
18
|
+
transform: translateY(0px);
|
|
19
|
+
|
|
20
|
+
&, &::backdrop {
|
|
21
|
+
transition: display var(--transition-duration) allow-discrete, overlay var(--transition-duration) allow-discrete, opacity var(--transition-duration), transform var(--transition-duration) allow-discrete,;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[open] {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
&::backdrop {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:not([open]) {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
transform: translateY(-40px) scale(1); /* Reset to initial closed position */
|
|
36
|
+
|
|
37
|
+
&::backdrop {
|
|
38
|
+
opacity: 0; /* Fade-out backdrop */
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@starting-style {
|
|
43
|
+
&[open] {
|
|
44
|
+
transform: translateY(-40px) scale(1);
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[open],
|
|
49
|
+
&[open]::backdrop {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
dialog::backdrop {
|
|
57
|
+
@apply backdrop-blur-[0.2rem] bg-neutral-token-13/20;
|
|
58
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {type IconsProps, styles} from "./Icons";
|
|
3
|
+
import {IconArrowBigRightFilled} from "@tabler/icons-svelte";
|
|
4
|
+
|
|
5
|
+
let {children, ...props}: IconsProps = $props();
|
|
6
|
+
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<IconArrowBigRightFilled class={styles({...props})}/>
|
|
10
|
+
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
export { default as IconArrowBigRightFilled } from './IconArrowBigRightFilled.svelte';
|
|
2
|
+
export { default as IconBook } from './IconBook.svelte';
|
|
3
|
+
export { default as IconBookmarkPlus } from './IconBookmarkPlus.svelte';
|
|
4
|
+
export { default as IconCalculator } from './IconCalculator.svelte';
|
|
5
|
+
export { default as IconCheck } from './IconCheck.svelte';
|
|
6
|
+
export { default as IconChevronDown } from './IconChevronDown.svelte';
|
|
7
|
+
export { default as IconCopy } from './IconCopy.svelte';
|
|
8
|
+
export { default as IconCopyCheckFilled } from './IconCopyCheckFilled.svelte';
|
|
1
9
|
export { default as IconHamburger } from './IconHamburger.svelte';
|
|
2
10
|
export { default as IconLanguage } from './IconLanguage.svelte';
|
|
11
|
+
export { default as IconLoader2 } from './IconLoader2.svelte';
|
|
12
|
+
export { default as IconMoon } from './IconMoon.svelte';
|
|
13
|
+
export { default as IconPointFilled } from './IconPointFilled.svelte';
|
|
14
|
+
export { default as IconSearch } from './IconSearch.svelte';
|
|
15
|
+
export { default as IconSun } from './IconSun.svelte';
|
|
16
|
+
export { default as IconSwitchHorizontal } from './IconSwitchHorizontal.svelte';
|
|
17
|
+
export { default as IconSwitchVertical } from './IconSwitchVertical.svelte';
|
|
18
|
+
export { default as IconTransform } from './IconTransform.svelte';
|
|
19
|
+
export { default as IconX } from './IconX.svelte';
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
export { default as IconArrowBigRightFilled } from './IconArrowBigRightFilled.svelte';
|
|
2
|
+
export { default as IconBook } from './IconBook.svelte';
|
|
3
|
+
export { default as IconBookmarkPlus } from './IconBookmarkPlus.svelte';
|
|
4
|
+
export { default as IconCalculator } from './IconCalculator.svelte';
|
|
5
|
+
export { default as IconCheck } from './IconCheck.svelte';
|
|
6
|
+
export { default as IconChevronDown } from './IconChevronDown.svelte';
|
|
7
|
+
export { default as IconCopy } from './IconCopy.svelte';
|
|
8
|
+
export { default as IconCopyCheckFilled } from './IconCopyCheckFilled.svelte';
|
|
1
9
|
export { default as IconHamburger } from './IconHamburger.svelte';
|
|
2
10
|
export { default as IconLanguage } from './IconLanguage.svelte';
|
|
11
|
+
export { default as IconLoader2 } from './IconLoader2.svelte';
|
|
12
|
+
export { default as IconMoon } from './IconMoon.svelte';
|
|
13
|
+
export { default as IconPointFilled } from './IconPointFilled.svelte';
|
|
14
|
+
export { default as IconSearch } from './IconSearch.svelte';
|
|
15
|
+
export { default as IconSun } from './IconSun.svelte';
|
|
16
|
+
export { default as IconSwitchHorizontal } from './IconSwitchHorizontal.svelte';
|
|
17
|
+
export { default as IconSwitchVertical } from './IconSwitchVertical.svelte';
|
|
18
|
+
export { default as IconTransform } from './IconTransform.svelte';
|
|
19
|
+
export { default as IconX } from './IconX.svelte';
|