@sesamehr/react-design-system 1.4.0 → 1.5.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/Display/PointMarker/PointMarker.d.ts +8 -0
- package/dist/Display/PointMarker/index.d.ts +18 -0
- package/dist/main.d.ts +1 -0
- package/dist/react-design-system.css +1 -1
- package/dist/react-design-system.js +1562 -1510
- package/dist/react-design-system.umd.cjs +30 -30
- package/package.json +1 -1
- package/src/assets/styles/theme-v3.css +42 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PointMarkerVariants } from './index.ts';
|
|
2
|
+
export interface PointMarkerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
3
|
+
/** Colour of the centre dot */
|
|
4
|
+
color?: PointMarkerVariants['color'];
|
|
5
|
+
dataTestid: string;
|
|
6
|
+
}
|
|
7
|
+
/** PointMarker — mirrors `@sesame/orxata-core` PointMarker. */
|
|
8
|
+
export declare const PointMarker: import('react').ForwardRefExoticComponent<PointMarkerProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export { PointMarker } from './PointMarker.tsx';
|
|
3
|
+
export type { PointMarkerProps } from './PointMarker.tsx';
|
|
4
|
+
/**
|
|
5
|
+
* A marker is a fixed 32px ring with an 8px dot inside it, and the dot's colour
|
|
6
|
+
* is the only thing the design varies. The values are category slots, not hue
|
|
7
|
+
* names: a caller marking "offices" picks a category and keeps meaning the same
|
|
8
|
+
* thing if the palette is re-pointed, which naming them `teal` or `amber` would
|
|
9
|
+
* not survive. The hue behind each slot lives in `--category-*` in the theme —
|
|
10
|
+
* the comments below say what it is today, and are the only thing that changes
|
|
11
|
+
* when design moves one.
|
|
12
|
+
*
|
|
13
|
+
* The ring never varies, so it lives in the component's own styles.
|
|
14
|
+
*/
|
|
15
|
+
export declare const pointMarkerVariants: (props?: ({
|
|
16
|
+
color?: "category-1" | "category-2" | "category-3" | "category-4" | "category-5" | "category-6" | "category-7" | "category-8" | "category-9" | "category-10" | "category-11" | "category-12" | "category-13" | "category-14" | "category-15" | "category-16" | "category-17" | "category-18" | "category-19" | null | undefined;
|
|
17
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
|
+
export type PointMarkerVariants = VariantProps<typeof pointMarkerVariants>;
|
package/dist/main.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { AvatarRounded as OxAvatarRounded, AvatarSquare as OxAvatarSquare, avata
|
|
|
13
13
|
export { AvatarGroup as OxAvatarGroup, type AvatarItem, } from './Display/AvatarGroup/index.ts';
|
|
14
14
|
export { Badge as OxBadge, badgeVariants, type BadgeVariants, } from './Display/Badge/index.ts';
|
|
15
15
|
export { PaymentCard as OxPaymentCard, paymentCardVariants, type PaymentCardVariants, type BadgeType, type CardData, } from './Display/PaymentCard/index.ts';
|
|
16
|
+
export { PointMarker as OxPointMarker, pointMarkerVariants, type PointMarkerVariants, } from './Display/PointMarker/index.ts';
|
|
16
17
|
export { StatusBadge as OxStatusBadge, statusBadgeVariants, indicatorVariants, type StatusBadgeVariants, } from './Feedback/StatusBadge/index.ts';
|
|
17
18
|
export { Bullet as OxBullet, bulletVariants, type BulletVariants, } from './Feedback/Bullet/index.ts';
|
|
18
19
|
export { Alert as OxAlert, AlertClose as OxAlertClose, AlertDescription as OxAlertDescription, AlertIcon as OxAlertIcon, AlertTitle as OxAlertTitle, AlertToggle as OxAlertToggle, } from './Feedback/Alert/index.ts';
|