@capra/core 1.7.0 → 1.8.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/dist/index.cjs +6 -6
- package/dist/index.d.cts +16 -9
- package/dist/index.d.mts +16 -9
- package/dist/index.mjs +6 -6
- package/dist/style.css +56 -48
- package/docs/core-tag--design.md +11 -0
- package/docs/core-tag--usage.md +1 -0
- package/docs/history-changelogs-capra-core--docs.md +12 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -843,10 +843,9 @@ Switch.displayName = "Switch";
|
|
|
843
843
|
//#endregion
|
|
844
844
|
//#region src/components/Tag/Tag.module.css
|
|
845
845
|
var Tag_module_default = {
|
|
846
|
-
"base": "capra-Tag-module-
|
|
847
|
-
"
|
|
848
|
-
"
|
|
849
|
-
"label": "capra-Tag-module-OZG-Nq-label"
|
|
846
|
+
"base": "capra-Tag-module-y2Yzjq-base",
|
|
847
|
+
"dragHandle": "capra-Tag-module-y2Yzjq-dragHandle",
|
|
848
|
+
"label": "capra-Tag-module-y2Yzjq-label"
|
|
850
849
|
};
|
|
851
850
|
//#endregion
|
|
852
851
|
//#region src/components/Tag/Tag.tsx
|
|
@@ -889,7 +888,7 @@ const tagColors = [
|
|
|
889
888
|
/**
|
|
890
889
|
* A tag component for displaying a label and an optional icon.
|
|
891
890
|
*/
|
|
892
|
-
function Tag({ draggable, color = "default", icon: Icon, children, onDelete, onDragStart, onDragEnd, onHandleKeydown, FORCE__className: classNameOverride, ...props }) {
|
|
891
|
+
function Tag({ draggable, color = "default", icon: Icon, children, size = "md", onDelete, onDragStart, onDragEnd, onHandleKeydown, FORCE__className: classNameOverride, ...props }) {
|
|
893
892
|
const baseRef = react.useRef(null);
|
|
894
893
|
const draggableDebounceRef = react.useRef(0);
|
|
895
894
|
const toggleDraggable = (value) => {
|
|
@@ -911,6 +910,7 @@ function Tag({ draggable, color = "default", icon: Icon, children, onDelete, onD
|
|
|
911
910
|
ref: baseRef,
|
|
912
911
|
className: clsx(Tag_module_default.base, classNameOverride),
|
|
913
912
|
"data-color": color,
|
|
913
|
+
"data-size": size,
|
|
914
914
|
onDragStart,
|
|
915
915
|
onDragEnd
|
|
916
916
|
}, draggable ? /* @__PURE__ */ react.createElement("span", {
|
|
@@ -4849,7 +4849,7 @@ const TabNav = ({ activeKey, onTabClick, items, tabPlacement = "horizontal", cen
|
|
|
4849
4849
|
});
|
|
4850
4850
|
}));
|
|
4851
4851
|
}
|
|
4852
|
-
if (item.href && !item.disabled) return /* @__PURE__ */ react.createElement(
|
|
4852
|
+
if (item.href && !item.disabled) return /* @__PURE__ */ react.createElement(react_aria_components.Link, {
|
|
4853
4853
|
key: item.key,
|
|
4854
4854
|
...commonTabProps,
|
|
4855
4855
|
href: item.href,
|
package/dist/index.d.cts
CHANGED
|
@@ -125,7 +125,7 @@ declare const TextInput: React$2.ForwardRefExoticComponent<{
|
|
|
125
125
|
*/
|
|
126
126
|
size?: Size$3; /** Content after the input (e.g. icon or clear button). */
|
|
127
127
|
trailingSlot?: React$2.ReactNode;
|
|
128
|
-
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "
|
|
128
|
+
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "size" | "className"> & React$2.RefAttributes<HTMLInputElement>>;
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/components/input-helpers/fieldLayout.d.ts
|
|
131
131
|
type FieldLayoutProps = {
|
|
@@ -172,7 +172,7 @@ declare const AutocompleteField: ((props: {
|
|
|
172
172
|
leadingSlot?: React$1.ReactNode;
|
|
173
173
|
size?: Size$3;
|
|
174
174
|
trailingSlot?: React$1.ReactNode;
|
|
175
|
-
} & StylingOverrideProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "
|
|
175
|
+
} & StylingOverrideProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "size" | "className"> & React$1.RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange"> & React$1.RefAttributes<HTMLInputElement>) => React$1.ReactElement) & {
|
|
176
176
|
Item: typeof AutocompleteItem;
|
|
177
177
|
};
|
|
178
178
|
//#endregion
|
|
@@ -429,7 +429,7 @@ type RadioGroupProps = RadioGroupContextValue & StylingOverrideProps & Omit<Reac
|
|
|
429
429
|
/**
|
|
430
430
|
* A control wrapper for a group of radio buttons.
|
|
431
431
|
*/
|
|
432
|
-
declare const RadioGroup: (props: RadioGroupContextValue & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">, "
|
|
432
|
+
declare const RadioGroup: (props: RadioGroupContextValue & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">, "onChange" | "className"> & React$2.RefAttributes<HTMLFieldSetElement>) => React$2.ReactElement;
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/components/Radio/Radio.d.ts
|
|
435
435
|
type ChildrenLabel = {
|
|
@@ -492,6 +492,8 @@ declare const Switch: React$2.ForwardRefExoticComponent<SwitchProps & React$2.Re
|
|
|
492
492
|
//#region src/components/Tag/Tag.d.ts
|
|
493
493
|
declare const tagColors: readonly ["default", "accent", "danger", "warning", "info", "success", "highlight", "brand", "amber", "blue", "bronze", "brown", "criblTeal", "crimson", "cyan", "gold", "grass", "green", "indigo", "iris", "jade", "lime", "mint", "orange", "pink", "plum", "purple", "red", "ruby", "sky", "teal", "tomato", "violet", "yellow"];
|
|
494
494
|
type TagColor = (typeof tagColors)[number];
|
|
495
|
+
declare const tagSizes: readonly ["sm", "md"];
|
|
496
|
+
type TagSize = (typeof tagSizes)[number];
|
|
495
497
|
type Draggable = {
|
|
496
498
|
draggable: true;
|
|
497
499
|
onDragStart: React$2.DragEventHandler<HTMLSpanElement>;
|
|
@@ -518,6 +520,10 @@ type TagProps = DraggableProps & {
|
|
|
518
520
|
* The label text to display in the tag.
|
|
519
521
|
*/
|
|
520
522
|
children: string;
|
|
523
|
+
/**
|
|
524
|
+
* The size of the tag. Defaults to `md`.
|
|
525
|
+
*/
|
|
526
|
+
size?: TagSize;
|
|
521
527
|
/**
|
|
522
528
|
* The callback function for when the user clicks the delete button.
|
|
523
529
|
*/
|
|
@@ -531,6 +537,7 @@ declare function Tag({
|
|
|
531
537
|
color,
|
|
532
538
|
icon: Icon,
|
|
533
539
|
children,
|
|
540
|
+
size,
|
|
534
541
|
onDelete,
|
|
535
542
|
onDragStart,
|
|
536
543
|
onDragEnd,
|
|
@@ -562,7 +569,7 @@ declare const Checkbox: React$2.ForwardRefExoticComponent<{
|
|
|
562
569
|
checked?: boolean; /** Default checked state for uncontrolled component. */
|
|
563
570
|
defaultChecked?: boolean; /** The label for the checkbox. */
|
|
564
571
|
children?: string | React$2.ReactNode;
|
|
565
|
-
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
572
|
+
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "className"> & React$2.RefAttributes<HTMLInputElement>>;
|
|
566
573
|
//#endregion
|
|
567
574
|
//#region src/components/Collapse/Collapse.d.ts
|
|
568
575
|
/** Props forwarded to React Aria `Disclosure`; see https://reactaria.adobe.com/Disclosure */
|
|
@@ -636,7 +643,7 @@ declare const TextField: React$2.ForwardRefExoticComponent<{
|
|
|
636
643
|
/** Called with the new string value when the input changes. */onChange?: (value: string) => void; /** When true, shows a character count. */
|
|
637
644
|
showCount?: boolean;
|
|
638
645
|
value?: string | number | undefined;
|
|
639
|
-
} & FieldLayoutProps & Omit<TextInputProps, "
|
|
646
|
+
} & FieldLayoutProps & Omit<TextInputProps, "value" | "onChange"> & React$2.RefAttributes<HTMLInputElement>>;
|
|
640
647
|
//#endregion
|
|
641
648
|
//#region src/components/PasswordField/PasswordField.d.ts
|
|
642
649
|
type PasswordFieldProps = Omit<TextFieldProps, 'trailingSlot' | 'type'>;
|
|
@@ -660,7 +667,7 @@ type NumberFieldProps = Omit<TextInputProps, 'type' | 'onChange' | 'min' | 'max'
|
|
|
660
667
|
/**
|
|
661
668
|
* Number field built on React Aria `NumberField`, with custom increment/decrement controls (native spinners hidden).
|
|
662
669
|
*/
|
|
663
|
-
declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps, "
|
|
670
|
+
declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps, "max" | "min" | "step" | "type" | "onChange"> & {
|
|
664
671
|
/** Called with the unformatted number value when the number changes. */onChange?: (value: number) => void; /** Locale-aware display and parsing for the displayed value (see https://react-aria.adobe.com/NumberField#format-options) */
|
|
665
672
|
formatOptions?: Intl.NumberFormatOptions; /** Minimum value */
|
|
666
673
|
min?: number; /** Maximum value */
|
|
@@ -682,7 +689,7 @@ type DatePickerFieldProps<T extends DateValue = DateValue> = FieldLayoutProps &
|
|
|
682
689
|
required?: boolean; /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
|
|
683
690
|
isInvalid?: boolean;
|
|
684
691
|
};
|
|
685
|
-
declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "placeholder" | "size" | "appearance" | "leadingSlot"> & Pick<DatePickerProps<DateValue>, "
|
|
692
|
+
declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "placeholder" | "size" | "appearance" | "leadingSlot"> & Pick<DatePickerProps<DateValue>, "value" | "onChange" | "defaultValue"> & {
|
|
686
693
|
/** Smallest date/time unit shown in the field. Only `day` and `second` are supported. */granularity?: "day" | "second";
|
|
687
694
|
} & StylingOverrideProps & {
|
|
688
695
|
/** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
|
|
@@ -710,7 +717,7 @@ type DateRangePickerFieldProps<T extends DateValue = DateValue> = FieldLayoutPro
|
|
|
710
717
|
};
|
|
711
718
|
declare const DateRangePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "size" | "appearance" | "leadingSlot"> & {
|
|
712
719
|
/** Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. */placeholder?: DateRangePickerFieldPlaceholder;
|
|
713
|
-
} & Pick<DateRangePickerProps<DateValue>, "
|
|
720
|
+
} & Pick<DateRangePickerProps<DateValue>, "value" | "onChange" | "defaultValue" | "shouldCloseOnSelect"> & {
|
|
714
721
|
/** Smallest date/time unit shown in the fields. Only `day` and `second` are supported. */granularity?: "day" | "second";
|
|
715
722
|
} & StylingOverrideProps & {
|
|
716
723
|
/** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
|
|
@@ -770,7 +777,7 @@ declare const TextArea: React$2.ForwardRefExoticComponent<{
|
|
|
770
777
|
autoSize?: TextAreaAutoSize; /** When true, shows a character count. */
|
|
771
778
|
showCount?: boolean; /** Called with the new string value when the input changes. */
|
|
772
779
|
onChange?: (value: string) => void;
|
|
773
|
-
} & FieldLayoutProps & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "style" | "
|
|
780
|
+
} & FieldLayoutProps & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "style" | "size" | "onChange" | "className"> & React$2.RefAttributes<HTMLTextAreaElement>>;
|
|
774
781
|
//#endregion
|
|
775
782
|
//#region src/components/Modal/Modal.d.ts
|
|
776
783
|
type ModalSize = 'sm' | 'md' | 'lg';
|
package/dist/index.d.mts
CHANGED
|
@@ -125,7 +125,7 @@ declare const TextInput: React$2.ForwardRefExoticComponent<{
|
|
|
125
125
|
*/
|
|
126
126
|
size?: Size$3; /** Content after the input (e.g. icon or clear button). */
|
|
127
127
|
trailingSlot?: React$2.ReactNode;
|
|
128
|
-
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "
|
|
128
|
+
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "size" | "className"> & React$2.RefAttributes<HTMLInputElement>>;
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/components/input-helpers/fieldLayout.d.ts
|
|
131
131
|
type FieldLayoutProps = {
|
|
@@ -172,7 +172,7 @@ declare const AutocompleteField: ((props: {
|
|
|
172
172
|
leadingSlot?: React$1.ReactNode;
|
|
173
173
|
size?: Size$3;
|
|
174
174
|
trailingSlot?: React$1.ReactNode;
|
|
175
|
-
} & StylingOverrideProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "
|
|
175
|
+
} & StylingOverrideProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "size" | "className"> & React$1.RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange"> & React$1.RefAttributes<HTMLInputElement>) => React$1.ReactElement) & {
|
|
176
176
|
Item: typeof AutocompleteItem;
|
|
177
177
|
};
|
|
178
178
|
//#endregion
|
|
@@ -429,7 +429,7 @@ type RadioGroupProps = RadioGroupContextValue & StylingOverrideProps & Omit<Reac
|
|
|
429
429
|
/**
|
|
430
430
|
* A control wrapper for a group of radio buttons.
|
|
431
431
|
*/
|
|
432
|
-
declare const RadioGroup: (props: RadioGroupContextValue & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">, "
|
|
432
|
+
declare const RadioGroup: (props: RadioGroupContextValue & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">, "onChange" | "className"> & React$2.RefAttributes<HTMLFieldSetElement>) => React$2.ReactElement;
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/components/Radio/Radio.d.ts
|
|
435
435
|
type ChildrenLabel = {
|
|
@@ -492,6 +492,8 @@ declare const Switch: React$2.ForwardRefExoticComponent<SwitchProps & React$2.Re
|
|
|
492
492
|
//#region src/components/Tag/Tag.d.ts
|
|
493
493
|
declare const tagColors: readonly ["default", "accent", "danger", "warning", "info", "success", "highlight", "brand", "amber", "blue", "bronze", "brown", "criblTeal", "crimson", "cyan", "gold", "grass", "green", "indigo", "iris", "jade", "lime", "mint", "orange", "pink", "plum", "purple", "red", "ruby", "sky", "teal", "tomato", "violet", "yellow"];
|
|
494
494
|
type TagColor = (typeof tagColors)[number];
|
|
495
|
+
declare const tagSizes: readonly ["sm", "md"];
|
|
496
|
+
type TagSize = (typeof tagSizes)[number];
|
|
495
497
|
type Draggable = {
|
|
496
498
|
draggable: true;
|
|
497
499
|
onDragStart: React$2.DragEventHandler<HTMLSpanElement>;
|
|
@@ -518,6 +520,10 @@ type TagProps = DraggableProps & {
|
|
|
518
520
|
* The label text to display in the tag.
|
|
519
521
|
*/
|
|
520
522
|
children: string;
|
|
523
|
+
/**
|
|
524
|
+
* The size of the tag. Defaults to `md`.
|
|
525
|
+
*/
|
|
526
|
+
size?: TagSize;
|
|
521
527
|
/**
|
|
522
528
|
* The callback function for when the user clicks the delete button.
|
|
523
529
|
*/
|
|
@@ -531,6 +537,7 @@ declare function Tag({
|
|
|
531
537
|
color,
|
|
532
538
|
icon: Icon,
|
|
533
539
|
children,
|
|
540
|
+
size,
|
|
534
541
|
onDelete,
|
|
535
542
|
onDragStart,
|
|
536
543
|
onDragEnd,
|
|
@@ -562,7 +569,7 @@ declare const Checkbox: React$2.ForwardRefExoticComponent<{
|
|
|
562
569
|
checked?: boolean; /** Default checked state for uncontrolled component. */
|
|
563
570
|
defaultChecked?: boolean; /** The label for the checkbox. */
|
|
564
571
|
children?: string | React$2.ReactNode;
|
|
565
|
-
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
572
|
+
} & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "className"> & React$2.RefAttributes<HTMLInputElement>>;
|
|
566
573
|
//#endregion
|
|
567
574
|
//#region src/components/Collapse/Collapse.d.ts
|
|
568
575
|
/** Props forwarded to React Aria `Disclosure`; see https://reactaria.adobe.com/Disclosure */
|
|
@@ -636,7 +643,7 @@ declare const TextField: React$2.ForwardRefExoticComponent<{
|
|
|
636
643
|
/** Called with the new string value when the input changes. */onChange?: (value: string) => void; /** When true, shows a character count. */
|
|
637
644
|
showCount?: boolean;
|
|
638
645
|
value?: string | number | undefined;
|
|
639
|
-
} & FieldLayoutProps & Omit<TextInputProps, "
|
|
646
|
+
} & FieldLayoutProps & Omit<TextInputProps, "value" | "onChange"> & React$2.RefAttributes<HTMLInputElement>>;
|
|
640
647
|
//#endregion
|
|
641
648
|
//#region src/components/PasswordField/PasswordField.d.ts
|
|
642
649
|
type PasswordFieldProps = Omit<TextFieldProps, 'trailingSlot' | 'type'>;
|
|
@@ -660,7 +667,7 @@ type NumberFieldProps = Omit<TextInputProps, 'type' | 'onChange' | 'min' | 'max'
|
|
|
660
667
|
/**
|
|
661
668
|
* Number field built on React Aria `NumberField`, with custom increment/decrement controls (native spinners hidden).
|
|
662
669
|
*/
|
|
663
|
-
declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps, "
|
|
670
|
+
declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps, "max" | "min" | "step" | "type" | "onChange"> & {
|
|
664
671
|
/** Called with the unformatted number value when the number changes. */onChange?: (value: number) => void; /** Locale-aware display and parsing for the displayed value (see https://react-aria.adobe.com/NumberField#format-options) */
|
|
665
672
|
formatOptions?: Intl.NumberFormatOptions; /** Minimum value */
|
|
666
673
|
min?: number; /** Maximum value */
|
|
@@ -682,7 +689,7 @@ type DatePickerFieldProps<T extends DateValue = DateValue> = FieldLayoutProps &
|
|
|
682
689
|
required?: boolean; /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
|
|
683
690
|
isInvalid?: boolean;
|
|
684
691
|
};
|
|
685
|
-
declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "placeholder" | "size" | "appearance" | "leadingSlot"> & Pick<DatePickerProps<DateValue>, "
|
|
692
|
+
declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "placeholder" | "size" | "appearance" | "leadingSlot"> & Pick<DatePickerProps<DateValue>, "value" | "onChange" | "defaultValue"> & {
|
|
686
693
|
/** Smallest date/time unit shown in the field. Only `day` and `second` are supported. */granularity?: "day" | "second";
|
|
687
694
|
} & StylingOverrideProps & {
|
|
688
695
|
/** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
|
|
@@ -710,7 +717,7 @@ type DateRangePickerFieldProps<T extends DateValue = DateValue> = FieldLayoutPro
|
|
|
710
717
|
};
|
|
711
718
|
declare const DateRangePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "size" | "appearance" | "leadingSlot"> & {
|
|
712
719
|
/** Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. */placeholder?: DateRangePickerFieldPlaceholder;
|
|
713
|
-
} & Pick<DateRangePickerProps<DateValue>, "
|
|
720
|
+
} & Pick<DateRangePickerProps<DateValue>, "value" | "onChange" | "defaultValue" | "shouldCloseOnSelect"> & {
|
|
714
721
|
/** Smallest date/time unit shown in the fields. Only `day` and `second` are supported. */granularity?: "day" | "second";
|
|
715
722
|
} & StylingOverrideProps & {
|
|
716
723
|
/** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
|
|
@@ -770,7 +777,7 @@ declare const TextArea: React$2.ForwardRefExoticComponent<{
|
|
|
770
777
|
autoSize?: TextAreaAutoSize; /** When true, shows a character count. */
|
|
771
778
|
showCount?: boolean; /** Called with the new string value when the input changes. */
|
|
772
779
|
onChange?: (value: string) => void;
|
|
773
|
-
} & FieldLayoutProps & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "style" | "
|
|
780
|
+
} & FieldLayoutProps & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "style" | "size" | "onChange" | "className"> & React$2.RefAttributes<HTMLTextAreaElement>>;
|
|
774
781
|
//#endregion
|
|
775
782
|
//#region src/components/Modal/Modal.d.ts
|
|
776
783
|
type ModalSize = 'sm' | 'md' | 'lg';
|
package/dist/index.mjs
CHANGED
|
@@ -819,10 +819,9 @@ Switch.displayName = "Switch";
|
|
|
819
819
|
//#endregion
|
|
820
820
|
//#region src/components/Tag/Tag.module.css
|
|
821
821
|
var Tag_module_default = {
|
|
822
|
-
"base": "capra-Tag-module-
|
|
823
|
-
"
|
|
824
|
-
"
|
|
825
|
-
"label": "capra-Tag-module-OZG-Nq-label"
|
|
822
|
+
"base": "capra-Tag-module-y2Yzjq-base",
|
|
823
|
+
"dragHandle": "capra-Tag-module-y2Yzjq-dragHandle",
|
|
824
|
+
"label": "capra-Tag-module-y2Yzjq-label"
|
|
826
825
|
};
|
|
827
826
|
//#endregion
|
|
828
827
|
//#region src/components/Tag/Tag.tsx
|
|
@@ -865,7 +864,7 @@ const tagColors = [
|
|
|
865
864
|
/**
|
|
866
865
|
* A tag component for displaying a label and an optional icon.
|
|
867
866
|
*/
|
|
868
|
-
function Tag({ draggable, color = "default", icon: Icon, children, onDelete, onDragStart, onDragEnd, onHandleKeydown, FORCE__className: classNameOverride, ...props }) {
|
|
867
|
+
function Tag({ draggable, color = "default", icon: Icon, children, size = "md", onDelete, onDragStart, onDragEnd, onHandleKeydown, FORCE__className: classNameOverride, ...props }) {
|
|
869
868
|
const baseRef = React$1.useRef(null);
|
|
870
869
|
const draggableDebounceRef = React$1.useRef(0);
|
|
871
870
|
const toggleDraggable = (value) => {
|
|
@@ -887,6 +886,7 @@ function Tag({ draggable, color = "default", icon: Icon, children, onDelete, onD
|
|
|
887
886
|
ref: baseRef,
|
|
888
887
|
className: clsx(Tag_module_default.base, classNameOverride),
|
|
889
888
|
"data-color": color,
|
|
889
|
+
"data-size": size,
|
|
890
890
|
onDragStart,
|
|
891
891
|
onDragEnd
|
|
892
892
|
}, draggable ? /* @__PURE__ */ React$1.createElement("span", {
|
|
@@ -4825,7 +4825,7 @@ const TabNav = ({ activeKey, onTabClick, items, tabPlacement = "horizontal", cen
|
|
|
4825
4825
|
});
|
|
4826
4826
|
}));
|
|
4827
4827
|
}
|
|
4828
|
-
if (item.href && !item.disabled) return /* @__PURE__ */ React$1.createElement(
|
|
4828
|
+
if (item.href && !item.disabled) return /* @__PURE__ */ React$1.createElement(Link$1, {
|
|
4829
4829
|
key: item.key,
|
|
4830
4830
|
...commonTabProps,
|
|
4831
4831
|
href: item.href,
|
package/dist/style.css
CHANGED
|
@@ -1109,229 +1109,237 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
|
|
|
1109
1109
|
transition: none;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
.capra-Tag-module-
|
|
1113
|
-
|
|
1112
|
+
.capra-Tag-module-y2Yzjq-base {
|
|
1113
|
+
border-radius: var(--cds2-radius-md);
|
|
1114
|
+
border: var(--cds2-border-default);
|
|
1114
1115
|
justify-content: space-between;
|
|
1115
1116
|
align-items: center;
|
|
1116
1117
|
gap: var(--cds2-spacing-sm);
|
|
1117
|
-
|
|
1118
|
-
min-width: var(--cds2-dimension-component-sm);
|
|
1119
|
-
border-radius: var(--cds2-radius-md);
|
|
1120
|
-
border: var(--cds2-border-default);
|
|
1118
|
+
padding: 0 var(--cds2-spacing-md);
|
|
1121
1119
|
display: inline-flex;
|
|
1122
|
-
}
|
|
1123
1120
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1121
|
+
&[data-size="md"] {
|
|
1122
|
+
height: var(--cds2-dimension-component-sm);
|
|
1123
|
+
min-width: var(--cds2-dimension-component-sm);
|
|
1127
1124
|
|
|
1128
|
-
.capra-Tag-module-
|
|
1129
|
-
|
|
1125
|
+
& .capra-Tag-module-y2Yzjq-label {
|
|
1126
|
+
font: var(--cds2-typography-body-sm-normal);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
&[data-size="sm"] {
|
|
1131
|
+
height: var(--cds2-dimension-component-xs);
|
|
1132
|
+
min-width: var(--cds2-dimension-component-xs);
|
|
1133
|
+
|
|
1134
|
+
& .capra-Tag-module-y2Yzjq-label {
|
|
1135
|
+
font: var(--cds2-typography-body-xs-normal);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1130
1138
|
}
|
|
1131
1139
|
|
|
1132
|
-
.capra-Tag-module-
|
|
1133
|
-
|
|
1140
|
+
.capra-Tag-module-y2Yzjq-dragHandle {
|
|
1141
|
+
cursor: move;
|
|
1134
1142
|
}
|
|
1135
1143
|
|
|
1136
|
-
.capra-Tag-module-
|
|
1144
|
+
.capra-Tag-module-y2Yzjq-base[data-color="default"] {
|
|
1137
1145
|
background-color: var(--cds2-color-background-neutral-subtle);
|
|
1138
1146
|
border-color: var(--cds2-color-border-neutral-subtle);
|
|
1139
1147
|
color: var(--cds2-color-foreground-subtle);
|
|
1140
1148
|
}
|
|
1141
1149
|
|
|
1142
|
-
.capra-Tag-module-
|
|
1150
|
+
.capra-Tag-module-y2Yzjq-base[data-color="accent"] {
|
|
1143
1151
|
background-color: var(--cds2-color-background-accent-subtle);
|
|
1144
1152
|
border-color: var(--cds2-color-border-accent-subtle);
|
|
1145
1153
|
color: var(--cds2-color-foreground-accent-default);
|
|
1146
1154
|
}
|
|
1147
1155
|
|
|
1148
|
-
.capra-Tag-module-
|
|
1156
|
+
.capra-Tag-module-y2Yzjq-base[data-color="danger"] {
|
|
1149
1157
|
background-color: var(--cds2-color-background-danger-subtle);
|
|
1150
1158
|
border-color: var(--cds2-color-border-danger-subtle);
|
|
1151
1159
|
color: var(--cds2-color-foreground-danger-default);
|
|
1152
1160
|
}
|
|
1153
1161
|
|
|
1154
|
-
.capra-Tag-module-
|
|
1162
|
+
.capra-Tag-module-y2Yzjq-base[data-color="warning"] {
|
|
1155
1163
|
background-color: var(--cds2-color-background-warning-subtle);
|
|
1156
1164
|
border-color: var(--cds2-color-border-warning-subtle);
|
|
1157
1165
|
color: var(--cds2-color-foreground-warning-default);
|
|
1158
1166
|
}
|
|
1159
1167
|
|
|
1160
|
-
.capra-Tag-module-
|
|
1168
|
+
.capra-Tag-module-y2Yzjq-base[data-color="info"] {
|
|
1161
1169
|
background-color: var(--cds2-color-background-info-subtle);
|
|
1162
1170
|
border-color: var(--cds2-color-border-info-subtle);
|
|
1163
1171
|
color: var(--cds2-color-foreground-info-default);
|
|
1164
1172
|
}
|
|
1165
1173
|
|
|
1166
|
-
.capra-Tag-module-
|
|
1174
|
+
.capra-Tag-module-y2Yzjq-base[data-color="success"] {
|
|
1167
1175
|
background-color: var(--cds2-color-background-success-subtle);
|
|
1168
1176
|
border-color: var(--cds2-color-border-success-subtle);
|
|
1169
1177
|
color: var(--cds2-color-foreground-success-default);
|
|
1170
1178
|
}
|
|
1171
1179
|
|
|
1172
|
-
.capra-Tag-module-
|
|
1180
|
+
.capra-Tag-module-y2Yzjq-base[data-color="highlight"] {
|
|
1173
1181
|
background-color: var(--cds2-color-background-highlight-subtle);
|
|
1174
1182
|
border-color: var(--cds2-color-border-highlight-subtle);
|
|
1175
1183
|
color: var(--cds2-color-foreground-highlight-default);
|
|
1176
1184
|
}
|
|
1177
1185
|
|
|
1178
|
-
.capra-Tag-module-
|
|
1186
|
+
.capra-Tag-module-y2Yzjq-base[data-color="brand"] {
|
|
1179
1187
|
background-color: var(--cds2-color-background-brand-subtle);
|
|
1180
1188
|
border-color: var(--cds2-color-border-brand-subtle);
|
|
1181
1189
|
color: var(--cds2-color-foreground-brand-default);
|
|
1182
1190
|
}
|
|
1183
1191
|
|
|
1184
|
-
.capra-Tag-module-
|
|
1192
|
+
.capra-Tag-module-y2Yzjq-base[data-color="amber"] {
|
|
1185
1193
|
background-color: var(--cds2-core-color-amber-a2);
|
|
1186
1194
|
border-color: var(--cds2-core-color-amber-a6);
|
|
1187
1195
|
color: var(--cds2-core-color-amber-a11);
|
|
1188
1196
|
}
|
|
1189
1197
|
|
|
1190
|
-
.capra-Tag-module-
|
|
1198
|
+
.capra-Tag-module-y2Yzjq-base[data-color="blue"] {
|
|
1191
1199
|
background-color: var(--cds2-core-color-blue-a2);
|
|
1192
1200
|
border-color: var(--cds2-core-color-blue-a6);
|
|
1193
1201
|
color: var(--cds2-core-color-blue-a11);
|
|
1194
1202
|
}
|
|
1195
1203
|
|
|
1196
|
-
.capra-Tag-module-
|
|
1204
|
+
.capra-Tag-module-y2Yzjq-base[data-color="bronze"] {
|
|
1197
1205
|
background-color: var(--cds2-core-color-bronze-a2);
|
|
1198
1206
|
border-color: var(--cds2-core-color-bronze-a6);
|
|
1199
1207
|
color: var(--cds2-core-color-bronze-a11);
|
|
1200
1208
|
}
|
|
1201
1209
|
|
|
1202
|
-
.capra-Tag-module-
|
|
1210
|
+
.capra-Tag-module-y2Yzjq-base[data-color="brown"] {
|
|
1203
1211
|
background-color: var(--cds2-core-color-brown-a2);
|
|
1204
1212
|
border-color: var(--cds2-core-color-brown-a6);
|
|
1205
1213
|
color: var(--cds2-core-color-brown-a11);
|
|
1206
1214
|
}
|
|
1207
1215
|
|
|
1208
|
-
.capra-Tag-module-
|
|
1216
|
+
.capra-Tag-module-y2Yzjq-base[data-color="criblTeal"] {
|
|
1209
1217
|
background-color: var(--cds2-core-color-cribl-teal-a2);
|
|
1210
1218
|
border-color: var(--cds2-core-color-cribl-teal-a6);
|
|
1211
1219
|
color: var(--cds2-core-color-cribl-teal-a11);
|
|
1212
1220
|
}
|
|
1213
1221
|
|
|
1214
|
-
.capra-Tag-module-
|
|
1222
|
+
.capra-Tag-module-y2Yzjq-base[data-color="crimson"] {
|
|
1215
1223
|
background-color: var(--cds2-core-color-crimson-a2);
|
|
1216
1224
|
border-color: var(--cds2-core-color-crimson-a6);
|
|
1217
1225
|
color: var(--cds2-core-color-crimson-a11);
|
|
1218
1226
|
}
|
|
1219
1227
|
|
|
1220
|
-
.capra-Tag-module-
|
|
1228
|
+
.capra-Tag-module-y2Yzjq-base[data-color="cyan"] {
|
|
1221
1229
|
background-color: var(--cds2-core-color-cyan-a2);
|
|
1222
1230
|
border-color: var(--cds2-core-color-cyan-a6);
|
|
1223
1231
|
color: var(--cds2-core-color-cyan-a11);
|
|
1224
1232
|
}
|
|
1225
1233
|
|
|
1226
|
-
.capra-Tag-module-
|
|
1234
|
+
.capra-Tag-module-y2Yzjq-base[data-color="gold"] {
|
|
1227
1235
|
background-color: var(--cds2-core-color-gold-a2);
|
|
1228
1236
|
border-color: var(--cds2-core-color-gold-a6);
|
|
1229
1237
|
color: var(--cds2-core-color-gold-a11);
|
|
1230
1238
|
}
|
|
1231
1239
|
|
|
1232
|
-
.capra-Tag-module-
|
|
1240
|
+
.capra-Tag-module-y2Yzjq-base[data-color="grass"] {
|
|
1233
1241
|
background-color: var(--cds2-core-color-grass-a2);
|
|
1234
1242
|
border-color: var(--cds2-core-color-grass-a6);
|
|
1235
1243
|
color: var(--cds2-core-color-grass-a11);
|
|
1236
1244
|
}
|
|
1237
1245
|
|
|
1238
|
-
.capra-Tag-module-
|
|
1246
|
+
.capra-Tag-module-y2Yzjq-base[data-color="green"] {
|
|
1239
1247
|
background-color: var(--cds2-core-color-green-a2);
|
|
1240
1248
|
border-color: var(--cds2-core-color-green-a6);
|
|
1241
1249
|
color: var(--cds2-core-color-green-a11);
|
|
1242
1250
|
}
|
|
1243
1251
|
|
|
1244
|
-
.capra-Tag-module-
|
|
1252
|
+
.capra-Tag-module-y2Yzjq-base[data-color="indigo"] {
|
|
1245
1253
|
background-color: var(--cds2-core-color-indigo-a2);
|
|
1246
1254
|
border-color: var(--cds2-core-color-indigo-a6);
|
|
1247
1255
|
color: var(--cds2-core-color-indigo-a11);
|
|
1248
1256
|
}
|
|
1249
1257
|
|
|
1250
|
-
.capra-Tag-module-
|
|
1258
|
+
.capra-Tag-module-y2Yzjq-base[data-color="iris"] {
|
|
1251
1259
|
background-color: var(--cds2-core-color-iris-a2);
|
|
1252
1260
|
border-color: var(--cds2-core-color-iris-a6);
|
|
1253
1261
|
color: var(--cds2-core-color-iris-a11);
|
|
1254
1262
|
}
|
|
1255
1263
|
|
|
1256
|
-
.capra-Tag-module-
|
|
1264
|
+
.capra-Tag-module-y2Yzjq-base[data-color="jade"] {
|
|
1257
1265
|
background-color: var(--cds2-core-color-jade-a2);
|
|
1258
1266
|
border-color: var(--cds2-core-color-jade-a6);
|
|
1259
1267
|
color: var(--cds2-core-color-jade-a11);
|
|
1260
1268
|
}
|
|
1261
1269
|
|
|
1262
|
-
.capra-Tag-module-
|
|
1270
|
+
.capra-Tag-module-y2Yzjq-base[data-color="lime"] {
|
|
1263
1271
|
background-color: var(--cds2-core-color-lime-a2);
|
|
1264
1272
|
border-color: var(--cds2-core-color-lime-a6);
|
|
1265
1273
|
color: var(--cds2-core-color-lime-a11);
|
|
1266
1274
|
}
|
|
1267
1275
|
|
|
1268
|
-
.capra-Tag-module-
|
|
1276
|
+
.capra-Tag-module-y2Yzjq-base[data-color="mint"] {
|
|
1269
1277
|
background-color: var(--cds2-core-color-mint-a2);
|
|
1270
1278
|
border-color: var(--cds2-core-color-mint-a6);
|
|
1271
1279
|
color: var(--cds2-core-color-mint-a11);
|
|
1272
1280
|
}
|
|
1273
1281
|
|
|
1274
|
-
.capra-Tag-module-
|
|
1282
|
+
.capra-Tag-module-y2Yzjq-base[data-color="orange"] {
|
|
1275
1283
|
background-color: var(--cds2-core-color-orange-a2);
|
|
1276
1284
|
border-color: var(--cds2-core-color-orange-a6);
|
|
1277
1285
|
color: var(--cds2-core-color-orange-a11);
|
|
1278
1286
|
}
|
|
1279
1287
|
|
|
1280
|
-
.capra-Tag-module-
|
|
1288
|
+
.capra-Tag-module-y2Yzjq-base[data-color="pink"] {
|
|
1281
1289
|
background-color: var(--cds2-core-color-pink-a2);
|
|
1282
1290
|
border-color: var(--cds2-core-color-pink-a6);
|
|
1283
1291
|
color: var(--cds2-core-color-pink-a11);
|
|
1284
1292
|
}
|
|
1285
1293
|
|
|
1286
|
-
.capra-Tag-module-
|
|
1294
|
+
.capra-Tag-module-y2Yzjq-base[data-color="plum"] {
|
|
1287
1295
|
background-color: var(--cds2-core-color-plum-a2);
|
|
1288
1296
|
border-color: var(--cds2-core-color-plum-a6);
|
|
1289
1297
|
color: var(--cds2-core-color-plum-a11);
|
|
1290
1298
|
}
|
|
1291
1299
|
|
|
1292
|
-
.capra-Tag-module-
|
|
1300
|
+
.capra-Tag-module-y2Yzjq-base[data-color="purple"] {
|
|
1293
1301
|
background-color: var(--cds2-core-color-purple-a2);
|
|
1294
1302
|
border-color: var(--cds2-core-color-purple-a6);
|
|
1295
1303
|
color: var(--cds2-core-color-purple-a11);
|
|
1296
1304
|
}
|
|
1297
1305
|
|
|
1298
|
-
.capra-Tag-module-
|
|
1306
|
+
.capra-Tag-module-y2Yzjq-base[data-color="red"] {
|
|
1299
1307
|
background-color: var(--cds2-core-color-red-a2);
|
|
1300
1308
|
border-color: var(--cds2-core-color-red-a6);
|
|
1301
1309
|
color: var(--cds2-core-color-red-a11);
|
|
1302
1310
|
}
|
|
1303
1311
|
|
|
1304
|
-
.capra-Tag-module-
|
|
1312
|
+
.capra-Tag-module-y2Yzjq-base[data-color="ruby"] {
|
|
1305
1313
|
background-color: var(--cds2-core-color-ruby-a2);
|
|
1306
1314
|
border-color: var(--cds2-core-color-ruby-a6);
|
|
1307
1315
|
color: var(--cds2-core-color-ruby-a11);
|
|
1308
1316
|
}
|
|
1309
1317
|
|
|
1310
|
-
.capra-Tag-module-
|
|
1318
|
+
.capra-Tag-module-y2Yzjq-base[data-color="sky"] {
|
|
1311
1319
|
background-color: var(--cds2-core-color-sky-a2);
|
|
1312
1320
|
border-color: var(--cds2-core-color-sky-a6);
|
|
1313
1321
|
color: var(--cds2-core-color-sky-a11);
|
|
1314
1322
|
}
|
|
1315
1323
|
|
|
1316
|
-
.capra-Tag-module-
|
|
1324
|
+
.capra-Tag-module-y2Yzjq-base[data-color="teal"] {
|
|
1317
1325
|
background-color: var(--cds2-core-color-teal-a2);
|
|
1318
1326
|
border-color: var(--cds2-core-color-teal-a6);
|
|
1319
1327
|
color: var(--cds2-core-color-teal-a11);
|
|
1320
1328
|
}
|
|
1321
1329
|
|
|
1322
|
-
.capra-Tag-module-
|
|
1330
|
+
.capra-Tag-module-y2Yzjq-base[data-color="tomato"] {
|
|
1323
1331
|
background-color: var(--cds2-core-color-tomato-a2);
|
|
1324
1332
|
border-color: var(--cds2-core-color-tomato-a6);
|
|
1325
1333
|
color: var(--cds2-core-color-tomato-a11);
|
|
1326
1334
|
}
|
|
1327
1335
|
|
|
1328
|
-
.capra-Tag-module-
|
|
1336
|
+
.capra-Tag-module-y2Yzjq-base[data-color="violet"] {
|
|
1329
1337
|
background-color: var(--cds2-core-color-violet-a2);
|
|
1330
1338
|
border-color: var(--cds2-core-color-violet-a6);
|
|
1331
1339
|
color: var(--cds2-core-color-violet-a11);
|
|
1332
1340
|
}
|
|
1333
1341
|
|
|
1334
|
-
.capra-Tag-module-
|
|
1342
|
+
.capra-Tag-module-y2Yzjq-base[data-color="yellow"] {
|
|
1335
1343
|
background-color: var(--cds2-core-color-yellow-a2);
|
|
1336
1344
|
border-color: var(--cds2-core-color-yellow-a6);
|
|
1337
1345
|
color: var(--cds2-core-color-yellow-a11);
|
package/docs/core-tag--design.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
A tag component for displaying a label and an optional icon.
|
|
4
4
|
|
|
5
|
+
## Size
|
|
6
|
+
|
|
7
|
+
`Tag` supports two sizes:
|
|
8
|
+
|
|
9
|
+
* `md` is the default size and preserves the existing Tag density.
|
|
10
|
+
* `sm` is a more compact treatment for dense metadata layouts.
|
|
11
|
+
|
|
5
12
|
## Accessibility
|
|
6
13
|
|
|
7
14
|
### Keyboard interaction
|
|
@@ -13,6 +20,10 @@ A tag component for displaying a label and an optional icon.
|
|
|
13
20
|
|
|
14
21
|
All buttons exist in the page's natural tab sequence, reachable via `Tab` and `Shift+Tab` keys. Pressing `Spacebar` or `Enter` activates the focused button.
|
|
15
22
|
|
|
23
|
+
### Target size
|
|
24
|
+
|
|
25
|
+
The compact `sm` size reduces the visible chip height for dense layouts. When using interactive affordances such as delete or drag, verify the surrounding product layout still provides sufficient pointer spacing and focus visibility for the overall interaction.
|
|
26
|
+
|
|
16
27
|
### Draggability
|
|
17
28
|
|
|
18
29
|
The tag can be made draggable by setting the `draggable` prop to `true`. When the tag is draggable, the user can drag the tag to a new position in the list.
|
package/docs/core-tag--usage.md
CHANGED
|
@@ -7,5 +7,6 @@ A tag component for displaying a label and an optional icon.
|
|
|
7
7
|
| `color` | `(typeof tagColors)[number]` | No | 'default' | The color of the tag. Defaults to `default`. |
|
|
8
8
|
| `icon` | `SvgIcon \| SvgLogo` | No | `--` | The icon or logo to display in the tag. |
|
|
9
9
|
| `children` | `string` | Yes | `--` | The label text to display in the tag. |
|
|
10
|
+
| `size` | `(typeof tagSizes)[number]` | No | 'md' | The size of the tag. Defaults to `md`. |
|
|
10
11
|
| `onDelete` | `() => void` | No | `--` | The callback function for when the user clicks the delete button. |
|
|
11
12
|
| `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# History/Changelogs/@capra-core
|
|
2
2
|
|
|
3
|
+
### 1.8.1
|
|
4
|
+
|
|
5
|
+
#### Patch Changes
|
|
6
|
+
|
|
7
|
+
* [1ebcee1](https://bitbucket.org/cribl/capra-ui/commits/1ebcee1): Fix issue where top-level links in `TabNav` caused a full page refresh when used with `RouterProvider`
|
|
8
|
+
|
|
9
|
+
### 1.8.0
|
|
10
|
+
|
|
11
|
+
#### Minor Changes
|
|
12
|
+
|
|
13
|
+
* [c97320b](https://bitbucket.org/cribl/capra-ui/commits/c97320b): Add size support to `Tag`.
|
|
14
|
+
|
|
3
15
|
### 1.7.0
|
|
4
16
|
|
|
5
17
|
#### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capra/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Core React components for the Capra design system",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"antd": "4.24.16",
|
|
45
45
|
"storybook": "^10.4.6",
|
|
46
46
|
"tsdown": "^0.22.0",
|
|
47
|
-
"@private/building": "0.0.4",
|
|
48
|
-
"@private/linting": "0.0.0",
|
|
49
47
|
"@capra/theme": "1.3.0",
|
|
50
|
-
"@private/
|
|
51
|
-
"@private/
|
|
48
|
+
"@private/linting": "0.0.0",
|
|
49
|
+
"@private/building": "0.0.4",
|
|
50
|
+
"@private/testing": "0.0.7",
|
|
51
|
+
"@private/stories": "0.0.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"clean": "rm -rf ./dist",
|