@skeletonlabs/skeleton 0.80.9 → 0.92.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/components/Accordion/AccordionGroup.svelte +1 -2
- package/components/Accordion/AccordionItem.svelte +6 -3
- package/components/Accordion/AccordionItem.svelte.d.ts +1 -0
- package/components/Alert/Alert.svelte +3 -3
- package/components/AppRail/AppRailTile.svelte +8 -6
- package/components/AppShell/AppShell.svelte +3 -3
- package/components/Breadcrumb/Crumb.svelte +3 -1
- package/components/Breadcrumb/Crumb.svelte.d.ts +5 -0
- package/components/ConicGradient/ConicGradient.svelte +2 -2
- package/components/ConicGradient/ConicGradient.svelte.d.ts +5 -0
- package/{tailwind/colors.d.ts → components/ConicGradient/settings.d.ts} +1 -1
- package/{tailwind/colors.js → components/ConicGradient/settings.js} +1 -1
- package/components/FileButton/FileButton.svelte +2 -2
- package/components/FileButton/FileButton.svelte.d.ts +3 -0
- package/components/FileDropzone/FileDropzone.svelte +5 -4
- package/components/FileDropzone/FileDropzone.svelte.d.ts +4 -0
- package/components/GradientHeading/GradientHeading.svelte +1 -1
- package/components/InputChip/InputChip.svelte +107 -0
- package/components/InputChip/InputChip.svelte.d.ts +29 -0
- package/components/ListBox/ListBoxItem.svelte +6 -5
- package/components/ListBox/ListBoxItem.svelte.d.ts +2 -0
- package/components/Paginator/Paginator.svelte +21 -9
- package/components/Paginator/Paginator.svelte.d.ts +5 -1
- package/components/ProgressBar/ProgressBar.svelte +6 -4
- package/components/ProgressBar/ProgressBar.svelte.d.ts +1 -0
- package/components/ProgressRadial/ProgressRadial.svelte +1 -1
- package/components/Radio/RadioGroup.svelte +2 -2
- package/components/Radio/RadioItem.svelte +3 -1
- package/components/Radio/RadioItem.svelte.d.ts +2 -0
- package/components/RangeSlider/RangeSlider.svelte +1 -1
- package/components/SlideToggle/SlideToggle.svelte +9 -6
- package/components/SlideToggle/SlideToggle.svelte.d.ts +4 -1
- package/components/Stepper/Step.svelte +52 -13
- package/components/Stepper/Step.svelte.d.ts +11 -3
- package/components/Stepper/Stepper.svelte +32 -10
- package/components/Stepper/Stepper.svelte.d.ts +8 -3
- package/components/SvgIcon/SvgIcon.svelte +1 -1
- package/components/SvgIcon/icons.js +2 -148
- package/components/Tab/Tab.svelte +16 -4
- package/components/Tab/Tab.svelte.d.ts +5 -0
- package/components/Table/Table.svelte +3 -3
- package/components/TableOfContents/TableOfContents.svelte +132 -0
- package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +37 -29
- package/styles/all.css +0 -3
- package/styles/core.css +3 -0
- package/styles/elements/alerts.css +43 -0
- package/styles/elements/badges.css +12 -6
- package/styles/elements/breadcrumbs.css +27 -0
- package/styles/elements/buttons.css +34 -10
- package/styles/elements/cards.css +23 -4
- package/styles/elements/chips.css +58 -5
- package/styles/elements/lists.css +1 -1
- package/styles/elements/logo-clouds.css +1 -1
- package/styles/elements/menus.css +1 -1
- package/styles/elements/placeholders.css +1 -1
- package/styles/elements/tables.css +1 -1
- package/styles/elements/tooltips.css +1 -1
- package/styles/elements.css +2 -0
- package/styles/forms.css +59 -41
- package/styles/typography.css +6 -6
- package/tailwind/generated/allComponents.cjs +1 -0
- package/tailwind/generated/allComponents.d.cts +5552 -0
- package/tailwind/settings.cjs +20 -0
- package/tailwind/settings.d.cts +6 -0
- package/tailwind/skeleton.cjs +54 -0
- package/tailwind/skeleton.d.cts +5 -0
- package/tailwind/theme/colors.cjs +18 -0
- package/tailwind/theme/colors.d.cts +2 -0
- package/tailwind/tokens/backgrounds.cjs +40 -0
- package/tailwind/tokens/backgrounds.d.cts +2 -0
- package/tailwind/tokens/border-radius.cjs +21 -0
- package/tailwind/tokens/border-radius.d.cts +33 -0
- package/tailwind/tokens/borders.cjs +20 -0
- package/tailwind/tokens/borders.d.cts +6 -0
- package/tailwind/tokens/fills.cjs +20 -0
- package/tailwind/tokens/fills.d.cts +15 -0
- package/tailwind/tokens/rings.cjs +42 -0
- package/tailwind/tokens/rings.d.cts +17 -0
- package/tailwind/tokens/text.cjs +33 -0
- package/tailwind/tokens/text.d.cts +21 -0
- package/themes/theme-crimson.css +88 -64
- package/themes/theme-gold-nouveau.css +108 -115
- package/themes/theme-hamlindigo.css +97 -74
- package/themes/theme-modern.css +107 -64
- package/themes/theme-rocket.css +96 -63
- package/themes/theme-sahara.css +104 -65
- package/themes/theme-seafoam.css +100 -66
- package/themes/theme-seasonal.css +111 -65
- package/themes/theme-skeleton.css +99 -75
- package/themes/theme-vintage.css +102 -63
- package/utilities/CodeBlock/CodeBlock.svelte +6 -1
- package/utilities/CodeBlock/CodeBlock.svelte.d.ts +2 -0
- package/utilities/DataTable/DataTable.js +3 -1
- package/utilities/Drawer/Drawer.svelte +11 -10
- package/utilities/Drawer/Drawer.svelte.d.ts +1 -2
- package/utilities/Drawer/stores.d.ts +1 -1
- package/utilities/LightSwitch/LightSwitch.svelte +42 -14
- package/utilities/LightSwitch/LightSwitch.svelte.d.ts +5 -0
- package/utilities/LightSwitch/stores.d.ts +2 -3
- package/utilities/LocalStorageStore/LocalStorageStore.d.ts +3 -1
- package/utilities/LocalStorageStore/LocalStorageStore.js +9 -4
- package/utilities/Menu/menu.js +11 -7
- package/utilities/Modal/Modal.svelte +25 -12
- package/utilities/Modal/Modal.svelte.d.ts +2 -0
- package/utilities/Modal/types.d.ts +12 -2
- package/utilities/Toast/Toast.svelte +2 -2
- package/utilities/Toast/stores.js +17 -1
- package/utilities/Toast/types.d.ts +5 -0
- package/styles/tokens/backgrounds.css +0 -239
- package/styles/tokens/border-radius.css +0 -41
- package/styles/tokens/borders.css +0 -185
- package/styles/tokens/fills.css +0 -29
- package/styles/tokens/misc.css +0 -22
- package/styles/tokens/rings.css +0 -185
- package/styles/tokens/text.css +0 -216
- package/styles/tokens.css +0 -11
- package/tailwind/theme.cjs +0 -37
- package/tailwind/theme.d.cts +0 -5
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<script>import { onDestroy, onMount } from 'svelte';
|
|
2
|
+
// Props (settings)
|
|
3
|
+
/** Query selector for the scrollable page element. */
|
|
4
|
+
export let scrollParent = '#page';
|
|
5
|
+
/** Query selector for the element to scan for headings. */
|
|
6
|
+
export let target = '#page';
|
|
7
|
+
/** Query selector for the allowed headings. From H2-H6. */
|
|
8
|
+
export let allowedHeadings = 'h2, h3';
|
|
9
|
+
/** Set the label text. */
|
|
10
|
+
export let label = 'On This Page';
|
|
11
|
+
// Props (styles)
|
|
12
|
+
/** Set the component width style. */
|
|
13
|
+
export let width = 'w-[240px]';
|
|
14
|
+
/** Set the vertical spacing styles. */
|
|
15
|
+
export let spacing = 'space-y-4';
|
|
16
|
+
/** Set the row text color styles. */
|
|
17
|
+
export let text = 'text-surface-600-300-token';
|
|
18
|
+
/** Set the row hover styles. */
|
|
19
|
+
export let hover = 'hover:bg-primary-hover-token';
|
|
20
|
+
/** Set the active row styles */
|
|
21
|
+
export let active = 'bg-primary-active-token !text-on-primary-token';
|
|
22
|
+
/** Set the row border radius styles. */
|
|
23
|
+
export let rounded = 'rounded-token';
|
|
24
|
+
// Props Regions
|
|
25
|
+
/** Provide arbitrary styles for the label element. */
|
|
26
|
+
export let regionLabel = 'font-bold';
|
|
27
|
+
/** Provide arbitrary styles for the list element. */
|
|
28
|
+
export let regionList = 'list-none';
|
|
29
|
+
// Classes
|
|
30
|
+
const cLabel = 'p-4 pt-0';
|
|
31
|
+
const cListItem = 'px-4 py-2 cursor-pointer';
|
|
32
|
+
// Local
|
|
33
|
+
let elemScrollParent;
|
|
34
|
+
let allowedHeadingsList = [];
|
|
35
|
+
let filteredHeadingsList = [];
|
|
36
|
+
let activeHeaderId;
|
|
37
|
+
function queryAllowedHeadingsList() {
|
|
38
|
+
const elemTarget = document.querySelector(target);
|
|
39
|
+
allowedHeadingsList = elemTarget?.querySelectorAll(allowedHeadings);
|
|
40
|
+
}
|
|
41
|
+
function generateHeadingList() {
|
|
42
|
+
// Select only relevant headings
|
|
43
|
+
allowedHeadingsList?.forEach((elem, i) => {
|
|
44
|
+
// Skip if `data-toc-ignore` attribute set
|
|
45
|
+
if (elem.hasAttribute('data-toc-ignore'))
|
|
46
|
+
return;
|
|
47
|
+
// Generate a unique ID if none present
|
|
48
|
+
if (!elem.id) {
|
|
49
|
+
let newId = elem.innerText
|
|
50
|
+
.replaceAll(/[^a-zA-Z0-9 ]/g, '')
|
|
51
|
+
.replaceAll(' ', '-')
|
|
52
|
+
.toLowerCase();
|
|
53
|
+
elem.id = `${newId}-${i}`;
|
|
54
|
+
}
|
|
55
|
+
// Generate headings whitelist
|
|
56
|
+
filteredHeadingsList.push(elem);
|
|
57
|
+
});
|
|
58
|
+
// Update Headings list
|
|
59
|
+
filteredHeadingsList = [...filteredHeadingsList];
|
|
60
|
+
}
|
|
61
|
+
// Sets the indentation amount per heading
|
|
62
|
+
function setHeadingClasses(headingElem) {
|
|
63
|
+
if (headingElem.tagName === 'H3')
|
|
64
|
+
return 'ml-3';
|
|
65
|
+
if (headingElem.tagName === 'H4')
|
|
66
|
+
return 'ml-6';
|
|
67
|
+
if (headingElem.tagName === 'H5')
|
|
68
|
+
return 'ml-9';
|
|
69
|
+
if (headingElem.tagName === 'H6')
|
|
70
|
+
return 'ml-12';
|
|
71
|
+
return '';
|
|
72
|
+
}
|
|
73
|
+
// Scrolls to the selected heading
|
|
74
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
|
|
75
|
+
function scrollToHeading(headingElem) {
|
|
76
|
+
const elemTarget = document.querySelector(`#${headingElem.id}`);
|
|
77
|
+
elemTarget.scrollIntoView({ behavior: 'smooth' });
|
|
78
|
+
}
|
|
79
|
+
function pageScrollHandler() {
|
|
80
|
+
const headingSizeThreadshold = 40; // px
|
|
81
|
+
// List of visible headings
|
|
82
|
+
let visibleHeadings = [];
|
|
83
|
+
// Loop each allowed heading from the target element
|
|
84
|
+
allowedHeadingsList?.forEach((header) => {
|
|
85
|
+
const scrollableTop = elemScrollParent?.getBoundingClientRect().top || 0;
|
|
86
|
+
const headerBoundTop = header.getBoundingClientRect().top;
|
|
87
|
+
const offsetTop = headerBoundTop - scrollableTop + headingSizeThreadshold;
|
|
88
|
+
// If heading visible, add to visibleHeadings
|
|
89
|
+
if (offsetTop >= 0)
|
|
90
|
+
visibleHeadings.push(header);
|
|
91
|
+
});
|
|
92
|
+
// Set the top-most header as the active ID
|
|
93
|
+
activeHeaderId = visibleHeadings[0].id;
|
|
94
|
+
}
|
|
95
|
+
// Lifecycle
|
|
96
|
+
onMount(() => {
|
|
97
|
+
queryAllowedHeadingsList();
|
|
98
|
+
generateHeadingList();
|
|
99
|
+
// Add Scrollable Parent Listener
|
|
100
|
+
elemScrollParent = document.querySelector(scrollParent);
|
|
101
|
+
elemScrollParent?.addEventListener('scroll', pageScrollHandler);
|
|
102
|
+
// Set initial active heading on load
|
|
103
|
+
pageScrollHandler();
|
|
104
|
+
});
|
|
105
|
+
onDestroy(() => {
|
|
106
|
+
elemScrollParent?.removeEventListener('scroll', pageScrollHandler);
|
|
107
|
+
});
|
|
108
|
+
// Reactive
|
|
109
|
+
$: classesBase = `${width} ${spacing} ${$$props.class ?? ''}`;
|
|
110
|
+
$: classesLabel = `${cLabel} ${regionLabel}`;
|
|
111
|
+
$: classesList = `${regionList}`;
|
|
112
|
+
$: classesListItem = `${cListItem} ${text} ${hover} ${rounded}`;
|
|
113
|
+
</script>
|
|
114
|
+
|
|
115
|
+
<!-- @component Allows you to quickly navigate the hierarchy of headings for the current page. -->
|
|
116
|
+
|
|
117
|
+
<div class="toc {classesBase}">
|
|
118
|
+
<nav class="toc-list {classesList}">
|
|
119
|
+
<div class="toc-label {classesLabel}">{label}</div>
|
|
120
|
+
{#each filteredHeadingsList as headingElem, i}
|
|
121
|
+
<!-- prettier-ignore -->
|
|
122
|
+
<li
|
|
123
|
+
class="toc-list-item {classesListItem} {setHeadingClasses(headingElem)} {headingElem.id === activeHeaderId ? active : ''}"
|
|
124
|
+
on:click={() => { scrollToHeading(headingElem); }}
|
|
125
|
+
on:click
|
|
126
|
+
on:keypress
|
|
127
|
+
>
|
|
128
|
+
{headingElem.innerText}
|
|
129
|
+
</li>
|
|
130
|
+
{/each}
|
|
131
|
+
</nav>
|
|
132
|
+
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
scrollParent?: string | undefined;
|
|
6
|
+
target?: string | undefined;
|
|
7
|
+
allowedHeadings?: string | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
width?: string | undefined;
|
|
10
|
+
spacing?: string | undefined;
|
|
11
|
+
text?: string | undefined;
|
|
12
|
+
hover?: string | undefined;
|
|
13
|
+
active?: string | undefined;
|
|
14
|
+
rounded?: string | undefined;
|
|
15
|
+
regionLabel?: string | undefined;
|
|
16
|
+
regionList?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
click: MouseEvent;
|
|
20
|
+
keypress: KeyboardEvent;
|
|
21
|
+
} & {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
};
|
|
24
|
+
slots: {};
|
|
25
|
+
};
|
|
26
|
+
export type TableOfContentsProps = typeof __propDef.props;
|
|
27
|
+
export type TableOfContentsEvents = typeof __propDef.events;
|
|
28
|
+
export type TableOfContentsSlots = typeof __propDef.slots;
|
|
29
|
+
/** Allows you to quickly navigate the hierarchy of headings for the current page. */
|
|
30
|
+
export default class TableOfContents extends SvelteComponentTyped<TableOfContentsProps, TableOfContentsEvents, TableOfContentsSlots> {
|
|
31
|
+
}
|
|
32
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export { default as Divider } from './components/Divider/Divider.svelte';
|
|
|
31
31
|
export { default as FileButton } from './components/FileButton/FileButton.svelte';
|
|
32
32
|
export { default as FileDropzone } from './components/FileDropzone/FileDropzone.svelte';
|
|
33
33
|
export { default as GradientHeading } from './components/GradientHeading/GradientHeading.svelte';
|
|
34
|
+
export { default as InputChip } from './components/InputChip/InputChip.svelte';
|
|
34
35
|
export { default as ListBox } from './components/ListBox/ListBox.svelte';
|
|
35
36
|
export { default as ListBoxItem } from './components/ListBox/ListBoxItem.svelte';
|
|
36
37
|
export { default as Paginator } from './components/Paginator/Paginator.svelte';
|
|
@@ -45,6 +46,7 @@ export { default as Step } from './components/Stepper/Step.svelte';
|
|
|
45
46
|
export { default as Table } from './components/Table/Table.svelte';
|
|
46
47
|
export { default as TabGroup } from './components/Tab/TabGroup.svelte';
|
|
47
48
|
export { default as Tab } from './components/Tab/Tab.svelte';
|
|
49
|
+
export { default as TableOfContents } from './components/TableOfContents/TableOfContents.svelte';
|
|
48
50
|
export { default as CodeBlock } from './utilities/CodeBlock/CodeBlock.svelte';
|
|
49
51
|
export { default as Modal } from './utilities/Modal/Modal.svelte';
|
|
50
52
|
export { default as Drawer } from './utilities/Drawer/Drawer.svelte';
|
package/index.js
CHANGED
|
@@ -37,6 +37,7 @@ export { default as Divider } from './components/Divider/Divider.svelte';
|
|
|
37
37
|
export { default as FileButton } from './components/FileButton/FileButton.svelte';
|
|
38
38
|
export { default as FileDropzone } from './components/FileDropzone/FileDropzone.svelte';
|
|
39
39
|
export { default as GradientHeading } from './components/GradientHeading/GradientHeading.svelte';
|
|
40
|
+
export { default as InputChip } from './components/InputChip/InputChip.svelte';
|
|
40
41
|
export { default as ListBox } from './components/ListBox/ListBox.svelte';
|
|
41
42
|
export { default as ListBoxItem } from './components/ListBox/ListBoxItem.svelte';
|
|
42
43
|
export { default as Paginator } from './components/Paginator/Paginator.svelte';
|
|
@@ -51,6 +52,7 @@ export { default as Step } from './components/Stepper/Step.svelte';
|
|
|
51
52
|
export { default as Table } from './components/Table/Table.svelte';
|
|
52
53
|
export { default as TabGroup } from './components/Tab/TabGroup.svelte';
|
|
53
54
|
export { default as Tab } from './components/Tab/Tab.svelte';
|
|
55
|
+
export { default as TableOfContents } from './components/TableOfContents/TableOfContents.svelte';
|
|
54
56
|
// Utility Components
|
|
55
57
|
export { default as CodeBlock } from './utilities/CodeBlock/CodeBlock.svelte';
|
|
56
58
|
export { default as Modal } from './utilities/Modal/Modal.svelte';
|
package/package.json
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v0.92.0",
|
|
4
4
|
"description": "A SvelteKit component library.",
|
|
5
5
|
"author": "endigo9740 <chris@skeletonlabs.dev>",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@
|
|
8
|
-
"@sveltejs/
|
|
9
|
-
"@sveltejs/
|
|
10
|
-
"@sveltejs/package": "1.0.0-next.5",
|
|
7
|
+
"@sveltejs/adapter-auto": "^1.0.0",
|
|
8
|
+
"@sveltejs/kit": "^1.0.0",
|
|
9
|
+
"@sveltejs/package": "1.0.0",
|
|
11
10
|
"@tailwindcss/forms": "^0.5.3",
|
|
12
11
|
"@testing-library/dom": "^8.19.0",
|
|
13
12
|
"@testing-library/svelte": "^3.2.2",
|
|
14
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
15
|
-
"@typescript-eslint/parser": "^5.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
|
14
|
+
"@typescript-eslint/parser": "^5.46.1",
|
|
16
15
|
"autoprefixer": "^10.4.13",
|
|
17
16
|
"c8": "^7.12.0",
|
|
18
|
-
"edit-package-json": "^0.
|
|
19
|
-
"eslint": "^8.
|
|
17
|
+
"edit-package-json": "^0.8.2",
|
|
18
|
+
"eslint": "^8.29.0",
|
|
20
19
|
"eslint-config-prettier": "^8.5.0",
|
|
21
20
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
22
21
|
"highlight.js": "^11.7.0",
|
|
23
22
|
"jsdom": "^20.0.3",
|
|
24
|
-
"postcss": "^8.4.
|
|
23
|
+
"postcss": "^8.4.20",
|
|
24
|
+
"postcss-cli": "^10.1.0",
|
|
25
|
+
"postcss-import": "^15.0.1",
|
|
25
26
|
"postcss-load-config": "^4.0.1",
|
|
26
|
-
"
|
|
27
|
-
"prettier
|
|
27
|
+
"prejss-cli": "^0.3.3",
|
|
28
|
+
"prettier": "^2.8.1",
|
|
29
|
+
"prettier-plugin-svelte": "^2.9.0",
|
|
28
30
|
"sveld": "^0.18.0",
|
|
29
|
-
"svelte": "^3.
|
|
30
|
-
"svelte-check": "^2.
|
|
31
|
-
"svelte-preprocess": "^
|
|
32
|
-
"svelte2tsx": "^0.5.
|
|
31
|
+
"svelte": "^3.55.0",
|
|
32
|
+
"svelte-check": "^2.10.2",
|
|
33
|
+
"svelte-preprocess": "^5.0.0",
|
|
34
|
+
"svelte2tsx": "^0.5.22",
|
|
33
35
|
"tailwindcss": "^3.2.4",
|
|
34
36
|
"tslib": "^2.4.1",
|
|
35
|
-
"typescript": "^4.9.
|
|
36
|
-
"vite": "^
|
|
37
|
+
"typescript": "^4.9.4",
|
|
38
|
+
"vite": "^4.0.1",
|
|
37
39
|
"vite-plugin-sveld": "^1.1.0",
|
|
38
|
-
"vitest": "^0.
|
|
40
|
+
"vitest": "^0.25.8"
|
|
39
41
|
},
|
|
40
42
|
"type": "module",
|
|
41
43
|
"types": "index.d.ts",
|
|
@@ -64,11 +66,13 @@
|
|
|
64
66
|
"./components/Breadcrumb/Breadcrumb.svelte": "./components/Breadcrumb/Breadcrumb.svelte",
|
|
65
67
|
"./components/Breadcrumb/Crumb.svelte": "./components/Breadcrumb/Crumb.svelte",
|
|
66
68
|
"./components/ConicGradient/ConicGradient.svelte": "./components/ConicGradient/ConicGradient.svelte",
|
|
69
|
+
"./components/ConicGradient/settings": "./components/ConicGradient/settings.js",
|
|
67
70
|
"./components/ConicGradient/types": "./components/ConicGradient/types.js",
|
|
68
71
|
"./components/Divider/Divider.svelte": "./components/Divider/Divider.svelte",
|
|
69
72
|
"./components/FileButton/FileButton.svelte": "./components/FileButton/FileButton.svelte",
|
|
70
73
|
"./components/FileDropzone/FileDropzone.svelte": "./components/FileDropzone/FileDropzone.svelte",
|
|
71
74
|
"./components/GradientHeading/GradientHeading.svelte": "./components/GradientHeading/GradientHeading.svelte",
|
|
75
|
+
"./components/InputChip/InputChip.svelte": "./components/InputChip/InputChip.svelte",
|
|
72
76
|
"./components/ListBox/ListBox.svelte": "./components/ListBox/ListBox.svelte",
|
|
73
77
|
"./components/ListBox/ListBoxItem.svelte": "./components/ListBox/ListBoxItem.svelte",
|
|
74
78
|
"./components/Paginator/Paginator.svelte": "./components/Paginator/Paginator.svelte",
|
|
@@ -88,10 +92,13 @@
|
|
|
88
92
|
"./components/Table/Table.svelte": "./components/Table/Table.svelte",
|
|
89
93
|
"./components/Table/types": "./components/Table/types.js",
|
|
90
94
|
"./components/Table/utils": "./components/Table/utils.js",
|
|
95
|
+
"./components/TableOfContents/TableOfContents.svelte": "./components/TableOfContents/TableOfContents.svelte",
|
|
91
96
|
".": "./index.js",
|
|
92
97
|
"./styles/all.css": "./styles/all.css",
|
|
93
98
|
"./styles/core.css": "./styles/core.css",
|
|
99
|
+
"./styles/elements/alerts.css": "./styles/elements/alerts.css",
|
|
94
100
|
"./styles/elements/badges.css": "./styles/elements/badges.css",
|
|
101
|
+
"./styles/elements/breadcrumbs.css": "./styles/elements/breadcrumbs.css",
|
|
95
102
|
"./styles/elements/buttons.css": "./styles/elements/buttons.css",
|
|
96
103
|
"./styles/elements/cards.css": "./styles/elements/cards.css",
|
|
97
104
|
"./styles/elements/chips.css": "./styles/elements/chips.css",
|
|
@@ -105,17 +112,18 @@
|
|
|
105
112
|
"./styles/forms.css": "./styles/forms.css",
|
|
106
113
|
"./styles/highlight-js.css": "./styles/highlight-js.css",
|
|
107
114
|
"./styles/tailwind.css": "./styles/tailwind.css",
|
|
108
|
-
"./styles/tokens/backgrounds.css": "./styles/tokens/backgrounds.css",
|
|
109
|
-
"./styles/tokens/border-radius.css": "./styles/tokens/border-radius.css",
|
|
110
|
-
"./styles/tokens/borders.css": "./styles/tokens/borders.css",
|
|
111
|
-
"./styles/tokens/fills.css": "./styles/tokens/fills.css",
|
|
112
|
-
"./styles/tokens/misc.css": "./styles/tokens/misc.css",
|
|
113
|
-
"./styles/tokens/rings.css": "./styles/tokens/rings.css",
|
|
114
|
-
"./styles/tokens/text.css": "./styles/tokens/text.css",
|
|
115
|
-
"./styles/tokens.css": "./styles/tokens.css",
|
|
116
115
|
"./styles/typography.css": "./styles/typography.css",
|
|
117
|
-
"./tailwind
|
|
118
|
-
"./tailwind/
|
|
116
|
+
"./tailwind/.DS_Store": "./tailwind/.DS_Store",
|
|
117
|
+
"./tailwind/generated/allComponents.cjs": "./tailwind/generated/allComponents.cjs",
|
|
118
|
+
"./tailwind/settings.cjs": "./tailwind/settings.cjs",
|
|
119
|
+
"./tailwind/skeleton.cjs": "./tailwind/skeleton.cjs",
|
|
120
|
+
"./tailwind/theme/colors.cjs": "./tailwind/theme/colors.cjs",
|
|
121
|
+
"./tailwind/tokens/backgrounds.cjs": "./tailwind/tokens/backgrounds.cjs",
|
|
122
|
+
"./tailwind/tokens/border-radius.cjs": "./tailwind/tokens/border-radius.cjs",
|
|
123
|
+
"./tailwind/tokens/borders.cjs": "./tailwind/tokens/borders.cjs",
|
|
124
|
+
"./tailwind/tokens/fills.cjs": "./tailwind/tokens/fills.cjs",
|
|
125
|
+
"./tailwind/tokens/rings.cjs": "./tailwind/tokens/rings.cjs",
|
|
126
|
+
"./tailwind/tokens/text.cjs": "./tailwind/tokens/text.cjs",
|
|
119
127
|
"./themes/theme-crimson.css": "./themes/theme-crimson.css",
|
|
120
128
|
"./themes/theme-gold-nouveau.css": "./themes/theme-gold-nouveau.css",
|
|
121
129
|
"./themes/theme-hamlindigo.css": "./themes/theme-hamlindigo.css",
|
package/styles/all.css
CHANGED
package/styles/core.css
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* Tailwind Elements: alerts.css */
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.alert {
|
|
5
|
+
@apply flex flex-col items-start lg:items-center lg:flex-row p-4 space-y-4 lg:space-y-0 lg:space-x-4;
|
|
6
|
+
/* Background */
|
|
7
|
+
@apply bg-warning-500/20;
|
|
8
|
+
/* Border */
|
|
9
|
+
@apply border border-warning-500;
|
|
10
|
+
/* Rounded */
|
|
11
|
+
@apply rounded-container-token;
|
|
12
|
+
}
|
|
13
|
+
.alert-message {
|
|
14
|
+
@apply flex-auto space-y-2;
|
|
15
|
+
}
|
|
16
|
+
.alert-actions {
|
|
17
|
+
@apply flex items-center space-x-2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* === Variants === */
|
|
21
|
+
|
|
22
|
+
.alert-primary {
|
|
23
|
+
@apply bg-primary-500/20 border-primary-500;
|
|
24
|
+
}
|
|
25
|
+
.alert-secondary {
|
|
26
|
+
@apply bg-secondary-500/20 border-secondary-500;
|
|
27
|
+
}
|
|
28
|
+
.alert-tertiary {
|
|
29
|
+
@apply bg-tertiary-500/20 border-tertiary-500;
|
|
30
|
+
}
|
|
31
|
+
.alert-success {
|
|
32
|
+
@apply bg-success-500/20 border-success-500;
|
|
33
|
+
}
|
|
34
|
+
.alert-warning {
|
|
35
|
+
@apply bg-warning-500/20 border-warning-500;
|
|
36
|
+
}
|
|
37
|
+
.alert-error {
|
|
38
|
+
@apply bg-error-500/20 border-error-500;
|
|
39
|
+
}
|
|
40
|
+
.alert-surface {
|
|
41
|
+
@apply bg-surface-500/20 border-surface-500;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Tailwind Elements: badges.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
4
|
.badge {
|
|
5
5
|
/* Core */
|
|
6
|
-
@apply inline-flex items-center space-x-2 whitespace-nowrap;
|
|
6
|
+
@apply inline-flex justify-center items-center space-x-2 whitespace-nowrap;
|
|
7
7
|
/* Text */
|
|
8
8
|
@apply font-semibold text-xs;
|
|
9
9
|
/* Padding */
|
|
@@ -26,24 +26,30 @@
|
|
|
26
26
|
/* Filled */
|
|
27
27
|
.badge-filled,
|
|
28
28
|
.badge-filled-surface {
|
|
29
|
-
@apply bg-surface-400-500-token;
|
|
29
|
+
@apply bg-surface-400-500-token text-on-surface-token;
|
|
30
30
|
}
|
|
31
31
|
.badge-filled-primary {
|
|
32
32
|
@apply bg-primary-500 text-on-primary-token;
|
|
33
33
|
}
|
|
34
|
-
.badge-filled-
|
|
35
|
-
@apply bg-
|
|
34
|
+
.badge-filled-secondary {
|
|
35
|
+
@apply bg-secondary-500 text-on-secondary-token;
|
|
36
36
|
}
|
|
37
37
|
.badge-filled-tertiary {
|
|
38
38
|
@apply bg-tertiary-500 text-on-tertiary-token;
|
|
39
39
|
}
|
|
40
|
+
.badge-filled-success {
|
|
41
|
+
@apply bg-success-500 text-on-success-token;
|
|
42
|
+
}
|
|
40
43
|
.badge-filled-warning {
|
|
41
44
|
@apply bg-warning-500 text-on-warning-token;
|
|
42
45
|
}
|
|
46
|
+
.badge-filled-error {
|
|
47
|
+
@apply bg-error-500 text-on-error-token;
|
|
48
|
+
}
|
|
43
49
|
|
|
44
50
|
/* Glass */
|
|
45
51
|
.badge-glass {
|
|
46
|
-
@apply bg-
|
|
52
|
+
@apply bg-surface-500/20 dark:bg-surface-500/20 backdrop-blur-lg;
|
|
47
53
|
/* Ring */
|
|
48
54
|
@apply ring-[1px] ring-neutral-900/5 dark:ring-neutral-50/5 ring-inset;
|
|
49
55
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* Tailwind Elements: breadcrumbs.css */
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.breadcrumb-nonresponsive {
|
|
5
|
+
@apply flex items-center space-x-4 w-full hide-scrollbar overflow-x-auto;
|
|
6
|
+
}
|
|
7
|
+
.breadcrumb {
|
|
8
|
+
@apply breadcrumb-nonresponsive;
|
|
9
|
+
}
|
|
10
|
+
.crumb {
|
|
11
|
+
@apply flex justify-center items-center space-x-2;
|
|
12
|
+
}
|
|
13
|
+
.crumb-separator {
|
|
14
|
+
@apply flex text-surface-700-200-token opacity-50;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* === Auto-Responsive === */
|
|
18
|
+
|
|
19
|
+
.breadcrumb li {
|
|
20
|
+
@apply hidden md:block;
|
|
21
|
+
}
|
|
22
|
+
.breadcrumb li:nth-last-child(3),
|
|
23
|
+
.breadcrumb li:nth-last-child(2),
|
|
24
|
+
.breadcrumb li:nth-last-child(1) {
|
|
25
|
+
@apply block;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Tailwind Elements: button.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
4
|
/* === States === */
|
|
@@ -75,15 +75,21 @@
|
|
|
75
75
|
.btn-outline-primary {
|
|
76
76
|
@apply ring-2 ring-primary-500 ring-inset;
|
|
77
77
|
}
|
|
78
|
-
.btn-outline-
|
|
79
|
-
@apply ring-2 ring-
|
|
78
|
+
.btn-outline-secondary {
|
|
79
|
+
@apply ring-2 ring-secondary-500 ring-inset;
|
|
80
80
|
}
|
|
81
81
|
.btn-outline-tertiary {
|
|
82
82
|
@apply ring-2 ring-tertiary-500 ring-inset;
|
|
83
83
|
}
|
|
84
|
+
.btn-outline-success {
|
|
85
|
+
@apply ring-2 ring-success-500 ring-inset;
|
|
86
|
+
}
|
|
84
87
|
.btn-outline-warning {
|
|
85
88
|
@apply ring-2 ring-warning-500 ring-inset;
|
|
86
89
|
}
|
|
90
|
+
.btn-outline-error {
|
|
91
|
+
@apply ring-2 ring-error-500 ring-inset;
|
|
92
|
+
}
|
|
87
93
|
.btn-outline-surface {
|
|
88
94
|
@apply ring-2 ring-surface-400-500-token ring-inset;
|
|
89
95
|
}
|
|
@@ -98,15 +104,21 @@
|
|
|
98
104
|
.btn-filled-primary {
|
|
99
105
|
@apply bg-primary-500 text-on-primary-token;
|
|
100
106
|
}
|
|
101
|
-
.btn-filled-
|
|
102
|
-
@apply bg-
|
|
107
|
+
.btn-filled-secondary {
|
|
108
|
+
@apply bg-secondary-500 text-on-secondary-token;
|
|
103
109
|
}
|
|
104
110
|
.btn-filled-tertiary {
|
|
105
111
|
@apply bg-tertiary-500 text-on-tertiary-token;
|
|
106
112
|
}
|
|
113
|
+
.btn-filled-success {
|
|
114
|
+
@apply bg-success-500 text-on-success-token;
|
|
115
|
+
}
|
|
107
116
|
.btn-filled-warning {
|
|
108
117
|
@apply bg-warning-500 text-on-warning-token;
|
|
109
118
|
}
|
|
119
|
+
.btn-filled-error {
|
|
120
|
+
@apply bg-error-500 text-on-error-token;
|
|
121
|
+
}
|
|
110
122
|
.btn-filled-surface {
|
|
111
123
|
@apply bg-surface-400-500-token;
|
|
112
124
|
}
|
|
@@ -118,15 +130,21 @@
|
|
|
118
130
|
.btn-ringed-primary {
|
|
119
131
|
@apply btn-outline-primary;
|
|
120
132
|
}
|
|
121
|
-
.btn-ringed-
|
|
122
|
-
@apply btn-outline-
|
|
133
|
+
.btn-ringed-secondary {
|
|
134
|
+
@apply btn-outline-secondary;
|
|
123
135
|
}
|
|
124
136
|
.btn-ringed-tertiary {
|
|
125
137
|
@apply btn-outline-tertiary;
|
|
126
138
|
}
|
|
139
|
+
.btn-ringed-success {
|
|
140
|
+
@apply btn-outline-success;
|
|
141
|
+
}
|
|
127
142
|
.btn-ringed-warning {
|
|
128
143
|
@apply btn-outline-warning;
|
|
129
144
|
}
|
|
145
|
+
.btn-ringed-error {
|
|
146
|
+
@apply btn-outline-error;
|
|
147
|
+
}
|
|
130
148
|
.btn-ringed-surface {
|
|
131
149
|
@apply btn-outline-surface;
|
|
132
150
|
}
|
|
@@ -142,21 +160,27 @@
|
|
|
142
160
|
.btn-ghost-primary {
|
|
143
161
|
@apply btn-outline-primary bg-primary-500/20 hover:bg-primary-500/30;
|
|
144
162
|
}
|
|
145
|
-
.btn-ghost-
|
|
146
|
-
@apply btn-outline-
|
|
163
|
+
.btn-ghost-secondary {
|
|
164
|
+
@apply btn-outline-secondary bg-secondary-500/20 hover:bg-secondary-500/30;
|
|
147
165
|
}
|
|
148
166
|
.btn-ghost-tertiary {
|
|
149
167
|
@apply btn-outline-tertiary bg-tertiary-500/20 hover:bg-tertiary-500/30;
|
|
150
168
|
}
|
|
169
|
+
.btn-ghost-success {
|
|
170
|
+
@apply btn-outline-success bg-success-500/20 hover:bg-success-500/30;
|
|
171
|
+
}
|
|
151
172
|
.btn-ghost-warning {
|
|
152
173
|
@apply btn-outline-warning bg-warning-500/20 hover:bg-warning-500/30;
|
|
153
174
|
}
|
|
175
|
+
.btn-ghost-error {
|
|
176
|
+
@apply btn-outline-error bg-error-500/20 hover:bg-error-500/30;
|
|
177
|
+
}
|
|
154
178
|
.btn-ghost-surface {
|
|
155
179
|
@apply btn-outline-surface bg-surface-400/20 hover:bg-surface-500/30;
|
|
156
180
|
}
|
|
157
181
|
|
|
158
182
|
/* File Input Button */
|
|
159
183
|
input[type='file']:not(.file-dropzone-input)::file-selector-button {
|
|
160
|
-
@apply border-0 btn btn-filled-
|
|
184
|
+
@apply border-0 btn btn-filled-secondary btn-sm mr-2 text-token;
|
|
161
185
|
}
|
|
162
186
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Tailwind Elements: cards.css */
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
4
|
/* === Card (parent) === */
|
|
@@ -28,13 +28,32 @@
|
|
|
28
28
|
@apply transition-all hover:brightness-110;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.card-
|
|
31
|
+
.card-hover {
|
|
32
32
|
@apply transition-all hover:scale-[101%] hover:shadow-xl;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* === Variants === */
|
|
36
36
|
|
|
37
|
-
.card-glass {
|
|
38
|
-
@apply bg-
|
|
37
|
+
.card-glass-primary {
|
|
38
|
+
@apply bg-primary-500/10 dark:bg-primary-500/10 backdrop-blur-lg;
|
|
39
|
+
}
|
|
40
|
+
.card-glass-secondary {
|
|
41
|
+
@apply bg-secondary-500/10 dark:bg-secondary-500/10 backdrop-blur-lg;
|
|
42
|
+
}
|
|
43
|
+
.card-glass-tertiary {
|
|
44
|
+
@apply bg-tertiary-500/10 dark:bg-tertiary-500/10 backdrop-blur-lg;
|
|
45
|
+
}
|
|
46
|
+
.card-glass-success {
|
|
47
|
+
@apply bg-success-500/10 dark:bg-success-500/10 backdrop-blur-lg;
|
|
48
|
+
}
|
|
49
|
+
.card-glass-warning {
|
|
50
|
+
@apply bg-warning-500/10 dark:bg-warning-500/10 backdrop-blur-lg;
|
|
51
|
+
}
|
|
52
|
+
.card-glass-error {
|
|
53
|
+
@apply bg-error-500/10 dark:bg-error-500/10 backdrop-blur-lg;
|
|
54
|
+
}
|
|
55
|
+
.card-glass,
|
|
56
|
+
.card-glass-surface {
|
|
57
|
+
@apply bg-surface-500/10 dark:bg-surface-500/10 backdrop-blur-lg;
|
|
39
58
|
}
|
|
40
59
|
}
|