@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.
Files changed (121) hide show
  1. package/dist/calendar/AboutShow/AboutShow.svelte +9 -8
  2. package/dist/calendar/AboutShow/AboutShow.svelte.d.ts.map +1 -1
  3. package/dist/calendar/Calendar/MiniMonthCalendar.svelte +9 -8
  4. package/dist/calendar/Calendar/MiniMonthCalendar.svelte.d.ts.map +1 -1
  5. package/dist/calendar/FAQs/FAQs.svelte +6 -5
  6. package/dist/calendar/FAQs/FAQs.svelte.d.ts.map +1 -1
  7. package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte +3 -2
  8. package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte.d.ts.map +1 -1
  9. package/dist/calendar/OrderSummary/OrderSummary.svelte +19 -18
  10. package/dist/calendar/OrderSummary/OrderSummary.svelte.d.ts.map +1 -1
  11. package/dist/calendar/PublicCard/PublicCard.svelte +7 -9
  12. package/dist/calendar/PublicCard/PublicCard.svelte.d.ts.map +1 -1
  13. package/dist/calendar/ShowCard/ShowCard.svelte +11 -10
  14. package/dist/calendar/ShowCard/ShowCard.svelte.d.ts.map +1 -1
  15. package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte +5 -3
  16. package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte.d.ts.map +1 -1
  17. package/dist/components/Layout/Section.svelte +4 -4
  18. package/dist/components/Layout/Section.svelte.d.ts.map +1 -1
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.js +9 -0
  21. package/dist/patterns/data/DataTable.svelte +4 -2
  22. package/dist/patterns/data/DataTable.svelte.d.ts.map +1 -1
  23. package/dist/patterns/forms/FormSection.svelte +4 -2
  24. package/dist/patterns/forms/FormSection.svelte.d.ts.map +1 -1
  25. package/dist/patterns/navigation/BottomNav.svelte +4 -3
  26. package/dist/patterns/navigation/BottomNav.svelte.d.ts.map +1 -1
  27. package/dist/patterns/navigation/Header.svelte +11 -10
  28. package/dist/patterns/navigation/Header.svelte.d.ts.map +1 -1
  29. package/dist/patterns/page/PageHeader.svelte +3 -2
  30. package/dist/patterns/page/PageHeader.svelte.d.ts.map +1 -1
  31. package/dist/patterns/page/PageLayout.svelte +2 -1
  32. package/dist/patterns/page/PageLayout.svelte.d.ts.map +1 -1
  33. package/dist/patterns/page/PageLoader.svelte +2 -1
  34. package/dist/patterns/page/PageLoader.svelte.d.ts.map +1 -1
  35. package/dist/patterns/page/SectionHeader.svelte +5 -3
  36. package/dist/patterns/page/SectionHeader.svelte.d.ts.map +1 -1
  37. package/dist/primitives/Accordion/Accordion.svelte +2 -1
  38. package/dist/primitives/Accordion/Accordion.svelte.d.ts.map +1 -1
  39. package/dist/primitives/Accordion/AccordionItem.svelte +5 -4
  40. package/dist/primitives/Accordion/AccordionItem.svelte.d.ts.map +1 -1
  41. package/dist/primitives/BottomSheet/BottomSheet.svelte +2 -1
  42. package/dist/primitives/BottomSheet/BottomSheet.svelte.d.ts.map +1 -1
  43. package/dist/primitives/Breadcrumb/Breadcrumb.svelte +6 -5
  44. package/dist/primitives/Breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
  45. package/dist/primitives/Button/Button.svelte +16 -8
  46. package/dist/primitives/Button/Button.svelte.d.ts.map +1 -1
  47. package/dist/primitives/Button/ButtonSaveDemo.svelte +2 -1
  48. package/dist/primitives/Button/ButtonSaveDemo.svelte.d.ts.map +1 -1
  49. package/dist/primitives/Card.svelte +1 -1
  50. package/dist/primitives/DarkModeToggle.svelte +43 -44
  51. package/dist/primitives/DarkModeToggle.svelte.d.ts.map +1 -1
  52. package/dist/primitives/Drawer/Drawer.svelte +121 -47
  53. package/dist/primitives/Drawer/Drawer.svelte.d.ts +4 -0
  54. package/dist/primitives/Drawer/Drawer.svelte.d.ts.map +1 -1
  55. package/dist/primitives/Input/Input.svelte +41 -80
  56. package/dist/primitives/Input/Input.svelte.d.ts +4 -6
  57. package/dist/primitives/Input/Input.svelte.d.ts.map +1 -1
  58. package/dist/primitives/Input/Select.svelte +66 -13
  59. package/dist/primitives/Input/Select.svelte.d.ts +2 -0
  60. package/dist/primitives/Input/Select.svelte.d.ts.map +1 -1
  61. package/dist/primitives/Input/Textarea.svelte +5 -3
  62. package/dist/primitives/Input/Textarea.svelte.d.ts.map +1 -1
  63. package/dist/primitives/Modal/Modal.svelte +13 -1
  64. package/dist/primitives/Modal/Modal.svelte.d.ts.map +1 -1
  65. package/dist/primitives/Pagination/Pagination.svelte +3 -2
  66. package/dist/primitives/Pagination/Pagination.svelte.d.ts.map +1 -1
  67. package/dist/primitives/Tabs/Tabs.svelte +4 -3
  68. package/dist/primitives/Tabs/Tabs.svelte.d.ts.map +1 -1
  69. package/dist/recipes/CropImage/CropImage.svelte +10 -5
  70. package/dist/recipes/CropImage/CropImage.svelte.d.ts.map +1 -1
  71. package/dist/recipes/ImageUploader/ImageUploader.stories.svelte +125 -0
  72. package/dist/recipes/ImageUploader/ImageUploader.stories.svelte.d.ts +28 -0
  73. package/dist/recipes/ImageUploader/ImageUploader.stories.svelte.d.ts.map +1 -0
  74. package/dist/recipes/ImageUploader/ImageUploader.svelte +939 -0
  75. package/dist/recipes/ImageUploader/ImageUploader.svelte.d.ts +60 -0
  76. package/dist/recipes/ImageUploader/ImageUploader.svelte.d.ts.map +1 -0
  77. package/dist/recipes/SuperLogin/SuperLogin.svelte +37 -40
  78. package/dist/recipes/SuperLogin/SuperLogin.svelte.d.ts.map +1 -1
  79. package/dist/recipes/feedback/EmptyState/EmptyState.svelte +3 -2
  80. package/dist/recipes/feedback/EmptyState/EmptyState.svelte.d.ts.map +1 -1
  81. package/dist/recipes/fields/CheckboxField.svelte +3 -2
  82. package/dist/recipes/fields/CheckboxField.svelte.d.ts.map +1 -1
  83. package/dist/recipes/fields/FormField.svelte +12 -4
  84. package/dist/recipes/fields/FormField.svelte.d.ts +3 -1
  85. package/dist/recipes/fields/FormField.svelte.d.ts.map +1 -1
  86. package/dist/recipes/fields/RadioGroup.svelte +13 -4
  87. package/dist/recipes/fields/RadioGroup.svelte.d.ts +4 -1
  88. package/dist/recipes/fields/RadioGroup.svelte.d.ts.map +1 -1
  89. package/dist/recipes/fields/SelectField.svelte +12 -3
  90. package/dist/recipes/fields/SelectField.svelte.d.ts +4 -1
  91. package/dist/recipes/fields/SelectField.svelte.d.ts.map +1 -1
  92. package/dist/recipes/fields/TextareaField.svelte +2 -1
  93. package/dist/recipes/fields/TextareaField.svelte.d.ts.map +1 -1
  94. package/dist/recipes/fields/ToggleField.svelte +3 -2
  95. package/dist/recipes/fields/ToggleField.svelte.d.ts.map +1 -1
  96. package/dist/recipes/inputs/MultiSelect.svelte +8 -7
  97. package/dist/recipes/inputs/MultiSelect.svelte.d.ts.map +1 -1
  98. package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte +9 -9
  99. package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte.d.ts.map +1 -1
  100. package/dist/recipes/inputs/Search.svelte +7 -6
  101. package/dist/recipes/inputs/Search.svelte.d.ts.map +1 -1
  102. package/dist/recipes/modals/AlertModal.svelte +3 -2
  103. package/dist/recipes/modals/AlertModal.svelte.d.ts.map +1 -1
  104. package/dist/recipes/modals/ConfirmationModal.svelte +4 -3
  105. package/dist/recipes/modals/ConfirmationModal.svelte.d.ts.map +1 -1
  106. package/dist/recipes/modals/InputModal.svelte +9 -8
  107. package/dist/recipes/modals/InputModal.svelte.d.ts.map +1 -1
  108. package/dist/recipes/modals/ModalStateManager.svelte +4 -3
  109. package/dist/recipes/modals/ModalStateManager.svelte.d.ts.map +1 -1
  110. package/dist/recipes/modals/StatusModal.svelte +5 -4
  111. package/dist/recipes/modals/StatusModal.svelte.d.ts.map +1 -1
  112. package/dist/stories/ButtonAuditReview.svelte +361 -397
  113. package/dist/stories/ButtonAuditReview.svelte.d.ts +24 -4
  114. package/dist/stories/ButtonAuditReview.svelte.d.ts.map +1 -1
  115. package/dist/tokens/index.d.ts +4 -8
  116. package/dist/tokens/index.d.ts.map +1 -1
  117. package/dist/tokens/index.js +4 -8
  118. package/dist/tokens/typography.d.ts +76 -169
  119. package/dist/tokens/typography.d.ts.map +1 -1
  120. package/dist/tokens/typography.js +93 -62
  121. package/package.json +4 -2
