@manakind/ui-core 0.7.0 → 0.8.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/alert/alert.css
CHANGED
package/dist/button/button.css
CHANGED
|
@@ -87,6 +87,23 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
&.ds-button--danger {
|
|
91
|
+
background-color: var(--ds-button-danger-bg);
|
|
92
|
+
color: var(--ds-button-danger-text);
|
|
93
|
+
|
|
94
|
+
& .ds-button__spinner::after {
|
|
95
|
+
color: var(--ds-button-danger-text);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:hover:not(:disabled) {
|
|
99
|
+
background-color: var(--ds-button-danger-bg-hover);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:active:not(:disabled) {
|
|
103
|
+
background-color: var(--ds-button-danger-bg-active);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
90
107
|
&:focus-visible {
|
|
91
108
|
outline: 2px solid var(--ds-button-focus-ring);
|
|
92
109
|
outline-offset: 3px;
|
package/dist/button/button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ark } from '@ark-ui/react/factory';
|
|
|
2
2
|
import { type ComponentProps, type ReactElement, type ReactNode } from 'react';
|
|
3
3
|
import { type IconSource } from '../icon/icon';
|
|
4
4
|
import './button.css';
|
|
5
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
5
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'danger';
|
|
6
6
|
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
7
7
|
interface ButtonOwnProps {
|
|
8
8
|
/** Visual style variant. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C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I,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IACrE,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAkGnE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAExC"}
|
package/dist/dialog/dialog.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface DialogProps {
|
|
|
85
85
|
* <DialogClose>
|
|
86
86
|
* <Button ref={cancelRef} variant="secondary">Cancel</Button>
|
|
87
87
|
* </DialogClose>
|
|
88
|
-
* <Button onClick={remove}>Remove</Button>
|
|
88
|
+
* <Button variant="danger" onClick={remove}>Remove</Button>
|
|
89
89
|
* </>
|
|
90
90
|
* }
|
|
91
91
|
* />
|
package/dist/dialog/dialog.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Cross } from '../fallback-glyphs';
|
|
|
27
27
|
* <DialogClose>
|
|
28
28
|
* <Button ref={cancelRef} variant="secondary">Cancel</Button>
|
|
29
29
|
* </DialogClose>
|
|
30
|
-
* <Button onClick={remove}>Remove</Button>
|
|
30
|
+
* <Button variant="danger" onClick={remove}>Remove</Button>
|
|
31
31
|
* </>
|
|
32
32
|
* }
|
|
33
33
|
* />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manakind/ui-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
140
|
"@manakind/ds-config": "*",
|
|
141
|
-
"@manakind/manuia-tokens": "0.
|
|
141
|
+
"@manakind/manuia-tokens": "0.8.0",
|
|
142
142
|
"@testing-library/jest-dom": "^6.9.1",
|
|
143
143
|
"@testing-library/react": "^16.3.2",
|
|
144
144
|
"@testing-library/user-event": "^14.6.1",
|