@rkosafo/cai.components 0.0.74 → 0.0.78
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 +8 -8
- package/dist/baseEditor/index.svelte +32 -32
- package/dist/builders/filters/FilterBuilder.svelte +641 -641
- package/dist/forms/FormCheckbox/FormCheckbox.svelte +53 -53
- package/dist/forms/FormClEditor/ClEdito.svelte +68 -68
- package/dist/forms/FormDatepicker/FormDatepicker.svelte +159 -159
- package/dist/forms/FormFileUpload/FormFileUplad.svelte +134 -134
- package/dist/forms/FormInput/FormInput.svelte +87 -87
- package/dist/forms/FormRadio/FormRadio.svelte +53 -53
- package/dist/forms/FormSelect/FormSelect.svelte +88 -88
- package/dist/forms/FormTextarea/FormTextarea.svelte +78 -78
- package/dist/forms/button-toggle/ButtonToggle.svelte +119 -0
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +139 -0
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +0 -0
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte.d.ts +26 -0
- package/dist/forms/button-toggle/CheckIcon.svelte +28 -0
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +4 -0
- package/dist/forms/button-toggle/index.d.ts +4 -0
- package/dist/forms/button-toggle/index.js +4 -0
- package/dist/forms/button-toggle/theme.d.ts +347 -0
- package/dist/forms/button-toggle/theme.js +129 -0
- package/dist/forms/checkbox/Checkbox.svelte +82 -82
- package/dist/forms/checkbox/CheckboxButton.svelte +92 -92
- package/dist/forms/datepicker/Datepicker.svelte +707 -707
- package/dist/forms/form/Form.svelte +69 -69
- package/dist/forms/input/Input.svelte +363 -363
- package/dist/forms/label/Label.svelte +38 -38
- package/dist/forms/radio/Radio.svelte +48 -48
- package/dist/forms/radio/RadioButton.svelte +22 -22
- package/dist/forms/select/Select.svelte +56 -56
- package/dist/forms/textarea/Textarea.svelte +165 -165
- package/dist/forms/toggle/Toggle.svelte +70 -0
- package/dist/forms/toggle/Toggle.svelte.d.ts +3 -0
- package/dist/forms/toggle/index.d.ts +2 -0
- package/dist/forms/toggle/index.js +2 -0
- package/dist/forms/toggle/theme.d.ts +280 -0
- package/dist/forms/toggle/theme.js +97 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/layout/Chat/CategorySelector.svelte +52 -52
- package/dist/layout/Chat/ChatEntry.svelte +246 -246
- package/dist/layout/Chat/ChatEntrySkeleton.svelte +81 -81
- package/dist/layout/Chat/ChatHeader.svelte +172 -172
- package/dist/layout/Chat/ChatInput.svelte +207 -207
- package/dist/layout/Chat/DraggableWindow.svelte +230 -230
- package/dist/layout/Chat/PreviewPage.svelte +182 -182
- package/dist/layout/Chat/RichText.svelte +216 -216
- package/dist/layout/ComponentCanvas/Canvas.svelte +40 -40
- package/dist/layout/ComponentCanvas/ComponentRenderer.svelte +85 -85
- package/dist/layout/TF/Content/Content.svelte +21 -21
- package/dist/layout/TF/Header/Header.svelte +166 -166
- package/dist/layout/TF/Sidebar/Sidebar.svelte +148 -148
- package/dist/layout/TF/Wrapper/Wrapper.svelte +17 -17
- package/dist/layout/mailing/MailPaginator.svelte +36 -36
- package/dist/layout/mailing/MailSidebar.svelte +39 -39
- package/dist/layout/mailing/MailToolBar.svelte +174 -174
- package/dist/layout/mailing/MailingContent.svelte +10 -10
- package/dist/layout/mailing/MailingHeader.svelte +55 -55
- package/dist/layout/mailing/MailingMessageCard.svelte +112 -112
- package/dist/layout/mailing/MailingMessageViewer.svelte +87 -87
- package/dist/layout/mailing/MailingModule.svelte +448 -448
- package/dist/styles/docs.css +615 -615
- package/dist/styles/tf-layout.css +185 -185
- package/dist/themes/ThemeProvider.svelte +20 -20
- package/dist/themes/themes.d.ts +3 -0
- package/dist/themes/themes.js +3 -0
- package/dist/types/index.d.ts +59 -2
- package/dist/typography/heading/Heading.svelte +35 -35
- package/dist/ui/accordion/Accordion.svelte +49 -49
- package/dist/ui/accordion/AccordionItem.svelte +173 -173
- package/dist/ui/alert/Alert.svelte +83 -83
- package/dist/ui/alertDialog/AlertDialog.svelte +40 -40
- package/dist/ui/avatar/Avatar.svelte +77 -77
- package/dist/ui/box/Box.svelte +28 -28
- package/dist/ui/breadcrumb/Breadcrumb.svelte +39 -28
- package/dist/ui/buttons/ActionButton.svelte +234 -234
- package/dist/ui/buttons/Button.svelte +102 -102
- package/dist/ui/buttons/GradientButton.svelte +59 -59
- package/dist/ui/datatable/Datatable.svelte +525 -525
- package/dist/ui/drawer/Drawer.svelte +300 -300
- package/dist/ui/dropdown/Dropdown.svelte +36 -36
- package/dist/ui/dropdown/DropdownDivider.svelte +11 -11
- package/dist/ui/dropdown/DropdownGroup.svelte +14 -14
- package/dist/ui/dropdown/DropdownHeader.svelte +14 -14
- package/dist/ui/dropdown/DropdownItem.svelte +52 -52
- package/dist/ui/footer/Footer.svelte +15 -15
- package/dist/ui/footer/FooterBrand.svelte +37 -37
- package/dist/ui/footer/FooterCopyright.svelte +45 -45
- package/dist/ui/footer/FooterIcon.svelte +22 -22
- package/dist/ui/footer/FooterLink.svelte +33 -33
- package/dist/ui/footer/FooterLinkGroup.svelte +13 -13
- package/dist/ui/icons/IconifyIcon.svelte +7 -7
- package/dist/ui/indicator/Indicator.svelte +42 -42
- package/dist/ui/modal/Modal.svelte +265 -265
- package/dist/ui/modal/theme.d.ts +26 -26
- package/dist/ui/modal/theme.js +25 -25
- package/dist/ui/notificationList/NotificationList.svelte +123 -123
- package/dist/ui/pageLoader/PageLoader.svelte +14 -14
- package/dist/ui/paginate/Paginate.svelte +96 -96
- package/dist/ui/speedDial/SpeedDial.svelte +77 -0
- package/dist/ui/speedDial/SpeedDial.svelte.d.ts +21 -0
- package/dist/ui/speedDial/SpeedDialButton.svelte +75 -0
- package/dist/ui/speedDial/SpeedDialButton.svelte.d.ts +20 -0
- package/dist/ui/speedDial/SpeedDialTrigger.svelte +79 -0
- package/dist/ui/speedDial/SpeedDialTrigger.svelte.d.ts +18 -0
- package/dist/ui/speedDial/index.d.ts +4 -0
- package/dist/ui/speedDial/index.js +4 -0
- package/dist/ui/speedDial/theme.d.ts +75 -0
- package/dist/ui/speedDial/theme.js +35 -0
- package/dist/ui/tab/Tab.svelte +67 -67
- package/dist/ui/table/Table.svelte +396 -394
- package/dist/ui/tableLoader/TableLoader.svelte +24 -24
- package/dist/ui/toast/Toast.svelte +337 -337
- package/dist/ui/toast/Toast.svelte.d.ts +10 -10
- package/dist/ui/toast/index.d.ts +1 -2
- package/dist/ui/toast/index.js +3 -1
- package/dist/ui/toolbar/Toolbar.svelte +59 -59
- package/dist/ui/toolbar/ToolbarButton.svelte +56 -56
- package/dist/ui/toolbar/ToolbarGroup.svelte +43 -43
- package/dist/ui/tooltip/Tooltip.svelte +51 -51
- package/dist/utils/Popper.svelte +257 -257
- package/dist/utils/closeButton/CloseButton.svelte +88 -88
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +13 -3
- package/dist/utils/singleSelection.svelte.js +48 -48
- package/dist/youtube/index.svelte +12 -12
- package/package.json +2 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { dropdownDivider } from './index.js';
|
|
4
|
-
import { getTheme } from '../../themes/themeUtils.js';
|
|
5
|
-
import type { DropdownDividerProps } from '../../index.js';
|
|
6
|
-
|
|
7
|
-
let { class: className, ...restProps }: DropdownDividerProps = $props();
|
|
8
|
-
const theme = getTheme('dropdownDivider');
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<div {...restProps} class={dropdownDivider({ class: clsx(theme, className) })}></div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { dropdownDivider } from './index.js';
|
|
4
|
+
import { getTheme } from '../../themes/themeUtils.js';
|
|
5
|
+
import type { DropdownDividerProps } from '../../index.js';
|
|
6
|
+
|
|
7
|
+
let { class: className, ...restProps }: DropdownDividerProps = $props();
|
|
8
|
+
const theme = getTheme('dropdownDivider');
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<div {...restProps} class={dropdownDivider({ class: clsx(theme, className) })}></div>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { dropdownGroup } from './index.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { getTheme } from '../../themes/themeUtils.js';
|
|
5
|
-
import type { DropdownGroupProps } from '../../index.js';
|
|
6
|
-
|
|
7
|
-
let { children, class: className, ...restProps }: DropdownGroupProps = $props();
|
|
8
|
-
|
|
9
|
-
const theme = getTheme('dropdownGroup');
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<ul {...restProps} class={dropdownGroup({ class: clsx(theme, className) })}>
|
|
13
|
-
{@render children()}
|
|
14
|
-
</ul>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { dropdownGroup } from './index.js';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { getTheme } from '../../themes/themeUtils.js';
|
|
5
|
+
import type { DropdownGroupProps } from '../../index.js';
|
|
6
|
+
|
|
7
|
+
let { children, class: className, ...restProps }: DropdownGroupProps = $props();
|
|
8
|
+
|
|
9
|
+
const theme = getTheme('dropdownGroup');
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ul {...restProps} class={dropdownGroup({ class: clsx(theme, className) })}>
|
|
13
|
+
{@render children()}
|
|
14
|
+
</ul>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { dropdownHeader } from './index.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { getTheme } from '../../themes/themeUtils.js';
|
|
5
|
-
import type { DropdownHeaderProps } from '../../index.js';
|
|
6
|
-
|
|
7
|
-
let { children, class: className, ...restProps }: DropdownHeaderProps = $props();
|
|
8
|
-
|
|
9
|
-
const theme = getTheme('dropdownHeader');
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<div {...restProps} class={dropdownHeader({ class: clsx(theme, className) })}>
|
|
13
|
-
{@render children()}
|
|
14
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { dropdownHeader } from './index.js';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { getTheme } from '../../themes/themeUtils.js';
|
|
5
|
+
import type { DropdownHeaderProps } from '../../index.js';
|
|
6
|
+
|
|
7
|
+
let { children, class: className, ...restProps }: DropdownHeaderProps = $props();
|
|
8
|
+
|
|
9
|
+
const theme = getTheme('dropdownHeader');
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<div {...restProps} class={dropdownHeader({ class: clsx(theme, className) })}>
|
|
13
|
+
{@render children()}
|
|
14
|
+
</div>
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { dropdownItem } from './index.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { getContext } from 'svelte';
|
|
5
|
-
import { getTheme, warnThemeDeprecation } from '../../themes/themeUtils.js';
|
|
6
|
-
import type { DropdownItemProps } from '../../index.js';
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
aClass,
|
|
10
|
-
children,
|
|
11
|
-
activeClass,
|
|
12
|
-
liClass,
|
|
13
|
-
classes,
|
|
14
|
-
class: className,
|
|
15
|
-
...restProps
|
|
16
|
-
}: DropdownItemProps = $props();
|
|
17
|
-
|
|
18
|
-
warnThemeDeprecation(
|
|
19
|
-
'DropdownItem',
|
|
20
|
-
{ aClass, activeClass, liClass },
|
|
21
|
-
{ aClass: 'class', activeClass: 'active', liClass: 'li' }
|
|
22
|
-
);
|
|
23
|
-
const theme = getTheme('dropdownItem');
|
|
24
|
-
const styling = $derived(classes ?? { active: activeClass, li: liClass });
|
|
25
|
-
|
|
26
|
-
const activeUrl: { value: string } = getContext('activeUrl');
|
|
27
|
-
|
|
28
|
-
let isActive = $derived(activeUrl?.value ? restProps.href === activeUrl.value : false);
|
|
29
|
-
|
|
30
|
-
const { base, active, li } = dropdownItem();
|
|
31
|
-
let finalClass = $derived([
|
|
32
|
-
isActive
|
|
33
|
-
? active({ class: clsx(theme?.active, styling.active) })
|
|
34
|
-
: base({ class: clsx(theme?.base, className) })
|
|
35
|
-
]);
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<li class={li({ class: clsx(styling.li) })}>
|
|
39
|
-
{#if restProps.href === undefined && restProps.onclick === undefined}
|
|
40
|
-
<div {...restProps} class={finalClass}>
|
|
41
|
-
{@render children()}
|
|
42
|
-
</div>
|
|
43
|
-
{:else if restProps.href === undefined}
|
|
44
|
-
<button type="button" {...restProps} class={finalClass}>
|
|
45
|
-
{@render children()}
|
|
46
|
-
</button>
|
|
47
|
-
{:else}
|
|
48
|
-
<a {...restProps} class={finalClass}>
|
|
49
|
-
{@render children()}
|
|
50
|
-
</a>
|
|
51
|
-
{/if}
|
|
52
|
-
</li>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { dropdownItem } from './index.js';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { getContext } from 'svelte';
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from '../../themes/themeUtils.js';
|
|
6
|
+
import type { DropdownItemProps } from '../../index.js';
|
|
7
|
+
|
|
8
|
+
let {
|
|
9
|
+
aClass,
|
|
10
|
+
children,
|
|
11
|
+
activeClass,
|
|
12
|
+
liClass,
|
|
13
|
+
classes,
|
|
14
|
+
class: className,
|
|
15
|
+
...restProps
|
|
16
|
+
}: DropdownItemProps = $props();
|
|
17
|
+
|
|
18
|
+
warnThemeDeprecation(
|
|
19
|
+
'DropdownItem',
|
|
20
|
+
{ aClass, activeClass, liClass },
|
|
21
|
+
{ aClass: 'class', activeClass: 'active', liClass: 'li' }
|
|
22
|
+
);
|
|
23
|
+
const theme = getTheme('dropdownItem');
|
|
24
|
+
const styling = $derived(classes ?? { active: activeClass, li: liClass });
|
|
25
|
+
|
|
26
|
+
const activeUrl: { value: string } = getContext('activeUrl');
|
|
27
|
+
|
|
28
|
+
let isActive = $derived(activeUrl?.value ? restProps.href === activeUrl.value : false);
|
|
29
|
+
|
|
30
|
+
const { base, active, li } = dropdownItem();
|
|
31
|
+
let finalClass = $derived([
|
|
32
|
+
isActive
|
|
33
|
+
? active({ class: clsx(theme?.active, styling.active) })
|
|
34
|
+
: base({ class: clsx(theme?.base, className) })
|
|
35
|
+
]);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<li class={li({ class: clsx(styling.li) })}>
|
|
39
|
+
{#if restProps.href === undefined && restProps.onclick === undefined}
|
|
40
|
+
<div {...restProps} class={finalClass}>
|
|
41
|
+
{@render children()}
|
|
42
|
+
</div>
|
|
43
|
+
{:else if restProps.href === undefined}
|
|
44
|
+
<button type="button" {...restProps} class={finalClass}>
|
|
45
|
+
{@render children()}
|
|
46
|
+
</button>
|
|
47
|
+
{:else}
|
|
48
|
+
<a {...restProps} class={finalClass}>
|
|
49
|
+
{@render children()}
|
|
50
|
+
</a>
|
|
51
|
+
{/if}
|
|
52
|
+
</li>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getTheme, type FooterProps } from '../../index.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { footer } from './index.js';
|
|
5
|
-
|
|
6
|
-
let { children, footerType = 'default', class: className, ...restProps }: FooterProps = $props();
|
|
7
|
-
|
|
8
|
-
const theme = getTheme('footer');
|
|
9
|
-
|
|
10
|
-
const footerCls = $derived(footer({ footerType, class: clsx(theme, className) }));
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<footer {...restProps} class={footerCls}>
|
|
14
|
-
{@render children()}
|
|
15
|
-
</footer>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getTheme, type FooterProps } from '../../index.js';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { footer } from './index.js';
|
|
5
|
+
|
|
6
|
+
let { children, footerType = 'default', class: className, ...restProps }: FooterProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme('footer');
|
|
9
|
+
|
|
10
|
+
const footerCls = $derived(footer({ footerType, class: clsx(theme, className) }));
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<footer {...restProps} class={footerCls}>
|
|
14
|
+
{@render children()}
|
|
15
|
+
</footer>
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getTheme, type FooterBrandProps } from '../../index.js';
|
|
3
|
-
import clsx, { type ClassValue } from 'clsx';
|
|
4
|
-
import { footerBrand } from './index.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
children,
|
|
8
|
-
aClass,
|
|
9
|
-
spanClass,
|
|
10
|
-
imgClass,
|
|
11
|
-
href,
|
|
12
|
-
src,
|
|
13
|
-
alt,
|
|
14
|
-
name,
|
|
15
|
-
...restProps
|
|
16
|
-
}: FooterBrandProps = $props();
|
|
17
|
-
|
|
18
|
-
const theme = getTheme('footerBrand');
|
|
19
|
-
|
|
20
|
-
const { base, span, img } = $derived(footerBrand());
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
{#if href}
|
|
24
|
-
<a {...restProps} {href} class={base({ class: clsx(theme?.base, aClass) })}>
|
|
25
|
-
{#if src}
|
|
26
|
-
<img {src} class={img({ class: clsx(theme?.img, imgClass) })} {alt} />
|
|
27
|
-
{/if}
|
|
28
|
-
{#if name}
|
|
29
|
-
<span class={span({ class: clsx(theme?.span, spanClass) })}>{name}</span>
|
|
30
|
-
{/if}
|
|
31
|
-
{#if children}
|
|
32
|
-
{@render children()}
|
|
33
|
-
{/if}
|
|
34
|
-
</a>
|
|
35
|
-
{:else}
|
|
36
|
-
<img {src} class={img({ class: clsx(imgClass) })} {alt} />
|
|
37
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getTheme, type FooterBrandProps } from '../../index.js';
|
|
3
|
+
import clsx, { type ClassValue } from 'clsx';
|
|
4
|
+
import { footerBrand } from './index.js';
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
children,
|
|
8
|
+
aClass,
|
|
9
|
+
spanClass,
|
|
10
|
+
imgClass,
|
|
11
|
+
href,
|
|
12
|
+
src,
|
|
13
|
+
alt,
|
|
14
|
+
name,
|
|
15
|
+
...restProps
|
|
16
|
+
}: FooterBrandProps = $props();
|
|
17
|
+
|
|
18
|
+
const theme = getTheme('footerBrand');
|
|
19
|
+
|
|
20
|
+
const { base, span, img } = $derived(footerBrand());
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
{#if href}
|
|
24
|
+
<a {...restProps} {href} class={base({ class: clsx(theme?.base, aClass) })}>
|
|
25
|
+
{#if src}
|
|
26
|
+
<img {src} class={img({ class: clsx(theme?.img, imgClass) })} {alt} />
|
|
27
|
+
{/if}
|
|
28
|
+
{#if name}
|
|
29
|
+
<span class={span({ class: clsx(theme?.span, spanClass) })}>{name}</span>
|
|
30
|
+
{/if}
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{/if}
|
|
34
|
+
</a>
|
|
35
|
+
{:else}
|
|
36
|
+
<img {src} class={img({ class: clsx(imgClass) })} {alt} />
|
|
37
|
+
{/if}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getTheme, warnThemeDeprecation } from '../../themes/themeUtils.js';
|
|
3
|
-
import clsx, { type ClassValue } from 'clsx';
|
|
4
|
-
import { footerCopyright } from './index.js';
|
|
5
|
-
import type { FooterCopyrightProps } from '../../index.js';
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
spanClass,
|
|
9
|
-
aClass,
|
|
10
|
-
href,
|
|
11
|
-
by,
|
|
12
|
-
copyrightMessage = 'All Rights Reserved.',
|
|
13
|
-
year,
|
|
14
|
-
bySpanClass,
|
|
15
|
-
classes,
|
|
16
|
-
class: className,
|
|
17
|
-
...restProps
|
|
18
|
-
}: FooterCopyrightProps = $props();
|
|
19
|
-
|
|
20
|
-
warnThemeDeprecation(
|
|
21
|
-
'FooterCopyright',
|
|
22
|
-
{ aClass, spanClass, bySpanClass },
|
|
23
|
-
{ aClass: 'link', spanClass: 'class', bySpanClass: 'bySpan' }
|
|
24
|
-
);
|
|
25
|
-
// link, bySpan
|
|
26
|
-
const styling = $derived(classes ?? { bySpan: bySpanClass, link: aClass });
|
|
27
|
-
|
|
28
|
-
if (!year) year = new Date().getFullYear();
|
|
29
|
-
|
|
30
|
-
const { base, link, bySpan } = footerCopyright();
|
|
31
|
-
|
|
32
|
-
const theme = getTheme('footerCopyright');
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<span class={base({ class: clsx(theme?.base, className ?? spanClass) })}>
|
|
36
|
-
© {year}
|
|
37
|
-
{#if href}
|
|
38
|
-
<a {...restProps} {href} class={link({ class: clsx(theme?.link, styling.link) })}>
|
|
39
|
-
{by}
|
|
40
|
-
</a>
|
|
41
|
-
{:else}
|
|
42
|
-
<span class={bySpan({ class: clsx(theme?.bySpan, styling.bySpan) })}>{by}</span>
|
|
43
|
-
{/if}
|
|
44
|
-
{copyrightMessage}
|
|
45
|
-
</span>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getTheme, warnThemeDeprecation } from '../../themes/themeUtils.js';
|
|
3
|
+
import clsx, { type ClassValue } from 'clsx';
|
|
4
|
+
import { footerCopyright } from './index.js';
|
|
5
|
+
import type { FooterCopyrightProps } from '../../index.js';
|
|
6
|
+
|
|
7
|
+
let {
|
|
8
|
+
spanClass,
|
|
9
|
+
aClass,
|
|
10
|
+
href,
|
|
11
|
+
by,
|
|
12
|
+
copyrightMessage = 'All Rights Reserved.',
|
|
13
|
+
year,
|
|
14
|
+
bySpanClass,
|
|
15
|
+
classes,
|
|
16
|
+
class: className,
|
|
17
|
+
...restProps
|
|
18
|
+
}: FooterCopyrightProps = $props();
|
|
19
|
+
|
|
20
|
+
warnThemeDeprecation(
|
|
21
|
+
'FooterCopyright',
|
|
22
|
+
{ aClass, spanClass, bySpanClass },
|
|
23
|
+
{ aClass: 'link', spanClass: 'class', bySpanClass: 'bySpan' }
|
|
24
|
+
);
|
|
25
|
+
// link, bySpan
|
|
26
|
+
const styling = $derived(classes ?? { bySpan: bySpanClass, link: aClass });
|
|
27
|
+
|
|
28
|
+
if (!year) year = new Date().getFullYear();
|
|
29
|
+
|
|
30
|
+
const { base, link, bySpan } = footerCopyright();
|
|
31
|
+
|
|
32
|
+
const theme = getTheme('footerCopyright');
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<span class={base({ class: clsx(theme?.base, className ?? spanClass) })}>
|
|
36
|
+
© {year}
|
|
37
|
+
{#if href}
|
|
38
|
+
<a {...restProps} {href} class={link({ class: clsx(theme?.link, styling.link) })}>
|
|
39
|
+
{by}
|
|
40
|
+
</a>
|
|
41
|
+
{:else}
|
|
42
|
+
<span class={bySpan({ class: clsx(theme?.bySpan, styling.bySpan) })}>{by}</span>
|
|
43
|
+
{/if}
|
|
44
|
+
{copyrightMessage}
|
|
45
|
+
</span>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getTheme, type FooterIconProps } from '../../index.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { footerIcon } from './index.js';
|
|
5
|
-
|
|
6
|
-
let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
|
|
7
|
-
|
|
8
|
-
const theme = getTheme('footerIcon');
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
{#if href}
|
|
12
|
-
<a
|
|
13
|
-
{...restProps}
|
|
14
|
-
{href}
|
|
15
|
-
aria-label={ariaLabel}
|
|
16
|
-
class={footerIcon({ class: clsx(theme, className) })}
|
|
17
|
-
>
|
|
18
|
-
{@render children()}
|
|
19
|
-
</a>
|
|
20
|
-
{:else}
|
|
21
|
-
{@render children()}
|
|
22
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getTheme, type FooterIconProps } from '../../index.js';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { footerIcon } from './index.js';
|
|
5
|
+
|
|
6
|
+
let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme('footerIcon');
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
{#if href}
|
|
12
|
+
<a
|
|
13
|
+
{...restProps}
|
|
14
|
+
{href}
|
|
15
|
+
aria-label={ariaLabel}
|
|
16
|
+
class={footerIcon({ class: clsx(theme, className) })}
|
|
17
|
+
>
|
|
18
|
+
{@render children()}
|
|
19
|
+
</a>
|
|
20
|
+
{:else}
|
|
21
|
+
{@render children()}
|
|
22
|
+
{/if}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
</script>
|
|
3
|
-
|
|
4
|
-
<script lang="ts">
|
|
5
|
-
import { getTheme, warnThemeDeprecation } from '../../themes/themeUtils.js';
|
|
6
|
-
import clsx, { type ClassValue } from 'clsx';
|
|
7
|
-
import { footerLink } from './index.js';
|
|
8
|
-
import type { FooterLinkProps } from '../../index.js';
|
|
9
|
-
|
|
10
|
-
let {
|
|
11
|
-
children,
|
|
12
|
-
liClass,
|
|
13
|
-
aClass,
|
|
14
|
-
href,
|
|
15
|
-
classes,
|
|
16
|
-
class: className,
|
|
17
|
-
...restProps
|
|
18
|
-
}: FooterLinkProps = $props();
|
|
19
|
-
|
|
20
|
-
warnThemeDeprecation('FooterLink', { liClass, aClass }, { liClass: 'class', aClass: 'link' });
|
|
21
|
-
// link, bySpan
|
|
22
|
-
const styling = $derived(classes ?? { link: aClass });
|
|
23
|
-
|
|
24
|
-
const theme = getTheme('footerLink');
|
|
25
|
-
|
|
26
|
-
const { base, link } = footerLink();
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<li class={base({ class: clsx(theme?.base, className ?? liClass) })}>
|
|
30
|
-
<a {...restProps} {href} class={link({ class: clsx(theme?.link, styling.link) })}>
|
|
31
|
-
{@render children()}
|
|
32
|
-
</a>
|
|
33
|
-
</li>
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<script lang="ts">
|
|
5
|
+
import { getTheme, warnThemeDeprecation } from '../../themes/themeUtils.js';
|
|
6
|
+
import clsx, { type ClassValue } from 'clsx';
|
|
7
|
+
import { footerLink } from './index.js';
|
|
8
|
+
import type { FooterLinkProps } from '../../index.js';
|
|
9
|
+
|
|
10
|
+
let {
|
|
11
|
+
children,
|
|
12
|
+
liClass,
|
|
13
|
+
aClass,
|
|
14
|
+
href,
|
|
15
|
+
classes,
|
|
16
|
+
class: className,
|
|
17
|
+
...restProps
|
|
18
|
+
}: FooterLinkProps = $props();
|
|
19
|
+
|
|
20
|
+
warnThemeDeprecation('FooterLink', { liClass, aClass }, { liClass: 'class', aClass: 'link' });
|
|
21
|
+
// link, bySpan
|
|
22
|
+
const styling = $derived(classes ?? { link: aClass });
|
|
23
|
+
|
|
24
|
+
const theme = getTheme('footerLink');
|
|
25
|
+
|
|
26
|
+
const { base, link } = footerLink();
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<li class={base({ class: clsx(theme?.base, className ?? liClass) })}>
|
|
30
|
+
<a {...restProps} {href} class={link({ class: clsx(theme?.link, styling.link) })}>
|
|
31
|
+
{@render children()}
|
|
32
|
+
</a>
|
|
33
|
+
</li>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getTheme, type FooterLinkGroupProps } from '../../index.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { footerLinkGroup } from './index.js';
|
|
5
|
-
|
|
6
|
-
let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
|
|
7
|
-
|
|
8
|
-
const theme = getTheme('footerLinkGroup');
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<ul {...restProps} class={footerLinkGroup({ class: clsx(theme, className) })}>
|
|
12
|
-
{@render children()}
|
|
13
|
-
</ul>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getTheme, type FooterLinkGroupProps } from '../../index.js';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { footerLinkGroup } from './index.js';
|
|
5
|
+
|
|
6
|
+
let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme('footerLinkGroup');
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<ul {...restProps} class={footerLinkGroup({ class: clsx(theme, className) })}>
|
|
12
|
+
{@render children()}
|
|
13
|
+
</ul>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import 'iconify-icon';
|
|
3
|
-
|
|
4
|
-
let { icon, ...otherProps } = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<iconify-icon {icon} {...otherProps}></iconify-icon>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import 'iconify-icon';
|
|
3
|
+
|
|
4
|
+
let { icon, ...otherProps } = $props();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<iconify-icon {icon} {...otherProps}></iconify-icon>
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import { indicator } from './index.js';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
|
-
|
|
7
|
-
import { getTheme } from '../../themes/themeUtils.js';
|
|
8
|
-
import type { IndicatorProps } from '../../index.js';
|
|
9
|
-
|
|
10
|
-
let {
|
|
11
|
-
children,
|
|
12
|
-
color = 'primary',
|
|
13
|
-
cornerStyle = 'circular',
|
|
14
|
-
size = 'md',
|
|
15
|
-
border = false,
|
|
16
|
-
placement,
|
|
17
|
-
offset = true,
|
|
18
|
-
class: className,
|
|
19
|
-
...restProps
|
|
20
|
-
}: IndicatorProps = $props();
|
|
21
|
-
const theme = getTheme('indicator');
|
|
22
|
-
|
|
23
|
-
let hasChildren = !!children;
|
|
24
|
-
const base = $derived(
|
|
25
|
-
indicator({
|
|
26
|
-
color,
|
|
27
|
-
size,
|
|
28
|
-
cornerStyle,
|
|
29
|
-
border,
|
|
30
|
-
placement,
|
|
31
|
-
offset,
|
|
32
|
-
hasChildren,
|
|
33
|
-
class: clsx(theme, className)
|
|
34
|
-
})
|
|
35
|
-
);
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<div {...restProps} class={base}>
|
|
39
|
-
{#if children}
|
|
40
|
-
{@render children()}
|
|
41
|
-
{/if}
|
|
42
|
-
</div>
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { indicator } from './index.js';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
|
|
7
|
+
import { getTheme } from '../../themes/themeUtils.js';
|
|
8
|
+
import type { IndicatorProps } from '../../index.js';
|
|
9
|
+
|
|
10
|
+
let {
|
|
11
|
+
children,
|
|
12
|
+
color = 'primary',
|
|
13
|
+
cornerStyle = 'circular',
|
|
14
|
+
size = 'md',
|
|
15
|
+
border = false,
|
|
16
|
+
placement,
|
|
17
|
+
offset = true,
|
|
18
|
+
class: className,
|
|
19
|
+
...restProps
|
|
20
|
+
}: IndicatorProps = $props();
|
|
21
|
+
const theme = getTheme('indicator');
|
|
22
|
+
|
|
23
|
+
let hasChildren = !!children;
|
|
24
|
+
const base = $derived(
|
|
25
|
+
indicator({
|
|
26
|
+
color,
|
|
27
|
+
size,
|
|
28
|
+
cornerStyle,
|
|
29
|
+
border,
|
|
30
|
+
placement,
|
|
31
|
+
offset,
|
|
32
|
+
hasChildren,
|
|
33
|
+
class: clsx(theme, className)
|
|
34
|
+
})
|
|
35
|
+
);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<div {...restProps} class={base}>
|
|
39
|
+
{#if children}
|
|
40
|
+
{@render children()}
|
|
41
|
+
{/if}
|
|
42
|
+
</div>
|