@@ -1,7 +1,27 @@
1
1
  export default ButtonAuditReview;
2
- type ButtonAuditReview = {
3
- $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Record<string, never>>): void;
2
+ type ButtonAuditReview = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
5
8
  };
6
- declare const ButtonAuditReview: import("svelte").Component<Record<string, never>, {}, "">;
9
+ declare const ButtonAuditReview: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
+ $$bindings?: Bindings;
17
+ } & Exports;
18
+ (internal: unknown, props: {
19
+ $$events?: Events;
20
+ $$slots?: Slots;
21
+ }): Exports & {
22
+ $set?: any;
23
+ $on?: any;
24
+ };
25
+ z_$$bindings?: Bindings;
26
+ }
7
27
  //# sourceMappingURL=ButtonAuditReview.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonAuditReview.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/stories/ButtonAuditReview.svelte.js"],"names":[],"mappings":";;;;;AAibA,2FAAgE"}
1
+ {"version":3,"file":"ButtonAuditReview.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/stories/ButtonAuditReview.svelte.js"],"names":[],"mappings":";;;;;;;;AA4bA;;;;mBAA6H;6CAThF,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,OAAO,OAAO,QAAQ;IAC3L,cAAc,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,WAAW,OAAO,SAAS;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IACtG,eAAe,QAAQ,CAAC"}
@@ -1,11 +1,7 @@
1
1
  /**
2
- * @packageDocumentation
3
- * @module @getmicdrop/svelte-components/tokens
2
+ * Design Tokens
3
+ *
4
+ * Centralized styling constants for consistent design across all Micdrop apps.
4
5
  */
