@getmicdrop/svelte-components 5.13.0 → 5.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/OrderSummary/OrderSummary.svelte +67 -7
- package/dist/calendar/OrderSummary/OrderSummary.svelte.d.ts +2 -0
- package/dist/calendar/OrderSummary/OrderSummary.svelte.d.ts.map +1 -1
- package/dist/index.spec.js +1 -1
- package/dist/patterns/chat/ChatActivityNotice.svelte +41 -0
- package/dist/patterns/chat/ChatActivityNotice.svelte.d.ts +21 -0
- package/dist/patterns/chat/ChatActivityNotice.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatBubble.svelte +95 -0
- package/dist/patterns/chat/ChatBubble.svelte.d.ts +31 -0
- package/dist/patterns/chat/ChatBubble.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatContainer.svelte +46 -0
- package/dist/patterns/chat/ChatContainer.svelte.d.ts +21 -0
- package/dist/patterns/chat/ChatContainer.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatDateDivider.svelte +27 -0
- package/dist/patterns/chat/ChatDateDivider.svelte.d.ts +10 -0
- package/dist/patterns/chat/ChatDateDivider.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatInvitationBubble.svelte +37 -0
- package/dist/patterns/chat/ChatInvitationBubble.svelte.d.ts +12 -0
- package/dist/patterns/chat/ChatInvitationBubble.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatInvitationNotice.svelte +27 -0
- package/dist/patterns/chat/ChatInvitationNotice.svelte.d.ts +10 -0
- package/dist/patterns/chat/ChatInvitationNotice.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatMessageGroup.svelte +57 -0
- package/dist/patterns/chat/ChatMessageGroup.svelte.d.ts +25 -0
- package/dist/patterns/chat/ChatMessageGroup.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatSlotUpdate.svelte +46 -0
- package/dist/patterns/chat/ChatSlotUpdate.svelte.d.ts +16 -0
- package/dist/patterns/chat/ChatSlotUpdate.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatStatusBadge.svelte +91 -0
- package/dist/patterns/chat/ChatStatusBadge.svelte.d.ts +22 -0
- package/dist/patterns/chat/ChatStatusBadge.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatStatusTransition.svelte +64 -0
- package/dist/patterns/chat/ChatStatusTransition.svelte.d.ts +19 -0
- package/dist/patterns/chat/ChatStatusTransition.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/ChatTextBubble.svelte +41 -0
- package/dist/patterns/chat/ChatTextBubble.svelte.d.ts +19 -0
- package/dist/patterns/chat/ChatTextBubble.svelte.d.ts.map +1 -0
- package/dist/patterns/chat/index.d.ts +12 -0
- package/dist/patterns/chat/index.d.ts.map +1 -0
- package/dist/patterns/chat/index.js +22 -0
- package/dist/patterns/index.d.ts +1 -0
- package/dist/patterns/index.js +3 -0
- package/dist/primitives/Button/Button.spec.js +8 -6
- package/dist/primitives/Input/Input.svelte +1 -1
- package/dist/recipes/ImageUploader/ImageUploader.svelte +1 -2
- package/dist/tokens/__tests__/sizing.test.js +5 -7
- package/dist/tokens/sizing.d.ts +20 -19
- package/dist/tokens/sizing.d.ts.map +1 -1
- package/dist/tokens/sizing.js +20 -19
- package/package.json +1 -1
package/dist/tokens/sizing.js
CHANGED
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
// =============================================================================
|
|
10
10
|
/**
|
|
11
11
|
* Form input sizes - for Input component with fixed heights
|
|
12
|
-
*
|
|
12
|
+
* Uses explicit heights for consistent toolbar alignment.
|
|
13
13
|
*/
|
|
14
14
|
export const formInputSizes = {
|
|
15
|
-
sm: '
|
|
16
|
-
md: '
|
|
17
|
-
lg: '
|
|
15
|
+
sm: 'h-9 px-3 text-sm',
|
|
16
|
+
md: 'h-10 px-4 text-sm',
|
|
17
|
+
lg: 'h-12 px-4 text-base',
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* Form control sizes - for Select and other form controls
|
|
21
|
-
*
|
|
20
|
+
* Form control sizes - for Select and other form controls
|
|
21
|
+
* Uses explicit heights to match buttons and inputs for toolbar alignment.
|
|
22
22
|
*/
|
|
23
23
|
export const formControlSizes = {
|
|
24
|
-
sm: '
|
|
25
|
-
md: '
|
|
26
|
-
lg: '
|
|
24
|
+
sm: 'h-9 px-3 text-sm',
|
|
25
|
+
md: 'h-10 px-4 text-sm',
|
|
26
|
+
lg: 'h-12 px-4 text-base',
|
|
27
27
|
};
|
|
28
28
|
// =============================================================================
|
|
29
29
|
// ICON/SPINNER SIZES
|
|
@@ -76,18 +76,19 @@ export const skeletonSizes = {
|
|
|
76
76
|
// BUTTON SIZES
|
|
77
77
|
// =============================================================================
|
|
78
78
|
/**
|
|
79
|
-
* Standard button sizes - padding and
|
|
79
|
+
* Standard button sizes - padding, text sizing, and explicit heights for consistency.
|
|
80
|
+
* All toolbar elements (buttons, inputs, selects) should align at the same height.
|
|
80
81
|
*/
|
|
81
82
|
export const buttonSizes = {
|
|
82
|
-
xs: 'px-3
|
|
83
|
-
sm: 'px-3
|
|
84
|
-
md: 'px-4
|
|
85
|
-
lg: 'px-5
|
|
86
|
-
xl: 'px-6
|
|
87
|
-
'xl-medium': 'w-full px-6
|
|
88
|
-
full: 'w-full px-5
|
|
89
|
-
'full-md-auto': 'w-full px-5
|
|
90
|
-
half: 'w-1/2 px-4
|
|
83
|
+
xs: 'h-8 px-3 text-xs',
|
|
84
|
+
sm: 'h-9 px-3 text-sm',
|
|
85
|
+
md: 'h-10 px-4 text-sm',
|
|
86
|
+
lg: 'h-11 px-5 text-sm',
|
|
87
|
+
xl: 'h-12 px-6 text-sm',
|
|
88
|
+
'xl-medium': 'w-full h-12 px-6 text-sm',
|
|
89
|
+
full: 'w-full h-11 px-5 text-sm',
|
|
90
|
+
'full-md-auto': 'w-full h-11 px-5 text-sm md:w-auto',
|
|
91
|
+
half: 'w-1/2 h-10 px-4 text-sm',
|
|
91
92
|
// Landing page hero buttons - taller with larger text
|
|
92
93
|
landing: 'h-12 sm:h-14 px-6 sm:px-8 text-base sm:text-lg',
|
|
93
94
|
};
|