milk-lib 0.0.54 → 0.0.56

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.
@@ -22,6 +22,14 @@
22
22
  --focus-color: var(--line-base-emp);
23
23
  }
24
24
 
25
+ .Button.Button-base-text[data-variant="milk"] {
26
+ --background-color: #fff;
27
+ --hover-background: var(--bg-base-200);
28
+ --active-background: var(--bg-base-300);
29
+ --color: var(--text-base-main);
30
+ --focus-color: var(--line-base-emp);
31
+ }
32
+
25
33
  .Button.Button-danger-contained[data-variant="milk"] {
26
34
  --background-color: var(--bg-danger-100);
27
35
  --hover-background: var(--bg-danger-200);
@@ -28,6 +28,7 @@
28
28
  : variant === "base-contained" ? "Button-base-contained"
29
29
  : variant === "base-outlined" ? "Button-base-outlined"
30
30
  : variant === "base-emphasis" ? "Button-base-emphasis"
31
+ : variant === "base-text" ? "Button-base-text"
31
32
  : variant === "danger-contained" ? "Button-danger-contained"
32
33
  : variant === "danger-outlined" ? "Button-danger-outlined"
33
34
  : variant === "danger-emphasis" ? "Button-danger-emphasis" : ""
@@ -1,6 +1,6 @@
1
1
  import type { IButtonProps } from '../Button/Button.types';
2
2
  export type ButtonMilkSizes = 'sm' | 'md' | 'lg';
3
- export type ButtonMilkVariants = 'primary-emphasis' | 'primary-outlined' | 'primary-contained' | 'base-contained' | 'base-outlined' | 'base-emphasis' | 'danger-contained' | 'danger-outlined' | 'danger-emphasis';
3
+ export type ButtonMilkVariants = 'primary-emphasis' | 'primary-outlined' | 'primary-contained' | 'base-contained' | 'base-outlined' | 'base-emphasis' | 'base-text' | 'danger-contained' | 'danger-outlined' | 'danger-emphasis';
4
4
  export interface IButtonMilkProps extends IButtonProps {
5
5
  size?: ButtonMilkSizes;
6
6
  variant?: ButtonMilkVariants;
@@ -17,6 +17,7 @@
17
17
  fullWidth,
18
18
  minWidth = 320,
19
19
  animate = false,
20
+ onTransitionEnd,
20
21
  id,
21
22
  children
22
23
  }: IMenuProps = $props();
@@ -85,6 +86,7 @@
85
86
  tabindex={isVisible ? 0 : -1}
86
87
  aria-hidden={!isVisible}
87
88
  onmouseleave={mouseLeaveHandler}
89
+ ontransitionend={onTransitionEnd}
88
90
  bind:this={menuElement}
89
91
  class={`Menu ${isVisible ? "Menu-open" : "Menu-closed"} ${animate ? "Menu-animate" : ""}`}
90
92
  style={`
@@ -11,6 +11,7 @@ export interface IMenuProps {
11
11
  minWidth?: number;
12
12
  fullWidth?: boolean;
13
13
  animate?: boolean;
14
+ onTransitionEnd?: (e: TransitionEvent) => void;
14
15
  id?: string;
15
16
  children: Snippet;
16
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "milk-lib",
3
3
  "license": "MIT",
4
- "version": "0.0.54",
4
+ "version": "0.0.56",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run prepack",