5
- export { colors, lightColors, darkColors, backgroundColors, textColors, brandColors, accentColors, strokeColors, uiColors, sidebarColors, legacyAliases, type ColorToken, type LegacyColorAlias, } from './colors.js';
6
- export { spacing, spacingAliases, type SpacingKey, type SpacingAlias, } from './spacing.js';
7
- export { typography, fontSize, fontWeight, fontFamily, lineHeight, letterSpacing, type FontSizeKey, type FontWeightKey, type FontFamilyKey, type LineHeightKey, type LetterSpacingKey, } from './typography.js';
8
- export { borderRadius, radiusAliases, type BorderRadiusKey, type RadiusAlias, } from './radius.js';
9
- export { boxShadow, customShadows, shadows, type BoxShadowKey, type CustomShadowKey, type ShadowKey, } from './shadows.js';
10
- export { zIndex, layers, type ZIndexKey, type LayerKey, } from './z-index.js';
6
+ export { typography, type TypographyToken } from './typography.js';
11
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,MAAM,EACN,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,OAAO,EACP,cAAc,EACd,KAAK,UAAU,EACf,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,WAAW,GACjB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,SAAS,EACT,aAAa,EACb,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,SAAS,GACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,SAAS,EACd,KAAK,QAAQ,GACd,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,10 +1,6 @@
1
1
  /**
2
- * @packageDocumentation
3
- * @module @getmicdrop/svelte-components/tokens
2
+ * Design Tokens
3
+ *
4
+ * Centralized styling constants for consistent design across all Micdrop apps.
4
5
  */
