@indico-data/design-system 3.1.0 → 3.2.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/lib/components/pill/Pill.d.ts +1 -1
- package/lib/components/pill/Pill.stories.d.ts +2 -1
- package/lib/components/pill/types.d.ts +5 -2
- package/lib/index.css +4958 -5002
- package/lib/index.d.ts +6 -3
- package/lib/index.esm.css +4958 -5002
- package/lib/index.esm.js +3 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +3 -1
- package/package.json +1 -1
- package/src/components/pill/Pill.mdx +6 -2
- package/src/components/pill/Pill.stories.tsx +50 -58
- package/src/components/pill/Pill.tsx +4 -2
- package/src/components/pill/__tests__/Pill.test.tsx +28 -10
- package/src/components/pill/styles/Pill.scss +12 -130
- package/src/components/pill/types.ts +5 -2
- package/src/styles/_colors.scss +9 -0
- package/src/styles/globals.scss +22 -0
- package/src/styles/index.scss +11 -10
- package/src/styles/variables/_colors.scss +269 -2
- package/src/types.ts +12 -8
- package/src/styles/variables/themes/dark.scss +0 -267
- package/src/styles/variables/themes/light.scss +0 -266
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PillProps } from './types';
|
|
2
|
-
export declare const Pill: ({ children, className, color, size, ...rest }: PillProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Pill: ({ children, className, color, size, shade, ...rest }: PillProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChromaticColor } from '../../types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export type PillSize = 'sm' | 'md' | 'lg';
|
|
4
|
-
export type PillColor =
|
|
4
|
+
export type PillColor = ChromaticColor;
|
|
5
|
+
export type PillShade = 1 | 2 | 3 | 4 | 5;
|
|
5
6
|
export interface PillProps {
|
|
6
7
|
/** The content displayed inside the pill */
|
|
7
8
|
children: React.ReactNode | React.ReactNode[];
|
|
@@ -9,5 +10,7 @@ export interface PillProps {
|
|
|
9
10
|
color?: PillColor;
|
|
10
11
|
/** Applies a CSS class to change the size of the pill */
|
|
11
12
|
size?: PillSize;
|
|
13
|
+
/** Applies a CSS class to change the shade of the pill */
|
|
14
|
+
shade?: PillShade;
|
|
12
15
|
className?: string;
|
|
13
16
|
}
|