@vectramindnpm/unified-design-system 0.2.3 → 0.2.4
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/index.cjs +255 -192
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +258 -195
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -318,8 +318,22 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
318
318
|
}
|
|
319
319
|
declare function Badge({ className, variant, style, dot, children, ...props }: BadgeProps): React$1.JSX.Element;
|
|
320
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Button's variant surface is six semantic colors × five sizes × two shapes, all
|
|
323
|
+
* independently composable — plus a small set of named "preset" variants
|
|
324
|
+
* (cancel/save/close, formButtonSubmit/Cancel/Back, borderPrimary, deptedit, submenu)
|
|
325
|
+
* that restore fixed page-context styling (sizing + a specific color skin) as a single
|
|
326
|
+
* prop, instead of every call site repeating the same `className` string. See
|
|
327
|
+
* `PRESET_BASE`/`PRESET_OVERRIDE` below for exactly what each one renders. `pill` isn't
|
|
328
|
+
* in this list - it's a `shape`, not a variant (`shape="pill"`, combinable with any
|
|
329
|
+
* variant above).
|
|
330
|
+
*
|
|
331
|
+
* `refreshIcon`/`selectedIcon` were dropped entirely rather than folded in: an icon-only
|
|
332
|
+
* refresh/selected button already has a proper home in `ButtonIcon` (`variant="refresh"`),
|
|
333
|
+
* so Button doesn't need to duplicate that.
|
|
334
|
+
*/
|
|
321
335
|
declare const buttonVariants: (props?: ({
|
|
322
|
-
variant?: "link" | "secondary" | "destructive" | "outline" | "cancel" | "close" | "
|
|
336
|
+
variant?: "link" | "secondary" | "destructive" | "outline" | "cancel" | "close" | "primary" | "ghost" | "borderPrimary" | "deptedit" | "submenu" | "save" | "formButtonSubmit" | "formButtonCancel" | "formButtonBack" | null | undefined;
|
|
323
337
|
size?: "sm" | "lg" | "default" | "icon" | "iconLg" | null | undefined;
|
|
324
338
|
shape?: "pill" | "default" | null | undefined;
|
|
325
339
|
selected?: boolean | null | undefined;
|
|
@@ -359,6 +373,7 @@ interface IconProps$1 extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
359
373
|
actionColor?: ActionColor;
|
|
360
374
|
tooltipText?: string;
|
|
361
375
|
showTooltip?: boolean;
|
|
376
|
+
label?: string;
|
|
362
377
|
}
|
|
363
378
|
declare const ButtonIcon: React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
364
379
|
|
|
@@ -518,6 +533,7 @@ interface FormFieldProps {
|
|
|
518
533
|
hint?: string;
|
|
519
534
|
children: React__default.ReactNode;
|
|
520
535
|
className?: string;
|
|
536
|
+
id?: string;
|
|
521
537
|
}
|
|
522
538
|
/**
|
|
523
539
|
* Reusable form field wrapper — consistent label, field, and error layout.
|
|
@@ -650,6 +666,8 @@ interface TabProps extends VariantProps<typeof tabVariants> {
|
|
|
650
666
|
className?: string;
|
|
651
667
|
disabled?: boolean;
|
|
652
668
|
onClick?: () => void;
|
|
669
|
+
id?: string;
|
|
670
|
+
panelId?: string;
|
|
653
671
|
}
|
|
654
672
|
declare const Tab: React$1.ForwardRefExoticComponent<TabProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
655
673
|
|
package/dist/index.d.ts
CHANGED
|
@@ -318,8 +318,22 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
318
318
|
}
|
|
319
319
|
declare function Badge({ className, variant, style, dot, children, ...props }: BadgeProps): React$1.JSX.Element;
|
|
320
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Button's variant surface is six semantic colors × five sizes × two shapes, all
|
|
323
|
+
* independently composable — plus a small set of named "preset" variants
|
|
324
|
+
* (cancel/save/close, formButtonSubmit/Cancel/Back, borderPrimary, deptedit, submenu)
|
|
325
|
+
* that restore fixed page-context styling (sizing + a specific color skin) as a single
|
|
326
|
+
* prop, instead of every call site repeating the same `className` string. See
|
|
327
|
+
* `PRESET_BASE`/`PRESET_OVERRIDE` below for exactly what each one renders. `pill` isn't
|
|
328
|
+
* in this list - it's a `shape`, not a variant (`shape="pill"`, combinable with any
|
|
329
|
+
* variant above).
|
|
330
|
+
*
|
|
331
|
+
* `refreshIcon`/`selectedIcon` were dropped entirely rather than folded in: an icon-only
|
|
332
|
+
* refresh/selected button already has a proper home in `ButtonIcon` (`variant="refresh"`),
|
|
333
|
+
* so Button doesn't need to duplicate that.
|
|
334
|
+
*/
|
|
321
335
|
declare const buttonVariants: (props?: ({
|
|
322
|
-
variant?: "link" | "secondary" | "destructive" | "outline" | "cancel" | "close" | "
|
|
336
|
+
variant?: "link" | "secondary" | "destructive" | "outline" | "cancel" | "close" | "primary" | "ghost" | "borderPrimary" | "deptedit" | "submenu" | "save" | "formButtonSubmit" | "formButtonCancel" | "formButtonBack" | null | undefined;
|
|
323
337
|
size?: "sm" | "lg" | "default" | "icon" | "iconLg" | null | undefined;
|
|
324
338
|
shape?: "pill" | "default" | null | undefined;
|
|
325
339
|
selected?: boolean | null | undefined;
|
|
@@ -359,6 +373,7 @@ interface IconProps$1 extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
359
373
|
actionColor?: ActionColor;
|
|
360
374
|
tooltipText?: string;
|
|
361
375
|
showTooltip?: boolean;
|
|
376
|
+
label?: string;
|
|
362
377
|
}
|
|
363
378
|
declare const ButtonIcon: React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
364
379
|
|
|
@@ -518,6 +533,7 @@ interface FormFieldProps {
|
|
|
518
533
|
hint?: string;
|
|
519
534
|
children: React__default.ReactNode;
|
|
520
535
|
className?: string;
|
|
536
|
+
id?: string;
|
|
521
537
|
}
|
|
522
538
|
/**
|
|
523
539
|
* Reusable form field wrapper — consistent label, field, and error layout.
|
|
@@ -650,6 +666,8 @@ interface TabProps extends VariantProps<typeof tabVariants> {
|
|
|
650
666
|
className?: string;
|
|
651
667
|
disabled?: boolean;
|
|
652
668
|
onClick?: () => void;
|
|
669
|
+
id?: string;
|
|
670
|
+
panelId?: string;
|
|
653
671
|
}
|
|
654
672
|
declare const Tab: React$1.ForwardRefExoticComponent<TabProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
655
673
|
|