@getmicdrop/svelte-components 5.3.6 → 5.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/AboutShow/AboutShow.svelte +9 -8
- package/dist/calendar/AboutShow/AboutShow.svelte.d.ts.map +1 -1
- package/dist/calendar/Calendar/MiniMonthCalendar.svelte +9 -8
- package/dist/calendar/Calendar/MiniMonthCalendar.svelte.d.ts.map +1 -1
- package/dist/calendar/FAQs/FAQs.svelte +6 -5
- package/dist/calendar/FAQs/FAQs.svelte.d.ts.map +1 -1
- package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte +3 -2
- package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte.d.ts.map +1 -1
- package/dist/calendar/OrderSummary/OrderSummary.svelte +19 -18
- package/dist/calendar/OrderSummary/OrderSummary.svelte.d.ts.map +1 -1
- package/dist/calendar/PublicCard/PublicCard.svelte +7 -9
- package/dist/calendar/PublicCard/PublicCard.svelte.d.ts.map +1 -1
- package/dist/calendar/ShowCard/ShowCard.svelte +11 -10
- package/dist/calendar/ShowCard/ShowCard.svelte.d.ts.map +1 -1
- package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte +5 -3
- package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte.d.ts.map +1 -1
- package/dist/components/Layout/Section.svelte +4 -4
- package/dist/components/Layout/Section.svelte.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -0
- package/dist/patterns/data/DataTable.svelte +4 -2
- package/dist/patterns/data/DataTable.svelte.d.ts.map +1 -1
- package/dist/patterns/forms/FormSection.svelte +4 -2
- package/dist/patterns/forms/FormSection.svelte.d.ts.map +1 -1
- package/dist/patterns/navigation/BottomNav.svelte +4 -3
- package/dist/patterns/navigation/BottomNav.svelte.d.ts.map +1 -1
- package/dist/patterns/navigation/Header.svelte +11 -10
- package/dist/patterns/navigation/Header.svelte.d.ts.map +1 -1
- package/dist/patterns/page/PageHeader.svelte +3 -2
- package/dist/patterns/page/PageHeader.svelte.d.ts.map +1 -1
- package/dist/patterns/page/PageLayout.svelte +2 -1
- package/dist/patterns/page/PageLayout.svelte.d.ts.map +1 -1
- package/dist/patterns/page/PageLoader.svelte +2 -1
- package/dist/patterns/page/PageLoader.svelte.d.ts.map +1 -1
- package/dist/patterns/page/SectionHeader.svelte +5 -3
- package/dist/patterns/page/SectionHeader.svelte.d.ts.map +1 -1
- package/dist/primitives/Accordion/Accordion.svelte +2 -1
- package/dist/primitives/Accordion/Accordion.svelte.d.ts.map +1 -1
- package/dist/primitives/Accordion/AccordionItem.svelte +5 -4
- package/dist/primitives/Accordion/AccordionItem.svelte.d.ts.map +1 -1
- package/dist/primitives/BottomSheet/BottomSheet.svelte +2 -1
- package/dist/primitives/BottomSheet/BottomSheet.svelte.d.ts.map +1 -1
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte +6 -5
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
- package/dist/primitives/Button/Button.svelte +16 -8
- package/dist/primitives/Button/Button.svelte.d.ts.map +1 -1
- package/dist/primitives/Button/ButtonSaveDemo.svelte +2 -1
- package/dist/primitives/Button/ButtonSaveDemo.svelte.d.ts.map +1 -1
- package/dist/primitives/Card.svelte +1 -1
- package/dist/primitives/DarkModeToggle.svelte +43 -44
- package/dist/primitives/DarkModeToggle.svelte.d.ts.map +1 -1
- package/dist/primitives/Drawer/Drawer.svelte +121 -47
- package/dist/primitives/Drawer/Drawer.svelte.d.ts +4 -0
- package/dist/primitives/Drawer/Drawer.svelte.d.ts.map +1 -1
- package/dist/primitives/Input/Input.svelte +41 -80
- package/dist/primitives/Input/Input.svelte.d.ts +4 -6
- package/dist/primitives/Input/Input.svelte.d.ts.map +1 -1
- package/dist/primitives/Input/Select.svelte +66 -13
- package/dist/primitives/Input/Select.svelte.d.ts +2 -0
- package/dist/primitives/Input/Select.svelte.d.ts.map +1 -1
- package/dist/primitives/Input/Textarea.svelte +5 -3
- package/dist/primitives/Input/Textarea.svelte.d.ts.map +1 -1
- package/dist/primitives/Modal/Modal.svelte +13 -1
- package/dist/primitives/Modal/Modal.svelte.d.ts.map +1 -1
- package/dist/primitives/Pagination/Pagination.svelte +3 -2
- package/dist/primitives/Pagination/Pagination.svelte.d.ts.map +1 -1
- package/dist/primitives/Tabs/Tabs.svelte +4 -3
- package/dist/primitives/Tabs/Tabs.svelte.d.ts.map +1 -1
- package/dist/recipes/CropImage/CropImage.svelte +10 -5
- package/dist/recipes/CropImage/CropImage.svelte.d.ts.map +1 -1
- package/dist/recipes/ImageUploader/ImageUploader.stories.svelte +125 -0
- package/dist/recipes/ImageUploader/ImageUploader.stories.svelte.d.ts +28 -0
- package/dist/recipes/ImageUploader/ImageUploader.stories.svelte.d.ts.map +1 -0
- package/dist/recipes/ImageUploader/ImageUploader.svelte +939 -0
- package/dist/recipes/ImageUploader/ImageUploader.svelte.d.ts +60 -0
- package/dist/recipes/ImageUploader/ImageUploader.svelte.d.ts.map +1 -0
- package/dist/recipes/SuperLogin/SuperLogin.svelte +37 -40
- package/dist/recipes/SuperLogin/SuperLogin.svelte.d.ts.map +1 -1
- package/dist/recipes/feedback/EmptyState/EmptyState.svelte +3 -2
- package/dist/recipes/feedback/EmptyState/EmptyState.svelte.d.ts.map +1 -1
- package/dist/recipes/fields/CheckboxField.svelte +3 -2
- package/dist/recipes/fields/CheckboxField.svelte.d.ts.map +1 -1
- package/dist/recipes/fields/FormField.svelte +12 -4
- package/dist/recipes/fields/FormField.svelte.d.ts +3 -1
- package/dist/recipes/fields/FormField.svelte.d.ts.map +1 -1
- package/dist/recipes/fields/RadioGroup.svelte +13 -4
- package/dist/recipes/fields/RadioGroup.svelte.d.ts +4 -1
- package/dist/recipes/fields/RadioGroup.svelte.d.ts.map +1 -1
- package/dist/recipes/fields/SelectField.svelte +12 -3
- package/dist/recipes/fields/SelectField.svelte.d.ts +4 -1
- package/dist/recipes/fields/SelectField.svelte.d.ts.map +1 -1
- package/dist/recipes/fields/TextareaField.svelte +2 -1
- package/dist/recipes/fields/TextareaField.svelte.d.ts.map +1 -1
- package/dist/recipes/fields/ToggleField.svelte +3 -2
- package/dist/recipes/fields/ToggleField.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/MultiSelect.svelte +8 -7
- package/dist/recipes/inputs/MultiSelect.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte +9 -9
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/Search.svelte +7 -6
- package/dist/recipes/inputs/Search.svelte.d.ts.map +1 -1
- package/dist/recipes/modals/AlertModal.svelte +3 -2
- package/dist/recipes/modals/AlertModal.svelte.d.ts.map +1 -1
- package/dist/recipes/modals/ConfirmationModal.svelte +4 -3
- package/dist/recipes/modals/ConfirmationModal.svelte.d.ts.map +1 -1
- package/dist/recipes/modals/InputModal.svelte +9 -8
- package/dist/recipes/modals/InputModal.svelte.d.ts.map +1 -1
- package/dist/recipes/modals/ModalStateManager.svelte +4 -3
- package/dist/recipes/modals/ModalStateManager.svelte.d.ts.map +1 -1
- package/dist/recipes/modals/StatusModal.svelte +5 -4
- package/dist/recipes/modals/StatusModal.svelte.d.ts.map +1 -1
- package/dist/stories/ButtonAuditReview.svelte +361 -397
- package/dist/stories/ButtonAuditReview.svelte.d.ts +24 -4
- package/dist/stories/ButtonAuditReview.svelte.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +4 -8
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +4 -8
- package/dist/tokens/typography.d.ts +76 -169
- package/dist/tokens/typography.d.ts.map +1 -1
- package/dist/tokens/typography.js +93 -62
- package/package.json +4 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { CloseOutline, LogoInstagram } from '../../primitives/Icons';
|
|
3
|
+
import { typography } from '../../tokens/typography';
|
|
3
4
|
|
|
4
5
|
let {
|
|
5
6
|
performers = [],
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
|
|
43
44
|
<div class="flex flex-col gap-3">
|
|
44
45
|
{#if showTitle}
|
|
45
|
-
<h2 class="
|
|
46
|
+
<h2 class="{typography.h2} text-xl">{title}</h2>
|
|
46
47
|
{/if}
|
|
47
48
|
|
|
48
49
|
{#if ShowImage && description}
|
|
@@ -53,22 +54,22 @@
|
|
|
53
54
|
|
|
54
55
|
{#if description}
|
|
55
56
|
{#if showFullDescription || description.length <= characterLimit || !showReadMore}
|
|
56
|
-
<p class=
|
|
57
|
+
<p class={`${typography.sm} leading-relaxed whitespace-pre-line`}>{description}</p>
|
|
57
58
|
{#if showReadMore && description.length > characterLimit}
|
|
58
59
|
<button
|
|
59
60
|
onclick={toggleDescription}
|
|
60
|
-
class=
|
|
61
|
+
class={`${typography.label} text-left hover:underline text-blue-700 dark:text-blue-500`}
|
|
61
62
|
>
|
|
62
63
|
Show less
|
|
63
64
|
</button>
|
|
64
65
|
{/if}
|
|
65
66
|
{:else}
|
|
66
|
-
<p class=
|
|
67
|
+
<p class={`${typography.sm} leading-relaxed whitespace-pre-line`}>
|
|
67
68
|
{description.slice(0, characterLimit)}...
|
|
68
69
|
</p>
|
|
69
70
|
<button
|
|
70
71
|
onclick={toggleDescription}
|
|
71
|
-
class=
|
|
72
|
+
class={`${typography.label} text-left hover:underline text-blue-700 dark:text-blue-500`}
|
|
72
73
|
>
|
|
73
74
|
Show more
|
|
74
75
|
</button>
|
|
@@ -110,12 +111,12 @@
|
|
|
110
111
|
<CloseOutline class="w-5 h-5" />
|
|
111
112
|
</button>
|
|
112
113
|
|
|
113
|
-
<p class="
|
|
114
|
+
<p class="{typography.sm} leading-relaxed pr-6">
|
|
114
115
|
{profile?.biography || ''}
|
|
115
116
|
</p>
|
|
116
117
|
|
|
117
118
|
{#if profile?.instagram || profile?.twitter}
|
|
118
|
-
<div class="flex gap-2 items-center
|
|
119
|
+
<div class="flex gap-2 items-center {typography.smMuted} mt-3 pt-3 border-t border-gray-200 dark:border-gray-600">
|
|
119
120
|
<span>Follow {firstName}:</span>
|
|
120
121
|
{#if profile?.instagram}
|
|
121
122
|
<a
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
alt={displayName || 'Performer'}
|
|
158
159
|
class="size-16 rounded object-cover {!profile?.profileImage || performer.shouldBeHidden ? 'bg-gray-50 dark:bg-gray-700' : ''}"
|
|
159
160
|
/>
|
|
160
|
-
<p class="
|
|
161
|
+
<p class="{typography.xs} text-center leading-tight line-clamp-2">
|
|
161
162
|
{#if !performer.shouldBeHidden}
|
|
162
163
|
{displayName}
|
|
163
164
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AboutShow.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/AboutShow/AboutShow.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AboutShow.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/AboutShow/AboutShow.svelte.js"],"names":[],"mappings":";;;;;AAmJA;iBAzIkC,GAAG,EAAE;gBAAc,MAAM;kBAAgB,MAAM;gBAAc,OAAO;YAAU,MAAM;mBAAiB,OAAO;;WAyItF;wBAzIrC;IAAE,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,WAAU;CAAE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { ChevronLeftOutline, ChevronRightOutline, CheckCircleSolid } from '../../primitives/Icons';
|
|
3
3
|
import Spinner from '../../primitives/Spinner/Spinner.svelte';
|
|
4
|
+
import { typography } from '../../tokens/typography';
|
|
4
5
|
|
|
5
6
|
let {
|
|
6
7
|
variant = 'availability',
|
|
@@ -627,7 +628,7 @@
|
|
|
627
628
|
{#if showNavigation}
|
|
628
629
|
<header class="flex items-center justify-between mb-4 select-none">
|
|
629
630
|
<div class="flex items-center gap-2" bind:this={monthDisplayEl}>
|
|
630
|
-
<h2 class=
|
|
631
|
+
<h2 class={typography.h2}>{MONTH_NAMES[currentMonth]}</h2>
|
|
631
632
|
{#if saveStatus && variant === 'availability'}
|
|
632
633
|
<span class="flex items-center justify-center ml-1">
|
|
633
634
|
{#if saveStatus === 'saving'}
|
|
@@ -709,7 +710,7 @@
|
|
|
709
710
|
>
|
|
710
711
|
{#each DAY_NAMES as dayName, i}
|
|
711
712
|
<div
|
|
712
|
-
class="flex items-end justify-center pb-1
|
|
713
|
+
class="flex items-end justify-center pb-1 {typography.xsMuted} overflow-hidden leading-none sm:pb-2 sm:pt-1 sm:justify-end sm:pr-2 sm:text-lg sm:text-gray-900 sm:dark:text-white sm:border-b sm:border-gray-200 sm:dark:border-gray-700"
|
|
713
714
|
role="columnheader"
|
|
714
715
|
aria-label={["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][i]}
|
|
715
716
|
>
|
|
@@ -720,7 +721,7 @@
|
|
|
720
721
|
|
|
721
722
|
{#each prevMonthPreviewDays as previewDay}
|
|
722
723
|
<div class="flex flex-col items-center justify-start px-1 py-0.5 min-h-[56px] sm:min-h-[60px] md:min-h-[70px] lg:min-h-[80px] pointer-events-none bg-transparent shadow-[inset_0_-1px_0_0_rgb(229_231_235)] dark:shadow-[inset_0_-1px_0_0_rgb(55_65_81)] sm:shadow-none sm:p-2 sm:border-t sm:border-l sm:border-gray-200 sm:dark:border-gray-700 last:sm:border-r" role="gridcell" aria-disabled="true">
|
|
723
|
-
<span class="
|
|
724
|
+
<span class="{typography.sm} text-gray-300 dark:text-gray-600 w-full text-center sm:text-lg sm:font-normal sm:text-right sm:mb-2">{previewDay.day}</span>
|
|
724
725
|
</div>
|
|
725
726
|
{/each}
|
|
726
727
|
|
|
@@ -745,8 +746,8 @@
|
|
|
745
746
|
ontouchend={(e) => { e.preventDefault(); handleDayTap(e, day); }}
|
|
746
747
|
onkeydown={(e) => handleDayKeydown(e, day)}
|
|
747
748
|
>
|
|
748
|
-
<span class="
|
|
749
|
-
{day.isPast ? 'text-gray-400 dark:text-gray-500' : '
|
|
749
|
+
<span class="{typography.sm} w-full text-center transition-transform duration-100 ease-out sm:text-lg sm:font-normal sm:text-right sm:mb-2
|
|
750
|
+
{day.isPast ? 'text-gray-400 dark:text-gray-500' : ''}
|
|
750
751
|
{day.isSelected && !day.isPast && variant === 'availability' ? 'text-white font-semibold' : ''}">{day.day}</span>
|
|
751
752
|
{#if variant !== 'availability' && day.hasEvents}
|
|
752
753
|
<div class="flex gap-0.5 mt-0.5">
|
|
@@ -760,7 +761,7 @@
|
|
|
760
761
|
|
|
761
762
|
{#each nextMonthPreviewDays as previewDay}
|
|
762
763
|
<div class="flex flex-col items-center justify-start px-1 py-0.5 min-h-[56px] sm:min-h-[60px] md:min-h-[70px] lg:min-h-[80px] pointer-events-none bg-transparent shadow-[inset_0_-1px_0_0_rgb(229_231_235)] dark:shadow-[inset_0_-1px_0_0_rgb(55_65_81)] sm:shadow-none sm:p-2 sm:border-t sm:border-l sm:border-gray-200 sm:dark:border-gray-700 sm:border-b last:sm:border-r" role="gridcell" aria-disabled="true">
|
|
763
|
-
<span class="
|
|
764
|
+
<span class="{typography.sm} text-gray-300 dark:text-gray-600 w-full text-center sm:text-lg sm:font-normal sm:text-right sm:mb-2">{previewDay.day}</span>
|
|
764
765
|
</div>
|
|
765
766
|
{/each}
|
|
766
767
|
</div>
|
|
@@ -770,11 +771,11 @@
|
|
|
770
771
|
<div class="flex items-center justify-center gap-6 pt-4">
|
|
771
772
|
<div class="flex items-center gap-2">
|
|
772
773
|
<span class="w-5 h-5 rounded bg-blue-700 dark:bg-blue-600 border border-blue-700 dark:border-blue-600"></span>
|
|
773
|
-
<span class="
|
|
774
|
+
<span class="{typography.sm}">Available</span>
|
|
774
775
|
</div>
|
|
775
776
|
<div class="flex items-center gap-2">
|
|
776
777
|
<span class="w-5 h-5 rounded bg-gray-50 dark:bg-gray-700 border-2 border-gray-400 dark:border-gray-500"></span>
|
|
777
|
-
<span class="
|
|
778
|
+
<span class="{typography.sm}">Unavailable</span>
|
|
778
779
|
</div>
|
|
779
780
|
</div>
|
|
780
781
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MiniMonthCalendar.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/Calendar/MiniMonthCalendar.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"MiniMonthCalendar.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/Calendar/MiniMonthCalendar.svelte.js"],"names":[],"mappings":";;;;;AAitBA;cArsB+B,MAAM;oBAAkB,GAAG,EAAE;aAAW,GAAG,EAAE;iBAAe,MAAM;iBAAe,OAAO;qBAAmB,OAAO;sBAAoB,OAAO;eAAa,OAAO;yBAAuB,OAAO;4BAA0B,OAAO;kBAAgB,GAAG;gBAAc,GAAG;mBAAiB,GAAG;wBAqsBvP;wBArsB7C;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAC;IAAC,aAAa,EAAE,GAAG,CAAA;CAAE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { ChevronUpOutline } from "../../primitives/Icons";
|
|
3
|
+
import { typography } from '../../tokens/typography';
|
|
3
4
|
|
|
4
5
|
let {
|
|
5
6
|
faqs = [],
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
|
|
22
23
|
<div class="flex flex-col gap-3">
|
|
23
24
|
{#if showTitle}
|
|
24
|
-
<h2 class=
|
|
25
|
+
<h2 class={typography.h2}>{title}</h2>
|
|
25
26
|
{/if}
|
|
26
27
|
|
|
27
28
|
{#if items.length}
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
aria-labelledby="accordion-heading-{index}"
|
|
51
52
|
>
|
|
52
53
|
<div class="p-5 border-b border-gray-200 dark:border-gray-700 {index === items.length - 1 ? 'border-b-0 rounded-b-lg' : ''}">
|
|
53
|
-
<p class="
|
|
54
|
+
<p class="{typography.smMuted} leading-relaxed">{answer}</p>
|
|
54
55
|
</div>
|
|
55
56
|
</div>
|
|
56
57
|
</div>
|
|
@@ -61,14 +62,14 @@
|
|
|
61
62
|
{#each items as { question, answer }}
|
|
62
63
|
<div>
|
|
63
64
|
{#if question}
|
|
64
|
-
<p class="
|
|
65
|
+
<p class="{typography.label} mb-1">{question}</p>
|
|
65
66
|
{/if}
|
|
66
|
-
<p class="
|
|
67
|
+
<p class="{typography.smMuted} leading-relaxed">{answer}</p>
|
|
67
68
|
</div>
|
|
68
69
|
{/each}
|
|
69
70
|
</div>
|
|
70
71
|
{/if}
|
|
71
72
|
{:else}
|
|
72
|
-
<p class="
|
|
73
|
+
<p class="{typography.smMuted}">No FAQs available.</p>
|
|
73
74
|
{/if}
|
|
74
75
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FAQs.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/FAQs/FAQs.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"FAQs.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/FAQs/FAQs.svelte.js"],"names":[],"mappings":";;;;;AA0EA;WAhE4B,GAAG,EAAE;YAAU,MAAM;gBAAc,OAAO;gBAAc,OAAO;WAgExC;wBAhEhC;IAAE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { ChevronLeftOutline, ChevronRightOutline } from '../../primitives/Icons';
|
|
3
|
+
import { typography } from '../../tokens/typography';
|
|
3
4
|
|
|
4
5
|
const today = new Date();
|
|
5
6
|
const todayLocalMonth = today.getMonth();
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
</script>
|
|
62
63
|
|
|
63
64
|
<header class="w-full flex items-center justify-between select-none">
|
|
64
|
-
<h2 class="text-3xl
|
|
65
|
+
<h2 class="{typography.h1} text-3xl">
|
|
65
66
|
{new Intl.DateTimeFormat("en", {
|
|
66
67
|
month: "long",
|
|
67
68
|
}).format(new Date(currentYear, currentMonth, 1))}
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
<ChevronLeftOutline class="w-5 h-5" />
|
|
88
89
|
</button>
|
|
89
90
|
<button
|
|
90
|
-
class="
|
|
91
|
+
class="{`${typography.label} px-3 py-1 border border-gray-300 dark:border-gray-600 rounded-lg bg-transparent cursor-pointer select-none transition-transform duration-100 ease-out hover:bg-blue-700 hover:text-white hover:border-blue-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 disabled:opacity-40 disabled:cursor-not-allowed disabled:text-gray-500 dark:disabled:text-gray-400`}"
|
|
91
92
|
class:scale-95={todayPressed}
|
|
92
93
|
class:bg-blue-700={todayPressed}
|
|
93
94
|
class:text-white={todayPressed}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthSwitcher.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/MonthSwitcher/MonthSwitcher.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"MonthSwitcher.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/MonthSwitcher/MonthSwitcher.svelte.js"],"names":[],"mappings":";;;;;AA0FA;;;;;;4BA5E+L,OAAO;WA4E1I;wBA5EzC;IAAE,WAAW,CAAC,SAAwB;IAAC,YAAY,CAAC,SAAyB;IAAC,UAAU,CAAC,WAAW;IAAC,UAAU,CAAC,WAAW;IAAC,WAAW,CAAC,WAAW;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAE"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { cubicOut } from 'svelte/easing';
|
|
4
4
|
import { ChevronDownOutline, CloseOutline } from '../../primitives/Icons';
|
|
5
5
|
import Spinner from '../../primitives/Spinner/Spinner.svelte';
|
|
6
|
+
import { typography } from '../../tokens/typography';
|
|
6
7
|
|
|
7
8
|
let {
|
|
8
9
|
loading = false,
|
|
@@ -110,15 +111,15 @@
|
|
|
110
111
|
class="hidden min-[872px]:block h-fit rounded-lg bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-600"
|
|
111
112
|
>
|
|
112
113
|
<div class="px-5 py-4 border-b border-gray-200 dark:border-gray-600">
|
|
113
|
-
<
|
|
114
|
+
<h3 class={typography.h3}>
|
|
114
115
|
Order summary
|
|
115
|
-
</
|
|
116
|
+
</h3>
|
|
116
117
|
</div>
|
|
117
118
|
|
|
118
119
|
<div class="px-5 pb-5">
|
|
119
120
|
{#if totalQuantity === 0}
|
|
120
121
|
<div class="py-8 text-center">
|
|
121
|
-
<p class="
|
|
122
|
+
<p class="{typography.smMuted}">Select tickets to continue</p>
|
|
122
123
|
</div>
|
|
123
124
|
{:else}
|
|
124
125
|
{#each Object.keys(quantities) as key}
|
|
@@ -127,8 +128,8 @@
|
|
|
127
128
|
{#if ticket.ID == key}
|
|
128
129
|
<div class="flex justify-between py-3 border-b border-gray-200/50 dark:border-gray-600/50">
|
|
129
130
|
<div>
|
|
130
|
-
<p class="
|
|
131
|
-
<p class="
|
|
131
|
+
<p class="{typography.label}">{ticket.name}</p>
|
|
132
|
+
<p class="{typography.smMuted}">
|
|
132
133
|
{#if ticket.price === 0}
|
|
133
134
|
Free x {quantities[key]}
|
|
134
135
|
{:else}
|
|
@@ -136,7 +137,7 @@
|
|
|
136
137
|
{/if}
|
|
137
138
|
</p>
|
|
138
139
|
</div>
|
|
139
|
-
<div class="
|
|
140
|
+
<div class="{typography.label}">
|
|
140
141
|
{ticket.price === 0
|
|
141
142
|
? 'Free'
|
|
142
143
|
: `$${(ticket.price * quantities[key]).toFixed(2)}`}
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
{/if}
|
|
148
149
|
{/each}
|
|
149
150
|
|
|
150
|
-
<div class="flex flex-col py-3 gap-2
|
|
151
|
+
<div class="{`${typography.sm} flex flex-col py-3 gap-2`}">
|
|
151
152
|
{#if promoSavings > 0 || (promoDiscount > 0 && !currentPromoRule?.provideDiscount)}
|
|
152
153
|
<div class="flex justify-between text-gray-600 dark:text-gray-300">
|
|
153
154
|
<span>Full Price</span><span>${subtotalWithoutDiscount.toFixed(2)}</span>
|
|
@@ -173,13 +174,13 @@
|
|
|
173
174
|
</div>
|
|
174
175
|
</div>
|
|
175
176
|
|
|
176
|
-
<div class="flex justify-between
|
|
177
|
+
<div class="flex justify-between {typography.h3} py-4 text-lg border-t border-gray-200 dark:border-gray-600">
|
|
177
178
|
<span>Total</span><span>${total.toFixed(2)}</span>
|
|
178
179
|
</div>
|
|
179
180
|
{/if}
|
|
180
181
|
|
|
181
182
|
{#if totalQuantity > 0 && btnText === 'Place order'}
|
|
182
|
-
<p class="
|
|
183
|
+
<p class="{typography.xsMuted} text-center mb-3">
|
|
183
184
|
By selecting Place order, I agree to the <a href="https://get-micdrop.com/tos" class="text-blue-700 dark:text-blue-500 underline hover:opacity-80" target="_blank" rel="noopener noreferrer">terms of service</a>
|
|
184
185
|
</p>
|
|
185
186
|
{/if}
|
|
@@ -218,7 +219,7 @@
|
|
|
218
219
|
class="min-[872px]:hidden fixed bottom-0 left-0 w-full overflow-x-hidden overflow-y-auto z-50 max-h-[80vh] rounded-t-lg shadow-xl bg-white dark:bg-gray-800"
|
|
219
220
|
>
|
|
220
221
|
<div class="flex flex-row justify-between items-center px-5 py-4 border-b border-gray-200 dark:border-gray-600">
|
|
221
|
-
<h2 class="text-xl
|
|
222
|
+
<h2 class="{typography.h2} text-xl">
|
|
222
223
|
Order summary
|
|
223
224
|
</h2>
|
|
224
225
|
<button
|
|
@@ -237,8 +238,8 @@
|
|
|
237
238
|
{#if ticket.ID == key}
|
|
238
239
|
<div class="flex justify-between py-4 border-b border-gray-200 dark:border-gray-600">
|
|
239
240
|
<div>
|
|
240
|
-
<p class="
|
|
241
|
-
<p class="
|
|
241
|
+
<p class="{typography.h5}">{ticket.name}</p>
|
|
242
|
+
<p class="{typography.smMuted}">
|
|
242
243
|
{#if ticket.price === 0}
|
|
243
244
|
Free x {quantities[key]}
|
|
244
245
|
{:else}
|
|
@@ -246,7 +247,7 @@
|
|
|
246
247
|
{/if}
|
|
247
248
|
</p>
|
|
248
249
|
</div>
|
|
249
|
-
<div class="
|
|
250
|
+
<div class="{typography.h5}">
|
|
250
251
|
{ticket.price === 0
|
|
251
252
|
? 'Free'
|
|
252
253
|
: `$${(ticket.price * quantities[key]).toFixed(2)}`}
|
|
@@ -283,7 +284,7 @@
|
|
|
283
284
|
</div>
|
|
284
285
|
</div>
|
|
285
286
|
|
|
286
|
-
<div class="flex justify-between
|
|
287
|
+
<div class="flex justify-between {typography.h3} py-5 border-t border-gray-200 dark:border-gray-600">
|
|
287
288
|
<span>Total</span><span>${total.toFixed(2)}</span>
|
|
288
289
|
</div>
|
|
289
290
|
</div>
|
|
@@ -297,15 +298,15 @@
|
|
|
297
298
|
>
|
|
298
299
|
<div class="flex items-stretch gap-3">
|
|
299
300
|
<button class="flex flex-col justify-between items-start shrink-0 whitespace-nowrap bg-transparent border-none p-0 cursor-pointer touch-manipulation" onclick={makeOrderSummaryVisible}>
|
|
300
|
-
<span class="flex items-center gap-1 text-
|
|
301
|
+
<span class="{`${typography.sm} flex items-center gap-1 text-gray-600 dark:text-gray-300`}">
|
|
301
302
|
{totalQuantity} {totalQuantity > 1 ? 'tickets' : 'ticket'}
|
|
302
|
-
<ChevronDownOutline class=
|
|
303
|
+
<ChevronDownOutline class={`w-4 h-4 ${typography.iconMuted} transition-transform duration-200 ${showOrderSummaryOnMobile ? 'rotate-180' : ''}`} />
|
|
303
304
|
</span>
|
|
304
|
-
<span class="text-xl
|
|
305
|
+
<span class="{typography.h2} text-xl">${total.toFixed(2)}</span>
|
|
305
306
|
</button>
|
|
306
307
|
|
|
307
308
|
<button
|
|
308
|
-
class="flex-1 min-w-36 h-12 rounded-lg
|
|
309
|
+
class="{`${typography.label} flex-1 min-w-36 h-12 rounded-lg touch-manipulation flex items-center justify-center ${totalQuantity === 0 || !isAgreed ? 'bg-gray-200 dark:bg-gray-700 text-gray-500 dark:text-gray-400 cursor-not-allowed' : 'bg-blue-700 dark:bg-blue-600 text-white hover:bg-blue-800 dark:hover:bg-blue-700'}`}"
|
|
309
310
|
onclick={() => {
|
|
310
311
|
if (executePurchase) {
|
|
311
312
|
executePurchase(elements);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderSummary.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/OrderSummary/OrderSummary.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"OrderSummary.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/OrderSummary/OrderSummary.svelte.js"],"names":[],"mappings":";;;;;AAoTA;cApS+B,OAAO;iBAAe,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;mBAAiB,GAAG,EAAE;qBAAmB,GAAG;eAAa,OAAO;cAAY,MAAM;mBAAiB,OAAO;oBAAkB,MAAM;uBAAqB,GAAG;sBAAoB,GAAG;eAAa,GAAG;yBAAuB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;mBAAiB,GAAG;WAoS5Q;wBApSxC;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,cAAc,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC;IAAC,eAAe,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,aAAa,EAAE,GAAG,CAAA;CAAE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { typography } from '../../tokens/typography';
|
|
3
|
+
|
|
2
4
|
let {
|
|
3
5
|
events = [],
|
|
4
6
|
view = "row",
|
|
@@ -111,16 +113,12 @@
|
|
|
111
113
|
</span>
|
|
112
114
|
{/if}
|
|
113
115
|
|
|
114
|
-
<
|
|
115
|
-
class="font-semibold text-gray-900 dark:text-white leading-tight line-clamp-2 {view === 'col'
|
|
116
|
-
? 'text-sm sm:text-base'
|
|
117
|
-
: 'text-sm sm:text-lg'}"
|
|
118
|
-
>
|
|
116
|
+
<h4 class="{typography.h4} leading-tight line-clamp-2">
|
|
119
117
|
{event.name}
|
|
120
|
-
</
|
|
118
|
+
</h4>
|
|
121
119
|
|
|
122
120
|
<div
|
|
123
|
-
class="
|
|
121
|
+
class="{typography.textMuted} {view === 'col' ? 'text-xs' : 'text-xs sm:text-sm'}"
|
|
124
122
|
>
|
|
125
123
|
<span class="font-medium">
|
|
126
124
|
{formatEventDate(event.date)}
|
|
@@ -132,13 +130,13 @@
|
|
|
132
130
|
</div>
|
|
133
131
|
|
|
134
132
|
{#if view === "row" && event.description}
|
|
135
|
-
<p class="
|
|
133
|
+
<p class="{typography.xsMuted} text-xs sm:text-sm line-clamp-2 mt-1">
|
|
136
134
|
{event.description}
|
|
137
135
|
</p>
|
|
138
136
|
{/if}
|
|
139
137
|
|
|
140
138
|
{#if event.doorsTimeline && view === "row"}
|
|
141
|
-
<div class="text-xs
|
|
139
|
+
<div class="{typography.xsMuted} text-xs">
|
|
142
140
|
{event.doorsTimeline}
|
|
143
141
|
</div>
|
|
144
142
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/PublicCard/PublicCard.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"PublicCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/PublicCard/PublicCard.svelte.js"],"names":[],"mappings":";;;;;AAmIA;aA3H8B,GAAG,EAAE;WAAS,MAAM;uBAAqB,GAAG;kBAAgB,GAAG;WA2HpC;wBA3HtC;IAAE,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC;IAAC,YAAY,EAAE,GAAG,CAAA;CAAE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { ShareOutline, CheckOutline } from '../../primitives/Icons';
|
|
3
3
|
import ShowTimeCard from '../ShowTimeCard/ShowTimeCard.svelte';
|
|
4
|
+
import { typography } from '../../tokens/typography';
|
|
4
5
|
|
|
5
6
|
let {
|
|
6
7
|
event = {},
|
|
@@ -78,9 +79,9 @@
|
|
|
78
79
|
<div class="h-fit rounded-lg sm:px-5 py-4 md:border md:border-gray-200 md:dark:border-gray-700 bg-white dark:bg-gray-800">
|
|
79
80
|
{#if showTitle}
|
|
80
81
|
<div class="flex justify-between items-start gap-2 mb-4">
|
|
81
|
-
<
|
|
82
|
+
<h2 class="{typography.h2} flex-1 text-left">
|
|
82
83
|
{event.name || ''}
|
|
83
|
-
</
|
|
84
|
+
</h2>
|
|
84
85
|
<button
|
|
85
86
|
class="flex-shrink-0 p-2 rounded-lg transition-colors hover:bg-gray-100 dark:hover:bg-gray-700 relative"
|
|
86
87
|
aria-label="Share event"
|
|
@@ -95,19 +96,19 @@
|
|
|
95
96
|
</div>
|
|
96
97
|
{/if}
|
|
97
98
|
|
|
98
|
-
<div class="space-y-1
|
|
99
|
-
<p class="
|
|
99
|
+
<div class="space-y-1">
|
|
100
|
+
<p class="{typography.label}">{formatDateTime(event.startDateTime)}</p>
|
|
100
101
|
{#if event.displayStartTime && event.doorsOpenTime}
|
|
101
|
-
<p class="
|
|
102
|
+
<p class="{typography.smMuted}">Doors open {formatTimeline(event.doorsOpenTime)}</p>
|
|
102
103
|
{/if}
|
|
103
104
|
{#if event.displayEndTime && event.endDateTime}
|
|
104
|
-
<p class="
|
|
105
|
+
<p class="{typography.smMuted}">Ends {formatTimeline(event.endDateTime)}</p>
|
|
105
106
|
{/if}
|
|
106
107
|
</div>
|
|
107
108
|
|
|
108
109
|
{#if showtimes && showtimes.length > 1}
|
|
109
110
|
<div class="mt-4 pt-4 border-t border-gray-200 dark:border-gray-700">
|
|
110
|
-
<p class="
|
|
111
|
+
<p class="{typography.smMuted} mb-2">More showtimes</p>
|
|
111
112
|
<div class="flex flex-wrap gap-2">
|
|
112
113
|
{#each showtimes as showtime}
|
|
113
114
|
<div class="w-24">
|
|
@@ -132,16 +133,16 @@
|
|
|
132
133
|
rel="noopener noreferrer"
|
|
133
134
|
class="group block"
|
|
134
135
|
>
|
|
135
|
-
<p class="
|
|
136
|
+
<p class="{typography.label} transition-colors group-hover:text-blue-700 dark:group-hover:text-blue-500">
|
|
136
137
|
{event.venue.name}
|
|
137
138
|
</p>
|
|
138
|
-
<p class="
|
|
139
|
+
<p class="{typography.smMuted} transition-colors group-hover:text-blue-700 dark:group-hover:text-blue-500">
|
|
139
140
|
{event.venue.address || ''}
|
|
140
141
|
</p>
|
|
141
142
|
</a>
|
|
142
143
|
|
|
143
144
|
{#if event.hasAgeRestriction || event.ageRequirement || event.minimumAge}
|
|
144
|
-
<p class="
|
|
145
|
+
<p class="{typography.smMuted} mt-2">
|
|
145
146
|
{#if event.ageRequirement != null}
|
|
146
147
|
{event.ageRequirement <= 1 ? 'All ages' : `${event.ageRequirement}+`}
|
|
147
148
|
{:else if event.minimumAge != null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/ShowCard/ShowCard.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ShowCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/ShowCard/ShowCard.svelte.js"],"names":[],"mappings":";;;;;AAwJA;YA5I6B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gBAAc,GAAG,EAAE;gBAAc,OAAO;;;sBAA0E,GAAG;WA4I9G;wBA5IpC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,WAAW;IAAC,cAAc,CAAC,WAAW;IAAC,gBAAgB,EAAE,GAAG,CAAA;CAAE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { typography } from '../../tokens/typography';
|
|
3
|
+
|
|
2
4
|
let {
|
|
3
5
|
day = '',
|
|
4
6
|
date = '',
|
|
@@ -51,9 +53,9 @@
|
|
|
51
53
|
aria-label={`${day} ${formatDate(date)} at ${formatHour(time)}${isSelected ? ', selected' : ''}`}
|
|
52
54
|
aria-pressed={isSelected}
|
|
53
55
|
>
|
|
54
|
-
<span class="
|
|
55
|
-
<span class="
|
|
56
|
+
<span class="{typography.label} text-sm {typography.textMuted}">{day}</span>
|
|
57
|
+
<span class="{typography.label} text-base {isSelected ? 'text-blue-700 dark:text-blue-500' : ''}">
|
|
56
58
|
{formatDate(date)}
|
|
57
59
|
</span>
|
|
58
|
-
<span class="
|
|
60
|
+
<span class="{typography.label} text-sm {typography.textMuted}">{formatHour(time)}</span>
|
|
59
61
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowTimeCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/ShowTimeCard/ShowTimeCard.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ShowTimeCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/calendar/ShowTimeCard/ShowTimeCard.svelte.js"],"names":[],"mappings":";;;;;AA6DA;UArD2B,MAAM;WAAS,MAAM;WAAS,MAAM;iBAAe,OAAO;cAAY,GAAG;WAqDzC;wBArDxC;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
|
+
import { typography } from '../../tokens/typography';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Section - Semantic section wrapper with optional title
|
|
@@ -43,9 +44,9 @@
|
|
|
43
44
|
}: Props = $props();
|
|
44
45
|
|
|
45
46
|
const titleSizeMap: Record<string, string> = {
|
|
46
|
-
sm:
|
|
47
|
-
md:
|
|
48
|
-
lg:
|
|
47
|
+
sm: typography.h4,
|
|
48
|
+
md: typography.h3,
|
|
49
|
+
lg: typography.h2
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
const gapMap: Record<string, string> = {
|
|
@@ -65,7 +66,6 @@
|
|
|
65
66
|
let titleClasses = $derived(
|
|
66
67
|
[
|
|
67
68
|
titleSizeMap[titleSize] || titleSizeMap.md,
|
|
68
|
-
'text-gray-900 dark:text-white',
|
|
69
69
|
titleClass
|
|
70
70
|
].filter(Boolean).join(' ')
|
|
71
71
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Layout/Section.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Section.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Layout/Section.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAIpC;;;;;;;;;;;;;;;GAeG;AAEH,UAAU,KAAK;IACb,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/B,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC5B,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAqDH,QAAA,MAAM,OAAO,2CAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export { default as Toggle } from "./primitives/Toggle.svelte";
|
|
|
62
62
|
export { default as Typography } from "./primitives/Typography/Typography.svelte";
|
|
63
63
|
export { default as ValidationError } from "./primitives/ValidationError.svelte";
|
|
64
64
|
export { default as CropImage } from "./recipes/CropImage/CropImage.svelte";
|
|
65
|
+
export { default as ImageUploader } from "./recipes/ImageUploader/ImageUploader.svelte";
|
|
65
66
|
export { default as EmptyState } from "./recipes/feedback/EmptyState/EmptyState.svelte";
|
|
66
67
|
export { default as ErrorDisplay } from "./recipes/feedback/ErrorDisplay.svelte";
|
|
67
68
|
export { default as StatusIndicator } from "./recipes/feedback/StatusIndicator/StatusIndicator.svelte";
|
|
@@ -111,5 +112,7 @@ export { default as ShowTimeCard } from "./calendar/ShowTimeCard/ShowTimeCard.sv
|
|
|
111
112
|
export * from "./constants/formOptions.js";
|
|
112
113
|
export * from "./constants/validation.js";
|
|
113
114
|
export * from "./presets/index.js";
|
|
115
|
+
export { portal } from "./utils/portal.js";
|
|
116
|
+
export { typography } from "./tokens/typography.js";
|
|
114
117
|
export { default as MiniMonthCalendar, default as Calendar } from "./calendar/Calendar/MiniMonthCalendar.svelte";
|
|
115
118
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -120,6 +120,9 @@ export { default as ValidationError } from './primitives/ValidationError.svelte'
|
|
|
120
120
|
// CropImage
|
|
121
121
|
export { default as CropImage } from './recipes/CropImage/CropImage.svelte';
|
|
122
122
|
|
|
123
|
+
// ImageUploader
|
|
124
|
+
export { default as ImageUploader } from './recipes/ImageUploader/ImageUploader.svelte';
|
|
125
|
+
|
|
123
126
|
// Feedback
|
|
124
127
|
export { default as EmptyState } from './recipes/feedback/EmptyState/EmptyState.svelte';
|
|
125
128
|
export { default as ErrorDisplay } from './recipes/feedback/ErrorDisplay.svelte';
|
|
@@ -212,3 +215,9 @@ export * from './constants/validation.js';
|
|
|
212
215
|
|
|
213
216
|
// Presets - Domain-to-color mappings for migration
|
|
214
217
|
export * from './presets/index.js';
|
|
218
|
+
|
|
219
|
+
// Utils / Actions
|
|
220
|
+
export { portal } from './utils/portal.js';
|
|
221
|
+
|
|
222
|
+
// Design Tokens
|
|
223
|
+
export { typography } from './tokens/typography.js';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { typography } from '../../tokens/typography';
|
|
3
|
+
|
|
2
4
|
let {
|
|
3
5
|
striped = false,
|
|
4
6
|
hoverable = true,
|
|
@@ -19,9 +21,9 @@
|
|
|
19
21
|
</script>
|
|
20
22
|
|
|
21
23
|
<div class="overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 {className}">
|
|
22
|
-
<table class=
|
|
24
|
+
<table class={`w-full text-left ${typography.textMuted}`}>
|
|
23
25
|
{#if header}
|
|
24
|
-
<thead class=
|
|
26
|
+
<thead class={`text-xs uppercase bg-gray-50 dark:bg-gray-700 ${typography.textMuted}`}>
|
|
25
27
|
{@render header(cellSize)}
|
|
26
28
|
</thead>
|
|
27
29
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/patterns/data/DataTable.svelte.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DataTable.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/patterns/data/DataTable.svelte.js"],"names":[],"mappings":";;;;;AA6CA;cArC+B,OAAO;gBAAc,OAAO;eAAa,OAAO;WAAS,MAAM;YAAU,MAAM;YAAU,GAAG;cAAY,GAAG;WAqClF;wBArCrC;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { typography } from '../../tokens/typography';
|
|
3
|
+
|
|
2
4
|
let {
|
|
3
5
|
title = '',
|
|
4
6
|
description = '',
|
|
@@ -16,10 +18,10 @@
|
|
|
16
18
|
{#if title || description}
|
|
17
19
|
<div class="space-y-1">
|
|
18
20
|
{#if title}
|
|
19
|
-
<h3 class=
|
|
21
|
+
<h3 class={typography.h3}>{title}</h3>
|
|
20
22
|
{/if}
|
|
21
23
|
{#if description}
|
|
22
|
-
<p class=
|
|
24
|
+
<p class={typography.smMuted}>{description}</p>
|
|
23
25
|
{/if}
|
|
24
26
|
</div>
|
|
25
27
|
{/if}
|