@sparklingopinions/sparkling-ui 0.5.0 → 0.6.0
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/README.md +1 -1
- package/dist/aliases.d.ts +176 -26
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/Avatar.vue.d.ts +3 -2
- package/dist/components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +20 -14
- package/dist/components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +1 -1
- package/dist/components/Button/Button.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/Button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +7 -0
- package/dist/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +44 -0
- package/dist/components/ContextMenu/ContextMenu.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/components/ContextMenu/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/ContextMenu/index.d.ts +2 -0
- package/dist/components/DataList/DataList.js.map +1 -1
- package/dist/components/DataList/DataList.vue.d.ts +8 -0
- package/dist/components/DataList/DataList.vue_vue_type_script_setup_true_lang.js +71 -52
- package/dist/components/DataList/DataList.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/DataList/types.d.ts +5 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +22 -6
- package/dist/components/Dialog/Dialog.vue_vue_type_script_setup_true_lang.js +174 -72
- package/dist/components/Dialog/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Dialog/useSheetDrag.d.ts +16 -0
- package/dist/components/Dialog/useSheetDrag.js +37 -0
- package/dist/components/Dialog/useSheetDrag.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.vue.d.ts +6 -30
- package/dist/components/DropdownMenu/DropdownMenu.vue_vue_type_script_setup_true_lang.js +54 -74
- package/dist/components/DropdownMenu/DropdownMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.vue.d.ts +9 -3
- package/dist/components/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js +35 -7
- package/dist/components/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Filters/FilterMenu.js.map +1 -1
- package/dist/components/Filters/FilterMenu.vue.d.ts +20 -1
- package/dist/components/Filters/FilterMenu.vue_vue_type_script_setup_true_lang.js +78 -56
- package/dist/components/Filters/FilterMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Filters/SortMenu.js.map +1 -1
- package/dist/components/Filters/SortMenu.vue.d.ts +21 -1
- package/dist/components/Filters/SortMenu.vue_vue_type_script_setup_true_lang.js +90 -67
- package/dist/components/Filters/SortMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Filters/index.d.ts +1 -0
- package/dist/components/Filters/trigger.d.ts +17 -0
- package/dist/components/Filters/trigger.js +33 -0
- package/dist/components/Filters/trigger.js.map +1 -0
- package/dist/components/FormField/FormField.js.map +1 -1
- package/dist/components/FormField/FormField.vue.d.ts +10 -0
- package/dist/components/FormField/FormField.vue_vue_type_script_setup_true_lang.js +31 -20
- package/dist/components/FormField/FormField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Icon/iconSet.js +9 -1
- package/dist/components/Icon/iconSet.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +6 -3
- package/dist/components/SegmentedControl/SegmentedControl.vue_vue_type_script_setup_true_lang.js +20 -17
- package/dist/components/SegmentedControl/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +4 -0
- package/dist/components/Table/Table.vue_vue_type_script_setup_true_lang.js +65 -56
- package/dist/components/Table/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +16 -3
- package/dist/components/Tag/Tag.vue_vue_type_script_setup_true_lang.js +42 -19
- package/dist/components/Tag/Tag.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Toast/ToastMessage.js.map +1 -1
- package/dist/components/Toast/ToastMessage.vue.d.ts +13 -1
- package/dist/components/Toast/ToastMessage.vue_vue_type_script_setup_true_lang.js +58 -23
- package/dist/components/Toast/ToastMessage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/Toast/Toaster.js.map +1 -1
- package/dist/components/Toast/Toaster.vue.d.ts +7 -3
- package/dist/components/Toast/Toaster.vue_vue_type_script_setup_true_lang.js +50 -21
- package/dist/components/Toast/Toaster.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/internal/MenuItemContent.js +7 -0
- package/dist/components/internal/MenuItemContent.js.map +1 -0
- package/dist/components/internal/MenuItemContent.vue.d.ts +7 -0
- package/dist/components/internal/MenuItemContent.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/internal/MenuItemContent.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/internal/menu.d.ts +46 -0
- package/dist/components/internal/menu.js +33 -0
- package/dist/components/internal/menu.js.map +1 -0
- package/dist/composables/toast.d.ts +20 -5
- package/dist/composables/toast.js +28 -20
- package/dist/composables/toast.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +34 -33
- package/package.json +1 -1
- package/src/styles/tailwind.css +29 -0
|
@@ -1,32 +1,40 @@
|
|
|
1
1
|
import { shallowReactive as e } from "vue";
|
|
2
2
|
//#region src/composables/toast.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
function t(e) {
|
|
4
|
+
return (e.actions ?? (e.action ? [e.action] : [])).slice(0, 2);
|
|
5
|
+
}
|
|
6
|
+
var n = e([]), r = 0;
|
|
7
|
+
function i(e, i, a = {}) {
|
|
8
|
+
let { action: o, ...s } = a, c = t(a);
|
|
9
|
+
n.push({
|
|
10
|
+
...s,
|
|
11
|
+
life: a.life ?? (c.length ? 6e3 : 3e3),
|
|
12
|
+
actions: c,
|
|
13
|
+
id: r++,
|
|
9
14
|
severity: e,
|
|
10
|
-
summary:
|
|
15
|
+
summary: i,
|
|
11
16
|
open: !0
|
|
12
17
|
});
|
|
13
18
|
}
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
function a(e, t = "close") {
|
|
20
|
+
let r = n.findIndex((t) => t.id === e);
|
|
21
|
+
if (r < 0 || !n[r].open) return;
|
|
22
|
+
let i = n[r];
|
|
23
|
+
n[r] = {
|
|
24
|
+
...i,
|
|
18
25
|
open: !1
|
|
19
|
-
}, setTimeout(() => {
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
}, 500)
|
|
26
|
+
}, i.onDismiss?.(t), setTimeout(() => {
|
|
27
|
+
let t = n.findIndex((t) => t.id === e);
|
|
28
|
+
t >= 0 && n.splice(t, 1);
|
|
29
|
+
}, 500);
|
|
23
30
|
}
|
|
24
|
-
var
|
|
25
|
-
info: (e, t) =>
|
|
26
|
-
success: (e, t) =>
|
|
27
|
-
|
|
31
|
+
var o = {
|
|
32
|
+
info: (e, t) => i("info", e, t),
|
|
33
|
+
success: (e, t) => i("success", e, t),
|
|
34
|
+
warning: (e, t) => i("warning", e, t),
|
|
35
|
+
error: (e, t) => i("error", e, t)
|
|
28
36
|
};
|
|
29
37
|
//#endregion
|
|
30
|
-
export {
|
|
38
|
+
export { a as removeToast, o as toast, t as toastActions, n as toasts };
|
|
31
39
|
|
|
32
40
|
//# sourceMappingURL=toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","names":["toasts","shallowReactive","nextId","add","
|
|
1
|
+
{"version":3,"file":"toast.js","names":["toastActions","options","toasts","shallowReactive","nextId","add","_","rest","actions","removeToast","index","item","id","reason","at","toast","summary"],"sources":["../../src/composables/toast.ts"],"sourcesContent":["import { shallowReactive } from 'vue'\n\nexport type ToastSeverity = 'info' | 'success' | 'warning' | 'error'\n\n/** A button on the toast: pressing it runs `onClick`, then closes the toast. */\nexport interface ToastAction {\n label: string\n onClick: () => void\n}\n\n/** Why a toast left: one of its actions, its close button (or Escape), or its timer running out. */\nexport type ToastDismissReason = 'action' | 'close' | 'timeout'\n\nexport interface ToastOptions {\n /** A second line under the message. */\n detail?: string\n /** How long it stays, in ms; 0 keeps it until closed. 3000 by default, 6000 with an action. */\n life?: number\n closable?: boolean\n action?: ToastAction\n /** One or two; any more are ignored. */\n actions?: ToastAction[]\n onDismiss?: (reason: ToastDismissReason) => void\n}\n\nexport interface ToastItem extends Omit<ToastOptions, 'action'> {\n id: number\n severity: ToastSeverity\n summary: string\n actions: ToastAction[]\n open: boolean\n}\n\n/** A toast's actions, from `action` or `actions`, at most two. */\nexport function toastActions(options: Pick<ToastOptions, 'action' | 'actions'>): ToastAction[] {\n return (options.actions ?? (options.action ? [options.action] : [])).slice(0, 2)\n}\n\n// The messages one <Toaster /> near the app root shows.\nexport const toasts = shallowReactive<ToastItem[]>([])\n\nlet nextId = 0\n\nfunction add(severity: ToastSeverity, summary: string, options: ToastOptions = {}) {\n const { action: _, ...rest } = options\n const actions = toastActions(options)\n toasts.push({\n ...rest,\n life: options.life ?? (actions.length ? 6000 : 3000),\n actions,\n id: nextId++,\n severity,\n summary,\n open: true\n })\n}\n\n/** Closes a toast, then removes it once its closing animation has had time to play. */\nexport function removeToast(id: number, reason: ToastDismissReason = 'close') {\n const index = toasts.findIndex((item) => item.id === id)\n if (index < 0 || !toasts[index]!.open) return\n const item = toasts[index]!\n toasts[index] = { ...item, open: false }\n item.onDismiss?.(reason)\n setTimeout(() => {\n const at = toasts.findIndex((item) => item.id === id)\n if (at >= 0) toasts.splice(at, 1)\n }, 500)\n}\n\n/** Shows a message in the app's <Toaster />: `toast.info('Saved')`. */\nexport const toast = {\n info: (summary: string, options?: ToastOptions) => add('info', summary, options),\n success: (summary: string, options?: ToastOptions) => add('success', summary, options),\n warning: (summary: string, options?: ToastOptions) => add('warning', summary, options),\n error: (summary: string, options?: ToastOptions) => add('error', summary, options)\n}\n"],"mappings":";;AAkCA,SAAgBA,EAAa,GAAkE;CAC7F,QAAQC,EAAQ,YAAYA,EAAQ,SAAS,CAACA,EAAQ,MAAM,IAAI,CAAC,GAAA,CAAI,MAAM,GAAG,CAAC;AACjF;AAGA,IAAaC,IAASC,EAA6B,CAAC,CAAC,GAEjDC,IAAS;AAEb,SAASC,EAAI,GAAyB,GAAiB,IAAwB,CAAC,GAAG;CACjF,IAAM,EAAE,QAAQC,GAAG,GAAGC,MAASN,GACzBO,IAAUR,EAAaC,CAAO;CACpC,EAAO,KAAK;EACV,GAAGM;EACH,MAAMN,EAAQ,SAASO,EAAQ,SAAS,MAAO;EAC/C;EACA,IAAI;EACJ;EACA;EACA,MAAM;CACR,CAAC;AACH;AAGA,SAAgBC,EAAY,GAAY,IAA6B,SAAS;CAC5E,IAAMC,IAAQR,EAAO,WAAW,MAASS,EAAK,OAAOC,CAAE;CACvD,IAAIF,IAAQ,KAAK,CAACR,EAAOQ,EAAM,CAAE,MAAM;CACvC,IAAMC,IAAOT,EAAOQ;CAGpB,AAFA,EAAOA,KAAS;EAAE,GAAGC;EAAM,MAAM;CAAM,GACvCA,EAAK,YAAYE,CAAM,GACvB,iBAAiB;EACf,IAAMC,IAAKZ,EAAO,WAAW,MAASS,EAAK,OAAOC,CAAE;EACpD,AAAIE,KAAM,KAAGZ,EAAO,OAAOY,GAAI,CAAC;CAClC,GAAG,GAAG;AACR;AAGA,IAAaC,IAAQ;CACnB,OAAO,GAAiB,MAA2BV,EAAI,QAAQW,GAASf,CAAO;CAC/E,UAAU,GAAiB,MAA2BI,EAAI,WAAWW,GAASf,CAAO;CACrF,UAAU,GAAiB,MAA2BI,EAAI,WAAWW,GAASf,CAAO;CACrF,QAAQ,GAAiB,MAA2BI,EAAI,SAASW,GAASf,CAAO;AACnF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './components/Board';
|
|
|
7
7
|
export * from './components/Button';
|
|
8
8
|
export * from './components/Calendar';
|
|
9
9
|
export * from './components/Checkbox';
|
|
10
|
+
export * from './components/ContextMenu';
|
|
10
11
|
export * from './components/DataList';
|
|
11
12
|
export * from './components/Dialog';
|
|
12
13
|
export * from './components/DropdownMenu';
|
|
@@ -35,6 +36,6 @@ export * from './components/Tooltip';
|
|
|
35
36
|
export * from './components/TypingIndicator';
|
|
36
37
|
export { hueFor, type Hue } from './utils/hues';
|
|
37
38
|
export { initColorMode, useColorMode, useForceLightMode, type ColorMode } from './composables/useColorMode';
|
|
38
|
-
export { toast, type ToastOptions, type ToastSeverity } from './composables/toast';
|
|
39
|
+
export { toast, type ToastAction, type ToastDismissReason, type ToastOptions, type ToastSeverity } from './composables/toast';
|
|
39
40
|
export { useConfirm, type ConfirmOptions } from './composables/useConfirm';
|
|
40
41
|
export * from './aliases';
|
package/dist/index.js
CHANGED
|
@@ -13,36 +13,37 @@ import f from "./components/Skeleton/Skeleton.js";
|
|
|
13
13
|
import p from "./components/Board/Board.js";
|
|
14
14
|
import m from "./components/Calendar/Calendar.js";
|
|
15
15
|
import h from "./components/Checkbox/Checkbox.js";
|
|
16
|
-
import g from "./components/
|
|
17
|
-
import
|
|
18
|
-
import v from "./components/Dialog/
|
|
19
|
-
import y from "./components/
|
|
20
|
-
import b from "./components/
|
|
21
|
-
import x from "./components/
|
|
22
|
-
import S from "./components/
|
|
23
|
-
import C from "./components/
|
|
24
|
-
import
|
|
25
|
-
import O from "./components/Filters/
|
|
26
|
-
import k from "./components/Filters/
|
|
27
|
-
import A from "./components/Filters/
|
|
28
|
-
import j from "./components/
|
|
29
|
-
import M from "./components/
|
|
30
|
-
import N from "./components/
|
|
31
|
-
import P from "./components/
|
|
32
|
-
import F from "./components/
|
|
33
|
-
import I from "./components/
|
|
34
|
-
import L from "./components/
|
|
35
|
-
import R from "./components/
|
|
36
|
-
import z from "./components/
|
|
37
|
-
import B from "./components/
|
|
38
|
-
import V from "./components/PropertyList/
|
|
39
|
-
import H from "./components/
|
|
40
|
-
import U from "./components/PropertyRow/
|
|
41
|
-
import W from "./components/
|
|
42
|
-
import G from "./components/
|
|
43
|
-
import
|
|
44
|
-
import q from "./
|
|
45
|
-
import J from "./components/
|
|
46
|
-
import
|
|
47
|
-
import {
|
|
48
|
-
|
|
16
|
+
import g from "./components/ContextMenu/ContextMenu.js";
|
|
17
|
+
import _ from "./components/DataList/DataList.js";
|
|
18
|
+
import { saveHint as v } from "./components/Dialog/focus.js";
|
|
19
|
+
import y from "./components/Dialog/Dialog.js";
|
|
20
|
+
import b from "./components/DropdownMenu/DropdownMenu.js";
|
|
21
|
+
import x from "./components/EmptyState/EmptyState.js";
|
|
22
|
+
import S from "./components/ErrorSummary/ErrorSummary.js";
|
|
23
|
+
import C from "./components/Input/Input.js";
|
|
24
|
+
import w from "./components/SegmentedControl/SegmentedControl.js";
|
|
25
|
+
import { datePresets as T, describeFilter as E, filterOperators as D, sortDirections as O } from "./components/Filters/defaults.js";
|
|
26
|
+
import k from "./components/Filters/FilterChip.js";
|
|
27
|
+
import A from "./components/Filters/FilterMenu.js";
|
|
28
|
+
import j from "./components/Filters/SortMenu.js";
|
|
29
|
+
import M from "./components/FormField/FormField.js";
|
|
30
|
+
import N from "./components/ImageUpload/ImageUpload.js";
|
|
31
|
+
import P from "./components/Kbd/Kbd.js";
|
|
32
|
+
import F from "./components/Pagination/Pagination.js";
|
|
33
|
+
import I from "./components/Popover/Popover.js";
|
|
34
|
+
import L from "./components/Spinner/Spinner.js";
|
|
35
|
+
import R from "./components/Tag/Tag.js";
|
|
36
|
+
import z from "./components/Select/Select.js";
|
|
37
|
+
import B from "./components/Textarea/Textarea.js";
|
|
38
|
+
import V from "./components/PropertyList/Editable.js";
|
|
39
|
+
import H from "./components/PropertyList/PropertyList.js";
|
|
40
|
+
import U from "./components/PropertyRow/Collapsible.js";
|
|
41
|
+
import W from "./components/PropertyRow/PropertyRow.js";
|
|
42
|
+
import G from "./components/Radio/Radio.js";
|
|
43
|
+
import K from "./components/Table/Table.js";
|
|
44
|
+
import { toast as q } from "./composables/toast.js";
|
|
45
|
+
import J from "./components/Toast/Toaster.js";
|
|
46
|
+
import Y from "./components/TypingIndicator/TypingIndicator.js";
|
|
47
|
+
import { initColorMode as X, useColorMode as Z, useForceLightMode as Q } from "./composables/useColorMode.js";
|
|
48
|
+
import { Banner as $, BulkActions as ee, CalendarMonth as te, Chip as ne, ConfirmDialog as re, Field as ie, FilterFieldPicker as ae, FormErrors as oe, ImageInput as se, InlineField as ce, InlineForm as le, LedgerMore as ue, LedgerRow as de, List as fe, Modal as pe, OptionsMenu as me, Pill as he, SortControl as ge, TextInput as _e, TypingDots as ve } from "./aliases.js";
|
|
49
|
+
export { a as ActionBar, o as Alert, c as AlertDialog, u as Avatar, d as Badge, $ as Banner, p as Board, ee as BulkActions, e as Button, m as Calendar, te as CalendarMonth, h as Checkbox, ne as Chip, U as Collapsible, re as ConfirmDialog, g as ContextMenu, _ as DataList, y as Dialog, b as DropdownMenu, V as Editable, x as EmptyState, S as ErrorSummary, ie as Field, k as FilterChip, ae as FilterFieldPicker, A as FilterMenu, oe as FormErrors, M as FormField, r as Icon, se as ImageInput, N as ImageUpload, ce as InlineField, le as InlineForm, C as Input, P as Kbd, ue as LedgerMore, de as LedgerRow, fe as List, pe as Modal, me as OptionsMenu, F as Pagination, he as Pill, I as Popover, H as PropertyList, W as PropertyRow, G as Radio, w as SegmentedControl, z as Select, f as Skeleton, ge as SortControl, j as SortMenu, L as Spinner, K as Table, R as Tag, _e as TextInput, B as Textarea, J as Toaster, i as Tooltip, ve as TypingDots, Y as TypingIndicator, T as datePresets, E as describeFilter, D as filterOperators, l as hueFor, t as iconNames, X as initColorMode, v as saveHint, n as setIconResolver, O as sortDirections, q as toast, Z as useColorMode, s as useConfirm, Q as useForceLightMode };
|
package/package.json
CHANGED
package/src/styles/tailwind.css
CHANGED
|
@@ -294,6 +294,10 @@
|
|
|
294
294
|
--sui-button-padding-x: 0.875rem;
|
|
295
295
|
--sui-button-text: 0.875rem;
|
|
296
296
|
--sui-radius-button: 0.5rem;
|
|
297
|
+
/* A bottom sheet's top corners. */
|
|
298
|
+
--sui-radius-sheet: 1.25rem;
|
|
299
|
+
/* Table rows and headers at one height, e.g. 44px; unset (initial), each Table's size decides. */
|
|
300
|
+
--sui-table-row: initial;
|
|
297
301
|
--sui-shadow-raised: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
298
302
|
--sui-focus-width: 2px;
|
|
299
303
|
--sui-focus-offset: 2px;
|
|
@@ -357,10 +361,14 @@
|
|
|
357
361
|
--animate-sui-scrim-out: sui-scrim-out 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
358
362
|
--animate-sui-dialog-in: sui-dialog-in 200ms ease-out;
|
|
359
363
|
--animate-sui-dialog-out: sui-dialog-out 200ms ease-out forwards;
|
|
364
|
+
--animate-sui-sheet-in: sui-sheet-in 300ms cubic-bezier(0.32, 0.72, 0, 1);
|
|
365
|
+
--animate-sui-sheet-out: sui-sheet-out 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
360
366
|
--animate-sui-toast-in: sui-toast-in 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
361
367
|
--animate-sui-toast-out:
|
|
362
368
|
sui-toast-collapse 450ms cubic-bezier(0, 1, 0, 1) forwards,
|
|
363
369
|
sui-toast-fade 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
370
|
+
/* Its duration is the toast's life, set inline. */
|
|
371
|
+
--animate-sui-toast-timer: sui-toast-timer linear forwards;
|
|
364
372
|
|
|
365
373
|
@keyframes sui-spinner-rotate {
|
|
366
374
|
to {
|
|
@@ -430,6 +438,18 @@
|
|
|
430
438
|
}
|
|
431
439
|
}
|
|
432
440
|
|
|
441
|
+
@keyframes sui-sheet-in {
|
|
442
|
+
from {
|
|
443
|
+
transform: translateY(100%);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
@keyframes sui-sheet-out {
|
|
448
|
+
to {
|
|
449
|
+
transform: translateY(100%);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
433
453
|
@keyframes sui-toast-in {
|
|
434
454
|
from {
|
|
435
455
|
opacity: 0;
|
|
@@ -453,6 +473,15 @@
|
|
|
453
473
|
}
|
|
454
474
|
}
|
|
455
475
|
|
|
476
|
+
@keyframes sui-toast-timer {
|
|
477
|
+
from {
|
|
478
|
+
transform: scaleX(1);
|
|
479
|
+
}
|
|
480
|
+
to {
|
|
481
|
+
transform: scaleX(0);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
456
485
|
@keyframes sui-typing {
|
|
457
486
|
0%,
|
|
458
487
|
80%,
|