5
- export { colors, lightColors, darkColors, backgroundColors, textColors, brandColors, accentColors, strokeColors, uiColors, sidebarColors, legacyAliases, } from './colors.js';
6
- export { spacing, spacingAliases, } from './spacing.js';
7
- export { typography, fontSize, fontWeight, fontFamily, lineHeight, letterSpacing, } from './typography.js';
8
- export { borderRadius, radiusAliases, } from './radius.js';
9
- export { boxShadow, customShadows, shadows, } from './shadows.js';
10
- export { zIndex, layers, } from './z-index.js';
6
+ export { typography } from './typography.js';
@@ -1,174 +1,81 @@
1
1
  /**
2
- * @packageDocumentation
3
- * Typography tokens compatible with Tailwind.
2
+ * Typography Design Tokens
3
+ *
4
+ * Centralized text styling classes to ensure consistency across all Micdrop apps.
5
+ * Import and use these instead of writing raw Tailwind classes for text.
6
+ *
7
+ * @example
8
+ * ```svelte
9
+ * <script>
10
+ * import { typography } from '@getmicdrop/svelte-components';
11
+ * </script>
12
+ *
13
+ * <h1 class={typography.h1}>Page Title</h1>
14
+ * <p class={typography.body}>Content here</p>
15
+ * <span class={typography.muted}>Helper text</span>
16
+ * ```
4
17
  */
