negodesign 0.0.81 → 0.0.82
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 +133 -133
- package/dist/components/NegoDesign.svelte +21 -21
- package/dist/components/pages/admin/01/ui/AdminContent.svelte +14 -14
- package/dist/components/pages/admin/01/ui/AdminPanel.svelte +46 -46
- package/dist/components/pages/product-details/shared/ProductDetailFilesVertical.svelte +103 -103
- package/dist/components/pages/profile-user/shared/ProfileUserAddress.svelte +83 -83
- package/dist/components/pages/profile-user/shared/ProfileUserTabs.svelte +80 -80
- package/dist/components/pages/security/auth/PageAuth01.svelte +62 -62
- package/dist/components/pages/security/auth/PageAuth02.svelte +40 -40
- package/dist/components/pages/security/auth/PageAuth03.svelte +40 -40
- package/dist/components/pages/security/login/01/ui/FormLogin.svelte +91 -63
- package/dist/components/pages/security/login/01/ui/FormLogin.svelte.d.ts +2 -0
- package/dist/components/pages/security/login/01/ui/FormLoginEmailPassword.svelte +49 -26
- package/dist/components/pages/security/login/01/ui/FormLoginEmailPassword.svelte.d.ts +2 -0
- package/dist/components/pages/security/login/01/ui/FormLoginPhonePassword.svelte +49 -26
- package/dist/components/pages/security/login/01/ui/FormLoginPhonePassword.svelte.d.ts +2 -0
- package/dist/components/pages/security/login/01/ui/FormLoginUsernamePassword.svelte +49 -26
- package/dist/components/pages/security/login/01/ui/FormLoginUsernamePassword.svelte.d.ts +2 -0
- package/dist/components/pages/security/login/01/ui/LoginCard01.svelte +148 -132
- package/dist/components/pages/security/login/01/ui/LoginCard01.svelte.d.ts +2 -0
- package/dist/components/pages/security/login/01/ui/PageLogin01.svelte +66 -64
- package/dist/components/pages/security/login/02/ui/FormLogin02.svelte +82 -72
- package/dist/components/pages/security/login/02/ui/FormLogin02.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/02/ui/FormLoginEmailPassword02.svelte +27 -26
- package/dist/components/pages/security/login/02/ui/FormLoginEmailPassword02.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/02/ui/FormLoginPhonePassword02.svelte +27 -26
- package/dist/components/pages/security/login/02/ui/FormLoginPhonePassword02.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/02/ui/FormLoginUsernamePassword02.svelte +27 -26
- package/dist/components/pages/security/login/02/ui/FormLoginUsernamePassword02.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/02/ui/LoginCard02.svelte +15 -2
- package/dist/components/pages/security/login/02/ui/LoginCard02.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/02/ui/PageLogin02.svelte +2 -0
- package/dist/components/pages/security/login/03/ui/FormLogin03.svelte +94 -91
- package/dist/components/pages/security/login/03/ui/FormLogin03.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/03/ui/FormLoginEmailPassword03.svelte +27 -26
- package/dist/components/pages/security/login/03/ui/FormLoginEmailPassword03.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/03/ui/FormLoginPhonePassword03.svelte +27 -26
- package/dist/components/pages/security/login/03/ui/FormLoginPhonePassword03.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/03/ui/FormLoginUsernamePassword03.svelte +27 -26
- package/dist/components/pages/security/login/03/ui/FormLoginUsernamePassword03.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/03/ui/LoginCard03.svelte +15 -2
- package/dist/components/pages/security/login/03/ui/LoginCard03.svelte.d.ts +1 -0
- package/dist/components/pages/security/login/03/ui/PageLogin03.svelte +2 -0
- package/dist/components/pages/security/login/PageLogin.svelte +30 -30
- package/dist/components/pages/security/login/types.d.ts +1 -0
- package/dist/components/pages/security/register/01/ui/PageRegister01.svelte +78 -76
- package/dist/components/pages/security/register/01/ui/RegisterCard01.svelte +107 -104
- package/dist/components/pages/security/register/01/ui/RegisterCard01.svelte.d.ts +1 -0
- package/dist/components/pages/security/register/02/ui/PageRegister02.svelte +2 -0
- package/dist/components/pages/security/register/02/ui/RegisterCard02.svelte +3 -1
- package/dist/components/pages/security/register/02/ui/RegisterCard02.svelte.d.ts +1 -0
- package/dist/components/pages/security/register/03/ui/PageRegister03.svelte +2 -0
- package/dist/components/pages/security/register/03/ui/RegisterCard03.svelte +3 -1
- package/dist/components/pages/security/register/03/ui/RegisterCard03.svelte.d.ts +1 -0
- package/dist/components/pages/security/register/FormRegister.svelte +148 -146
- package/dist/components/pages/security/register/FormRegister.svelte.d.ts +1 -0
- package/dist/components/pages/security/register/types.d.ts +1 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte +29 -29
- package/dist/components/ui/avatar/avatar-image.svelte +38 -38
- package/dist/components/ui/avatar/avatar.svelte +39 -39
- package/dist/components/ui/badge/badge.svelte +46 -46
- package/dist/components/ui/banner/AdCardBanner.svelte +74 -74
- package/dist/components/ui/banner/CtaCardBanner.svelte +118 -118
- package/dist/components/ui/banner/CtaCardImageBanner.svelte +94 -94
- package/dist/components/ui/breadcrumb/core/breadcrumb-list.svelte +31 -31
- package/dist/components/ui/button/ButtonBack.svelte +18 -18
- package/dist/components/ui/button/ButtonLogin.svelte +19 -15
- package/dist/components/ui/button/ButtonLoginWith.svelte +57 -57
- package/dist/components/ui/button/ButtonSend.svelte +15 -15
- package/dist/components/ui/button/button.svelte +100 -86
- package/dist/components/ui/button/button.svelte.d.ts +1 -0
- package/dist/components/ui/card/core/highlight/01/CardHighlight01.svelte +103 -103
- package/dist/components/ui/card/core/highlight/02/CardHighlight02.svelte +99 -99
- package/dist/components/ui/card/core/highlight/CardHighlight.svelte +22 -22
- package/dist/components/ui/card/core/media/01/CardMedia01.svelte +133 -133
- package/dist/components/ui/card/core/media/02/CardMedia02.svelte +127 -127
- package/dist/components/ui/card/core/media/CardMedia.svelte +18 -18
- package/dist/components/ui/card/core/product/01/CardProduct01.svelte +136 -136
- package/dist/components/ui/card/core/product/02/CardProduct02.svelte +124 -124
- package/dist/components/ui/card/core/product/CardProduct.svelte +22 -22
- package/dist/components/ui/card/core/profile/01/CardProfile01.svelte +134 -134
- package/dist/components/ui/card/core/profile/02/CardProfile02.svelte +132 -132
- package/dist/components/ui/card/core/profile/CardProfile.svelte +18 -18
- package/dist/components/ui/card/core/promotion/CardPromotion.svelte +139 -139
- package/dist/components/ui/card/core/promotion/CardPromotionPrice.svelte +32 -32
- package/dist/components/ui/card/core/shared/CardButton.svelte +42 -42
- package/dist/components/ui/card/core/shared/CardCart.svelte +36 -36
- package/dist/components/ui/card/core/shared/CardDescription.svelte +41 -41
- package/dist/components/ui/card/core/shared/CardFavorite.svelte +33 -33
- package/dist/components/ui/card/core/shared/CardLogo.svelte +19 -19
- package/dist/components/ui/card/core/shared/CardPhoneOrWhatsapp.svelte +45 -45
- package/dist/components/ui/card/core/shared/CardStarRating.svelte +24 -24
- package/dist/components/ui/card/core/shared/CardTags.svelte +95 -95
- package/dist/components/ui/card/core/shared/CardThumbnailVideo.svelte +232 -232
- package/dist/components/ui/card/core/shared/CardTitlePrice.svelte +24 -24
- package/dist/components/ui/card/core/shared/TruncatableText.svelte +49 -49
- package/dist/components/ui/carousel/carousel-content.svelte +56 -56
- package/dist/components/ui/carousel/carousel-item.svelte +29 -29
- package/dist/components/ui/carousel/carousel-next.svelte +40 -40
- package/dist/components/ui/carousel/carousel-previous.svelte +40 -40
- package/dist/components/ui/carousel/carousel.svelte +225 -225
- package/dist/components/ui/carousel/core/badge/ui/CarouselBadge.svelte +108 -108
- package/dist/components/ui/carousel/core/grid/shared/ui/CarouselGridSlot.svelte +38 -38
- package/dist/components/ui/carousel/core/hero/ui/CarouselHero.svelte +181 -181
- package/dist/components/ui/carousel/core/highlights/ui/CarouselHighlights.svelte +67 -67
- package/dist/components/ui/carousel/core/product/ui/CarouselProduct.svelte +57 -57
- package/dist/components/ui/carousel/core/promotion/ui/CarouselPromotion.svelte +67 -67
- package/dist/components/ui/carousel/core/shared/ui/CarouselHeader.svelte +59 -59
- package/dist/components/ui/checkbox/checkbox.svelte +96 -96
- package/dist/components/ui/collapsible/collapsible-content.svelte +30 -30
- package/dist/components/ui/collapsible/collapsible-trigger.svelte +51 -51
- package/dist/components/ui/collapsible/collapsible.svelte +66 -66
- package/dist/components/ui/data-table/flex-render.svelte +40 -40
- package/dist/components/ui/datatable/ui/DataTableActions.svelte +28 -28
- package/dist/components/ui/datatable/ui/DataTableCheckbox.svelte +22 -22
- package/dist/components/ui/datatable/ui/DataTableContent.svelte +59 -59
- package/dist/components/ui/datatable/ui/DataTableCore.svelte +148 -148
- package/dist/components/ui/datatable/ui/DataTableDragHandle.svelte +8 -8
- package/dist/components/ui/datatable/ui/DataTableListFilter.svelte +60 -60
- package/dist/components/ui/datatable/ui/DataTableListPagination.svelte +35 -35
- package/dist/components/ui/drawer/drawer-close.svelte +41 -41
- package/dist/components/ui/drawer/drawer-content.svelte +81 -81
- package/dist/components/ui/drawer/drawer-description.svelte +19 -19
- package/dist/components/ui/drawer/drawer-footer.svelte +20 -20
- package/dist/components/ui/drawer/drawer-header.svelte +20 -20
- package/dist/components/ui/drawer/drawer-nested.svelte +34 -34
- package/dist/components/ui/drawer/drawer-overlay.svelte +25 -25
- package/dist/components/ui/drawer/drawer-portal.svelte +19 -19
- package/dist/components/ui/drawer/drawer-title.svelte +19 -19
- package/dist/components/ui/drawer/drawer-trigger.svelte +42 -42
- package/dist/components/ui/drawer/drawer.svelte +74 -74
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte +25 -25
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +69 -69
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +106 -106
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +27 -27
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte +21 -21
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +60 -60
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +27 -27
- package/dist/components/ui/dropdown-menu/dropdown-menu-portal.svelte +6 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +43 -43
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +70 -70
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +20 -20
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +33 -33
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +57 -57
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub.svelte +76 -76
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +68 -68
- package/dist/components/ui/dropdown-menu/dropdown-menu.svelte +53 -53
- package/dist/components/ui/empty/empty-content.svelte +19 -19
- package/dist/components/ui/empty/empty-description.svelte +19 -19
- package/dist/components/ui/empty/empty-header.svelte +19 -19
- package/dist/components/ui/empty/empty-media.svelte +41 -41
- package/dist/components/ui/empty/empty-title.svelte +19 -19
- package/dist/components/ui/empty/empty.svelte +19 -19
- package/dist/components/ui/footer/ui/Footer.svelte +18 -18
- package/dist/components/ui/form/ui/calendar/Calendar.svelte +193 -193
- package/dist/components/ui/form/ui/calendar/CalendarCard.svelte +89 -89
- package/dist/components/ui/form/ui/calendar/DaysGrid.svelte +75 -75
- package/dist/components/ui/form/ui/calendar/MonthSelect.svelte +49 -49
- package/dist/components/ui/form/ui/calendar/YearSelect.svelte +116 -116
- package/dist/components/ui/form/ui/input-base.svelte +83 -83
- package/dist/components/ui/form/ui/input-calendar-interval.svelte +178 -178
- package/dist/components/ui/form/ui/input-calendar.svelte +109 -109
- package/dist/components/ui/form/ui/input-email-or-phone.svelte +23 -23
- package/dist/components/ui/form/ui/input-email.svelte +23 -23
- package/dist/components/ui/form/ui/input-password-confirm.svelte +23 -23
- package/dist/components/ui/form/ui/input-password.svelte +23 -23
- package/dist/components/ui/form/ui/input-phone.svelte +43 -37
- package/dist/components/ui/form/ui/input-select.svelte +246 -246
- package/dist/components/ui/form/ui/input-username.svelte +22 -22
- package/dist/components/ui/grid/core/ui/01/Grid01.svelte +30 -30
- package/dist/components/ui/grid/core/ui/02/Grid02.svelte +30 -30
- package/dist/components/ui/grid/core/ui/ItemsPanel.svelte +26 -26
- package/dist/components/ui/grid/core/ui/ItemsPanelCarousel.svelte +37 -37
- package/dist/components/ui/grid/core/ui/ItemsPanelGrid.svelte +43 -43
- package/dist/components/ui/grid/core/ui/ItemsSimpleGrid.svelte +45 -45
- package/dist/components/ui/grid/core/ui/shared/DescriptionGrid.svelte +23 -23
- package/dist/components/ui/grid/core/ui/shared/IconRenderGrid.svelte +23 -23
- package/dist/components/ui/grid/core/ui/shared/TitleGrid.svelte +19 -19
- package/dist/components/ui/hero/SimpleHero.svelte +65 -65
- package/dist/components/ui/input-otp/input-otp-group.svelte +22 -22
- package/dist/components/ui/input-otp/input-otp-separator.svelte +27 -27
- package/dist/components/ui/input-otp/input-otp-slot.svelte +63 -63
- package/dist/components/ui/input-otp/input-otp.svelte +181 -181
- package/dist/components/ui/label/core/LabelOr.svelte +25 -25
- package/dist/components/ui/label/label.svelte +19 -19
- package/dist/components/ui/language-switcher/language-switcher.svelte +48 -48
- package/dist/components/ui/light-switch/light-switch.svelte +48 -48
- package/dist/components/ui/link/link-forget-password.svelte +12 -12
- package/dist/components/ui/link/link-privacy-polity.svelte +12 -12
- package/dist/components/ui/link/link-terms-of-service.svelte +12 -12
- package/dist/components/ui/modal/core/ui/ModalCore.svelte +132 -132
- package/dist/components/ui/modal/form/index.d.ts +3 -2
- package/dist/components/ui/modal/form/index.js +2 -1
- package/dist/components/ui/modal/form/types.d.ts +41 -0
- package/dist/components/ui/modal/form/ui/ModalForm.svelte +11 -6
- package/dist/components/ui/modal/form/ui/ModalFormEmailOrPhone.svelte +204 -0
- package/dist/components/ui/modal/form/ui/ModalFormEmailOrPhone.svelte.d.ts +4 -0
- package/dist/components/ui/modal/grid/ui/02/ModalGridSelection02.svelte +146 -146
- package/dist/components/ui/modal/share/ui/ModalShareSelection.svelte +156 -156
- package/dist/components/ui/nav/ui/ComplexMenu.svelte +51 -51
- package/dist/components/ui/nav/ui/Menu.svelte +72 -72
- package/dist/components/ui/nav/ui/SimpleMenu.svelte +14 -14
- package/dist/components/ui/nav/ui/mobile/ComplexMenuMobile.svelte +125 -125
- package/dist/components/ui/nav/ui/mobile/MenuMobile.svelte +54 -54
- package/dist/components/ui/nav/ui/shared/MenuButton.svelte +51 -51
- package/dist/components/ui/nav/ui/shared/MenuLinks.svelte +40 -40
- package/dist/components/ui/nav/ui/shared/MenuListItem.svelte +44 -44
- package/dist/components/ui/nav/ui/shared/MenuLogo.svelte +13 -13
- package/dist/components/ui/nav/ui/shared/dropdown/DropdownNavigationMenuItemGrid.svelte +30 -30
- package/dist/components/ui/nav/ui/shared/navigation/NavDropdown.svelte +88 -88
- package/dist/components/ui/nav/ui/shared/navigation/NavigationMenuItem.svelte +17 -17
- package/dist/components/ui/nav/ui/shared/navigation/NavigationMenuItemCard.svelte +53 -53
- package/dist/components/ui/nav/ui/shared/navigation/NavigationMenuItemGrid.svelte +35 -35
- package/dist/components/ui/nav/ui/shared/navigation/NavigationMenuItemList.svelte +24 -24
- package/dist/components/ui/nav/ui/shared/navigation/NavigationMenuItems.svelte +21 -21
- package/dist/components/ui/panel/CarouselSlot.svelte +57 -57
- package/dist/components/ui/panel/LeftHero.svelte +114 -114
- package/dist/components/ui/panel/NotFoundEmpty.svelte +66 -66
- package/dist/components/ui/phone-input/country-selector.svelte +87 -87
- package/dist/components/ui/phone-input/flag.svelte +11 -11
- package/dist/components/ui/phone-input/phone-input.svelte +163 -163
- package/dist/components/ui/popover/popover-close.svelte +25 -25
- package/dist/components/ui/popover/popover-content.svelte +92 -92
- package/dist/components/ui/popover/popover-portal.svelte +6 -6
- package/dist/components/ui/popover/popover-trigger.svelte +68 -68
- package/dist/components/ui/popover/popover.svelte +53 -53
- package/dist/components/ui/search/SearchInput.svelte +32 -32
- package/dist/components/ui/search/shared/SearchInputCore.svelte +66 -66
- package/dist/components/ui/separator/separator.svelte +28 -28
- package/dist/components/ui/sidebar/core/MenuBarSidebar.svelte +70 -70
- package/dist/components/ui/sidebar/core/ui/navbar/NavMenuBarSidebar.svelte +97 -97
- package/dist/components/ui/sidebar/core/ui/navbar/NavMenuBottomSidebar.svelte +33 -33
- package/dist/components/ui/sidebar/core/ui/navbar/NavMenuTopBarSidebar.svelte +101 -101
- package/dist/components/ui/sidebar/core/ui/navbar/nav-menu-header-sidebar.svelte +77 -77
- package/dist/components/ui/sidebar/sidebar-content.svelte +24 -24
- package/dist/components/ui/sidebar/sidebar-footer.svelte +21 -21
- package/dist/components/ui/sidebar/sidebar-group-content.svelte +21 -21
- package/dist/components/ui/sidebar/sidebar-menu-action.svelte +38 -38
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte +70 -70
- package/dist/components/ui/sidebar/sidebar-menu-sub-button.svelte +39 -39
- package/dist/components/ui/sidebar/sidebar-provider.svelte +62 -62
- package/dist/components/ui/sidebar/sidebar-rail.svelte +36 -36
- package/dist/components/ui/sidebar/sidebar-separator.svelte +21 -21
- package/dist/components/ui/sidebar/sidebar-trigger.svelte +36 -36
- package/dist/components/ui/sidebar/sidebar.svelte +118 -118
- package/dist/components/ui/skeleton/skeleton.svelte +19 -19
- package/dist/components/ui/star-rating/star-rating-star.svelte +66 -66
- package/dist/components/ui/star-rating/star-rating.svelte +149 -149
- package/dist/components/ui/table/table-body.svelte +15 -15
- package/dist/components/ui/table/table-caption.svelte +20 -20
- package/dist/components/ui/table/table-cell.svelte +15 -15
- package/dist/components/ui/table/table-footer.svelte +20 -20
- package/dist/components/ui/table/table-head.svelte +15 -15
- package/dist/components/ui/table/table-header.svelte +20 -20
- package/dist/components/ui/table/table-row.svelte +15 -15
- package/dist/components/ui/table/table.svelte +17 -17
- package/dist/components/ui/tabs/data/TabModel.d.ts +1 -0
- package/dist/components/ui/tabs/ui/tab-underline.svelte +47 -43
- package/dist/components/ui/underline-tabs/underline-tabs-content.svelte +33 -33
- package/dist/components/ui/underline-tabs/underline-tabs-list.svelte +40 -40
- package/dist/components/ui/underline-tabs/underline-tabs-trigger.svelte +91 -91
- package/dist/components/ui/underline-tabs/underline-tabs.svelte +61 -61
- package/dist/docs/ApiTable.svelte +42 -42
- package/dist/docs/CodeBlock.svelte +26 -26
- package/dist/docs/DocsHeader.svelte +25 -25
- package/dist/docs/DocsSidebar.svelte +108 -108
- package/dist/docs/components.js +624 -584
- package/dist/globals.css +27 -7
- package/dist/i18n/langs/en.d.ts +3 -1
- package/dist/i18n/langs/en.js +3 -1
- package/dist/i18n/langs/pt.d.ts +3 -1
- package/dist/i18n/langs/pt.js +3 -1
- package/dist/i18n/translations.d.ts +6 -2
- package/dist/index.d.ts +12 -0
- package/dist/index.js +12 -0
- package/dist/styles/globals.css +283 -283
- package/dist/types/index.d.ts +3 -1
- package/package.json +81 -81
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { InputLabelProps } from "../data/InputLabel.svelte.js";
|
|
3
|
-
import InputBase from "./input-base.svelte";
|
|
4
|
-
import { t } from "../../../../i18n";
|
|
5
|
-
|
|
6
|
-
/** Username input field with icon and label. */
|
|
7
|
-
let {
|
|
8
|
-
label,
|
|
9
|
-
placeholder,
|
|
10
|
-
value = $bindable(""),
|
|
11
|
-
...restProps
|
|
12
|
-
}: InputLabelProps = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<InputBase
|
|
16
|
-
label={label || $t("input.username.label")}
|
|
17
|
-
placeholder={placeholder || $t("input.username.placeholder")}
|
|
18
|
-
isLabel
|
|
19
|
-
isIcon
|
|
20
|
-
bind:value
|
|
21
|
-
{...restProps}
|
|
22
|
-
/>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { InputLabelProps } from "../data/InputLabel.svelte.js";
|
|
3
|
+
import InputBase from "./input-base.svelte";
|
|
4
|
+
import { t } from "../../../../i18n";
|
|
5
|
+
|
|
6
|
+
/** Username input field with icon and label. */
|
|
7
|
+
let {
|
|
8
|
+
label,
|
|
9
|
+
placeholder,
|
|
10
|
+
value = $bindable(""),
|
|
11
|
+
...restProps
|
|
12
|
+
}: InputLabelProps = $props();
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<InputBase
|
|
16
|
+
label={label || $t("input.username.label")}
|
|
17
|
+
placeholder={placeholder || $t("input.username.placeholder")}
|
|
18
|
+
isLabel
|
|
19
|
+
isIcon
|
|
20
|
+
bind:value
|
|
21
|
+
{...restProps}
|
|
22
|
+
/>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { ItemGridProps } from "../../data/types";
|
|
3
|
-
import DescriptionGrid from "../shared/DescriptionGrid.svelte";
|
|
4
|
-
import IconRenderGrid from "../shared/IconRenderGrid.svelte";
|
|
5
|
-
import TitleGrid from "../shared/TitleGrid.svelte";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
id,
|
|
9
|
-
icon,
|
|
10
|
-
title,
|
|
11
|
-
isLoading,
|
|
12
|
-
iconClass,
|
|
13
|
-
titleClass,
|
|
14
|
-
description,
|
|
15
|
-
itemClassName,
|
|
16
|
-
descriptionClass,
|
|
17
|
-
onClick,
|
|
18
|
-
}: ItemGridProps = $props();
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<button
|
|
22
|
-
onclick={() => {
|
|
23
|
-
if (id && onClick) onClick(id);
|
|
24
|
-
}}
|
|
25
|
-
class="flex flex-col justify-center items-center gap-2 rounded-xl {itemClassName}"
|
|
26
|
-
>
|
|
27
|
-
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
28
|
-
<TitleGrid {titleClass} {title} {isLoading} />
|
|
29
|
-
<DescriptionGrid {descriptionClass} {description} {isLoading} />
|
|
30
|
-
</button>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { ItemGridProps } from "../../data/types";
|
|
3
|
+
import DescriptionGrid from "../shared/DescriptionGrid.svelte";
|
|
4
|
+
import IconRenderGrid from "../shared/IconRenderGrid.svelte";
|
|
5
|
+
import TitleGrid from "../shared/TitleGrid.svelte";
|
|
6
|
+
|
|
7
|
+
let {
|
|
8
|
+
id,
|
|
9
|
+
icon,
|
|
10
|
+
title,
|
|
11
|
+
isLoading,
|
|
12
|
+
iconClass,
|
|
13
|
+
titleClass,
|
|
14
|
+
description,
|
|
15
|
+
itemClassName,
|
|
16
|
+
descriptionClass,
|
|
17
|
+
onClick,
|
|
18
|
+
}: ItemGridProps = $props();
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<button
|
|
22
|
+
onclick={() => {
|
|
23
|
+
if (id && onClick) onClick(id);
|
|
24
|
+
}}
|
|
25
|
+
class="flex flex-col justify-center items-center gap-2 rounded-xl {itemClassName}"
|
|
26
|
+
>
|
|
27
|
+
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
28
|
+
<TitleGrid {titleClass} {title} {isLoading} />
|
|
29
|
+
<DescriptionGrid {descriptionClass} {description} {isLoading} />
|
|
30
|
+
</button>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { ItemGridProps } from "../../data/types";
|
|
3
|
-
import DescriptionGrid from "../shared/DescriptionGrid.svelte";
|
|
4
|
-
import IconRenderGrid from "../shared/IconRenderGrid.svelte";
|
|
5
|
-
import TitleGrid from "../shared/TitleGrid.svelte";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
id,
|
|
9
|
-
icon,
|
|
10
|
-
title,
|
|
11
|
-
isLoading,
|
|
12
|
-
description,
|
|
13
|
-
iconClass,
|
|
14
|
-
titleClass,
|
|
15
|
-
itemClassName,
|
|
16
|
-
descriptionClass,
|
|
17
|
-
onClick,
|
|
18
|
-
}: ItemGridProps = $props();
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<button
|
|
22
|
-
onclick={() => {
|
|
23
|
-
if (id && onClick) onClick(id);
|
|
24
|
-
}}
|
|
25
|
-
class="flex flex-col justify-center items-center gap-2 border rounded-lg p-2 cursor-pointer {itemClassName}"
|
|
26
|
-
>
|
|
27
|
-
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
28
|
-
<TitleGrid {titleClass} {title} {isLoading} />
|
|
29
|
-
<DescriptionGrid {descriptionClass} {description} {isLoading} />
|
|
30
|
-
</button>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { ItemGridProps } from "../../data/types";
|
|
3
|
+
import DescriptionGrid from "../shared/DescriptionGrid.svelte";
|
|
4
|
+
import IconRenderGrid from "../shared/IconRenderGrid.svelte";
|
|
5
|
+
import TitleGrid from "../shared/TitleGrid.svelte";
|
|
6
|
+
|
|
7
|
+
let {
|
|
8
|
+
id,
|
|
9
|
+
icon,
|
|
10
|
+
title,
|
|
11
|
+
isLoading,
|
|
12
|
+
description,
|
|
13
|
+
iconClass,
|
|
14
|
+
titleClass,
|
|
15
|
+
itemClassName,
|
|
16
|
+
descriptionClass,
|
|
17
|
+
onClick,
|
|
18
|
+
}: ItemGridProps = $props();
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<button
|
|
22
|
+
onclick={() => {
|
|
23
|
+
if (id && onClick) onClick(id);
|
|
24
|
+
}}
|
|
25
|
+
class="flex flex-col justify-center items-center gap-2 border rounded-lg p-2 cursor-pointer {itemClassName}"
|
|
26
|
+
>
|
|
27
|
+
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
28
|
+
<TitleGrid {titleClass} {title} {isLoading} />
|
|
29
|
+
<DescriptionGrid {descriptionClass} {description} {isLoading} />
|
|
30
|
+
</button>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { GridProps } from "../data/types";
|
|
3
|
-
import PanelCarousel from "./ItemsPanelCarousel.svelte";
|
|
4
|
-
import PanelGrid from "./ItemsPanelGrid.svelte";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
style = "grid",
|
|
8
|
-
onClick,
|
|
9
|
-
...restProps
|
|
10
|
-
}: GridProps & {
|
|
11
|
-
style?: "inline" | "grid";
|
|
12
|
-
} = $props();
|
|
13
|
-
|
|
14
|
-
let selectedKey = $state<string | number | undefined>("");
|
|
15
|
-
|
|
16
|
-
function selectItem(id: string | number) {
|
|
17
|
-
selectedKey = `${id}`;
|
|
18
|
-
onClick?.(id);
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
{#if style == "inline"}
|
|
23
|
-
<PanelCarousel {...restProps} {selectedKey} onClick={selectItem} />
|
|
24
|
-
{:else}
|
|
25
|
-
<PanelGrid {...restProps} {selectedKey} onClick={selectItem} />
|
|
26
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { GridProps } from "../data/types";
|
|
3
|
+
import PanelCarousel from "./ItemsPanelCarousel.svelte";
|
|
4
|
+
import PanelGrid from "./ItemsPanelGrid.svelte";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
style = "grid",
|
|
8
|
+
onClick,
|
|
9
|
+
...restProps
|
|
10
|
+
}: GridProps & {
|
|
11
|
+
style?: "inline" | "grid";
|
|
12
|
+
} = $props();
|
|
13
|
+
|
|
14
|
+
let selectedKey = $state<string | number | undefined>("");
|
|
15
|
+
|
|
16
|
+
function selectItem(id: string | number) {
|
|
17
|
+
selectedKey = `${id}`;
|
|
18
|
+
onClick?.(id);
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
{#if style == "inline"}
|
|
23
|
+
<PanelCarousel {...restProps} {selectedKey} onClick={selectItem} />
|
|
24
|
+
{:else}
|
|
25
|
+
<PanelGrid {...restProps} {selectedKey} onClick={selectItem} />
|
|
26
|
+
{/if}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import * as Carousel from "../../../carousel/index.js";
|
|
3
|
-
import type { GridProps } from "../data/types";
|
|
4
|
-
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
-
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
-
|
|
7
|
-
let { variant, isLoading, items, itemClassName, onClick }: GridProps =
|
|
8
|
-
$props();
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<Carousel.Root>
|
|
12
|
-
<Carousel.Content>
|
|
13
|
-
{#if isLoading}
|
|
14
|
-
<div class="flex items-center justify-between w-full gap-1 md:gap-2">
|
|
15
|
-
{#each Array.from({ length: 10 }) as _, i (`skeleton-${i}`)}
|
|
16
|
-
<Carousel.Item class="basis-auto relative">
|
|
17
|
-
{#if variant == 2}
|
|
18
|
-
<Grid02 title={`${i}`} description="" icon="" {isLoading} />
|
|
19
|
-
{:else}
|
|
20
|
-
<Grid01 title={`${i}`} description="" icon="" {isLoading} />
|
|
21
|
-
{/if}
|
|
22
|
-
</Carousel.Item>
|
|
23
|
-
{/each}
|
|
24
|
-
</div>
|
|
25
|
-
{:else}
|
|
26
|
-
{#each items as item, i (`panel-${i}`)}
|
|
27
|
-
<Carousel.Item class="basis-auto relative">
|
|
28
|
-
{#if variant == 2}
|
|
29
|
-
<Grid02 {...item} {onClick} {itemClassName} />
|
|
30
|
-
{:else}
|
|
31
|
-
<Grid01 {...item} {onClick} {itemClassName} />
|
|
32
|
-
{/if}
|
|
33
|
-
</Carousel.Item>
|
|
34
|
-
{/each}
|
|
35
|
-
{/if}
|
|
36
|
-
</Carousel.Content>
|
|
37
|
-
</Carousel.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import * as Carousel from "../../../carousel/index.js";
|
|
3
|
+
import type { GridProps } from "../data/types";
|
|
4
|
+
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
+
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
+
|
|
7
|
+
let { variant, isLoading, items, itemClassName, onClick }: GridProps =
|
|
8
|
+
$props();
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<Carousel.Root>
|
|
12
|
+
<Carousel.Content>
|
|
13
|
+
{#if isLoading}
|
|
14
|
+
<div class="flex items-center justify-between w-full gap-1 md:gap-2">
|
|
15
|
+
{#each Array.from({ length: 10 }) as _, i (`skeleton-${i}`)}
|
|
16
|
+
<Carousel.Item class="basis-auto relative">
|
|
17
|
+
{#if variant == 2}
|
|
18
|
+
<Grid02 title={`${i}`} description="" icon="" {isLoading} />
|
|
19
|
+
{:else}
|
|
20
|
+
<Grid01 title={`${i}`} description="" icon="" {isLoading} />
|
|
21
|
+
{/if}
|
|
22
|
+
</Carousel.Item>
|
|
23
|
+
{/each}
|
|
24
|
+
</div>
|
|
25
|
+
{:else}
|
|
26
|
+
{#each items as item, i (`panel-${i}`)}
|
|
27
|
+
<Carousel.Item class="basis-auto relative">
|
|
28
|
+
{#if variant == 2}
|
|
29
|
+
<Grid02 {...item} {onClick} {itemClassName} />
|
|
30
|
+
{:else}
|
|
31
|
+
<Grid01 {...item} {onClick} {itemClassName} />
|
|
32
|
+
{/if}
|
|
33
|
+
</Carousel.Item>
|
|
34
|
+
{/each}
|
|
35
|
+
{/if}
|
|
36
|
+
</Carousel.Content>
|
|
37
|
+
</Carousel.Root>
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { useDevice } from "../../../../../hooks/responsive.svelte";
|
|
3
|
-
import type { GridProps } from "../data/types";
|
|
4
|
-
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
-
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
variant,
|
|
9
|
-
className,
|
|
10
|
-
isLoading,
|
|
11
|
-
items,
|
|
12
|
-
itemClassName,
|
|
13
|
-
onClick,
|
|
14
|
-
}: GridProps = $props();
|
|
15
|
-
|
|
16
|
-
const styleMobile = "flex justify-between overflow-x-auto no-scrollbar";
|
|
17
|
-
|
|
18
|
-
const responsive = useDevice();
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<div
|
|
22
|
-
class="gap-4 my-2 {responsive.isMobile
|
|
23
|
-
? styleMobile
|
|
24
|
-
: 'grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 max-h-237.5 overflow-y-auto'} {className}"
|
|
25
|
-
>
|
|
26
|
-
{#if isLoading}
|
|
27
|
-
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
28
|
-
{#if variant == 2}
|
|
29
|
-
<Grid02 title={`${it}`} description="" icon="" {isLoading} />
|
|
30
|
-
{:else}
|
|
31
|
-
<Grid01 title={`${it}`} description="" icon="" {isLoading} />
|
|
32
|
-
{/if}
|
|
33
|
-
{/each}
|
|
34
|
-
{:else}
|
|
35
|
-
{#each items as item, i (i)}
|
|
36
|
-
{#if variant == 2}
|
|
37
|
-
<Grid02 {...item} {onClick} {itemClassName} />
|
|
38
|
-
{:else}
|
|
39
|
-
<Grid01 {...item} {onClick} {itemClassName} />
|
|
40
|
-
{/if}
|
|
41
|
-
{/each}
|
|
42
|
-
{/if}
|
|
43
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useDevice } from "../../../../../hooks/responsive.svelte";
|
|
3
|
+
import type { GridProps } from "../data/types";
|
|
4
|
+
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
+
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
+
|
|
7
|
+
let {
|
|
8
|
+
variant,
|
|
9
|
+
className,
|
|
10
|
+
isLoading,
|
|
11
|
+
items,
|
|
12
|
+
itemClassName,
|
|
13
|
+
onClick,
|
|
14
|
+
}: GridProps = $props();
|
|
15
|
+
|
|
16
|
+
const styleMobile = "flex justify-between overflow-x-auto no-scrollbar";
|
|
17
|
+
|
|
18
|
+
const responsive = useDevice();
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div
|
|
22
|
+
class="gap-4 my-2 {responsive.isMobile
|
|
23
|
+
? styleMobile
|
|
24
|
+
: 'grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 max-h-237.5 overflow-y-auto'} {className}"
|
|
25
|
+
>
|
|
26
|
+
{#if isLoading}
|
|
27
|
+
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
28
|
+
{#if variant == 2}
|
|
29
|
+
<Grid02 title={`${it}`} description="" icon="" {isLoading} />
|
|
30
|
+
{:else}
|
|
31
|
+
<Grid01 title={`${it}`} description="" icon="" {isLoading} />
|
|
32
|
+
{/if}
|
|
33
|
+
{/each}
|
|
34
|
+
{:else}
|
|
35
|
+
{#each items as item, i (i)}
|
|
36
|
+
{#if variant == 2}
|
|
37
|
+
<Grid02 {...item} {onClick} {itemClassName} />
|
|
38
|
+
{:else}
|
|
39
|
+
<Grid01 {...item} {onClick} {itemClassName} />
|
|
40
|
+
{/if}
|
|
41
|
+
{/each}
|
|
42
|
+
{/if}
|
|
43
|
+
</div>
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { useDevice } from "../../../../../hooks/responsive.svelte";
|
|
3
|
-
import type { GridProps } from "../data/types";
|
|
4
|
-
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
-
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
-
|
|
7
|
-
let { variant, className, isLoading, onClick, items }: GridProps = $props();
|
|
8
|
-
|
|
9
|
-
const styleMobile = "flex justify-between overflow-x-auto no-scrollbar";
|
|
10
|
-
|
|
11
|
-
const cols = (): string => {
|
|
12
|
-
const len = items?.length ?? 0;
|
|
13
|
-
if (len <= 3) return "grid grid-cols-3";
|
|
14
|
-
if (len <= 4) return "grid grid-cols-4";
|
|
15
|
-
if (len <= 5) return "grid grid-cols-5";
|
|
16
|
-
if (len <= 6) return "grid grid-cols-6";
|
|
17
|
-
if (len <= 7) return "grid grid-cols-7";
|
|
18
|
-
if (len > 7) return styleMobile;
|
|
19
|
-
return "grid grid-cols-1";
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const responsive = useDevice();
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<div
|
|
26
|
-
class="{responsive.isMobile ? styleMobile : cols()} gap-4 my-2 {className}"
|
|
27
|
-
>
|
|
28
|
-
{#if isLoading}
|
|
29
|
-
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
30
|
-
{#if variant == 2}
|
|
31
|
-
<Grid02 title={`${it}`} description="" icon="" {isLoading} />
|
|
32
|
-
{:else}
|
|
33
|
-
<Grid01 title={`${it}`} description="" icon="" {isLoading} />
|
|
34
|
-
{/if}
|
|
35
|
-
{/each}
|
|
36
|
-
{:else}
|
|
37
|
-
{#each items as item, i (i)}
|
|
38
|
-
{#if variant == 2}
|
|
39
|
-
<Grid02 {...item} {onClick} />
|
|
40
|
-
{:else}
|
|
41
|
-
<Grid01 {...item} {onClick} />
|
|
42
|
-
{/if}
|
|
43
|
-
{/each}
|
|
44
|
-
{/if}
|
|
45
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useDevice } from "../../../../../hooks/responsive.svelte";
|
|
3
|
+
import type { GridProps } from "../data/types";
|
|
4
|
+
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
+
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
+
|
|
7
|
+
let { variant, className, isLoading, onClick, items }: GridProps = $props();
|
|
8
|
+
|
|
9
|
+
const styleMobile = "flex justify-between overflow-x-auto no-scrollbar";
|
|
10
|
+
|
|
11
|
+
const cols = (): string => {
|
|
12
|
+
const len = items?.length ?? 0;
|
|
13
|
+
if (len <= 3) return "grid grid-cols-3";
|
|
14
|
+
if (len <= 4) return "grid grid-cols-4";
|
|
15
|
+
if (len <= 5) return "grid grid-cols-5";
|
|
16
|
+
if (len <= 6) return "grid grid-cols-6";
|
|
17
|
+
if (len <= 7) return "grid grid-cols-7";
|
|
18
|
+
if (len > 7) return styleMobile;
|
|
19
|
+
return "grid grid-cols-1";
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const responsive = useDevice();
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<div
|
|
26
|
+
class="{responsive.isMobile ? styleMobile : cols()} gap-4 my-2 {className}"
|
|
27
|
+
>
|
|
28
|
+
{#if isLoading}
|
|
29
|
+
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
30
|
+
{#if variant == 2}
|
|
31
|
+
<Grid02 title={`${it}`} description="" icon="" {isLoading} />
|
|
32
|
+
{:else}
|
|
33
|
+
<Grid01 title={`${it}`} description="" icon="" {isLoading} />
|
|
34
|
+
{/if}
|
|
35
|
+
{/each}
|
|
36
|
+
{:else}
|
|
37
|
+
{#each items as item, i (i)}
|
|
38
|
+
{#if variant == 2}
|
|
39
|
+
<Grid02 {...item} {onClick} />
|
|
40
|
+
{:else}
|
|
41
|
+
<Grid01 {...item} {onClick} />
|
|
42
|
+
{/if}
|
|
43
|
+
{/each}
|
|
44
|
+
{/if}
|
|
45
|
+
</div>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Skeleton from "../../../../skeleton/skeleton.svelte";
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
isLoading,
|
|
6
|
-
description,
|
|
7
|
-
descriptionClass,
|
|
8
|
-
}: {
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
description?: string;
|
|
11
|
-
descriptionClass?: string;
|
|
12
|
-
} = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
{#if isLoading}
|
|
16
|
-
<Skeleton class="w-full h-2.5 bg-gray-500/95" />
|
|
17
|
-
{:else if description}
|
|
18
|
-
<p
|
|
19
|
-
class="{descriptionClass} text-center min-w-48 md:w-52 lg:w-56 text-muted-foreground line-clamp-2 md:line-clamp-3"
|
|
20
|
-
>
|
|
21
|
-
{description}
|
|
22
|
-
</p>
|
|
23
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Skeleton from "../../../../skeleton/skeleton.svelte";
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
isLoading,
|
|
6
|
+
description,
|
|
7
|
+
descriptionClass,
|
|
8
|
+
}: {
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
description?: string;
|
|
11
|
+
descriptionClass?: string;
|
|
12
|
+
} = $props();
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
{#if isLoading}
|
|
16
|
+
<Skeleton class="w-full h-2.5 bg-gray-500/95" />
|
|
17
|
+
{:else if description}
|
|
18
|
+
<p
|
|
19
|
+
class="{descriptionClass} text-center min-w-48 md:w-52 lg:w-56 text-muted-foreground line-clamp-2 md:line-clamp-3"
|
|
20
|
+
>
|
|
21
|
+
{description}
|
|
22
|
+
</p>
|
|
23
|
+
{/if}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Skeleton from "../../../../skeleton/skeleton.svelte";
|
|
3
|
-
import { HugeiconsIcon } from "@hugeicons/svelte";
|
|
4
|
-
import type { IconSvgElement } from "@hugeicons/svelte";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
icon,
|
|
8
|
-
iconClass,
|
|
9
|
-
isLoading,
|
|
10
|
-
}: {
|
|
11
|
-
icon: string | IconSvgElement;
|
|
12
|
-
iconClass?: string;
|
|
13
|
-
isLoading?: boolean;
|
|
14
|
-
} = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
{#if isLoading}
|
|
18
|
-
<Skeleton class="min-w-17.5 md:min-w-25 h-2.5 bg-gray-400" />
|
|
19
|
-
{:else if typeof icon === "string"}
|
|
20
|
-
<i class="{icon} text-4xl md:text-6xl {iconClass}"></i>
|
|
21
|
-
{:else}
|
|
22
|
-
<HugeiconsIcon {icon} class="size-8 md:size-10 {iconClass}" />
|
|
23
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Skeleton from "../../../../skeleton/skeleton.svelte";
|
|
3
|
+
import { HugeiconsIcon } from "@hugeicons/svelte";
|
|
4
|
+
import type { IconSvgElement } from "@hugeicons/svelte";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
icon,
|
|
8
|
+
iconClass,
|
|
9
|
+
isLoading,
|
|
10
|
+
}: {
|
|
11
|
+
icon: string | IconSvgElement;
|
|
12
|
+
iconClass?: string;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
} = $props();
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
{#if isLoading}
|
|
18
|
+
<Skeleton class="min-w-17.5 md:min-w-25 h-2.5 bg-gray-400" />
|
|
19
|
+
{:else if typeof icon === "string"}
|
|
20
|
+
<i class="{icon} text-4xl md:text-6xl {iconClass}"></i>
|
|
21
|
+
{:else}
|
|
22
|
+
<HugeiconsIcon {icon} class="size-8 md:size-10 {iconClass}" />
|
|
23
|
+
{/if}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Skeleton } from "../../../../skeleton";
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
isLoading,
|
|
6
|
-
title,
|
|
7
|
-
titleClass,
|
|
8
|
-
}: {
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
title?: string;
|
|
11
|
-
titleClass?: string;
|
|
12
|
-
} = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
{#if isLoading}
|
|
16
|
-
<Skeleton class="w-full h-12.5 bg-gray-500/95" />
|
|
17
|
-
{:else}
|
|
18
|
-
<p class={titleClass}>{title}</p>
|
|
19
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Skeleton } from "../../../../skeleton";
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
isLoading,
|
|
6
|
+
title,
|
|
7
|
+
titleClass,
|
|
8
|
+
}: {
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
titleClass?: string;
|
|
12
|
+
} = $props();
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
{#if isLoading}
|
|
16
|
+
<Skeleton class="w-full h-12.5 bg-gray-500/95" />
|
|
17
|
+
{:else}
|
|
18
|
+
<p class={titleClass}>{title}</p>
|
|
19
|
+
{/if}
|