svelte-ant-design 0.9.0 → 0.9.1

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/README.md CHANGED
@@ -18,7 +18,7 @@ Ant Design.
18
18
 
19
19
  ## Status
20
20
 
21
- Version `0.9.0`. Available components: `Button`, `Checkbox` (with `CheckboxGroup`), `Grid` (`Row`, `Col` and `Breakpoints`), `Input` (with `InputTextArea`, `InputPassword`, `InputSearch` and `InputOTP`), `Radio` (with `RadioButton` and `RadioGroup`), `Select` (with `SelectOption` and `SelectOptGroup`), `Switch`, `Tooltip`, `Message` (the `message` calls and `MessageHost`). More components are planned.
21
+ Version `0.9.1`. Available components: `Button`, `Checkbox` (with `CheckboxGroup`), `Grid` (`Row`, `Col` and `Breakpoints`), `Input` (with `InputTextArea`, `InputPassword`, `InputSearch` and `InputOTP`), `Radio` (with `RadioButton` and `RadioGroup`), `Select` (with `SelectOption` and `SelectOptGroup`), `Switch`, `Tooltip`, `Message` (the `message` calls and `MessageHost`). More components are planned.
22
22
 
23
23
  ## Browser support
24
24
 
@@ -17,7 +17,7 @@
17
17
  <circle class="track" cx="8" cy="8" r="6" />
18
18
  <path class="arc" d="M8 2a6 6 0 0 1 6 6" />
19
19
  {:else if name === 'close'}
20
- <path d="M4.4 4.4l7.2 7.2M11.6 4.4l-7.2 7.2" />
20
+ <path d="M3.8 3.8l8.4 8.4M12.2 3.8l-8.4 8.4" />
21
21
  {:else}
22
22
  <mask id="{uid}-cut" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="16">
23
23
  <rect width="16" height="16" fill="#fff" stroke="none" />
@@ -48,6 +48,10 @@
48
48
  stroke-linejoin: round;
49
49
  }
50
50
 
51
+ .ads-message-svg-close {
52
+ stroke-width: 1.8;
53
+ }
54
+
51
55
  .ads-message-svg-loading {
52
56
  animation: ads-message-spin var(--ads-motion-duration-spinner) linear infinite;
53
57
  }
@@ -283,8 +283,8 @@
283
283
  border: 0;
284
284
  border-radius: var(--ads-radius-sm);
285
285
  color: var(--ads-message-close-color);
286
- background: transparent;
287
- font-size: 12px;
286
+ background: var(--ads-message-close-bg);
287
+ font-size: var(--ads-message-icon-size);
288
288
  cursor: pointer;
289
289
  transition:
290
290
  color var(--ads-motion-duration) var(--ads-motion-ease),
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.9.1";
2
2
  export { default as Button } from './Button/Button.svelte';
3
3
  export { default as Switch } from './Switch/Switch.svelte';
4
4
  export { default as Checkbox } from './Checkbox/Checkbox.svelte';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Public API of the library. Components are re-exported from here.
2
- export const VERSION = '0.9.0';
2
+ export const VERSION = '0.9.1';
3
3
  export { default as Button } from './Button/Button.svelte';
4
4
  export { default as Switch } from './Switch/Switch.svelte';
5
5
  export { default as Checkbox } from './Checkbox/Checkbox.svelte';
package/dist/tokens.css CHANGED
@@ -375,7 +375,8 @@
375
375
  --ads-message-close-size: 24px;
376
376
  --ads-message-close-color: rgba(0, 0, 0, 0.65);
377
377
  --ads-message-close-color-hover: rgba(0, 0, 0, 0.88);
378
- --ads-message-close-bg-hover: rgba(0, 0, 0, 0.06);
378
+ --ads-message-close-bg: rgba(0, 0, 0, 0.04);
379
+ --ads-message-close-bg-hover: rgba(0, 0, 0, 0.1);
379
380
  --ads-message-motion-offset: 64px;
380
381
  --ads-message-stack-offset: 8px;
381
382
  --ads-message-stack-scale-step: 0.06;
@@ -549,5 +550,6 @@
549
550
  --ads-message-icon-warning: #d89614;
550
551
  --ads-message-close-color: rgba(255, 255, 255, 0.65);
551
552
  --ads-message-close-color-hover: rgba(255, 255, 255, 0.88);
552
- --ads-message-close-bg-hover: rgba(255, 255, 255, 0.12);
553
+ --ads-message-close-bg: rgba(255, 255, 255, 0.08);
554
+ --ads-message-close-bg-hover: rgba(255, 255, 255, 0.18);
553
555
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-ant-design",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "An independent UI component library for Svelte 5, inspired by Ant Design.",
5
5
  "license": "MIT",
6
6
  "repository": {