5
- export declare const fontSize: {
6
- readonly xs: readonly ["0.75rem", {
7
- readonly lineHeight: "1rem";
8
- }];
9
- readonly sm: readonly ["0.875rem", {
10
- readonly lineHeight: "1.25rem";
11
- }];
12
- readonly base: readonly ["1rem", {
13
- readonly lineHeight: "1.5rem";
14
- }];
15
- readonly lg: readonly ["1.125rem", {
16
- readonly lineHeight: "1.75rem";
17
- }];
18
- readonly xl: readonly ["1.25rem", {
19
- readonly lineHeight: "1.75rem";
20
- }];
21
- readonly '2xl': readonly ["1.5rem", {
22
- readonly lineHeight: "2rem";
23
- }];
24
- readonly '3xl': readonly ["1.875rem", {
25
- readonly lineHeight: "2.25rem";
26
- }];
27
- readonly '4xl': readonly ["2.25rem", {
28
- readonly lineHeight: "2.5rem";
29
- }];
30
- readonly '5xl': readonly ["3rem", {
31
- readonly lineHeight: "1";
32
- }];
33
- readonly '6xl': readonly ["3.75rem", {
34
- readonly lineHeight: "1";
35
- }];
36
- readonly '7xl': readonly ["4.5rem", {
37
- readonly lineHeight: "1";
38
- }];
39
- readonly '8xl': readonly ["6rem", {
40
- readonly lineHeight: "1";
41
- }];
42
- readonly '9xl': readonly ["8rem", {
43
- readonly lineHeight: "1";
44
- }];
45
- };
46
- export declare const fontWeight: {
47
- readonly thin: "100";
48
- readonly extralight: "200";
49
- readonly light: "300";
50
- readonly normal: "400";
51
- readonly medium: "500";
52
- readonly semibold: "600";
53
- readonly bold: "700";
54
- readonly extrabold: "800";
55
- readonly black: "900";
56
- };
57
- export declare const fontFamily: {
58
- readonly sans: readonly ["Inter", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", "sans-serif"];
59
- readonly mono: readonly ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"];
60
- readonly serif: readonly ["ui-serif", "Georgia", "Cambria", "Times New Roman", "Times", "serif"];
61
- };
62
- export declare const lineHeight: {
63
- readonly none: "1";
64
- readonly tight: "1.25";
65
- readonly snug: "1.375";
66
- readonly normal: "1.5";
67
- readonly relaxed: "1.625";
68
- readonly loose: "2";
69
- readonly '3': ".75rem";
70
- readonly '4': "1rem";
71
- readonly '5': "1.25rem";
72
- readonly '6': "1.5rem";
73
- readonly '7': "1.75rem";
74
- readonly '8': "2rem";
75
- readonly '9': "2.25rem";
76
- readonly '10': "2.5rem";
77
- };
78
- export declare const letterSpacing: {
79
- readonly tighter: "-0.05em";
80
- readonly tight: "-0.025em";
81
- readonly normal: "0em";
82
- readonly wide: "0.025em";
83
- readonly wider: "0.05em";
84
- readonly widest: "0.1em";
85
- };
86
18
  export declare const typography: {
87
- readonly fontSize: {
88
- readonly xs: readonly ["0.75rem", {
89
- readonly lineHeight: "1rem";
90
- }];
91
- readonly sm: readonly ["0.875rem", {
92
- readonly lineHeight: "1.25rem";
93
- }];
94
- readonly base: readonly ["1rem", {
95
- readonly lineHeight: "1.5rem";
96
- }];
97
- readonly lg: readonly ["1.125rem", {
98
- readonly lineHeight: "1.75rem";
99
- }];
100
- readonly xl: readonly ["1.25rem", {
101
- readonly lineHeight: "1.75rem";
102
- }];
103
- readonly '2xl': readonly ["1.5rem", {
104
- readonly lineHeight: "2rem";
105
- }];
106
- readonly '3xl': readonly ["1.875rem", {
107
- readonly lineHeight: "2.25rem";
108
- }];
109
- readonly '4xl': readonly ["2.25rem", {
110
- readonly lineHeight: "2.5rem";
111
- }];
112
- readonly '5xl': readonly ["3rem", {
113
- readonly lineHeight: "1";
114
- }];
115
- readonly '6xl': readonly ["3.75rem", {
116
- readonly lineHeight: "1";
117
- }];
118
- readonly '7xl': readonly ["4.5rem", {
119
- readonly lineHeight: "1";
120
- }];
121
- readonly '8xl': readonly ["6rem", {
122
- readonly lineHeight: "1";
123
- }];
124
- readonly '9xl': readonly ["8rem", {
125
- readonly lineHeight: "1";
126
- }];
127
- };
128
- readonly fontWeight: {
129
- readonly thin: "100";
130
- readonly extralight: "200";
131
- readonly light: "300";
132
- readonly normal: "400";
133
- readonly medium: "500";
134
- readonly semibold: "600";
135
- readonly bold: "700";
136
- readonly extrabold: "800";
137
- readonly black: "900";
138
- };
139
- readonly fontFamily: {
140
- readonly sans: readonly ["Inter", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", "sans-serif"];
141
- readonly mono: readonly ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"];
142
- readonly serif: readonly ["ui-serif", "Georgia", "Cambria", "Times New Roman", "Times", "serif"];
143
- };
144
- readonly lineHeight: {
145
- readonly none: "1";
146
- readonly tight: "1.25";
147
- readonly snug: "1.375";
148
- readonly normal: "1.5";
149
- readonly relaxed: "1.625";
150
- readonly loose: "2";
151
- readonly '3': ".75rem";
152
- readonly '4': "1rem";
153
- readonly '5': "1.25rem";
154
- readonly '6': "1.5rem";
155
- readonly '7': "1.75rem";
156
- readonly '8': "2rem";
157
- readonly '9': "2.25rem";
158
- readonly '10': "2.5rem";
159
- };
160
- readonly letterSpacing: {
161
- readonly tighter: "-0.05em";
162
- readonly tight: "-0.025em";
163
- readonly normal: "0em";
164
- readonly wide: "0.025em";
165
- readonly wider: "0.05em";
166
- readonly widest: "0.1em";
167
- };
19
+ /** Page title - 2xl semibold */
20
+ readonly h1: "text-2xl font-semibold text-gray-900 dark:text-white";
21
+ /** Section title - xl semibold */
22
+ readonly h2: "text-xl font-semibold text-gray-900 dark:text-white";
23
+ /** Subsection title - lg semibold */
24
+ readonly h3: "text-lg font-semibold text-gray-900 dark:text-white";
25
+ /** Card/group title - base semibold */
26
+ readonly h4: "text-base font-semibold text-gray-900 dark:text-white";
27
+ /** Small title - sm semibold */
28
+ readonly h5: "text-sm font-semibold text-gray-900 dark:text-white";
29
+ /** Micro title - xs semibold */
30
+ readonly h6: "text-xs font-semibold text-gray-900 dark:text-white";
31
+ /** Standard body text */
32
+ readonly body: "text-base text-gray-900 dark:text-white leading-relaxed";
33
+ /** Body text - muted/secondary */
34
+ readonly bodyMuted: "text-base text-gray-500 dark:text-gray-400 leading-relaxed";
35
+ /** Small body text */
36
+ readonly sm: "text-sm text-gray-900 dark:text-white";
37
+ /** Small text - muted/secondary */
38
+ readonly smMuted: "text-sm text-gray-500 dark:text-gray-400";
39
+ /** Extra small text */
40
+ readonly xs: "text-xs text-gray-900 dark:text-white";
41
+ /** Extra small text - muted */
42
+ readonly xsMuted: "text-xs text-gray-500 dark:text-gray-400";
43
+ /** Muted text color only (no size) - for applying to elements with other size classes */
44
+ readonly textMuted: "text-gray-500 dark:text-gray-400";
45
+ /** Muted icon color - same as textMuted, for semantic clarity */
46
+ readonly iconMuted: "text-gray-500 dark:text-gray-400";
47
+ /** Form field label */
48
+ readonly label: "text-sm font-medium text-gray-900 dark:text-white";
49
+ /** Form field label - with standard spacing */
50
+ readonly labelSpaced: "text-sm font-medium text-gray-900 dark:text-white mb-2";
51
+ /** Helper/description text below inputs */
52
+ readonly helper: "text-sm text-gray-500 dark:text-gray-400";
53
+ /** Placeholder-style text */
54
+ readonly placeholder: "text-sm text-gray-400 dark:text-gray-500";
55
+ /** Error message text */
56
+ readonly error: "text-sm text-red-500 dark:text-red-400";
57
+ /** Success message text */
58
+ readonly success: "text-sm text-green-600 dark:text-green-400";
59
+ /** Warning message text */
60
+ readonly warning: "text-sm text-yellow-600 dark:text-yellow-400";
61
+ /** Info message text */
62
+ readonly info: "text-sm text-blue-600 dark:text-blue-400";
63
+ /** Standard link */
64
+ readonly link: "text-sm text-blue-700 dark:text-blue-500 hover:underline";
65
+ /** Muted/subtle link */
66
+ readonly linkMuted: "text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300";
67
+ /** Price/currency display */
68
+ readonly price: "text-lg font-semibold text-gray-900 dark:text-white";
69
+ /** Large price display */
70
+ readonly priceLg: "text-2xl font-bold text-gray-900 dark:text-white";
71
+ /** Badge/tag text */
72
+ readonly badge: "text-xs font-medium";
73
+ /** Table header */
74
+ readonly tableHeader: "text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider";
75
+ /** Code/monospace */
76
+ readonly code: "text-sm font-mono text-gray-900 dark:text-white";
77
+ /** Muted code */
78
+ readonly codeMuted: "text-xs font-mono text-gray-500 dark:text-gray-400";
168
79
  };
169
- export type FontSizeKey = keyof typeof fontSize;
170
- export type FontWeightKey = keyof typeof fontWeight;
171
- export type FontFamilyKey = keyof typeof fontFamily;
172
- export type LineHeightKey = keyof typeof lineHeight;
173
- export type LetterSpacingKey = keyof typeof letterSpacing;
80
+ export type TypographyToken = keyof typeof typography;
174
81
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/typography.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcX,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;CAUb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAeb,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMb,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,QAAQ,CAAC;AAChD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AACpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,UAAU;IAKrB,gCAAgC;;IAGhC,kCAAkC;;IAGlC,qCAAqC;;IAGrC,uCAAuC;;IAGvC,gCAAgC;;IAGhC,gCAAgC;;IAOhC,yBAAyB;;IAGzB,kCAAkC;;IAGlC,sBAAsB;;IAGtB,mCAAmC;;IAGnC,uBAAuB;;IAGvB,+BAA+B;;IAG/B,yFAAyF;;IAGzF,iEAAiE;;IAOjE,uBAAuB;;IAGvB,+CAA+C;;IAG/C,2CAA2C;;IAG3C,6BAA6B;;IAO7B,yBAAyB;;IAGzB,2BAA2B;;IAG3B,2BAA2B;;IAG3B,wBAAwB;;IAOxB,oBAAoB;;IAGpB,wBAAwB;;IAOxB,6BAA6B;;IAG7B,0BAA0B;;IAG1B,qBAAqB;;IAGrB,mBAAmB;;IAGnB,qBAAqB;;IAGrB,iBAAiB;;CAET,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,UAAU,CAAC"}
@@ -1,66 +1,97 @@
1
1
  /**
2
- * @packageDocumentation
3
- * Typography tokens compatible with Tailwind.
2
+ * Typography Design Tokens
3
+ *
4
+ * Centralized text styling classes to ensure consistency across all Micdrop apps.
5
+ * Import and use these instead of writing raw Tailwind classes for text.
6
+ *
7
+ * @example
8
+ * ```svelte
9
+ * <script>
10
+ * import { typography } from '@getmicdrop/svelte-components';
11
+ * </script>
12
+ *
13
+ * <h1 class={typography.h1}>Page Title</h1>
14
+ * <p class={typography.body}>Content here</p>
15
+ * <span class={typography.muted}>Helper text</span>
16
+ * ```
4
17
  */
5
- export const fontSize = {
6
- xs: ['0.75rem', { lineHeight: '1rem' }],
7
- sm: ['0.875rem', { lineHeight: '1.25rem' }],
8
- base: ['1rem', { lineHeight: '1.5rem' }],
9
- lg: ['1.125rem', { lineHeight: '1.75rem' }],
10
- xl: ['1.25rem', { lineHeight: '1.75rem' }],
11
- '2xl': ['1.5rem', { lineHeight: '2rem' }],
12
- '3xl': ['1.875rem', { lineHeight: '2.25rem' }],
13
- '4xl': ['2.25rem', { lineHeight: '2.5rem' }],
14
- '5xl': ['3rem', { lineHeight: '1' }],
15
- '6xl': ['3.75rem', { lineHeight: '1' }],
16
- '7xl': ['4.5rem', { lineHeight: '1' }],
17
- '8xl': ['6rem', { lineHeight: '1' }],
18
- '9xl': ['8rem', { lineHeight: '1' }],
19
- };
20
- export const fontWeight = {
21
- thin: '100',
22
- extralight: '200',
23
- light: '300',
24
- normal: '400',
25
- medium: '500',
26
- semibold: '600',
27
- bold: '700',
28
- extrabold: '800',
29
- black: '900',
30
- };
31
- export const fontFamily = {
32
- sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', 'sans-serif'],
33
- mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace'],
34
- serif: ['ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
35
- };
36
- export const lineHeight = {
37
- none: '1',
38
- tight: '1.25',
39
- snug: '1.375',
40
- normal: '1.5',
41
- relaxed: '1.625',
42
- loose: '2',
43
- '3': '.75rem',
44
- '4': '1rem',
45
- '5': '1.25rem',
46
- '6': '1.5rem',
47
- '7': '1.75rem',
48
- '8': '2rem',
49
- '9': '2.25rem',
50
- '10': '2.5rem',
51
- };
52
- export const letterSpacing = {
53
- tighter: '-0.05em',
54
- tight: '-0.025em',
55
- normal: '0em',
56
- wide: '0.025em',
57
- wider: '0.05em',
58
- widest: '0.1em',
59
- };
60
18
  export const typography = {
61
- fontSize,
62
- fontWeight,
63
- fontFamily,
64
- lineHeight,
65
- letterSpacing,
19
+ // ==========================================================================
20
+ // HEADINGS
21
+ // ==========================================================================
22
+ /** Page title - 2xl semibold */
23
+ h1: "text-2xl font-semibold text-gray-900 dark:text-white",
24
+ /** Section title - xl semibold */
25
+ h2: "text-xl font-semibold text-gray-900 dark:text-white",
26
+ /** Subsection title - lg semibold */
27
+ h3: "text-lg font-semibold text-gray-900 dark:text-white",
28
+ /** Card/group title - base semibold */
29
+ h4: "text-base font-semibold text-gray-900 dark:text-white",
30
+ /** Small title - sm semibold */
31
+ h5: "text-sm font-semibold text-gray-900 dark:text-white",
32
+ /** Micro title - xs semibold */
33
+ h6: "text-xs font-semibold text-gray-900 dark:text-white",
34
+ // ==========================================================================
35
+ // BODY TEXT
36
+ // ==========================================================================
37
+ /** Standard body text */
38
+ body: "text-base text-gray-900 dark:text-white leading-relaxed",
39
+ /** Body text - muted/secondary */
40
+ bodyMuted: "text-base text-gray-500 dark:text-gray-400 leading-relaxed",
41
+ /** Small body text */
42
+ sm: "text-sm text-gray-900 dark:text-white",
43
+ /** Small text - muted/secondary */
44
+ smMuted: "text-sm text-gray-500 dark:text-gray-400",
45
+ /** Extra small text */
46
+ xs: "text-xs text-gray-900 dark:text-white",
47
+ /** Extra small text - muted */
48
+ xsMuted: "text-xs text-gray-500 dark:text-gray-400",
49
+ /** Muted text color only (no size) - for applying to elements with other size classes */
50
+ textMuted: "text-gray-500 dark:text-gray-400",
51
+ /** Muted icon color - same as textMuted, for semantic clarity */
52
+ iconMuted: "text-gray-500 dark:text-gray-400",
53
+ // ==========================================================================
54
+ // LABELS & FORM TEXT
55
+ // ==========================================================================
56
+ /** Form field label */
57
+ label: "text-sm font-medium text-gray-900 dark:text-white",
58
+ /** Form field label - with standard spacing */
59
+ labelSpaced: "text-sm font-medium text-gray-900 dark:text-white mb-2",
60
+ /** Helper/description text below inputs */
61
+ helper: "text-sm text-gray-500 dark:text-gray-400",
62
+ /** Placeholder-style text */
63
+ placeholder: "text-sm text-gray-400 dark:text-gray-500",
64
+ // ==========================================================================
65
+ // STATUS & FEEDBACK
66
+ // ==========================================================================
67
+ /** Error message text */
68
+ error: "text-sm text-red-500 dark:text-red-400",
69
+ /** Success message text */
70
+ success: "text-sm text-green-600 dark:text-green-400",
71
+ /** Warning message text */
72
+ warning: "text-sm text-yellow-600 dark:text-yellow-400",
73
+ /** Info message text */
74
+ info: "text-sm text-blue-600 dark:text-blue-400",
75
+ // ==========================================================================
76
+ // LINKS
77
+ // ==========================================================================
78
+ /** Standard link */
79
+ link: "text-sm text-blue-700 dark:text-blue-500 hover:underline",
80
+ /** Muted/subtle link */
81
+ linkMuted: "text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300",
82
+ // ==========================================================================
83
+ // SPECIAL CASES
84
+ // ==========================================================================
85
+ /** Price/currency display */
86
+ price: "text-lg font-semibold text-gray-900 dark:text-white",
87
+ /** Large price display */
88
+ priceLg: "text-2xl font-bold text-gray-900 dark:text-white",
89
+ /** Badge/tag text */
90
+ badge: "text-xs font-medium",
91
+ /** Table header */
92
+ tableHeader: "text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",
93
+ /** Code/monospace */
94
+ code: "text-sm font-mono text-gray-900 dark:text-white",
95
+ /** Muted code */
96
+ codeMuted: "text-xs font-mono text-gray-500 dark:text-gray-400",
66
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getmicdrop/svelte-components",
3
- "version": "5.3.6",
3
+ "version": "5.3.10",
4
4
  "description": "Shared component library for Micdrop applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -91,7 +91,8 @@
91
91
  "lint": "eslint src",
92
92
  "lint:fix": "eslint src --fix",
93
93
  "format": "prettier --write \"src/**/*.{js,svelte,ts,css,json}\"",
94
- "prepublishOnly": "npm run build:lib"
94
+ "prepublishOnly": "npm run build:lib",
95
+ "prepare": "husky"
95
96
  },
96
97
  "keywords": [
97
98
  "svelte",
@@ -178,6 +179,7 @@
178
179
  "cypress": "^15.1.0",
179
180
  "eslint": "^9.7.0",
180
181
  "eslint-plugin-svelte": "^2.43.0",
182
+ "husky": "^9.1.7",
181
183
  "jsdom": "^24.1.1",
182
184
  "postcss": "^8.4.39",
183
185
  "prettier": "^3.3.3",