@lawkit/ui 0.1.54 → 0.1.55

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.
@@ -0,0 +1,21 @@
1
+ export declare const badge: import('@vanilla-extract/recipes').RuntimeFn<{
2
+ variant: {
3
+ filled: {};
4
+ outline: {};
5
+ muted: {};
6
+ };
7
+ tone: {
8
+ primary: {};
9
+ neutral: {};
10
+ };
11
+ iconOnly: {
12
+ true: {
13
+ width: "18px";
14
+ minWidth: "18px";
15
+ padding: number;
16
+ };
17
+ false: {};
18
+ };
19
+ }>;
20
+ export declare const icon: string;
21
+ export declare const dismissButton: string;
@@ -0,0 +1,11 @@
1
+ import { ButtonHTMLAttributes, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
2
+ export type BadgeProps = PropsWithChildren<HTMLAttributes<HTMLSpanElement> & {
3
+ tone?: "primary" | "neutral";
4
+ variant?: "filled" | "outline" | "muted";
5
+ leadingIcon?: ReactNode;
6
+ dismissible?: boolean;
7
+ onDismiss?: ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
8
+ iconOnly?: boolean;
9
+ "aria-label"?: string;
10
+ }>;
11
+ export declare function Badge({ "aria-label": ariaLabel, children, className, dismissible, iconOnly, leadingIcon, onDismiss, tone, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ export declare const chip: import('@vanilla-extract/recipes').RuntimeFn<{
2
+ selected: {
3
+ true: {
4
+ borderColor: "#b7c7ff";
5
+ backgroundColor: "#eef3ff";
6
+ color: `var(--${string})`;
7
+ };
8
+ false: {};
9
+ };
10
+ checkable: {
11
+ true: {};
12
+ false: {};
13
+ };
14
+ }>;
15
+ export declare const leading: string;
16
+ export declare const dismissButton: string;
@@ -0,0 +1,9 @@
1
+ import { ButtonHTMLAttributes, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
2
+ export type ChipProps = PropsWithChildren<HTMLAttributes<HTMLSpanElement> & {
3
+ selected?: boolean;
4
+ checkable?: boolean;
5
+ dismissible?: boolean;
6
+ onDismiss?: ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
7
+ leadingIcon?: ReactNode;
8
+ }>;
9
+ export declare function Chip({ checkable, children, className, dismissible, leadingIcon, onDismiss, selected, ...props }: ChipProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export declare const linkBadge: import('@vanilla-extract/recipes').RuntimeFn<{
2
+ variant: {
3
+ filled: {};
4
+ outline: {};
5
+ muted: {};
6
+ };
7
+ tone: {
8
+ primary: {};
9
+ neutral: {};
10
+ };
11
+ }>;
12
+ export declare const icon: string;
13
+ export declare const externalIcon: string;
@@ -0,0 +1,8 @@
1
+ import { AnchorHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
2
+ export type LinkBadgeProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement> & {
3
+ tone?: "primary" | "neutral";
4
+ variant?: "filled" | "outline" | "muted";
5
+ leadingIcon?: ReactNode;
6
+ external?: boolean;
7
+ }>;
8
+ export declare function LinkBadge({ children, className, external, leadingIcon, tone, variant, ...props }: LinkBadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -88,6 +88,12 @@ export { Icon, iconRegistry } from './components/Icon';
88
88
  export type { IconName, IconProps, IconSize } from './components/Icon';
89
89
  export { TreeView } from './components/TreeView';
90
90
  export type { TreeViewProps, TreeNode, TreeNodeColumn, TreeViewSize, } from './components/TreeView';
91
+ export { Badge } from './components/Badge';
92
+ export type { BadgeProps } from './components/Badge';
93
+ export { Chip } from './components/Chip';
94
+ export type { ChipProps } from './components/Chip';
95
+ export { LinkBadge } from './components/LinkBadge';
96
+ export type { LinkBadgeProps } from './components/LinkBadge';
91
97
  export { sprinkles } from './styles/sprinkles.css';
92
98
  export { cx } from './lib/cx';
93
99
  export { lightThemeClass, themeVars, createLdsThemeVars } from '../../tokens/src';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lawkit/ui",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "type": "module",
5
5
  "description": "LDS Design System — React component library with design tokens",
6
6
  "main": "./dist/index.js",