asma-ui-core 3.123.2 → 3.125.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/asma-ui-core.css +1 -1
- package/dist/components/custom/widget/widget/StyledWidget.js +8 -8
- package/dist/components/icons/index.js +1 -0
- package/dist/components/icons/location-filled-icon/LocationFilledIcon.js +17 -0
- package/dist/components/icons/location-filled-icon/index.js +1 -0
- package/dist/components/navigation/link/StyledLink.js +23 -31
- package/dist/components/navigation/link/StyledLink.module.js +5 -6
- package/dist/index.js +447 -445
- package/dist/src/components/icons/index.d.ts +1 -0
- package/dist/src/components/icons/location-filled-icon/LocationFilledIcon.d.ts +12 -0
- package/dist/src/components/icons/location-filled-icon/index.d.ts +1 -0
- package/dist/src/components/navigation/link/StyledLink.d.ts +12 -3
- package/package.json +1 -1
|
@@ -84,6 +84,7 @@ export * from './handyman-icon';
|
|
|
84
84
|
export * from './pin-icon';
|
|
85
85
|
export * from './work-icon';
|
|
86
86
|
export * from './location-icon';
|
|
87
|
+
export * from './location-filled-icon';
|
|
87
88
|
export * from './form-icon';
|
|
88
89
|
export * from './repeat-outline-icon';
|
|
89
90
|
export * from './clock-outline-icon';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A solid map pin with the centre dot knocked out — the Design System's `location_on` component
|
|
4
|
+
* (component key `25d2c1be9a4da63e3237f2e4b395171a22c7aff2`).
|
|
5
|
+
*
|
|
6
|
+
* The path is that component's 24px SVG export, verbatim — only `fill` is swapped to
|
|
7
|
+
* `currentColor` so the glyph takes its colour from the surrounding text. The centre dot is a
|
|
8
|
+
* second subpath wound against the body, so the nonzero fill rule knocks it out.
|
|
9
|
+
*
|
|
10
|
+
* {@link LocationIcon} is the *outlined* variant of the same glyph — hollow body, solid dot.
|
|
11
|
+
*/
|
|
12
|
+
export declare function LocationFilledIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LocationFilledIcon';
|
|
@@ -6,6 +6,8 @@ import { default as React, AnchorHTMLAttributes, MouseEvent, ReactNode } from 'r
|
|
|
6
6
|
* Disabled = delta-300; Focused/Pressed adds a 1px gama-400 rounded indicator (radius 4, px4/py2).
|
|
7
7
|
* State is derived at runtime from `:hover`/`:focus`/`disabled`, not a prop.
|
|
8
8
|
*/
|
|
9
|
+
/** @deprecated ASMA-8705 — `small` → use `large`, `xs` → use `medium`. */
|
|
10
|
+
type LegacyLinkSize = 'small' | 'xs';
|
|
9
11
|
export type StyledLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick'> & {
|
|
10
12
|
onClick?: (event: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
11
13
|
/** @figmaProp State = true→"Disabled" (renders a non-interactive <span>, delta-300) */
|
|
@@ -16,8 +18,14 @@ export type StyledLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onC
|
|
|
16
18
|
* (disabled-states DIS-1…DIS-3). Without it a disabled link stays a plain `<span>`.
|
|
17
19
|
*/
|
|
18
20
|
disabledReason?: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @figmaProp Body Base = large→on ("Links/Base link", 16/24) | medium→off ("Links/Helper link", 14/20).
|
|
23
|
+
* The design system has these two sizes only (ASMA-8705).
|
|
24
|
+
*
|
|
25
|
+
* `small` and `xs` are deprecated aliases kept so existing callers keep compiling: `small` renders as
|
|
26
|
+
* `large` (was 14/20) and `xs` as `medium` (was 12/20). Use `large` / `medium` instead.
|
|
27
|
+
*/
|
|
28
|
+
size?: 'medium' | 'large' | LegacyLinkSize;
|
|
21
29
|
/** @figmaProp none — ref */
|
|
22
30
|
reflink?: React.Ref<HTMLAnchorElement>;
|
|
23
31
|
/** @figmaProp none — test hook */
|
|
@@ -34,9 +42,10 @@ export type StyledLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onC
|
|
|
34
42
|
* @param content - content of the link - deprecated, has conflicts with HTMLAnchorElement content option
|
|
35
43
|
* @param contentNode - content of the link
|
|
36
44
|
* @param disabled = disabled
|
|
37
|
-
* @param size - 'large' | 'small'
|
|
45
|
+
* @param size - 'large' (Base, 16/24) | 'medium' (Helper, 14/20); deprecated: 'small' → large, 'xs' → medium
|
|
38
46
|
* @param refLink - ref to component
|
|
39
47
|
* @param dataTest - data-test tag
|
|
40
48
|
* @param classTest - test jsDoc
|
|
41
49
|
*/
|
|
42
50
|
export declare const StyledLink: React.FC<StyledLinkProps>;
|
|
51
|
+
export {};
|