milk-lib 0.0.28 → 0.0.29

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,30 @@
22
22
  --focus-color: var(--line-base-emp);
23
23
  }
24
24
 
25
+ .Button.Button-danger-contained[data-variant="milk"] {
26
+ --background-color: var(--bg-danger-100);
27
+ --hover-background: var(--bg-danger-200);
28
+ --active-background: var(--bg-danger-300);
29
+ --color: var(--text-danger-main);
30
+ --focus-color: var(--line-danger);
31
+ }
32
+
33
+ .Button.Button-danger-outlined[data-variant="milk"] {
34
+ --background-color: transparent;
35
+ --hover-background: var(--bg-danger-100);
36
+ --active-background: var(--bg-danger-200);
37
+ --color: var(--text-danger-main);
38
+ --border-color: var(--line-danger);
39
+ --focus-color: var(--line-danger);
40
+ }
41
+
42
+ .Button.Button-danger-emphasis[data-variant="milk"] {
43
+ --background-color: var(--bg-danger-emp-100);
44
+ --hover-background: var(--bg-danger-emp-200);
45
+ --active-background: var(--bg-danger-emp-300);
46
+ --color: white;
47
+ }
48
+
25
49
  .Button.Button-primary-contained[data-variant="milk"] {
26
50
  --background-color: var(--bg-primary-100);
27
51
  --hover-background: var(--bg-primary-200);
@@ -26,7 +26,10 @@
26
26
  : variant === "primary-contained" ? "Button-primary-contained"
27
27
  : variant === "base-contained" ? "Button-base-contained"
28
28
  : variant === "base-outlined" ? "Button-base-outlined"
29
- : variant === "base-emphasis" ? "Button-base-emphasis" : ""
29
+ : variant === "base-emphasis" ? "Button-base-emphasis"
30
+ : variant === "danger-contained" ? "Button-danger-contained"
31
+ : variant === "danger-outlined" ? "Button-danger-outlined"
32
+ : variant === "danger-emphasis" ? "Button-danger-emphasis" : ""
30
33
 
31
34
  let classNames = `${sizeClassName} ${variantClassname}`;
32
35
 
@@ -42,4 +45,4 @@
42
45
  {@render children?.()}
43
46
  </Button>
44
47
 
45
- <style></style>
48
+ <style></style>
@@ -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';
3
+ export type ButtonMilkVariants = 'primary-emphasis' | 'primary-outlined' | 'primary-contained' | 'base-contained' | 'base-outlined' | 'base-emphasis' | 'danger-contained' | 'danger-outlined' | 'danger-emphasis';
4
4
  export interface IButtonMilkProps extends IButtonProps {
5
5
  size?: ButtonMilkSizes;
6
6
  variant?: ButtonMilkVariants;
@@ -55,7 +55,6 @@
55
55
  e.stopPropagation();
56
56
  if (!isOpen) {
57
57
  if (e.propertyName === 'transform') {
58
- console.log('hide');
59
58
  shouldRender = false;
60
59
  }
61
60
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "milk-lib",
3
3
  "license": "MIT",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run prepack",