@skeletonlabs/skeleton-common 1.0.0-next.3 → 1.0.0-next.4
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/classes/switch.d.ts +10 -0
- package/dist/classes/switch.js +11 -0
- package/dist/classes/toast.d.ts +12 -0
- package/dist/classes/toast.js +13 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/classes/switch.ts
|
|
2
|
+
const classesSwitch = {
|
|
3
|
+
"root": "skb:cursor-pointer skb:data-disabled:cursor-not-allowed skb:data-disabled:opacity-50 skb:flex skb:gap-2",
|
|
4
|
+
"control": "skb:block skb:preset-filled-surface-200-800 skb:h-6 skb:w-10 skb:p-0.5 skb:rounded-full skb:flex skb:justify-start skb:data-[state=checked]:preset-filled-primary-500 skb:data-focus:ring-2 skb:data-focus:ring-surface-950-50",
|
|
5
|
+
"thumb": "skb:rounded-full skb:block skb:preset-filled-surface-50-950 skb:h-full skb:aspect-square skb:transition-transform skb:grid skb:place-items-center skb:data-[state=checked]:bg-surface-950-50 skb:data-[state=checked]:translate-x-4 skb:rtl:data-[state=checked]:-translate-x-4",
|
|
6
|
+
"label": "",
|
|
7
|
+
"hiddenInput": ""
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { classesSwitch };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/classes/toast.ts
|
|
2
|
+
const classesToast = {
|
|
3
|
+
"root": "skb:card skb:p-3 skb:w-full skb:md:w-md skb:ring skb:flex skb:items-center skb:gap-2 skb:data-[type=info]:preset-filled-surface-50-950 skb:data-[type=info]:ring-surface-200-800 skb:data-[type=success]:preset-filled-success-500 skb:data-[type=warning]:preset-filled-warning-500 skb:data-[type=error]:preset-filled-error-500",
|
|
4
|
+
"group": "",
|
|
5
|
+
"message": "skb:flex-1",
|
|
6
|
+
"title": "skb:font-medium skb:text-sm",
|
|
7
|
+
"description": "skb:text-sm",
|
|
8
|
+
"actionTrigger": "skb:btn skb:preset-filled",
|
|
9
|
+
"closeTrigger": "skb:btn-icon skb:hover:preset-tonal"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { classesToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,7 @@ import { classesAccordion } from "./classes/accordion.js";
|
|
|
3
3
|
import { classesAvatar } from "./classes/avatar.js";
|
|
4
4
|
import { classesProgressLinear } from "./classes/progress-linear.js";
|
|
5
5
|
import { classesRatingGroup } from "./classes/rating-group.js";
|
|
6
|
+
import { classesSwitch } from "./classes/switch.js";
|
|
6
7
|
import { classesTabs } from "./classes/tabs.js";
|
|
7
|
-
|
|
8
|
+
import { classesToast } from "./classes/toast.js";
|
|
9
|
+
export { Theme, classesAccordion, classesAvatar, classesProgressLinear, classesRatingGroup, classesSwitch, classesTabs, classesToast, themes };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,8 @@ import { classesAccordion } from "./classes/accordion.js";
|
|
|
3
3
|
import { classesAvatar } from "./classes/avatar.js";
|
|
4
4
|
import { classesProgressLinear } from "./classes/progress-linear.js";
|
|
5
5
|
import { classesRatingGroup } from "./classes/rating-group.js";
|
|
6
|
+
import { classesSwitch } from "./classes/switch.js";
|
|
6
7
|
import { classesTabs } from "./classes/tabs.js";
|
|
8
|
+
import { classesToast } from "./classes/toast.js";
|
|
7
9
|
|
|
8
|
-
export { classesAccordion, classesAvatar, classesProgressLinear, classesRatingGroup, classesTabs, themes };
|
|
10
|
+
export { classesAccordion, classesAvatar, classesProgressLinear, classesRatingGroup, classesSwitch, classesTabs, classesToast, themes };
|