@indico-data/design-system 3.1.0 → 3.2.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/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 +4977 -5020
- package/lib/index.d.ts +6 -3
- package/lib/index.esm.css +4977 -5020
- 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 -129
- 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
package/lib/index.d.ts
CHANGED
|
@@ -230,7 +230,8 @@ interface TableProps<T> extends Omit<IDataTableProps<T>, 'paginationComponent' |
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
type PillSize = 'sm' | 'md' | 'lg';
|
|
233
|
-
type PillColor =
|
|
233
|
+
type PillColor = ChromaticColor;
|
|
234
|
+
type PillShade = 1 | 2 | 3 | 4 | 5;
|
|
234
235
|
interface PillProps {
|
|
235
236
|
/** The content displayed inside the pill */
|
|
236
237
|
children: React$1.ReactNode | React$1.ReactNode[];
|
|
@@ -238,6 +239,8 @@ interface PillProps {
|
|
|
238
239
|
color?: PillColor;
|
|
239
240
|
/** Applies a CSS class to change the size of the pill */
|
|
240
241
|
size?: PillSize;
|
|
242
|
+
/** Applies a CSS class to change the shade of the pill */
|
|
243
|
+
shade?: PillShade;
|
|
241
244
|
className?: string;
|
|
242
245
|
}
|
|
243
246
|
|
|
@@ -248,7 +251,7 @@ type PermafrostComponent = {
|
|
|
248
251
|
'data-testid'?: string;
|
|
249
252
|
};
|
|
250
253
|
|
|
251
|
-
type
|
|
254
|
+
type ChromaticColor = 'blue' | 'purple' | 'red' | 'yellow' | 'gray' | 'green' | 'pink' | 'orange' | 'teal';
|
|
252
255
|
|
|
253
256
|
type ButtonVariants = 'solid' | 'outline' | 'link' | 'action' | 'destructive' | 'soft';
|
|
254
257
|
type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -780,7 +783,7 @@ type MenuProps = {
|
|
|
780
783
|
};
|
|
781
784
|
declare function Menu({ children, className, ...rest }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
782
785
|
|
|
783
|
-
declare const Pill: ({ children, className, color, size, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
|
|
786
|
+
declare const Pill: ({ children, className, color, size, shade, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
|
|
784
787
|
|
|
785
788
|
type BadgeSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
786
789
|
interface BadgeProps {
|