@indico-data/design-system 3.21.0 → 3.22.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/lib/index.d.ts CHANGED
@@ -229,18 +229,30 @@ type IconProps = PermafrostComponent & {
229
229
  };
230
230
 
231
231
  type PillSize = 'sm' | 'md' | 'lg';
232
- type PillColor = ChromaticColor;
233
- type PillShade = 1 | 2 | 3 | 4 | 5;
234
- interface PillProps {
232
+ type PillColor = ChromaticColor | 'soft';
233
+ type PillVariant = 'solid' | 'outline';
234
+ type PillType = 'pill' | 'badge';
235
+ interface PillProps extends React$1.HTMLAttributes<HTMLDivElement> {
235
236
  /** The content displayed inside the pill */
236
- children: React$1.ReactNode | React$1.ReactNode[];
237
- /** Applies a CSS class to change the style of the pill */
237
+ children?: React$1.ReactNode;
238
+ /** The color scheme, maps to component token color groups */
238
239
  color?: PillColor;
239
- /** Applies a CSS class to change the size of the pill */
240
+ /** Controls the overall size (padding + font size) */
240
241
  size?: PillSize;
241
- /** Applies a CSS class to change the shade of the pill */
242
- shade?: PillShade;
243
- className?: string;
242
+ /** Solid (filled) or outline (bordered) appearance */
243
+ variant?: PillVariant;
244
+ /** Badge has a small border-radius; pill is fully rounded */
245
+ type?: PillType;
246
+ /** Optional left icon (pass an IconName string, sizing is automatic) */
247
+ iconLeft?: IconName;
248
+ /** Optional right icon (pass an IconName string, sizing is automatic) */
249
+ iconRight?: IconName;
250
+ /** When true, renders a small colored dot indicator before the content */
251
+ dot?: boolean;
252
+ /** When provided, renders a close button that calls this handler */
253
+ onClose?: () => void;
254
+ /** Accessible label for the close button (for i18n) */
255
+ closeAriaLabel?: string;
244
256
  }
245
257
 
246
258
  type Direction = `${Direction$1}`;
@@ -840,7 +852,7 @@ type MenuProps = {
840
852
  };
841
853
  declare function Menu({ children, className, ...rest }: MenuProps): react_jsx_runtime.JSX.Element;
842
854
 
843
- declare const Pill: ({ children, className, color, size, shade, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
855
+ declare const Pill: ({ children, color, size, variant, type, iconLeft, iconRight, dot, onClose, closeAriaLabel, className, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
844
856
 
845
857
  type BadgeSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
846
858
  interface BadgeProps {